Update and install packages at imagediskserver3

From ImageWiki

(Difference between revisions)
Jump to: navigation, search
(Update and install packages at imagediskserver3)
(Update and install packages at imagediskserver3)
 
Line 17: Line 17:
------
------
Kim (4/4/2014): I do the following
Kim (4/4/2014): I do the following
-
  ssh -N -D localhost:11111 ask &
+
  /usr/local/sbin/start-proxy
-
  alias apt-get="tsocks apt-get"
+
  sudo tsocks apt-get install <what-ever-package>
-
sudo apt-get install <what-ever-package>
+

Latest revision as of 10:10, 4 April 2014

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

/usr/local/sbin/start-proxy
sudo tsocks apt-get install <what-ever-package>
Personal tools