Go2Linux - The Linux SiteGo2Linux - The Linux SiteLinux help, news, tips, how to, security, backup, virtualization and software for your linux, Debian, Ubuntu, CentOS and Fedora Articles
Problems using OpenOffice documents on a NFS drive
2008-04-07 20:05:00 I am using OpenOffice 2.3 with Debian Lenny, and using a drive over NFS and OpenOffice seems to fail locking the file, so it "hangs" for a while and suddenly comes to life again but the file opened is only in read mode. First I went to check my /etc/exports file and then to check if everything in the /etc/hosts.deny and /etc/hosts.allow files and all was correct, so after googling a while I found the solution. You need to change the file: /usr/bin/soffice and make these lines look this way: STAR_PROFILE_LOCKING_DISABLED=1 export STAR_PROFILE_LOCKING_DISABLED #SAL_ENABLE_FILE_LOCKING=1 #export SAL_ENABLE_FILE_LOCKING unset SAL_ENABLE_FILE_LOCKING use your favorite file editor to edit that file and search for those strings, uncomment and comment or change accordingly. thanks to this page More About: Drive , Problems , Documents
Problems using OpenOffice documents on a NFS drive
2008-04-07 20:05:00 I am using OpenOffice 2.3 with Debian Lenny, and using a drive over NFS and OpenOffice seems to fail locking the file, so it "hangs" for a while and suddenly comes to life again but the file opened is only in read mode. First I went to check my /etc/exports file and then to check if everything in the /etc/hosts.deny and /etc/hosts.allow files and all was correct, so after googling a while I found the solution. You need to change the file: /usr/bin/soffice and make these lines look this way: STAR_PROFILE_LOCKING_DISABLED=1 export STAR_PROFILE_LOCKING_DISABLED #SAL_ENABLE_FILE_LOCKING=1 #export SAL_ENABLE_FILE_LOCKING unset SAL_ENABLE_FILE_LOCKING use your favorite file editor to edit that file and search for those strings, uncomment and comment or change accordingly. thanks to this page More About: Drive , Problems , Documents
Trash can or Recycle bin in Linux Desktop (managed from console)
2008-04-04 22:21:00 Linux Desktop s, at least Gnome and KDE has a trash can, where your deleted files go, (only when deleted from a Desktop utility). Now if you want to manage it from the console, you can, first we need to know that the trash can is only another folder in the File system structure and it is located at: $HOME/.Trash so you can send files to Trash just moving them to there, as an example, lets suppose you have a file in your home called balance.ods and want to move it to the trash can. mv $HOME/balance.ods $HOME/.Trash/ Whenever you may want to recover it, just move it to its original location or to any other you prefer, just like this: mv $HOME/.Trash/balance.ods $HOME/ and you are done, if you want to purge your trash can, just enter. rm -rf $HOME/.Trash/* BE AWARE: This action can not be undone!!, so use with care you can even create a script to use instead of rm in your console, the easiest one is this: #!/bin/sh mv $1 ~/.Trash If somebody can think into a better one, please share w... More About: Linux , Console , Recycle , Recycle Bin
Trash can or Recycle bin in Linux Desktop (managed from console)
2008-04-04 22:21:00 Linux Desktop s, at least Gnome and KDE has a trash can, where your deleted files go, (only when deleted from a Desktop utility). Now if you want to manage it from the console, you can, first we need to know that the trash can is only another folder in the File system structure and it is located at: $HOME/.Trash so you can send files to Trash just moving them to there, as an example, lets suppose you have a file in your home called balance.ods and want to move it to the trash can. mv $HOME/balance.ods $HOME/.Trash/ Whenever you may want to recover it, just move it to its original location or to any other you prefer, just like this: mv $HOME/.Trash/balance.ods $HOME/ and you are done, if you want to purge your trash can, just enter. rm -rf $HOME/.Trash/* BE AWARE: This action can not be undone!!, so use with care you can even create a script to use instead of rm in your console, the easiest one is this: #!/bin/sh mv $1 ~/.Trash If somebody can think into a better one, please share w... More About: Linux , Console , Recycle , Recycle Bin
How to assign a password to root user in Ubuntu
2008-04-02 13:41:00 Ubuntu by default has no root password, and you can also configure Debian in that way if you choose the advanced installation option, and decide not to use the root password. But what to do if later you need the root user? well you just need to assign a password to the root user and then you will be able to switch to root user. sudo passwd Type a good strong password twice, and you are done. su - Type the root password and voila! you are logged as root, you know you have to be carefull on what you do being root right? More About: Ubuntu , Ubuntu Linux , Password , User , Root
How to assign a password to root user in Ubuntu
2008-04-02 13:41:00 Ubuntu by default has no root password, and you can also configure Debian in that way if you choose the advanced installation option, and decide not to use the root password. But what to do if later you need the root user? well you just need to assign a password to the root user and then you will be able to switch to root user. sudo passwd Type a good strong password twice, and you are done. su - Type the root password and voila! you are logged as root, you know you have to be carefull on what you do being root right? More About: Ubuntu , Ubuntu Linux , Password , User , Root
PCLinuxOS
2008-04-02 13:22:00 I have started testing PCLinux , I am still trying it using the Live CD, I am going to install it later. I have seen that it has discover my hardware very well, and seems to be really fast even using the live CD. I will post more later, but in meanwhile I have discovered that there is a PCLinux Magazine and the april 2008 version has been released. I contains good stuff, and you can download it in PDF or read it in HTML. I have to say that I like the minime version idea, where you can customize your own OS, I have not deeply tested it, but I think I can compare it with the basic Debian installation CD.
PCLinuxOS
2008-04-02 13:22:00 I have started testing PCLinux , I am still trying it using the Live CD, I am going to install it later. I have seen that it has discover my hardware very well, and seems to be really fast even using the live CD. I will post more later, but in meanwhile I have discovered that there is a PCLinux Magazine and the april 2008 version has been released. I contains good stuff, and you can download it in PDF or read it in HTML. I have to say that I like the minime version idea, where you can customize your own OS, I have not deeply tested it, but I think I can compare it with the basic Debian installation CD.
Terminator - multiple terminals in one window
2008-03-25 14:03:00 I really like to work with the console, and to connect to my servers using ssh, to administrate them, so sometimes I found myself with lots of terminal windows open, I have explored some solutions in the past, that you can see on this post about Terminal emulators, now I have found a new one which I really like, it is called terminator. For Debian users it is available only on Sid, and as I use Lenny I had to install it from the sources. If you are using Ubuntu it is available for Gutsy and Hardy here Well lets install it from the sources, download it from this page then unpack it: tar xvzf terminator_0.8.1.tar.gz Note: Replace the name with the name of your file. Go to the terminator's directory: cd terminator-0.8.1 and install it, ./setup.py install It is good to read the INSTALL file, I will list it here: install python vte bindings ("python-vte" on Debian/ubuntu) and run: ./setup.py install Note that this is not as complete as a package install at the moment - e.g. GNOME... More About: Window , Terminator
Terminator - multiple terminals in one window
2008-03-25 14:03:00 I really like to work with the console, and to connect to my servers using ssh, to administrate them, so sometimes I found myself with lots of terminal windows open, I have explored some solutions in the past, that you can see on this post about Terminal emulators, now I have found a new one which I really like, it is called terminator. For Debian users it is available only on Sid, and as I use Lenny I had to install it from the sources. If you are using Ubuntu it is available for Gutsy and Hardy here Well lets install it from the sources, download it from this page then unpack it: tar xvzf terminator_0.8.1.tar.gz Note: Replace the name with the name of your file. Go to the terminator's directory: cd terminator-0.8.1 and install it, ./setup.py install It is good to read the INSTALL file, I will list it here: install python vte bindings ("python-vte" on Debian/ubuntu) and run: ./setup.py install Note that this is not as complete as a package install at the moment - e.g. GNOME... More About: Window , Terminator
Installing and reviewing Drupal 6.0
2008-03-23 20:39:00 As some of you may have noticed, Go2Linux is powered by Drupal , and Drupal has released its 6 version some time ago, we are still using 5.x cause I am waiting all the modules to be ready and tested with 6.x before switching, I do not want to break Go2Linux :). Anyhow I am reading some articles about installing and upgrading Drupal, and i have found this two good articles about that topic. If any of you are interested in Drupal, you may like to read these: Drupal 6.0 Installation and basic usage Drupal 6 keeps getting better Drupal is a great CMS, I have tested Joomla before, Go2Linux was born on Joomla but I have switched to Drupal, as I have found it easier to use as a blog, later I met WordPress, but I think Drupal has more possibilities, I have to admit that I tested WordPress only a few to make a give a real opinion about it. hope you enjoy the articles. More About: Reviewing
Installing and reviewing Drupal 6.0
2008-03-23 20:39:00 As some of you may have noticed, Go2Linux is powered by Drupal , and Drupal has released its 6 version some time ago, we are still using 5.x cause I am waiting all the modules to be ready and tested with 6.x before switching, I do not want to break Go2Linux :). Anyhow I am reading some articles about installing and upgrading Drupal, and i have found this two good articles about that topic. If any of you are interested in Drupal, you may like to read these: Drupal 6.0 Installation and basic usage Drupal 6 keeps getting better Drupal is a great CMS, I have tested Joomla before, Go2Linux was born on Joomla but I have switched to Drupal, as I have found it easier to use as a blog, later I met WordPress, but I think Drupal has more possibilities, I have to admit that I tested WordPress only a few to make a give a real opinion about it. hope you enjoy the articles. More About: Reviewing
NFS - Creating a Network drive Quick NFS how-to
2008-03-16 21:53:00 NFS or Network File System is a great way to share documents, or expand your disk space, using the disk on another server, I am using it to share documents between my office and home, I have my office disk mounted in my home's PC using NFS. Well the PC at my office has CentOS, so the first thing I need is to install the necessary software. yum install nfs-utils portmap If you are using Debian write: sudo aptitude install nfs-user-server pormap Ok, now we need to configure it, there are basically two configuration files one in the server side, and one the client side. At the server We need to edit /etc/exports file and add something like this: /home/user/ 192.168.1.0/255.255.255.0(rw,sync) That line tells the server that the directory /home/user is allowed to be exported to all the class C 192.168.1.0 PCs, and they will have read and write access, and sync makes the server to be sure that files are written to stable storage, and with async the server tells the client it has ... More About: How To , Drive , Creating , Quick
NFS - Creating a Network drive Quick NFS how-to
2008-03-16 21:53:00 NFS or Network File System is a great way to share documents, or expand your disk space, using the disk on another server, I am using it to share documents between my office and home, I have my office disk mounted in my home's PC using NFS. Well the PC at my office has CentOS, so the first thing I need is to install the necessary software. yum install nfs-utils portmap If you are using Debian write: sudo aptitude install nfs-user-server pormap Ok, now we need to configure it, there are basically two configuration files one in the server side, and one the client side. At the server We need to edit /etc/exports file and add something like this: /home/user/ 192.168.1.0/255.255.255.0(rw,sync) That line tells the server that the directory /home/user is allowed to be exported to all the class C 192.168.1.0 PCs, and they will have read and write access, and sync makes the server to be sure that files are written to stable storage, and with async the server tells the client it has ... More About: How To , Drive , Creating , Quick
Ubuntu How-Tos
2008-03-15 15:06:00 My friend from Ubuntu HQ, had a great idea, he installed a Wiki on his site, and now you can add links to Ubuntu How-Tos, the page already has lots of How-To links. It seems Ubuntu users really like the idea, just need to check how it preformed on StumbleUpon or digg Of course you can use a lot of those links on other distribution, as Linux is Linux no matter the flavor, just a little tweak to the commands or configuration files, and they will work for your distro also. please visit the page, and add your own how-to links to make it work better, also recommend the page to newbies, so they start easier with Linux Operating System. Here is the link to the Ubuntu Howtos list
Ubuntu How-Tos
2008-03-15 15:06:00 My friend from Ubuntu HQ, had a great idea, he installed a Wiki on his site, and now you can add links to Ubuntu How-Tos, the page already has lots of How-To links. It seems Ubuntu users really like the idea, just need to check how it preformed on StumbleUpon or digg Of course you can use a lot of those links on other distribution, as Linux is Linux no matter the flavor, just a little tweak to the commands or configuration files, and they will work for your distro also. please visit the page, and add your own how-to links to make it work better, also recommend the page to newbies, so they start easier with Linux Operating System. Here is the link to the Ubuntu Howtos list
apt-get, aptitude, autoremove and orphans
2008-03-13 16:58:00 Until some weeks ago I used to use only apt-get, and then I realized that aptitude is better in taking care of orphan packages. I am no expert here, but this is the way I think they both work, at least on Debian Etch, I have heard that in Lenny both works more or less the same, I use Lenny, and yes they can do the same thing but in different ways. Well when you install a package with apt-get, and that packages needs other packages due to dependencies, it will install all of them for you, which is great, but then when you want to remove the installed package, apt-get will let the automatically installed packages in your PC, while aptitude will rid them away. Aptitude marks all installed packages as "manual installed" and "automatically installed", the first are those you explicitly ask it to install and the latter are those which it decided to install by you, because they are needed, so when you ask aptitude to remove a package it will remove also the automatically installed ones, s... More About: Orphans
apt-get, aptitude, autoremove and orphans
2008-03-13 16:58:00 Until some weeks ago I used to use only apt-get, and then I realized that aptitude is better in taking care of orphan packages. I am no expert here, but this is the way I think they both work, at least on Debian Etch, I have heard that in Lenny both works more or less the same, I use Lenny, and yes they can do the same thing but in different ways. Well when you install a package with apt-get, and that packages needs other packages due to dependencies, it will install all of them for you, which is great, but then when you want to remove the installed package, apt-get will let the automatically installed packages in your PC, while aptitude will rid them away. Aptitude marks all installed packages as "manual installed" and "automatically installed", the first are those you explicitly ask it to install and the latter are those which it decided to install by you, because they are needed, so when you ask aptitude to remove a package it will remove also the automatically installed ones, s... More About: Orphans
Reading compressed Files
2008-03-13 15:39:00 I did not know this, but if you need to show a compressed text file on the screen, you do not actually need to uncompress it. You can use zcat to send the file to the standard output, uncompressed, but the original file remains untouched. The syntax of the command is: zcat file.gz or you can also use, gunzip -c file.gz what is going to happen is that the file will be uncompressed on the fly, sent to the standard output (usually screen). If the .gz file contains more than one file they will be shown in sequence, you can also redirect the output using >. More About: Reading , Files
Reading compressed Files
2008-03-13 15:39:00 I did not know this, but if you need to show a compressed text file on the screen, you do not actually need to uncompress it. You can use zcat to send the file to the standard output, uncompressed, but the original file remains untouched. The syntax of the command is: zcat file.gz or you can also use, gunzip -c file.gz what is going to happen is that the file will be uncompressed on the fly, sent to the standard output (usually screen). If the .gz file contains more than one file they will be shown in sequence, you can also redirect the output using >. More About: Reading , Files
Copying all your emails to another account
2008-03-10 14:44:00 If you are like me, and administer your own email in a Linux box, and do not have set CPanel or any other similar tool, you can still forward your email to another account or, just send a cc to another account. Let's say you are: john@john.com And the email for john.com is managed by a Linux server with sendmail, or Postfix, and you may want all your incoming email to john@john.com to be copied to john@gmail.com just have to edit or create the .forward file in your home directory vim $HOME/.forward and add these lines inside. john john@gmail.com note that john itself has a "" symbol, this is to instruct Sendmail or Postfix not to expand john again, or it will enter in a loop. If what you want is just to forward and not keep a local copy enter something like this: john@gmail.com You can also copy to a lot of addresses. john@gmail.com john@hotmail.com john@yahoo.com You may say, that all of these can be done using /etc/aliases and yes it can, but if you do not have the root p... More About: Emails , Account
Copying all your emails to another account
2008-03-10 14:44:00 If you are like me, and administer your own email in a Linux box, and do not have set CPanel or any other similar tool, you can still forward your email to another account or, just send a cc to another account. Let's say you are: john@john.com And the email for john.com is managed by a Linux server with sendmail, or Postfix, and you may want all your incoming email to john@john.com to be copied to john@gmail.com just have to edit or create the .forward file in your home directory vim $HOME/.forward and add these lines inside. john john@gmail.com note that john itself has a "" symbol, this is to instruct Sendmail or Postfix not to expand john again, or it will enter in a loop. If what you want is just to forward and not keep a local copy enter something like this: john@gmail.com You can also copy to a lot of addresses. john@gmail.com john@hotmail.com john@yahoo.com You may say, that all of these can be done using /etc/aliases and yes it can, but if you do not have the root p... More About: Emails , Account
I am father for the second time!
2008-03-08 05:46:00 I will try to update the blog this weekend, but if I cant please forgive me, on March the 7th my second child was born, he is a boy! I already have a girl who is six years old. My boy came to the world with 3.350 Kgs and 49 cms, he is healthy, and by the time I am writing this (using the hospital's WiFi) he is with his mother, feeding him :). I wanted to share my happiness with you! thanks for your support, and also for reading this blog. More About: Time , Father
I am father for the second time!
2008-03-08 05:46:00 I will try to update the blog this weekend, but if I cant please forgive me, on March the 7th my second child was born, he is a boy! I already have a girl who is six years old. My boy came to the world with 3.350 Kgs and 49 cms, he is healthy, and by the time I am writing this (using the hospital's WiFi) he is with his mother, feeding him :). I wanted to share my happiness with you! thanks for your support, and also for reading this blog. More About: Time , Father
Security Support for Debian 3.1 to be terminated
2008-03-04 13:22:00 After one year of the release of Debian Etch the Security support for Sarge is going to be terminated as previously announced, as informed three days ago in the Debian page. Here is part of the announcement. One year after the release of Debian GNU/Linux 4.0 alias 'etch' and nearly three years after the release of Debian GNU/Linux 3.1 alias 'sarge' the security support for the old distribution (3.1 alias 'sarge') is coming to an end next month. The Debian project is proud to be able to support its old distribution for such a long time and even for one year after a new version has been released. If you want to read the full announce read here More About: Support , Debian Linux
Security Support for Debian 3.1 to be terminated
2008-03-04 13:22:00 After one year of the release of Debian Etch the Security support for Sarge is going to be terminated as previously announced, as informed three days ago in the Debian page. Here is part of the announcement. One year after the release of Debian GNU/Linux 4.0 alias 'etch' and nearly three years after the release of Debian GNU/Linux 3.1 alias 'sarge' the security support for the old distribution (3.1 alias 'sarge') is coming to an end next month. The Debian project is proud to be able to support its old distribution for such a long time and even for one year after a new version has been released. If you want to read the full announce read here More About: Support , Debian Linux
Debian 5.0 Code name Lenny to be released in September 2008
2008-03-04 13:11:00 Two days ago in a Release Update Marc Brockschmidt announced that Debian Lenny will be released under the number of 5.0, he also announced that it could be shipped with KDE 4, as he says There may be a possibility to include KDE4 in lenny. The efforts on KDE4.1 have been quite promising and seem to be leading to a desktop environment which can fully replace KDE3. If you want to check the release schedule of Debian Lenny read here More About: Code , Released , September , Code Name
Debian 5.0 Code name Lenny to be released in September 2008
2008-03-04 13:11:00 Two days ago in a Release Update Marc Brockschmidt announced that Debian Lenny will be released under the number of 5.0, he also announced that it could be shipped with KDE 4, as he says There may be a possibility to include KDE4 in lenny. The efforts on KDE4.1 have been quite promising and seem to be leading to a desktop environment which can fully replace KDE3. If you want to check the release schedule of Debian Lenny read here More About: Code , Released , September , Code Name
mplayer - command line movie and music player - music over ssh
2008-03-01 16:26:00 Mplayer is one of most known movie players in Linux, and also in Mac OS, and Windows. To install it in Debian / Ubuntu run: sudo aptitude install mplayer Mplayer has lots of options, and we will explore some of them here, the files format it can play according to its official site are: MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies.. Playing your music/video files If you want to play your local files just use this command line mplayer [filename(s)] Yes you can put multiple files and they will be played in sequence, you can also use wildcards, lets suppose you have a directory with all Beatles' hits, just go to that directory and enter: mplayer * Now if you want to repeat a file multiple times enter mplayer file1 -loop 2 file2 -loop 1 file3 -loop5 Here you will play file1 2 ti... More About: Movie , Music , Desktop , Player , Line
mplayer - command line movie and music player - music over ssh
More articles from this author:2008-03-01 16:26:00 Mplayer is one of most known movie players in Linux, and also in Mac OS, and Windows. To install it in Debian / Ubuntu run: sudo aptitude install mplayer Mplayer has lots of options, and we will explore some of them here, the files format it can play according to its official site are: MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies.. Playing your music/video files If you want to play your local files just use this command line mplayer [filename(s)] Yes you can put multiple files and they will be played in sequence, you can also use wildcards, lets suppose you have a directory with all Beatles' hits, just go to that directory and enter: mplayer * Now if you want to repeat a file multiple times enter mplayer file1 -loop 2 file2 -loop 1 file3 -loop5 Here you will play file1 2 ti... More About: Movie , Music , Desktop , Player , Line 1, 2, 3, 4, 5, 6, 7 |



