우분투 관련 기본 설정들
IP 변경
- 수동으로 IP변경하기
]# sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 150.183.115.80
netmask 255.255.255.0
network 150.183.115.0
broadcast 150.183.115.255
gateway 150.183.115.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
방화벽 중지
]# systemctl disable ufw
]# systemctl stop ufw
소스리스트 수정
- 기본 소스리스트가 느리기 때문에 daumkakao 서버로 변경해줌
]# sudo vi /etc/apt/source.list
:%s/kr.archive.ubuntu.com/ftp.daumkakao.com/g
:%s/security.ubuntu.com/ftp.daumkakao.com/g
:%s/extras.ubuntu.com/ftp.daumkakao.com/g
]# sudo apt-get install aptitude
]# sudo aptitude update
]# sudo aptitude upgrade
sysv-rc-conf 설치
- 부팅 시 자동 실행하기 위한 chkconfig 명령어를 사용하기 위해 설치
]# sudo aptitude install sysv-rc-conf
]# sysv-rc-conf apache2 on = chkconfig apache2 enable
]# sysv-rc-conf --list = chkconfig --list
GUI 설치하기
1.
tasksel
ubuntu desktop 선택 OK
init 6
2.
Minimal Gnome Core Desktop
-
- sudo apt-get install ubuntu-gnome-desktop : Full Install
- sudo apt-get install xorg gnome-core gnome-system-tools gnome-app-install : Minimal Install
Unity Based Ubuntu Server GUI
-
- sudo apt-get install ubuntu-desktop : Full Install
- sudo apt-get install –no-install-recommends ubuntu-desktop : Minimal Install
Lubuntu or LXDE Desktop
-
- sudo apt-get install lubuntu-desktop : Full Install
- sudo apt-get install –no-install-recommends lubuntu-desktop : Minimal Install
GUI 삭제 방법
]# sudo apt-get purge unity gnome-shell lightdm
]# sudo apt-get clean
]# sudo apt-get autoremove
]# sudo apt-get -f install
Ubuntu 설치 날짜 확인
]# sudo dumpe2fs /dev/sda1 | grep created
728x90
댓글