Archives For Ubuntu Server

Ubuntu 13.10 Server installation

This is a step by step guide for beginners how to create bootable Ubuntu 13.10 Server USB and install it on your computer.

Requirements:

  • A Windows, Linux or Mac OS PC for burning the iso into USB
  • 1GB+ USB stick
  • Ubuntu 13.10 Server ISO downloaded from releases.ubuntu.com/13.10

How to Create Bootable Ubuntu Server USB

First download Unetbootin executable, a simple tool to install Linux/BSD distributions to a partition or USB drive. It works on Windows, Linux and Mac.

Insert USB stick to computer and format (don’t use’Quick format’) to FAT. Open Unetbootin, in the picture below choose the Ubuntu 13.10 Server iso and your usb device and finally click OK to start the burning process.

create bootable ubuntu server usb

create bootable ubuntu server usb

Once finished, connect the USB to the machine which you want to install Ubuntu Server on. Boot from the USB and you’ll see a screen with list of options include ‘Install Ubuntu Server’

Install Ubuntu 13.10 Server

Select ‘Install Ubuntu Server’ from the Unetbootin boot screen, then select your desired language in the screen below:

Ubuntu 13.10 Server select language

Ubuntu 13.10 Server select language

Click Install Ubuntu Server

install ubuntu 13.10 server

install ubuntu 13.10 server

Choose the language for installation process and installed system:

Ubuntu 13.10 server installation language

Ubuntu 13.10 server installation language

Select your Country which will used to set your time zone:

Ubuntu 13.10 Server select location

Ubuntu 13.10 Server select location

Choose your locale settings. Then select YES to detect keyboard layout or NO to select from list.

Ubuntu1310Server-install4

Setup the hostname (Computer name).

Ubuntu 13.10 Server hostname

Ubuntu 13.10 Server hostname

Enter your username and password to create an Administrator account. You can login with this user after installation:

Ubuntu 13.10 Server create user

Ubuntu 13.10 Server create user

Encrypt previous created user’s home directory or not:

Ubuntu 13.10 Server encrypt home directory

Ubuntu 13.10 Server encrypt home directory

Select the partitioning method:

  • Guided – use the entire disk: it will automatically create the main EXT4 partition and swap area for Ubuntu using all disk storage.
  • Guided – use the entire disk and setup (encrypted) LVM: it will use the whole disk storage and you need to manually create EXT partition and Swap for Ubuntu Server.
  • Manual: If you have a dual-boot system or you want to keep a non-system partition on the disk, do it manually.
Ubuntu 13.10 Server partition

Ubuntu 13.10 Server partition

Confirm the partition and the installation will begin:

Ubuntu 13.10 Server installing process

Ubuntu 13.10 Server installing process

Input HTTP proxy server IP. Leave it empty if you don’t have one.

Ubuntu 13.10 Server HTTP setup

Ubuntu 13.10 Server HTTP setup

It’ll take a few minutes configuring apt. If want, cancel it and do it afterwards.

Ubuntu 13.10 Server configure apt

Ubuntu 13.10 Server configure apt

In order to keep your system security, select ‘Install security updates Automatically’ in next screen:

Ubuntu 13.10 Server security updates

Ubuntu 13.10 Server security updates

Now you can select to install OpenSSH server, DNS, LAMP, MAIL, PostgreSQL, Print, Samba, Tomcat, Virtual Machine Host from the list. Use arrow keys to highlight and Space to select, finally press Enter to go on.

Ubuntu 13.10 Server install software

Ubuntu 13.10 Server install software

Select to install Grub boot loader and finish the installation. Restart and login with the username and password you created:

Ubuntu 13.10 server login

Ubuntu 13.10 server login

Your Ubuntu 13.10 server is running now!

webmin2

Want to manage your Ubuntu server remotely with a graphical user interface? Maybe webmin is good choice! Here I’m going to show you how to install it on Ubuntu 12.04 Server and higher.

Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.

To install Webmin, follow the steps below:

1.) Run command to download the Deb package:

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.650_all.deb

2.) Install the package:

sudo dpkg -i webmin_1.650_all.deb

3.) All dependencies can be resolved by this command:

sudo apt-get -f install

After webmin is installed, go to https://your-ubuntu-serverip:10000 in your web browser, login with an administrator account and password.

Webmin-login

Enjoy!

Want to build a website? Then you need to setup a web server! Here I’ll show you how to install and setup LAMP pack on Ubuntu 12.04 LTS Server.

LAMP is a combination of Linux (OS), Apache HTTP Server, PHP (open-source scripting language), and MySQL (database software).

In this tutorial I use the hostname www.example.com with the IP address 192.168.0.100 as example.

1.) Login or Remote access your server as root, or run command to get root privileges.

sudo su

2.) Install Mysql 5:

apt-get install mysql-server mysql-client

You’ll be asked to set a password for root user of Mysql.

3.) Install Apache2:

apt-get install apache2

After installed, test if it works by going to http://192.168.0.100 in your web browser. Remember change the IP to yours.

apache-wellcome-page

The default default document root is /var/www/, and the configuration file is /etc/apache2/apache2.conf.

4.) Install PHP5:

apt-get install php5 libapache2-mod-php5

Restart Apache2 service to get it works with PHP5:

/etc/init.d/apache2 restart

5.) To test if PHP5 works, create info.php in the root directory “/var/www/”:

vi /var/www/info.php

press I to insert following codes:

<?php
phpinfo();
?>

then press Esc -> Shif+: type in wq and hit enter to save. Then in browser go to http://192.168.0.100:info.php

Phpinfo

6.) To get Mysql support in PHP5, install following packages:

apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

Then restart Apache2 service:

/etc/init.d/apache2 restart

Go to or reload http://192.168.0.100/info.php in your browser:

Mysql-support-in-php5

7.) (Optional) Install phpMyAdmin, a web interface to manage Mysql Databases:

apt-get install phpmyadmin

After installed, go to http://192.168.0.100/phpmyadmin/, login with root and password you set in step 2.

How to Enable Secure Shell (SSH) in Ubuntu Server

Last updated: November 3, 2013

openssh

SSH service is not enabled by default in Ubuntu both Desktop and Server, but you can easily enable it just by one command. Works on Ubuntu 13.04, 12.04 LTS, 10.04 LTS and all other releases.

And the command is:

sudo apt-get install openssh-server

It installs OpenSSH server, then automatically enable ssh remote access.

OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.

You can edit the config file “/etc/ssh/sshd_config” to change default port 22, remember to apply changes via the command below:

sudo /etc/init.d/ssh restart

Enjoy!