Searching for the right Xorg resolution & refresh rate

It took me a while to find the correct tools for detecting it. Here it is :

- apt-get install xresprobe

- take note of the output from “ddcprobe” (this command will only available after the previous step)

- change “HorizSync”, “VertRefresh” & “Modes” in /etc/X11/xorg.conf accordingly

- extra parameters for eye candy :
1. make sure the correct driver is being used. e.g. Driver “intel”

2. Section “Extensions”
Option “Composite” “Enable”
#Option “AllowGLXWithComposite” “true”
EndSection

Voila !!!

Set time & date automatically in KDE

For NTP use in KDE :

- apt-get install ntpdate

- right click on the clock on the “panel” and click “adjust date & time”

- tick ” Set date and time automatically”

- click “OK”

Voila !!!

Change NIC characteristic in linux

For some reason, my debian box does not enable my NIC’s gigabit capability. The manual way is :

1. apt-get install ethtool

2. ethtool <interface> -s speed <link speed> duplex full autoneg off – e.g. ethtool eth0 -s speed 100 duplex full autoneg off

3. ifconfig eth0 down

4. ifconfig eth0 up

5. route add default gw <gateway> – e.g. route add default gw 192.168.0.1

run “ethtool eth0″ to check the interface speed.

To make it permanent, add the following to /etc/network/interfaces :

post-up /usr/bin/ethtool eth0 -s speed 100 duplex full autoneg off
post-up route add default gw 192.168.0.1

Cheers !!!

Regular Expression Cheat Sheet

for you out there always trying to grep, ls, vi and etc … love jack daniels and he will have something for you … Here is it

regular_expressions_cheat_sheet.png

20090204

Update : The site have change the URL http://www.addedbytes.com/cheat-sheets/.

Workflow with Automator …

automator-icon

I have always use my mac for surfing, emailing, messaging & other stuff… there is always a set of application that i would want to start but lazy of starting it one by one… naturally i use, Automator…

Read the rest of this entry »