Usefull linux commands

System

Setting up ubuntu (9.10) in SCS environment

http://www.cs.cmu.edu/~hyeontae/ubuntu_in_SCS.html

Setting up Kerberos and AFS in ubuntu 7.10

steps to use chinese input method in English locale in linux (ubuntu 7.04)


steps to use chinese input method in English locale in linux (ubuntu 9.04)

steps to save to eps file (in windows)

This method possibly requires GSView software. Thanks to Markus Nilsson for suggesting this.
  1. Install the drivers for a Postscript printer (often denoted PS in the end of the name of the printer) if you don't already have one installed on your computer. (This can be done as follows: Start -> Control Panel -> Printers -> Add printer. Press next a couple of times until you reach the page where you can choose between different manufacturers. Choose a Postscript printer, e.g., Lexmark Optra S 1250 PS.)
  2. Isolate each figure in its own PowerPoint document.
  3. Print the figure, but check the box "Save to file", and under properties/advanded/Postscript options, select Encapsulated postscript (EPS).
  4. Now you're almost done. The default setting for the boundary box for your drawing has been set to fill the whole page. If you want to edit this, use GSView. Under the File menu, use PS to EPS without checking the "Automatically calculate Bounding Box". Select your new bounding box, and save the file as an EPS.
  5. Use LaTeX's psfig package to put the .eps figure into the LaTeX document.

change mac address in linux

There are a lot of reasons you might want to manually set your MAC address for your network card. I won’t ask you what your reason is.

To change this setting, we’ll need to edit the /etc/network/interfaces file. You can choose to use a different editor if you’d like.

sudo gedit /etc/network/interfaces

You should see the line for your network interface, which is usually eth0. If you have dhcp enabled, it will look like this:

auto eth0
iface eth0 inet dhcp

Just add another line below it to make it look something like this:

auto eth0
iface eth0 inet dhcp
       hwaddress ether 01:02:03:04:05:06

Obviously you would want to choose something else for the MAC address, but it needs to be in the same format.

sudo /etc/init.d/networking restart

You will need to restart networking or reboot to take effect.