예전에 정리 해놓은줄 알았는데 없길래 다시 정리.
Xming에서 특정 openGL이 제대로 안되서 부랴부랴 다시 찾는데
opengl의 advanced 소스중 일부가 아래와 같은 오류를 발생하며 실행되지 않는 문제가 있다.
이경우에는 cygwin/x로 하면 문제없이 해결된다.
(하지면 용량이 200메가에 ftp.daum.net은 폐쇄되었는지 안되고 -_- 결론은 받는데 한참걸림)
$ gcc -lglut -lGLU accumaa.c
$ ./a.out
freeglut (./a.out): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 4 (X_DestroyWindow)
Technical details: ssh tried to run xauth generate to create a untrusted cookie for the session, which failed because the server isn't compiled with the XCSECURITY extension built-in.
6.3. I'm confused about the difference between trusted and untrusted X11 forwarding. What does "Warning: untrusted X11 forwarding setup failed: xauth key data not generated" mean? Why is the SECURITY extension disabled?
The warning means that ssh is going to use trusted X11 forwarding because untrusted X11 forwarding depends on the security extension, which isn't built into the Xserver and has been disabled by default upstream.
Trusted X11 forwarding means that you trust the server that you wish to ssh into. The X server will allow remote clients to do whatever a local client would be able to do to your X session, for example, monitor your keypresses and take a screenshot. Such programs could be run by a malicious or compromised root user on the ssh server, or under your account if it was compromised on the ssh server.
So why is this disabled? Untrusted X11 forwarding was meant to be a way to allow logins to unknown or insecure systems. It generates a cookie with xauth and uses the security extension to limit what the remote client is allowed to do. But this is widely considered to be not useful, because the security extension uses an arbitrary and limited access control policy, which results in a lot of applications not working correctly and what is really a false sense of security. See this mail for more on the subject.
winehq faq에 의하면 다시 마운트 해서 하라는데, 그런다고 해서 CD 내용이 달라지는 것도 아닐테고..
그냥 복사해서 해봐야 할 듯?
6.2. I double-clicked on an .exe file, but the system said "The file foo.exe is not marked as executable..."
If the dialog says "Read about the executable bit", with a hyperlink, try clicking on the hyperlink and reading about the executable bit.
If the file is on your hard drive, right-click it, choose Properties / Permissions, and check "Allow executing file as program".
If the file is on a CD-ROM, you can run it from the commandline as described above. Or, if you know how to use 'mount', remount the cd-rom to mark all files as executable with a command like mount -o remount,mode=0777,exec /media/cdrom but using the real mount point if it's different from /media/cdrom.
sed -i 는 in-place의 약자로, 파일 자체의 내용을 바로 수정해 주는 옵션이다.
-e는 실행할 표현식을 기술하고
/^#include/ 는 #include 로 시작하는 줄을 찾고
s/original/replace/g 는 original 이라고 나오는 문자열을 한줄에 몇번이 나오던 replace로 교체를 해준다.
그리고 find -name 뒤에 오는 검색어는 pattern이므로 *.[ch] 로 *.c *.h 두가지 파일을 모두 검색하게 해준다.
find ./ -name "*.[ch]" -type f -exec sed -i -e '/^#include/s:\\:/:g' {} \;