Thursday, December 10, 2009

Using ethtool to check and change Ethernet Card Settings

ethtool is used for querying settings of an ethernet device and changing them. ethtool is the replacement tool for mii-tool



# ethtool eth0
 As seen in the above diagram, ethtool information is very informative and helpful for diagnostic

Other useful  command includes
# ethtool -i eth0 (provide information regarding eth0 including drivers)
# ethtool -S eth0 (provide information regarding the speed and other information)


Taken from ethtool from softpanorama. You can use ethtool command to set specific parameter on the NIC
# ethtool -s eth0 speed 100 duplex full autoneg off

Wednesday, December 9, 2009

Mounting CD or DVD with the command line

Back to the Basics.....

To mount a CD-ROM or DVD on LINUX, you can use the following command,

# mount -t iso9660 -o ro /dev/dvd /media/dvd
(assuming /media/dvd is the mount point)

Saturday, December 5, 2009

Compiz and Emerald to make Linux Desktop cool



Emerald is a custom window decorator that is shipped with Compiz. It is one of the most and easily configurable window manager.

Emerald is usually available as an additional package and has to install seperately.
# aptitude install emerald

Once installed you can launch the Emerald Theme Manager and choose your preferred theme or customise your look and replace. Once configured
$ emerald --replace

To import interesting theme, you can go to http://www.compiz-themes.org/ to download the latest theme. To load the theme, simply use the Emerald Theme Manager to import in the .emerald file

Awesome.

Friday, December 4, 2009

Speeding and Compressing X forwarding Traffic

To run the an X application over SSH connection, you can use the
$ ssh -X user@computername.com

Do note that for the remote Server shich you are connecting to must have X forwarding enabled. To configure, go to /etc/ssh/ssh_config/
X11Forwarding yes

If the SSH is setup with trusted X11 Forwarding ie in the /etc/ssh/ssh_config file,
ForwardX11Trusted yes

You can compress and speed up the X forwarded connection
$ ssh -Y -C user@computername.com
  • -Y to enable trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls. So it will boost speed.
  • -C to compress the data