<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-2150109385261698170</id><updated>2009-12-10T05:18:11.339+08:00</updated><title type='text'>linuxwave</title><subtitle type='html'>Linux is for everybody. Lets enjoy it.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default?orderby=updated'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default?start-index=26&amp;max-results=25&amp;orderby=updated'/><author><name>blackorga</name><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>101</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-5543915433872588081</id><published>2009-11-14T07:30:00.003+08:00</published><updated>2009-11-14T08:09:49.224+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><category scheme='http://www.blogger.com/atom/ns#' term='dd'/><category scheme='http://www.blogger.com/atom/ns#' term='file'/><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Creating specific sized file</title><content type='html'>To create a specific sized file, dd command can be used. Example below will create a file named output with 10M size:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;dd if=/dev/zero of=output bs=1M count=10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;where bs is block size, and count is number of blocks to be created&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The output:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;ls -lh output&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; color: rgb(204, 204, 204); line-height: 20px; "&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;-rw-r--r-- 1 user user 10M 2009-11-14 06:21 output&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-5543915433872588081?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/5543915433872588081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=5543915433872588081' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/5543915433872588081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/5543915433872588081'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/11/creating-specific-sized-file.html' title='Creating specific sized file'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-6005967039383466474</id><published>2009-11-13T06:53:00.001+08:00</published><updated>2009-11-14T07:30:10.304+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><category scheme='http://www.blogger.com/atom/ns#' term='split'/><category scheme='http://www.blogger.com/atom/ns#' term='archive'/><category scheme='http://www.blogger.com/atom/ns#' term='file'/><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Splitting big files</title><content type='html'>To split big files, split command can be used. Below is command used to split 400MB file named bigfile into 100MB chunk files named smallfile0*&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;split -b 100M -d --verbose bigfile smallfile&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;creating file 'smallfile00'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;creating file 'smallfile01'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;creating file 'smallfile02'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;creating file 'smallfile03'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;where -b is for byte size, -d is for numeric suffixes and smallfile is the prefix to be used&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The output is:&lt;/div&gt;&lt;div&gt;$ &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;ls&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;bigfile smallfile00 smallfile01 smallfile02 smallfile03&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To recover back the splitted files into a file named newbigfile:&lt;/div&gt;&lt;div&gt;$ &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;cat smallfile0* &gt; newbigfile&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-6005967039383466474?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/6005967039383466474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=6005967039383466474' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/6005967039383466474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/6005967039383466474'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/11/splitting-big-files.html' title='Splitting big files'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-2995359833995981146</id><published>2009-09-29T05:34:00.004+08:00</published><updated>2009-09-29T06:10:40.261+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grub'/><category scheme='http://www.blogger.com/atom/ns#' term='hard disk'/><title type='text'>Restore GRUB</title><content type='html'>GRUB is a boot loader commonly used with linux operating system. It can be used to managed dual boot environment where linux and windows can coexist easily in a same machine without problem provided you install the windows OS first so that when you install linux, GRUB will overwrite Windows boot loader and automatically detect and manage both operating system the next time you boot your computer. Problems will happen if you alter your partitions outside the knowledge of GRUB, for example, you create new partition in your hard drive using windows. This will cause GRUB to automatically go into GRUB shell when boot. To restore back your GRUB is very simple, just follow easy steps below:&lt;br /&gt;&lt;br /&gt;1. find in which partition does GRUB store its configuration file, which is your /boot partition. (hd0,2) means third partition of the first hard drive&lt;br /&gt;grub&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;find /boot/grub/stage1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;(hd0,2)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. set the root for GRUB to be (hd0,2)&lt;br /&gt;grub&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;root (hd0,2)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. write GRUB to the Master boot record(MBR) of your hard drive. Change (hd0) to (hd0,2) to write GRUB to your /boot partition instead&lt;br /&gt;grub&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;setup (hd0)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Reboot machine&lt;br /&gt;grub&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;reboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;All those steps can also be used using livecd, if let say the grub shell did not come out but you cannot boot your machine or you cannot boot your linux due to messed up GRUB. just boot from livecd, open a terminal, and type "grub" as a superuser to go to GRUB shell&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-2995359833995981146?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/2995359833995981146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=2995359833995981146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/2995359833995981146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/2995359833995981146'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/09/restore-grub.html' title='Restore GRUB'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-8686772156920915556</id><published>2009-08-06T07:36:00.006+08:00</published><updated>2009-08-06T08:12:29.031+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><category scheme='http://www.blogger.com/atom/ns#' term='share'/><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>Mounting Windows shared folder on linux</title><content type='html'>Mounting windows shared folder on linux is very easy provided you know the ip of the windows machine, the name of the folder that is being shared, the username and password of the windows machine. As far as I know, there are 2 ways you can mount your windows shared folder on your linux machine.&lt;br /&gt;&lt;br /&gt;The first way:&lt;br /&gt;&lt;br /&gt;For gnome user, type Ctrl+F2, and type smb://windows_machine_ip/shared_folder_name. For example, see below picture&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_7fF0k-ob7JM/SnoZhY48n-I/AAAAAAAAAGE/6nYa3s4xb30/s1600-h/Screenshot-Run+Application.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 126px;" src="http://2.bp.blogspot.com/_7fF0k-ob7JM/SnoZhY48n-I/AAAAAAAAAGE/6nYa3s4xb30/s320/Screenshot-Run+Application.png" alt="" id="BLOGGER_PHOTO_ID_5366629967373049826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can access the folder from Places&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_7fF0k-ob7JM/SnoboNd9KII/AAAAAAAAAGM/XbRQfSZ6Urc/s1600-h/Screenshot-1.png"&gt;&lt;img style="cursor: pointer; width: 330px; height: 206px;" src="http://2.bp.blogspot.com/_7fF0k-ob7JM/SnoboNd9KII/AAAAAAAAAGM/XbRQfSZ6Urc/s320/Screenshot-1.png" alt="" id="BLOGGER_PHOTO_ID_5366632283589388418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The second way:&lt;br /&gt;&lt;br /&gt;Using command line;&lt;br /&gt;&lt;br /&gt;sudo mount -t cifs //windows_machine_ip/shared_folder_name /directory_to_mount -o username=username,password=userpassword&lt;br /&gt;&lt;br /&gt;example for mounting a shared folder named MP3 on 192.168.1.110 using windows username usin and password 123456 to /home/user/mp3:&lt;br /&gt;&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo mount -t cifs //192.168.1.110/MP3 /home/user/mp3 -o username=usin,password=123456&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Your shared folder now can be accessed from /home/user/mp3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That's all friends :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-8686772156920915556?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/8686772156920915556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=8686772156920915556' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/8686772156920915556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/8686772156920915556'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/08/mounting-windows-shared-folder-on-linux.html' title='Mounting Windows shared folder on linux'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_7fF0k-ob7JM/SnoZhY48n-I/AAAAAAAAAGE/6nYa3s4xb30/s72-c/Screenshot-Run+Application.png' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-3650009968183299677</id><published>2009-07-24T05:57:00.005+08:00</published><updated>2009-07-24T08:29:46.629+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fstab'/><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='partition'/><category scheme='http://www.blogger.com/atom/ns#' term='hard disk'/><category scheme='http://www.blogger.com/atom/ns#' term='label'/><title type='text'>Labeling linux partition</title><content type='html'>In linux, to label a partition, there are 3 tools that can be used. The tools are e2label, tune2fs and mke2fs.&lt;br /&gt;&lt;br /&gt;To use e2label to label the second partition of the first hardisk with label DATA:&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;e2label /dev/sda2 DATA&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To use tune2fs to do the similar job as above:&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;tune2fs -L DATA /dev/sda2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The third tool, mke2fs is actually a tool to build ext2/ext3 filesystem. So, if you want to build the partition's filesystem as ext2/ext3 and at the same time label it, this command can be used. Be careful though, because it will delete all existing data on that particular partition&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;mke2fs -L DATA /dev/sda2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To view the label that you have set, there are 3 ways which are using e2label, blkid and  viewing /dev/disk/by-label.&lt;br /&gt;&lt;br /&gt;To check using e2label:&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;e2label /dev/sda2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;DATA&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;blkid tool is even more useful, because it can list out all the partitions that you have in the machine together with their labels,uuid and filesystem type:&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;blkid&lt;/span&gt;&lt;br /&gt;/&lt;span style="color: rgb(51, 204, 0);"&gt;dev/sda1: LABEL="/" UUID="1CC08F13C08EF276" TYPE="ext3" &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;/dev/sda2: LABEL="DATA" UUID="2063f830-fe5d-438e-b727-571b313cb89e" TYPE="ext3" &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;/dev/sda3: TYPE="swap" LABEL="SWAP" UUID="3e266b53-42e0-4f09-8fe3-d1cf79cb5d37" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To view the /dev/disk/by-label&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;ls -l /dev/disk/by-label&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;total 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;lrwxrwxrwx 1 root root 10 2009-07-24 05:38 / -&gt; ../../sda1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;lrwxrwxrwx 1 root root 10 2009-07-24 05:38 DATA -&gt; ../../sda2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;lrwxrwxrwx 1 root root 10 2009-07-24 05:38 SWAP -&gt; ../../sda3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note that the label will stay with the partition although the disk is moved to another computer.&lt;br /&gt;&lt;br /&gt;To use it in /etc/fstab:&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;LABEL=/        /                    ext3    defaults        1 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;LABEL=DATA /DATA ext3 defaults  1 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;LABEL=SWAP swap swap defaults 0 0&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-3650009968183299677?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/3650009968183299677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=3650009968183299677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/3650009968183299677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/3650009968183299677'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/07/labeling-linux-partition.html' title='Labeling linux partition'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-2051890239269547892</id><published>2009-06-15T19:29:00.007+08:00</published><updated>2009-07-24T05:54:18.168+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='checksum'/><category scheme='http://www.blogger.com/atom/ns#' term='md5'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Validate your downloaded files using md5</title><content type='html'>When you download files, especially iso for your favourite linux distro, how do you validate the files is properly downloaded or not? This is where md5 checksum comes into picture. From manpage of md5sum; md5sum is used to compute and check MD5 message digest. What is MD5 exactly?&lt;br /&gt;&lt;br /&gt;"MD5 is a widely used cryptographic hash function with a 128-bit&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt; hash value. As an Internet standard (RFC 1321), MD5 has been employed in a wide variety of security applications, and is also commonly used to check the integrity of files. However, it has been shown that MD5 is not collision resistant&lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Md5#cite_note-0"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;; as such, MD5 is not suitable for applications like SSL certificates or digital signatures&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt; that rely on this property. An MD5 hash is typically expressed as a 32 digit hexadecimal number "&lt;br /&gt;&lt;br /&gt;The above definition is extracted from &lt;a href="http://en.wikipedia.org/wiki/Md5"&gt;www.wikipedia.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To make it simple, the usage to this magnificent tool is just to validate the correctness of any file that we download from the internet. This is very important especially when we downloaded big files such as linux distro iso so that we won't burn a corrupted iso. The easiest way to check the correctness of the iso is by using md5sum&lt;br /&gt;&lt;br /&gt;How to use:&lt;br /&gt;&lt;br /&gt;to check the md5sum of a file&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;md5sum filename&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;Lets say we have a file named test.txt. Run the md5sum command to this file:&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;md5sum test.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;d968a9cf53f4cb21b06a888e2a6f4cb6&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Compare the string that we got with the md5 string provided by the provider of the file. If similar, test.txt is in good order.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you have more than one file to be checked, use flag -c to check from file. Example, we have 2 files, test.txt and test2.txt, and we want to check both using md5 validation. First, create a file that follow the format &lt;md5string&gt;&lt;filename&gt;where first column is for md5 string, then 2 spaces(press spacebar 2 times) and the next column is the name of the file like below:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;d968a9cf53f4cb21b06a888e2a6f4cb6  test.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;52dba85eb1460f265ddf3de51e91652a  test2.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Save the file as md5sum.txt&lt;br /&gt;&lt;br /&gt;Place the md5sum.txt with test.txt and test2.txt in a same folder&lt;br /&gt;&lt;br /&gt;Run md5sum command to check:&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;md5sum -c md5sum.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If success, the output will be like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;test.txt  OK&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;test2.txt  OK&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You are done with the testing and test.txt and test2.txt is validated as correct using MD5 checksum :)&lt;/filename&gt;&lt;/md5string&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-2051890239269547892?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/2051890239269547892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=2051890239269547892' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/2051890239269547892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/2051890239269547892'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/06/validate-your-downloaded-files-using.html' title='Validate your downloaded files using md5'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-1370848069102211399</id><published>2009-06-22T20:35:00.009+08:00</published><updated>2009-07-23T08:09:41.352+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='serial'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Centos'/><title type='text'>Hyper terminal for linux</title><content type='html'>For people that manage hardware devices such as storage, routers and many more using Microsoft Windows, the term hyper terminal is a familiar thing. They use hyper terminal to connect to all the devices mentioned above using serial cable. But what if you have to manage all those devices using linux?&lt;br /&gt;&lt;br /&gt;The answer is, linux has 2 alternatives to hyper terminal; one is command line based and the other is GUI based. Let me start with the command line tool first. It is called minicom. You can install this tool using package manager of your linux machine. In fedora/redhat/centos:&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;yum install minicom&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Running it for the first time requires you to do some settings by running below command as root:&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;minicom -s&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Picture below shows the screen after command &lt;span style="color: rgb(255, 0, 0);"&gt;minicom -s&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_7fF0k-ob7JM/SmentQWd63I/AAAAAAAAAF8/nqj8YYM2gkI/s1600-h/Screenshot-wuntar%40wuntar:%7E-1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 182px;" src="http://4.bp.blogspot.com/_7fF0k-ob7JM/SmentQWd63I/AAAAAAAAAF8/nqj8YYM2gkI/s320/Screenshot-wuntar%40wuntar:%7E-1.png" alt="" id="BLOGGER_PHOTO_ID_5361438277333019506" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is where you set the baudrate, serial device you want to use etc. After finish with the setting, save it so that you do not have to do it every time. You can save it to default .dfl file, with the name of .minirc.dfl in your home folder, or you can specify the name and location yourselves. To change the saved setting, just use the above command back.&lt;br /&gt;&lt;br /&gt;The second tool is called cutecom, a graphical serial terminal. To install it on fedora,centos or redhat:&lt;br /&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;yum install cutecom&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It is easier to use since it has GUI. Picture below shows cutecom main screen, where you can set your device, parity, baudrate etc.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_7fF0k-ob7JM/SmenPOA-aoI/AAAAAAAAAF0/1UkSzPkZ13c/s1600-h/Screenshot-CuteCom.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 182px;" src="http://4.bp.blogspot.com/_7fF0k-ob7JM/SmenPOA-aoI/AAAAAAAAAF0/1UkSzPkZ13c/s320/Screenshot-CuteCom.png" alt="" id="BLOGGER_PHOTO_ID_5361437761309928066" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-1370848069102211399?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/1370848069102211399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=1370848069102211399' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/1370848069102211399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/1370848069102211399'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/06/hyper-terminal-for-linux.html' title='Hyper terminal for linux'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_7fF0k-ob7JM/SmentQWd63I/AAAAAAAAAF8/nqj8YYM2gkI/s72-c/Screenshot-wuntar%40wuntar:%7E-1.png' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-6928661475454152408</id><published>2008-06-19T12:35:00.007+08:00</published><updated>2009-05-27T06:12:25.951+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='Centos'/><title type='text'>Allowing user to run root privileged commands</title><content type='html'>To allow normal user to run root privileged commands, you have to use sudo. Sudo allows a user to run commands as superuser or another user. To set your user to be able to use sudo to act as superuser, a number of steps have to be done.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Login as superuser(root)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Edit sudoers file using visudo&lt;br /&gt;&lt;/li&gt;&lt;ul style="color: rgb(255, 0, 0);"&gt;&lt;li&gt;# visudo&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Uncomment the below line and save. visudo use vi as text editor, so to save just press 'Esc' and then ':wq'&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="color: rgb(51, 51, 255);"&gt;&lt;ul&gt;&lt;li&gt;%wheel  ALL=(ALL)       ALL&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Add your user to the group wheel(You can use any name for the group as long as you add it to the sudoers file). As example, we will use  'foo' as our username&lt;br /&gt;&lt;/li&gt;&lt;ul style="color: rgb(255, 0, 0);"&gt;&lt;li&gt;# usermod -G wheel foo&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;To make all the superuser's environment variable available to the user, edit /home/foo/.bash_profile&lt;/li&gt;&lt;ul style="color: rgb(255, 0, 0);"&gt;&lt;li&gt;# vi /home/foo/.bash_profile&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Add the following lines, append if the line already exist.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;ul style="color: rgb(51, 51, 255);"&gt;&lt;li&gt;PATH=$PATH:/sbin:/usr/sbin&lt;/li&gt;&lt;li&gt;export PATH&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Save the file&lt;/li&gt;&lt;li&gt;To activate the changes, run&lt;br /&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;# . .bash_profile&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Now, you can use superuser environment variables, but without tab completion feature. To enable tab completion feature, edit /home/foo/.bashrc&lt;/li&gt;&lt;ul&gt;&lt;li style="color: rgb(255, 0, 0);"&gt;# vi /home/foo/.bashrc&lt;/li&gt;&lt;li&gt;Add the following line&lt;/li&gt;&lt;ul style="color: rgb(51, 51, 255);"&gt;&lt;li&gt;complete -cf sudo&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Save the file&lt;/li&gt;&lt;li&gt;To activate the changes, run&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;# . .bashr&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;c&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Logout and login back. Now you can use sudo to execute root privileged commands, you inherited the root environment variables and you can use tab completion while using sudo&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-6928661475454152408?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/6928661475454152408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=6928661475454152408' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/6928661475454152408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/6928661475454152408'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2008/06/allowing-user-to-run-root-privileged.html' title='Allowing user to run root privileged commands'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-2710819983391231053</id><published>2009-05-24T11:36:00.001+08:00</published><updated>2009-05-25T12:13:51.775+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='Centos'/><title type='text'>Setting ip in redhat,fedora and centos</title><content type='html'>For redhat, fedora and centos, to set ip temporarily, you can use &lt;span style="color: rgb(255, 0, 0);"&gt;ifconfig&lt;/span&gt; and &lt;span style="color: rgb(255, 0, 0);"&gt;route&lt;/span&gt; commands(you have to be root to do these steps)&lt;br /&gt;&lt;br /&gt;1. Run the command below to set ip and netmask&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt; ifconfig eth0 10.20.1.10 netmask 255.255.255.0 up&lt;/span&gt;&lt;br /&gt;where eth0 is the name of the interface, 255.255.255.0 is the netmask and up to activate the interface&lt;br /&gt;&lt;br /&gt;2. run route command to set default gateway&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;route add default gw 10.20.1.1&lt;/span&gt;&lt;br /&gt;where 10.20.1.1 is your gateway ip&lt;br /&gt;&lt;br /&gt;3. You can check the configuration that you have setup using commands &lt;span style="color: rgb(255, 0, 0);"&gt;route -n&lt;/span&gt; to see the gateway and &lt;span style="color: rgb(255, 0, 0);"&gt;ifconfig&lt;/span&gt; to see the ip address&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To setup the ip and gateway permanently, follow below steps (You have to be root to do these steps)&lt;br /&gt;&lt;br /&gt;1. Go to folder /etc/sysconfig/network-scripts&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;cd /etc/sysconfig/network-scripts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Backup your existing configuration&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;cp ifcfg-eth0 ifcfg-eth0.bak&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Open ifcfg-eth0 with your favorite editor&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;vi ifcfg-eth0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Add below line to the ifcfg-eth0 file to setup your ip&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;BOOTPROTO=static&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;DEVICE=eth0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;IPADDR=10.20.1.20&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;NETMASK=255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;NETWORK=10.20.1.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;ONBOOT=yes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;TYPE=Ethernet&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Save the file&lt;br /&gt;&lt;br /&gt;6. Add below line to /etc/sysconfig/network to set your gateway&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;GATEWAY=10.20.1.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7. Save and restart network&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;/etc/init.d/network restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8. Done. Check your newly created ip using &lt;span style="color: rgb(255, 0, 0);"&gt;ifconfig&lt;/span&gt; and gateway using &lt;span style="color: rgb(255, 0, 0);"&gt;route -n&lt;/span&gt; commands&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-2710819983391231053?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/2710819983391231053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=2710819983391231053' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/2710819983391231053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/2710819983391231053'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/05/setting-ip-in-redhatfedora-and-centos.html' title='Setting ip in redhat,fedora and centos'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-3344241758498332154</id><published>2009-05-25T10:45:00.005+08:00</published><updated>2009-05-25T11:58:55.701+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Setting ip in debian/ubuntu server</title><content type='html'>To setup ip for debian or ubuntu server is not easy for someone who is not familiar with command line. For normal ubuntu desktop user, there is always NetworkManager applet to easily set up the network using GUI, which is very easy. There are 2 ways to setup ip for debian or ubuntu server. One will set the ip temporarily and the otehr one will permanently set the ip. I will show both :)&lt;br /&gt;&lt;br /&gt;To set ip temporarily using &lt;span style="color: rgb(255, 0, 0);"&gt;ifconfig&lt;/span&gt; and &lt;span style="color: rgb(255, 0, 0);"&gt;route&lt;/span&gt; commands&lt;br /&gt;&lt;br /&gt;1. Run the command below to set ip and netmask&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo ifconfig eth0 10.20.1.10 netmask 255.255.255.0 up&lt;/span&gt;&lt;br /&gt;where eth0 is the name of the interface, 255.255.255.0 is the netmask and up to activate the interface&lt;br /&gt;&lt;br /&gt;2. run route command to set default gateway&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo route add default gw 10.20.1.1&lt;/span&gt;&lt;br /&gt;where 10.20.1.1 is your gateway ip&lt;br /&gt;&lt;br /&gt;3. You can check the configuration that you have setup using commands &lt;span style="color: rgb(255, 0, 0);"&gt;route -n&lt;/span&gt; to see the gateway and &lt;span style="color: rgb(255, 0, 0);"&gt;ifconfig&lt;/span&gt; to see the ip address&lt;br /&gt;&lt;br /&gt;Done.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To permanently set up the ip and gateway, you have to edit /etc/network/interfaces. It is advisable if you backup the existing interfaces file, if it is available.&lt;br /&gt;&lt;br /&gt;1. Backup /etc/network/interfaces&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo cp /etc/network/interfaces /etc/network/interfaces.bak&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Open the /etc/network/interfaces using your favorite text editor&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo vi /etc/network/interfaces&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Add the below setting to add ip, netmask and gateway&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;# The loopback interface&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;auto lo&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;iface lo inet loopback &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;# The first network card - this entry was created during the Debian installation&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;# (network, broadcast and gateway are optional)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;auto eth0 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;iface eth0 inet static&lt;br /&gt;#set your &lt;span class="IL_SPAN"&gt;&lt;input name="IL_MARKER" type="hidden"&gt;static IP&lt;/span&gt; below&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;address 10.20.1.10 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;#set your default gateway IP here&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;gateway 10.20.1.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;# set your netmask, network and broadcast ip below&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;netmask 255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;network 10.20.1.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;broadcast 10.20.1.255  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Save your configuration and restart network&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo /etc/init.d/network restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Your debian/ubuntu server machine is now operating with the new ip. Check ip and gateway using &lt;span style="color: rgb(255, 0, 0);"&gt;ifconfig&lt;/span&gt; and &lt;span style="color: rgb(255, 0, 0);"&gt;route -n&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-3344241758498332154?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/3344241758498332154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=3344241758498332154' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/3344241758498332154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/3344241758498332154'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/05/setting-ip-in-debianubuntu-server.html' title='Setting ip in debian/ubuntu server'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-198425752503090192</id><published>2009-04-27T09:41:00.003+08:00</published><updated>2009-04-27T10:02:23.169+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='opensource news'/><title type='text'>MSCOSCONF2009</title><content type='html'>MSC Malaysia Open Source Software Conference(MSCOSCONF2009) is an open source conference that will be held in Malaysia on 31 May - 3 June, 2009, organized by MAMPU and MDEC of Malaysia. There will be great speakers presenting their stuff on the event, great activities and much more. For further details, visit &lt;a href="http://www.mscmalaysia.my/osconf"&gt;http://www.mscmalaysia.my/osconf&lt;/a&gt; and &lt;a href="http://www.mscoscon.my/"&gt;http://www.mscoscon.my&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-198425752503090192?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/198425752503090192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=198425752503090192' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/198425752503090192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/198425752503090192'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/04/osconf-2009.html' title='MSCOSCONF2009'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-3878218221580524844</id><published>2009-04-14T12:11:00.004+08:00</published><updated>2009-04-14T12:58:47.539+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Installing virtualbox 2.2.0 on ubuntu 8.10</title><content type='html'>To install virtualbox is fairly easy. Just follow the instructions below:&lt;br /&gt;&lt;br /&gt;1. Open /etc/apt/sources.list and add this line &lt;span style="color: rgb(51, 51, 255);"&gt;deb http://download.virtualbox.org/virtualbox/debian intrepid non-free&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;2. Import sun public-key and register it using apt-key (wget is for downloading, apt-key is for registering the key to your machine)&lt;br /&gt;$ &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O - | sudo apt-key add -&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;OK&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;3. Update your system's package index file&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo apt-get update&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;4. Install virtualbox 2.2&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo apt-get install virtualbox-2.2&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Done, that's all :)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-3878218221580524844?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/3878218221580524844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=3878218221580524844' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/3878218221580524844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/3878218221580524844'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/04/installing-virtualbox-220-on-ubuntu-810.html' title='Installing virtualbox 2.2.0 on ubuntu 8.10'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-208216765451570288</id><published>2009-04-10T10:30:00.020+08:00</published><updated>2009-04-10T16:18:19.420+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apt'/><category scheme='http://www.blogger.com/atom/ns#' term='deb'/><category scheme='http://www.blogger.com/atom/ns#' term='dpkg'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Adding local directory to apt sources.list</title><content type='html'>I faced this problem when trying to install the latest version of lyx, frontend for the famous LaTeX/TeX document processor. Lyx is available at the ubuntu main repo, but the version is kind of outdated. After checking at&lt;a href="http://www.getdeb.net/"&gt; http://www.getdeb.net&lt;/a&gt;, a latest version is available. After downloading the lyx and lyx-common package from &lt;a href="http://www.getdeb.net/release/4122"&gt;here&lt;/a&gt;, I tried to install both of them using "&lt;span style="color: rgb(255, 0, 0);"&gt;dpkg -i *.deb&lt;/span&gt;" but they have unsatisfied dependencies. One of the way to solve this is to download all the dependencies and put them inside one directory, and run "&lt;span style="color: rgb(255, 0, 0);"&gt;dpkg -i *.deb&lt;/span&gt;" but I think I wanna try another solution which is using apt to install them. This is where "Adding local directory to apt sources.list" comes into the picture. The steps will be explained below:&lt;br /&gt;&lt;br /&gt;1. Create the directory to put all the deb files you downloaded, in this case I'll create /home/foo/debs&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;mkdir /home/foo/debs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Put all the downloaded deb files into the directory&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;mv /home/foo/Desktop/*.deb /home/foo/debs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Check the current priorities and section for the package, find entry named Section and Priority:&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;dpkg --info lyx_1.6.2-1~getdeb1_i386.deb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here are some of the info:&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;Package: lyx&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;Section: editors&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;Priority: optional&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;Homepage: http://www.lyx.org/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Create override file. Override file is used to override the default priority and section setting of the package (refer to no. 3 for guide on how to check section and priority). Override file contains 3 columns: package, priority, section. Package is the name of the package, priority is low, medium, high or optional and section is the section to which it belongs.&lt;br /&gt;Example of override file content:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;## Override&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;br /&gt;#Package priority section&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;br /&gt;lyx low editors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Create Packages.gz inside /home/foo/debs&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;cd /home/foo/debs&lt;/span&gt;&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo dpkg-scanpackages . override | gzip -c9 &gt; Packages.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. If you are too lazy to do the override file, you do not have to. Just change the "dpkg --scanpackages" command above to this:&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;cd /home/foo/bar&lt;/span&gt;&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo dpkg-scanpackages . /dev/null | gzip -c9 &gt; Packages.gz&lt;/span&gt;&lt;br /&gt;If you follow this path, ignore step 4 and 5&lt;br /&gt;&lt;br /&gt;7. Add this line to /etc/apt/sources.list&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;deb file:///home/foo/debs /&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8. Resynchronize the package index files from their sources&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo apt-get update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9. Install your application (in this case, lyx)&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo apt-get install lyx&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Apt will fetch the deb files from your local file directory also. Congratulations, you just created a local file repository in your own computer :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-208216765451570288?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/208216765451570288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=208216765451570288' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/208216765451570288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/208216765451570288'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/04/adding-local-directory-to-apt.html' title='Adding local directory to apt sources.list'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-195718112646445349</id><published>2009-03-31T14:53:00.003+08:00</published><updated>2009-03-31T15:14:47.777+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grub'/><category scheme='http://www.blogger.com/atom/ns#' term='suse'/><title type='text'>Suse forgotten root password</title><content type='html'>In suse, if you forgot your root password, you can go to the single mode as usual. Steps are explained below:&lt;br /&gt;&lt;br /&gt;1. Reboot the machine&lt;br /&gt;2. When &lt;span style="color: rgb(51, 204, 0);"&gt;Startup Options&lt;/span&gt;(blue background in SLES) appear, choose &lt;span style="color: rgb(51, 204, 0);"&gt;Failsafe &lt;span style="color: rgb(0, 0, 0);"&gt;mode&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;3. In the &lt;span style="color: rgb(51, 204, 0);"&gt;Boot Options&lt;/span&gt;, append &lt;span style="color: rgb(51, 102, 255);"&gt;init=/bin/sh&lt;/span&gt; at the end of the line&lt;br /&gt;4. Press &lt;span style="color: rgb(255, 102, 0);"&gt;Enter&lt;/span&gt; to boot&lt;br /&gt;5. You will be presented with a shell. Change your password using command &lt;span style="color: rgb(255, 0, 0);"&gt;passwd root&lt;/span&gt;&lt;br /&gt;6. Reboot the machine. root is now can be accessed using your new password&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-195718112646445349?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/195718112646445349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=195718112646445349' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/195718112646445349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/195718112646445349'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/03/suse-forgotten-root-password.html' title='Suse forgotten root password'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-7130360326591738358</id><published>2009-03-25T10:35:00.004+08:00</published><updated>2009-03-25T11:01:17.166+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Changing default shell in ubuntu</title><content type='html'>I faced this problem when I created a new account using command line where the default shell of my new account is /bin/sh. After googling around, I found 2 useful solutions which are listed below:&lt;br /&gt;&lt;br /&gt;1. Change user entry in /etc/passwd&lt;br /&gt;  a) edit /etc/passwd using any editor&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;vi /etc/passwd&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;   b) find the line that belongs to the user (foo) that we about to modify&lt;br /&gt;&lt;ul style="color: rgb(0, 0, 0);"&gt;&lt;li&gt; &lt;span style="color: rgb(51, 204, 0);"&gt;foo:x:1001:1001::/home/foo:/bin/sh&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   c) change from /bin/sh to /bin/bash&lt;br /&gt;&lt;ul style="color: rgb(0, 0, 0);"&gt;&lt;li&gt; &lt;span style="color: rgb(51, 204, 0);"&gt;foo:x:1001:1001::/home/foo:/bin/bash&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   d) save&lt;br /&gt;  e) Logout and login back&lt;br /&gt;&lt;br /&gt;2. Use chsh command&lt;br /&gt;  a) type chsh&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;chsh&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   b) You will be asked for password. Enter your password&lt;br /&gt;  c) This screen will appear&lt;br /&gt;&lt;ul&gt;&lt;li&gt; &lt;span style="color: rgb(51, 204, 0);"&gt;Enter the new value, or press ENTER for the default&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    Login Shell [/bin/sh]:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   d) Put &lt;span style="color: rgb(51, 51, 255);"&gt;/bin/bash&lt;/span&gt; at the menu and press Enter&lt;br /&gt;&lt;br /&gt;Done :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-7130360326591738358?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/7130360326591738358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=7130360326591738358' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/7130360326591738358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/7130360326591738358'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/03/changing-default-shell-in-ubuntu.html' title='Changing default shell in ubuntu'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-6733197809687017752</id><published>2009-03-19T21:21:00.002+08:00</published><updated>2009-03-19T21:37:41.995+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenOffice'/><title type='text'>Turn off automatic first capital letter in openoffice</title><content type='html'>By default, openoffice will automatically turn the first letter to capital in a sentence. This feature is very useful but sometimes you do not want your first letter in your sentence to be capital. There is a setting that you have to turn off to make this happen. This steps have been tested on openoffice 3.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;go to &lt;span style="color: rgb(255, 0, 0);"&gt;Tools&lt;/span&gt; -&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;AutoCorrect&lt;/span&gt;&lt;/li&gt;&lt;li&gt;go to &lt;span style="color: rgb(255, 0, 0);"&gt;Options&lt;/span&gt; tab&lt;/li&gt;&lt;li&gt;Uncheck &lt;span style="color: rgb(255, 0, 0);"&gt;Capitalize first letter of every sentence &lt;span style="color: rgb(0, 0, 0);"&gt;under [T] which means disable capitalize first letter of every sentence when typing&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Click on &lt;span style="color: rgb(255, 0, 0);"&gt;OK&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;Done :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-6733197809687017752?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/6733197809687017752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=6733197809687017752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/6733197809687017752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/6733197809687017752'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/03/turn-off-automatic-first-capital-letter.html' title='Turn off automatic first capital letter in openoffice'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-3417561555451068732</id><published>2007-07-12T17:36:00.002+08:00</published><updated>2009-03-05T10:48:14.734+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='editor'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Setting default editor in ubuntu</title><content type='html'>To change the default editor for your ubuntu machine, here is the step:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;type:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;update-alternatives --config editor&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Select which editor that you want to set as default by typing its number. For below example, vim(1) is chosen.&lt;/li&gt;&lt;/ol&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_7fF0k-ob7JM/RpX4H7sPPeI/AAAAAAAAABM/jPjM9a7YaJI/s1600-h/Screenshot-cropped.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_7fF0k-ob7JM/RpX4H7sPPeI/AAAAAAAAABM/jPjM9a7YaJI/s200/Screenshot-cropped.png" alt="" id="BLOGGER_PHOTO_ID_5086244169350856162" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;Another method to do the similar task is by using command select-editor:&lt;br /&gt;&lt;br /&gt;1. type the command&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;select-editor&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;Select an editor.  To change later, run 'select-editor'.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  1. /usr/bin/vim.tiny                  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  2. /bin/ed                  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  3. /bin/nano        &lt;---- easiest&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;Choose 1-3 [3]: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Choose from the list given. In the case above, if you want vim to be your  default editor,  type &lt;span style="color: rgb(0, 0, 0);"&gt;'&lt;span style="color: rgb(51, 51, 255);"&gt;1&lt;/span&gt;'&lt;/span&gt; and press '&lt;span style="color: rgb(255, 102, 0);"&gt;enter&lt;/span&gt;'&lt;br /&gt;&lt;br /&gt;3. Finish&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-3417561555451068732?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/3417561555451068732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=3417561555451068732' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/3417561555451068732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/3417561555451068732'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2007/07/changing-default-editor-in-ubuntu.html' title='Setting default editor in ubuntu'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_7fF0k-ob7JM/RpX4H7sPPeI/AAAAAAAAABM/jPjM9a7YaJI/s72-c/Screenshot-cropped.png' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-1674054578747207733</id><published>2009-03-03T14:03:00.004+08:00</published><updated>2009-03-03T15:23:05.959+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenOffice'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Installing microsoft truetype font on ubuntu</title><content type='html'>The reason we need this microsoft truetype fonts is that we want the documents created in microsoft office to be nicely opened in openoffice. To install microsoft trutype fonts:&lt;br /&gt;&lt;br /&gt;1. Run the command below to install msttcorefonts. You can also use synaptics package manager to install if you are not familiar with terminal&lt;br /&gt;&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo apt-get install msttcorefonts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. To immediately use the new font, run the command below to rebuild back font information cache files&lt;br /&gt;&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;sudo fc-cache -fv&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Your new fonts are ready to be used. Fonts that are already installed are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;  Andale Mono&lt;/li&gt;&lt;li&gt;  Arial Black&lt;/li&gt;&lt;li&gt;  Arial (Bold, Italic, Bold Italic)&lt;/li&gt;&lt;li&gt;  Comic Sans MS (Bold)&lt;/li&gt;&lt;li&gt;  Courier New (Bold, Italic, Bold Italic)&lt;/li&gt;&lt;li&gt;  Georgia (Bold, Italic, Bold Italic)&lt;/li&gt;&lt;li&gt;  Impact&lt;/li&gt;&lt;li&gt;  Times New Roman (Bold, Italic, Bold Italic)&lt;/li&gt;&lt;li&gt;  Trebuchet (Bold, Italic, Bold Italic)&lt;/li&gt;&lt;li&gt;  Verdana (Bold, Italic, Bold Italic)&lt;/li&gt;&lt;li&gt;  Webdings&lt;/li&gt;&lt;/ul&gt;To add another font besides listed above, just copy the fonts files, and put it inside &lt;em style="color: rgb(51, 204, 0);"&gt;~/.fonts/&lt;/em&gt;. You can find the fonts files from &lt;a href="http://sourceforge.net/"&gt;sourceforge&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-1674054578747207733?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/1674054578747207733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=1674054578747207733' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/1674054578747207733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/1674054578747207733'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/03/installing-microsoft-truetype-font-on.html' title='Installing microsoft truetype font on ubuntu'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-8936477326475807504</id><published>2009-02-05T17:38:00.007+08:00</published><updated>2009-03-03T11:10:27.838+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hard disk'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><title type='text'>Unmounting busy device</title><content type='html'>You have an external drive attached to your linux machine. Then after finishing all your job, you try to unmount it, a message come out saying the device is busy.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;umount&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);font-family:georgia;" &gt; /media/dis&lt;/span&gt;&lt;span style="font-family:webdings;"&gt;&lt;span style="color: rgb(255, 0, 0);font-family:georgia;" &gt;k&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:georgia;" &gt;umount: /media/disk: device is busy&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);font-family:webdings;" &gt;&lt;/span&gt;&lt;span style="font-family:webdings;"&gt;&lt;span style="color: rgb(51, 204, 0);font-family:georgia;" &gt;umount: /media/disk: device is busy&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;br /&gt;So what could possibly the cause?&lt;br /&gt;&lt;br /&gt;1. You are inside the disk. Check your working directory using pwd&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; pwd&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;/media/disk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Some files are accessing the disk. Check list of open files using lsof&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; lsof | grep /media/disk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Some processes areaccessing the disk. Use fuser to check&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; fuser -m /media/disk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What to do?&lt;br /&gt;&lt;br /&gt;1. For case 1, just go to another directory&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; cd&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; umount /media/disk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. For case 2, check the files that are accessing the disk and kill it&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; lsof | grep "/media/disk"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;vim        2693     pingu  cwd       DIR        8,4     4096   73729 /media/disk&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; kill -9 2693&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; umount /media/disk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. For case 3, find the process that accessing the disk and kill it&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; fuser -m /media/disk&lt;/span&gt;&lt;span style="font-family:webdings;"&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);font-family:georgia;font-size:100%;"  &gt;/media/disk: 2693 &lt;/span&gt;&lt;span style="color: rgb(51, 204, 0);font-family:monospace;font-size:100%;"  &gt;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; ps -e | grep 2693&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;2693 pts/0    00:00:00 vim&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; kill -9 2693&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#&lt;/span&gt; umount /media/disk&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;br /&gt;4. For case no 3 also, you can use fuser -k to kill the process that bugging the disk directly (Thanx to mr. linuxmalaysia for the comment)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;# fuser -k /media/disk&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;#umount /media/disk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope this will be useful&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-8936477326475807504?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/8936477326475807504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=8936477326475807504' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/8936477326475807504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/8936477326475807504'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/02/unmounting-busy-device.html' title='Unmounting busy device'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-1959411570702090239</id><published>2009-02-23T11:01:00.006+08:00</published><updated>2009-02-25T10:35:17.728+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dbmail'/><category scheme='http://www.blogger.com/atom/ns#' term='migrate'/><category scheme='http://www.blogger.com/atom/ns#' term='mail'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><category scheme='http://www.blogger.com/atom/ns#' term='mailserver'/><title type='text'>Rebuild corrupted dbmail account</title><content type='html'>Symptoms of corrupted dbmail account are slow to open account and if manage to open account, it will take forever just to open the inbox. Here are the steps to rebuild back the account using joe's email account&lt;br /&gt;&lt;br /&gt;1. You have to backup the the user's inbox. Use command "dbmail-export" to export mailbox to mbox file. For better management, export the mailbox to home folder.&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;cd&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;/home&lt;/span&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dbmail-export -u&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;joe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. A few mbox files will be generated depending on how many folders you have in your email. The mboxs will be placed in a folder named with your username, in this case, joe&lt;br /&gt;#&lt;span style="color: rgb(255, 0, 0);"&gt;ls&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;/home&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Clear up the username mailbox using "dbmail-users". -e is for clearing mailbox&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dbmail-users -e&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;joe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Delete the user. -d is for deleting user&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dbmail-users -d&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;joe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Create back user. -a is for add user, -w for password, -p for password type and -s for aliases&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;dbmail-users -a&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;joe&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;-w&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;joe123456&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;-p&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;md5&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;-s&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;joe@example.com&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Download dbmail tarball from &lt;a href="http://www.dbmail.org/index.php?page=download"&gt;here&lt;/a&gt;. Extract and you can see a script named mailbox2dbmail in contrib folder. Use that script to migrate back the mbox files to dbmail. For easy usage, copy the mailbox2dbmail script to /usr/local/bin. -u is for username, -t for type of input, -m for input filename and -b is for the name you want the mailbox to appear in your email&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;cd&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;/home/joe&lt;/span&gt;&lt;br /&gt;# &lt;span style="color: rgb(255, 0, 0);"&gt;mailbox2dbmail -u&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;joe&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;-t&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;mbox&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;-m&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;INBOX.mbox&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;-b &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;INBOX&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7. Go to your joe's webmail and you can see the INBOX is already there. Repeat step 6 for all your mailboxes&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-1959411570702090239?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/1959411570702090239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=1959411570702090239' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/1959411570702090239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/1959411570702090239'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/02/rebuild-corrupted-dbmail-account.html' title='Rebuild corrupted dbmail account'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-8263682390184817636</id><published>2009-02-20T11:54:00.006+08:00</published><updated>2009-02-20T16:01:03.147+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grub'/><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='Centos'/><title type='text'>CentOS/Fedora forgotten password</title><content type='html'>What to do if you forgot the password for your CentOS/Fedora/Redhat machine?? Here are some simple steps to change back the password by entering into single user mode of your machine provided you do not forgotten your grub password if you have set it ;)&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Reboot your machine&lt;/li&gt;&lt;li&gt;Press '&lt;span style="color: rgb(255, 102, 0);"&gt;Esc&lt;/span&gt;' key once grub starts loading&lt;/li&gt;&lt;li&gt;Select your kernel press '&lt;span style="color: rgb(255, 102, 0);"&gt;e&lt;/span&gt;' on one of the kernel to edit the kernel parameter&lt;/li&gt;&lt;li&gt;Press '&lt;span style="color: rgb(255, 102, 0);"&gt;e&lt;/span&gt;' on the line that starts with '&lt;span style="color: rgb(51, 204, 0);"&gt;kernel /vmlinuz...&lt;/span&gt;'&lt;/li&gt;&lt;li&gt;Append ''&lt;span style="color: rgb(51, 51, 255);"&gt;single&lt;/span&gt;" or "&lt;span style="color: rgb(51, 51, 255);"&gt;1&lt;/span&gt;" at the end of the line&lt;/li&gt;&lt;li&gt;Press '&lt;span style="color: rgb(255, 102, 0);"&gt;Enter&lt;/span&gt;'&lt;/li&gt;&lt;li&gt;Press '&lt;span style="color: rgb(255, 102, 0);"&gt;b&lt;/span&gt;' to boot from the appended kernel&lt;/li&gt;&lt;li&gt;You are now in the single user mode of your linux machine once you get to the shell. You can now change the password of your account using command &lt;span style="color: rgb(255, 0, 0);"&gt;passwd&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Reboot back your machine normally&lt;br /&gt;&lt;/li&gt;&lt;li&gt;You can now log in to your machine using your new password&lt;/li&gt;&lt;/ol&gt;:)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-8263682390184817636?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/8263682390184817636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=8263682390184817636' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/8263682390184817636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/8263682390184817636'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/02/centosfedora-forgotten-password.html' title='CentOS/Fedora forgotten password'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-5328585690769453067</id><published>2008-09-09T13:01:00.003+08:00</published><updated>2009-02-20T15:59:07.351+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grub'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Ubuntu forgotten password</title><content type='html'>What to do when you forgot your password for your ubuntu machine?? Here are some simple steps on how to change the password using single user mode.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Reboot the machine&lt;/li&gt;&lt;li&gt;When grub is loading, press '&lt;span style="color: rgb(255, 102, 0);"&gt;Esc&lt;/span&gt;'&lt;/li&gt;&lt;li&gt;Choose '&lt;span style="color: rgb(51, 204, 0);"&gt;Ubuntu kernel...........(recovery mode)&lt;/span&gt;'&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Press '&lt;span style="color: rgb(255, 102, 0);"&gt;e&lt;/span&gt;' to edit the kernel parameter&lt;/li&gt;&lt;li&gt;Append '&lt;span style="color: rgb(51, 51, 255);"&gt;single init=/bin/bash&lt;/span&gt;' to the kernel parameter&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Press '&lt;span style="color: rgb(255, 102, 0);"&gt;b&lt;/span&gt;' to boot from that particular kernel&lt;/li&gt;&lt;li&gt;You will enter single user mode&lt;/li&gt;&lt;li&gt;Your hard drive will be in read-only mode. Remount it in read-write mode&lt;/li&gt;&lt;ul style="color: rgb(255, 0, 0);"&gt;&lt;li&gt;# mount -o remount,rw /dev/sda1&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Change your passwd&lt;br /&gt;&lt;/li&gt;&lt;ul style="color: rgb(255, 0, 0);"&gt;&lt;li&gt;# passwd user&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Reboot your machine&lt;/li&gt;&lt;li&gt;Access your machine using your new password&lt;/li&gt;&lt;/ol&gt;Congratulations, you just changed you user password using single user mode&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-5328585690769453067?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/5328585690769453067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=5328585690769453067' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/5328585690769453067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/5328585690769453067'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2008/09/ubuntu-forgotten-password.html' title='Ubuntu forgotten password'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-8408251750864360491</id><published>2008-12-18T08:58:00.005+08:00</published><updated>2009-02-17T17:53:43.860+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='Centos'/><title type='text'>Knowing your hardware</title><content type='html'>&lt;span style="font-size:100%;"&gt;In linux, there are a few ways that you can know you hardware details without opening the chassis of your machine. Below are a few ways that I know and hopefully can help linux users out there;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Refer to the /proc directory. This directory contains a few files that can give you information about your hardware such as memory (meminfo), processor (cpuinfo), partitions (partition) and many more&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Use "&lt;span style="color: rgb(255, 0, 0);"&gt;lspci&lt;/span&gt;" command. This is a command to list all pci devices connected to your machine&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Use "&lt;span style="color: rgb(255, 0, 0);"&gt;lshw&lt;/span&gt;" command&lt;/span&gt;. This command will list out all hardware installed on your system. Available in ubuntu&lt;/li&gt;&lt;li&gt;Use "&lt;span style="color: rgb(255, 0, 0);"&gt;kudzu -p&lt;/span&gt;" command. This is redhat/centos hardware probing and installing tool. Use "&lt;span style="color: rgb(255, 0, 0);"&gt;kudzu -p&lt;/span&gt;" to display all the hardware connected to the system&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Use "&lt;span style="color: rgb(255, 0, 0);"&gt;dmidecode&lt;/span&gt;" command. This is a tool for dumping bios information into human readable form&lt;/li&gt;&lt;/ol&gt;If anyone have any tool that I didn't list out, please feel free to drop out a comment&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-8408251750864360491?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/8408251750864360491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=8408251750864360491' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/8408251750864360491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/8408251750864360491'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2008/12/knowing-your-hardware.html' title='Knowing your hardware'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-5348719221717619226</id><published>2009-02-17T17:14:00.003+08:00</published><updated>2009-02-17T17:47:19.628+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DNS'/><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><title type='text'>DNS lookup</title><content type='html'>To find an ip address for a domain, we need to do dns lookup. A few tools available for us to use in linux, but in this article I will give brief explanation about 3 most famous tools of dns lookup, which are host, nslookup and dig. Usually if the commands are used without the optional nameserver, then the nameserver entries in /etc/resolv.conf will be used&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To find ip address of a domain using host (nameserver is optional):&lt;br /&gt;&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;host&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;domain&gt; &lt;nameserver&gt;&lt;/span&gt;&lt;br /&gt;example:&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;host &lt;span style="color: rgb(51, 51, 255);"&gt;www.google.com 208.67.222.222&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To find the domain that belongs to an ip address using host (nameserver is optional):&lt;br /&gt;&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;host&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;ip&gt; &lt;nameserver&gt;&lt;/span&gt;&lt;br /&gt;example:&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;host &lt;span style="color: rgb(51, 51, 255);"&gt;202.188.0.133 ns1.tm.net.my&lt;/span&gt;&lt;/span&gt;  &lt;h4 style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/h4&gt;&lt;h4 style="font-weight: normal;"&gt;To find ip address of a domain using nslookup (nameserver is optional):&lt;/h4&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;nslookup&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;ip&gt; &lt;nameserver&gt;&lt;/span&gt;&lt;br /&gt;example:&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;nslookup &lt;span style="color: rgb(51, 51, 255);"&gt;www.google.com 208.67.222.222&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4 style="font-weight: normal;"&gt;To find the domain that belongs to an ip address using nslookup (nameserver is optional):&lt;/h4&gt; $ &lt;span style="color: rgb(255, 0, 0);"&gt;nslookup&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;ip&gt; &lt;nameserver&gt;&lt;/span&gt;&lt;br /&gt;example:&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;nslookup &lt;span style="color: rgb(51, 51, 255);"&gt;202.188.0.133 208.67.222.222&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;nslookup also have interactive mode that you can access by simply typing&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;nslookup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To find ip address of a domain using dig (nameserver is optional):&lt;br /&gt;&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;dig @&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;nameserver&gt; &lt;domain&gt; &lt;/span&gt;&lt;br /&gt;example:&lt;br /&gt;$ &lt;span style="color: rgb(255, 0, 0);"&gt;dig @&lt;span style="color: rgb(51, 51, 255);"&gt;ns1.tm.net.my www.google.com&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-5348719221717619226?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/5348719221717619226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=5348719221717619226' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/5348719221717619226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/5348719221717619226'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/02/dns-lookup.html' title='DNS lookup'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2150109385261698170.post-4043196544156258091</id><published>2009-01-14T16:44:00.008+08:00</published><updated>2009-01-14T17:33:32.739+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='audio/video'/><title type='text'>GUI media converter</title><content type='html'>ffmpeg is a very powerful media converter but unfortunately it is text based. For people like me who use terminal as much as GUI, using ffmpeg in its original nature, which is text based is ok. You can refer to my &lt;a href="http://linuxwave.blogspot.com/2007/09/converting-flv-files-to-avi-and-mpeg.html"&gt;post&lt;/a&gt; about converting flv to avi using ffmpeg. But for people who want to harness the power of ffmpeg yet not familiar of using terminal, mobile media cenverter from &lt;a href="http://www.miksoft.net/"&gt;miksoft&lt;/a&gt; is a good option. This application is a GUI for mmpeg, so you can expect some of the goodness of ffmpeg if not all of them. You can download this application &lt;a href="http://miksoft.net/mobileMediaConverterDown.htm"&gt;here&lt;/a&gt;, where it is available for windows and linux. For debian based linux user, the application is available in .deb form where you can install easily. For other linux user, a little bit of extra work has to be done to start using this application.&lt;br /&gt;&lt;br /&gt;A few of mobile media converter features are drag n drop, using ffmpeg engine, it is free of charge, it has integrated youtube downloader and it is available for linux and windows. Supported formats &lt;span style="font-family: georgia;font-size:100%;" &gt;are&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-size:100%;"&gt; - Desktop Audio: &lt;span style="font-weight: bold; font-style: italic;"&gt;mp3, wma, ogg, wav&lt;/span&gt;&lt;br /&gt;- Mobile Audio: &lt;span style="font-weight: bold;"&gt;amr&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;awb&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;/span&gt;&lt;br /&gt;- Desktop Video: &lt;span style="font-weight: bold;"&gt;wmv&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;mpeg&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;, wmv, avi, flv&lt;/span&gt;&lt;br /&gt;- Mobile Video: &lt;span style="font-weight: bold;"&gt;3gp, mp4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; Installation instruction is available &lt;a href="http://miksoft.net/mobileMediaConverter.htm"&gt;here&lt;/a&gt; under Help.&lt;br /&gt;&lt;br /&gt;Below are screenshots of the application in ubuntu 8.10&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_7fF0k-ob7JM/SW2vuNj4EcI/AAAAAAAAAFk/uZlENigJOf4/s1600-h/mmc-lin.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 141px;" src="http://4.bp.blogspot.com/_7fF0k-ob7JM/SW2vuNj4EcI/AAAAAAAAAFk/uZlENigJOf4/s320/mmc-lin.png" alt="" id="BLOGGER_PHOTO_ID_5291078345679180226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and windows vista&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_7fF0k-ob7JM/SW2v1iCct8I/AAAAAAAAAFs/_EXn5pv98Yg/s1600-h/mmc-win.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 146px;" src="http://2.bp.blogspot.com/_7fF0k-ob7JM/SW2v1iCct8I/AAAAAAAAAFs/_EXn5pv98Yg/s320/mmc-win.png" alt="" id="BLOGGER_PHOTO_ID_5291078471435204546" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2150109385261698170-4043196544156258091?l=linuxwave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxwave.blogspot.com/feeds/4043196544156258091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2150109385261698170&amp;postID=4043196544156258091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/4043196544156258091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2150109385261698170/posts/default/4043196544156258091'/><link rel='alternate' type='text/html' href='http://linuxwave.blogspot.com/2009/01/gui-media-converter.html' title='GUI media converter'/><author><name>blackorga</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10468375996950390482'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_7fF0k-ob7JM/SW2vuNj4EcI/AAAAAAAAAFk/uZlENigJOf4/s72-c/mmc-lin.png' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>