Ubuntu installation
Ubuntu 12.04 os setup
After installed ubuntu 12.04 os then need to install other packages like skype, git, java all that informations here posted
To Install ubuntu
http://releases.ubuntu.com/12.04/
download Wubi installer wubi.exe is simple way to install ubuntu.
Create new user
sudo groupadd ubuntu ubuntu --> groupname
sudo adduser dev -ingroup ubuntu Dev -->username
Set proxy setting
To set the proxy setting system widely
sudo vim etc/enviroment
Add these contents in environment file
http_proxy="http://domainname:port"
https_proxy="https://domainname:port"
no_proxy="localhost"
TO create password less sudo user
sudo nano visudo
Add these contents in visudo file
Add these contents in visudo file
root ALL=(ALL:ALL) ALL
dev ALL=(ALL)NOPASSWD:ALL
%ubuntu ALL=(ALL)NOPASSWD:ALL
Install skype
Terminal Commands:
wget -O skype.deb
http://download.skype.com/linux/skype-ubuntu-precise_4.1.0.20-1_i386.deb
sudo dpkg -i skype.deb
sudo apt-get -f install; rm skype.deb
To change host name
sudo gedit /etc/hostname
To set host name example like com.ubuntu.dev
To add hostname in hosts file like this
sudo gedit /etc/hosts
In hosts file we can add
10.200.1.3 com.ubuntu.dev Ubuntu
Install git
To install git using command
To install git using command
sudo apt-get install git-core
To initialize Git
Let create an new directory called my project get into that project through command and follow these commands
- Git initialize - sudo git init
- Check for status git status : git status
- Add user name : git config --global user.name "testuser"
- Add email id : git config --global user.email test@global.com
- Add git repository : git remote add origin https://github.com/try-git/try_git.git
- Clone git repository : git clone https://github.com/try-git/try_git.git
- Fetch all the repositories : git fetch --all
Git proxy settings
To set git running in proxy server
Command to use :
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
Note :- --global property is to set proxy globally , if remove --global property proxy will set for only that repository.
If you decide at any time to reset this proxy and work without (no
proxy):
Commands to use:
git config --global --unset http.proxy
git config --global --unset https.proxy
Install putty
sudo apt-get install putty
Install vlc player
sudo add-apt-repository
ppa:djcj/vlc-stable
sudo apt-get update && sudo
apt-get install vlc
Java installation
Download jdk http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html here and extract to
/usr/lib/jvm
In command prompt download java
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz
In command prompt download java
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz
set java alternatives
- sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_71/bin/java" 1
- sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_71/bin/javac" 1
- sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/usr/lib/jvm/jdk1.7.0_60/jre/lib/amd64/libnpjp2.so" 1
- sudo update-alternatives --install
"/usr/bin/javaws" "javaws"
"/usr/lib/jvm/jdk1.7.0_60/bin/javaws"
$ sudo update-alternatives --config
java
$ sudo update-alternatives --config
javac
To set java home
1.open /etc/bash.bashrc
2. export
JAVA_HOME=/usr/lib/jvm/jdk1.7.0_71
export PATH=$PATH:$JAVA_HOME/bin
set path above like this.
Tomcat 7 installation steps
1.Go to this url page
http://tomcat.apache.org/download-70.cgi
2.Downlaod tar.gz file
3.Create new directory tomcat7 in
/usr/lib/ folder
4.extract the tar.gz into tomcat7
folder
using this command
tar -xvzf file.tar.gz
5.Need to set environment variables
1.open sudo gedit /etc/bash.bashrc
2.Add below contents in to that file
1.open sudo gedit /etc/bash.bashrc
2.Add below contents in to that file
export
CATALINA_HOME=/usr/lib/tomcat7
export PATH=$PATH:$CATALINA_HOME/bin
6. Default port is 8080 if you need to
change your port address
goto /usr/lib/tomcat7/conf
1. open server.xml file
2. it contains these pages
<Connector port="8080"
protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443"
/>
instead of 8080 you can change
the port
Eclipse setup
1. Download J2ee eclipse version and
extract it.
2. Set jre => windows →
preferences → java -> jre here choose set java home
3. To set tomcat home
windows →
preferences → server -> runtime environment
4. To set proxy
windows →
preferences → general-> network settings
Wifi Setup
To install wifi driver
sudo apt-get install
broadcom-sta-common
Or to reinstall
sudo apt-get --reinstall install bcmwl-kernel-source
Link : https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx
Install sublime text 2
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
http://askubuntu.com/questions/172698/how-do-i-install-sublime-text-2-3
Comments
Post a Comment