Archive for the 'Tips' Category
Cheat-Sheets.org is the only place I have been visiting for any quick reference, not only for Linux, but also other programming and web developments languages. They even have cheat sheet on chemistry topic?!
Quoted from there, these are the Linux cheat sheet you might need.
- Linux Command Line Tips [html] (pixelbeat.org)
- Linux Shortcuts and Commands [html] (linuxshortcuts.shtml)
- Unix/Linux Command Cheat Sheet by Jacob [pdf] (fosswire.net)
- The One Page Linux Manual by Squadron [pdf] (homepage.powerup.com.au/~squadron/, digilife.be)
- Linux Administrator’s Quick Reference by Jialong He [pdf] (tiger.la.asu.edu)
- Linux System Calls Quick Reference by Jialong He [pdf] (tiger.la.asu.edu)
- Linux Security Quick Reference by Dave Wreski & Benjamin Thomas [pdf] (tiger.la.asu.edu, digilife.be)
- screen Quick Reference [html] (aperiodic.net)
It has been a while I have been using kill command to stop the non responsive running process. But until yesterday then I found out there is a much simple linux command that can do the job of kill and even much better way.
It is pkill command. Pkill is written for Solaris7 and later has been implement for Linux and NetBSD. Unlike the kill command which you need to find out the specific process id to do the killing. With pkill, all you need is just to know the process name, if can’t remember the full or just maybe part of the process name.
So if I want to kill my firefox, just type in
pkill firefox
However, it might also kill process name match the search, maybe there is some other process also call firefox-bookmark or etc.
I think it is not a problem for many people to find out every time you start your Ubuntu and find out the boot up splash screen is 640 x 480, instead of your preset resolution. But for perfectionist, it is very suffering.
Ok, here is a 3 steps method to solve this.
type “sudo gedit /etc/usplash.conf” in your terminal. After accessing with your root permission. You will see something like
# Usplash configuration file
# These parameters will only apply after running update-initramfs.
xres=640
yres=480
Just change the xres and yres to what your favourite resolution. Maybe 1024 x 768, then xres=1024, yres=768. After that, save it.
The last step, you need to type “sudo update-initramfs –u” to update your initramfs.
Reboot your PC and see whether you have a nice boot up GUI.
I thought Pidgin can be heading towards more user friendly wise to gain on the IM market shares. But years already, I still didn’t see very aggressive GUI improvement from Pidgin.
One of the problems, I’m still facing is I want to minimize the buddy list during start up. In Pidgin default setting or the command line, you could not any of this. But here is a way how to get it done in just 3 simple steps.
Step 1. Install pidgin-extprefs from Synaptic
Saw this trick on downloadsquad.com, so share this tips here on how to reset your forgotten password.
- In GRUB message, press the escape key.
- Select the one with the recovery mode
- Boot up in shell until you reach the command prompt. Type in "passwd username" where username is your account username. (typing "ls /home" to bring it up)
- Enter your new password. Confirm your password again.
- Type "shutdown -r now" to reboot your system.
In Linux and Unix, users only allow to access files/folders with their permission only. However, under a superuser named root, users are able to have the privileges to all the administration work.
su root
su stands for Switch User. To access other users, just use their username instead of "root".
What Ubuntu different from other Linux distro is it includes sudo command. It will assign users for temporary root-level privileges. So, to execute your command in terminal under root-level privileges is simple, just add "sudo" before your command. Please note that the password require is user password and not the root password.
userA@machineA:~$ sudo vi /etc/testing.conf
"sudo -s" is equivalent to "su"
You do not have to worry when running GUI programs that require for root privileges as it will prompt for a password automatically.
For those used to Windows system, you might find Linux folder system is totally a confusion for you. Folders name such as /bin, /etc, /media really didn’t clear indicate the purpose. And most of the time you don’t know how to get back to the original path.
Here is a picture clearly illustrate how Linux folder system really works. Hope this really give you a clear picture. Basically, I normally mess around in /mnt, /etc, /dev and /home.
One of the purpose of my Linux desktop is to play media files! Yes, I subscribe plenty video feeds on Miro. It will automatically download new video files and play directly on it.
Good day does not last long, out of sudden my Miro starts to crash every time it plays to the last video on the playlist. Then I ran my Miro using the terminal console and found out that the error shown was "Segmentation fault".
This is not an isolated case, I have seen a lot enquiries about such problem. None of the any reply from Miro team or fixes for this problem. Here is a solution for your problem.
Nowadays, the hard disks sold on the market are usually more than 100GBs. Even though you have larger hard disk, but have you wonder why the maximum you could only have 4 primary partitions?
The reason is because in the first 512 bytes is reserved for the Master Boot Record (MBR). It stores the information of the partitions, but 512 bytes is only allows 4 primary partitions. So, if you have more partitions to create, then you need to create extended partition. And within the extended partition, you can have any number of logical partitions.
You have dual boot working on Windows XP and Linux running with GRUB, but for certain reason, you want to get rid of GRUB. So how to uninstall?
Here is the simple method, just boot up with your Windows XP cd, then goes to the recovery console, type in:
$ fixmbr
For Windows 9x and DOS:
$ fdisk /mbr





