'X11'에 해당되는 글 2건
[Ubuntu] X11 forwarding시에 인증 에러 해결법 :: 2009/09/16 16:13
ssh -X user@domain
위와 같은 명령어로 X11 forwarding이 가능하다. 하지만 간혹 인증 에러가 발생하는 경우가 있는데 이때의 해결책은 다음과 같다.
1. Make sure you are not running out of disk space
Run df and make sure you have sufficient disk space:$ df -H
If you are low on disk space remove unnecessary files from your system.
2. Make sure ~/.Xauthority owned by you
Run following command to find ownweship:
$ ls -l ~/.Xauthority
Run chown and chmod to fix permission problems
$ chown user:group ~/.Xauthority
$ chmod 0600 ~/.Xauthority
Replace user:group with your actual username and groupname.
3. Make sure X11 SSHD Forwarding Enabled
Make sure following line exists in sshd_config file:
$ grep X11Forwarding /etc/ssh/sshd_config
Sample output:
X11Forwarding yes
If X11 disabled add following line to sshd_cofing and restart ssh server:
X11Forwarding yes
4. Make sure X11 client forwarding enabled
Make sure your local ssh_config has following lines:Host *
ForwardX11 yes출처 : http://www.cyberciti.biz/faq/x11-connection-rejected-because-of-wrong-authentication/
QT/X11 설치 :: 2006/11/15 19:09
QT/X11의 간단한 설치법이다. 웹을 찾아서 정리한 내용이므로 틀리수도 있다.
버젼은 3.x를 기준으로 하였다.
2.x는 qmake가 없으므로 progen과 tmake를 가지고 컴파일을 해 주어야한다.
기본 폴더는 /qt에 qt-x11-free-3.3.7.tar.bz2 파일을 가지고 있다고 생각하고 시작을 해 준다.
1.파일의 복사
[root@localhost qt]# tar xjf qt-x11-free-3.3.7.tar.bz2 |
- 생성된 디렉토리의 이름을 바꾸어준다 (정해진것은 아니다.)
[root@localhost qt]# mv qt-x11-free-3.3.7 qte |
2.설정을 해준다.
[root@localhost qt]# vi qte.env |
QTDIR=/qt/qte
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH
:wq (저장하고 빠져나온다)
여기서 qte.env의 내용을 부팅시 적용하게 할수도 있지만,
그럴경우 readhat 9.0에서 로그인시에 쉘이 죽는 문제가 생길수도 있다.
3.설정을 적용한다.
[root@localhost qt]# cd qte |
4.configuration
[root@localhost qte]# ./configure |
라이센스를 물어보면 'yes'라고 입력한다.
5.컴파일
[root@localhost qte]# make |
컴파일을 하게 되며 시간이 걸린다.
6.설치
[root@localhost qte]# make install |
root가 아니라면 su -c "make install" 를 해준다.
7.설치가 완료 되었다.
----------------------------------------------------------------------
QT designer에서 만든 UI를 컴파일하기.
1.프로젝트 파일 생성
# qmake -project |
UI파일이 있는 폴더로 가서 qmake -project 를 실행해준다.
이 과정은 그 폴더에 있는 모든 파일을 이용해서 project파일을 만들어준다.
별도의 옵션을 주면 프로젝트에 추가할 파일만 설정할수 있지만 해보지 않아서 모르겠다.
2.Makefile생성
# qmake -makefile |
이것을 해 주면 project파일에 있는 파일을을 가지고 Makefile을 만들어준다.
3.컴파일
# make |
이것으로 컴파일이 완료된다.



