Sunday, May 31, 2009

One click installer for KDE 4.2.3

I just updated my system to KDE 4.2.3 from KDE 4.1.3 in openSUSE 11.1.
I was using Mandriva 2009.1 before, but as i am big lover of openSUSE so i came back to openSUSE again. But i am using Mandriva too on Box. openSUSE on laptop.

So the easy way to upgrade your KDE from 4.2.2 or 4.1.3 is to use one click installer.
Note: During installation don't miss any lib. Install all files needed.

Here is one click installer for openSUSE 11.1:
One click installer

If you are using other version of openSUSE, so this page will help you more:
Other versions for openSUSE

If you are using other distro like: fedora, kubuntu, Mandriva. You can find links here:
Other links



Monday, May 25, 2009

Solution for: Screen goes black(sleep) in Mandriva 2009.1

I experienced the above issue with my recently installed Mandriva 2009.1 after updating some packages from Main testing repo.
The issue i face was, the following post i took from Mandriva forum, which i posted there.
I am using 2009.1 KDE 4.2.3 on my laptop with Intel 845 chipest.
I have some problems:
1- While opening video, some time screen goes black, or may be in the middle of a video.
Even the video is running there, bcoz sound is still there. Just the screen shows black.
2- This problem also exists without video. Some time while surfing, working.

And i had no choice except to go tty1 to reboot the system. Facing this problem from last 4 days. And facing it twice and thrice a day.

Yesterday i update the system from main testing repo, and there were some updates for intel card. But after that also i face this problem.
I updated it from testing repo in this hope, that it will solve the problem. But the problem is still there.
I disabled Mian testing repo after updating.

Now lets come to the solution part. It was a bit easy task to overcome this problem.
For the current session, open terminal and type the following and then hit Enter.
xset -dpms

Now to avoid this sleeping problem next time, do the following:
1- open .bash_profile file from your home directory.(view->show hidden files)
2- and put the same command above at the end and keep one line blank after that command.
It should be like this:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc

# User specific environment and startup programs


export PATH
xset -dpms

This will not effect your screen saver, i tested this.
DPMS is standby, suspend and off.
To stop screen saver put this at the end of that file:
xset s off

Screen saver will not effect any thing, mean the sleeping problem(black). So its upto you now.

NOTE: I will update this post time to time for further updates regarding my laptop. That what is the result after that command.

Mandriva Forum post

UPDATE-1: Today (26-05-2009) at 5PM, i face this problem again, but this time the screen goes white and i had to restart it by the old way again, i am working on it. Will come back with solution soon.

UPDATE-2: Today (28-05-2009), I update the Intel driver on 26-05-2009 from Main test repos and until now no more black or white screens.


Saturday, May 23, 2009

Update to KDE 4.2.3 in Mandriva 2009.1

Yesterday i update my system from KDE 4.2.2 to KDE 4.2.3 in Mandriva 2009.1.
The update process is very simple.
1st open 'configure your computer' and enable repo 'Main Testing', just for this update(KDE4.2.3).
After updating the system, if you don't want to break the things, so disable the repo.
Now open console(terminal) and login as root with su and type:
urpmi --auto-update

It will check the updates, and will ask for confirmation.
Around 325 packages(depends) and 290Mb space temporary will be used. After installation, the rpms will be deleted from /var/cache/urpmi/rpms directory.

After completing the process, you can check again and type the command above in terminal.

And that's it. You are done.
Enjoy New desktop.


Wednesday, May 20, 2009

SSH access via GUI

I had some dedicated servers based on Linux. I use mostly terminal to access them by using SSH, we don't have FTP access to the servers to make them secure.
I like to use SSH through terminal. But some time when you are uploading one by one file after 2 and 3 minutes, its a bit painful. Specially this case arise when you are a web developer, and testing your files on live server and uploading it every minute.
So i find a very good software for it. Named 'gFTP', Its from gnome desktop. There are also many ftp software, like filezilla. But it does not have SSH2, to let you use it.
So the better and simple option is to use gFTP.
You can install it from software package management in any distro.

As now i am on Mandriva, you can install it from terminal by typing this:
urpmi in gFTP

You can change the urpmi in for other distros. But the gFTP will be there like for openSUSE:
zypper in gFTP


Saturday, May 16, 2009

Solution for: Could not connect to host 'localhost'. MySQL Error Nr. 2002.

After installing Mysql we face some minor problems, one of them is:

Could not connect to host 'localhost'. MySQL Error Nr. 2002 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

So the easy solution for it is that open terminal and login as root:

enter root password.
/etc/init.d/apache2 start

apache2 some time refer to httpd, it depends on distro.
And now try to login to Mysql.

Tip: For each boot up to start Mysql service automatically, Open Yast2, click on Run level, and enable Mysql service there. (This tip is for openSUSE).

For Mandriva: Open 'Configure your computer' and select System and click on 'Manage system services by enabling and disabling them' and enable mysqld there.


Sunday, May 10, 2009

Format USB(flash drive) from terminal

Its quite easy to format a flash drive from terminal.
1st plug in your flash device, and open terminal.
NOTE: Flash drive should not be mounted. To unmount:

sudo umount /dev/sdb1

You will need to find out sdb1 by using df command. You can format drive to any format you want, ext3, fat32 etc. To find out your flash drive in dev, use this command in terminal:

Now lets say, your flash drive is sdb1.
So for FAT32:
sudo mkfs.vfat -n data /dev/sdb1

This will format sdb1 to fat32 and add a label "data".

For ext3:
sudo mkfs.ext3 -L data /dev/sdb1

This will format sdb1 to ext3 and add a label "data".

And that's it, you are done.

Last updated: 21-08-2012

Sunday, May 3, 2009

howto: Installing printer through CUPS (gutenprint set of drivers) [Epson Stylus T10,T20]

After doing some research, I just got my printer working. It was not that easy to configure it, because in CUPS there was no native driver for it.
I have EPSON Stylus T10 printer and driver was not available in CUPS. So I did research for it.
And finally installed it correctly. OS used is openSUSE 11.1 Gnome.
So the process which I carried out is:
Before starting the main procedure please make sure that the following dependencies are installed, if not so install it before proceeding. Go to Yast and check it there.
dependencies: gcc, libpng-devel, libtiff-devel, cups-devel.

After completing the above process successfully, download Gutenprint drivers set for CUPS from here, At the time of writing, the latest version is 5.2.3. Download the latest version.

Download Link-1

Download Link-2

Now open terminal:

Enter root password
If your downloaded file is on desktop just type:
cd Desktop

To extract the archive type:
tar xjvf gutenprint-5.2.3.tar.bz2(type the correct archive name)

It will create a folder on the desktop, cd to it like:
cd gutenprint-5.2.3(type the correct name)

Now type:

After finishing the configure part,
make (or make -j2 to speed things up a little)

make install

And thats it, you are done!!!

Now connect your printer, turn it ON, open browser and type:

and follow the instructions to install your printer.

The above tutorial is for all printer types, which does not have driver in CUPS by default. I tested it on EPSON stylus T10, the driver I choose for it is T20... but it works. Because at the time of writing there no Linux driver for T10. But T20 works fine for T10 too.

I also open new thread for it in openSUSE forum, link to thread is:
Link to thread

Some other useful sites:


Enjoy printing...