Archives For 13.10

Cinnamon is the default desktop environment in Linux Mint, it brings the classic Gnome 2 feel to Gnome Shell. The ppa now supports Ubuntu 13.10 Saucy Salamander.

To install Cinnamon session on your Ubuntu, press Ctrl+Alt+T to open terminal, then follow the below steps:

1.) Add the stable ppa repository by running following commands:

sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable

UPDATE: The PPA has been abandoned, Ubuntu 13.10 user can only install an old version of Cinnamon from Ubuntu repositories by running below commands

2.) Then update the package lists:

sudo apt-get update

3.) Finally install the session:

sudo apt-get install cinnamon

Once installed, log out your current session and select log into Cinnamon on LightDM.

In this tutorial I’ll show you how to install the VMware Tools for Ubuntu 13.10 Saucy Salamander Guest machine.

VMware Tools is a suit of drivers and utilities that enhances both the performance of the virtual machine and interaction between the guest and the host. It’s not required to be installed, but most of VMware users do install.

When I was installing Ubuntu 13.10 guest on VMware Player, the esay install failed to automatically install Vmware Tools. So here’s how to do it manually!

To get started, boot the guest system on your host and follow the steps below:

1.) Get the command prompt by Ctrl+Alt+T, then run below command to install required packages first:

sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)

2.) Click on VM or Manage -> Install VMware Tools …. You’ll be prompt to download VMware Tools CD image if need.

install_vmware_tools

download_vmware_tools_image

3.) After the downloading finish, create mount point and mount the CD image:

sudo mkdir /media/cdrom && sudo mount /dev/cdrom /media/cdrom

4.) Go to that directory and copy the source package:

cd /media/cdrom && cp VMwareTools-*.tar.gz ~/

5.) Extract this package:

cd && tar -zxvf VMwareTools-*.tar.gz

6.) Finally, run the command below to begin the installation:

sudo ./vmware-tools-distrib/vmware-install.pl

Choose the default for all questions. When done, restart and 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.

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!