Linux utility

  1. xcalc
  2. xfig
  3. matlab -glnx86 (/usr/local/pkgs/matlab-6.5/bin/matlab -glnx86)
  4. burn a CD: xcdroast
  5. check out CPU, memory info: dmesg|less ; cat /proc/cpuinfo
  6. lpr -Pprinter/ss file
    eg: lpr -Plpsocs/ss file
  7. login Windows Server: rdesktop -g1024x768 office
  8. ssh-agent /usr/local/bin/tcsh
  9. ssh-add
  10. count words, lines, -- wc
  11. change JAVA version you do:
    java-config -L (to get available versions)
    java-config -s version-name (to change to the version)
  12. find "keyword" in current directory and sub-directory files
    grep -rnl ./
  13. append something into tcsh enviornment
    echo "LM_LICENSE_FILE=1717@ppl-1.cs.mcgill.ca" >> ./.cshrc
    check the enviroment varialbes: % env
  14. CSS, class .class , ID #id , pseudo-class a:visited , (visited is a pesudo class)
  15. netstat -an check your netwok status
 Ubuntu
 Add gcc, g++
 sudo apt-get install libc6-dev libstdc++6-4.0-dev libstdc++6-dev
 Eclipse
 https://wiki.ubuntu.com/EclipseIDE
Ubuntu, how to change root password, how to su, after installation without setting root password
sudo passwd ; --> this change the root password, now you can su; nevetheless, sudo is always the first choice to work as a root.
sudo apt-get install make
sudo apt-get install xemacs21
sudo apt-get install libc6-dev libstdc++6-4.0-dev libstdc++6-dev (to fix compile errors as follows:
/usr/include/c++/4.0.2/bits/basic_ios.h:68: error: no type named off_type in struct std::char_traits < char >
/usr/include/c++/4.0.2/bits/basic_ios.h: In instantiation of std::basic_ios < wchar_t, std::char_traits < wchar_t > > :
/usr/include/c++/4.0.2/bits/basic_ios.tcc:195: instantiated from here
/usr/include/c++/4.0.2/bits/basic_ios.h:66: error: no type named int_type in struct std::char_traits < wchar_t >
Ubuntu, how to add kernel source
First, check out your kernel version by command 'uname -r'. You may get a value as "2.6.12-10-386" .
Then do sudo apt-get source linux-source-2.6.12
sudo apt-get install build-essential linux-headers-2.6.12-10-386