It is painful to turn the proxy on and off in my Ubuntu laptop between office and home. As a lazy guy, I would like to make it automatic. Easy life now 🙂 1) Create 3 scripts named proxy_on, proxy_off and check_proxy under /usr/local/bin. #!/bin/bash #proxy_on gsettings set org.gnome.system.proxy.socks host 'proxy.company.local' gsettings set org.gnome.system.proxy.socks port … Continue reading Auto Configure Proxy in Ubuntu
Tag: Ubuntu
Ubuntu Smartphone
As an Ubuntu lover, I am so excited to see the arrival of Ubuntu for Phone.
Bash: UT-Citrix
I developed the Ubuntu version Citrix thin client. To follow the same naming convention as TC-Citrix, I name it UT-Citrix. Here are the key scripts: checkip #!/bin/bash #wait for the DHCP ready while ! ifconfig eth0 | grep 'inet addr' >/dev/null 2>&1 do echo sleep 2 done sysprep #!/bin/bash #rename the computer echo HOSTNAME=UT-`ifconfig | … Continue reading Bash: UT-Citrix
How Ubuntu Read DHCP Options
In a small project, I need to make Ubuntu get the ‘FTP Root’ option’s value from the Windows 2003 DHCP server. For some reasons that I don’t know, Ubuntu does not include ‘FTP Root’ (code 162) in the standard dhcp-option. So I have to modify the ‘/etc/dhcp/dhclient.conf ’ to make it happen. Add the following … Continue reading How Ubuntu Read DHCP Options
Unity 2D
I installed Ubuntu 11.04 on my DELL inspiron mini 10 last night. A message poped out saying ‘The hardware does not support Unity’ when the machine rebooted after the installation finished The reason is that the Unity (the new desktop UI adopted by Ubuntu in the latest version) can only run on the supported hardward … Continue reading Unity 2D