Add eclipse icon to the luncher ubuntu linux

For 12.04 and 11.10

First, create a .desktop file to eclipse:

gedit ~/.local/share/applications/opt_eclipse.desktop

Then, paste this inside (dont forget to edit Exec and Icon values):

[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=** something like /opt/eclipse/icon.xpm **
Exec= ** something like /opt/eclipse/eclipse **   
Terminal=false
Categories=Development;IDE;Java;

After that, open that folder with nautilus:

nautilus ~/.local/share/applications

add execution permission

sudo chmod +x  ~/.local/share/applications/opt_eclipse.desktop

And then drag and drop opt_eclipse.desktop to launcher.

 

source :http://askubuntu.com/questions/80013/how-to-pin-eclipse-to-the-unity-launcher

Advertisements

Installing tomcat6 Ubuntu 10.10

Hello all,

The following are the direct steps for installing tomcat 6 under Ubuntu and get started using it:
open a terminal and write the following commands while you are a root ( su ).
NOTE: Do not forget to restart the service after each change to get the effects applied.
Installation
apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples


The previous command installs the necessary files and libraries to run tomcat.


To insure the server has been installed, write the following in your browser:
localhost:8080 (this port can be seen and changed. look at section changing port number to know the step. )


You will get a message indicates every thing is ok. I recommend you to read it carefully, It gives you the next steps to start.


As you will read you will mostly need to do the following steps:


Add user with a manager role to be able to use the web administration tool. To do this you will need to edit /etc/tomcat6/tomcat-user.xml file


Add the following under the tag names tomcat-users
<p</p








Common Used Commands:


Also There is some commands you will need frequently to start, stop, restart the service:

sudo /etc/init.d/tomcat6 start

sudo /etc/init.d/tomcat6 stop

sudo /etc/init.d/tomcat6 restart

sudo /etc/init.d/tomcat6 status



Changing Port Number



if you are running multiple web services, you may be in need to change the tomcat port (default 8080) to another UN-USED port number.

This can be done by editing the /etc/tomcat6/server.xml



Search for the following :
8080” protocol=”HTTP/1.1″
connectionTimeout=”20000″
URIEncoding=”UTF-8″
redirectPort=”8443″ />


change the 8080 to any number you want.




Running your web applications:


your applications should be placed in /var/lib/tomcat6/webapps/
to be recognized and run though web browser. After that, you can access it directly from your web browser




I guess this all what you need to get started.


Good luck.


Mohammed Saudi
msaudi.blogspot.com


Install Arial Font Ubuntu

Dear all, here is the direct way to install Arial and other microsoft fonts in ubuntu.

just issue the following 2 commands as a root and accept any upcoming messages (click tab to move between options )

sudo apt-get install ttf-mscorefonts-installer
dpkg-reconfigure ttf-mscorefonts-installer

Accept some license issues and so, just by clicking Ok to the popup dialogues

you will got this message when you done
All done, no errors.
All fonts downloaded and installed.
Updating fontconfig cache for /usr/share/fonts/truetype/msttcorefonts

Good Luck,
Msaudi
msaudi.blogspot.com

Change gnome Window Buttons Position and Arrangement UBUNTU

Hello,
many of people (including me) does not like the max, min and close buttons on the left of the window title bar. Here is how to change position and arrangement if u want so.

Terminal> gconf-editor
go to: /apps/metacity/general
Change the ‘button_layout’ key to “menu:minimize,maximize,close

And here (in the value ) you can change the arrangement like “menu:close,minimize,maximize”

Enjoy!
msaudi.blogspot.com

Installing VMware player ubuntu

Hello All,

VMWare offers a free software called VMWare playerwhich you can use to work with virtual machines. of course It has less features than the Work Station version like the ability to make a team and record your WM session but you still can have your work done with the FREE version.

To install it in ubuntu do the following:
first download the software from HERE,
note: you will need to register to be able to download.
then :
Open terminal
Change to the directory you downloaded your file to
issue the following command ,,,
gksudo bash ./VMware-Player-xxxxxxxx
where xxxx is the version details.
This will run a GUI installer, follow the instruction and after you finish, 
you will find it installed in Applications, System Tools , VMware player

Enjoy !.
msaudi.blogspot.com