Skip to main content

Posts

Showing posts from May, 2017

Installing Python3 in Ubuntu

A brief introduction on Python: Python is a high-level and versatile programming language. It is fun loving language and uses easy lines of code. It is created by Guido van Rossum and first released in 1991, Python is now programmer's choice. While writing this post python 3.6.1 is the current version of the language. Today, I am going to show you how to install and configure python on Ubuntu machine. I am installing python 3.6.1 on Ubuntu 17.04 with an Internet connection. Installing Python3.6.1: Here, I am going to show you how to install python3.6.1 from terminal (command-line). To open terminal, type " terminal " on the top left search box or press ALT+CTRL+T simultaneously on your keyboard to open it. Ubuntu 17.04 ships with both Python3 and Python2 pre-installed. To make sure that our versions are up-to-date, run update and upgrade using  apt-get . Once the process is complete, we can check the version of python on your machine. Typ...

Error: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it

If you are getting this error, then have to remove this lock using following command. sudo rm /var/lib/apt/lists/lock Additionally, You may also need to delete the lock file in the cache directory sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock Now, try to run your previous command to install python3.6

Installing Java in Ubuntu

Open Ubuntu terminal and before we install jdk, make sure if it is install on your system or not. To check, run sudo apt-get purge openjdk* . Enter password to proceed.  In my ubuntu system jdk is not is installed and is highlighted by red underline. Now we are going add repository to my system, i.e.: sudo add-apt-repository ppa:webupd8team/java . Once repository is added to your system, update your system by running sudo apt-get update in the terminal. Once it is updated run java installer by running  sudo apt-get install oracle-java8-installer . Once package lists is read it will open configuration window. Accept License Agreement and proceed to install java on your system. Downloading java on your system. Once the file is download it will extract the file to install java8 on your system.

Assign Static IP in Ubuntu Server

To setup a domain, the server should assigned with a static ip address. Let's go ahead and assign static ip address on ubuntu server. 1. To should change your root password in order to proceed further. Type su  and enter your new password that already created, and logged in as a root . 2. Type ifconfig on the terminal window. If it is not showing ip addresses, then you need to install net-tools . Make a track of inet, netmask and broadcast ip addresses and open interfaces file located under etc/network directory. 3. You need to edit this file and make an entry of ip-addresses. Now scroll down and goto dhcp and press insert button to make an entry. replace dhcp  by typing static because we are assigning this server with a static ip-address.   Enter address , netmask , network , broadcast and gateway for your ubuntu server. Enter dns-nameservers , alongwith global dns. dns-nameservers ip address should be same with the ip-address of your server. Fi...

Tips (Ubuntu Server): Check history of typed command in Terminal

To check the history of commands used in the terminal, we can press  alt+tab  button simultaneously on the keyboard and it generate the lists of commands used in the terminal.

Update and Upgrade Ubuntu Server

Once you install Ubuntu Server, you show check if there is any update available of the package. Once you run apt-get update in the terminal window, it will check the necessary package available of your system. If available, then it will update the necessary package list. To keep your package up-to-date, you should run apt-get upgrade. It will the updated list of the package installed on your system, look for the repository online and upgrade the necessary package list. Please check the below screenshot to follow the procedure.  Looking for the update of the installed package in cdrom and website accordingly. Extracting and the upgrading the installed package on your system.