<?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' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-35123561</id><updated>2011-12-15T10:58:49.906+08:00</updated><title type='text'>Linux newbies - Because I am a newbie</title><subtitle type='html'>Where all my noob experiences with linux is archived for other newbies' reference =.=</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-35123561.post-115977823483831653</id><published>2006-10-02T16:21:00.000+08:00</published><updated>2006-10-02T16:38:31.216+08:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(0, 0, 102);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Using #crontab to schedule your tasks in linux&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;The situation&lt;/span&gt;:  Before I go to my situation where i need to  use the #crontab. Allow me to introduce you a bit about  #crontab.  crontab ( also known as cronjob) is a program  to perform tasks (any tasks you give) during a specific time - even certain days of a week, or it could be anything. This command is just so powerful.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;The problem&lt;/span&gt;: Ok say I want to move a folder /home/me/Desktop/videos to a new directory (or another network folder) and I don't want to do it right now (Maybe because I don't want my computer to slow down). So what do I do is set the move command (&lt;span style="font-weight: bold;"&gt;#mv)&lt;/span&gt; in the crontab file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;The Solution&lt;/span&gt;: Obviously the #crontab. Ok let's do it now.&lt;br /&gt;&lt;br /&gt;1. Open the  terminal. type the following command:&lt;br /&gt;&lt;br /&gt;root@localhost:~#crontab -e&lt;br /&gt;&lt;br /&gt;..where &lt;span style="font-weight: bold;"&gt;-e &lt;/span&gt;denotes &lt;span style="font-weight: bold;"&gt;edit&lt;/span&gt;. Next, the crontab file will be opened by using your default text editor (in my case vi). It should look like this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="font-style: italic; color: rgb(153, 0, 0);"&gt;# m h  dom mon dow   command&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;3.  Edit the crontab. there are few parameters that you might want to take notes:&lt;br /&gt;&lt;br /&gt;m = minutes&lt;br /&gt;h = hour&lt;br /&gt;dob = day of month&lt;br /&gt;mon = month&lt;br /&gt;dow = day of week&lt;br /&gt;command = your unix command here.&lt;br /&gt;&lt;br /&gt;4. Type in your cron job. I just take my previous example of moving the folder &lt;span style="font-weight: bold;"&gt;/home/me/Desktop/videos&lt;/span&gt; to the folder &lt;span style="font-weight: bold;"&gt;/home/me/MyCollections&lt;/span&gt; during 21 Sept 2006, 11AM on the fourth day of the week. So I edit my crontab and mine should looked like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;&lt;/span&gt;&lt;blockquote style="font-style: italic;"&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;# m h  dom mon dow   command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;00 11 21 9 4 mv /home/me/Desktop/videos  &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt; /home/me/MyCollections&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or you may apply relative path:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;&lt;/span&gt;&lt;blockquote style="font-style: italic;"&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;# m h  dom mon dow   command&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;  &lt;span style="color: rgb(153, 0, 0);"&gt;00 11 21 9 4 mv /home/me/Desktop/videos  &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;../../MyCollections&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Save and I can sleep up until noon and to see the folder are already moved =)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115977823483831653?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115977823483831653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115977823483831653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115977823483831653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115977823483831653'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/10/using-crontab-to-schedule-your-tasks.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35123561.post-115976335336453973</id><published>2006-10-02T12:10:00.000+08:00</published><updated>2006-10-02T12:29:13.406+08:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(51, 51, 51);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Tips on creating SWAP partition&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;What is swap partition? &lt;/span&gt;: Save all of the technical explanation.  If you are familiar with virtual memory in Windows, then SWAP does the same thing. If you are not, then SWAP partition is a partition where it becames the "secondary memory" apart from your physical memory (also commonly known as "RAM").&lt;br /&gt;&lt;br /&gt;Say you have a piece of RAM with capacity 512MB. If your computer (running on Windows XP) uses memory more than 512MB (or eventually does), then your windows WILL NOT prompt out the message "Sorry, your are out of memory!!". Instead, windows will initialize a space of your hard disk (usually c:) drives to become "a memory" (that's why it is called virtual memory) to support the insufficient space in the physical RAM. This is the time where you will experience "slow moment" with your computer - tasks which takes 1 seconds to be completed with physical RAM may takes 3 1/4 months if it is on virtual memory!! (source:kingston.com).&lt;br /&gt;p/s: so in  case you running out of memory , buy a new RAM. Avoid virtual memory.&lt;br /&gt;&lt;br /&gt;So as the SWAP partition. In Microsoft Windows, virtual memory is automatically set up by default (you may choose to change it manually in advanced properties). But in linux, you have to initialize the capacity of SWAP (virtual memory) by yourself - that's it by creating a special partition just for this virtual RAM purpose.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;So how do I choose the size/capacity of the SWAP partition?&lt;/span&gt;&lt;br /&gt;The general rules (and commonly applied nowadays) is to set up the value capacity of SWAP equals to double the size of the physical RAM. eg you have 256MB of physical RAM, then you need to initialize the size of swap to 512MB.&lt;br /&gt;&lt;br /&gt;But since nowadays computers are advanced and may be powered by RAM which is much bigger than 512MB, say 1GB. If this is the case, you DO NOT have to initialize the size of SWAP up to 2GB!! It will be a waste of hard disk space. Since for general use, it is difficult for your RAM to even reach the consumption/resource allocation more than 1GB.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115976335336453973?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115976335336453973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115976335336453973' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115976335336453973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115976335336453973'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/10/tips-on-creating-swap-partition-what.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35123561.post-115955030985287691</id><published>2006-09-30T01:04:00.000+08:00</published><updated>2006-09-30T01:20:06.523+08:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(51, 0, 153);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Verify your download using md5sum&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The situation&lt;/span&gt;: Often I found the md5sum term everytime I want to download softwares. At first I didn't even care what md5sum is. Ok, forget about it for a while...and talking of download, which there is one thing that annoys me regarding download and corrupted download file =.=&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Problem&lt;/span&gt;: How ? Eg I want to download ISO image for Knoppix Linux. After I download it, then (of course) without any question i will burn it. But it is only after burning and verifying the download,  I realized it is a corrupted ISO file. There goes $1.00 of my CD-R.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Solution&lt;/span&gt;: Up until now, I appreciate the md5sum, or MD5 checksum or MD hash . It is a command that can be used in terminal to verify download either it is the exact same copy (not corrupted) as in the mirror server... or it is already somehow corrupted during download process.&lt;br /&gt;&lt;br /&gt;Open the terminal and navigate to the directory where the downloaded file is located. Type in the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(102, 102, 102);"&gt;&lt;blockquote&gt;me@localhost:~#: md5um downloadedfile.tar.gz&lt;/blockquote&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;...where downloadedfile.tar.gz is the file you've downloaded. Later the terminal will display the md5 hash number. verify whether it is the same as the one provided in download page. Good luck. =)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115955030985287691?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115955030985287691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115955030985287691' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115955030985287691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115955030985287691'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/09/verify-your-download-using-md5sum.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35123561.post-115948239640635477</id><published>2006-09-29T05:18:00.000+08:00</published><updated>2006-09-30T01:20:41.850+08:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(0, 0, 102); font-weight: bold;font-size:130%;" &gt;Display and force quit/terminate a program/services running on background&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 0, 153); font-weight: bold;"&gt;Where windows Alt + Ctrl + Del doesn't applied in Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The situation&lt;/span&gt;: While working on some application, you might stumble into a situation where you need to force terminate a running application or services. It is easy to do it in Windows, simply by pressing Alt + Ctrl + Del combination.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Problem&lt;/span&gt;: How do I terminate a running program (including a background program and services) in Linux?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Solution&lt;/span&gt;: The process is simple. Everything can be done in terminal. &lt;span style="color: rgb(255, 0, 0);"&gt;(Image example coming soon) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First, open the terminal, and to see currently running processes and application running, use the &lt;span style="font-weight: bold;"&gt;top &lt;/span&gt;command :&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="font-style: italic; color: rgb(102, 102, 102);"&gt;me@localhost:~#: top&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;You will be displayed the currently running processes in real-time. Just like Alt + Ctrl + Del combination in Windows.&lt;br /&gt;&lt;br /&gt;Second, please take note of the processes you wish to terminate (or kill in Linux), and identify the process number (in the respective column), For example superkaramba application is running with process number  3349.&lt;br /&gt;&lt;br /&gt;Press the "Q" button on your keyboard to quit &lt;span style="font-weight: bold;"&gt;top&lt;/span&gt;. Finally, type in the command &lt;span style="font-weight: bold;"&gt;#kill&lt;/span&gt; followed by the process number&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;&lt;blockquote&gt;me@localhost:~#: kill [process number]&lt;/blockquote&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For our example, it will be:&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="font-style: italic; color: rgb(102, 102, 102);"&gt; me@localhost:~#: kill 3349&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;NOTE: Sometime you just can't simply terminate a running application/processes. You can accomplish this by force kill. Here how you do it&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;&lt;blockquote&gt; me@localhost:~#: kill - 9 [process number]&lt;/blockquote&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Yeah, simple add &lt;span style="font-weight: bold;"&gt;-9&lt;/span&gt; attributes (right after the kill command). In our example&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(102, 102, 102);"&gt;&lt;blockquote&gt; me@localhost:~#: kill -9 3349&lt;/blockquote&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115948239640635477?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115948239640635477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115948239640635477' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115948239640635477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115948239640635477'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/09/display-and-force-quitterminate.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35123561.post-115942084936280008</id><published>2006-09-28T12:55:00.000+08:00</published><updated>2006-09-28T13:55:03.966+08:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(0, 0, 102);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;How do I install and update softwares? - Using apt-get command in linux distributions based on debian&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The situation&lt;/span&gt;: Ok, I was too excited browsing on the internet looking for free softwares to be installed in my linux box. Unlike in Windows, I stumbled up with so many methods of downloading and installing the software - I can see Gunzip (tar.gz), binary (.bin) JAR, .rpm, .deb..... you name it. And it really annoying because each softwares have their own dependencies. Not to mention about questions of which version suits my linux box.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The problem&lt;/span&gt;: Is there any way to quickly install software (just like in Windows) with having to worries about dependencies, extra libraries or whatsoever obstacles that may delay our time?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Solutions&lt;/span&gt;: If you are using any &lt;a href="http://www.debian.org/misc/children-distros"&gt;debian based linux distribution&lt;/a&gt; (you may &lt;a href="http://en.wikipedia.org/wiki/List_of_Linux_distributions"&gt;click here&lt;/a&gt; too)  then life is much easier with apt-get command. But first let me explain how do you get to search the respective softwares.&lt;br /&gt;&lt;br /&gt;First, you may go to &lt;a href="http://packages.debian.org/"&gt;debian package search page&lt;/a&gt; (http://packages.debian.org). Scroll down a a little until you reach about in the middle where you can see the searchbox, enter your search, and wait for the result. For example I was looking for installing gaim Instant Messenger, type in &lt;span style="font-style: italic;"&gt;gaim&lt;/span&gt; and you can see few result. Your knowledge should be good enough to differentiate between each of the resulting package ( Use common sense, &lt;span style="font-weight: bold;"&gt;gaim &lt;/span&gt;is  supposedly the package we are looking for, while &lt;span style="font-weight: bold;"&gt;gaim-extendedprefs&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;gaim-guinotifications&lt;/span&gt; are the add-ons). NOTE: People would recommend to use the stable, but as for me, I always preferred the latest one, regardless of their stability, so whatever you choose is up to you.&lt;br /&gt;&lt;br /&gt;Click on the package, you may want to read the grimy details, or perhaps you just proceed with the apt-get. Get the keyword from the bolded title ( in this case it is &lt;span style="font-weight: bold;"&gt;gaim&lt;/span&gt;) Open the terminal, and type in the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 51);"&gt;&lt;blockquote&gt;me@localhost:~# &lt;span style="font-weight: bold;"&gt;apt-get install gaim&lt;/span&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 51);"&gt;&lt;blockquote&gt;me@localhost:~# &lt;span style="font-weight: bold;"&gt;apt-get update ; apt-get install gaim&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Wait for the apt-get program to download informations from mirrors. Later as you may see, the terminal will displays all the dependencies needed (if any), how many packages to be downloaded etc - EVERYTHING IS BEING SETUP FOR YOU. All you have to do is to key in the answe , either (Y) es or (N)o. And leave the rest for the apt-get to install it.&lt;br /&gt;&lt;br /&gt;And as you may guess, you might want to touch-up your gaim with following command (of course right after gaim completely installed. Note that you cannot run apt-get simultaneously)&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="font-style: italic; color: rgb(51, 51, 51);"&gt;apt-get update ; apt-get install gaim-guinotifications&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115942084936280008?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115942084936280008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115942084936280008' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115942084936280008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115942084936280008'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/09/how-do-i-install-and-update-softwares.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35123561.post-115939443444169942</id><published>2006-09-28T05:58:00.000+08:00</published><updated>2006-09-28T12:25:25.233+08:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(51, 0, 153);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;I messed up with /etc/profile: How do I edit it?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The situation&lt;/span&gt;:  I thought that  running a daemon during startup is just as same as &lt;a href="http://linuxnewbies.blogspot.com/2006/09/set-classpath-for-java-development-kit.html"&gt;setting up the classpath for JDK&lt;/a&gt;. Well, I was wrong!!! I am so stupid tu add the mysqld (command to start mysql daemon) in a line of /etc/profile. The results? I can log in to my account (Worse, it is the root account), thus it stucks during loading and I cannot do anything. I need to get the /etc/profile edited.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Problem&lt;/span&gt;: How do I edit /etc/profile, since I do not have the right permission to edit it under normal user account?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Solution&lt;/span&gt;: I  booted into Kanotix Live CD, and mount the linux partition containing "corrupted" /etc/profile. And it is editable from there. Thank you Kanotix Live CD, you save my day. =)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115939443444169942?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115939443444169942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115939443444169942' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115939443444169942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115939443444169942'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/09/i-messed-up-with-etcprofile-how-do-i.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35123561.post-115939398269101448</id><published>2006-09-28T05:38:00.000+08:00</published><updated>2006-09-28T05:53:02.693+08:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 0, 153);"&gt;Set CLASSPATH for Java Development Kit (JDK) in Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The situation&lt;/span&gt;: Installing JDK in linux is not as easy as in Windows. After installing the downloaded binary (.BIN) JDK installer, I was thinking of this - if it is even in Windows XP that I have to configure the classpath manually (which is tad easy)...the how am I gonna do it in linux? So that I can use the terminal to type in java command (javac, jar etc) to perform operations on java virtual machine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Problem&lt;/span&gt;: How do I setup the CLASSPATH for JDK in Linux, so that I can use it on terminal every time I boot my Linux?&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;The Solution&lt;/span&gt;: In order to accomplish this, simple edit the file /etc/profile, and add the following to any of empty lines in the file:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;blockquote&gt;PATH="$PATH:&lt;strong&gt;/opt/jdk1.5.0_07/bin&lt;/strong&gt;:."&lt;br /&gt;export PATH&lt;/blockquote&gt;&lt;/em&gt;&lt;br /&gt;...where the &lt;em&gt;&lt;strong&gt;/opt/jdk1.5.0_07/bin &lt;/strong&gt;&lt;/em&gt;is substituted with the actual directory of where the JDK is installed in your box. Save the file, and restart your machine.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115939398269101448?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115939398269101448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115939398269101448' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115939398269101448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115939398269101448'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/09/set-classpath-for-java-development-kit.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35123561.post-115938056996893746</id><published>2006-09-28T01:48:00.000+08:00</published><updated>2006-09-28T02:54:10.113+08:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(51, 51, 153);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Dual boot Linux/Windows  using NTLDR with linux on the other hard disk drive&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The situation&lt;/span&gt;: I  want to take safety precautions by avoiding the possibilities of messing up with my Windows Partition (and yet still wants to play around with any linux box) by installing the linux on a new empty hard disk drive.  As easy as it sound... but I want to use NTLDR bootloader Windows (the classy black and white MS-DOS style) instead of colorful GRUB loader (or maybe you just want to use NTLDR boot loader and still refused to use LILO bootloader).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Problem&lt;/span&gt;: How do I   do it, since the Windows on the primary hard disk drive, and the Linux is on the 2nd disk?&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;The Solution&lt;/span&gt;: During installation of the new linux, we must install LILO/Grub on the first partition, not on the MBR. Next, simply boot into your linux box and launch the terminal. On debian based box (knoppix, kanotix, ubuntu etc) maybe you want to view the list of hard disk drives attached to the computer, use this command:&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="font-style: italic; color: rgb(102, 102, 102);"&gt;root@localhost:~# &lt;b&gt;fdisk -l&lt;/b&gt;&lt;/blockquote&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;And the terminal will list down every single hard disk drives available. (Note: you must be in root permission in order to do this) Determine the hard disk for linux and respective partition. As for my case it is /dev/hdb1.&lt;br /&gt;&lt;br /&gt;In the terminal, type in the  following command:&lt;br /&gt;&lt;br /&gt;&lt;code style="font-style: italic; color: rgb(102, 102, 102);"&gt;&lt;/code&gt;&lt;blockquote style="font-style: italic; color: rgb(153, 153, 153);"&gt;dd if=/dev/hdb1 of=bootsector.lnx size=512 count=1&lt;/blockquote&gt;&lt;br /&gt;(Note: If above command doesn't work, you might want to omit the &lt;span style="font-style: italic;"&gt;size=512&lt;/span&gt; in the command)&lt;br /&gt;Where:&lt;br /&gt;/dev/hdb1 is my linux partition.&lt;br /&gt;&lt;br /&gt;This will create a file bootsector.lnx in the current present working directory (type &lt;span style="font-style: italic;"&gt;#pwd&lt;/span&gt; in the terminal to determine the current directory). Now, we need to transfer the file into a diskette or FAT32 partition, since we are going to transfer this &lt;span style="font-style: italic;"&gt;bootsector.lnx&lt;/span&gt; file to the Windows Partition (usually formatted with NTFS filesystem).&lt;br /&gt;&lt;br /&gt;Next, login into your Windows XP. Open &lt;span style="font-style: italic;"&gt;c:\boot.ini&lt;/span&gt; files. Or you may choose the long way - On the My Computer icon, choose properties (Or Control Panel &gt; System). On the Advanced tab, click settings button under "&lt;span style="font-style: italic;"&gt;Startup and Recovery&lt;/span&gt;". Next, click on the Edit button.&lt;br /&gt;&lt;br /&gt;Edit the boot.ini file by adding this lines on the very bottom of the page.&lt;br /&gt;&lt;br /&gt;&lt;code style="font-style: italic; color: rgb(102, 102, 102);"&gt;&lt;/code&gt;&lt;blockquote style="font-style: italic; color: rgb(102, 102, 102);"&gt;c:\bootsect.lnx="Boot to my linux box"&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;...and as you may guess., copy the generated bootsector.lnx to the root of c (c:\).&lt;br /&gt;&lt;br /&gt;Reboot your computer. Supposedly you will have the NTLDR bootloader showing options to boot to your linux box apart from Windows XP.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115938056996893746?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115938056996893746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115938056996893746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115938056996893746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115938056996893746'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/09/dual-boot-linuxwindows-using-ntldr.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35123561.post-115937681204654664</id><published>2006-09-28T00:38:00.000+08:00</published><updated>2006-09-28T01:06:52.060+08:00</updated><title type='text'></title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(51, 0, 153);"&gt;Resizing linux root partition  - Norton Ghost or Acronis Disk Director? &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The situation&lt;/span&gt;: Today I want to increase the size of the main partition, or root partition ( or precisely the "/" partition, not the "/home" partition). And I tried to use norton ghost (since I am very familiar working on this software under Microsoft Windows). The original size is 7.8GB, and I wish to resize the to 30GB (by resizing current NTFS partition)&lt;br /&gt;&lt;br /&gt;So I ghost the original partition (the 7.8GB partition) into a .GHO image and place it on a fat32 partition. And then I resize the 7.8GB partition to 30GB, and then I ghost back the image to the brand old new 30GB partition.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;The Problem&lt;/span&gt;: No problems with "Ghosting", my kanotix box boot and loads perfectly into the KDE desktop....except for my box still recognize the brand new partition is 7.8GB in capacity - although the &lt;span style="font-style: italic;"&gt;/proc/partitions&lt;/span&gt; is showing the current volume size...but the box just fails to detect the new configuration. eg  On the properties menu, it shows Free disk space : 1.2 GB out of 7.8GB is used (85% used).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Solution&lt;/span&gt;: Forget about the Norton Ghost, simply resize using Acronis Partition Expert (no need to install, just run it on live cd) or Acronis Disk Director (works in my Windows XP). My boyish knowledge of playing around with "GUI based boxes of partition" allows me to simply resize the partition. And my kanotix box detects the changes without any problem.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115937681204654664?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115937681204654664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115937681204654664' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115937681204654664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115937681204654664'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/09/resizing-linux-root-partition-norton.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35123561.post-115937415715729887</id><published>2006-09-28T00:08:00.001+08:00</published><updated>2006-09-28T00:30:24.176+08:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(0, 0, 102);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;apt-get error fixed&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The situation&lt;/span&gt;&lt;span style="color: rgb(51, 0, 153);"&gt;:&lt;/span&gt; I was searching for a new lite version of java IDE to works with my kanotix box on the internet when suddenly i stumbled up with jEdit.  So i decided to try the software . After browsing the packages.debian.org, i perform the apt-get operation to download and install jEdit. Unfortunately it is somehow corrupted, and it affect my apt-get command too!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;The Problem&lt;/span&gt;: Everytime I tried to perform upgrade/installation/whatsover using apt-get, it really pissed me off with this message:&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="color: rgb(102, 102, 102);"&gt;Reading package lists... Done&lt;br /&gt;Building dependency tree... Done&lt;br /&gt;&lt;b&gt;E: The package jedit needs to be reinstalled, but I can't find an archive for it&lt;/b&gt;&lt;/blockquote&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;The Solution: &lt;/span&gt;&lt;/span&gt;Force uninstall it using this command in terminal:&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="color: rgb(102, 102, 102);"&gt;root@localhost:~# &lt;b&gt;dpkg --force-all -r jedit&lt;/b&gt;&lt;/blockquote&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;And here's the output:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;root@localhost:~# &lt;/span&gt;&lt;b style="color: rgb(102, 102, 102);"&gt;dpkg --force-all -r jedit&lt;/b&gt;&lt;i&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;dpkg - warning, overriding problem because --force enabled:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;Package is in a very bad inconsistent state - you should&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;reinstall it before attempting a removal.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;(Reading database ...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;dpkg: serious warning: files list file for package `jedit' missing, assuming package has no files currently installed.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;160172 files and directories currently installed.)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;Removing jedit ...&lt;/span&gt;&lt;br /&gt;&lt;/i&gt;&lt;/blockquote&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;Viola! My apt-get works!!&lt;br /&gt;Supposedly this will work on any other packages too =)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35123561-115937415715729887?l=linuxnewbies.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnewbies.blogspot.com/feeds/115937415715729887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=35123561&amp;postID=115937415715729887' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115937415715729887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35123561/posts/default/115937415715729887'/><link rel='alternate' type='text/html' href='http://linuxnewbies.blogspot.com/2006/09/apt-get-error-fixed-situation-i-was_27.html' title=''/><author><name>electroboy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://3.bp.blogspot.com/__NE9xJ5wxxo/SPhVzN-AiUI/AAAAAAAAADA/e2I6g_v9Z-Y/S220/IMG_0858.JPG'/></author><thr:total>1</thr:total></entry></feed>
