Linux/Ubuntu2015. 3. 26. 16:57

우분투 설치시에 hostname(컴퓨터 이름)을 기재하는데 중복되게 적는 바람에

/etc/hostname에 있는 녀석만 바꾸었더니


sudo 명령을 수행할때 마다 경고가 뜬다 -_-

검색 결과.. hostname 뿐만 아니라 hosts 까지 수정을 해주어야 하는 듯.


$ cat /etc/hostname

devmini 


$ cat /etc/hosts

127.0.0.1       localhost

127.0.1.1       devmini


# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters 


[링크 : http://gentooboy.tistory.com/238]

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

ubuntu mate  (0) 2015.07.28
Ubuntu 12.04 LTS G1610 CPU 지원 종료  (0) 2015.04.10
xming / gconf / putty 실행불가  (2) 2015.02.24
apt-file  (0) 2015.02.13
ubuntu 10.04 32bit / PAE  (0) 2015.02.13
Posted by 구차니
Linux2015. 3. 3. 20:00

도움말은 다음과 같고

$ iwconfig --help

Usage: iwconfig [interface]

                interface essid {NNN|any|on|off}

                interface mode {managed|ad-hoc|master|...}

                interface freq N.NNN[k|M|G]

                interface channel N

                interface bit {N[k|M|G]|auto|fixed}

                interface rate {N[k|M|G]|auto|fixed}

                interface enc {NNNN-NNNN|off}

                interface key {NNNN-NNNN|off}

                interface power {period N|timeout N|saving N|off}

                interface nickname NNN

                interface nwid {NN|on|off}

                interface ap {N|off|auto}

                interface txpower {NmW|NdBm|off|auto}

                interface sens N

                interface retry {limit N|lifetime N}

                interface rts {N|auto|fixed|off}

                interface frag {N|auto|fixed|off}

                interface modulation {11g|11a|CCK|OFDMg|...}

                interface commit

       Check man pages for more details.


$ iwlist
Usage: iwlist [interface] scanning [essid NNN] [last]
              [interface] frequency
              [interface] channel
              [interface] bitrate
              [interface] rate
              [interface] encryption
              [interface] keys
              [interface] power
              [interface] txpower
              [interface] retry
              [interface] ap
              [interface] accesspoints
              [interface] peers
              [interface] event
              [interface] auth
              [interface] wpakeys
              [interface] genie
              [interface] modulation


일단 따라해보기

$ iwconfig

wlan0     IEEE 802.11bgn  ESSID:off/any

          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm

          Retry short limit:7   RTS thr:off   Fragment thr:off

          Power Management:off


lo        no wireless extensions.


eth0      no wireless extensions.


$ sudo iwconfig wlan0 essid "U+Net2FC7"

$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"U+Net2FC7"
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

lo        no wireless extensions.

eth0      no wireless extensions. 


아이피는 어떻게 얻어오지 -ㅁ-?
(일단은 라즈베리 파이임)

[링크 : http://webterror.net/linux-콘솔상에서-wireless-사용하는-방법/]

[링크 : http://linux.die.net/man/8/iwlist]

[링크 : http://linux.die.net/man/8/iwconfig]

'Linux' 카테고리의 다른 글

쓰레드 / 프로세스  (0) 2015.04.27
리눅스 1분만에 커널 빌드하기  (0) 2015.04.06
리눅스 디스크 복구 / 파티션 복구  (0) 2015.02.12
LD_SHOW_AUXV  (0) 2015.02.10
cpu 활성화 기능 확인하기  (0) 2015.02.06
Posted by 구차니
Linux/Ubuntu2015. 2. 24. 16:57

머가 문제인지 알수가 없네...

xming으로 putty를 통해

gnome의 프로그램들을 실행하려니 에러가 나서 안된다 ㅠㅠ



(nautilus:3124): Eel-WARNING **: GConf 오류:

  설정 서버에 연결하는데 실패했습니다. 원인은 ORBit에 TCP/IP 네트워크를 사용하는 경우이거나, 아니면 시스템의 이상 종료로 인해 NFS 잠금이 동작하지 않게 되었을 경우입니다. 자세한 정보는 <http://projects.gnome.org/gconf/> 페이지를 참조하십시오. (자세한 정보 -  1: 세션에 연결하는데 실패했습니다: Failed to connect to socket /tmp/dbus-9b0J564h9R: 연결이 거부됨)

GConf 경고: `/apps/nautilus/preferences' 내의 쌍들을 열거하는데 실패했습니다: 설정 서버에 연결하는데 실패했습니다. 원인은 ORBit에 TCP/IP 네트워크를 사용하는 경우이거나, 아니면 시스템의 이상 종료로 인해 NFS 잠금이 동작하지 않게 되었을 경우입니다. 자세한 정보는 <http://projects.gnome.org/gconf/> 페이지를 참조하십시오. (자세한 정보 -  1: 세션에 연결하는데 실패했습니다: Failed to connect to socket /tmp/dbus-U3KtDrbQrE: 연결이 거부됨)GConf 경고: `/desktop/gnome/file_views' 내의 쌍들을 열거하는데 실패했습니다: 설정 서버에 연결하는데 실패했습니다. 원인은 ORBit에 TCP/IP 네트워크를 사용하는 경우이거나, 아니면 시스템의 이상 종료로 인해 NFS 잠금이 동작하지 않게 되었을 경우입니다. 자세한 정보는 <http://projects.gnome.org/gconf/> 페이지를 참조하십시오. (자세한 정보 -  1: 세션에 연결하는데 실패했습니다: Failed to connect to socket /tmp/dbus-93Oxw7SK4H: 연결이 거부됨)GConf 경고: `/desktop/gnome/background' 내의 쌍들을 열거하는데 실패했습니다: 설정 서버에 연결하는데 실패했습니다. 원인은 ORBit에 TCP/IP 네트워크를 사용하는 경우이거나, 아니면 시스템의 이상 종료로 인해 NFS 잠금이 동작하지 않게 되었을 경우입니다. 자세한 정보는 <http://projects.gnome.org/gconf/> 페이지를 참조하십시오. (자세한 정보 -  1: 세션에 연결하는데 실패했습니다: Failed to connect to socket /tmp/dbus-FY6UXzfTlV: 연결이 거부됨)


+

어떤 분의 리플로 다시 보니

socket 파일이 /tmp 아래에 있고 퍼미션 거부인것 같은데..

tmp 아래에 접근 권한이 없거나 그룹 문제일지도 모르겠다

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

Ubuntu 12.04 LTS G1610 CPU 지원 종료  (0) 2015.04.10
sudo: unable to resolve host  (0) 2015.03.26
apt-file  (0) 2015.02.13
ubuntu 10.04 32bit / PAE  (0) 2015.02.13
우분투 cpu 클럭 조절 설정 변경하기  (0) 2015.02.12
Posted by 구차니
Linux/Ubuntu2015. 2. 13. 16:55

특정한 파일의 포함된 패키지를 검색하는 유틸 ㄷㄷ


sudo apt-file update

sudo apt-file find sql.h


[링크 : http://stackoverflow.com/questions/15447386/sql-h-header-file-missing-though-unixodbc-is-installed]

Posted by 구차니
Linux/Ubuntu2015. 2. 13. 08:24

ubuntu 10.04 LTS 32bit Desktop edition 에서

6GB 설치된 시스템에 설치하니


$ uname -a

Linux interm-dev 2.6.32-72-generic-pae #139-Ubuntu SMP Wed Jan 14 21:35:19 UTC 2015 i686 GNU/Linux


$ free -g
             total       used       free     shared    buffers     cached
Mem:             5          1          4          0          0          0
-/+ buffers/cache:          0          5
Swap:            8          0          8

이렇게 pae로 자동으로 인식되서 메모리를 다 사용가능하게 된다 ㄷㄷㄷ
예전에 내글을 보니.. 네트워크 설치시에만 pae가 된다고 되어 있는데
그건 또 어디서 찾은거지 -_-


[링크 : http://www.cyberciti.biz/faq/linux-how-to-find-if-processor-is-64-bit-or-not/] 32bit / 64bit 판별

[링크 : https://help.ubuntu.com/community/PAE] forcepae

[링크 : http://egloos.zum.com/calmglow/v/4571486] 우분투의 경우 3GB 이상이면 자동으로 pae 커널로 설치


2011/05/08 - [Linux/Ubuntu] - PAE - Physical Address Extension


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

xming / gconf / putty 실행불가  (2) 2015.02.24
apt-file  (0) 2015.02.13
우분투 cpu 클럭 조절 설정 변경하기  (0) 2015.02.12
intel 내장형 SATA RAID 컨트롤러 /dev/mapping  (0) 2015.02.11
ld.so ?  (0) 2015.02.11
Posted by 구차니
Linux/Ubuntu2015. 2. 12. 17:50

부팅시에 계속 ondemand로 설정되서 먼가 하고 찾아 봤는데

/etc/init.d/ondemand

라고 파일이 똭 -_-


$ cat /etc/init.d/ondemand

#! /bin/sh

### BEGIN INIT INFO

# Provides:          ondemand

# Required-Start:    $remote_fs $all

# Required-Stop:

# Default-Start:     2 3 4 5

# Default-Stop:

# Short-Description: Set the CPU Frequency Scaling governor to "ondemand"

### END INIT INFO



PATH=/sbin:/usr/sbin:/bin:/usr/bin


. /lib/init/vars.sh

. /lib/lsb/init-functions


case "$1" in

    start)

        start-stop-daemon --start --background --exec /etc/init.d/ondemand -- background

        ;;

    background)

        sleep 60 # probably enough time for desktop login


        for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

        do

                [ -f $CPUFREQ ] || continue

                echo -n ondemand > $CPUFREQ

        done

        ;;

    restart|reload|force-reload)

        echo "Error: argument '$1' not supported" >&2

        exit 3

        ;;

    stop)

        ;;

    *)

        echo "Usage: $0 start|stop" >&2

        exit 3

        ;;

esac 


$ ls -al /sys/devices/system/cpu/cpu*/cpufreq/

/sys/devices/system/cpu/cpu0/cpufreq/:

합계 0

drwxr-xr-x 4 root root    0 2015-02-12 17:34 .

drwxr-xr-x 7 root root    0 2015-02-12 17:32 ..

-r--r--r-- 1 root root 4096 2015-02-12 17:43 affected_cpus

-r-------- 1 root root 4096 2015-02-12 17:43 cpuinfo_cur_freq

-r--r--r-- 1 root root 4096 2015-02-12 17:33 cpuinfo_max_freq

-r--r--r-- 1 root root 4096 2015-02-12 17:43 cpuinfo_min_freq

-r--r--r-- 1 root root 4096 2015-02-12 17:43 cpuinfo_transition_latency

drwxr-xr-x 2 root root    0 2015-02-12 17:43 ondemand

-r--r--r-- 1 root root 4096 2015-02-12 17:43 related_cpus

-r--r--r-- 1 root root 4096 2015-02-12 17:33 scaling_available_frequencies

-r--r--r-- 1 root root 4096 2015-02-12 17:43 scaling_available_governors

-r--r--r-- 1 root root 4096 2015-02-12 17:34 scaling_cur_freq

-r--r--r-- 1 root root 4096 2015-02-12 17:43 scaling_driver

-rw-r--r-- 1 root root 4096 2015-02-12 17:34 scaling_governor

-rw-r--r-- 1 root root 4096 2015-02-12 17:33 scaling_max_freq

-rw-r--r-- 1 root root 4096 2015-02-12 17:43 scaling_min_freq

-rw-r--r-- 1 root root 4096 2015-02-12 17:43 scaling_setspeed

drwxr-xr-x 2 root root    0 2015-02-12 17:43 stats 


$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors

conservative ondemand userspace powersave performance 


음.. 깔끔(?) 하게 ondemand파일에서 거버너를 ondemand에서 performance로 해주면 해결?

근데 아무래도 ondemand니까 이름도 바꿔주는게 좋을듯 하다.


[링크 : http://ubuntuforums.org/showthread.php?t=860926]

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

apt-file  (0) 2015.02.13
ubuntu 10.04 32bit / PAE  (0) 2015.02.13
intel 내장형 SATA RAID 컨트롤러 /dev/mapping  (0) 2015.02.11
ld.so ?  (0) 2015.02.11
bash: ./arm-linux-gcc: No such file or directory  (0) 2015.01.12
Posted by 구차니
Linux2015. 2. 12. 16:11

testdisk



[링크 : http://blog.syszone.co.kr/2687]

    [링크 : http://www.cyberciti.biz/tips/understanding-unixlinux-filesystem-superblock.html]

    [링크 : https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout]

[링크: http://www.cgsecurity.org/wiki/TestDisk]

'Linux' 카테고리의 다른 글

리눅스 1분만에 커널 빌드하기  (0) 2015.04.06
리눅스 무선랜 유틸리티 - iwlist iwconfig  (0) 2015.03.03
LD_SHOW_AUXV  (0) 2015.02.10
cpu 활성화 기능 확인하기  (0) 2015.02.06
ntp monlist  (0) 2015.01.22
Posted by 구차니
Linux/Ubuntu2015. 2. 11. 22:17

BIOS에서 SATA를 AHCI 대신 RAID로 하면

Ctrl-I 눌러서 설정에 들어가는데

하드가 두개 뿐이라 RAID-1(mirroring)으로 해주고 우분투를 켜니

/dev/sda

/dev/sdb

뿐만 아니라

/dev/mapper/isw_* 식으로 생성이 된다.

아무튼.. 미묘하게 이상하게 인식되서 나중에 다시..




Beginning with Linux kernel version 2.6.18*, the dmraid* utility 1.0.0-rc15 supports RAID 0, RAID 1, and RAID 10.

Beginning with Linux kernel version 2.6.27*, the mdadm* utility 3.0 supports RAID 0, RAID 1, RAID 10, and RAID 5.

The kernel provides the RAID level support. The utilities support the Intel® Matrix Storage Manager metadata format.

To use the RAID features in dmraid and mdadm, set up the RAID volume using the Intel® Matrix Storage Manager option ROM. To enter the option ROM user interface, click CTRL + I when prompted during boot.

[링크 : http://www.intel.com/support/chipsets/imsm/sb/cs-020663.htm]


my RAID device is listed as /dev/dm-0 (and linked from /dev/mapper/isw_[raid set]_[array's name from BIOS]

[링크 : http://askubuntu.com/questions/87979/configure-mdadm-for-existing-intel-rapid-storage-array]


+

암튼.. intel의 굴욕이라고 해야하나?

BIOS에서 사용하는 RAID는 FakeRAID라고 하고

리눅스에서 커널로 하는건 SoftRAID 라고 한다. 머지 ㅋㅋㅋ


---


[링크 : http://hwangji.kr/sub/dev_leader/link/os/default.aspx?NHBBSID=NHBoardWebTip&NHBBSIDX=33]

[링크 : http://linux.keizie.net/raid]

[링크 : http://en.community.dell.com/.../wiki/4906.installing-ubuntu-server-with-intel-matrix-raid-arrays]

[링크 : https://help.ubuntu.com/community/FakeRaidHowto]

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

ubuntu 10.04 32bit / PAE  (0) 2015.02.13
우분투 cpu 클럭 조절 설정 변경하기  (0) 2015.02.12
ld.so ?  (0) 2015.02.11
bash: ./arm-linux-gcc: No such file or directory  (0) 2015.01.12
ssh 로그인시 apt-check 프로세스 cpu 점유  (0) 2014.12.24
Posted by 구차니
Linux/Ubuntu2015. 2. 11. 15:34

ld.so 는 dynamic linker / loader로

/lib/*.so 나 /usr/lib/*.so 등의 shared object를 끌어오는 역활을 하는 녀석인데

ld.so 라고 해서 검색하니 안나온다 ㅋㅋ


암튼 ubuntu 14.04 LTS 32bit desktop edition에서 검색해보니 아래와 같이 나온다.


lrwxrwxrwx 1 root root     25 Dec  4 11:39 /lib/ld-linux.so.2 -> i386-linux-gnu/ld-2.19.so*

-rwxr-xr-x 1 root root 134380 Dec  4 11:39 /lib/i386-linux-gnu/ld-2.19.so*

lrwxrwxrwx 1 root root     10 Dec  4 11:39 /lib/i386-linux-gnu/ld-linux.so.2 -> ld-2.19.so*



Posted by 구차니
Linux2015. 2. 10. 16:30

CPU의 현재 상태를 확인하는 방법으로

LD_SHOW_AUXV 뒤에 /bin/dd를 했었는데

실제로는 어떠한 명령어를 주던 상관이 없다 -_-!!


그래서 어떤 원리인가 궁금해서 찾아보니

ld.so 에서 관할하는 영역...


LD_SHOW_AUXV

              (glibc since 2.1) Show auxiliary array passed up from the

              kernel.  For security reasons, since glibc 2.3.5, LD_SHOW_AUXV

              is ignored for set-user-ID/set-group-ID binaries.


[링크 : http://man7.org/linux/man-pages/man8/ld.so.8.html] 


[링크 : http://articles.manugarg.com/aboutelfauxiliaryvectors.html]

[링크 : http://lwn.net/Articles/519085/]

'Linux' 카테고리의 다른 글

리눅스 무선랜 유틸리티 - iwlist iwconfig  (0) 2015.03.03
리눅스 디스크 복구 / 파티션 복구  (0) 2015.02.12
cpu 활성화 기능 확인하기  (0) 2015.02.06
ntp monlist  (0) 2015.01.22
top manpage  (0) 2014.12.30
Posted by 구차니