'Linux' 카테고리의 다른 글
| iptables를 이용한 ICMP 응답 무시하기 (2) | 2011.02.18 |
|---|---|
| 메일서버 확인하기 (0) | 2011.02.17 |
| gettext에서 변수 순서 변경가능 하도록 문자열 만들기 (0) | 2010.12.19 |
| WOL on Linux - ether-wake (0) | 2010.10.05 |
| POSIX - Portable Operating System Interface [for Unix] (6) | 2010.09.21 |
| iptables를 이용한 ICMP 응답 무시하기 (2) | 2011.02.18 |
|---|---|
| 메일서버 확인하기 (0) | 2011.02.17 |
| gettext에서 변수 순서 변경가능 하도록 문자열 만들기 (0) | 2010.12.19 |
| WOL on Linux - ether-wake (0) | 2010.10.05 |
| POSIX - Portable Operating System Interface [for Unix] (6) | 2010.09.21 |
| 우분투 32bit 최대 메모리 인식용량ㅠ (2) | 2011.03.20 |
|---|---|
| Ubuntu Server 10.04 LTS 64bit 는 Flash 부팅이 안돼! (0) | 2011.03.19 |
| Ubuntu == 우분투 != 유분투 (0) | 2011.02.06 |
| ethernet bonding on ubuntu 10.04 (0) | 2010.12.18 |
| ubuntu의 X11 기본 디렉토리명 로케일별 변경 (0) | 2010.12.05 |
| Ubuntu Server 10.04 LTS 64bit 는 Flash 부팅이 안돼! (0) | 2011.03.19 |
|---|---|
| Ubuntu 와 Wayland (0) | 2011.02.06 |
| ethernet bonding on ubuntu 10.04 (0) | 2010.12.18 |
| ubuntu의 X11 기본 디렉토리명 로케일별 변경 (0) | 2010.12.05 |
| 모니터 없이 우분투 사용시 해상도 낮아지지 않도록 하기 (0) | 2010.11.20 |
| gettext에서도 말씀하신 모든 것이 지원이 됩니다. 이러한 예가 broken sentence의 한 종류입니다. 비슷한 경우는 수많은 케이스가 있습니다. gettext를 제대로 쓰르면 "%1d of %2d"와 같이 처음부터 그렇게 코드를 작성해야 나중에 번역만 하면 됩니다. [링크 : http://allofsoftware.net/202#comment2695704] |
15.3.1 C Format StringsC format strings are described in POSIX (IEEE P1003.1 2001), section XSH 3 fprintf(), http://www.opengroup.org/onlinepubs/007904975/functions/fprintf.html. See also the fprintf() manual page, http://www.linuxvalley.it/encyclopedia/ldp/manpage/man3/printf.3.php, http://informatik.fh-wuerzburg.de/student/i510/man/printf.html. Although format strings with positions that reorder arguments, such as "Only %2$d bytes free on '%1$s'." which is semantically equivalent to "'%s' has only %d bytes free." are a POSIX/XSI feature and not specified by ISO C 99, translators can rely
on this reordering ability: On the few platforms where As a special feature for Farsi (Persian) and maybe Arabic, translators can
insert an ‘I’ flag into numeric format directives. For example, the
translation of Note that the programmer should not put this flag into the untranslated string. (Putting the ‘I’ format directive flag into an msgid string would lead to undefined behaviour on platforms without glibc when NLS is disabled.) [링크 : http://www.gnu.org/software/gettext/manual/gettext.html#c_002dformat] |
| 메일서버 확인하기 (0) | 2011.02.17 |
|---|---|
| MacOSX 의 시스템 구조 (0) | 2011.02.06 |
| WOL on Linux - ether-wake (0) | 2010.10.05 |
| POSIX - Portable Operating System Interface [for Unix] (6) | 2010.09.21 |
| 커널의 종류(kind of kernels) (0) | 2010.09.21 |
| $ ifenslave 'ifenslave' 프로그램은 현재 설치되어 있지 않습니다. 다음을 입력하여 이를 설치할 수 있습니다: sudo apt-get install ifenslave-2.6 |
| $ sudo modprobe bonding |
$ sudo modprobe bonding $ dmesg | tail -15 [ 325.324377] Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008) [ 325.324388] bonding: Warning: either miimon or arp_interval and arp_ip_target module parameters must be specified, otherwise bonding will not detect link failures! see bonding.txt for details. $ ll /proc/net/bonding/bond0 -r--r--r-- 1 root root 0 2010-12-19 00:29 /proc/net/bonding/bond0 $ cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008) Bonding Mode: load balancing (round-robin) MII Status: down MII Polling Interval (ms): 0 Up Delay (ms): 0 Down Delay (ms): 0 $ ifconfig eth0 Link encap:Ethernet HWaddr 11:11:11:11:11:11 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:23 Base address:0x8000 eth1 Link encap:Ethernet HWaddr 11:11:11:11:11:11 inet addr:192.168.0.198 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe13:38fc/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13 errors:0 dropped:0 overruns:0 frame:0 TX packets:33 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3491 (3.4 KB) TX bytes:7120 (7.1 KB) eth2 Link encap:Ethernet HWaddr 11:11:11:11:11:11 inet addr:192.168.0.155 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe13:378d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1525 errors:0 dropped:0 overruns:0 frame:0 TX packets:1250 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1394038 (1.3 MB) TX bytes:196987 (196.9 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 B) TX bytes:480 (480.0 B) $ sudo ip addr add 192.168.0.254/24 brd + dev bond0 $ sudo ip link set dev bond0 up $ ifconfig bond0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) eth0 Link encap:Ethernet HWaddr 11:11:11:11:11:11 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:23 Base address:0x8000 eth1 Link encap:Ethernet HWaddr 11:11:11:11:11:11 inet addr:192.168.0.198 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe13:38fc/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13 errors:0 dropped:0 overruns:0 frame:0 TX packets:33 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3491 (3.4 KB) TX bytes:7120 (7.1 KB) eth2 Link encap:Ethernet HWaddr 11:11:11:11:11:11 inet addr:192.168.0.155 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe13:378d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3038 errors:0 dropped:0 overruns:0 frame:0 TX packets:2100 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3396837 (3.3 MB) TX bytes:352314 (352.3 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 B) TX bytes:480 (480.0 B) $ sudo ifenslave bond0 eth1 eth2 나가는게 안됨.. 라우팅 문제가 있는듯? |
| $ ip link set dev bond0 up RTNETLINK answers: Operation not permitted $ ifenslave bond0 eth1 eth2 Slave 'eth1': Error: bring interface down failed Master 'bond0', Slave 'eth1': Error: Enslave failed Slave 'eth2': Error: bring interface down failed Master 'bond0', Slave 'eth2': Error: Enslave failed |
| Ubuntu 와 Wayland (0) | 2011.02.06 |
|---|---|
| Ubuntu == 우분투 != 유분투 (0) | 2011.02.06 |
| ubuntu의 X11 기본 디렉토리명 로케일별 변경 (0) | 2010.12.05 |
| 모니터 없이 우분투 사용시 해상도 낮아지지 않도록 하기 (0) | 2010.11.20 |
| gnome 패널에 CPU 성능관련 추가하기 (6) | 2010.11.15 |
| $ xdg-user-dirs-gtk-update |
| $ gedit ~/.config/user-dirs.dirs # This file is written by xdg-user-dirs-update # If you want to change or add directories, just edit the line you're # interested in. All local changes will be retained on the next run # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an # absolute path. No other format is supported. # XDG_DESKTOP_DIR="$HOME/Desktop" XDG_DOWNLOAD_DIR="$HOME/Downloads" XDG_TEMPLATES_DIR="$HOME/Templates" XDG_PUBLICSHARE_DIR="$HOME/Public" XDG_DOCUMENTS_DIR="$HOME/Documents" XDG_MUSIC_DIR="$HOME/Music" XDG_PICTURES_DIR="$HOME/Pictures" XDG_VIDEOS_DIR="$HOME/Videos" |
| Ubuntu == 우분투 != 유분투 (0) | 2011.02.06 |
|---|---|
| ethernet bonding on ubuntu 10.04 (0) | 2010.12.18 |
| 모니터 없이 우분투 사용시 해상도 낮아지지 않도록 하기 (0) | 2010.11.20 |
| gnome 패널에 CPU 성능관련 추가하기 (6) | 2010.11.15 |
| SLI on Ubuntu (0) | 2010.11.15 |
| ethernet bonding on ubuntu 10.04 (0) | 2010.12.18 |
|---|---|
| ubuntu의 X11 기본 디렉토리명 로케일별 변경 (0) | 2010.12.05 |
| gnome 패널에 CPU 성능관련 추가하기 (6) | 2010.11.15 |
| SLI on Ubuntu (0) | 2010.11.15 |
| 리눅스 계정이름 바꾸기 (0) | 2010.11.11 |
| ubuntu의 X11 기본 디렉토리명 로케일별 변경 (0) | 2010.12.05 |
|---|---|
| 모니터 없이 우분투 사용시 해상도 낮아지지 않도록 하기 (0) | 2010.11.20 |
| SLI on Ubuntu (0) | 2010.11.15 |
| 리눅스 계정이름 바꾸기 (0) | 2010.11.11 |
| "네트워크 연결" 프로그램 실행하기 - execute connection manager on ubuntu 10.04 (2) | 2010.10.29 |
| $ lspci | grep -i vga 04:00.0 VGA compatible controller: nVidia Corporation G84 [GeForce 8600 GT] (rev a1) 05:00.0 VGA compatible controller: nVidia Corporation G84 [GeForce 8600 GT] (rev a1) $ lspci -t -[0000:00]-+-00.0 +-01.0 +-01.1 +-02.0 +-02.1 +-06.0 +-07.0 +-08.0 +-09.0-[0000:01]----01.0 +-0a.0 +-0b.0-[0000:02]-- +-0c.0-[0000:03]-- +-0d.0-[0000:04]----00.0 +-0e.0-[0000:05]----00.0 +-18.0 +-18.1 +-18.2 \-18.3 |
| 모니터 없이 우분투 사용시 해상도 낮아지지 않도록 하기 (0) | 2010.11.20 |
|---|---|
| gnome 패널에 CPU 성능관련 추가하기 (6) | 2010.11.15 |
| 리눅스 계정이름 바꾸기 (0) | 2010.11.11 |
| "네트워크 연결" 프로그램 실행하기 - execute connection manager on ubuntu 10.04 (2) | 2010.10.29 |
| dos2unix on Ubuntu 10.04 (0) | 2010.10.29 |
| $ sudo su |
| $ ll /etc/passwd /etc/shadow /etc/group -rw-r--r-- 1 root root 1857 2010-11-11 19:15 /etc/passwd -rw-r----- 1 root shadow 1222 2010-11-11 19:17 /etc/shadow -rw-r--r-- 1 root root 979 2010-11-11 20:27 /etc/group |
| [sudo] password for username: |
| [sudo] password for username: username is not in the sudoers file. This incident will be reported. |
| gnome 패널에 CPU 성능관련 추가하기 (6) | 2010.11.15 |
|---|---|
| SLI on Ubuntu (0) | 2010.11.15 |
| "네트워크 연결" 프로그램 실행하기 - execute connection manager on ubuntu 10.04 (2) | 2010.10.29 |
| dos2unix on Ubuntu 10.04 (0) | 2010.10.29 |
| 삼바로 파일 아무나 공유하기 - sharing files with everyone (0) | 2010.10.29 |