Linux2010. 6. 1. 10:52
strip *

이렇게 하면 한 디렉토리의 모든 파일을 알아서 strip 한다.
왜 이렇게 간단한걸 몰랐을까 ㅠ.ㅠ

strip [-F bfdname |--target=bfdname] [-I  bfdname |--input-target=bfdname] [-O bfdname |--output-target=bfdname] [-s|--strip-all] [-S|-g|-d|--strip-debug] [-K symbolname |--keep-symbol=symbolname] [-N symbolname |--strip-symbol=symbolname] [-w|--wildcard] [-x|--discard-all] [-X |--discard-locals] [-R sectionname |--remove-section=sectionname] [-o  file] [-p|--preserve-dates] [--keep-file-symbols] [--only-keep-debug] [-v |--verbose] [-V|--version] [--help] [--info] objfile...

@file
    Read command-line options from file. The options read are inserted in place of the original @file option. If file does not exist, or cannot be read, then the option will be treated literally, and not removed.

[링크 : http://linux.die.net/man/1/strip]

Posted by 구차니
Linux/Ubuntu2010. 5. 30. 19:11
페도라 코어와 비슷하게 우분투 역시
/usr/share/fonts 에 폰트가 위치한다.

$ tree -d /usr/share/fonts
/usr/share/fonts
|-- X11
|   |-- 100dpi
|   |-- 75dpi
|   |-- Type1
|   |-- encodings
|   |   `-- large
|   |-- misc
|   `-- util
|-- truetype
|   |-- alee
|   |-- freefont
|   |-- openoffice
|   |-- takao
|   |-- thai
|   |-- ttf-dejavu
|   |-- ttf-indic-fonts-core
|   |-- ttf-kacst-one
|   |-- ttf-khmeros-core
|   |-- ttf-lao
|   |-- ttf-liberation
|   |-- ttf-lyx
|   |-- ttf-punjabi-fonts
|   |-- unfonts
|   `-- wqy
`-- type1
    |-- gsfonts
    `-- mathml

2009/03/05 - [Linux] - 리눅스 폰트 위치 - Default directory path of FC(Fedora Core) fonts

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

yaffs2 하려는데 왜케 빡시누  (0) 2010.09.14
ubuntu 에서 X window 종료시키기  (0) 2010.08.23
시작 윈도우매니저 세션 변경하기 - 우분투  (0) 2010.05.14
Ubuntu 10.04 KDE  (2) 2010.05.11
Ubuntu 10.04 XFCE  (0) 2010.05.11
Posted by 구차니
Linux2010. 5. 30. 19:00
libfreetype 테스트용 프로그램을 컴파일 하는데
아래와 같은 문제가 발생을 했다.

$ gcc example1.c -lfreetype
/tmp/cc2ePnil.o: In function `main':
example1.c:(.text+0x278): undefined reference to `cos'
example1.c:(.text+0x2b0): undefined reference to `sin'
example1.c:(.text+0x2e8): undefined reference to `sin'
example1.c:(.text+0x320): undefined reference to `cos'
collect2: ld returned 1 exit status

해결책은 간단하게 gcc -lm 을 하면 되는데,
Perhaps it needs the maths library linked, -lm, as that is where 'cos' will be.
Though that seems a strange thing to be missing.

[링크 : http://computer-yocher.blogspot.com/2010/05/re-sage-devel-sage-441-build-failures.html]

여기서 -l 은 library이고 파일명으로는, lib 접두가 붙게된다.
즉, -lm은 우분투 10.04 기준으로
lrwxrwxrwx 1 root root      14 2010-05-26 21:55 /usr/lib/libm.so -> /lib/libm.so.6

이녀석을 의미하고, cos() sin() tan()을 사용하는 math.h 를 사용할때에는
추가적으로 -lm 옵션을 추가하여 math library를 링크해주어야 한다.

Posted by 구차니
Linux2010. 5. 29. 10:36
ATMEL AVR에서도 cli() sti()는 들은거 같았는데, Linux에서도 있었군 -ㅁ-!
아무튼 결론은, Linux Kernel 2.6 이상의 커널에서는 사용하지 않으면 하위호환성으로 인해 존재할 뿐
실질적으로는 local_irq_enable / local_irq_disable 을 사용하라고 한다.

CLear Interrupt
SeT Interrupt 입니다.
인터럽트를 Disable/Enable하는 것이고요. ;;

[링크 : http://kldp.org/node/43805]

커널 2.6 의 <include/linux/interrupt.h> 에 define 되어 있습니다.
이전 버전과의 호환성을 위해 존재하며
앞으로는 local_irq_enable/disable() 을 직접 사용하는 편이 좋습니다.

50 /*
51 * Temporary defines for UP kernels, until all code gets fixed.
52 */
53 #ifndef CONFIG_SMP
54 # define cli() local_irq_disable()
55 # define sti() local_irq_enable()
56 # define save_flags(x) local_save_flags(x)
57 # define restore_flags(x) local_irq_restore(x)
58 # define save_and_cli(x) local_irq_save(x)
59 #endif

[링크 : http://kldp.org/node/43805]

Posted by 구차니
Linux2010. 5. 27. 21:11
위 - 정식 릴리즈 버전을 사용하여 버튼이 사라진 모습
아래 - 개발자 버전을 사용하여 버튼이 나타난 모습

리눅스용 firefox / chrome 에서 티스토리 업로드가 제대로 작동하지 않아서 고생을 했다.
마침 지나가시던 fusionk 라는 분께서 개발버전 Adobe Flash player 10 을 설치하면 된다고 해서 받아서 설치하니... 된다!!!

설치방법은
Download plug-in for Linux (TAR.GZ, 4.5 MB)
위의 파일을 다운로드 한뒤 압축을 풀면
12MB짜리 libflashplayer.so 파일 하나가 나오고,
이녀석을 ubuntu 10.04 기준 /usr/lib/flashplugin-installer/libflashplayer.so 파일과 교체를 하면된다.

/usr/share/ubufox/plugins/libflashplayer.so 이 녀석은,
/usr/lib/flashplugin-installer/libflashplayer.so 으로
심볼릭 링크가 걸려있으므로 굳이 변경할 필요는 없다.

$ sudo find / -name libflashplayer.so
/usr/share/ubufox/plugins/libflashplayer.so
/usr/lib/flashplugin-installer/libflashplayer.so

테스트를 해보니, 크롬/Firefox 모두 이상없이 작동한다.

[링크 : http://labs.adobe.com/downloads/flashplayer10.html#flashplayer10]

'Linux' 카테고리의 다른 글

libm (math library)  (0) 2010.05.30
sti() cli()는 모하는 넘이야?  (2) 2010.05.29
MAKEDEV(8) 우분투, 페도라 옵션차이  (0) 2010.05.15
dosboot / netboot / fatboot  (0) 2010.05.04
grub 설치하기  (0) 2010.05.03
Posted by 구차니
Linux2010. 5. 15. 10:45
MAKEDEV 스크립트는 Fedora와 ubuntu와 완전 다르다.

OPTIONS
       -d directory
              Create the devices under directory instead  of  the  default  (usually
              /dev).

       -D directory
              Compute  file  contexts for device creation as if the directory speci-
              fied for the -d flag were the specified directory.  This is useful  if
              the -d flag is being used to populate a chrooted device directory.

manpage on FC6

OPTIONS
       -d     Delete the devices.  The main use for this flag is by MAKEDEV itself.

manpage on ubuntnu 10.04 LTS

췟.. 리눅스마스터 시험은.. 리눅스 마스터가 아니라 레드햇 서버 마스터 구만 ㄱ-
Posted by 구차니
Linux/Ubuntu2010. 5. 14. 23:55
윈도우 매니저를 여러개 설치하면 생기는건진 모르겠지만,
로그인 화면 설정에서 아래와 같이 기본 세션을 선택할수 있다.



Ubuntu의 경우 기본적으로 Gnome 세션이고,
Vino server는 Gnome에 포함되어있으므로, 다른 세션으로 할 경우 vino를 통해서 VNC 접속이 불가능해진다. (확인필요)
그러므로 별도의 VNC를 설치해야 한다.

2010/02/04 - [Linux/Ubuntu] - 우분투 사용자 자동로그인

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

ubuntu 에서 X window 종료시키기  (0) 2010.08.23
우분투 기본 폰트 경로 - Default path of Ubuntu fonts  (0) 2010.05.30
Ubuntu 10.04 KDE  (2) 2010.05.11
Ubuntu 10.04 XFCE  (0) 2010.05.11
ubuntu 10.04 설치패키지 목록  (4) 2010.05.09
Posted by 구차니
Linux/Ubuntu2010. 5. 11. 01:11
KDE는 역시.. 무겁다 OTL

=== KDE session ===




애니메이션 효과라던가, 깔끔한건 좋은데..
확실히 Gnome이나 XFCE에 비하면 무거운 느낌이 든다.

요녀석은 kde-desktop을 설치하면 된다.


-------
로딩속도 문제로 인해 JPG로 교체하였습니다.
ubuntu Firefox 에서 올리니 이미지당 3메가.. OTL
버그인가?
Posted by 구차니
Linux/Ubuntu2010. 5. 11. 00:49
XFCE 라는 것을 듣기만 해봤지 써보질 못해서 한번 설치만 해봤다.

=== XFCE session ===




=== Xubuntu session ===



gnome도 충분히 빨라져서 잘은 모르겠지만,
XFCE가 더 가볍고 빠르다고 한다. (로고가 설치류가 미움을 받는다는 소문이 -ㅁ-)

ubuntu에서 설치시에는 xubuntu-desktop을 하면된다는데
위의 XFCE session은 xfce4 패키지로 검색해서 설치한 화면이다.
그리고 xubuntu-desktop을 설치하면 xubuntu session이 생기며, 검은색으로 테마가 변경되는것 외에는 큰 차이점은 없다.

-------
로딩속도 문제로 인해 JPG로 교체하였습니다.
ubuntu Firefox 에서 올리니 이미지당 3메가.. OTL
버그인가?
Posted by 구차니
Linux/Ubuntu2010. 5. 9. 20:26
귀차니즘으로 인해 쌓아두기 -ㅁ-

$ cat ~/.bashrc
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[01;36m\]@\[\033[01;34m\]\h\[\033[00m\]:\[\033[01;33m\]\w \$\[\033[00m\] '

[링크 : http://ubuntu.textcube.com/65]
[링크 : 2010/02/05 - [Linux] - 쉘 스크립트의 결과를 알록달록하게 컬러로 출력하기]

*** development ***
vim / vim-gnome
mc
build-essential
manpages-dev (10.04 기본설치)
alien / rpm (10.04 기본설치)
gftp
kdiff3 / meld

*** version control ***
cvs / cvsgraph / cvs2svn / viewvc
subversion
git-core

*** language ***
netbeans(java)
eclipse
python (10.04 기본설치)

*** server ***
nfs
samba / system-config-samba
ssh
tftpd
synergy

*** APM ***
mysql-server
apache2
php5

*** network ***
wireshark
nmap

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

Ubuntu 10.04 KDE  (2) 2010.05.11
Ubuntu 10.04 XFCE  (0) 2010.05.11
Ubuntu 10.04 LTS 환상이야!  (0) 2010.05.09
시냅틱 꾸러미 관리자에서 삭제/완전삭제가 모야?  (0) 2010.05.07
Ubuntu 10.04 LTS!  (0) 2010.05.07
Posted by 구차니