Ubuntu mgmt commands

Redhat/Fedora와 다른 것들만 정리함.

(1) 서비스/데몬
sysv-rc-conf: 런레벨 마다 서비스 실행 여부 지정
update-rc.d: redhat의 chkconfig 처럼 서비스 등록/해제
bum: 실행중인 서비스 관리
/etc/init.d/xxx [start/stop/restart]: 서비스 시작/중지/재시작

(2) 패키지 관리
sudo apt-get install/remove [pkg]: 패키지 설치/삭제
sudo apt-get remove –purge [pkg]: 패키지를 지울 때 설정파일도 같이 날림
sudo apt-cache search [pkg]: 패키지 검색
sudo apt-get update: 패키지 목록 갱신
sudo apt-get upgrade: 설치된 패키지 업데이트

다음은 /etc/apt/sources.list 내용. 이걸로 안바꾸면 제대로 안되는게 많을 것임.

mkseo@mkseo:~$ cat /etc/apt/sources.list
## Add comments (##) in front of any line to remove it from being checked.
## Use the following sources.list at your own risk.
deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted universe multive rse
## MAJOR BUG FIX UPDATES produced after the final release
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe  multiverse
## UBUNTU SECURITY UPDATES
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe m ultiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted univer se multiverse
## BACKPORTS REPOSITORY (Unsupported.  May contain illegal packages.  Use at own  risk.)
#deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted univer se multiverse
## PLF REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk. )
deb http://packages.freecontrib.org/ubuntu/plf dapper free non-free
deb-src http://packages.freecontrib.org/ubuntu/plf dapper free non-free
# Automatix
#deb http://www.beerorkid.com/automatix/apt dapper main
# Wine
deb http://wine.budgetdedicated.com/apt dapper main
deb-src http://wine.budgetdedicated.com/apt dapper main

# Money's audio
deb http://morgoth.free.fr/ubuntu dapper-backports main

# XGL, Compbiz
deb http://www.beerorkid.com/compiz/ dapper main
deb http://xgl.compiz.info/ dapper main
deb-src http://xgl.compiz.info/ dapper main

# ATI
deb http://mirror.ubuntulinux.nl/ dapper-seveas drivers
mkseo@mkseo:~$

sudo aptitude: 콘솔 기반 패키지 관리 유틸
sudo aptitude install/remove/purge/search: 패키지 설치/삭제/설정까지 삭제/검색

sudo update-alternatives [–install/–remove/–config]: /etc/alternatives 관리

RPM설치
sudo apt-get install alien; sudo alien *.rpm; dpkg -i *.deb
또는 sudo alien -i *.rpm

소스로부터 설치(vim의 예:10.2. Vim 7.0 (compile from source))
$ sudo apt-get build-dep vim
$ cd ~/tmp/inst (or wherever u want)
$ tar xjvf ~/downloads/vim-7.0.tar.bz2
$ cd vim70
$ arch=”athlon-xp” # (or “pentium4″ or whatever processor u have)
$ CFLAGS=”-O2 -march=$arch -mtune=$arch -g -Wall” ./configure \
–enable-perlinterp –enable-pythoninterp –enable-tclinterp \
–enable-rubyinterp –enable-gui=gtk2 –enable-cscope \
–enable-multibyte –with-features=big –enable-fontset \
–enable-xim –enable-hangulinput”
$ make
$ sudo checkinstall
(if you don’t have checkinstall run “sudo apt-get install checkinstall)

(3) DIR_COLORS 변경

..추가: 왜 etc 밑에 없는거죠? -_-; 아직 못찾음…

(4) i18n
/etc/environment

(5) 비디오 카드 잡기
sudo dpkg-reconfigure xserver-xorg

(6) 서버로 깔 경우 X가 없다 -_-;
sudo apt-get install ubuntu-desktop

(7) 한글관련 문제
http://ubuntu.or.kr/wiki.php/MainPage

Similar Posts:

Comments 2

  1. 아즈 wrote:

    sudo로 계속하기 싫으면 sudo -r 이었던가..
    그거 사용하면 계속 root로 접속할 수 있어요~ ^^

    Posted 20 Jun 2006 at 11:49 am
  2. 민구 wrote:

    홍홍 ㄳ

    Posted 20 Jun 2006 at 12:47 pm

Post a Comment

Your email is never published nor shared.