Moving a window in GNOME
Submitted by ggarron on Sun, 06/22/2008 - 02:07.If you someday have a window out of your screen or at least the title bar out of your screen as I had today, I was surfing the web using Opera and when I pressed CTRL+F to look for a text in the page the little window appeared too high in the screen that I could not click on the title bar and move it a little down.
Well the solution for this is to press the and hold the ALT key, and click any place on the window to move it.
Tip: If you use the righ button of the mose you can resize it without need to click on the border of the window.
Hope this may help you.
du - Shows the disk space a file or directory is using in your disk
Submitted by ggarron on Sun, 06/22/2008 - 01:40.This is a very useful command you may use to find which file or directory is filling you disk.
So if you need to check the file and directory size in your home directory you can enter
cd
to switch to your home directory
du -S * | sort -n
How to play a DVD video ISO image
Submitted by ggarron on Mon, 06/09/2008 - 03:47.I have this new video camera Sony that records on mini DVDs, and I got a video from my daughter dancing for the mother's day, I copied it as an image to the hard disk of my Linux Operating System machine
cat /dev/dvd/ > $HOME/video.iso
But now how to play that iso image from my disk with out using my DVD player?
These are the simple commands needed.
sudo mkdir /media/iso
To create a mount point
sudo mount -tiso9660 -oloop /home/ggarron/dvd_video.iso /media/iso
How to delete / purge an email from postfix queue
Submitted by ggarron on Tue, 06/03/2008 - 12:55.Today I sent an email to a person with an attachment that was not supposed to be sent, so I had to log into my postfix server and delete it from the queue before it leaves the server.
Fortunately, I realized before it leaves, and thanks God the email was big enough for me to have time to log in, find the message and delete it.
If you ever need to delete an email from Postfix queue, you have to follow this steps.
Once logged in your server find the message you are looking for.
sudo postqueue -p
Gmail Manager - Firefox Extension
Submitted by ggarron on Fri, 05/23/2008 - 13:51.I want to write a little about this good Firefox extension, maybe lots of you already know it, but for those who does not, here it goes.
As its name says, this extension lets Firefox access your Gmail account, install it from:
Gmail Manager Firefox extension once installed you will have it located at the bottom of your screen, you can manage lots of accounts, which is great, you can see how many emails you have unread, which labels they have, all of that at a glance.
How to find files, using command line (locate)
Submitted by ggarron on Wed, 05/21/2008 - 20:27.Continuing reviewing some of my old posts, I found this one Examples of find command, now I want to show you a faster and easier way to find files.
We are going to use the commands updatedb and locate
updatedb
Which runlevel are you in?
Submitted by ggarron on Wed, 05/21/2008 - 20:06.I wrote a little runlevel explanation, now I will show you how to know in which runlevel your Linux Operating System is actually running.
Which runlevel are you in?
Enter the following command:
sudo runlevel
My output is:
N 2
Switch to other runlevel
To do that enter:
telinit [number of runlevel]
1001 RSS readers
Submitted by ggarron on Wed, 05/21/2008 - 19:46.Hi, this post is to thank you all for reading this blog, I want to celebrate with you "my readers" because today we surpassed the line of 1000 readers, we are now 1001 readers of this blog.
These are the statics from feedburner.

Thanks again to all of you, and hope you continue reading the posts, and more important that what I write could be useful for your
Automatic Login - Gnome
Submitted by ggarron on Tue, 05/20/2008 - 20:11.I think this should work for any Linux operating system using Gnome, I have tested on Debian and Ubuntu.
Well, automatic login will let you avoid to enter your login and password each time you turn on your PC, this could be insecure, but if your computer is physically secured it is Ok to enable this, that could make your booting more smooth.
How to do it?
On Gnome go to:
Showing line numbers on vim
Submitted by ggarron on Tue, 05/20/2008 - 13:45.Sometimes you really need to see the number of the line where you are while editing a text file, if you like vi / vim, this will help you how to turn on and off the numbering of lines.
How to find which service is listening on a given port
Submitted by ggarron on Mon, 05/19/2008 - 14:39.It is really important to know which ports are open in your PC, this is not only useful for Linux, but also for other operating systems, Linux has a lot of tools to check which ports are open, the most common is nmap which is a command line tool, but also exist a Graphical frontEnd for it if you prefer that way.
So to scan you own PC and find open ports you can enter:
sudo nmap -T Aggressive -A -v 127.0.0.1 -p 1-65000
Another way to populate your apt-cacher
Submitted by ggarron on Fri, 05/16/2008 - 21:56.If you have some Debian machines already installed, and you plan to install some others, you maybe are going to use the net-install CD, which is the most common way to install Debian.
That may take a long time, to install all the Desktop Gnome or KDE, all the applications or servers, etc, and if you have just installed your apt-cacher server as me, you will not be able to use it this first time .... unless you populate it.
The "Ubuntu Story" site
Submitted by ggarron on Fri, 05/16/2008 - 11:59.I just stumbled on this site, it is a promotional site devoted to Ubuntu, you might be thinking, "well yet another Ubuntu site" but I think this one deserves a visit, it does not have how-tos, or such kind of info, it is mainly promotional, it has some information about Ubuntu's, Flexibility, Speed, Simplicity, Appearance, Stability, Freedom, Security and Community, which are the columns where Ubuntu rests.
How did Ubuntu end up so popular?
Submitted by ggarron on Fri, 05/16/2008 - 10:49.As a matter of fact, I made myself that question more than a few times, but never took the time to try to find an answer, because Ubuntu is a relatively new Distro, it comes from Debian when Mark Shuttleworth, who was part of the Debian project decided that Debian was not focused on the final user as it should, and made its own distribution.
Well, I have found an article which touches some facts about why is Ubuntu so popular today, and we have to say that, in less time than RedHat, Suse, or Debian.
wget - Resume downloads, limit the speed and much
Submitted by ggarron on Thu, 05/15/2008 - 23:09.wget is a command line tool used to download files, or complete webpages, it is a great utility with lots of options, as you can see if you read the wget man page
Some months ago, I have written about how to download files with wget, now I want to add some other tips to those already explained that day.
Resume a download
The /etc/default/rcS file
Submitted by ggarron on Thu, 05/15/2008 - 19:40.There is some behavior of your Linux Operating System which is easy to change, but not too common to know how.
The things you can change are:
- Frequency to erase /tmp/ directory
- Use UTC or local time
- How Verbose are the boot messages of your Linux
- If a disk error should be always repaired while booting automatically
There are more than those, but I will touch only those, for the rest, you can enter:
man /etc/default/rcS
Tip: Importing your /var/cache/apt/ files to apt-cacher database
Submitted by ggarron on Thu, 05/15/2008 - 14:46.Yesterday, I wrote about apt-cacher, and when you first install it, its database is empty, and of course the server where it is installed could have a lot of .deb files, in the /var/log/apt/archives/, so it would be great to use those packages in our new ATP proxy.
To do that we need one of the perl scripts that come with apt-cacher, and that are stored in:
/usr/share/apt-cacher
The right script for this task is: apt-cacher-import.pl , so run:
How to: Find the fastest apt mirror server
Submitted by ggarron on Wed, 05/14/2008 - 20:51.If you want to use the fastest mirror to download the .deb files you may need to upgrade or update your Debian machines, you have to remember that not always your nearest server is the fastest one, and that could be because not only the distance the server is from you but also the network congestion is a factor when talking about network speed.
For instance, your ISP may have a direct satellite connection to another country, and thus your nearest server should be in that country, to avoid you the hassle to get that info, Debian give you some tools, I will touch two of them here.
How to: Install a Debian/Ubuntu package (.deb) cache server - apt-cacher
Submitted by ggarron on Wed, 05/14/2008 - 14:36.If you have more than one PC using Debian or Ubuntu, you know that upgrading them makes most of the time download the same files more than once, and that is not good for your bandwidth.
I usually forward my requests to my Squid (in my office) and to my Personal proxy Polipo at home, it works, but apt-cacher may be a better approach as the way it decides if a file stays or is erased from the cache is more appropriate for .deb package than in Squid or Polipo, as they are optimized for web surfing.
Well, after that introduction, lets go to the interesting part of the post.
Great Linux Car race simulator "VDrift"
Submitted by ggarron on Tue, 05/13/2008 - 20:24.I like to play with simulators, and I have found a good car race simulator, that works great under my Debian, the game come in autopackage binary format, or at least that is the one I have downloaded.
Download your package from VDrift page, I got the full version for Linux, once you have the .package file make it executable and run it as root, If you have installed an autopackage software before you can run:



