I installed phpMyAdmin in Ubuntu 9.04 via apt-get install phpmyadmin but when I type in the address bar in my Internet Browser the page is not found? I have installed PHP, Apache2, mySql and have restarted Apache but still nothing happens when I type . Create a symbolic link in /etc/apache2/conf.d that points to/etc/phpmyadmin/apache.conf Files included in the /etc/apache2/conf.d/ directory are...
How to add a Apache VirtualHost on Ubuntu
With this tutorial I assume that you know what Apache web server is and that you have PHP and Apache installed on your machine. Also ensure that you are able to serve web pages. NOTE: This has been tested on Ubuntu 9.04 Answer: Open your Terminal Window or the command line. Navigate to the /etc/apache2/sites-available directory with this command: cd /etc/apache2/sites-available Create...
How to check how much memory you have available on Ubuntu (Linux)
Open a Terminal Window if not yet in command line Type in the following command: cat /proc/meminfo This will display a resultset as below of how much memory you have left MemTotal: 1974152 kB MemFree: 373196 kB Buffers: 107380 kB Cached: 881568 kB SwapCached: 13288 kB Active: 872248 kB Inactive: 640876 kB Active(anon): 599548 kB...
How to reboot or shutdown Ubuntu Linux via the command line
REBOOT
Open a Terminal Window
Type in the reboot command: sudo reboot
PC should now reboot
SHUTDOWN
Open a Terminal Window
Type in the following command to shutdown: sudo halt or sudo shutdown now
PC should now switch off
How to find/list all the Symbolic links on a Linux box
In the command line type in the following command:
find / -type l
And execute it!
Now all your Symbolic Links will be listed.
How to change your password via Command Line in Linux
Type in the following command: passwd and hit enter!
Now you will need to enter your current password.
Changing password for YOURNAME.
(current) UNIX password:
Type in your password and hit enter
Now enter your new password:
Enter new UNIX password:
Retype your new password:
Retype new UNIX password:
That’s all! Now you should be able to use your new password
How to restart GDM in UBUNTU
GDM = GNOME Display Manager You may need to restart GDM if GDM halts or does not want to function anymore. If a similar problem like this occurs it usually means that only GDM does not function. If you quickly want to restart GDM press the following key combinations together: Ctrl+Alt+Backspace To restart GDM via the Terminal session type in the following command: sudo /etc/init...
Creating Aliases in Ubuntu
How to create Aliases in Ubuntu? If you have a command that you run all the time in Ubuntu like pwd to print your working directory, you can create an alias for that specific command. In otherwords a shorter version for the pwd command. Open a Terminal Window (CLI = Command Line Interface) Type the command cd to take you to your home directory. Now you need to edit the .bashrc file. To...
How to view Hidden Files and Folders in Ubuntu/Linux
In the File Browser (Graphical) press the key combination ctrl+h together in order to view all the hidden files and folders.
In the command line when listing directory contents (ls) use the option -a eg. ls -ato list all hidden files. Files or folders that start with a . (dot)
How to check what Kernel and Distribution of Linux your running
How to check what Kernel and Distribution of Linux your running via the Command Line? KERNEL Type in the following command: uname -r And hit enter The command above will display the kernel version you are running eg. 2.6.28-13-generic uname = Prints System Information -r = Prints the kernel release DISTRIBUTION Type in the following command: cat /etc/issue And hit enter The command above will...
How to view a list of all port numbers in Linux
Type in the following command in the command line:
cat /etc/services
Hit the enter key
And now a list of TCP and UDP port numbers will appear together with the service name that’s using them.
How to clear the command line if you need to have a clean shell window in Linux
Type in the ‘clear‘ command and hit enter.
Alternatively press the key combination ‘CTRL+L‘ together and it should also clear the screen.
How to mount partition/drive at startup Ubuntu/Linux
Open a new Terminal Window Create a mount point where you need the partition/drive to be mounted. You may mount the drive anywhere and call it whatever you want to. Example: mkdir /media/development Make a backup of the fstab file!!! This is very important!!!!!! Example: sudo cp /etc/fstab /etc/fstab.backup20090728 Open the fstab file for editing Example: sudo gedit /etc/fstab Add the line...
How to find your uid(userid) and gid(groupid) in Linux via the command line
Open a new Terminal Window (Command Line) if in GUI mode
Find your username by typing the command: whoami
Type in the command id username to find your gid and uid
EXAMPLE of results: uid=1000(username) gid=1000(username) groups=1000(username) ,4(adm),20(dialout),24(cdrom), 46(plugdev),106(lpadmin),121(admin),122(sambashare)
How to read a chm file in Ubuntu
(This has been tested on Ubuntu 9.04)(chm was developed by Microsoft Corporation) Answer: STEP 1 At the top left corner of the Ubuntu Desktop click on Application->Add/Remove STEP 2 In the search box type in ‘chm‘ to search for chm reader applications. Select CHM Viewer in the list and mark the checkbox next to it. STEP 3 Click on the ‘Apply Changes‘ button to...
How to determine how long your Linux box has been up and running
There are 2 commands that can be used namely the ‘uptime‘ and ‘w‘ commands uptime = Shows how long Linux has been running, how many users are connected and then three system load averages. w = The w command gives a little bit more information.this could be useful if you have a busy system with lots of users connected. Open a new Terminal Session and type...
How to see statistical information about how Linux is currently handling your memory,swap and processes
Open a new Terminal Window if not already in command line. Type in the ‘top‘ command. Now a list of processes will appear as below. top – 09:38:39 up 1:09, 2 users, load average: 0.43, 0.29, 0.29 Tasks: 165 total, 2 running, 163 sleeping, 0 stopped, 0 zombie Cpu(s): 4.5%us, 3.2%sy, 0.0%ni, 92.2%id, 0.0%wa, 0.2%hi, 0.0%si, 0.0%st Mem: 1974152k total, 1622216k...
How to prevent Ubuntu from creating a .Trash-1000 folder when deleting files from a USB flashdrive
Don’t use the delete button only (Otherwise the .Trash-1000 folder will be created)
Press the key combination shift+delete together to delete then Ubuntu won’t create a .Trash-1000 folder. (Note: If you delete files and folders this way they are gone forever!)
NOTE: This has been tested on Ubuntu 9.04.
How to change the root MySQL password with MySQL installed on Ubuntu/Linux
Open a new Terminal Window. Type in the commands below. mysqladmin -u root OLDPASSWORD NEWPASSWORD If you get the error below follow solution 2 mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: YES)' If you did not get the error above restart the mySql server by typing the following command: sudo service mysql restart Solution...