2015년 2월 13일 금요일

VM 에 리눅스 설치 후 putty 접속 환경 설정

vi /etc/network/interfaces
: 고정 IP 로 수정
auto eth0
iface eth0 inet static
address 192.168.21.140
netmask 255.255.255.0
gateway 192.168.21.2
dns-nameservers 168.126.63.1
vi /etc/sudoers
user1    ALL=(ALL)   NOPASSWD: ALL
: root 권한 부여 등 수정
sudo sed -i s/kr.archive.ubuntu.com/ftp.jaist.ac.jp/g /etc/apt/sources.list
또는
sudo sed -i s/us.archive.ubuntu.com/ftp.jaist.ac.jp/g /etc/apt/sources.list
* 프락시 환경인 경우 설정
: xxx.crt 같은 인증서 파일을 아래 위치에 업로드
/usr/share/ca-certificates/extra/sds.crt
sudo dpkg-reconfigure ca-certificates (yes, xxx.crt 선택)
/etc/environment 편집
ubuntu@ubuntu:~$ sudo vi /etc/environment
...
http_proxy="http://70.10.15.10:8080/"
https_proxy="https://70.10.15.10:8080/"
no_proxy="localhost,127.0.0.1,127.0.0.0/8,127.0.1.1,10.0.0.0/8"
namaserver 수정
vi /etc/resolve.conf

네트워크 재시작

sudo service networking restart
Ubuntu Upgrade
최신 패키지로 업그레이드 합니다. 필요시 재부팅합니다.
ubuntu@ubuntu:~$ sudo apt-get update
ubuntu@ubuntu:~$ sudo apt-get upgrade
ubuntu@ubuntu:~$ sudo shutdown -ry 0
ssh server 설치:
sudo apt-get install openssh-server
sudo apt-get install vim
sudo apt-get install curl wget
sudo apt-get install git python-pip
(sudo apt-get update 해서 cannot initiate 같은 에러 나는 경우 sudo -E apt-get upate  를 한다.
또는 /etc/apt/apt.conf 파일에 아래 내용 기입
Acquire::http::proxy "http://somecorpdom:8080/";
Acquire::https::proxy "https://somecorpdom:8080/";
)
ubuntu@ubuntu:~$ sudo vi ~/.pip/pip.conf
[global]
cert = /usr/share/ca-certificates/extra/xxx.crt
* devstack download
ubuntu@ubuntu:~$ git clone http://github.com/openstack-dev/devstack
ubuntu@ubuntu:~$ cd ~/devstack
ubuntu@ubuntu:~/devstack$ git checkout stable/juno

댓글 없음:

댓글 쓰기