- Welcome to Geeksww.com
Configuring Ubuntu Linux After Installation
This tutorial assumes that you have already installed Ubuntu Linux Server on your computer. Ubuntu version used for this tutorial is Ubuntu Linux Server 6.06.1 (Dapper Drake).
After installation, you should have a user that gets root privileges by pre pending "sudo" (super user do) with all commands requiring root privileges. Let’s say you want to run the following command, "nano /etc/apt/sources.list". But, in order to get root privileges (for modification) you’ll run the same command as follows: "sudo nano /etc/apt/sources.list".
How to get rid of "sudo":
sudo is used for better security. Google "sudo" for more info. Although, I do not recommend so, but, in case, you want to get rid of sudo and use your Ubuntu Linux Server machine the old-fashioned way then give password to the root user. Do the following:
sudo passwd
You’ll be prompted for password and confirmation. Enter root’s password here. When you’re done, run the following.
su -
You'll be prompted for root’s password. Enter the password that you had entered before. If the password is correct you'll be given access to root’s account.
root@<hostname>:~#
You'll see something like above, where,<hostname> is the hostname of your computer. If you see a "$" instead of "#" that means you still don’t have root access. Please repeat the steps above.
Configuring "apt" - Package Manager
If you want to use the Internet to download software you should now comment out the CDROM section by adding a "#" (w/o quotes) at the beginning of the line that reads "deb cdrom: ..." in /etc/apt/sources.list. Do the following, to open up /etc/apt/sources.list in a text editor.
With sudo,sudo nano /etc/apt/sources.listWithout sudo,
nano /etc/apt/sources.list
Updating and Upgrading Ubuntu Linux Server
After running the command above, you’ll run the following commands for updates and upgrades.
With sudo,sudo apt-get update sudo apt-get upgrade
Without sudo,
apt-get update apt-get upgrade
Installing GCC toolsNow, you’ll install the very essential packages by running the following command. This package installs compilers and related libraries and programs required for compilation and installation of software from source code. See http://packages.ubuntu.com/dapper/devel/build-essential, for a list of softwares that come with this package. With sudo,sudo apt-get install build-essentialWithout sudo, apt-get install build-essential |
Run the update command again.
With sudo,sudo apt-get updateWithout sudo,
apt-get update
Installing OpenSSH on Ubuntu Linux Server
If you want remote access to your server (recommended) then you need to install openssh-server package too.
With sudo,sudo apt-get install openssh-server
Without sudo,
apt-get install openssh-server
Commands above install and run the Open SSH Server on Ubuntu. Now, you can access your Linux machine from a remote computer using an SSH client, such as, PuTTY (for Windows).
Did this tutorial help a little? How about buy me a cup of coffee?
Please feel free to use the comments form below if you have any questions or need more explanation on anything. I do not guarantee a response.
IMPORTANT: You must thoroughy test any instructions on a production-like test environment first before trying anything on production systems. And, make sure it is tested for security, privacy, and safety. See our terms here.
tags cloud
popular searches
free download for mysql database server 5.1.5, bison, gearman, source code, php, install cairo, laptop, java, mysql, linux, install mysql, mysql initialization, mysql mysql, tools, ubuntu
Similar Tutorials:
- Installing Libpng on Ubuntu Linux
- Installing OpenSSL on Ubuntu Linux
- How to find out if a particular process is running or not (for Linux/Unix)?
- Debian Linux Installation and Hardening (3.1r0a)
- How to compile and install Varnish-cache on Linux
Tutorials in 'Operating Systems > Linux' (more):
- Bash script to compare remote directory's files using file size
- Script to transfer files to remote server with verification
- setfacl: command not found
- How to download, compile, and install CMake on Linux
- How to download, compile, and install GNU ncurses on Debian/Ubuntu Linux?
Comments (write a comment):
When I type sudo apt-get update
following error is coming
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
Pls help me.. Posted by: Shreenivas on Jul 15, 2014
@Shreenivas: you may need to run the command as root user or with sudo:
sudo apt-get update Posted by: shahryar on Sep 02, 2014
leave a comment