이 블로그 검색

일요일, 3월 11, 2012

Debian network setup

#vi /etc/network/interfaces

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcase 192.168.0.255
gateway 192.168.0.1
dns-nameservers 168.126.63.1 168.126.63.2


#ifup eth0

I have seen many how-to docs and they all instructs 'ifdown eth0' first.
I kept failing to do and now I found ifdown was not necessary because this process is separated from the real module eth0. I just simply ifup eth0 instead. I need to research about this a bit later.

토요일, 3월 10, 2012

how to setup Korean input in Debian

#apt-get install nabi im-switch
#vi ~/gnomerc
export XMODIFIERS="@im=nabi"
export XIM_PROGRAM=/usr/bin/nabi
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
nabi &



#im-switch -s nabi


#vi /etc/locale-gen
ko_KR.EUC-KR
ko_KR.UTF-8


#locale-gen

system locale in Gentoo

I just want to be able to use Korean whenever I want.
I saw Korean appeared even in a certain application's title bar which I didn't want to.
I am using 'nabi' for my Korean Input application. In order to use it, my system locale must be 'ko_KR'. But if I set it so, I should see Korean even when I don't want to?

Here is the answer, system locale.

#locale
LANG=ko_KR
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=en_US

Easiest way to set up is to add 'export LANG="ko_KR"' in my .bashrc or .bash_profile

Instead of it, I would put the locale to /etc/env.d/02useretc
and simply,
#env-update

And then, you can use nabi and see English as well or you push shift+space to switch to Korean.

Gentoo time setup

#emerge rdate
#vi /etc/conf.d/rdate

RDATE_SERVER="time.bora.net"

수요일, 3월 07, 2012

How to setup Korean in Gentoo

#emerge baekmuk-fonts 
#export LANG='ko_KR' 
#emerge nabi
#vi /etc/env.d/02useretc
LANG="ko_KR.euckr"
# ko_KR.eucKR:ko_KR:ko:en_US:en
SUPPORTED="ko_KR.eucKR:ko_KR:ko"
SYSFONT="lat0-sun16"
SYSFONTACM="iso01"


XMODIFIERS="@im=nabi"
XIM_PROGRAM=/usr/bin/nabi
 
 
#env-update
 

how to set up Korean font in debian

# aptitude install ttf-unfonts-core ttf-unfonts-extra

화요일, 3월 06, 2012

Fix errors while installing firefox in debian

I made my machine dual boot system.
I have 2 HDD in my case. One has 150GB which contains Windows 7, the other one is 300GB which contains Linux dual os - Gentoo, Debian.
Recently I had been trying to apt-get install firefox in debian but kept failing.
So I downloaded the firefox current source but I couldn't start it.
It gave me error messages as following,

./firefox: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory


You might need to install ia32 library as following:
#apt-get install ia32-libs ia32-libs-gtk

That is because your machine runs on 64bit system and 32bit firefox conflicts in it.

startKDE

#emerge -uNDv world

You need to add following USE flags:

flagexplanation
consolekitEnables the consolekit framework for defining and tracking users, login sessions and seats
dbusEnables use of the dbus message bus system
policykitEnables the polkit framework for controlling privileges for system-wide services
udevEnables support for udev Linux dynamic and persistent device naming

#emerge -av kde-meta
#emerge -av kdebase-meta kdegames-meta

You might face many dependency errors while emerging above packages.
You need to read the whole message and follow the instructions carefully.
However, in most case, you can solve the errors with adding use flags in /etc/portage/package.use

And try,
#startkde
or
#kdm

if it works, then add 'kdm' in /etc/conf.d/xdm
and then,
#rc-update add xdm default

You might need to add dbus and consolekit as following :
#rc-update add dbus default
#rc-update add consolekit default

I emerged firefox after completing my desktop.
#emerge mozilla-firefox