A «live» view of a logfile on Linux

This approach works for any linux operating system, including Ubuntu, and is probably most often used in conjunction with web development work.

tail -f /path/thefile.log

This will give you a scrolling view of the logfile. As new lines are added to the end, they will show up in your console screen.

For Ruby on Rails, for instance, you can view the development logfile by running the command from your project directory:

tail -f log/development.log

As with all linux apps, Ctrl+C will stop it.

How to check installed software in debian based linux (ubuntu)

Who remembers what has installed in his Ubuntu box?

Here is the simple command:

dpkg –get-selections > installed-software

more installed-software

What can you do in a fresh Ubuntu installation that you do not remember what software you need?

dpkg –set-selections < installed-software

and after that


All set in your fresh debian based linux.

Debian makes things simple 😀

Shuttleworth: Ubuntu developer Canonical may need 3-5 more years of funding

Founder of unprofitable Linux vendor says he’s willing to continue bankrolling the company Canonical Ltd., the commercial backer of the Ubuntu Linux operating system, is not yet turning a profit, but founder Mark Shuttleworth said during a teleconference today that he is prepared to bankroll the company for three to five more years.

«We continue to require investment, and I continue to be careful with my pennies in making those investments, but I consider this a good proposition,» the billionaire technologist said. «Canonical is not cash-positive, but our offering is very attractive to those who want to pinch their pennies in the Linux space.»

The dismal economic climate could, in fact, drive more business for Ubuntu, Shuttleworth added optimistically.

Canonical, which brings in money by providing fee-based services and support for the Ubuntu software, currently has annual revenue in the range of «several million» dollars, Shuttleworth said. But the company’s low revenue and lack of profits hasn’t shaken his belief in its business model.

«We are entering a time when there’s a real commoditization of the desktop, so I don’t think it would be possible to make a lot of money, or even any money,» by trying to sell Linux itself, Shuttleworth said. «The only way to build businesses around Linux is around services.»

Shuttleworth held the teleconference in conjunction with this week’s upcomingUbuntu 8.10 release, which Canonicalannounced today. Ubuntu 8.10 includes improved 3G wireless support and new features such as a «guest» capability that lets users lend their PCs to other people to check e-mail and perform other tasks without disturbing the existing programs or settings.

Looking forward, Canonical expects Ubuntu’s development to embrace three key trends, Shuttleworth said: touch-based interactivity, 3-D imagery and the integration of Web-like features into the desktop user experience.

In the future, «most devices will have a touch dimension within them,» he said, adding that «the lines between the 2-D desktop and 3-D gaming environment are going to blur.»


Thanks to: here

Disable screensaver UBUNTU

Solution 1:

Edit /etc/X11/xorg.conf file using the following command

sudo vi /etc/X11/xorg.conf

and add the following lines

Section “ServerFlags”
#other options can go here
Option “BlankTime” “0″
Option “StandbyTime” “0″
Option “SuspendTime” “0″
Option “OffTime” “0″

Save and exit the file

Solution 2

Edit /etc/X11/xorg.conf file using the following command

sudo vi /etc/X11/xorg.conf

This effectively disables power management on your monitor Settings

Section “Monitor”
#other options can go here
Option “DPMS” “false”

Save and exit the file and restart your machine


Solution 3

gconftool-2  –set «/apps/gnome-screensaver/idle_activation_enabled» –type boolean false


Solution 4

gnome-screensaver-command –inhibit

Solution 5

gnome-screensaver-comand –poke


One of all the above should work in your UBUNTU (I hope…)

HowTo reinstall – restore GRUB in UBUNTU

After a windows fresh install, the windows setup decided to drop MBR to put its stuff in. 
This is an old trick, but udev added a little complexity, so let’s give it a try. First boot on a Ubuntu CD, open a console and run:
(here linux partition is sda2, second partition on a sata disk)
mkdir /media/mnt mount /dev/sda2 /media/mnt/ mount -o bind /dev/ /media/mnt/dev chroot /media/mnt => now you are on the destination disk, so you can install grub. grub-install /dev/sda
Of course you can do a lot more stuff, like changing fstab etc etc .. but the trick is to mount + mount bind + chroot