The mass of men lead lives of quiet desperation.

Henry Thoreau's Walden
Home Page
Linux
ProgrAmmInG
Site Map
LYCHEE - TMT
Contact Information
LYCHEE Program
Projects
Resume
Topics
LYCHEE ProgramĀ 

The LYCHEE Program

LYCHEE is the name of the first LAN I built in my residence in Nanjing. Also, it is the name of my first coputer. While I fond this program, we called it LYCHEE. By the way, LYCHEE is short for the computer's owners' name of that LAN.

The main tech used in this program is Bash Shell Script, we aimed to develop applications to make the Linux more easy to use. Some joked it like "LESS". Here "LESS" means "Let Everything Smart, Stupid". (You must know KISS ~ Keep It Smart, Stupid)

Some selected applications list here:

ipswitcher
video_downloader
homepage_maker

ipswitcher:
In the campus of NUPT, lots of the students use a route or concentrator to access the internet or intranet. Sometimes they need to do something in their LAN, other times, they need to access the campus' LAN. As you know, in their local network, the ip address seems like 192.168.0.1/24, but in the campus' LAN, it becomes to 10.200.0.1/8, so they need to change their computer's ip address frequently. We solved it.

video_downloader:
Take downloading a video from YouTube for example:
First, get the page where you want to download the video, and save it with some file name. wget -O file_name http://www.youtube.com/watch?v=B6fnR--IDKc
Then find the info from that file. grep "player2.swf" file_name
The encrypted string will be in between player2.swf? and hl=en&video_id=B6fnR--IDKc&l=34&t=OEgsToPDskIlg4F-gKjbwl_pqIP6IPeI&soff=1&sk=V7GrH18hYLfT0sz5dm7GXgC
Now start the downlaoding.
wget -O video_name.flv "http://www.youtube.com/get_video.php?hl=en&video_id=B6fnR--IDKc&l=34&t=OEgsToPDskIlg4F-gKjbwl_pqIP6IPeI&soff=1&sk=V7GrH18hYLfT0sz5dm7GXgC"