technology and zen of life

“A heisenbug (named after the Heisenberg Uncertainty Principle) is a computer bug that disappears or alters its characteristics when an attempt is made to study it.”

How to make your Linux applications use proxy

Hi,

If you are frustrated by Linux and your college’s network, which is windows based or sysadmins can help you with windows only, and sysadmins for a request call, replies as “use Windows”. If you are in a university then I am sure they use that damned( or good) software called as proxy (squid proxy to be specific). And you are a linux newbie then, here are some quick tips for you.

TIP # 1

You want your download manager (wget), updates by apt or aptitude to use a http proxy, you can use the following commands to export proxy to your environment

export http_proxy=http://user:password@proxy:port/

or

export http_proxy=http://proxy:port/

Things to note here are

  • Type the command as it is, don’t leave unnecessary spaces.
  • Username/password is the username and password you use to access the proxy, that is the same password which you type when you access internet using a web-browser. If you don’t use one, then use the second version of the command
  • Proxy and port are the values that are the same as used in your web-browser, or you can ask check them out with your sysadmin, or anyone who has a working internet on the same network.

After you do this you can use apt or aptitude and it will use the http proxy you specified!


TIP # 2
For GNOME users : GNOME allows users to specify a proxy from a GUI, which you can find in

 

Preferences –> Network Proxy

It also allows you to specify username/password, by clicking on “Details”


TIP # 3
Using socks proxy with evolution (the e-mail client)You need a package named tsocks

 

sudo apt-get install tsocks

for Ubuntu users

or you can download it from here, http://tsocks.sourceforge.net

then just type

tsocks evolution

you might want to read the man page for configurations too.

So, that’s it. I hope it makes your life a little easier with Linux on network. Tell us about your experiences of using Linux behind proxies. Remember google search is your best resource!

Make a Live USB disk for any Linux distribution

How many of you feel frustrated having to burn a CD/DVD every time you want to try on a new OS? Well UNetbootin helps create bootable USB drives, which you can use either as a live CD or as an installation media.

UNetbootin is a very handy tool, which runs on both Linux and Windows and offers a wide variety of operating systems that you can choose to load to your USB disk. It can even download all the popular distributions off the internet for you. It can also be used to boot many system utilities from the USB disk. It uses syslinux to make the USB disk bootable and thus any distribution or utility that can be booted via the syslinux interface works with UNetbootin.

UNetbootin offers two variations for installation. One is to create a USB disk and the other is a “frugal” install. A frugal install means that the iso resides on your hard disk and only the boot loader is reconfigured to run load the compressed kernel image from the hard disk, which can then be used to install the OS, or just run as a live CD.

Using UNetbootin is quite easy. If you are on windows just run the utility and you will be provide with a screen like this:

screenshot Make a Live USB disk for any Linux distribution

Now you can either choose an operating system or specify your own ISO image for which you want to create the bootable USB disk.

The second option is to specify the USB disk or the hard disk (in case of frugal install) and you are all set. The target disk is not formatted so you will not lose any existing data on the disk.

What’s more it supports 9 different languages but if you want to change the language the only way you can do that is by providing command line argument <lang = xy> where xy is the language code. Here is the list of languages supported with their codes

  • English (en)
  • Español / Spanish (es)
  • Português / Portuguese (pt)
  • Français / French (fr)
  • Italiano / Italian (it)
  • ?? / Simplified Chinese (zh)
  • ??????? / Russian (ru)
  • Norsk bokmål / Norwegian (nb)
  • Magyar / Hungarian (hu)

Links:

UNetbootin Homepage

delicious Make a Live USB disk for any Linux distribution digg Make a Live USB disk for any Linux distributiongoogle3 Make a Live USB disk for any Linux distribution stumbleupon Make a Live USB disk for any Linux distribution

How to make your Linux applications use proxy

Hi,

If you are frustrated by Linux and your college’s network, which is windows based or sysadmins can help you with windows only, and sysadmins for a request call, replies as “use Windows”. If you are in a university then I am sure they use that damned( or good) software called as proxy (squid proxy to be specific). And you are a linux newbie then, here are some quick tips for you.

TIP # 1

You want your download manager (wget), updates by apt or aptitude to use a http proxy, you can type

export http_proxy=http://user:password@proxy:port/

or

export http_proxy=http://proxy:port/

Things to note here are

  • Type the command as it is, don’t leave unnecessary spaces.
  • Username/password is the username and password you use to access the proxy, that is the same password which you type when you access internet using a web-browser. If you don’t use one, then use the second version of the command
  • Proxy and port are the values that are the same as used in your web-browser, or you can ask check them out with your sysadmin, or anyone who has a working internet on the same network.

After you do this you can use apt or aptitude and it will use the http proxy you specified!


TIP # 2
For GNOME users : GNOME allows users to specify a proxy from a GUI, which you can find in

Preferences –> Network Proxy

It also allows you to specify username/password, by clicking on “Details”


TIP # 3
Using socks proxy with evolution (the e-mail client)You need a package named tsocks

sudo apt-get install tsocks

for Ubuntu users

or you can download it from here, http://tsocks.sourceforge.net

then just type

tsocks evolution

you might want to read the man page for configurations too.

So, that’s it. I hope it makes your life a little easier with Linux on network. Tell us about your experiences of using Linux behind proxies. Remember google search is your best resource!

DarK is a Linux newbie who is frustrated by network admins across India. His recent project is installing Linux-from-scratch. He is the How to’s master here!

Email Subscription

Disclaimer

The views expressed on this blog are personal. We do not claim to be a representative voice of the views of any organisation whatsoever. We are not responsible for the content present on the blogs to which we have linked.Views expressed are solely that of the author and does not reflect a collective opinion of contributors.