Search Results for 'Research/Linux'

81 POSTS

  1. 2012/05/03 nfs로 export된 디렉토리에 쓰지 못하는 경우
  2. 2012/04/18 PDF포맷으로 출력하기
  3. 2012/04/16 Enable Number pad NumLock at startup in Ubuntu Login Window
  4. 2012/04/12 우분투 - 이전 설치가 완료되지 못함.
  5. 2011/12/09 [리눅스] 배드섹터 검사
  6. 2010/03/09 리눅스에서 쓰레드 확인
  7. 2010/01/15 그놈 메인 메뉴 편집
  8. 2009/12/24 Makefile 알아두어야 할 사항
  9. 2009/12/15 단축키 만들기
  10. 2009/12/10 symbolic link 만들기/지우기
  11. 2009/11/24 glib-2.0 2.22.2 설치후 GTK+ configure시 에러
  12. 2009/11/23 [TRAC] ganttcalendarplugin for trac 0.10.x with 한글화
  13. 2009/11/12 (The user apache requires read _and_ write permission to the database file /temp/trac/mythSTB/db/trac.db and the directory it is located in.)
  14. 2009/08/24 TRAC: plugin uninstall
  15. 2009/08/21 TRAC: iniadminplugin 설치
  16. 2009/08/21 TRAC: Account Manager Plugins Enable 후 Internal Server Error
  17. 2009/08/21 TRAC: web admin이 나타나지 않는다...
  18. 2009/08/21 mythtv: pulseaudio
  19. 2009/08/19 QSqlDatabase: QMYSQL3 driver not loaded
  20. 2009/08/18 QT 4.5.2 설치하기
  21. 2009/08/18 /etc/profile.d/*.sh
  22. 2009/08/14 텔넷: getaddrinfo: localhost Name or service not
  23. 2009/08/13 rewrite mode on
  24. 2009/08/12 Fedora XDMCP 접속 설정
  25. 2009/08/12 Terminal Server Client에서 XDMCP 접속을 활성화 하기
  26. 2009/08/12 mysqld 설정
  27. 2009/08/12 제로보드 설치시 확인 할 사항
  28. 2009/08/11 Fedora 10 Enable GUI Root Login
  29. 2009/08/10 Fedora9에서 Logitech Marble Mouse(Tracball) wheel 사용하기
  30. 2009/07/31 TRAC: anonymous Default permission

/etc/exports 파일에서 해당 디렉토리 옵션에 no_root_squash 가 빠졌는지 확인!

저작자 표시 비영리 변경 금지

PDF포맷으로 출력하기

Posted 2012/04/18 10:37

cups-pdf만 설치하면 끝!


sudo apt-get install cups-pdf


저작자 표시 비영리 변경 금지

Install numlockx by this command in terminal(Applications/Accessories/Terminal):

sudo apt-get install numlockx

edit /etc/gdm/Init/Default with your favourite editor:

sudo gedit /etc/gdm/Init/Default

add following above the last line which says exit 0:

if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi


저작자 표시 비영리 변경 금지

 

위와 같이 나오면

$ sudo apt-get install -f
[sudo] password for sunny:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

위에서 시키는 대로 sudo dpkg --configure -a 를 실행


$ sudo dpkg --configure -a
kdebase-data (4:4.4.5-0ubuntu1.2) 설정하는 중입니다 ...

그런 후에 다시 sudo apt-get install -f 를 실행하면 이전에 중지 되었던 설치가 실행되면서 오류가 해결됨.

$ sudo apt-get install -f

 

 

[리눅스] 배드섹터 검사

Posted 2011/12/09 09:41
badblocks -v -o badblock.txt /dev/sda[번호]


리눅스에서 쓰레드 확인

Posted 2010/03/09 15:40

ps -eLf

'Research > Linux' 카테고리의 다른 글

우분투 - 이전 설치가 완료되지 못함.  (0) 2012/04/12
[리눅스] 배드섹터 검사  (0) 2011/12/09
리눅스에서 쓰레드 확인  (0) 2010/03/09
그놈 메인 메뉴 편집  (0) 2010/01/15
Makefile 알아두어야 할 사항  (0) 2009/12/24
단축키 만들기  (0) 2009/12/15

그놈 메인 메뉴 편집

Posted 2010/01/15 14:36

yum install alacarte

'Research > Linux' 카테고리의 다른 글

[리눅스] 배드섹터 검사  (0) 2011/12/09
리눅스에서 쓰레드 확인  (0) 2010/03/09
그놈 메인 메뉴 편집  (0) 2010/01/15
Makefile 알아두어야 할 사항  (0) 2009/12/24
단축키 만들기  (0) 2009/12/15
symbolic link 만들기/지우기  (0) 2009/12/10

Makefile 알아두어야 할 사항

Posted 2009/12/24 13:01

target: dependancy
     <TAB> command
     <TAB> command


위와 같이 <TAB>으로 구분되어 있으면 command가 실행될때 마다 다른 쉘이 떠서 수행됨.

따라서, 같은 쉘에서 동작시키기 위해서는 ";"로 구분해서 한줄로 써야 함.


@로 시작하면 화면에 명령자체를 에코하지 않는다.


기본적으로 command의 리턴값이 0이어야 다음 command가 수행되지만, '-' 로 시작하는 command는

리턴값을 무시하고 다음 command가 실행됨.

'Research > Linux' 카테고리의 다른 글

리눅스에서 쓰레드 확인  (0) 2010/03/09
그놈 메인 메뉴 편집  (0) 2010/01/15
Makefile 알아두어야 할 사항  (0) 2009/12/24
단축키 만들기  (0) 2009/12/15
symbolic link 만들기/지우기  (0) 2009/12/10
glib-2.0 2.22.2 설치후 GTK+ configure시 에러  (0) 2009/11/24

단축키 만들기

Posted 2009/12/15 11:21

http://www.howtogeek.com/howto/ubuntu/assign-custom-shortcut-keys-on-ubuntu-linux/


Ubuntu includes a very limited shortcut key configuration utility which doesn’t allow you to assign hotkeys to your own applications or scripts. To get around this limitation, we can use the built-in gconf-editor utility to assign them ourselves.

First you’ll want to load up gconf-editor by typing it into the Alt+F2 Run dialog.

Once in the application, navigate to the following key. If you are familiar with regedit on Windows, this is very similar.

apps metacity keybinding_commands

You’ll notice a bunch of values on the right. These are the available commands that you can create for assigning to shortcut keys in the next step.

Double-click on command_1 and enter in the full path to your script or executable that you are trying to run. (Note that you can use the which command from the shell to find the path most of the time)

 

Now navigate to the key “global_keybindings”, which is directly above the one we were on.

Here you will want to select run_command_1. Enter in the shortcut key in plain text. For instance, for Alt+T, you’ll do <Alt>T. You could use <Ctrl>T or <Alt><Ctrl>T, or whatever you want to assign to the key.

You can also create custom commands in the keybinding_commands and assign them in the global_keybindings if you want. Just remember that the keybindings will start with run_(name of command).

symbolic link 만들기/지우기

Posted 2009/12/10 10:24

만들기

ln -s (링크디렉토리/파일) (만들 심볼릭 링크)

 

 

지우기

rm (심볼릭 링크)

주의할 점은 심볼릭 링크가 만약 sym_link 라면, rm -r sym_link/ 로 하면 안됨.  / 를 붙이면 sym_link에 링크된 디렉토리를 지우기 때문이다.

따라서, 심볼릭 링크만 지우고자 한다면 rm sym_link 해야 함.

 

checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  af am ang ar as ast az az_IR be be@latin bg bn bn_IN br bs ca ca@valencia crh cs cy da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu hy ia id io is it ja ka kn ko ku li lt lv mai mi mk ml mn mr ms nb ne nl nn nso oc or pa pl ps pt pt_BR ro ru rw si sk sl sq sr sr@latin sr@ije sv ta te th tk tr tt uk ur uz uz@cyrillic vi wa xh yi zh_CN zh_HK zh_TW
checking for extra flags to get ANSI library prototypes... none needed
checking for the BeOS... no
checking for HP-UX... no
checking for extra flags for POSIX compliance... none needed
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.21.3...
*** 'pkg-config --modversion glib-2.0' returned 2.22.2, but GLIB (2.16.6)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.21.3 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.


glib-2.0 2.22.2 를 설치한 후 GTK+ 2.18.3을 설치하려고 ./configure를 실행했더니

위와 같은 에러를 뱉어내면서 진행이 되지 않는다...


LD_LIBRARY_PATH는 환경변수에 있지도 않고, /etc/ld.so.conf 파일을 뒤져봐도

glib에 관련된 내용은 없다.


문득 ldconfig나 함 해볼까 하고 했더니....!!!! 지나간다.... ㅜ.ㅠ



Trac 0.10.x 버전용 gantt plugin은 아래 저장소에서 받을 수 있다.

 svn co http://svn.sourceforge.jp/svnroot/shibuya-trac/plugins/ganttcalendarplugin/branches/0.10

 

일본어로 되있으므로 소스에서 일본어로 된 부분을 찾아  한글 또는 영어로 수정

--> 소스를 훑어보면 바꾸기는 그리 어렵지 않다. 또는 번역기를 이용하면 됨.

 

아래와 같이 설치

python setup.py bdist_egg

cd dist

easy_install TracGanttCalendarPlugin-0.1_r107-py.2.4.egg

 

설치 후에 trac.ini 파일에서 아래와 같이 수정/추가

 

[components]

    ganttcalendar.ticketcalendar.* = enabled

    ganttcalendar.ticketgantt.* = enabled

    datefield.filter.datefieldmodule = enabled


    [datefield]

    format = ymd

    separator = /


    [ticket-custom]

    complete = select

    complete.label = % Complete

    complete.options = 0|5|10|15|20|25|30|35|40|45|50|55|60|65|70|75|80|85|90|95|100

    complete.order = 3

    due_assign = text

    due_assign.label = Start (YYYY/MM/DD)

    due_assign.order = 1

    due_assign.date = true

    due_assign.date_empty = true

    due_close = text

    due_close.label = End (YYYY/MM/DD)

    due_close.order = 2

    due_close.date = true

    due_close.date_empty = true

 

 

첨부된 파일은 한글로 변경된 파일임.   

 

 

 

(The user apache requires read _and_ write permission to the database file /temp/trac/mythSTB/db/trac.db and the directory it is located in.)


trac에 Project를 하나 추가한뒤 접속했더니 위와 같은 오류가 발생

아래 명령으로 소유자를 수정한뒤 다시 접속했더니 정상적으로 접속.


chown -R apache.apache /home/Trac/Sample

TRAC: plugin uninstall

Posted 2009/08/24 10:22

설치되어 있는 TRAC 이 0.10.5 였다. 근데... TracTicketDelete를 설치 했는데... 아래 경로에서 설치 했다.

 

[root@sw1 ~]# easy_install http://trac-hacks.org/svn/ticketdeleteplugin/0.11
Downloading http://trac-hacks.org/svn/ticketdeleteplugin/0.11
Doing subversion checkout from http://trac-hacks.org/svn/ticketdeleteplugin/0.11 to /tmp/easy_install-PqX3xN/0.11
Processing 0.11
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-PqX3xN/0.11/egg-dist-tmp-y0pJqe
zip_safe flag not set; analyzing archive contents...
Adding TracTicketDelete 2.0 to easy-install.pth file

Installed /usr/lib/python2.5/site-packages/TracTicketDelete-2.0-py2.5.egg
Processing dependencies for TracTicketDelete==2.0
Finished processing dependencies for TracTicketDelete==2.0

위와 같이 설치를 한 후에, trac 페이지를 봤는데... 꿈쩍하지 않는다... admin 페이지에 가봐도 plugins 페이지에 가봐도...

trac.ini를 수정해봐도...

 

아무래도 0.11 이 맘에 걸려서 uninstall 후에 0.10 을 설치 해 보기로 했다...

 

근데... uninstall은 또 어케 하지

 

Uninstalling

easy_install or python setup.py does not have an uninstall feature. Hower, it is usually quite trivial to remove a globally installed egg and reference:

   1. Do easy_install -m [plugin name] to remove references from $PYTHONLIB/site-packages/easy-install.pth when the plugin installed by setuptools.
   2. Delete executables from /usr/bin, /usr/local/bin or C:\Python*Scripts. For search what executables are there, you may refer to [console-script] section of setup.py.
   3. Delete the .egg file or folder from where it is installed, usually inside $PYTHONLIB/site-packages/.
   4. Restart web server.

If you are uncertain about the location of the egg, here is a small tip to help locate an egg (or any package) - replace myplugin with whatever namespace the plugin uses (as used when enabling the plugin):

>>> import myplugin
>>> print myplugin.__file__
/opt/local/python24/lib/site-packages/myplugin-0.4.2-py2.4.egg/myplugin/__init__.pyc

 

쩝~ 그냥... .egg 파일을 찾아서 지우라는 얘긴가?

 

[root@sw1 ~]# easy_install -m /usr/lib/python2.5/site-packages/TracTicketDelete-2.0-py2.5.egg
Processing TracTicketDelete-2.0-py2.5.egg
Removing TracTicketDelete 2.0 from easy-install.pth file

Installed /usr/lib/python2.5/site-packages/TracTicketDelete-2.0-py2.5.egg

Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:

    pkg_resources.require("TracTicketDelete")  # latest installed version
    pkg_resources.require("TracTicketDelete==2.0")  # this exact version
    pkg_resources.require("TracTicketDelete>=2.0")  # this version or higher

Processing dependencies for TracTicketDelete==2.0
Finished processing dependencies for TracTicketDelete==2.0

 

어쨋든 egg 파일을 지우고 나서...

 

[root@sw1 ~]# easy_install http://trac-hacks.org/svn/ticketdeleteplugin/0.10
Downloading http://trac-hacks.org/svn/ticketdeleteplugin/0.10
Doing subversion checkout from http://trac-hacks.org/svn/ticketdeleteplugin/0.10 to /tmp/easy_install-kqA-e_/0.10
Processing 0.10
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-kqA-e_/0.10/egg-dist-tmp-5yhaYx
zip_safe flag not set; analyzing archive contents...
Adding TracTicketDelete 1.1.4 to easy-install.pth file

Installed /usr/lib/python2.5/site-packages/TracTicketDelete-1.1.4-py2.5.egg
Processing dependencies for TracTicketDelete==1.1.4
Finished processing dependencies for TracTicketDelete==1.1.4

위와 같이 0.10버전을 설치했더니 제대로 동작된다...

 

 

 

 

 

TRAC: iniadminplugin 설치

Posted 2009/08/21 20:42

 

[root@sw1 trac]# easy_install http://trac-hacks.org/svn/iniadminplugin/0.10/
Downloading http://trac-hacks.org/svn/iniadminplugin/0.10/
error: Download error for http://trac-hacks.org/svn/iniadminplugin/0.10/: (-2, 'Name or service not known')
[root@sw1 trac]# easy_install http://trac-hacks.org/svn/iniadminplugin/0.10
Downloading http://trac-hacks.org/svn/iniadminplugin/0.10
Doing subversion checkout from http://trac-hacks.org/svn/iniadminplugin/0.10 to /tmp/easy_install-jaKgnk/0.10
Processing 0.10
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-jaKgnk/0.10/egg-dist-tmp-zsfeLM
zip_safe flag not set; analyzing archive contents...
Adding IniAdmin 0.1 to easy-install.pth file

Installed /usr/lib/python2.5/site-packages/IniAdmin-0.1-py2.5.egg
Processing dependencies for IniAdmin==0.1
Finished processing dependencies for IniAdmin==0.1
[root@sw1 trac]# service httpd restart
httpd 를 정지 중:                                          [  OK  ]
httpd (을)를 시작합니다:                                   [  OK  ]
[root@sw1 trac]#

 

이렇게 하고 접속했더니.... Webadmin에서 General-plugins 항목에는 IniAdmin 0.1 이라고 뜬다.

그래서 체크하고 apply 했는데도, 왼쪽에 trac.ini 라는 메뉴가 생기지 않는다.

그래서 plugin인 설치된 디렉토리를 훑어 봤다....


[root@sw1 trac]# ll /usr/lib/python2.5/site-packages/
합계 1104
drwxr-xr-x  2 root root   4096 2009-08-12 02:15 Alacarte
drwxr-xr-x  2 root root   4096 2009-08-12 02:09 BitTorrent
-rw-r--r--  1 root root    238 2008-08-21 07:00 BitTorrent-4.4.0-py2.5.egg-info
-rw-r--r--  1 root root   5735 2009-08-21 19:52 IniAdmin-0.1-py2.5.egg
drwxr-xr-x 12 root root   4096 2009-08-11 18:57 OpenGL
-rw-r--r--  1 root root    296 2008-06-14 15:48 Paste-1.7.1-py2.5-nspkg.pth
drwxr-xr-x  2 root root   4096 2009-08-12 02:08 Paste-1.7.1-py2.5.egg-info
-rw-r--r--  1 root root    683 2009-01-02 10:27 PyOpenGL-3.0.0b8-py2.5.egg-info
-rw-r--r--  1 root root    439 2008-01-08 09:07 Reportlab-2.1-py2.5.egg-info
-rw-r--r--  1 root root  39304 2009-08-12 17:40 TracAccountManager-0.1.3dev_r5273-py2.5.egg
drwxr-xr-x  2 root root   4096 2009-08-12 17:34 TracWebAdmin-0.1.2dev_r4429-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 avahi
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 avahi_discover
drwxr-xr-x  2 root root   4096 2009-08-11 19:14 createrepo
drwxr-xr-x  2 root root   4096 2009-08-11 19:16 cupshelpers
-rw-r--r--  1 root root    231 2009-03-26 03:55 cupshelpers-1.0-py2.5.egg-info
drwxr-xr-x  3 root root   4096 2009-08-12 02:07 dbus
-rw-r--r--  1 root root     33 2008-09-17 00:35 dbus_bindings.py
-rw-r--r--  2 root root    185 2008-09-17 00:35 dbus_bindings.pyc
-rw-r--r--  2 root root    185 2008-09-17 00:35 dbus_bindings.pyo
-rw-r--r--  1 root root    285 2009-08-21 19:52 easy-install.pth
drwxr-xr-x  7 root root   4096 2009-08-11 19:10 glchess
drwxr-xr-x  3 root root   4096 2009-08-11 19:10 gnome_sudoku
drwxr-xr-x  2 root root   4096 2009-08-11 18:56 iniparse
-rw-r--r--  1 root root   1085 2008-12-07 16:05 iniparse-0.2.4-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 invest
drwxr-xr-x  2 root root   4096 2009-08-12 02:09 khashmir
drwxr-xr-x  2 root root   4096 2009-08-11 19:18 packagekit
drwxr-xr-x  7 root root   4096 2009-08-12 02:08 paste
-rw-r--r--  1 root root  83956 2008-11-24 05:15 pkg_resources.py
-rw-r--r--  2 root root  89701 2008-11-24 05:15 pkg_resources.pyc
-rw-r--r--  2 root root  89701 2008-11-24 05:15 pkg_resources.pyo
drwxr-xr-x  3 root root   4096 2009-08-11 19:14 preupgrade
drwxr-xr-x 10 root root   4096 2009-08-12 02:08 reportlab
drwxr-xr-x  2 root root   4096 2009-08-11 19:03 rpmUtils
drwxr-xr-x  4 root root   4096 2009-08-12 19:01 scsamba
-rw-r--r--  1 root root    182 2009-05-28 18:53 scsamba-1.2.76-py2.5.egg-info
-rw-r--r--  1 root root    187 2009-05-28 18:53 scsamba.dbus-1.2.76-py2.5.egg-info
drwxr-xr-x  4 root root   4096 2009-08-11 19:16 scservices
-rw-r--r--  1 root root    186 2008-12-10 22:59 scservices-0.99.28-py2.5.egg-info
-rw-r--r--  1 root root    191 2008-12-10 22:59 scservices.dbus-0.99.28-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:18 setroubleshoot
drwxr-xr-x  3 root root   4096 2009-08-11 18:56 setuptools
-rw-r--r--  1 root root 328025 2009-08-12 17:38 setuptools-0.6c9-py2.5.egg
drwxr-xr-x  2 root root   4096 2009-08-11 18:56 setuptools-0.6c9-py2.5.egg-info
-rw-r--r--  1 root root     29 2009-08-12 17:38 setuptools.pth
-rw-r--r--  1 root root   2362 2008-11-24 05:15 site.py
-rw-r--r--  2 root root   1771 2008-11-24 05:15 site.pyc
-rw-r--r--  2 root root   1771 2008-11-24 05:15 site.pyo
drwxr-xr-x  5 root root   4096 2009-08-12 02:08 slip
-rw-r--r--  1 root root    179 2008-10-16 00:02 slip-0.1.15-py2.5.egg-info
-rw-r--r--  1 root root    184 2008-10-16 00:02 slip.dbus-0.1.15-py2.5.egg-info
-rw-r--r--  1 root root    183 2008-10-16 00:02 slip.gtk-0.1.15-py2.5.egg-info
drwxr-xr-x  3 root root   4096 2009-08-11 19:00 sos
-rw-r--r--  1 root root    221 2009-07-24 01:06 sos-1.8-py2.5.egg-info
drwxr-xr-x 11 root root   4096 2009-08-12 15:17 trac
-rw-r--r--  1 root root    538 2008-06-23 12:11 trac-0.10.5-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-12 02:08 urlgrabber
-rw-r--r--  1 root root   2232 2008-10-15 13:14 urlgrabber-3.0.0-py2.5.egg-info
drwxr-xr-x  4 root root   4096 2009-08-12 17:34 webadmin
-rw-r--r--  1 root root  10189 2009-05-22 19:47 wireshark_be.py
-rw-r--r--  2 root root   6197 2009-05-22 19:47 wireshark_be.pyc
-rw-r--r--  2 root root   6197 2009-05-22 19:47 wireshark_be.pyo
-rw-r--r--  1 root root  77873 2009-05-22 19:47 wireshark_gen.py
-rw-r--r--  2 root root  53800 2009-05-22 19:47 wireshark_gen.pyc
-rw-r--r--  2 root root  53800 2009-05-22 19:47 wireshark_gen.pyo
drwxr-xr-x  2 root root   4096 2009-08-11 19:03 yum
drwxr-xr-x  2 root root   4096 2009-08-11 18:39 yumgui

 

그리고 다시 plugin을 받아봤다...


[root@sw1 trac]# easy_install http://trac-hacks.org/svn/iniadminplugin/0.10
Downloading http://trac-hacks.org/svn/iniadminplugin/0.10
Doing subversion checkout from http://trac-hacks.org/svn/iniadminplugin/0.10 to /tmp/easy_install-x-pfuv/0.10
Processing 0.10
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-x-pfuv/0.10/egg-dist-tmp-ODfh6s
zip_safe flag not set; analyzing archive contents...
IniAdmin 0.1 is already the active version in easy-install.pth

Installed /usr/lib/python2.5/site-packages/IniAdmin-0.1-py2.5.egg
Processing dependencies for IniAdmin==0.1
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 1671, in main
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 1659, in with_ei_usage
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 1675, in <lambda>
  File "/usr/lib64/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 211, in run
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 422, in easy_install
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 478, in install_item
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 519, in process_distribution
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 529, in resolve
    requirements.extend(dist.requires(req.extras)[::-1])
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2108, in requires
    dm = self._dep_map
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2100, in _dep_map
    for extra,reqs in split_sections(self._get_metadata(name)):
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2519, in split_sections
    for line in yield_lines(s):
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1813, in yield_lines
    for ss in strs:
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2122, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1140, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1137, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1197, in _get
    return self.loader.get_data(path)
zipimport.ZipImportError: bad local file header in /usr/lib/python2.5/site-packages/IniAdmin-0.1-py2.5.egg

 

에러가 뜬다... 그래서 다시 시도...


[root@sw1 trac]# easy_install http://trac-hacks.org/svn/iniadminplugin/0.10/
Downloading http://trac-hacks.org/svn/iniadminplugin/0.10/
Doing subversion checkout from http://trac-hacks.org/svn/iniadminplugin/0.10/ to /tmp/easy_install-ejUJVQ/0.10
Processing 0.10
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-ejUJVQ/0.10/egg-dist-tmp-0GrDAp
zip_safe flag not set; analyzing archive contents...
IniAdmin 0.1 is already the active version in easy-install.pth

Installed /usr/lib/python2.5/site-packages/IniAdmin-0.1-py2.5.egg
Processing dependencies for IniAdmin==0.1
Finished processing dependencies for IniAdmin==0.1

 

이번엔 성공....

 

다시 디렉토리를 살펴봄...

 

[root@sw1 trac]# ll /usr/lib/python2.5/site-packages/
합계 1104
drwxr-xr-x  2 root root   4096 2009-08-12 02:15 Alacarte
drwxr-xr-x  2 root root   4096 2009-08-12 02:09 BitTorrent
-rw-r--r--  1 root root    238 2008-08-21 07:00 BitTorrent-4.4.0-py2.5.egg-info
-rw-r--r--  1 root root   5736 2009-08-21 20:31 IniAdmin-0.1-py2.5.egg
drwxr-xr-x 12 root root   4096 2009-08-11 18:57 OpenGL
-rw-r--r--  1 root root    296 2008-06-14 15:48 Paste-1.7.1-py2.5-nspkg.pth
drwxr-xr-x  2 root root   4096 2009-08-12 02:08 Paste-1.7.1-py2.5.egg-info
-rw-r--r--  1 root root    683 2009-01-02 10:27 PyOpenGL-3.0.0b8-py2.5.egg-info
-rw-r--r--  1 root root    439 2008-01-08 09:07 Reportlab-2.1-py2.5.egg-info
-rw-r--r--  1 root root  39304 2009-08-12 17:40 TracAccountManager-0.1.3dev_r5273-py2.5.egg
drwxr-xr-x  2 root root   4096 2009-08-12 17:34 TracWebAdmin-0.1.2dev_r4429-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 avahi
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 avahi_discover
drwxr-xr-x  2 root root   4096 2009-08-11 19:14 createrepo
drwxr-xr-x  2 root root   4096 2009-08-11 19:16 cupshelpers
-rw-r--r--  1 root root    231 2009-03-26 03:55 cupshelpers-1.0-py2.5.egg-info
drwxr-xr-x  3 root root   4096 2009-08-12 02:07 dbus
-rw-r--r--  1 root root     33 2008-09-17 00:35 dbus_bindings.py
-rw-r--r--  2 root root    185 2008-09-17 00:35 dbus_bindings.pyc
-rw-r--r--  2 root root    185 2008-09-17 00:35 dbus_bindings.pyo
-rw-r--r--  1 root root    285 2009-08-21 19:52 easy-install.pth
drwxr-xr-x  7 root root   4096 2009-08-11 19:10 glchess
drwxr-xr-x  3 root root   4096 2009-08-11 19:10 gnome_sudoku
drwxr-xr-x  2 root root   4096 2009-08-11 18:56 iniparse
-rw-r--r--  1 root root   1085 2008-12-07 16:05 iniparse-0.2.4-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 invest
drwxr-xr-x  2 root root   4096 2009-08-12 02:09 khashmir
drwxr-xr-x  2 root root   4096 2009-08-11 19:18 packagekit
drwxr-xr-x  7 root root   4096 2009-08-12 02:08 paste
-rw-r--r--  1 root root  83956 2008-11-24 05:15 pkg_resources.py
-rw-r--r--  2 root root  89701 2008-11-24 05:15 pkg_resources.pyc
-rw-r--r--  2 root root  89701 2008-11-24 05:15 pkg_resources.pyo
drwxr-xr-x  3 root root   4096 2009-08-11 19:14 preupgrade
drwxr-xr-x 10 root root   4096 2009-08-12 02:08 reportlab
drwxr-xr-x  2 root root   4096 2009-08-11 19:03 rpmUtils
drwxr-xr-x  4 root root   4096 2009-08-12 19:01 scsamba
-rw-r--r--  1 root root    182 2009-05-28 18:53 scsamba-1.2.76-py2.5.egg-info
-rw-r--r--  1 root root    187 2009-05-28 18:53 scsamba.dbus-1.2.76-py2.5.egg-info
drwxr-xr-x  4 root root   4096 2009-08-11 19:16 scservices
-rw-r--r--  1 root root    186 2008-12-10 22:59 scservices-0.99.28-py2.5.egg-info
-rw-r--r--  1 root root    191 2008-12-10 22:59 scservices.dbus-0.99.28-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:18 setroubleshoot
drwxr-xr-x  3 root root   4096 2009-08-11 18:56 setuptools
-rw-r--r--  1 root root 328025 2009-08-12 17:38 setuptools-0.6c9-py2.5.egg
drwxr-xr-x  2 root root   4096 2009-08-11 18:56 setuptools-0.6c9-py2.5.egg-info
-rw-r--r--  1 root root     29 2009-08-12 17:38 setuptools.pth
-rw-r--r--  1 root root   2362 2008-11-24 05:15 site.py
-rw-r--r--  2 root root   1771 2008-11-24 05:15 site.pyc
-rw-r--r--  2 root root   1771 2008-11-24 05:15 site.pyo
drwxr-xr-x  5 root root   4096 2009-08-12 02:08 slip
-rw-r--r--  1 root root    179 2008-10-16 00:02 slip-0.1.15-py2.5.egg-info
-rw-r--r--  1 root root    184 2008-10-16 00:02 slip.dbus-0.1.15-py2.5.egg-info
-rw-r--r--  1 root root    183 2008-10-16 00:02 slip.gtk-0.1.15-py2.5.egg-info
drwxr-xr-x  3 root root   4096 2009-08-11 19:00 sos
-rw-r--r--  1 root root    221 2009-07-24 01:06 sos-1.8-py2.5.egg-info
drwxr-xr-x 11 root root   4096 2009-08-12 15:17 trac
-rw-r--r--  1 root root    538 2008-06-23 12:11 trac-0.10.5-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-12 02:08 urlgrabber
-rw-r--r--  1 root root   2232 2008-10-15 13:14 urlgrabber-3.0.0-py2.5.egg-info
drwxr-xr-x  4 root root   4096 2009-08-12 17:34 webadmin
-rw-r--r--  1 root root  10189 2009-05-22 19:47 wireshark_be.py
-rw-r--r--  2 root root   6197 2009-05-22 19:47 wireshark_be.pyc
-rw-r--r--  2 root root   6197 2009-05-22 19:47 wireshark_be.pyo
-rw-r--r--  1 root root  77873 2009-05-22 19:47 wireshark_gen.py
-rw-r--r--  2 root root  53800 2009-05-22 19:47 wireshark_gen.pyc
-rw-r--r--  2 root root  53800 2009-05-22 19:47 wireshark_gen.pyo
drwxr-xr-x  2 root root   4096 2009-08-11 19:03 yum
drwxr-xr-x  2 root root   4096 2009-08-11 18:39 yumgui

 

어라... 1 바이트가 늘어났네????

음... 다시 실행해보자...


[root@sw1 trac]# service httpd restart
httpd 를 정지 중:                                          [  OK  ]
httpd (을)를 시작합니다:   

 

어랏~ 된다.... 쩝~   1 바이트 모야?????

 

Array

 

위와 같이 에러가 나서 httpd 를 restart 했더니 정상적으로 동작

 

service httpd restart

'Research > Linux' 카테고리의 다른 글

TRAC: plugin uninstall  (0) 2009/08/24
TRAC: iniadminplugin 설치  (0) 2009/08/21
TRAC: Account Manager Plugins Enable 후 Internal Server Error  (0) 2009/08/21
TRAC: web admin이 나타나지 않는다...  (0) 2009/08/21
mythtv: pulseaudio  (0) 2009/08/21
QSqlDatabase: QMYSQL3 driver not loaded  (0) 2009/08/19

새로운 프로젝트를 하나 추가한 후에 trac.ini 파일에 아래와 같이 설정했는데도

trac project 화면에서 admin 탭이 나타나지 않는다.

 

[components]

webadmin.* = enabled

 

이유를 살펴보니... 프로젝트에 TRAC_ADMIN 권한을 주지 않아서 그런거 였음.

아래와 같이 해당 프로젝트에 TRAC_ADMIN 권한을 줘야 함.

 

[root@sw1 trac]# trac-admin ./test_project/
Welcome to trac-admin 0.10.5
Interactive Trac administration console.
Copyright (c) 2003-2006 Edgewall Software

Type:  '?' or 'help' for help on commands.

Trac [/trac/test_project]> permission add admin TRAC_ADMIN

 

 

'Research > Linux' 카테고리의 다른 글

TRAC: iniadminplugin 설치  (0) 2009/08/21
TRAC: Account Manager Plugins Enable 후 Internal Server Error  (0) 2009/08/21
TRAC: web admin이 나타나지 않는다...  (0) 2009/08/21
mythtv: pulseaudio  (0) 2009/08/21
QSqlDatabase: QMYSQL3 driver not loaded  (0) 2009/08/19
QT 4.5.2 설치하기  (0) 2009/08/18

mythtv: pulseaudio

Posted 2009/08/21 13:36

mythfrontend를 실행했더니 아래와 같은  에러 메시지를 출력하면서 실행이 되지 않음. 

 

mythtv[at]DVR01:~$ mythfrontend
2009-06-21 21:27:45.714 mythfrontend version: trunk [20731M] www.mythtv.org
2009-06-21 21:27:45.728 ERROR: ***Pulse Audio is running!!!!***
2009-06-21 21:27:45.728 ERROR: But MythTV has not been compiled with Pulse

 

configure 실행 후 config.ep를 분석해 본 결과 아래와 같이 audio_pulse 관련 라이브러리가 설치되지 않은 거 같음.

check_lib pulse/version.h pa_get_library_version -lpulse
check_header pulse/version.h
check_cpp
BEGIN /tmp/mythtv_conf.IE09PfjK.c
    1   #include <pulse/version.h>
    2   int x;
END /tmp/mythtv_conf.IE09PfjK.c
gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -fomit-frame-pointer -E -o /tmp/mythtv_conf.iVh83j17.o /tmp/mythtv_conf.IE09PfjK.c
/tmp/mythtv_conf.IE09PfjK.c:1:27: error: pulse/version.h: No such file or directory

 

pulseaudio-libs-devel 을 설치

 

Array

 

위와 같이 설치후에 configure를 다시 실행하면 아래와 같이 "PulseAudio support"가 "no" 에서 "yes"로 변경된다.

 

[root@localhost mythtv]# ./configure
# Basic Settings
Compile type              release
Compiler cache            symlink gcc
DistCC                    no
qmake                     /usr/local/Trolltech/Qt-4.5.2/bin/qmake
install prefix            /usr/local
runtime prefix            /usr/local
CPU                       x86 x86_32 (model name : Intel(R) Core(TM)2 CPU         E8400  @ 3.00GHz)
big-endian                no
runtime cpu detection     no
yasm                      no
MMX enabled               yes
MMX2 enabled              yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
CMOV enabled              yes
CMOV is fast              no

# Input Support
Joystick menu             yes
lirc support              yes
Video4Linux sup.          yes
ivtv support              yes
HR-PVR support            yes
FireWire support          no
DVB support               yes [/usr/include]
DVB-S2 support            no
HDHomeRun support         yes
IPTV support              yes

# Sound Output Support
PulseAudio support        yes
OSS support               yes
ALSA support              yes
aRts support              yes
JACK support              no
libfftw3 support          no

# Video Output Support
x11 support               yes
xrandr support            yes
xv support                yes
XvMC support              yes
XvMC VLD support          yes
XvMC pro support          no
XvMC libs                 -lXvMCW
VDPAU support             yes
OpenGL video              yes
OpenGL vsync              yes
DirectFB                  yes
Fribidi formatting        yes
MHEG support              yes

# Misc Features
multi threaded libavcodec yes
Frontend                  yes
Backend                   yes

# Bindings
bindings_perl             yes
bindings_python           yes

Creating libs/libmythdb/mythconfig.h and libs/libmythdb/mythconfig.mak
yes

[root@localhost mythtv]#

 

'Research > Linux' 카테고리의 다른 글

TRAC: Account Manager Plugins Enable 후 Internal Server Error  (0) 2009/08/21
TRAC: web admin이 나타나지 않는다...  (0) 2009/08/21
mythtv: pulseaudio  (0) 2009/08/21
QSqlDatabase: QMYSQL3 driver not loaded  (0) 2009/08/19
QT 4.5.2 설치하기  (0) 2009/08/18
/etc/profile.d/*.sh  (0) 2009/08/18

QSqlDatabase: QMYSQL3 driver not loaded

Posted 2009/08/19 19:43

 mythtv 0.22 버전을 컴파일 한 후 mythtv-setup을 실행했더니... 아래와 같이 에러가 발생함.

 

[root@localhost bin]# ./mythtv-setup
2009-08-19 15:43:31.391 Using runtime prefix = /usr/local/mythtv
2009-08-19 15:43:31.391 Empty LocalHostName.
2009-08-19 15:43:31.391 Using localhost value of localhost.localdomain
QSqlDatabase: QMYSQL3 driver not loaded
QSqlDatabase: available drivers: QSQLITE
2009-08-19 15:43:31.392 Unable to init db connection.
2009-08-19 15:43:31.393 New DB connection, total: 1

 

그래서 구글링 결과 qt를 설치할때 configure에서 따로 해줘야 하는 거 같음.

 

qt 설치 디렉토리에서 make uninstall 하고 make confclean 해 준 후에.... (INSTALL 문서 참조) 

 

[root@localhost qt]# ./configure -qt-sql-mysql -qt-sql-sqlite -plugin-sql-mysql -plugin-sql-sqlite 로 실행 했더니...

 

마지막에 아래처럼 에러가 나오네....

g++ -o "/opt/qtsdk-2009.03/qt/bin/qmake" project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o option.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_dsp.o msvc_vcproj.o msvc_nmake.o msvc_objectmodel.o qstring.o qtextstream.o qiodevice.o qmalloc.o qglobal.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlistdata.o qfile.o qfsfileengine_unix.o qfsfileengine_iterator_unix.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlinkedlist.o qurl.o qnumeric.o qcryptographichash.o qscriptasm.o qscriptast.o qscriptastvisitor.o qscriptcompiler.o qscriptecmaarray.o qscriptecmaboolean.o qscriptecmacore.o qscriptecmadate.o qscriptecmafunction.o qscriptecmaglobal.o qscriptecmamath.o qscriptecmanumber.o qscriptecmaobject.o qscriptecmaregexp.o qscriptecmastring.o qscriptecmaerror.o qscriptcontext_p.o qscriptengine.o qscriptengine_p.o qscriptextenumeration.o qscriptextvariant.o qscriptcontext.o qscriptfunction.o qscriptgrammar.o qscriptlexer.o qscriptclassdata.o qscriptparser.o qscriptprettypretty.o qscriptsyntaxchecker.o qscriptvalue.o qscriptvalueimpl.o qscriptvalueiterator.o qscriptvalueiteratorimpl.o qscriptclass.o qscriptclasspropertyiterator.o qscriptengineagent.o qscriptcontextinfo.o qscriptstring.o 
MySQL support cannot be enabled due to functionality tests!
 Turn on verbose messaging (-v) to ./configure to see the final report.
 If you believe this message is in error you may use the continue
 switch (-continue) to ./configure to continue.
[root@localhost qt]#

그래서 -v 옵션을 넣고 다시 configure를 했다. 그랬더니....

 

DB2 auto-detection... ()
g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -o db2.o db2.cpp
db2.cpp:1:20: error: sqlcli.h: 그런 파일이나 디렉토리가 없습니다
db2.cpp:2:21: error: sqlcli1.h: 그런 파일이나 디렉토리가 없습니다
make: *** [db2.o] 오류 1
DB2 disabled.
InterBase auto-detection... ()
g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -o ibase.o ibase.cpp
ibase.cpp:1:19: error: ibase.h: 그런 파일이나 디렉토리가 없습니다
make: *** [ibase.o] 오류 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/mysql -o mysql.o ../mysql/mysql.cpp
../mysql/mysql.cpp:1:19: error: mysql.h: 그런 파일이나 디렉토리가 없습니다
make: *** [mysql.o] 오류 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/mysql -o mysql.o mysql.cpp
mysql.cpp:1:19: error: mysql.h: 그런 파일이나 디렉토리가 없습니다
make: *** [mysql.o] 오류 1
MySQL (thread-unsafe) disabled.
MySQL support cannot be enabled due to functionality tests!
 Turn on verbose messaging (-v) to ./configure to see the final report.
 If you believe this message is in error you may use the continue
 switch (-continue) to ./configure to continue.
[root@localhost qt]#

구글링을 해보니 mysql-devel 이 깔리지가 않아서 그런거 같다...

 

그래서 yumex 로 mysql-devel을 설치했더니... configure가 에러 없이 진행된다....

 

 

'Research > Linux' 카테고리의 다른 글

TRAC: web admin이 나타나지 않는다...  (0) 2009/08/21
mythtv: pulseaudio  (0) 2009/08/21
QSqlDatabase: QMYSQL3 driver not loaded  (0) 2009/08/19
QT 4.5.2 설치하기  (0) 2009/08/18
/etc/profile.d/*.sh  (0) 2009/08/18
텔넷: getaddrinfo: localhost Name or service not  (0) 2009/08/14

QT 4.5.2 설치하기

Posted 2009/08/18 20:00

http://qt.nokia.com/downloads 에서 Choose LGPL/Free를 선택하고 Download Qt SDK for Linux/X11 32-bit** (275Mb)를 다운받는다.

 

Qt SDK for Open Source C++ development on Linux/X11 32-bit

If download doesn't start automatically,

click: http://download.qt.nokia.com/qtsdk/qt-sdk-linux-x86-opensource-2009.03.1.bin

On Linux/Unix, you need to make the file executable in order to run it. You can either do this with your desktop's file manager or, at the command line, type:

chmod u+x qt-sdk-linux-x86-opensource-2009.03.bin

You should now be able to execute the file as normal. You can do this from the command line by typing:

./qt-sdk-linux-x86-opensource-2009.03.bin

 

위에서 처럼 실행하면 아래 그림과 같은 셋업이 실행된다.

 

Screen-QT4.5.2Setup.png

 

위와 같이 실행을 한 후에 /opt/qtsdk-2009.03 디렉토리가 생기는 데, 설치가 끝난것이 아니라 본격적인 설치는 이제부터다...

자세한 설치 프로세스는 /opt/qtsdk-2009.03/qt/INSTALL 파일을 살펴보면 나온다.

 

[root@localhost qt]# ./configure
Which edition of Qt do you want to use ?

Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.

o


This is the Qt/X11 Open Source Edition.

You are licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.
You are also licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.

Type '3' to view the GNU General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake. Please wait...
g++ -c -o project.o -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/opt/qtsdk-2009.03/qt/include -I/opt/qtsdk-2009.03/qt/include/QtCore -I/opt/qtsdk-2009.03/qt/src/corelib/global -I/opt/qtsdk-2009.03/qt/src/script -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  project.cpp
g++ -c -o property.o -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/opt/qtsdk-2009.03/qt/include -I/opt/qtsdk-2009.03/qt/include/QtCore -I/opt/qtsdk-2009.03/qt/src/corelib/global -I/opt/qtsdk-2009.03/qt/src/script -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/opt/qtsdk-2009.03/qt/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  property.cpp
............................. 생략..........................

 

  for /opt/qtsdk-2009.03/qt/examples/script/customclass/customclass.pro
  for /opt/qtsdk-2009.03/qt/examples/script/context2d/context2d.pro

Qt is now configured for building. Just run 'gmake'.
Once everything is built, you must run 'gmake install'.
Qt will be installed into /usr/local/Trolltech/Qt-4.5.2

To reconfigure, run 'gmake confclean' and 'configure'.

[root@localhost qt]#

 

configure를 했으면 make 를 하고 make install을 하면 설치가 완료된다.

 

'Research > Linux' 카테고리의 다른 글

mythtv: pulseaudio  (0) 2009/08/21
QSqlDatabase: QMYSQL3 driver not loaded  (0) 2009/08/19
QT 4.5.2 설치하기  (0) 2009/08/18
/etc/profile.d/*.sh  (0) 2009/08/18
텔넷: getaddrinfo: localhost Name or service not  (0) 2009/08/14
rewrite mode on  (0) 2009/08/13

/etc/profile.d/*.sh

Posted 2009/08/18 17:56

Fedora 9

 

QTDIR,QTLIB,QTINC 등의 variable이 어디서 설정되는 지 살펴봄.

 

~/.bash_profile 을 보면 아래와 같은 내용이 있다. 

if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

 

~/.bashrc 파일을 보면 아래와 같은 내용이 있다.

 

if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi
 

/etc/bashrc 파일을 보면 아래와 같은 내용이 있다.

 

if ! shopt -q login_shell ; then # We're not a login shell
    # Need to redefine pathmunge, it get's undefined at the end of /etc/profile
    pathmunge () {
        if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
            if [ "$2" = "after" ] ; then
                PATH=$PATH:$1
            else
                PATH=$1:$PATH
            fi
        fi
    }

    # Only run profile.d scripts if we are no login shell and interactive
    if [ "$PS1" ]; then
        for i in /etc/profile.d/*.sh; do
            if [ -r "$i" ]; then
                . $i
            fi
        done
    fi
    unset i
    unset pathmunge
fi
# vim

 

그래서 /etc/profile.d/ 디렉토리를 살펴보니 많은 *.sh 파일들이 눈에 띄고 그 중에 qt.sh 파일도 있었다. 내용은 다음과 같다.

 

if [ -z "${QTDIR}" ]; then

case `uname -m` in
   x86_64 | ia64 | s390 )
      QT_PREFIXES="/usr/lib64/qt-3.3 /usr/lib/qt-3.3" ;;
   * )
      QT_PREFIXES="/usr/lib/qt-3.3 /usr/lib64/qt-3.3" ;;
esac

for QTDIR in ${QT_PREFIXES} ; do
  test -d "${QTDIR}" && break
done
unset QT_PREFIXES

if ! echo ${PATH} | /bin/grep -q $QTDIR/bin ; then
   PATH=$QTDIR/bin:${PATH}
fi

QTINC="$QTDIR/include"
QTLIB="$QTDIR/lib"

export QTDIR QTINC QTLIB PATH

fi
     

 

그래서 위의 qt.sh 파일을 없애면 QTINC, QTDIR, QTLIB 등의 변수 export가 되지 않는다. 

 

 

 

'Research > Linux' 카테고리의 다른 글

QSqlDatabase: QMYSQL3 driver not loaded  (0) 2009/08/19
QT 4.5.2 설치하기  (0) 2009/08/18
/etc/profile.d/*.sh  (0) 2009/08/18
텔넷: getaddrinfo: localhost Name or service not  (0) 2009/08/14
rewrite mode on  (0) 2009/08/13
Fedora XDMCP 접속 설정  (0) 2009/08/12

 

telnet 127.0.0.1
Trying 127.0.0.1...                                                                                                                
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.                                                                                                          
getaddrinfo: localhost Name or service not known                                                                

Connection closed by foreign host.                                                                                                 
                  

 

 

아마도 이런 문제가 일어나기 이전에 호스트네임을 변경했을 경우가 있을 것이다.

hosts 명령어로 호스트네임을 확인한 후, /etc/host 파일에 "127.0.0.1 호스트네임" 을 입력해준다.

다시 텔넷접속하면 성공...


'Research > Linux' 카테고리의 다른 글

QT 4.5.2 설치하기  (0) 2009/08/18
/etc/profile.d/*.sh  (0) 2009/08/18
텔넷: getaddrinfo: localhost Name or service not  (0) 2009/08/14
rewrite mode on  (0) 2009/08/13
Fedora XDMCP 접속 설정  (0) 2009/08/12
Terminal Server Client에서 XDMCP 접속을 활성화 하기  (0) 2009/08/12

rewrite mode on

Posted 2009/08/13 11:04

제로보드를 사용하는 경우 rewrite mode를 사용하기 위해서는 httpd.conf의 초기 설정을 수정해야 한다.



httpd.conf 파일에 mod_rewrite의 로딩이 포함되어야 한다.
예: LoadModule rewrite_module modules/mod_rewrite.so


디렉토리에 대한 Options 항목에 FollowSymLinks가 포함되거나 All이어야 합니다.
<Directory />
  Options FollowSymLinks
  AllowOverride FileInfo
</Directory>



<Directory "/var/www/html">
  Options Indexes FollowSymLinks
  AllowOverride FileInfo
</Directory>


설정 후에 httpd 을 restart한다.


'Research > Linux' 카테고리의 다른 글

/etc/profile.d/*.sh  (0) 2009/08/18
텔넷: getaddrinfo: localhost Name or service not  (0) 2009/08/14
rewrite mode on  (0) 2009/08/13
Fedora XDMCP 접속 설정  (0) 2009/08/12
Terminal Server Client에서 XDMCP 접속을 활성화 하기  (0) 2009/08/12
mysqld 설정  (0) 2009/08/12

Fedora XDMCP 접속 설정

Posted 2009/08/12 15:02

/etc/gdm/custom.conf 을 아래와 같이 수정합니다.

[xdmcp]
Enable=true
Port=177
[security]
DisallowTCP=false

 

 

/etc/hosts.allow 파일에 gdm:* 을 추가

리부팅

 

 

 

 

'Research > Linux' 카테고리의 다른 글

텔넷: getaddrinfo: localhost Name or service not  (0) 2009/08/14
rewrite mode on  (0) 2009/08/13
Fedora XDMCP 접속 설정  (0) 2009/08/12
Terminal Server Client에서 XDMCP 접속을 활성화 하기  (0) 2009/08/12
mysqld 설정  (0) 2009/08/12
제로보드 설치시 확인 할 사항  (0) 2009/08/12

Array

 

xnest 를 설치하면 활성화 됨.

'Research > Linux' 카테고리의 다른 글

rewrite mode on  (0) 2009/08/13
Fedora XDMCP 접속 설정  (0) 2009/08/12
Terminal Server Client에서 XDMCP 접속을 활성화 하기  (0) 2009/08/12
mysqld 설정  (0) 2009/08/12
제로보드 설치시 확인 할 사항  (0) 2009/08/12
Fedora 10 Enable GUI Root Login  (0) 2009/08/11

mysqld 설정

Posted 2009/08/12 11:44

실행 : /etc/init.d/mysqld start

 

# chkconfig mysqld on  ← 부팅시 자동실행

# chkconfig --list mysqld ← 부팅시 자동실행 설정 확인

 

root 암호 설정

 

[root@localhost sunny]# mysql_secure_installation

 


NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n]  Y (그냥 enter해도 Y로 인식)
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] Y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] Y
 ... Success!

By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] Y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] Y
 ... Success!

Cleaning up...

 

All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!


[root@localhost sunny]#

 

1. selinux 설정 확인

2. mysqld 확인

3. yum install gd php-gd

Fedora 10 Enable GUI Root Login

Posted 2009/08/11 18:39

출처: http://www.cyberciti.biz/faq/fedora-10-root-login/

Fedora 10 Enable GUI Root Login

Q. How do I enable root login under Fedora 10 Gnome GUI login screen / manager?

A. Fedora 10 uses pam module called pam_succeed_if.so. This module is designed to succeed or fail authentication based on characteristics of the account belonging to the user being authenticated. One use is to select whether to load other modules based on this test. This module blocks root login using GUI.

Login as root

Log in as normal user

Then open GUI terminal (bash prompt) and type the following command to become root user:
$ su -

WARNING! These examples may crash your computer if not executed properly. It is recommended that you always login as normal user to avoid any damage to your system and then use su - to get root level access as required.

Fedora 10 update GDM config to allow root login

Type your root password. Next, make a backup of /etc/pam.d/gdm, enter:
cp /etc/pam.d/gdm /root
Now open /etc/pam.d/gdm using gedit or vi text editor, enter:
gedit /etc/pam.d/gdm
OR
vi /etc/pam.d/gdm
Alternatively, you can do everything in a one command:
su -c 'gedit /etc/pam.d/gdm'
Find line that read as follows:

auth required pam_succeed_if.so user != root quiet

Remove or comment out line by prefixing #.

# auth required pam_succeed_if.so user != root quiet

Save and close the file. Logout from terminal and from GUI itself. Now you should be able login as root user using GDM GUI login manager.

'Research > Linux' 카테고리의 다른 글

mysqld 설정  (0) 2009/08/12
제로보드 설치시 확인 할 사항  (0) 2009/08/12
Fedora 10 Enable GUI Root Login  (0) 2009/08/11
Fedora9에서 Logitech Marble Mouse(Tracball) wheel 사용하기  (0) 2009/08/10
TRAC: anonymous Default permission  (0) 2009/07/31
TRAC: Add Acount Fail  (0) 2009/07/31

/etc/X11/xorg.conf


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 1360 0
    Screen      1  "Screen1" LeftOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Logitech Marble Mouse" "CorePointer"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Logitech Marble Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Protocol" "ExplorerPS/2"
    Option         "Device" "/dev/input/mice"
    Option         "Buttons" "9"
    Option         "ZAxisMapping" "4 5"
    Option         "XAxisMapping" "6 7"
    Option         "EmulateWheel" "true"
    Option         "EmulateWheelButton" "9"
EndSection

/etc/X11/xinit/xinitrc.d/mouse.sh -> 이 파일은 없으므로 만들어줘야 한다.


#!bin/sh
#/etc/X11/xinit/xinitrc.d/mouse
#

xmodmap -e "pointer = 1 8 3 4 5 6 7 2 9 10 11 12 13"


위와 같이 설정하면 왼쪽 작은 버튼을 누른 후 상하 스크롤이 가능해진다.

TRAC: anonymous Default permission

Posted 2009/07/31 11:51

anonymous을 default permission을 수정할 수 있는 방법은 없을까?


« PREV : 1 : 2 : 3 : NEXT »