Wednesday, March 26, 2014

Disable touchpad for laptop

I got problem with my touchpad.. it let the cursor jumping here and there .. so it's very annoying.

Here is the tips that I found out from the Internet

xinput list | perl -ne 'if ($_ =~ /Synaptics/) {exec "xinput","set-prop",substr($_,3+index($_,"id="),2),"Device Enabled","0"}'

You may change /Synaptics/ with any value that pointed to your device from "xinput list" command

Move windows control (min, max, close) button to the right

Worked from 12.04 - 13.10 (the original author said this, I tested on 13.10 and worked)

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

Saturday, December 21, 2013

Wednesday, December 11, 2013

Touchpad Tidak Berfungsi Selepas Upgrade 12.04LTS

Saya mengalami masalah untuk menggunakan touchpad selepas proses kemaskini pakej dalam Ubuntu 12.04 LTS saya

Berikut adalah arahan yang saya guna sebagai "root"

# modprobe -r psmouse
# modprobe psmouse proto=imps


Dan ianya berfungsi seperti sediakala.


Friday, November 15, 2013

Modifying an erroneous visudo file and cannot get into sudo

I recently modified the visudo file and turns out I can't get into visudo mode at all. Worst is that in Ubuntu 12.04 we can't use "su" command or log in as "root"

Here is the tips, from here

Use pkexec command,

Just type "pkexec visudo"

And modify or restore back to the original settings.


Thursday, November 14, 2013

Disable auto mount from USB device

I have a problem with my Galaxy Nexus before and now my LG Nexus 4 - they keep pop up the nautilus if I insert the plug to the cable (I prefer charging my phone to the laptop).

So here is the solution, which finally I found from here


Go to your terminal, type dconf-editor. The find "org.gnome.desktop.media-handling.automount-open"

And choose your preferred choice, mine is like this:






As I prefer the phone being automounted, I just feel annoyed with the nautilus pop up, hence I untick "automount-open" but choose "automount" and "autorun-never" instead.

I feel the autorun function is so Windowish.. and wondering why it ever exists. Not that it is bad.. but for me it is less preferred.

Wednesday, March 27, 2013

Changing Maximize, Minimize and Close Button from Left to Right in Unity

I am currently back to Ubuntu 12.04 due to stability issue with 12.10

But the problem is with the buttons. So here goes


gconftool-2 --set "/apps/metacity/general/button_layout" --type string ":minimize,maximize,close"



This will set these buttons to right pane of your windows :)

simplified from here