While reading an article by Makeuseof.com: http://www.makeuseof.com/tag/14-youtube-playlists-watch-learn-computer-p...
I decide to take a quick python training since I never learn python seriously before.
It's a bit troublesome to watch the video from China through the firewall, so I downloaded it from the server with a command line utility called youtube-dl
youtube-dl -q -t http://www.youtube.com/user/thenewboston#grid/user/EA1FEF17E1E5C0DA
Ant has a ftp task which requires some libraries, that's the way to setup on Debian/Ubuntu. Have fun!
I'm out of office in a hurry and forget to close the virtual box vm on my Ubuntu desktop, which is running Windows XP and I'd rather close it for security reason. Here's the way to do it remotely.
On linux, Opera can't switch the input method by ctrl-space, here's the steps to solve the issue
1. remove the keyboard shortcut:
Open opera preferences-> Advanced->Shortcuts->Keyboard setup, click Edit, search for Space ctrl, and then delete it
2. open /usr/bin/opera: you need root permission to edit the file, otherwise, you can create your own version of opera script to start
This error message happens after I did an upgrade to Debian 5.0 (lenny)
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
Then choose en_US.UTF-8 and it's fixed.
I need to replace an IP address for a sever switch, here's the command for it:
find . -name "*.php" -print | xargs sed -i 's/192.168.0.10/192.168.0.11/'
In my configuration, my server's network is 10.1.1.0 and my VPN is 10.1.10.0, in order to access the server side networks, you need to enable the forwarding and masquerading, here's the steps:
$echo 1 > /proc/sys/net/ipv4/ip_forward
$iptables -t nat -A POSTROUTING -s 10.1.10.0/24 -o eth0 -j MASQUERADE
*Assuming your nic is eth0 and your vpn network is 10.1.10.0
Finally upgraded to 9.04 Jaunty, here's some times might help:
deb http://http.us.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib
Somebody skipped step 3 and also works fine. Now your server is running Lenny. In my case, I don't even have to reboot the machine.