‘Linux’ 카테고리의 보관물
GIMP, 2.7.3 version screenshots
I have compiled with my Linux box, Kubuntu 11.04
ssh client, 느린 접속 해결. (Solved too slow connect to server.)
add line,”AddressFamily inet”, on your $HOME/.ssh_config
This is my $HOME/.ssh_config
$ cat $HOME/.ssh_config
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.
# Site-wide defaults for some commonly used options. For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.
Host *
# ForwardAgent no
# ForwardX11 no
# ForwardX11Trusted yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# GSSAPIKeyExchange no
# GSSAPITrustDNS no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
AddressFamily inet
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# Port 22
# Protocol 2,1
# Cipher 3des
# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
# VisualHostKey no
# ProxyCommand ssh -q -W %h:%p gateway.example.com
SendEnv LANG LC_*
HashKnownHosts yes
# GSSAPIAuthentication yes
# GSSAPIDelegateCredentials no
Reference Sites :
- [SOLVED] ssh slow to connect
- Disabling SSH connections on ipv6
- EOP -
cmake, About advanced mode of ccmake.
ccmake에서 왼쪽은 일반모드, 오른쪽은 전문가모드(Advenced mode) 이다.
일반모드와 전문가모드는 키보드 “t”를 입력해서 토글(toggle)된다.
* 전문가 모드(Advenced mode)에서 “CMAKE_VERBOSE_MAKEFILE” 켜기(ON).
cmake는 기본적으로 컴파일 과정을 압축된 형태로 색을 입혀서 이쁘게 보여준다.
때로는 Makefile 에서 보여줬던 자세한 컴파일 내용이 보고 싶을 때가 있다.
$ make VERBOSE=1
또는
CMAKE_VERBOSE_MAKEFILE=ON
를 ccmake 에서 수정 가능하다.
전문가모드(Advenced mode)에 보면 해당 옵션이 OFF로 되있는 것을 볼 수 있다.
참고 :
CMake FAQ – Is there an option to produce more ‘verbose’ compiling?
CMake 이글루스 이전 글 – http://lum7671.egloos.com/tag/cmake
- 끝 -
KDE4, Tor Browser.desktop
사용환경 : Kubuntu 11.04 (KDE 4.6.3)
Tor Browser : https://www.torproject.org/
* Tor Browser.desktop 내용 :
[Desktop Entry]
Version=1.0
Name=Tor Browser
Name[ko]=Tor 브라우져
Comment=This is Tor browser
Comment[ko]=Tor 브라우져 입니다.
GenericName=Web Browser
GenericName[ko]=웹 브라우져
Exec=/home/x/apps/tor-browser_en-US/start-tor-browser
Icon=/home/x/apps/tor-browser_en-US/tor-on.png
Categories=KDE;Qt;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;
Path=/home/x/apps/tor-browser_en-US/
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
※ “/home/x/apps/tor-browser_en-US” 는 내가 Tor Browser를 설치한 디렉토리이다. 자신에 맞게 고쳐야한다.
“/home/x/apps/tor-browser_en-US/tor-on.png” 역시 원래 제공되는 거이 아니고 위의 128×128 아이콘을 다운 받아서 넣었다.
* Tor Browser.desktop 설치 :
% desktop-file-install Tor\ Browser.desktop
- 끝 -
Linux, Emacs 내장입력기 사용하기. (외장입력기 끄기)
$HOME/.Xresources (없으면 만들고) 에 “Emacs.useXIM: off” 를 추가 해준다.
$ cat $HOME/.Xresources
...
Emacs.useXIM: off
참고,
예전에 이글루스에 쓴글, 다른 방법…
개미나라 : Emacs, 자체 입력기(input method) 사용하기.
- 끝 -
kr2u8, euc-kr to utf-8 script ( or u82kr )
euc-kr을 utf-8로 변경하는 스크립트이다.
KLDP에서 봤었고 지금은 출처를 찾기가 힘들다.
스크립트 내용은 원본에서 조금 수정을 했다. (Usage 정도)
[파일 내용 변경]
* kr2u8
$ kr2u8 [file] // 파일의 내용인 텍스트 인코딩을 변경한다.
* kr2u8R :
$ kr2u8R [dir] // 하위 디렉토리의 모든 파일의 텍스트 인코딩을 변경한다.
$ kr2u8R [dir] "*.cpp" // 하위디렉토리의 모든 cpp 파일의 텍스트 인코딩을 변경한다.
[파일(디렉토리)명 변경]
* kr2u8f
$ kr2u8f [file] // 파일명의 인코딩을 변경한다.
* kr2u8fD
$ kr2u8fD [dir] // 하위 디렉토리명 인코딩을 모두 변경한다.
* kr2u8fA
$ kr2u8fA [dir] // 디렉토리 안의 파일명 인코딩을 모두 변경한다.
* kr2u8fR
$ kr2u8fR [dir] // 하위 디렉토리명 & 파일명 모두 변경한다.
[파일 내용 변경]
* u82kr
* u82krR
[파일(디렉토리)명 변경]
* u82krf
* u82krfD
* u82krfA
* u82krfR
스크립트 다운로드 :
kr2u8_20110407.tar.bz2
※ mediafire 에서 다운 URL 링크를 copy 해서 링크를 만들었습니다. 혹시 다운로드가 안되면 댓글을 남겨주기 바랍니다.
Kubuntu 10.10, Dell XPS M1210, glx, Intel Corporation Mobile 945GM/GMS
Kubuntu 10.10에서 Dell XPS M1210 의 Intel Corporation Mobile 945GM
비디오 카드 3D 가속기(glx) 설정방법.
비디오 메모리가 256M 인 것을 확인.
x@pughome> lspci -vv | grep Region
Region 0: Memory at eff00000 (32-bit, non-prefetchable) [size=512K]
Region 1: I/O ports at eff8 [size=8]
Region 2: Memory at d0000000 (32-bit, prefetchable) [size=256M]
Region 3: Memory at efec0000 (32-bit, non-prefetchable) [size=256K]
Region 0: Memory at eff80000 (32-bit, non-prefetchable) [size=512K]
Region 0: Memory at efebc000 (64-bit, non-prefetchable) [size=16K]
Region 4: I/O ports at bf80 [size=32]
Region 4: I/O ports at bf60 [size=32]
Region 4: I/O ports at bf40 [size=32]
Region 4: I/O ports at bf20 [size=32]
Region 0: Memory at ffa80000 (32-bit, non-prefetchable) [size=1K]
Region 0: I/O ports at 01f0 [size=8]
Region 1: I/O ports at 03f4 [size=1]
Region 2: I/O ports at 0170 [size=8]
Region 3: I/O ports at 0374 [size=1]
Region 4: I/O ports at bfa0 [size=16]
Region 4: I/O ports at 10c0 [size=32]
Region 0: Memory at ef9fe000 (32-bit, non-prefetchable) [size=8K]
Region 0: Memory at ef9fd800 (32-bit, non-prefetchable) [size=2K]
Region 0: Memory at ef9fd500 (32-bit, non-prefetchable) [size=256]
Region 0: Memory at ef9fd600 (32-bit, non-prefetchable) [size=256]
Region 0: Memory at ef9fd700 (32-bit, non-prefetchable) [size=256]
Region 0: Memory at efdff000 (32-bit, non-prefetchable) [size=4K]
we must calculate the ram from MB to KB in order to use it in Videoram option; here the table:
16 -> 16384
32 -> 32768
64 -> 65536
128 -> 131072
256 -> 262144
/etc/X11/xorg.conf 파일 생성.
(되도록 필요한 부분만 간단히 작성한다. 요즘은 보통 파일이 없기도 하다.)
x@pughome> cat /etc/X11/xorg.conf
...
Section "Device"
Identifier "Configured Video Device"
Driver "intel"
Option "AccelMethod" "UXA"
VideoRam 262144
EndSection
* xorg-edgers PPA 등록
https://launchpad.net/~xorg-edgers/+archive/ppa
$ sudo add-apt-repository ppa:xorg-edgers/ppa
* X-Updates PPA 등록
https://launchpad.net/~ubuntu-x-swat/+archive/x-updates/
$ sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
비디오 카드 드라이버 업데이트.
$ sudo apt-get update
$ sudo apt-get dist-upgrade
X를 재시작 한다.
“시작” – “시스템 설정” – “데스크탑 효과” 에서
각 종 3D 데스크탑 효과를 설정할 수 있게된다.
참고 :
http://www.ubuntugeek.com/intel-graphics-performance-guide-for-ubuntu-904-jaunty-users.html
http://ubuntuforums.org/showthread.php?t=1130582
fetchmail, 구글메일(gmail) 인증.
fetchmail 에서 구글메일을 다루려면 인증서가 있어야 워닝 없이 사용할 수 있다. $HOME/.fetchmailrc에 여러방법이 있지만 다음과 같이 3가지 정도로 설정할 수 있다.
1. 기본적인 설정 (폴링때마다 log에 워닝 발생)
poll imap.gmail.com protocol IMAP user “user@gmail.com” there with password “user_password” nofetchall keep ssl
2. 좀 복잡한 인증서 설치 방법
poll imap.gmail.com protocol IMAP user “user@gmail.com” there with password “user_password” nofetchall keep ssl sslcertck sslcertpath /etc/ssl/certs
3. 핑거프린트를 사용한 간단한 인증 방법. (추천)
poll imap.gmail.com via imap.gmail.com protocol IMAP user “user@gmail.com” there with password “user_password” nofetchall nokeep ssl sslfingerprint “4C:69:E2:E6:F9:6B:6C:4E:E9:8B:E1:C8:2B:B9:4F:B9″
※ 인증서, 핑거프린트 생성 방법.
$ openssl s_client -ign_eof -connect imap.example.com:993 > imap.cert
$ openssl x509 -fingerprint -md5 -in imap.cert
Original Post : http://mbrisby.blogspot.com/2007/12/fetchmail-in-ubuntu.html
Kubuntu 10.10, AMD64(64bit) Juniper SSL VPN 설정.
1) 32bit 지원
% sudo aptitude install ia32-libs
2) 32bit, 64bit jre 다운받기.
http://www.java.com/en/download
받은파일 :
1. jre-6u23-linux-i586.bin
2. jre-6u23-linux-x64.bin
% sudo chmod +x *.bin
% sudo mkdir /usr/java
% sudo mv *.bin /usr/java
3) 64bit jre 설치
% sudo ./jre-6u23-linux-x64.bin
% sudo update-alternatives --install "/usr/bin/java" "java" "/usr/java/jre1.6.0_23/bin/java" 1
% sudo update-alternatives --set java /usr/java/jre1.6.0_23/bin/java
% cd /usr/lib/mozilla/plugins
% sudo ln -s /usr/java/jre1.6.0_23/lib/amd64/libnpjp2.so
4) 32bit jre 를 64bit에 덮어쓰기
% sudo ./jre-6u23-linux-i586222.bin
“replace jre1.6.0_20/bin/java? [y]es, [n]o, [A]ll, [N]one, [r]ename:”. Type “A”
5) 브라우져(저는 chrome)를 이용해서 Juniper SSL VPN 으로 접속.
원본 참고 싸이트 : http://wireless.siu.edu/install-ubuntu-64.htm
- 끝 -
kubuntu 10.10, KDE에 nabi 입력기 붙이기.
KDE는 nabi를 실행하기 전에 xim을 nabi로 지정하고
“QT_IM_MODULE=xim”를 해줘야 입력기가 붙는다.
이를 위해서 아래와 같이 한다.
1. 기본 입력기를 nabi로 선택한단.
% im-switch -c

2. “QT_IM_MODULE=xim” 를 추가한다.
% cd $HOME/.xinput.d
% cat ko_KR
XIM=nabi
XIM_PROGRAM=/usr/bin/nabi
XIM_ARGS=
GTK_IM_MODULE=xim
QT_IM_MODULE=xim
현재 ko_KR에 “QT_IM_MODULE=xim” 가 왜 안들어가 있는지 모르겠다.
% ls -al $HOME/.xinput.d/ko_KR
lrwxrwxrwx 1 x 28 2011-02-14 15:03 ko_KR /etc/X11/xinit/xinput.d/nabi












