DirectoryComputersBlog Details for "Go2Linux - The Linux Site"

Go2Linux - The Linux Site

Go2Linux - The Linux Site
Linux help, news, tips, how to, security, backup, virtualization and software for your linux, Debian, Ubuntu, CentOS and Fedora
Articles: 1, 2, 3, 4, 5, 6, 7

Articles

How to play a DVD video ISO image
2008-06-09 05:47:00
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 To mount the iso as a DVD sudo aptitude install gxine To install the player gxine dvd://media/iso/video_ts/ To play the DVD movie.
More About: Video , Play , Image
How to delete / purge an email from postfix queue
2008-06-03 14:55:00
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 This is going to list the current active queue in your server, something like this. 5642B4D8647* 1683500 Tue Jun 3 08:37:27 xxxxxx@xxxxxxx.com rrrrrrrrr@hotmail.com 9359B4D82B1* 1635730 Tue Jun 3 08:36:53 xxxxxx@xxxxxxx.com yyyyyyyy@hotmail.com The first number is the message ID, the asterisk behind it, denotes that the messages is currently in the process of being sent, to delete it enter. postsuper -d 93...
More About: Email , Queue , Purge , Delete
How to delete / purge an email from postfix queue
2008-06-03 14:55:00
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 This is going to list the current active queue in your server, something like this. 5642B4D8647* 1683500 Tue Jun 3 08:37:27 xxxxxx@xxxxxxx.com rrrrrrrrr@hotmail.com 9359B4D82B1* 1635730 Tue Jun 3 08:36:53 xxxxxx@xxxxxxx.com yyyyyyyy@hotmail.com The first number is the message ID, the asterisk behind it, denotes that the messages is currently in the process of being sent, to delete it enter. postsuper -d 93...
More About: Email , Queue , Purge , Delete
Gmail Manager - Firefox Extension
2008-05-23 15:51:00
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. It is also good that you can add sound when there is incoming email, you can also make firefox to directly open your account and create an email when you click on an email address link. Check it you will love it!, if you are gmail users :)
More About: Desktop , Extension
Gmail Manager - Firefox Extension
2008-05-23 15:51:00
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. It is also good that you can add sound when there is incoming email, you can also make firefox to directly open your account and create an email when you click on an email address link. Check it you will love it!, if you are gmail users :)
More About: Extension
How to find files, using command line (locate)
2008-05-21 22:27:00
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 This command will update the database of the files in a given file system, with no arguments, it will read from / to all file system structure looking for files and archiving the data in the database, located in Debian (/var/cache/locate/locatedb). There is an option for those using NFS (like me) that you can use to include your NFS file system in the database. --netpaths=?path1 path2...? So you can enter a command like this: sudo updatedb --netpaths=/media/nfs_drive Now that you have your database updated lets find files. locate You just need to enter: locate filename and the file named filename will be showed, example: locate apt-cacher -b The output is: /etc/apache2/conf.d/apt-cacher.conf /etc/apt-cacher /etc/apt-cacher/apt-cacher.conf /etc/cron.daily/apt-cacher /etc/defau...
More About: Find , Files , Line , Locate , Command
How to find files, using command line (locate)
2008-05-21 22:27:00
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 This command will update the database of the files in a given file system, with no arguments, it will read from / to all file system structure looking for files and archiving the data in the database, located in Debian (/var/cache/locate/locatedb). There is an option for those using NFS (like me) that you can use to include your NFS file system in the database. --netpaths=???path1 path2...??? So you can enter a command like this: sudo updatedb --netpaths=/media/nfs_drive Now that you have your database updated lets find files. locate You just need to enter: locate filename and the file named filename will be showed, example: locate apt-cacher -b The output is: /etc/apache2/conf.d/apt-cacher.conf /etc/apt-cacher /etc/apt-cacher/apt-cacher.conf /etc/cron.daily/apt-cacher /etc/d...
More About: Find , Files , Line , Locate , Command
Which runlevel are you in?
2008-05-21 22:06:00
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] This will change your runlevel to whatever number you enter there, be careful with this command as you can loose data, some programs may not close in an appropriate way. telinit is actually the same as init, or better said: telinit = tell init to do change runlevel to:...
Which runlevel are you in?
2008-05-21 22:06:00
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] This will change your runlevel to whatever number you enter there, be careful with this command as you can loose data, some programs may not close in an appropriate way. telinit is actually the same as init, or better said: telinit = tell init to do change runlevel to:...
1001 RSS readers
2008-05-21 21:46:00
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
More About: Readers
1001 RSS readers
2008-05-21 21:46:00
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
More About: Readers
Automatic Login - Gnome
2008-05-20 22:11:00
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: Systems->Administration->Login Window, you will be prompted for the administrator password, enter it and then select Security tab, once in there select Enable automatic login and select the user you want to be automatically logged in, each time you turn on your PC.
More About: Desktop , Automatic
Automatic Login - Gnome
2008-05-20 22:11:00
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: Systems->Administration->Login Window, you will be prompted for the administrator password, enter it and then select Security tab, once in there select Enable automatic login and select the user you want to be automatically logged in, each time you turn on your PC.
More About: Automatic
Showing line numbers on vim
2008-05-20 15:45:00
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. Turn on the number display on vim While editing the file enter: :set nu or :set number Turn off the number display on vim While editing the file enter: :set nonu or :set nonumber Printing the numbers Sometimes you want to print those numbers, specially if you are debugging software, so enter: :set printoptions=number:y Note: Remember that you can always put these commands in your $HOME/.vimrc in order to have them as defaults
More About: Numbers , Line
Showing line numbers on vim
2008-05-20 15:45:00
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. Turn on the number display on vim While editing the file enter: :set nu or :set number Turn off the number display on vim While editing the file enter: :set nonu or :set nonumber Printing the numbers Sometimes you want to print those numbers, specially if you are debugging software, so enter: :set printoptions=number:y Note: Remember that you can always put these commands in your $HOME/.vimrc in order to have them as defaults
More About: Numbers , Line
How to find which service is listening on a given port
2008-05-19 16:39:00
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 That will scan all ports and you will an output like this: Starting Nmap 4.53 ( http://insecure.org ) at 2008-05-19 10:20 BOT Initiating SYN Stealth Scan at 10:20 Scanning localhost (127.0.0.1) [65000 ports] Discovered open port 113/tcp on 127.0.0.1 Discovered open port 22/tcp on 127.0.0.1 Discovered open port 80/tcp on 127.0.0.1 Discovered open port 443/tcp on 127.0.0.1 Discovered open port 902/tcp on 127.0.0.1 Discovered open port 55378/tcp on 127.0.0.1 Discovered open port 3143/tcp on 127.0.0.1 Discovered open port 8307/tcp on 127.0.0.1 Discovered open port 631/tcp...
More About: How To , Service , Port , Find , Listening
How to find which service is listening on a given port
2008-05-19 16:39:00
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 That will scan all ports and you will an output like this: Starting Nmap 4.53 ( http://insecure.org ) at 2008-05-19 10:20 BOT Initiating SYN Stealth Scan at 10:20 Scanning localhost (127.0.0.1) [65000 ports] Discovered open port 113/tcp on 127.0.0.1 Discovered open port 22/tcp on 127.0.0.1 Discovered open port 80/tcp on 127.0.0.1 Discovered open port 443/tcp on 127.0.0.1 Discovered open port 902/tcp on 127.0.0.1 Discovered open port 55378/tcp on 127.0.0.1 Discovered open port 3143/tcp on 127.0.0.1 Discovered open port 8307/tcp on 127.0.0.1 Discovered open port 631/tcp...
More About: Service , Port , Find , Listening
Another way to populate your apt-cacher
2008-05-16 23:56:00
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. Usually at nights you are not working and your bandwidth is wasted, so at night you can enter this command to one or more Debian machines, (all pointed to the apt-cacher server see how to install apt-cacher). for pkg in `dpkg --get-selections | awk '{print $1}'`; do sudo aptitude download $pkg; sudo rm $pkg; done and you will have your machines downloading all its installed packages, and thus populating the apt-cacher database. Be sure to have issued sudo aptitude update && sudo aptitude safe-upgrade in those machines before, so they download the latest vers...
Another way to populate your apt-cacher
2008-05-16 23:56:00
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. Usually at nights you are not working and your bandwidth is wasted, so at night you can enter this command to one or more Debian machines, (all pointed to the apt-cacher server see how to install apt-cacher). for pkg in `dpkg --get-selections | awk '{print $1}'`; do sudo aptitude download $pkg; sudo rm $pkg; done and you will have your machines downloading all its installed packages, and thus populating the apt-cacher database. Be sure to have issued sudo aptitude update && sudo aptitude safe-upgrade in those machines before, so they download the latest vers...
The "Ubuntu Story" site
2008-05-16 13:59:00
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. You can also share your story (your Ubuntu's Story ) with others, and you can read other's story, there are some good ones, you find how Ubuntu helps people in all areas, from students, to web developers, to sales people, as a matter of fact in all possible areas. So, I encourage you to share your Ubuntu story in that site, if you are an Ubuntu user off course. I also like the design with flash, the colours, effects, etc. nice artwork. Ubuntu Story
More About: Ubuntu Linux , Site
The "Ubuntu Story" site
2008-05-16 13:59:00
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. You can also share your story (your Ubuntu's Story ) with others, and you can read other's story, there are some good ones, you find how Ubuntu helps people in all areas, from students, to web developers, to sales people, as a matter of fact in all possible areas. So, I encourage you to share your Ubuntu story in that site, if you are an Ubuntu user off course. I also like the design with flash, the colours, effects, etc. nice artwork. Ubuntu Story
More About: Site
How did Ubuntu end up so popular?
2008-05-16 12:49:00
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. Of course as almost everything in this globalization era, is marketing, but instead of starting an analysis, you better read the article I have found, and then comment about it. (Due to spam, I have to approve the comments before they go online). How did Ubuntu end up so popular?
More About: Ubuntu Linux , Popular
How did Ubuntu end up so popular?
2008-05-16 12:49:00
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. Of course as almost everything in this globalization era, is marketing, but instead of starting an analysis, you better read the article I have found, and then comment about it. (Due to spam, I have to approve the comments before they go online). How did Ubuntu end up so popular?
More About: Popular
wget - Resume downloads, limit the speed and much
2008-05-16 01:09:00
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 If you need to stop a current download, and pretend to resume it later, you should use the -c option i.e.: wget http://some.server.com/file -c Traffic shaping, or limiting the speed of the download I really use this feature a lot, as my home ADSL is not as big as I would like, I have to use the speed limiter, when downloading ISOs, otherwise I just can not continue working, to limit the speed of the download use the --limit-rate option. wget http://some.server.com/file --limit-rate=20k That line is going to limit the download speed to 20 Kbytes per second, or 160 kbps. Let wget working after log out from ssh connection I usually connect through ssh to my office (bet...
More About: Downloads , Speed
wget - Resume downloads, limit the speed and much
2008-05-16 01:09:00
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 If you need to stop a current download, and pretend to resume it later, you should use the -c option i.e.: wget http://some.server.com/file -c Traffic shaping, or limiting the speed of the download I really use this feature a lot, as my home ADSL is not as big as I would like, I have to use the speed limiter, when downloading ISOs, otherwise I just can not continue working, to limit the speed of the download use the --limit-rate option. wget http://some.server.com/file --limit-rate=20k That line is going to limit the download speed to 20 Kbytes per second, or 160 kbps. Let wget working after log out from ssh connection I usually connect through ssh to my office (bet...
More About: Downloads , Speed
The /etc/default/rcS file
2008-05-15 21:40:00
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 Well, this is what we can do: Change the frequency of cleaning /tmp/ directory The variable that controls that is TMPTIME, its default value is 0, so the /tmp/ directory will be cleaned no matter the age of the files in there, if you want you can specify that the files there should be a week old to be erasable, to do that change the value to 7, if you enter a negative value -1 for instance, then /tmp/ will never be cleaned. UTC or Local time The UTC variable, controls that you can enter yes or no, to tell Linux that your hardware clock is set to local time or to UT...
More About: File
The /etc/default/rcS file
2008-05-15 21:40:00
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 Well, this is what we can do: Change the frequency of cleaning /tmp/ directory The variable that controls that is TMPTIME, its default value is 0, so the /tmp/ directory will be cleaned no matter the age of the files in there, if you want you can specify that the files there should be a week old to be erasable, to do that change the value to 7, if you enter a negative value -1 for instance, then /tmp/ will never be cleaned. UTC or Local time The UTC variable, controls that you can enter yes or no, to tell Linux that your hardware clock is set to local time or to UT...
More About: File
Tip: Importing your /var/cache/apt/ files to apt-cacher database
2008-05-15 16:46:00
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: sudo /usr/share/apt-cacher/apt-cacher-import.p l /var/cache/apt/archives That is all, now you have all those packages available in your new Proxy server, to save disk space your can then run: sudo aptitude clean
More About: Database , Files , Cache
Tip: Importing your /var/cache/apt/ files to apt-cacher database
2008-05-15 16:46:00
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: sudo /usr/share/apt-cacher/apt-cacher-import.p l /var/cache/apt/archives That is all, now you have all those packages available in your new Proxy server, to save disk space your can then run: sudo aptitude clean
More About: Database , Files , Cache
How to: Find the fastest apt mirror server
2008-05-14 22:51:00
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. netselect-apt This tool will download the full list of mirrors and will quickly explore throw them for the fastest mirror for you, the use of it really easy and reliable. Installation You just need to run: sudo aptitude install netselect-apt Running it Once installed, run sudo netselect-apt -n -s lenny Be sure to change lenny for your appropriate version, you can use the name of the version, (edge, lenny, si...
More About: Find , Server , Mirror , Debian Linux
More articles from this author:
1, 2, 3, 4, 5, 6, 7
128705 blogs in the directory.
Statistics resets every week.


Contact | About
© Blog Toplist 2017