우분투 세팅

nike984의 이미지

평소에 우분투 사용하면서 이래저래 자잘한 세팅하면서 메모해뒀던 내용들을 이번에
시스템 다시 깔면서 다 모아서 합쳐봤습니다. 원래 제가 사용할려고 만든거라
자잘한 설명은 없습니다.Automatix를 사용하면 좀더 간단하게 세팅할 수 있겠지만
그래도 직접 다 손봐줘야 확실해서 automatix는 어지간해서는 잘 사용안합니다.
출처는 kldp,우분투 포럼, 여기저기 블러그 입니다. -_-

[menu.lst 편집 => Reduce Booting delay time ]
=============================================
sudo gedit /boot/grub/menu.lst
=============================================

[source.list update]
=============================================
sudo gedit /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 edgy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse

## MAJOR BUG FIX UPDATES produced after the final release
deb http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse

## UBUNTU SECURITY UPDATES
deb http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse

## BACKPORTS REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
deb http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse

## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
#deb http://medibuntu.sos-sts.com/repo/ edgy free
#deb http://medibuntu.sos-sts.com/repo/ edgy non-free
#deb-src http://medibuntu.sos-sts.com/repo/ edgy free
#deb-src http://medibuntu.sos-sts.com/repo/ edgy non-free

## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
## servers. RealPlayer10, Opera, DesktopSecure and more to come.)
deb http://archive.canonical.com/ubuntu edgy-commercial main

## Listen
#deb http://theli.free.fr/packages/ edgy listen
----------------------------------------------------------------------
sudo apt-get update
sudo apt-get upgrade
System Update
=============================================

[Add Korean Language (SCIM / SCIM-qtimm)]
=============================================
Using SCIM in Englsih Environment

sudo ln -s /etc/X11/xinit/xinput.d/scim /etc/alternatives/xinput-en_US
sudo ln -s /etc/alternatives/xinput-en_US /etc/X11/xinit/xinput.d/en_US
---------------------------------------------
sudo apt-get install scim-qtimm
=============================================

[build-essiential / alien / checkinstall install]
=============================================
sudo aptitude install build-essential
sudo aptitude install alien
sudo aptitude install checkinstall
=============================================

[Archiver install]
=============================================
sudo aptitude install p7zip-full
sudo aptitude install rar unrar
=============================================

[GDM Splash / Splash Screen / Wallpaper change]
=============================================
GDM Splash
http://www.gnome-look.org/content/show.php/Sky+is+the+limit?content=26528
-----------------------------------
Splash Screen
1. Usplash Development packages 설치
sudo apt-get install usplash usplash-dev
2. theme file download
http://www.gnome-look.org/content/show.php/Tangerine+Edgy+Usplash?content=46645
3. Change the Booting screen resolution (to 1024x768)
sudo gedit /boot/grub/menu.lst
find the paragraph about your current kernel version, and add the string "vga=791"
at the end of the kernel section, without modifying pre-existing values.

For example if this is your current configuration
title Debian GNU/Linux, kernel 2.6.17-10-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda5 ro quiet splash locale=en_EN
initrd /boot/initrd.img-2.6.17-10-generic
boot
you should add the string to this line
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda5 ro quiet splash locale=en_EN
which will become
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda5 ro quiet splash locale=en_EN vga=791

4. Run

sudo cp usplash-theme-fingerprint.so /usr/lib/usplash
sudo update-alternatives --install /usr/lib/usplash/usplash-artwork.so usplash-artwork.so /usr/lib/usplash/usplash-theme-fingerprint.so 10
sudo update-alternatives --config usplash-artwork.so

Now update your system booting process by digiting in terminal
sudo update-initramfs -u
------------------------------------
http://www.ubuntuforums.org/showpost.php?p=1575992&postcount=10
=============================================

[Icon set / Metalicty / Theme change]
=============================================
Murrine Engine Install
http://www.gnome-look.org/content/show.php/Murrine+GTK2+Engine+for+Ubuntu+Edgy?content=45442
Theme File Install
http://www.gnome-look.org/content/show.php/%E2%98%85+Murrina+DuOEte?content=54250
http://www.gnome-look.org/content/show.php/Murrina+Kent?content=50152
Icon Set Install
http://www.gnome-look.org/content/show.php/OSX?content=31618
=============================================

[Extra Font Install]
=============================================
sudo aptitude install xfonts-intl-arabic
sudo aptitude install xfonts-intl-asian
sudo aptitude install xfonts-intl-chinese
sudo aptitude install xfonts-intl-chinese-big
sudo aptitude install xfonts-intl-european
sudo aptitude install xfonts-intl-japanese
sudo aptitude install xfonts-intl-japanese-big
sudo aptitude install xfonts-intl-phonetic
sudo aptitude install gsfonts-x11
sudo aptitude install msttcorefonts
sudo fc-cache -f -v
=============================================

[Network Manager Install]
=============================================
Install Network manager using Synaptic
Edit /etc/network/interfaces
무선 랜 부분의 설정을 "auto" and "dhcp"로 두고 다른 option은 모두 삭제
(network-manger 설정 관련 문서는 /usr/share/doc/network-manger/readme.debian)
=============================================

[Keyring Problem Solve]
=============================================
http://www.ubuntuforums.org/showthread.php?t=192281&highlight=Keyring
=============================================

[Codec install]
=============================================
sudo aptitude install gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad-multiverse gstreamer0.10-ffmpeg

sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gxine libxine-main1 libxine-extracodecs ogle ogle-gui

wget -c http://www.debian-multimedia.org/pool/main/w/w32codecs/w32codecs_20061022-0.0_i386.deb
sudo dpkg -i w32codecs_20061022-0.0_i386.deb
---------------------------------------------
https://wiki.ubuntu.com/RestrictedFormats
=============================================

[Koffice depository update]
============================================
# gpg --keyserver hkp://subkeys.pgp.net --recv-keys KEY
# gpg --export --armor KEY | sudo apt-key add -

# Kubuntu.org bleeding edge Koffice
# GPG key: DD4D5088
deb http://kubuntu.org/packages/koffice-latest edgy main
============================================

[Amarok depository update]
============================================
wget http://people.ubuntu.com/~jriddell/kubuntu-packages-jriddell-key.gpg
sudo apt-key add kubuntu-packages-jriddell-key.gpg

deb http://kubuntu.org/packages/amarok-145 edgy main
============================================

[VLC install]
=============================
Install VLC using Synpatic

VLC 한글자막 설정
* 우선 [ Interface ] 에서 advanced option을 볼 수 있게 체크
* [ Video > Subtitles/OSD > Text Renderer ] 에서 폰트를 설정
* [ Input / Codecs ] 에서 Subtitle Tracks를 0으로 해주면 동영상 재생시 자막을 자동으로 불러온다
* [ Input / Codecs > Other Codecs > Subtitles ] 에서 Subtitle text encoding을 CP949로 변경
* [ Subtitle/OSD ] 에서 Force subtitle position을 적당히 변경해준다 (40정도)
=============================

[Mplayer install]
========================================================
1. Get the official sourcecode.

mkdir ~/src
cd ~/src

---Download the sourcecode
wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2

---Download the skin
wget http://www.mplayerhq.hu/MPlayer/skins/proton-1.2.tar.bz2

---Download the Full Codec Pack
wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2

---Download the security patches
wget http://www.mplayerhq.hu/MPlayer/patches/asmrules_fix_20061231.diff

2. Prepare the system.

sudo apt-get remove mplayer
sudo apt-get install build-essential checkinstall
sudo apt-get build-dep mplayer

3. Compile and install

cd ~/src
tar xfv proton-1.2.tar.bz2
sudo mkdir -p /usr/local/share/mplayer/Skin/default/
cd ~/src/proton
sudo cp -v * /usr/local/share/mplayer/Skin/default/
cd ~/src
tar xfv all-20061022.tar.bz2
sudo mkdir /usr/lib/win32
cd ~/src/all-20061022
sudo cp -v * /usr/lib/win32/
cd ~/src
tar xfv MPlayer-1.0rc1.tar.bz2
cp -v asmrules_fix_20061231.diff ~/src/MPlayer-1.0rc1/
cd ~/src/MPlayer-1.0rc1
patch -p0 cd ~/src/MPlayer-1.0rc1
./configure --enable-gui --disable-mp3lib
make
checkinstall
---choose number 3 in the checkinstall menu and Update the version number
The current one is "2:0.99+1.0pre8-0ubuntu8". Check the version number "apt-cache show mplayer"

sudo dpkg -i mplayer_2:0.99+1.0pre8-0ubuntu8-1_i386.deb

4. Remove Mozilla-totem Plugin and Install Mozilla-mplayer Plugin
5. Configure Mplayer Plugin
sudo gedit /etc/mplayerplug-in.conf
Add

noembed=1
fileonly-embed=1

http://www.ubuntuforums.org/showthread.php?t=336706&highlight=howto+mplayer
-------------------------------
Codec Error Message Problem

Mplayer Preferences -> Codecs & demux.

Make sure both "Video codec family" & "Audio codec family" are using
the "FFmpeg's libavcodec codec family" & "FFmpeg/libavcodec audio decoders"
------------------------------
Font Problem
sudo apt-get install mplayer-fonts

sudo apt-get install msttcorefonts

sudo ln -s /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/Arial.ttf /usr/local/share/mplayer/subfont.ttf
----------------------------
한글자막 설정
Preference-> subtitles/OSD
Encoding; Korean charset (CP949)
[check] Unicode subtitle

Preference-> Font
location; /usr/share/fonts/truetype/unfonts/UnDotum.ttf
Encoding; [choose] Unicode
==============================

[Skype Install]
==============================
Install Skype (deb package is at Skype homepage)
시스템 -> 기본설정 -> 메뉴배치 -> 인터넷 -> Skype 를 찾아서
Skype의 등록정보창에서 명령어를 다음과 같이 수정하면 한글이 사용 가능합니다.
env QT_IM_MODULE=xim skype
==============================

[Gaim theme Setting]
==============================
http://www.gnome-look.org/content/show.php/Tango+Gaim+Theme?content=52325
http://www.gnome-look.org/content/show.php/Gaim+OSX+Guifications+Theme?content=38848
==============================

[Openoffice 2.1 install]
==============================
1. Enable the universe and multiverse repositories on apt-get
2. Uninstall the existing OpenOffice 2.03 using Synaptic.
You search for openoffice.org, then you select openoffice.org core and mark it for removal.
Untick all the installed OpenOffice components, I left myspell in place.
3. Download the OpenOffice 2.1 archive (a 120Mb .gzip file) from OpenOffice
4. Extract this file to a directory anywhere on your desktop or home drive
5. Start a terminal session, and cd into the RPMS directory
6. sudo alien --script --keep-version *.rpm
7. deleted the RPMs using sudo rm *.rpm
8. install the .deb files using sudo dpkg -i *.deb
9. Finally cd into the ‘desktop-integration’ sub-folder
and delete all the files except the one that ends in .deb (debian desktop integration)
10. Run the sudo dpkg -i *.deb command in this directory to install that file
==============================

[Ipod Connection]

[GTK1.X theme]
==============================
At home directory
gedit .gtkrc.mine

include "/usr/share/themes/default/gtk/gtkrc"
style "default-text" {
fontset = "-bitstream-bitstream vera sans-medium-r-*-*-12-*-*-*-*-*-iso8859-*,\
-bitstream-bitstream vera sans-medium-r-*-*-12-*-*-*-*-*-iso8859-*,\
-bitstream-bitstream vera sans-medium-r-*-*-12-*-*-*-*-*-iso8859-*,\
-bitstream-bitstream vera sans-medium-r-*-*-12-*-*-*-*-*-iso8859-*"
}
class "GtkWidget" style "default-text"

save and close Gedit
Then run this from a terminal window:

echo "include \"$HOME/.gtkrc.mine\"" > ~/.gtkrc-1.2-gnome2
==============================

[Desktop Icon Setting]
==============================
Press ALT +F2 and type: gconf-editor
Expand Apps -> Nautilus -> Desktop and check the box for home_icon_visible or trash.
==============================

[Root Application Theme]
==============================
sudo ln -s /home/user name/.themes /root/.themes
sudo ln -s /home/user name/.icons /root/.icons
sudo ln -s /home/user name/.fonts /root/.fonts
==============================

[KDE Application Theme]
==============================
Install Kcontrol, QT Library, kdebase-devel, kdelibs-devel, qt3 dev
http://www.kde-look.org/content/show.php/Domino?content=42804
==============================

Print to PDF
==============================
1. Install the cups-pdf package (I used version 2.2.0-1)
2. Go to System -> Administration -> Printing
3. Doubleclick "New Pinter"
10. There is now a "PDF Printer" detected, select it
11. Select the Generic, Postscript Color Printer (Rev 3b)
12. Give it a name, like PDF Printer
13. Right click on the newly created printer, and select Properties
14. Click "Print a Test Page"
15. The file should be in your Home folder, under the PDF folder
==============================

익명 사용자의 이미지

멋지네요. 혹시 locale을 euc-kr로 바꾸려면 어떻게 하죠?

nike984의 이미지

디폴트 언어를 한글로 바꾸시는걸 말씀하시면
system -> administration -> language support로 가시면 기본 언어를 바꾸실수 있습니다.

그리고 위에 내용은 이미 좀 지난 내용이라 불필요하거가 있을 수 있겠군요.

doodoo의 이미지

흘...엄청나군요...
특히 vlc 감사합니다..함 해 봐야 하겠군요.