Archive for the ‘Ubuntu’ Category

These are some of the best Linux commands that I have found from internet and used them personally. I’ll update the list as I get more useful commands. hostname Prints the name of the local host that you are currently working on. Use netconf to change the name of the machine. whoami This prints your […]

I had a problem with tomcat, it says that port 8080 is already in use so I can not use it … What I did ? 1- Find what application/process is using the pro, type: sudo netstat -lpn |grep :8080 and press Enter. You will get an output similar to this one tcp6       0      0 […]

1- Open terminal Applicaions > Accessories > Terminal 2- Type following sudo apt-get install mysql-server 3- MySQL comes with no root password. To set the root password, type: mysqladmin -u root password your-new-password and type: sudo /etc/init.d/mysql restart 4- Also install MySQL Query Browser that provides GUI for MySQL. sudo apt-get install mysql-query-browser 5- After […]

To setup Apache Tomcat in Linux do the following 1- Download Tomcat latest version from here On the left panel under ‘Download’ heading, click on your required tomcat version. select tar.gz (pgp, md5) under  ‘Core’ and  ‘Binary Distribution’ headings. 2- Extract tar at an appropriate place. For example /home/tomcat_home 3- Set Tomcat environment variables […]