Skip to main content

Posts

Showing posts with the label Linux

Eclipse working very slow with Ubuntu.

I had this problem that Eclipse use to run very slow on Ubuntu for some reason, I always wondered that it must be my RAM issue or something. Blah! My ignorance would have been better if I would have googled it at the first go rather then making my own assumptions. The problem evidently was with GIJ(GNU interpreter for Java) which ubuntu installs by default. A workaround to this problem is by choosing SUN's java which can be done by using command: sudo update-alternatives --config java and selecting the Sun's java which was option 2 in my case. After doing this switch you need to restart eclipse. If things still does not work fine then you might have to edit the jvm config files using : sudo -b gedit /etc/jvm and move the line: /usr/lib/jvm/java-1.5.0-sun to the top and edit eclipse's java_home file using : sudo -b gedit /etc/eclipse/java_home and add: /usr/lib/jvm/java-1.5.0-sun to the top of the file. Now restart the eclipse. If the problem prevails, go and buy some more ...

Ububtu 11.04 Unity Launcher stops Auto Hiding after a while.

If after sometime, the Unity Launcher stops auto hiding then don't worry. Its a bug in this version of the launcher which we hope would be solved soon. See the bug here . One of the easiest workaround which I saw to solve the problem without restarting the PC is if you are using Firefox then detach a tab or open it in a new window and then re-drag it to the original window using the launcher. Once it is done, then the launcher would again start working as before :). There can be a number workarounds to this, please comment if you come across any other.

Problems with mysql.sock

Sometimes while working on Linux, mysql.sock may get deleted by mistake due to some softwares.. in such cases any access to mysql wont be possible as the sock file defines the socket connection for mysql. It will give an error of the following type: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) In such cases follow these steps to reconfigure mysql: Delete the log files with the names: ib_logfile0, ib_logfile1 and ibdata1 in the /var/lib/mysql directory Then type: "mysqld_safe --user=mysql &" This will automatically create mysql.sock file and even the new logs files. This is a very simple solution which I used recently and decided to share with you people.

How to add watermark to an image in GIMP?

I have just started using GIMP and its awesome. this is one cool tip which i found and would like to share it with you people. How to watermark an image using GIMP You’ve taken a bunch of pictures with your digital camera and you want to post them on the web. Of course, you don’t want other people stealing your work so you decide to add a watermark to your images. In this tutorial I will show you how to add a watermark to an image using GIMP, and open source image editing package. The screenshots in this tutorial show GIMP running on Ubuntu Linux, however the steps are exactly the same if you’re running GIMP on Windows. Windows users can download the Windows version for free here . Here are the before and after images: Before After First, open your image in GIMP. click to enlarge Now click on the Text Tool . It’s the button with the letter A . click to enlarge Click on the little arrow to the top right of the foreground/background colours tool to make white the foreground colo...

How to install Eclipse and Java on a Linux Machine.

After a little bit of Googling I found the easiest and the best way to install Java and Eclipse on a Ubuntu 8.04. The steps given below: Introduction Eclipse is an I ntegrated D evelopment E nvironment or IDE. The Eclipse was originally created by IBM, but the Eclipse Foundation has since taken over direction and development of the project. Eclipse started out as a Java IDE, but has since grown into much more. Installation Ubuntu 8.04 - Hardy Heron To install Open JDK, first click on Applications -> Add/Remove . Next, click on Internet in the leftmost panel. Click on the check-box to the left of OpenJDK Java Runtime . Then, click on Programming in the leftmost panel. Click on the check-box to the left of Eclipse . Finally, click on Apply Changes in the lower-right corner of the window. Now, to install the JDK, run the following command: sudo apt-get install openjdk-6-jdk Now, click on Applications -> Accessories -> Terminal ; a terminal window should open on the deskto...