Sometimes /boot is so limited, and tend to forget to do housekeeping. Here goes
dpkg --list | grep linux-image |awk {'print $2'}|grep -v "`uname -r`\|linux-image-generic"|xargs apt-get purge -y
Sunday, May 8, 2016
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
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
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.
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.
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 :)
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 :)
Friday, March 15, 2013
Customizing Workspace Navigation Shortcuts Using Gsettings
I got a problem in my Ubuntu 12.04 LTS, since the configuration that I saved using the gnome-setting interface did not worked (as if it was never saved).
So I decided to google around and found this tips which I already customized to my enviroment:
Here, I used Alt with
So I decided to google around and found this tips which I already customized to my enviroment:
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "[\"Q\"]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "[\"W\"]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "[\"E\"]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "[\"R\"]"
Here, I used Alt with
for workspace 1-4
Thursday, January 3, 2013
Ubuntu Phone
Mark Shuttleworth recently presented the release of Ubuntu phone. Hope to see this in Malaysia soon!
source
source
Tuesday, November 20, 2012
Finding fastest mirror on Quantal
Put these lines inside your /etc/apt/source.list
deb mirror://mirrors.ubuntu.com/mirrors.txt quantal main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt quantal-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt quantal-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt quantal-security main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt quantal main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt quantal-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt quantal-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt quantal-security main restricted universe multiverse
Sunday, November 11, 2012
MATE desktop environment untuk Ubuntu 12.10 Quantal
Cinnamon telah diulas di sini
Untuk MATE, pilih salah satu mirror;
sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu quantal main"
Untuk MATE, pilih salah satu mirror;
sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu quantal main"
ATAU
sudo add-apt-repository "deb http://repo.mate-desktop.org/ubuntu quantal main"
Kemudian;
sudo apt-get update sudo apt-get install mate-archive-keyring sudo apt-get update # ini akan pasang pakej asas sudo apt-get install mate-core # ini akan pasang pakej lanjutan sudo apt-get install mate-desktop-environmentsumber
Cinnamon untuk Ubuntu 12.10 Quantal
Bagi pengguna Cinnamon seperti saya (yang biasa menggunakan environment ini di dalam Linux Mint), tentunya menginginkan kosmetik yang sama di dalam Ubuntu 12.10
Ia boleh diperolehi dari laman PPA di sini
Secara ringkas:
Ia boleh diperolehi dari laman PPA di sini
Secara ringkas:
sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon
Wednesday, October 31, 2012
Pasang kernel terkini dari PPA
Kernel terkini memang mengujakan, selain dari "bragging right" untuk ada kernel terbaru, ia juga berguna untuk menguji ciri-ciri terbaru pada kernel yang ada di dalam git.
Selain dari kompil sendiri dari git, kita boleh pasang kernel terbaru dari PPA di sini.
Option linux-image-extra, menurut komen di sini adalah untuk kernel yang mengandungi driver-driver seperti untuk KVM dan Virtualbox.
Selamat mencuba!
Monday, October 29, 2012
Grabbing fastest mirror on Ubuntu
Netselect is not included by default, need to use Debian stable's netselect
1- Get it here, no dependency.
2- Find the fastest mirror:
3- Alter your sources.list and DONE!
1- Get it here, no dependency.
2- Find the fastest mirror:
netselect -v -s10 -t20 `wget -q -O- https://launchpad.net/ubuntu/+archivemirrors | grep -P -B8 "statusUP|statusSIX" | grep -o -P "(f|ht)tp.*\"" | tr '"\n' ' '`
3- Alter your sources.list and DONE!
Saturday, October 20, 2012
Ubuntu 12.10 dilancarkan
Ubuntu 12.10 telah dilancarkan. Antara pembaharuan yang dibawa ialah fungsi Amazon search di dalam versi kali ini. Untuk membuang fungsi carian tersebut anda boleh rujuk blog ini
Pendek kata guna arahan:
Pendek kata guna arahan:
sudoapt-get remove unity-lens-shopping
Tuesday, September 18, 2012
Buang kernel lama selepas upgrade
Run ni dulu:
Pastikan anda faham apa yang anda lakukan, segala risiko tidak akan saya tanggung.
Sumber asal
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'
Bila dah yakin, baru run:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purgePastikan anda faham apa yang anda lakukan, segala risiko tidak akan saya tanggung.
Sumber asal
Friday, August 24, 2012
Mount HFS+ partition sebagai read/write
Secara default jika kita mount partition Mac yang menggunakan filesystem HFS+, ia hanya akan beri permission "read only"
Perbincangan secara mendalam tentang hal ini boleh dibaca di sini
Perbincangan secara mendalam tentang hal ini boleh dibaca di sini
Thursday, August 23, 2012
VNC dari Mint(Ubuntu) ke Ubuntu
mac
dalam bilik, laptop dalam study room. sebab nak akses current desktop..
thinking of guna VNC. so install tightvnc. sebab malas nak config, each
session created by VNC server occupy port 5901...5902.. which is not
default.
akses pulak guna xtightvncviewer.. akses default port 5900. otherwise kena specify host:. solution. guna x11vnc
utk create vnc session, akses guna xtightvncviewer.
mmg awesome x11vnc ni.. very lightweight.
akses pulak guna xtightvncviewer.. akses default port 5900. otherwise kena specify host:
mmg awesome x11vnc ni.. very lightweight.
Wednesday, June 20, 2012
Subscribe to:
Posts (Atom)
