Update and install packages at imagediskserver3

From ImageWiki

Revision as of 09:59, 4 April 2014 by Kimstp (Talk | contribs)
Jump to: navigation, search

Update and install packages at imagediskserver3

Because of the firewall, we need to proxy ubuntu repositories in order to let imagediskserver3 access them. This is achieved using tsocks.

At all times, an ssh instance should be running on imagediskerver3 acting as proxy server. With the assumption that the current user (you) have an account on ask.diku.dk, use the /usr/local/sbin/start-proxy script to start the proxy server if it is not running. Then run any command that needs to access the internet with 'tsocks' prefixed, i.e. 'tsock cmd' instead of 'cmd'. I have made the following aliases in my ~/.bashrc

  1. alias apt-get="tsocks apt-get"
  2. alias sudo-apt-get="sudo tsocks apt-get"
  3. alias aptitude="tsocks aptitude"
  4. alias sudo-aptitude="sudo tsocks aptitude"

so that I can issue e.g. sudo-aptitude update.

Stefan, 23/5 2012



Kim (4/4/2014): I do the following

ssh -N -D localhost:11111 ask &
alias apt-get="tsocks apt-get"
sudo apt-get install <what-ever-package>
Personal tools