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
Fedora and Fluxbox
2008-02-25 02:05:00 Just like The light weight Debian we can do the same with Fedora , I will use Fedora 8 and Fluxbox to install a light Desktop Linux. First start the installation CD, I have chosen the text environment as, this is supposed to be a light installation, I am doing this on VMware with 128 Kbytes of memory assigned. Once you get to the package selection screen be sure to have something like this: So you can select later which software to install, then on the next window, when you are selecting individual packages select these: Administration tools Development tools Editors Hardware support Text-based Internet Once you have finished the installation, you will have a very light Fedora, with only the minimal software installed on it, you can no use the ntsysv to disable the daemons you will not use, like bluetooth, ISDN, CUPS in my case. Read this great post to decide which daemons you need and which you do not. Once that is finished, lets start installing the X environment. yum install x... More About: Fedora Linux
Fedora and Fluxbox
2008-02-25 02:05:00 Just like The light weight Debian we can do the same with Fedora , I will use Fedora 8 and Fluxbox to install a light Desktop Linux. First start the installation CD, I have chosen the text environment as, this is supposed to be a light installation, I am doing this on VMware with 128 Kbytes of memory assigned. Once you get to the package selection screen be sure to have something like this: So you can select later which software to install, then on the next window, when you are selecting individual packages select these: Administration tools Development tools Editors Hardware support Text-based Internet Once you have finished the installation, you will have a very light Fedora, with only the minimal software installed on it, you can no use the ntsysv to disable the daemons you will not use, like bluetooth, ISDN, CUPS in my case. Read this great post to decide which daemons you need and which you do not. Once that is finished, lets start installing the X environment. yum install x... More About: Fedora Linux
Lindesk - Linux Blog review
2008-02-24 16:18:00 Because of a comment here in Go2Linux I discovered Lindesk, which is a great Linux blog, I really enjoyed the articles posted there. The blog is mainly focused on Fedora, and have lots of Desktop applications' reviews since some time ago, the author has focused on multimedia applications, and has reviewed, MP3 players, showing the features, the pros and cons of every software reviewed, there are also lots of KDE tips, like how to start with "numlock" enabled. The Fedora section comes with some good tips to tweak your Fedora and make it faster, and more usable. The articles are well divided with titles and sub-titles, making it easy to read, also with lots of screenshots where needed. There are not too much articles per month some 5 to 10 per month but expect quality more than quantity, at LinDesk. Check also the about page to visit other blogs from the same author. More About: Review , Blog
Lindesk - Linux Blog review
2008-02-24 16:18:00 Because of a comment here in Go2Linux I discovered Lindesk, which is a great Linux blog, I really enjoyed the articles posted there. The blog is mainly focused on Fedora, and have lots of Desktop applications' reviews since some time ago, the author has focused on multimedia applications, and has reviewed, MP3 players, showing the features, the pros and cons of every software reviewed, there are also lots of KDE tips, like how to start with "numlock" enabled. The Fedora section comes with some good tips to tweak your Fedora and make it faster, and more usable. The articles are well divided with titles and sub-titles, making it easy to read, also with lots of screenshots where needed. There are not too much articles per month some 5 to 10 per month but expect quality more than quantity, at LinDesk. Check also the about page to visit other blogs from the same author. More About: Review , Blog
for - Control flow statement in shell scripts
2008-02-24 13:17:00 One real important part of programming is to control the flow of the program, you need to be able to repeat some part of the code, jump to another part, etc, depending on the estate of some variables, there are a lot of commands to achieve that, and one of them is for It can be used directly at the command line like this example using basename for i in *.jpg; do echo $i $(basename $i .jpg); done This command will print all the filenames which ends with .jpg with and without the .jpg suffix. This line has three parts, divided by the semicolon. The first part for i in *.jpg assigns the names of the files ending in .jpg to the variable i (one at a time, not like a matrix), then the second part do echo $i $(basename $i .jpg) prints to the screen the value of the variable i, and then the variable i without the trailing .jpg, so you may have an output like this. 100_0055.jpg 100_0055 100_0056.jpg 100_0056 100_0057.jpg 100_0057 100_0058.jpg 100_0058 100_0059.jpg 100_0059 100_0060.jpg 100_... More About: Scripts , Shell , Control , Flow , Statement
for - Control flow statement in shell scripts
2008-02-24 13:17:00 One real important part of programming is to control the flow of the program, you need to be able to repeat some part of the code, jump to another part, etc, depending on the estate of some variables, there are a lot of commands to achieve that, and one of them is for It can be used directly at the command line like this example using basename for i in *.jpg; do echo $i $(basename $i .jpg); done This command will print all the filenames which ends with .jpg with and without the .jpg suffix. This line has three parts, divided by the semicolon. The first part for i in *.jpg assigns the names of the files ending in .jpg to the variable i (one at a time, not like a matrix), then the second part do echo $i $(basename $i .jpg) prints to the screen the value of the variable i, and then the variable i without the trailing .jpg, so you may have an output like this. 100_0055.jpg 100_0055 100_0056.jpg 100_0056 100_0057.jpg 100_0057 100_0058.jpg 100_0058 100_0059.jpg 100_0059 100_0060.jpg 100_... More About: Scripts , Shell , Control , Flow , Statement
basename - removing directories and suffix from file names
2008-02-24 12:47:00 If you need to remove the directory or any suffix from a file name you may use basename, this is really useful when you are creating shell scripts. In the man page, there are this examples basename /usr/bin/sort Output "sort". basename include/stdio.h .h Output "stdio". you can enter info basename to get this output: File : *manpages*, Node: basename, Up: (dir) BASENAME(1) User Commands BASENAME(1) NAME basename - strip directory and suffix from filenames SYNOPSIS basename NAME [SUFFIX] basename OPTION DESCRIPTION Print NAME with any leading directory components removed. If speci- fied, also remove a trailing SUFFIX. --help display this help and exit --version output version information and exit EXAMPLES basename /usr/bin/sort Output "sort". basename include/stdio.h .h Output "stdio". AUTHOR Written ... More About: Directories , Names
basename - removing directories and suffix from file names
2008-02-24 12:47:00 If you need to remove the directory or any suffix from a file name you may use basename, this is really useful when you are creating shell scripts. In the man page, there are this examples basename /usr/bin/sort Output "sort". basename include/stdio.h .h Output "stdio". you can enter info basename to get this output: File : *manpages*, Node: basename, Up: (dir) BASENAME(1) User Commands BASENAME(1) NAME basename - strip directory and suffix from filenames SYNOPSIS basename NAME [SUFFIX] basename OPTION DESCRIPTION Print NAME with any leading directory components removed. If speci- fied, also remove a trailing SUFFIX. --help display this help and exit --version output version information and exit EXAMPLES basename /usr/bin/sort Output "sort". basename include/stdio.h .h Output "stdio". AUTHOR Written ... More About: Directories , Names
How to install Google Earth on Debian or Ubuntu
2008-02-23 16:07:00 Google earth according to wikipedia is: "... virtual globe program that was originally called Earth Viewer and was created by Keyhole, Inc. It maps the earth by the superimposition of images obtained from satellite imagery, aerial photography and GIS 3D globe. It is available under three different licenses: Google Earth , a free version with limited functionality; Google Earth Plus ($20 per year), which includes additional features; and Google Earth Pro ($400 per year), which is intended for commercial use" So, how could we install it on our Debian or Ubuntu system?, it is really easy now. First we need to Google Earth package, to be able to create the .deb file. Let's start. sudo aptitude install googleearth-package Then create the .deb file. sudo make-googleearth-package Now install you recently created .deb file. sudo dpkg -i googleearth_4.2.205.5730+0.5.2-1_i386.deb Your .deb file name could be different depending on your architecture and the version of Google Earth available by... More About: Google , Desktop
How to install Google Earth on Debian or Ubuntu
2008-02-23 16:07:00 Google earth according to wikipedia is: "... virtual globe program that was originally called Earth Viewer and was created by Keyhole, Inc. It maps the earth by the superimposition of images obtained from satellite imagery, aerial photography and GIS 3D globe. It is available under three different licenses: Google Earth , a free version with limited functionality; Google Earth Plus ($20 per year), which includes additional features; and Google Earth Pro ($400 per year), which is intended for commercial use" So, how could we install it on our Debian or Ubuntu system?, it is really easy now. First we need to Google Earth package, to be able to create the .deb file. Let's start. sudo aptitude install googleearth-package Then create the .deb file. sudo make-googleearth-package Now install you recently created .deb file. sudo dpkg -i googleearth_4.2.205.5730+0.5.2-1_i386.deb Your .deb file name could be different depending on your architecture and the version of Google Earth available by... More About: Google , Desktop
According to Opera, there is no browser market - Thanks to Microsoft -
2008-02-20 19:42:00 According to Opera CTO Håkon Wium Lie, because of the mopolistic practices of Microsoft , giving Windows and IE as a bundle, there is no real browser market, and Microsoft does not hear its users, as in any monopoly there is no need to hear the users. Here is a portion of the article in arstechnica With recent news about Internet Explorer 8's imminent beta, Microsoft's long and checkered history with web standards compliance has been hurled back into the harsh, unflattering spotlight. Even though IE8 will have a new "standards compliant" mode, it won't be perfect, stirring up a new wave of grumbling about Microsoft's attitude and position in the browser market. Related Stories * Microsoft: plethora of browsers = no basis for Opera gripes * Opera tries to force IE into W3C compliance with EU complaint; Firefox's success may work against it * Browser numbers released, IE still losing ground * Microsoft starts auto updates for Internet Explorer 7 Opera CTO Håkon W... More About: Market
According to Opera, there is no browser market - Thanks to Microsoft -
2008-02-20 19:42:00 According to Opera CTO H??kon Wium Lie, because of the mopolistic practices of Microsoft , giving Windows and IE as a bundle, there is no real browser market, and Microsoft does not hear its users, as in any monopoly there is no need to hear the users. Here is a portion of the article in arstechnica With recent news about Internet Explorer 8's imminent beta, Microsoft's long and checkered history with web standards compliance has been hurled back into the harsh, unflattering spotlight. Even though IE8 will have a new "standards compliant" mode, it won't be perfect, stirring up a new wave of grumbling about Microsoft's attitude and position in the browser market. Related Stories * Microsoft: plethora of browsers = no basis for Opera gripes * Opera tries to force IE into W3C compliance with EU complaint; Firefox's success may work against it * Browser numbers released, IE still losing ground * Microsoft starts auto updates for Internet Explorer 7 Opera CTO H??kon... More About: Market
Friendly interactive shell (Fish)
2008-02-19 22:19:00 I think Friendly Interactive Shell (a.k.a. fish) is a real good tool for newbies on the console at Linux, it has a lot of features, which you can by typing help. Well first lets see how to install the application. Fedora / Centos sudo yum install fish Debian / Ubuntu sudo aptitude install fish Once installed just enter fish at any console and you will have the prompt again, but this time a more friendly prompt :). As you can see in this screenshots: here you can see that after entered ls a and by pressing TAB you get as usually the options you have, but also an explanation of each of it. On this other screenshot you can see that if you enter a command that does not exists it will remain red, and it will turn red, once you enter a well spelled command, so you have coloured syntax with fish, which is great for those starting with Linux operating system Now, lets see some of features at fish help file More About: Fish
Friendly interactive shell (Fish)
2008-02-19 22:19:00 I think Friendly Interactive Shell (a.k.a. fish) is a real good tool for newbies on the console at Linux, it has a lot of features, which you can by typing help. Well first lets see how to install the application. Fedora / Centos sudo yum install fish Debian / Ubuntu sudo aptitude install fish Once installed just enter fish at any console and you will have the prompt again, but this time a more friendly prompt :). As you can see in this screenshots: here you can see that after entered ls a and by pressing TAB you get as usually the options you have, but also an explanation of each of it. On this other screenshot you can see that if you enter a command that does not exists it will remain red, and it will turn red, once you enter a well spelled command, so you have coloured syntax with fish, which is great for those starting with Linux operating system Now, lets see some of features at fish help file More About: Fish
Drupal 6.0 stable released
2008-02-19 11:57:00 Maybe a lot of you already know about this, but for those who do not know, Drupal has released almost a week ago the stable version of Drupal 6.0, they have worked on this for almost a year, and now it is focused on PHP5. If you use Drupal on your site, check that all your modules have been ported before you do the upgrade, otherwise, you will have to disable that module not ported from 5 to 6. It is also a good idea, if you use an alternate site, to make the test, like http://www.yoursite.com/drupal6/ and check how it performs there, of course you will need to create another database for it. Read this before doing anything. More About: Released
Drupal 6.0 stable released
2008-02-19 11:57:00 Maybe a lot of you already know about this, but for those who do not know, Drupal has released almost a week ago the stable version of Drupal 6.0, they have worked on this for almost a year, and now it is focused on PHP5. If you use Drupal on your site, check that all your modules have been ported before you do the upgrade, otherwise, you will have to disable that module not ported from 5 to 6. It is also a good idea, if you use an alternate site, to make the test, like http://www.yoursite.com/drupal6/ and check how it performs there, of course you will need to create another database for it. Read this before doing anything. More About: Released
Enabling sound in my Light weight Debian - Fluxbox Laptop
2008-02-17 21:09:00 Continuing with my Lightweight Debian configuration, today I wanted to add sound and music to it, I have 4 Gigs of MP3, and I needed to hear them. Maybe the best option is mpg123 which is command line mp3 player, but today I wanted to try audacious, which looks a lot like XMMS although it is not a fork of it, you can see some good screenshots of it. To install the sound in my Debian first I needed to install alsa-utils sudo aptitude install alsa-utils And then install audacious sudo aptitude install audacious after that everything was running perfect and I was listening to my favorite music. Do not forget to check also some of its features More About: Desktop , Weight , Laptop , Sound
Enabling sound in my Light weight Debian - Fluxbox Laptop
2008-02-17 21:09:00 Continuing with my Lightweight Debian configuration, today I wanted to add sound and music to it, I have 4 Gigs of MP3, and I needed to hear them. Maybe the best option is mpg123 which is command line mp3 player, but today I wanted to try audacious, which looks a lot like XMMS although it is not a fork of it, you can see some good screenshots of it. To install the sound in my Debian first I needed to install alsa-utils sudo aptitude install alsa-utils And then install audacious sudo aptitude install audacious after that everything was running perfect and I was listening to my favorite music. Do not forget to check also some of its features More About: Desktop , Weight , Laptop , Sound
Simple shell script
2008-02-17 14:43:00 Maybe most of the readers of this blog do already know about shell scripts, and maybe they know even more than me (which is not difficult), but for those who does not know about it, I will write a little about shell scripts. A shell script is a sequence of commands -For those coming from DOS is like a .bat file- this command will execute in the sequence they are entered, unless loops, if, do, for, or any other commands like those are used. Writing the script Lets go with the classic example, of "Hello World" First just use your favorite text editor, (do not use a word processor), and write this inside. #!/bin/sh clear echo "Hello World" lets say you named this file, myfirstscript.sh, you can name it almost anything you want, but try to use a comprehensive name, and use the .sh extension, for better human reading. Making it executable Now we need to tell Linux that this is an executable file, so the operating system may know how to treat with it, to do that execute chmod +x myfirs... More About: Script , Shell , Simple
Simple shell script
2008-02-17 14:43:00 Maybe most of the readers of this blog do already know about shell scripts, and maybe they know even more than me (which is not difficult), but for those who does not know about it, I will write a little about shell scripts. A shell script is a sequence of commands -For those coming from DOS is like a .bat file- this command will execute in the sequence they are entered, unless loops, if, do, for, or any other commands like those are used. Writing the script Lets go with the classic example, of "Hello World" First just use your favorite text editor, (do not use a word processor), and write this inside. #!/bin/sh clear echo "Hello World" lets say you named this file, myfirstscript.sh, you can name it almost anything you want, but try to use a comprehensive name, and use the .sh extension, for better human reading. Making it executable Now we need to tell Linux that this is an executable file, so the operating system may know how to treat with it, to do that execute chmod +x myfirs... More About: Script , Shell , Simple
Learning Gentoo
2008-02-16 20:56:00 This week I have installed Gentoo , I made it using the Live CD once there I have used the text interface to install it, with the expert option, and using Networkless, so it is more or less like installing the Debian base system. Once that installed (the instructions were easy to follow), I installed xorg emerge xorg-x11 Follow this: http://www.gentoo.org/doc/en/xorg-config. xml and fluxbox emerge fluxbox Follow this: http://gentoo-wiki.com/HOWTO_Fluxbox After that I wanted to install firefox, so I had some problems, I had to resync my portage packages using: emerge --sync Then follow this to install firefox Install Firefox on Gentoo As you can see everything is well documented on Gentoo, I think it is really difficult to add something to such well documented distro, I have to say it is not easy to work with it, but I like it, it optimizes the hardware to limits I had not seen before, using uptime I could have seen that uses less CPU resources than my Light Debian with Fluxbox I think... More About: Linux , Learning
Learning Gentoo
2008-02-16 20:56:00 This week I have installed Gentoo , I made it using the Live CD once there I have used the text interface to install it, with the expert option, and using Networkless, so it is more or less like installing the Debian base system. Once that installed (the instructions were easy to follow), I installed xorg emerge xorg-x11 Follow this: http://www.gentoo.org/doc/en/xorg-config. xml and fluxbox emerge fluxbox Follow this: http://gentoo-wiki.com/HOWTO_Fluxbox After that I wanted to install firefox, so I had some problems, I had to resync my portage packages using: emerge --sync Then follow this to install firefox Install Firefox on Gentoo As you can see everything is well documented on Gentoo, I think it is really difficult to add something to such well documented distro, I have to say it is not easy to work with it, but I like it, it optimizes the hardware to limits I had not seen before, using uptime I could have seen that uses less CPU resources than my Light Debian with Fluxbox I think... More About: Linux , Learning
How-to updates
2008-02-12 15:46:00 Two of our collaborators has entered new How-tos to that section in the Forums. Please check: Installing and using Compiz in ubuntu and How to install KDE 4 on Centos If you want to post a how-to just let me know, and I will enable your account, so you can create How-Tos. More About: How To , Updates
How-to updates
2008-02-12 15:46:00 Two of our collaborators has entered new How-tos to that section in the Forums. Please check: Installing and using Compiz in ubuntu and How to install KDE 4 on Centos If you want to post a how-to just let me know, and I will enable your account, so you can create How-Tos. More About: How To , Updates
Changing screen resolution on the fly
2008-02-10 04:30:00 If you want to change your screen resolution, while still running Linux but you are not using Gnome or KDE, which gives good options to change screen resolution, you will have to use the xrandr command If you enter it alone: xrandr You will see something like this: Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1024 default connected 1280x1024+0+0 0mm x 0mm 1280x1024 60.0* 47.0 43.0 1024x768 85.0 75.0 72.0 70.0 60.0 800x600 85.0 75.0 72.0 70.0 60.0 56.0 100.0 90.0 640x480 85.0 75.0 72.0 60.0 120.0 100.0 90.0 1152x864 75.0 70.0 60.0 47.0 43.0 720x576 60.0 640x400 75.0 60.0 400x300 75.0 60.0 320x240 75.0 60.0 320x200 75.0 60.0 Now to change from one resolution to the other just enter and xrandr and the resolution with the -s option, like this examp... More About: Desktop , Changing , Resolution
Changing screen resolution on the fly
2008-02-10 04:30:00 If you want to change your screen resolution, while still running Linux but you are not using Gnome or KDE, which gives good options to change screen resolution, you will have to use the xrandr command If you enter it alone: xrandr You will see something like this: Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1024 default connected 1280x1024+0+0 0mm x 0mm 1280x1024 60.0* 47.0 43.0 1024x768 85.0 75.0 72.0 70.0 60.0 800x600 85.0 75.0 72.0 70.0 60.0 56.0 100.0 90.0 640x480 85.0 75.0 72.0 60.0 120.0 100.0 90.0 1152x864 75.0 70.0 60.0 47.0 43.0 720x576 60.0 640x400 75.0 60.0 400x300 75.0 60.0 320x240 75.0 60.0 320x200 75.0 60.0 Now to change from one resolution to the other just enter and xrandr and the resolution with the -s option, like this examp... More About: Desktop , Changing , Resolution
Fluxbox and a transparent xTerm (aterm)
2008-02-09 21:32:00 If we are using Fluxbox because we need it to be lightweight it does not mean we can not have some eye candy on our Desktop s. So if you want a cool terminal, a transparent one starting with your log on, it is real possible, we will need aterm Install it using your Distro package manager, I am using Debian so: sudo aptitude install aterm Aterm is real lightweight also, and looks great! after installing it, we will need to go and edit the $HOME/.fluxbox/startup, and add just this line on it: aterm -name aterm -sl 3000 -tr +sb -si -sk -sh 60 -fn -misc-fixed-medium-r-normal-*-*-120-*-*-c -*-iso8859-2 -g 130x50-0+0 -bl & It should go just before the line exec /usr/bin/fluxbox These are the explanations for each used option -sl: Is the scroll buffer, because there are no scroll bars you can use the mouse wheel -tr: Enables transparency +sb: Turns off the scrollbar -sh: make the terminal a little bit faded. (darkened) so you can read better the contents, depending on your wallpaper you... More About: Transparent
Fluxbox and a transparent xTerm (aterm)
2008-02-09 21:32:00 If we are using Fluxbox because we need it to be lightweight it does not mean we can not have some eye candy on our Desktop s. So if you want a cool terminal, a transparent one starting with your log on, it is real possible, we will need aterm Install it using your Distro package manager, I am using Debian so: sudo aptitude install aterm Aterm is real lightweight also, and looks great! after installing it, we will need to go and edit the $HOME/.fluxbox/startup, and add just this line on it: aterm -name aterm -sl 3000 -tr +sb -si -sk -sh 60 -fn -misc-fixed-medium-r-normal-*-*-120-*-*-c -*-iso8859-2 -g 130x50-0+0 -bl & It should go just before the line exec /usr/bin/fluxbox These are the explanations for each used option -sl: Is the scroll buffer, because there are no scroll bars you can use the mouse wheel -tr: Enables transparency +sb: Turns off the scrollbar -sh: make the terminal a little bit faded. (darkened) so you can read better the contents, depending on your wallpaper you... More About: Transparent
Setting the wallpaper on Fluxbox
2008-02-09 15:26:00 To start Fluxbox with a wallpaper, you will have to edit some configuration files, and have a image viewer installed on you machine, not all of them works, so consider using one of these two. Esetroot or feh. To install Esetroot run: sudo aptitude install eterm Now run: fbsetbg -i You should see something like this: feh is a nice wallpapersetter. You won't have any problems. Now lets edit your ./fluxbox/init file with your favorite text editor (mine is vim with colors), and add this line if it is not present. session.styleOverlay: ~/.fluxbox/overlay Now create a file ~/.fluxbox/overlay and inside it put this lines: background: aspect background.pixmap: /path/to/your/file.jpg Now just restart fluxbox and you are done. More About: Desktop , Wallpaper
checkinstall - trace your .tar.gz installations, and make/create your .deb
More articles from this author:2008-02-08 04:33:00 I always prefer to use the package manager instead of compiling from sources, mmh maybe compiling is more creates more efficient programs, than using binaries, but in that case, we better use Gentoo or Sabayon, but if we are using Debian/Ubuntu, or Cent os/Fedora, I still think is better to use binaries. Well this said, I have to add that sometimes there is no binary available for our favorite distro, in that case we are forced to compile from sources, but wait, we can still use a binary, we can make our own .deb or .rpm package and install it using dpkg or rpm, checkinstall is the program that will do the magic here. First install it, as it does not come by default installed. Debian / Ubuntu sudo aptitude install checkinstall Fedora / CentOS sudo yum install checkinstall Now as an example I will compile and install aterm which is a terminal emulator, I will write about it later. Ok, get the code wget ftp://ftp.afterstep.org/apps/aterm/aterm- 1.0.1.tar.gz Untar it tar xvzf aterm-1.0... More About: Ubuntu Linux , Make , Installations , Create 1, 2, 3, 4, 5, 6, 7 |



