Early set
From CSBLwiki
(Difference between revisions)
(→Early setting after installing ubuntu) |
|||
(14 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
{{:template:mbn}} | {{:template:mbn}} | ||
+ | {| align=right cellpadding=25 | ||
+ | |__TOC__ | ||
+ | |} | ||
<div class="basic"> | <div class="basic"> | ||
Early setting after installing ubuntu | Early setting after installing ubuntu | ||
Line 5: | Line 8: | ||
Setting static IP address | Setting static IP address | ||
# /etc/network/interfaces<br> | # /etc/network/interfaces<br> | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | auto eth0 | ||
iface eth0 inet static | iface eth0 inet static | ||
address 192.168.1.10 | address 192.168.1.10 | ||
netmask 255.255.255.0 | netmask 255.255.255.0 | ||
gateway 192.168.1.1 | gateway 192.168.1.1 | ||
- | + | dns-nameservers 163.152.1.1 163.152.11.6 | |
- | Setting DNS server | + | Setting DNS server - (No need to manual configuration. Automatically configured.) |
# /etc/resolv.conf | # /etc/resolv.conf | ||
nameserver 10.23.11.24 | nameserver 10.23.11.24 | ||
Line 22: | Line 29: | ||
You may be finding the warning, but it's ok. | You may be finding the warning, but it's ok. | ||
+ | ===2. Setting Han-gul=== | ||
+ | open terminal (Alt + Ctrl + t) | ||
+ | $ sudo apt-get install nabi | ||
+ | |||
+ | system settings -> language support -> keyboard input method system -> nabi | ||
+ | logout -> login | ||
+ | |||
+ | Move Nabi pannel to tray icon | ||
+ | Check list | ||
+ | $gsettings get com.canonical.Unity.Panel systray-whitelist | ||
+ | ['JavaEmbeddedFrame', 'Wine', 'Update-notifier'] | ||
+ | |||
+ | Add nabi | ||
+ | gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'Update-notifier', 'Nabi']" | ||
+ | |||
+ | Re-log in | ||
+ | |||
+ | ===3. kr.archive.ubuntu.com -> ftp.daum.net change=== | ||
+ | $ sudo -s # access as root | ||
+ | $ cd /etc/apt | ||
+ | $ vim sources.list | ||
+ | :%s/kr.archive.ubuntu.com/ftp.daum.net/g | ||
+ | :wq | ||
+ | $ sudo apt-get update | ||
+ | |||
+ | ===4. Install SSH=== | ||
+ | $ sudo apt-get install ssh | ||
+ | |||
+ | ===5. Install vim=== | ||
+ | $ sudo apt-get install vim-gnome | ||
+ | |||
+ | ===6. R-studio server establishment=== | ||
+ | Install R | ||
+ | $ sudo apt-get install r-base-core | ||
+ | Edit /etc/apt/sources.list | ||
+ | # /etc/apt/sources.list | ||
+ | deb http://cran.cnr.Berkeley.edu/bin/linux/ubuntu precise/ | ||
+ | Update and upgrade apt-get | ||
+ | $ sudo apt-get update | ||
+ | $ sudo apt-get upgrade | ||
+ | Install apache2, php, MySQL | ||
+ | $ sudo apt-get install tasksel | ||
+ | $ sudo tasksel install lamp-server | ||
+ | Install R studio-server | ||
+ | # Prerequisites | ||
+ | $ sudo apt-get install libssl0.9.8 | ||
+ | $ sudo apt-get install libapparmor1 apparmor-utils<br> | ||
+ | # Download and install for 32-bit Ubuntu | ||
+ | $ wget http://download2.rstudio.org/rstudio-server-0.96.316-i386.deb | ||
+ | $ sudo dpkg -i rstudio-server-0.96.316-i386.deb<br> | ||
+ | # Download and install for 64-bit Ubuntu | ||
+ | $ wget http://download2.rstudio.org/rstudio-server-0.96.316-amd64.deb | ||
+ | $ sudo dpkg -i rstudio-server-0.96.316-amd64.deb | ||
+ | Test | ||
+ | http://localhost:8787 | ||
+ | |||
+ | ===7. Mount NAS server to /home/illumina=== | ||
+ | Edit /etc/fstab | ||
+ | # copy fstab file for backup | ||
+ | $ sudo cp /etc/fstab /etc/fstab.backup<br> | ||
+ | # Add below code to /etc/fstab | ||
+ | //192.168.0.1/share /home/target cifs username=mbnmbn00,password=mbnmbn00 0 0 | ||
+ | ※ Caution : NO space from username to password | ||
+ | # Mount application | ||
+ | $ sudo mount -a | ||
+ | Unmount | ||
+ | $ sudo unmount /home/target | ||
+ | |||
+ | ===8. JDK=== | ||
+ | sudo add-apt-repository ppa:upubuntu-com/java | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install oracle-java7-installer | ||
+ | |||
+ | 설치경로확인 | ||
+ | ls -al /usr/bin/java* | ||
+ | ls -al /etc/alternatives/java* | ||
Done! | Done! |
Latest revision as of 05:48, 2 October 2012
<html> <style type="text/css">
.basic {
font-family : helvetica; font-size : 12pt;
}
pre {
font-size : 12pt; padding: 10pt; margin: 5pt 0; border: 2px solid #abcdef; background-color: #f9f9f9; font-family:sans-serif; line-height: 160%;
}
</style> </html>
|
Early setting after installing ubuntu
1. Assigning static IP address
Setting static IP address
# /etc/network/interfaces
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 163.152.1.1 163.152.11.6
Setting DNS server - (No need to manual configuration. Automatically configured.)
# /etc/resolv.conf nameserver 10.23.11.24 nameserver 10.23.12.24
Restart network
$ sudo /etc/init.d/networking restart * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces * Reconfiguring network interfaces... [ OK ]
You may be finding the warning, but it's ok.
2. Setting Han-gul
open terminal (Alt + Ctrl + t)
$ sudo apt-get install nabi
system settings -> language support -> keyboard input method system -> nabi logout -> login
Move Nabi pannel to tray icon
Check list $gsettings get com.canonical.Unity.Panel systray-whitelist ['JavaEmbeddedFrame', 'Wine', 'Update-notifier'] Add nabi gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'Update-notifier', 'Nabi']" Re-log in
3. kr.archive.ubuntu.com -> ftp.daum.net change
$ sudo -s # access as root $ cd /etc/apt $ vim sources.list :%s/kr.archive.ubuntu.com/ftp.daum.net/g :wq $ sudo apt-get update
4. Install SSH
$ sudo apt-get install ssh
5. Install vim
$ sudo apt-get install vim-gnome
6. R-studio server establishment
Install R
$ sudo apt-get install r-base-core
Edit /etc/apt/sources.list
# /etc/apt/sources.list deb http://cran.cnr.Berkeley.edu/bin/linux/ubuntu precise/
Update and upgrade apt-get
$ sudo apt-get update $ sudo apt-get upgrade
Install apache2, php, MySQL
$ sudo apt-get install tasksel $ sudo tasksel install lamp-server
Install R studio-server
# Prerequisites $ sudo apt-get install libssl0.9.8 $ sudo apt-get install libapparmor1 apparmor-utils
# Download and install for 32-bit Ubuntu $ wget http://download2.rstudio.org/rstudio-server-0.96.316-i386.deb $ sudo dpkg -i rstudio-server-0.96.316-i386.deb
# Download and install for 64-bit Ubuntu $ wget http://download2.rstudio.org/rstudio-server-0.96.316-amd64.deb $ sudo dpkg -i rstudio-server-0.96.316-amd64.deb
Test
http://localhost:8787
7. Mount NAS server to /home/illumina
Edit /etc/fstab
# copy fstab file for backup $ sudo cp /etc/fstab /etc/fstab.backup
# Add below code to /etc/fstab //192.168.0.1/share /home/target cifs username=mbnmbn00,password=mbnmbn00 0 0
※ Caution : NO space from username to password
# Mount application $ sudo mount -a
Unmount
$ sudo unmount /home/target
8. JDK
sudo add-apt-repository ppa:upubuntu-com/java sudo apt-get update sudo apt-get install oracle-java7-installer 설치경로확인 ls -al /usr/bin/java* ls -al /etc/alternatives/java*Done!