일단 삼바 설치!!

쌈바?

삼바?

쌈바야? 삼바야?

삼다든

쌈바든…

브라질 축제를 이야기 하고 있네요…

그럼


리눅스 삼바도 이건가?


이게 리눅스 삼바….

이렇게 순진한것인데…


브라질 삼바축제는 영어로 뭐지?

맞는것 같은데~~

쌈바 축제도…

Samba네~~~~~

;;;;;

뭐지 더 알아봐야겠다.


암튼...지금 samba를 설정해볼려고 해요…


이것~~~

쌈바축제의 쌈바알니라는것~~~~!!




[root@localhost linux]# dnf install samba                                       

Yum command has been deprecated, redirecting to '/usr/bin/dnf install samba'.   

See 'man dnf' and 'man yum2dnf' for more information.                           

To transfer transaction metadata from yum to DNF, run:                          

'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'                

                                                                               

Last metadata expiration check performed 2:08:01 ago on Fri Nov 20 12:22:16 2015

Dependencies resolved.                                                          

================================================================================

Package                               Arch                      Version        

================================================================================

Installing:                                                                     

python                                i686                      2.7.10-8.fc23  

python-libs                           i686                      2.7.10-8.fc23  

python-pip                            noarch                    7.1.0-1.fc23   

python-setuptools                     noarch                    18.0.1-2.fc23  

python-talloc                         i686                      2.1.3-1.fc23   

samba                                 i686                      2:4.3.0-3.fc23

samba-common-tools                    i686                      2:4.3.0-3.fc23

samba-libs                            i686                      2:4.3.0-3.fc23

                                                                               

Transaction Summary                                                             

================================================================================

Install  8 Packages                                                             

                                                                               

Total download size: 9.2 M                                                      

Installed size: 35 M                                                            

Is this ok [y/N]: y                                                             

Downloading Packages:                                                           

(1/8): samba-libs-4.3.0-3.fc23.i686.rpm                                         

(2/8): samba-common-tools-4.3.0-3.fc23.i686.rpm                                 

(3/8): samba-4.3.0-3.fc23.i686.rpm                                              

(4/8): python-talloc-2.1.3-1.fc23.i686.rpm                                      

(5/8): python-2.7.10-8.fc23.i686.rpm                                            

(6/8): python-setuptools-18.0.1-2.fc23.noarch.rpm                               

(7/8): python-pip-7.1.0-1.fc23.noarch.rpm                                       

(8/8): python-libs-2.7.10-8.fc23.i686.rpm                                       

--------------------------------------------------------------------------------

Total                                                                           

Running transaction check                                                       

Transaction check succeeded.                                                    

Running transaction test                                                        

Transaction test succeeded.                                                     

Running transaction                                                             

 Installing  : python-libs-2.7.10-8.fc23.i686                              1/8

 Installing  : python-pip-7.1.0-1.fc23.noarch                              2/8

 Installing  : python-setuptools-18.0.1-2.fc23.noarch                      3/8

 Installing  : python-2.7.10-8.fc23.i686                                   4/8

 Installing  : python-talloc-2.1.3-1.fc23.i686                             5/8

 Installing  : samba-libs-2:4.3.0-3.fc23.i686                              6/8

 Installing  : samba-common-tools-2:4.3.0-3.fc23.i686                      7/8

 Installing  : samba-2:4.3.0-3.fc23.i686                                   8/8

 Verifying   : samba-2:4.3.0-3.fc23.i686                                       

 Verifying   : samba-common-tools-2:4.3.0-3.fc23.i686                          

 Verifying   : samba-libs-2:4.3.0-3.fc23.i686                                  

 Verifying   : python-libs-2.7.10-8.fc23.i686                                  

 Verifying   : python-talloc-2.1.3-1.fc23.i686                                 

 Verifying   : python-2.7.10-8.fc23.i686                                       

 Verifying   : python-pip-7.1.0-1.fc23.noarch                                  

 Verifying   : python-setuptools-18.0.1-2.fc23.noarch                          

                                                                               

Installed:                                                                      

 python.i686 2.7.10-8.fc23                  python-libs.i686 2.7.10-8.fc23     

 python-setuptools.noarch 18.0.1-2.fc23     python-talloc.i686 2.1.3-1.fc23    

 samba-common-tools.i686 2:4.3.0-3.fc23     samba-libs.i686 2:4.3.0-3.fc23     

                                                                               




그리고,

system-config-samba

을 설치하라고 한다.

dnf install system-config-samba


[root@localhost linux]# dnf install system-config-samba

Last metadata expiration check performed 2:11:26 ago on Fri Nov 20 12:22:16 2015.

Dependencies resolved.

===================================================================================

Package                           Arch                 Version                        Repository             Size

===================================================================================

Installing:

dbus-python                       i686                 1.2.0-12.fc23                  updates               128 k

libglade2                         i686                 2.6.4-13.fc23                  fedora                 68 k

libselinux-python                 i686                 2.4-4.fc23                     fedora                294 k

pycairo                           i686                 1.10.0-2.fc23                  fedora                515 k

pygobject2                        i686                 2.28.6-14.fc23                 fedora                225 k

pygtk2                            i686                 2.24.0-12.fc23                 fedora                878 k

pygtk2-libglade                   i686                 2.24.0-12.fc23                 fedora                 30 k

python-decorator                  noarch               3.4.2-2.fc23                   fedora                 20 k

python-six                        noarch               1.9.0-3.fc23                   fedora                 34 k

python-slip                       noarch               0.6.4-1.fc23                   fedora                 36 k

python-slip-dbus                  noarch               0.6.4-1.fc23                   fedora                 36 k

python-xpyb                       i686                 1.3.1-5.fc23                   fedora                138 k

system-config-samba               noarch               1.2.100-4.fc23                 fedora                286 k


Transaction Summary

===================================================================================================================

Install  13 Packages


Total download size: 2.6 M

Installed size: 9.6 M

Is this ok [y/N]: y

Downloading Packages:

(1/13): pygtk2-libglade-2.24.0-12.fc23.i686.rpm                                    290 kB/s |  30 kB     00:00

(2/13): python-slip-0.6.4-1.fc23.noarch.rpm                                        723 kB/s |  36 kB     00:00

(3/13): python-slip-dbus-0.6.4-1.fc23.noarch.rpm                                   1.4 MB/s |  36 kB     00:00

(4/13): system-config-samba-1.2.100-4.fc23.noarch.rpm                              1.2 MB/s | 286 kB     00:00

(5/13): pygobject2-2.28.6-14.fc23.i686.rpm                                         1.2 MB/s | 225 kB     00:00

(6/13): pycairo-1.10.0-2.fc23.i686.rpm                                             1.8 MB/s | 515 kB     00:00

(7/13): pygtk2-2.24.0-12.fc23.i686.rpm                                             1.4 MB/s | 878 kB     00:00

(8/13): libglade2-2.6.4-13.fc23.i686.rpm                                           371 kB/s |  68 kB     00:00

(9/13): python-six-1.9.0-3.fc23.noarch.rpm                                         946 kB/s |  34 kB     00:00

(10/13): python-decorator-3.4.2-2.fc23.noarch.rpm                                  487 kB/s |  20 kB     00:00

(11/13): libselinux-python-2.4-4.fc23.i686.rpm                                     1.3 MB/s | 294 kB     00:00

(12/13): python-xpyb-1.3.1-5.fc23.i686.rpm                                         1.6 MB/s | 138 kB     00:00

(13/13): dbus-python-1.2.0-12.fc23.i686.rpm                                        560 kB/s | 128 kB     00:00

-------------------------------------------------------------------------------------------------------------------

Total                                                                              429 kB/s | 2.6 MB     00:06

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

 Installing  : python-six-1.9.0-3.fc23.noarch                                                                1/13

 Installing  : python-decorator-3.4.2-2.fc23.noarch                                                          2/13

 Installing  : dbus-python-1.2.0-12.fc23.i686                                                                3/13

 Installing  : python-xpyb-1.3.1-5.fc23.i686                                                                 4/13

 Installing  : pycairo-1.10.0-2.fc23.i686                                                                    5/13

 Installing  : libselinux-python-2.4-4.fc23.i686                                                             6/13

 Installing  : python-slip-0.6.4-1.fc23.noarch                                                               7/13

 Installing  : python-slip-dbus-0.6.4-1.fc23.noarch                                                          8/13

 Installing  : libglade2-2.6.4-13.fc23.i686                                                                  9/13

 Installing  : pygobject2-2.28.6-14.fc23.i686                                                               10/13

 Installing  : pygtk2-2.24.0-12.fc23.i686                                                                   11/13

 Installing  : pygtk2-libglade-2.24.0-12.fc23.i686                                                          12/13

 Installing  : system-config-samba-1.2.100-4.fc23.noarch                                                    13/13

 Verifying   : system-config-samba-1.2.100-4.fc23.noarch                                                     1/13

 Verifying   : pygtk2-2.24.0-12.fc23.i686                                                                    2/13

 Verifying   : pygtk2-libglade-2.24.0-12.fc23.i686                                                           3/13

 Verifying   : python-slip-0.6.4-1.fc23.noarch                                                               4/13

 Verifying   : python-slip-dbus-0.6.4-1.fc23.noarch                                                          5/13

 Verifying   : pycairo-1.10.0-2.fc23.i686                                                                    6/13

 Verifying   : pygobject2-2.28.6-14.fc23.i686                                                                7/13

 Verifying   : libglade2-2.6.4-13.fc23.i686                                                                  8/13

 Verifying   : libselinux-python-2.4-4.fc23.i686                                                             9/13

 Verifying   : python-six-1.9.0-3.fc23.noarch                                                               10/13

 Verifying   : python-decorator-3.4.2-2.fc23.noarch                                                         11/13

 Verifying   : python-xpyb-1.3.1-5.fc23.i686                                                                12/13

 Verifying   : dbus-python-1.2.0-12.fc23.i686                                                               13/13


Installed:

 dbus-python.i686 1.2.0-12.fc23            libglade2.i686 2.6.4-13.fc23         libselinux-python.i686 2.4-4.fc23

 pycairo.i686 1.10.0-2.fc23                pygobject2.i686 2.28.6-14.fc23       pygtk2.i686 2.24.0-12.fc23

 pygtk2-libglade.i686 2.24.0-12.fc23       python-decorator.noarch 3.4.2-2.fc23 python-six.noarch 1.9.0-3.fc23

 python-slip.noarch 0.6.4-1.fc23           python-slip-dbus.noarch 0.6.4-1.fc23 python-xpyb.i686 1.3.1-5.fc23

 system-config-samba.noarch 1.2.100-4.fc23


Complete!





http://ddonyo.egloos.com/3936234

의 요점은..

/etc/samba/smb.conf

에 공유하고 싶은

디렉토리를 설정해주라는 것!!!

그리고, 사용자도 추가해주라는 것!!!


/etc/samba/smb.conf 파일에...다음과

같은 내용을 적어주면 된다...

[share]

       comment = user

       path = /home/test/share

       read only = no

       valid users = root

       browseable = no

       create mask = 0765

중요한것은

pathvalid users

path는 공유하고 싶은 디렉토리이름

valid users는 사용을 허락하는 사용자~~

그리고 나머지는 그대로 타이핑 하시라~~~


아 그리고,

삼바에서는 계정을 따로 관리하는 것 같습니다.

그래서, 삼바사용자의 패스워드를 따로 다음과 같이

입력해줘야 한담니다.

적어주면 된다...

[root@localhost]#smbpasswd -a root

New SMB password:

Retype new SMB password:


중요한것은

root는 위에서 valid usrs에 추가했던

사용자 id입니다...

그리고 패스워드를 입력해주면 끝???!!!

아니요,네트워크 방화벽에 UDP 137/138, TCP 139/445포트의

ACCEPT를 허용해줘야죠~~

안그러면..네트워크 방화벽이..

접속을 차단해버립니다.~~~

아니면, 네트워크방화벽(iptables)를 꺼버리던지요^^ㅎㅎㅎ

그런데 어떻게 끄는지를 모르겠네요;;;;

암튼네트워크 방화벽...이놈을 무시하면 안된다는것~~~!!


자...이제 다 되었냐?

아니죠...

SAMBA와 IPTABLES를 재시작해야죠...


그런데 SAMBA의 서비스명은 SMB라는점~~

SAMBA아니라는 점~~~

아주 중요합니다.(저는 실수했습니당;;;)



#sudo service iptables restart

#sudo service smb restart

이렇게 하면 이제 될까요???

과연 잘 접속할까요?


밑의 글을 보시랑~~~ㅋㅋㅋ;;;;;;흫흐흐흐흐




음..인터넷에 하라고 하는대로 했는데…

안된다…;;;;;;;;;;;


뭐냐고….


뭐가 문제냐고…


여기까지는 나오는데...

음….

안들어가진다…


이 에러가 발생한다…


액세스 할 수 없습니다


라고 아주 친절하게 말씀해주신다….


권한이 없다고?


이런…


뭐냐???


내가 뭘 잘못했을까?


다시 확인해보자..





음…

이렇게 했어…



다시 해보자…

지우고…

지금까지 설정되어 있는 공유폴더 말이다.



오케 계정 물어보고…



여기까지 나오는데…

또..이런다..


왜 권한이 없다는 거지?



검색해보자…


이런

페도라 너가 문제였구나!!!!




https://kldp.org/node/74694 ← 이곳에서 답을 찾았다.

범인은 SELinux!!!




[root@localhost kernel]# chcon -t samba_share_t /kernel/linux-4.2.5

[root@localhost kernel]# /usr/sbin/semanage fcontext -a -t samba_share_t "/dir/to/share(/.*)?"





흐~~~

SELinux……때문에…

안되었군요….




[교훈]


  • 페도라면.. SELinux에 공유하고 싶은 폴더에 라벨(samba_share_t)을 추가하라!!

  • 그리고, 인터넷 메뉴얼 대로 해라~~!!!

    • 공유폴더 설정하고,

    • Iptables[방화벽]도 신경잘쓰고…네트워크 방화벽에 의해 차단될 수 있당!!!




아니 이런….

하위 폴더에 접근할려고 했더니…

접근이 안된다.


이런 뭐냐?

하위 디렉토리에도

라벨을 추가해야 하는가 보다…


다음 명령을...하위 모든 경로에도 적용되어야 할 것 같은데...

[root@localhost kernel]# chcon -t samba_share_t /kernel/linux-4.2.5



구글링해보자…


음...해결했습니당~~!

semanage 명령으로 하위경로와 파일까지

라벨을 추가할 수 있군요…~!!

#semanage fcontext -a -t samba_share_t "/kernel/linux-4.2.5(/.*)?"

#restorecon -Rv /kernel/linux-4.2.5

그리고~~ restorecon 명령을 해야..

적용된다는점~~!


자 확인하시죠~~~samba 라벨이 적용된 것을~~~!!

[root@localhost test001]# ls -aZ /kernel/linux-4.2.5

unconfined_u:object_r:samba_share_t:s0 .                                 unconfined_u:object_r:samba_share_t:s0 block

   unconfined_u:object_r:default_t:s0 ..                                unconfined_u:object_r:samba_share_t:s0 crypto

unconfined_u:object_r:samba_share_t:s0 .config                           

.. ..



역쉬~~~!!!


이제 잘 들어가집니다.~~~!








nosstarter.npe 넌 누구냐?


걱정하시지 않아도 됩니다…

악성코드 아닙니다!!


보이시죠~~

보안회사 모듈입니당~~!

그런데 왜?

죽었죠?

그건 모르겠습니다. ^^;;;;


음….

바이러스토탈에서도

안심하라고 하네요~~!!


https://www.virustotal.com/ko/file/26E674A857D7FDD3AA592AB0A7195E3DCBE812FA7C0E5EF80ADDECC4F4382609/analysis/


삭제 방법은 --> http://blog.naver.com/cjb3216/220504763707 


음….

믿는다는 것은..

믿음이라는 것은...말이다…

울며 씨를 뿌리러 가는 것 같다…

오늘도 울며 믿음의 행진을 하자…


왜 울 수 밖에 없는 이유는

나의 죄성 때문이다…

죄성….

그러니..눈물이 날 수 밖에 없는 것이다.

그렇다…

울자…

마음껏 울자~~

기도하면서 울고

믿음을 선포하면서 울자…


성령님 울겠습니다.

울며...성령님께….나아갑니다.

성령님 도와주세요…



make -c


make의 -C 옵션은 무엇인가?



[root@localhost 4.2.5]# make --help

사용법: make [옵션] [타겟] ...

옵션:

 -b, -m                      Ignored for compatibility.

 -B, --always-make           Unconditionally make all targets.

 -C DIRECTORY, --directory=DIRECTORY

                             Change to DIRECTORY before doing anything.

 -d                          Print lots of debugging information.






Change to DIRECTORY before doing~~

doing 하기전에…디렉토리를 바꿔라~~~!!!

디렉토리 바꾸는 명령이였군요…………….

현재 디렉토리겠죠~~~~


무한 루프~~~~


그런데….경로를 바꾸고 그럴까요?


경로를 바꾸지 않으면...컴파일이 안되는 걸까요?

아니면….그곳...바꾼 Directory에 있는 소스를 가지고 메이크하라는 것일까요?



무한사랑...무한...infinite...의 세계로...어서오세요…

예수님의 사랑은 무한사랑

하나님은 무한한 존재

성령님은 무한한 Spirit…

이게 무슨말인가?

ㅎㅎㅎㅎ

암튼...무한 리눅스의 세계로 들어가 봅시다.

ㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎ




리눅스의 root 밑에 있는 녀석들은 각자 역할이 있는 것 같다..

아니 있다.


그중에 …


/lib

라는 녀석은…..


“시스템에서 공유하여 같이 사용하는 라이브러리가 들어가 있는 곳”이란다.


그런데 … /lib 디렉토리안에…..엄청나게 많은 디렉토리가 들어가 있다…



/lib

├── GConf

├── ModemManager

├── NetworkManager

├── X11

├── abrt-java-connector

├── alsa

├── alsa-lib

├── ao

├── apr-util-1

├── audit

├── avahi

├── bind99

├── binfmt.d

├── bluetooth

├── brltty

├── ccs

├── cifs-utils

├── cmake

├── colord-plugins

├── colord-sensors

├── crda

├── cups

├── debug

├── device-mapper

├── dleyna-1.0

├── dleyna-server

├── dracut

├── dri

├── ebtables

├── elfutils

├── empathy

├── enchant

├── eog

├── epiphany

├── evince

├── evolution

├── evolution-data-server

├── farstream-0.2

├── fipscheck

├── firefox

├── firewalld

├── firmware

├── folks

├── freerdp

├── frei0r-1

├── fs

├── gallium-pipe

├── games

├── gawk

├── gcc

├── gconv

├── gdk-pixbuf-2.0

├── gedit

├── gettext

├── ghostscript

├── gio

├── girepository-1.0

├── gjs

├── glusterfs

├── gnome-calculator

├── gnome-documents

├── gnome-keyring

├── gnome-online-miners

├── gnome-settings-daemon-3.0

├── gnome-shell

├── goa-1.0

├── grilo-0.2

├── grub

├── gs-plugins-8

├── gssproxy

├── gstreamer-1.0

├── gtk-2.0

├── gtk-3.0

├── guile

├── gupnp-dlna

├── gutenprint

├── gvfs

├── httpd

├── i686

├── iscsi

├── java

├── java-1.5.0

├── java-1.6.0

├── java-1.7.0

├── java-1.8.0

├── java-ext

├── jvm

├── jvm-commmon

├── jvm-exports

├── jvm-private

├── kbd

├── kdump

├── kernel

├── krb5

├── ldb

├── libcanberra-0.30

├── libgphoto2

├── libgphoto2_port

├── libgpod

├── libkkc

├── liblangtag

├── libnfsidmap

├── libpeas-1.0

├── libpinyin

├── libproxy

├── libreoffice

├── libtranslit

├── libuser

├── libv4l

├── libvirt

├── libxslt-plugins

├── libzhuyin

├── lksctp-tools

├── llvm

├── locale

├── lua

├── m17n

├── man-db

├── mission-control-plugins.0

├── modprobe.d

├── modules

├── modules-load.d

├── mozilla

├── mutter

├── nautilus

├── nss

├── open-vm-tools

├── openssl

├── openvpn

├── org.gnome.Characters

├── os.release.d

├── p11-kit

├── packagekit-backend

├── pam_pkcs11

├── perl5

├── pkcs11

├── pkgconfig

├── plymouth

├── pm-utils

├── polkit-1

├── pppd

├── pulse-7.0

├── pulseaudio

├── purple-2

├── python3.4

├── qt4

├── qt5

├── realmd

├── redland

├── rhythmbox

├── rpm

├── rpm-plugins

├── rsocket

├── rtkaio

├── rygel-2.6

├── samba

├── sane

├── sasl2

├── seahorse

├── security

├── shotwell

├── silc

├── speech-dispatcher

├── speech-dispatcher-modules

├── sse2

├── sssd

├── stunnel

├── sushi

├── sysctl.d

├── systemd

├── sysusers.d

├── tc

├── tcl8.6

├── telepathy

├── tls

├── tmpfiles.d

├── totem

├── tracker-1.0

├── udev

├── vdpau

├── vte-2.90

├── webkit2gtk-4.0

├── xorg

└── xtables

184 directories


총 184개의 디렉토리가 있네….뭐이리 공유해서 쓸게 많은겨….


음…. /lib/modules/ 밑에 있는 파일이 뭔가 확인해보니… .ko 파일 같이 커널에서 사용하는 모듈들인것 같네요..



[root@localhost kernel]# tree `pwd`

/lib/modules/4.2.5/kernel

├── Documentation

│   ├── connector

│   │   └── cn_test.ko

│   └── filesystems

│       └── configfs

│           ├── configfs_example_explicit.ko

│           └── configfs_example_macros.ko

├── arch

│   └── x86

│       ├── crypto

│       │   ├── crc32-pclmul.ko

│       │   ├── crc32c-intel.ko

│       │   ├── glue_helper.ko

│       │   ├── salsa20-i586.ko

│       │   ├── serpent-sse2-i586.ko

│       │   └── twofish-i586.ko

│       ├── kernel

│       │   ├── cpu

│       │   │   └── mcheck

│       │   │       └── mce-inject.ko

│       │   ├── iosf_mbi.ko

│       │   └── test_nx.ko

│       ├── kvm

│       │   ├── kvm-amd.ko

│       │   ├── kvm-intel.ko

│       │   └── kvm.ko

│       ├── oprofile

│       │   └── oprofile.ko

│       └── platform

│           └── iris

│               └── iris.ko

├── crypto

│   ├── 842.ko

│   ├── ansi_cprng.ko

│   ├── anubis.ko

│   ├── arc4.ko

│   ├── async_tx




암튼….


/lib

시스템 전체적으로 같이 공유하고 싶은 놈들이 들어가는 방(디렉토리,폴더...)인것이죠~~!!!


흐흐흐. 이번글은 여기까징~~~

무한 드리볼~~


[참고]

http://egaoneko.github.io/os/2015/05/24/linux-starter-guide-3.html

http://lintut.com/use-tree-command-in-linux/


내가 설치한 Fedora 에서 uname -r을 하면 다음과 같이 보인다.

[test@localhost ~]$ uname -r

4.2.5-300.fc23.i686+PAE


그런데 문제는 맨뒤에 붙어 있는 +PAE라는 녀석이다.



메뉴얼에 다음과 같이 되어 있어서....따라하면..에러가 발생한다…


[root@localhost test]# dnf install kernel-devel-`uname -r`

Last metadata expiration check performed 0:00:32 ago on Tue Nov 17 20:34:15 2015.

No package kernel-devel-4.2.5-300.fc23.i686+PAE available.

Error: Unable to find a match.


kernel-devel-4.2.5-300.fc23.i686+PAE 라고 하는 패치지가 없다는 것이다.

그런데 +PAE를 제거하고 하면 잘된다…



[root@localhost test]# dnf install kernel-devel-4.2.5-300.fc23.i686

Last metadata expiration check performed 0:02:11 ago on Tue Nov 17 20:34:15 2015.

Package kernel-devel-4.2.5-300.fc23.i686 is already installed, skipping.

Dependencies resolved.

Nothing to do.

Complete!

이바라...잘되지 않는가?


왜?


dnf install kernel-devel-`uname -r` ← 이렇게 하라고해서 나를 고생시킨것인가?



+PAE는 뭔가?


구글링해보자…


물리주소확장(Physical Address Extension, PAE) 을 지원하는 커널인지 아닌지를 표시하는거란다.

물리주소 확장이란, 4기가바이트이상의 메모리를 32비트 시스템에서 사용할 수 있도록 하는 장치를 말한다.^^

참고 : https://ko.wikipedia.org/wiki/%EB%AC%BC%EB%A6%AC_%EC%A3%BC%EC%86%8C_%ED%99%95%EC%9E%A5




자...리눅스 커널을 빌드해라~!


왜냐고? 그냥~~

이유는 없다…


Just do it~!

그냥 하는거다…

그냥 하는 것이 이유다…

아니 난 리눅스 천재니까~~!!

흐~


리눅스 이~녀석~~~




  1. 우선 커널 소스를 받아온다.

  2. .config 파일을 복사한다.

  3. make 한다. (2시간정도 걸림)

  4. make modules 를 한다.

  5. make modules_install 을 한다.

대충 말하면 이렇게 한다…

자세한 정보는 다음 이곳들을 보며 대충알 수 있습니다.

귀찮아서리~~~

아주 친절하게 설명할 에너지가 없네유~~


http://emzei.tistory.com/m/post/153

http://blog-wk.blogspot.kr/2010/08/blog-post_29.html

http://blog.daum.net/bagjunggyu/138


제가 헤맨것만 설명을 드리면..

성공하기까지..몇일이 걸렸습니다. 이런;;;


.config 파일의 중요성을 몰랐어요..

.config 파일의 커널구셩내용이 적혀 있는데.

현재 작동중인 커널 구성에서 크게 달라지면 큰일 납니다.

부팅이 안되니까요…


.config를 대충만들면...결국 이 화면을 보게 될것 입니다. 저처럼 ㅋㅋㅋㅋ

.config 를 무시하지 마세요~~!!


요령은 현재 잘 작동중인 커널의 .config 을 사용하라..

이것은 구굴링하면 설명은 찾을 수 있어요…


아니 설명해 드릴꼐요..

https://help.ubuntu.com/community/Kernel/Compile ← 아주 잘 설명하고 있내요~~영어로~~ㅋㅋ



cp -vi /boot/config-`uname -r` .config

이게 제가 볼텐 커널 빌드시 핵심중의 핵심이라고 생각합니데이~~


일단 카피해놓고

이 구성중에서 변경을 해야쥐~

쌩짜(new)에서 구성하는 것은

저 같은 쪼가 리눅서에게는

불가능한일입니뎅~~


암튼 .config만 잘 되어 있으면

이제 빌드하면 됩니데이~~


참고로 밑의 그림은.말입니다.

제가 테스트한 페로라의 현재 /boot 디렉토리 밑에 있는

현재 커널의 .config 파일입니다.

빨간박스 안이 말입니다.~~~~~~



암튼 그러고 나서

그냥

바로~


make

해버리면 됩니다.


그리고 2시간 정도 기다립니다.


그리고 나서..다음 명령을 실행시켜주면...

  • make modules

  • make modules_install

  • make install


되는것입니다.



[root@localhost linux]# make modules

 CHK     include/config/kernel.release

 CHK     include/generated/uapi/linux/version.h

 CHK     include/generated/utsrelease.h

 CHK     include/generated/bounds.h

 CHK     include/generated/timeconst.h

 CHK     include/generated/asm-offsets.h

 CALL    scripts/checksyscalls.sh

 Building modules, stage 2.

 MODPOST 2878 modules


위 화면은 말입니다…

make modules

실행 결과입니다.


2878개...모듈...이 있더구만요~~





바뀌었다…

커널 버전이 바뀐것입니다.

위 화면은 제가 새로 만든 커널로 부팅한 결과화면입니다~


좀더 더~~

친절하고 꼼꼼하게

설명했어야 하는디~

죄송합니다~~




[참고]

http://emzei.tistory.com/m/post/153

http://blog-wk.blogspot.kr/2010/08/blog-post_29.html

http://blog.daum.net/bagjunggyu/138

https://help.ubuntu.com/community/Kernel/Compile



[결론]

결론은…

글을 꼼꼼히 읽자이종~~;;;;;;

다 설명에 있었습니다.


.config 복사해서 하라고

그 문장을 제가 과감하게 무시했습니다.


할렐루야~~



흐…..

음….

모든 프로세스를 보고 싶다고….


ps명령으로는 다 안보여~~~!!!


고작 두개 밖에 보이질 않아..


이게 전부가 아닐꺼야…



[root@localhost ~]# ps --help simple


Usage:

ps [options]


Basic options:

-A, -e               all processes

-a                   all with tty, except session leaders

 a                   all with tty, including other users

-d                   all except session leaders

-N, --deselect       negate selection

 r                   only running processes

 T                   all processes on this terminal

 x                   processes without controlling ttys




닥치고…^__^

-ef를 가장 많이 사용한다고~!!


“다 귀찮고… ps -ef 만 할꺼야ㅎ~ㅋ~”


-e 옵션은 모든 프로세스를 표시해주는 옵션이며,

-f옵션은 전체경로로 프로세스를 표시해주는 옵션이다.




자 따라 해보세요^^



ps -ef


일단 이거면 충분합니다.


그리고 내가 찾는 녀석이 있는지 확인하기 위해서


ps -ef | grep test

파이프 | 그리피 grep 를 사용하면 환상적입니다.^^

+ Recent posts