[svn] svn works with proxy in ubuntu

Background : svn checkout project under ubuntu using proxy

With natif configuration of svn (which is installed by apt-get), svn checkout return an error :


svn co --username your_username https://your_svn_url/
svn: OPTIONS of 'your_svn_url': Could not resolve hostname ... : Host not found

The solution is to add proxy to the defaut configuration of svn.

Edit : ~/.subversion/servers by adding :

http-proxy-host = your_proxy_host
http-proxy-port = your_proxy_port (3128 or 8080 etc)
http-proxy-username = your_proxy_username
http-proxy-password = your_proxy_password

 

 

 

[SVN] svn list remote repository

To list the repository of remote svn :

svn list your_svn_url --username your_username --password your_password

or

svn ls your_svn_url --username your_username --password your_password

To see more information :

svn list --verbose your_svn_url --username your_username --password your_password

To display the out in XML :

svn list --xml your_svn_url --username your_username --password your_password

[Proxy Ubuntu] Configration of proxy in Ubuntu 12.04 for eclipse SVN

1. Configration proxy in Ubuntu :

System setting -> Network proxy as diagram below :

Apply your own configration of proxy.

2. Configration proxy for SVN :

Go to ~/.subversion folder, modify the file servers :

Uncomment these lines and add your own configration proxy :

# http-proxy-host=your_host_name
# http-proxy-port=8080
# http-proxy-username=bo
# http-proxy-password=password

Make sure there is no gap on either side of “=” symbol

It will works your proxy.