forcemax's

그동안 노트북에 있는 ubuntu 8.04 에서는 시간 애플릿에 날씨 아이콘이 나오고 PC에 있는 ubuntu 8.04 에서는 날씨 아이콘이 나오지 않았다.
둘의 설정을 거의 똑같이 놓고 사용하기 때문에 이유가 뭔지 몰랐다.

google에 울어봤다.
"gnome weather icon"

launchpad.net에 이미 버그로 올라와 있는 내용이다.

sudo dpkg-reconfigure tzdata

시간 애플릿에 설정해 놓은 timezone과 시스템에 설정해 놓은 timezone을 맞춰주어야 하는 문제이다.

(한 3달은 넘게 고민한 내용인데... 이렇게 쉽게 해결 가능한거라니 ㅠㅠ)



$ parted /dev/sda
GNU Parted 1.7.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) print

Disk /dev/sda: 9000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

(parted) mkpart primary 0 9000G
(parted) quit


Linux Traffic Control

Linux2008. 6. 24. 10:02
일반적으로 저속의 상황을 시뮬레이션하기 위해서는 Client의 Traffic을 제한할 필요가 있다. QOS에 관련하여 알아보던 중 Incoming Traffic을 제한하는 방법은 Ingress Policing 밖에 없음을 알게되었다.

알게된 상황을 정리해 보면.

ingress policing : incoming traffic control
egress shaping : outgoing traffic control

ingress policing은 오직 한가지 방법만이 존재하며 다음 링크에서 살펴볼 수 있다.
http://blog.stevedoria.net/20050906/ingress-policing-with-linux-and-tc

내가 작성한 ingress policing script는 다음과 같다.

#!/bin/bash

TC=/sbin/tc
DEV=eth0
MAX=400

# clear all queuing on the device.
${TC} qdisc del dev ${DEV} root 2> /dev/null > /dev/null
${TC} qdisc del dev ${DEV} ingress 2> /dev/null > /dev/null

# Handle the speed of the traffic coming from network
# Add a limiter to the ingress
${TC} qdisc add dev ${DEV} handle ffff: ingress
# Set the maximum limit
${TC} filter add dev ${DEV} parent ffff: protocol ip prio 2 u32 match ip src 0.0.0.0/0 police rate ${MAX}kbps burst 100kb drop

위 스크립트는 ubuntu 8.04에서 잘 돌아간다. 내용은 incoming traffic의 속도를 400kbytes/sec로 제한하는 것이다.

debian etch에서는 위 스크립트로 동작이 안되는데 마지막 줄을 다음과 같이 수정한다.

${TC} filter add dev ${DEV} parent ffff: protocol ip prio 2 u32 match ip src 0.0.0.0/0 police rate ${MAX}kbps burst 100kb drop flowid :1





rip changelog를 보던중 partimage라는 패키지가 있다는 것을 알았다.

manpage를 보니 backup과 restore에 사용하는 패키지란다.

fp rip에 써도 좋을것 같다.

그래서 남겨두는 링크~

http://www.debianadmin.com/backup-and-restore-linux-partitions-using-partimage.html

http://wiki.kldp.org/wiki.php/Partimage-HOWTO

GNU screen 단축키

Linux2008. 4. 10. 21:37

자주 사용하는 단축키만 정리

분할된 상하의 개념과 윈도우의 개념을 이해하자~

C(ctrl)
$(Shift)

C-a $-s [split : 화면 상하 분할]
C-a (TAB) [분할된 상하 이동]
C-a C-c [새 윈도우 생성]
C-a (SPACE) [다음 윈도우로]
C-a d [detach]
C-a C-a [이전 사용한 윈도우로]

screen -x [attach]

Ubuntu 8.04 Hardy를 사용하던중 IBM USB Ultranav travel을 업어왔다.

GDM을 통해서 Login하면 Numlock키가 On 상태가 되었다.

그런데 Shift + Scrlk 버튼을 누르면 Numlock이 풀려야 하는데 풀리지 않는다. 이런 ㅠㅠ

찾아보던중 numlockx 라는 패키지를 설치하고 numlockx off 라는 명령을 내리면 Numlock이 풀린다는 내용을 보았다.

바로 numlockx 패키지를 설치하고 세션에 numlockx off 명령을 넣어주어서 이제는 Numlock이 풀린상태로 Login이 되었다.

만세~

PS. 그런데 Shift + Scrlk 버튼을 누르면 Toggle이 되야하는데 왜 안되는거지;;

While tools to measure network performance, such as ttcp, exist, most are very old and have confusing options. Iperf was developed as a modern alternative for measuring TCP and UDP bandwidth performance.

Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of various parameters and UDP characteristics. Iperf reports bandwidth, delay jitter, datagram loss.

Multi Platform supports.

http://dast.nlanr.net/Projects/Iperf/


Ubuntu gutsy에서 Xen을 사용하다보면 guest OS에서 네트웍이 안되는 경우가 생긴다.

이 것은 udev와 관련이 있는데 Xen은 매번 동작시에 guest OS에서 사용할 NIC의 Mac Address를 변경한다. 이로 인해 udev에서 매번 새로운 interface로 잡아주게 되어 네트웍이 동작안하게 된다.

이를 방지하기 위해 guest OS의 /etc/udev/rules.d/75-persistent-net-generator.rules 파일을 제거한다.


rpmstrap centos5 script

Linux2007. 12. 21. 17:47

이것 때문에 참 삽질 많이 했다 -_-

ubuntu dom0에서 centos5 domU를 설치한다는 것이 이렇게 힘들줄이야...

Xen on Ubuntu gutsy

Linux2007. 12. 17. 20:45
- console이 출력되다 중간에 안나온다면!!!
sudo echo "extra = ' TERM=xterm xencons=tty console=tty1'" >> /etc/xen-tools/xm.tmpl
echo "extra = ' TERM=xterm xencons=tty console=tty1'" >> /etc/xen/XENCFG.cfg

- system clock을 셋팅하는 곳에서 멈춘다면
prefix=/media/sdb5 # domU 이미지를 마운트해 놓은곳
chroot ${prefix} /usr/sbin/update-rc.d -f hwclock.sh remove
chroot ${prefix} /usr/sbin/update-rc.d -f hwclockfirst.sh remove
rm -f ${prefix}/etc/init.d/hwclock.sh ${prefix}/etc/init.d/hwclockfirst.sh ${prefix}/etc/udev/rules.d/85-hwclock.rules

- tls관련 문제를 없애기 위해서
prefix=/media/sdb5 # domU 이미지를 마운트해 놓은곳
mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled

- 다음과 같은 문장이 나오면
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "ko_KR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale-gen ko_KR.UTF-8 를 실행

.....
xen 사용하기가 점점 힘들어지네 ㅠㅠ