First Install Ubuntu 12.04 Lts While installing Choose US as the Time server . After Reboot Change the IP to Any One of the Static IP Range Between 192.168.1.75 to 192.168.1.254 ``` auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.78 netmask 255.255.255.0 gateway 192.168.1.1 network 192.168.1.0 broadcast 192.168.1.255 dsn-nameservers 8.8.8.8 192.168.1.1 ``` After that Change the Host name to system xx to system xx in ``` #/etc/hosts #vi /etc/hosts 127.0.0.1 192.168.1.78
localhost system3 3
``` Setting up Hostname in /etc/hostname file ``` echo "hostname here" > /etc/hostname hostname -F /etc/hostname ``` Then change the Nameserver under resolv.conf ``` # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 192.168.1.1 nameserver 8.8.8.8 ``` If the resolv.conf Overwritten After the System Restart to its Default Edit the Base file of resolvconf Add the name servers here then it ownt Overwritten after the Restart ``` #vi /etc/resolvconf/resolv.conf.d/base
nameserver 192.168.1.1 nameserver 8.8.8.8 ``` Restart the Network Using Command ``` #sudo etc/init.d/networking restart ``` (Or) Restart the Machine Once -------------------------------------------------Install vim ``` #apt-get install vim ``` Configure Apt Cacher NG by adding a file called 02proxy ``` # vim /etc/apt/apt.conf.d/02proxy ``` Add the Apt Cacher Server's IP Address in that created Proxy file ``` Acquire::http {Proxy "http://192.168.1.30:3142"; }; ``` ----------------------------------------------------------------------------------Install Cinnamon 1.6.4 in Ubuntu to Change the Desktop Appearance ``` # sudo apt-get update # apt-get install build-essential # sudo apt-get install python-software-properties ``` Get the repository by using command * Option 1: 12.04 & 14.04 users only ``` # sudo add-apt-repository ppa:tsvetko.tsvetkov/cinnamon # sudo apt-get update # sudo apt-get install cinnamon ```
* Option 2: 14.04 users only ``` # sudo add-apt-repository ppa:lestcape/cinnamon # sudo apt-get update # sudo apt-get install cinnamon ``` Install Google Chrome from the Reporositry 3rd Repository: Google Chrome This repository is available for: Stable Title: Chrome browser in Google repos Description: Google Linux repository on dl.google.com. Daily Build: no Setup key with: ``` #wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add Setup repository with: #sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' Setup package with: #sudo apt-get update #sudo apt-get install google-chrome-stable ``` where is the name of the package you want to install. ------------------------------------------------------------------------------------------Install Liber Office 4.0 To install LibreOffice 4 you will need to remove all previous versions. Run: ``` #sudo apt-get remove --purge libreoffice-core libreoffice-common #sudo apt-get autoremove --purge #sudo add-apt-repository ppa:libreoffice/libreoffice-4-0 #sudo apt-get update #sudo apt-get install libreoffice ``` ---------------------------------------------------------------------------------------------
Manually Install the JDK 1.7 ``` #java -version #sudo mkdir -p /usr/lib/jvm #sudo mv jdk-7u21-linux-i586.tar.gz /usr/lib/jvm #cd /usr/lib/jvm #sudo tar zxvf jdk-7u21-linux-i586.tar.gz #sudo rm jdk-7u21-linux-i586.tar.gz #ls -l #jdk1.7.0_21 #sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7 . 0_21/bin/javac" 1 #sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0 _21/bin/java" 1 #sudo update-alternatives --set "javac" "/usr/lib/jvm/jdk1.7.0_21/bin/javac" #sudo update-alternatives --set "java" "/usr/lib/jvm/jdk1.7.0_21/bin/java" #sudo vi /etc/profile Add the following entries to the bottom of your /etc/profile file: #JAVA_HOME=/usr/lib/jvm/jdk1.7.0_21 PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME export PATH #. /etc/profile #java -version ``` *** How to install (JRE) Java Runtime Environment Download the 32bit or 64bit Linux "compressed binary file" - it has a ".tar.gz" file extension and uncompress it Download JRE from Here ``` # http://www.oracle.com/technetwork/java/javase/downloads/index.html
``` From Download Location we need to move the JRE tar package to the Directory ``` # #sudo mv jre-7u40-linux-x64.tar.gz /usr/lib/jvm ``` Navigate to the Directory ``` #cd /usr/lib/jvm ``` Then uncompress it ``` #sudo tar -zxvf jre-7u40-linux-x64.tar.gz ``` Then if we need to remove the tar file use below command ``` #sudo rm jdk-7u21-linux-i586.tar.gz ``` List the files ``` # ls -l ``` Open the directory ``` # cd jre1.7.0_40
``` Afterwards run the following to get a list of currently installed java alternatives
``` # sudo update-alternatives --config java ``` We will get
``` There are 3 choices for the alternative java (providing /usr/bin/java). Selection Path -----------------------------------------------------------* 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java mode 2 /usr/lib/jvm/jdk1.7.0_40/bin/java mode 3 /usr/lib/jvm/jre1.7.0_40/bin/java mode
Priority
Status
1071 1071
auto mode manual
1
manual
0
manual
Press enter to keep the current choice[*], or type selection number: 3
``` Select Zero For Auto Mode Here i have selected 0 Note : > if there was no previous java installation then the new JRE will be the default and you will not see the above. ``` # sudo apt-get install default-jre gcj-4.6-jre-headless openjdk-6-jre-headless gcj4.5-jre-headless openjdk-7-jre-headless ``` Need to install some Dependices ``` sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0_40/bin 0
``` This will add your new JRE 7 installation into alternatives list i.e. use the remembered number + 1 i.e. 3 in the example above. Now configure java to use the Oracle Java JRE Check the version of you new JRE 7 installation ``` #java -version ``` Output Will be like this ``` java version "1.7.0_25" OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) ```
Or use the Step Below to get easier
``` #java -version #sudo mkdir -p /usr/lib/jvm #sudo mv jre-7u40-linux-x64.tar.gz /usr/lib/jvm #cd /usr/lib/jvm #sudo tar zxvf jre-7u40-linux-x64.tar.gz #sudo rm jre-7u40-linux-x64.tar.gz #ls -l #jre1.7.0_40 #sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jre1.7.0_40/bin/javac" 3 #sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.7.0_40/bin/java" 3 #sudo update-alternatives --set "javac" "/usr/lib/jvm/jre1.7.0_40/bin/javac"
#sudo update-alternatives --set "java" "/usr/lib/jvm/jre1.7.0_40/bin/java" #sudo vi /etc/profile Add the following entries to the bottom of your /etc/profile file: #JAVA_HOME=/usr/lib/jvm/jre1.7.0_40 PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME export PATH #. /etc/profile #java -version ``` After this we need to Add the Jre Plugins in Google chorme and mozilla For that Follow these instructions to enable Java in your web browser on Ubuntu Linux. Google Chrome Become the root user by running the su command and then enter the super-user password. Type: ``` # sudo -s ``` Create a directory called plugins if you do not have it. Type: ``` # mkdir -p /opt/google/chrome/plugins ``` Go to Google chrome plugins directory before you make the symbolic link. Type: ``` # cd /opt/google/chrome/plugins ``` Create a symbolic link. Type: ``` # ln -s /usr/lib/jvm/jre1.7.0_40/lib/amd64/libnpjp2.so ``` Restart your browser and test Java Here in Below Link
``` # http://www.java.com/en/download/testjava.jsp ``` Mozilla Firefox Become the root user by running the su command and then enter the super-user password. Type: ``` # sudo -s ``` Create a directory called plugins if you do not have it. Type: ``` # mkdir -p /usr/lib/mozilla/plugins ``` Go to Google chrome plugins directory before you make the symbolic link. Type: ``` # cd /usr/lib/mozilla/plugins ``` Create a symbolic link. Type: ``` # ln -s /usr/lib/jvm/jre1.7.0_40/lib/amd64/libnpjp2.so ``` Restart your browser and test Java in below link ``` # http://www.java.com/en/download/testjava.jsp
```
*** ---------------------------------------------------------------------------------------Install Postersql 9.2 ``` #sudo add-apt-repository ppa:pitti/postgresql #sudo apt-get update #sudo apt-get install postgresql-9.2 ``` ------------------------------------------------------------------------------------------Install Pgadmin 1.16 for managing PostgreSQL in GUI ``` #sudo apt-add-repository ppa:voronov84/andreyv #sudo apt-get update #sudo apt-get install pgadmin3 ``` ------------------------------------------------------------------------------------------Install Git ``` #sudo add-apt-repository ppa:git-core/ppa #sudo apt-get update #sudo apt-get -y install git git-man git-svn ``` ------------------------------------------------------------------------------------------Install Sublime Editor ``` #sudo add-apt-repository ppa:webupd8team/sublime-text-2
#sudo apt-get update && sudo apt-get install sublime-text ``` ------------------------------------------------------------------------------------------Install byobu terminal ``` #sudo apt-get install byobu ``` ------------------------------------------------------------------------------------------Install Htop ``` #sudo apt-get install htop ``` ------------------------------------------------------------------------------------------Install Ruby 1.9.3 Ruby packages for Ubuntu ``` #sudo apt-get install python-software-properties #sudo apt-add-repository ppa:brightbox/ruby-ng #sudo apt-get update To install Ruby 1.9.3. #sudo apt-get install ruby1.9.3 ``` ------------------------------------------------------------------------------------------Setup geminabox ``` #sudo apt-get install -y zlib1g-dev libxml2-dev libmysqlclient-dev \ libxslt1-dev imagemagick libpq-dev nodejs \ libxmlsec1-dev libcurl4-gnutls-dev libxmlsec1
#edit ~/.gemrc and /etc/gemrc Add this Content in these above 2 files --:update_sources: true :sources: - http://192.168.1.30:8808/ - http://gems.rubyforge.org/ :benchmark: false :bulk_threshold: 1000 :backtrace: false :verbose: true gem: --no-ri --no-rdoc install: --no-rdoc --no-ri update: --no-rdoc --no-ri #gem install bundler #mkdir ~/dev ``` ------------------------------------------------------------------------------------------Mount the Samba Share to Client machine from File server 192.168.1.15 To Mount a Samba Share Permanently in client machines ``` #sudo mkdir /home/sysadmin/samba #apt-get install smbfs #sudo mount -t cifs //192.168.1.15/sysadmin /home/sysadmin/sysadmin Fstab Entry For Mount point #//192.168.1.15/sysadmin /home/sysadmin/samba username=sysadmin,password=admin123$,_netdev
cifs 0
0
``` -------------------------------------------------------------------------------------------