Search This Blog

Sunday, 6 March 2011

Basic plots using octave

Save a figure into a file:
  1.  print -deps Speedup.eps
  2. use epstopdf

Friday, 4 March 2011

Linux Networking

Set proxy from command line:
Add a new file called 01proxy to your /etc/apt/apt.conf.d/ directory with the following line:


Acquire::http::proxy "http://[user]:[password]@[server_ip_or_name]:[port#]";


 
Cntlm authentication proxy:
 create new authentication:
  1. sudo usr/bin/cntlm -c /etc/cntlm.conf -I -M http://test.com
  2. enter root password
  3. copy the output into the file /etc/cntlm.conf
  4. restart cntlm
Create a hot spot with the GNOME network manager:
By using "Create New Wireless Network ..." only an  ad-hoc network is created. These kind of networks are not detected by my htc desire hd phone. See this blog for a discussion.