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 구차니
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 구차니
Linux/Ubuntu2015. 1. 12. 17:59

분명히 존재하는 녀석인데 안되서 멘붕 -_-

찾아보니.. libc6-i386 과 같이

64bit OS에 32bit 실행환경을 추가해주면 된다고 하니 실험은 해봐야지..


---

헐.. 레알이다?!?!?!

$ sudo apt-get install libc6-i386

$ ./arm-fsl-linux-gnueabi-gcc

arm-fsl-linux-gnueabi-gcc: no input files



$ sudo apt-get remove libc6-i386

$ ./arm-fsl-linux-gnueabi-gcc

bash: ./arm-fsl-linux-gnueabi-gcc: No such file or directory



[링크 : http://askubuntu.com/questions/133389/no-such-file-or-directory-but-the-file-exists]

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

intel 내장형 SATA RAID 컨트롤러 /dev/mapping  (0) 2015.02.11
ld.so ?  (0) 2015.02.11
ssh 로그인시 apt-check 프로세스 cpu 점유  (0) 2014.12.24
manpath  (0) 2014.12.07
ctrl - alt - t 로 터미널 실행  (0) 2014.09.04
Posted by 구차니
Linux/Ubuntu2014. 12. 24. 13:36

로그인 시에 환영 메시지로 패키지 업데이트 갯수라던가를 알려주다 보니

/etc/ssh/sshd_config 에서 UseDNS no를 해주어도 지연되는 문제가 발생한다.

물론.. 업데이트 잘 해주고 그러면 문제 없겠지만 안되어 있다면.. 꺼주는 수 밖에?


login as: minimonk

minimonk@192.168.1.14's password:

Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-15-generic i686)


 * Documentation:  https://help.ubuntu.com/


261 packages can be updated.

150 updates are security updates.


Last login: Wed Dec 24 12:15:49 2014


일단.. 로그인이 무언가.... 허전해 지지만
pam_motd.so를 주석 처리 함으로서 ssh를 로그인 할때 motd를 갱신하면서 apt-check를 생략하기 때문에
조금은 더 빠르게 진행이 가능해진다.

$ sudo vi /etc/pam.d/sshd

# Print the message of the day upon successful login.

#session    optional     pam_motd.so # [1]


[링크 : https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/525674]



+

위의 무식(!) 한 방법을 제외하면

로그인 쉘이라던가 여러곳에서 motd를 갱신할때 90번과 91번에 대해서 제거를 해주면 될 듯 하다.

cpu 부하는 90번만 삭제해도 된다.


단, .90 이라던가 이렇게 이름만 바꾸어도 실행은 되니(디렉토리 전체 실행으로 보임)

#으로 주석처리하는걸 추천한다.

/etc/update-motd.d$ cat 90-updates-available

#!/bin/sh


if [ -x /usr/lib/update-notifier/update-motd-updates-available ]; then

    exec /usr/lib/update-notifier/update-motd-updates-available

fi


/etc/update-motd.d$ cat 91-release-upgrade

#!/bin/sh


if [ -x /usr/lib/update-manager/release-upgrade-motd ]; then

    exec /usr/lib/update-manager/release-upgrade-motd

fi



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

ld.so ?  (0) 2015.02.11
bash: ./arm-linux-gcc: No such file or directory  (0) 2015.01.12
manpath  (0) 2014.12.07
ctrl - alt - t 로 터미널 실행  (0) 2014.09.04
우분투에서 특정 패키지의 업데이트 금지하기  (0) 2014.09.03
Posted by 구차니
Linux/Ubuntu2014. 12. 7. 23:02
man 페이지의 저장 경로는..
한군데가 아니라 은근 여러군데 인 듯..

그래도 우분투 계열에서 주로 사용하는 경로는
/usr/share/man
/usr/local/man
/usr/local/share/man 
정도?

$ manpath
/usr/local/man:/usr/local/share/man:/usr/share/man 

$ cat /etc/manpath.config
# manpath.config
#
# This file is used by the man-db package to configure the man and cat paths.
# It is also used to provide a manpath for those without one by examining
# their PATH environment variable. For details see the manpath(5) man page.
#
# Lines beginning with `#' are comments and are ignored. Any combination of
# tabs or spaces may be used as `whitespace' separators.
#
# There are three mappings allowed in this file:
# --------------------------------------------------------
# MANDATORY_MANPATH                     manpath_element
# MANPATH_MAP           path_element    manpath_element
# MANDB_MAP             global_manpath  [relative_catpath]
#---------------------------------------------------------
# every automatically generated MANPATH includes these fields
#
#MANDATORY_MANPATH                      /usr/src/pvm3/man
#
MANDATORY_MANPATH                       /usr/man
MANDATORY_MANPATH                       /usr/share/man
MANDATORY_MANPATH                       /usr/local/share/man
#---------------------------------------------------------
# set up PATH to MANPATH mapping
# ie. what man tree holds man pages for what binary directory.
#
#               *PATH*        ->        *MANPATH*
#
MANPATH_MAP     /bin                    /usr/share/man
MANPATH_MAP     /usr/bin                /usr/share/man
MANPATH_MAP     /sbin                   /usr/share/man
MANPATH_MAP     /usr/sbin               /usr/share/man
MANPATH_MAP     /usr/local/bin          /usr/local/man
MANPATH_MAP     /usr/local/bin          /usr/local/share/man
MANPATH_MAP     /usr/local/sbin         /usr/local/man
MANPATH_MAP     /usr/local/sbin         /usr/local/share/man
MANPATH_MAP     /usr/X11R6/bin          /usr/X11R6/man
MANPATH_MAP     /usr/bin/X11            /usr/X11R6/man
MANPATH_MAP     /usr/games              /usr/share/man
MANPATH_MAP     /opt/bin                /opt/man
MANPATH_MAP     /opt/sbin               /opt/man
#---------------------------------------------------------
# For a manpath element to be treated as a system manpath (as most of those
# above should normally be), it must be mentioned below. Each line may have
# an optional extra string indicating the catpath associated with the
# manpath. If no catpath string is used, the catpath will default to the
# given manpath.
#
# You *must* provide all system manpaths, including manpaths for alternate
# operating systems, locale specific manpaths, and combinations of both, if
# they exist, otherwise the permissions of the user running man/mandb will
# be used to manipulate the manual pages. Also, mandb will not initialise
# the database cache for any manpaths not mentioned below unless explicitly
# requested to do so.
#
# In a per-user configuration file, this directive only controls the
# location of catpaths and the creation of database caches; it has no effect
# on privileges.
#
# Any manpaths that are subdirectories of other manpaths must be mentioned
# *before* the containing manpath. E.g. /usr/man/preformat must be listed
# before /usr/man.
#
#               *MANPATH*     ->        *CATPATH*
#
MANDB_MAP       /usr/man                /var/cache/man/fsstnd
MANDB_MAP       /usr/share/man          /var/cache/man
MANDB_MAP       /usr/local/man          /var/cache/man/oldlocal
MANDB_MAP       /usr/local/share/man    /var/cache/man/local
MANDB_MAP       /usr/X11R6/man          /var/cache/man/X11R6
MANDB_MAP       /opt/man                /var/cache/man/opt
#
#---------------------------------------------------------
# Program definitions.  These are commented out by default as the value
# of the definition is already the default.  To change: uncomment a
# definition and modify it.
#
#DEFINE         pager   pager -s
#DEFINE         cat     cat
#DEFINE         tr      tr '\255\267\264\327' '\055\157\047\170'
#DEFINE         grep    grep
#DEFINE         troff   groff -mandoc
#DEFINE         nroff   nroff -mandoc
#DEFINE         eqn     eqn
#DEFINE         neqn    neqn
#DEFINE         tbl     tbl
#DEFINE         col     col
#DEFINE         vgrind  vgrind
#DEFINE         refer   refer
#DEFINE         grap    grap
#DEFINE         pic     pic -S
#
#DEFINE         compressor      gzip -c7
#---------------------------------------------------------
# Misc definitions: same as program definitions above.
#
#DEFINE         whatis_grep_flags               -i
#DEFINE         apropos_grep_flags              -iEw
#DEFINE         apropos_regex_grep_flags        -iE
#---------------------------------------------------------
# Section names. Manual sections will be searched in the order listed here;
# the default is 1, n, l, 8, 3, 0, 2, 5, 4, 9, 6, 7. Multiple SECTION
# directives may be given for clarity, and will be concatenated together in
# the expected way.
# If a particular extension is not in this list (say, 1mh), it will be
# displayed with the rest of the section it belongs to. The effect of this
# is that you only need to explicitly list extensions if you want to force a
# particular order. Sections with extensions should usually be adjacent to
# their main section (e.g. "1 1mh 8 ...").
#
SECTION         1 n l 8 3 2 3posix 3pm 3perl 5 4 9 6 7
#
#---------------------------------------------------------
# Range of terminal widths permitted when displaying cat pages. If the
# terminal falls outside this range, cat pages will not be created (if
# missing) or displayed.
#
#MINCATWIDTH    80
#MAXCATWIDTH    80
#
# If CATWIDTH is set to a non-zero number, cat pages will always be
# formatted for a terminal of the given width, regardless of the width of
# the terminal actually being used. This should generally be within the
# range set by MINCATWIDTH and MAXCATWIDTH.
#
#CATWIDTH       0
#
#---------------------------------------------------------
# Flags.
# NOCACHE keeps man from creating cat pages.
#NOCACHE 

[링크 : http://gsp.com/cgi-bin/man.cgi?section=1&topic=manpath]
Posted by 구차니
Linux/Ubuntu2014. 9. 4. 09:22
회사 옮기고 첨 알은 단축키 ㄷㄷ
일단 metacity에서 단축키로 기본 등록이 된 것으로 보이는데..
Ubuntu 10.04 LTS 기준으로는
시스템 - 기본 설정 - 키보드 바로 가기에 설정이 존재한다.



[링크 : http://askubuntu.com/questions/133718/how-do-i-unbind-ctrl-alt-t]
Posted by 구차니