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 구차니
Linux/Ubuntu2014. 9. 3. 10:31
hold 라고 하는데.
ubuntu 10.04 LTS에서 찾아보니..

apt-mark로 처리가 가능한 것으로 보인다.
NAME
       apt-mark - mark/unmark a package as being automatically-installed

SYNOPSIS
       apt-mark [-hv] [-f=FILENAME] {markauto | unmarkauto} package...  | showauto

DESCRIPTION
       apt-mark will change whether a package has been marked as being automatically installed.

       When you request that a package is installed, and as a result other packages are installed
       to satisfy its dependencies, the dependencies are marked as being automatically installed.
       Once these automatically installed packages are no longer depended on by any manually
       installed packages, they will be removed by e.g.  apt-get or aptitude.

       markauto
           markauto is used to mark a package as being automatically installed, which will cause
           the package to be removed when no more manually installed packages depend on this
           package.

       unmarkauto
           unmarkauto is used to mark a package as being manually installed, which will prevent
           the package from being automatically removed if no other packages depend on it.

       showauto
           showauto is used to print a list of automatically installed packages with each package
           on a new line.
 

문제는..
apt-get에서 --ignore-hold 라는게 있다는 점 -_-a 
      --ignore-hold
           Ignore package Holds; This causes apt-get to ignore a hold placed on a package. This
           may be useful in conjunction with dist-upgrade to override a large number of undesired
           holds. Configuration Item: APT::Ignore-Hold.
 
[링크: http://askubuntu.com/questions/18654/how-to-prevent-updating-of-a-specific-package]

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

manpath  (0) 2014.12.07
ctrl - alt - t 로 터미널 실행  (0) 2014.09.04
Ubuntu 14.04 LTS desktop 64bit edition  (0) 2014.06.14
우분트 포트란 패키지  (4) 2014.06.13
우분투 설치된 패키지 목록 얻기  (0) 2014.05.24
Posted by 구차니
Linux/Ubuntu2014. 6. 14. 22:36

귀찮아서.. VMware로 설치
심심해서 실험적으로 실행해봤더니..
lightgdm 끄니 대략 320메가 먹고(no Xwin)


lightgdm 켜니 대략 500메가 먹는다(with Xwin)


XFCE 포함된 xubuntu나 언넝 받아서 깔아서 테스트 해봐야지..
메모리 너무 먹고.. Gnome 느린거 같아 -_-a
아톰에서 버벅대는건 여전할지도.. 


Xubuntu 64bit
lightgdm(xfce) 끄니 530 메가


lightgdm 켜니 680 메가 ㄷㄷ

 
XFCE 자체 응답 속도가 어떤지에 따라서. Xubuntu 보다는 Ubuntu 가 나을지도 모르겠다. 

---
Kubuntu
Xwin 끄면 650 메가


Xwin 켜면 920 메가 ㄷㄷㄷㄷ 이게 쓰라고 만든겨?


  
Posted by 구차니
Linux/Ubuntu2014. 6. 13. 23:25
gfortran(fortran 95)
fort77(fortran 77) 두가지가 있는데
fort77은 c/c++로 변환한걸 실행해주는 랩퍼라고 해야 하려나?
엄밀한 의미로의 포트란 컴파일러는 gfortran 뿐인듯..




 

[링크 : http://askubuntu.com/questions/179256/how-do-i-install-a-fortran-77-compiler]
Posted by 구차니
Linux/Ubuntu2014. 5. 24. 12:24
dpkg는 별다른건 없고
패키지 명에 대해서 install 이라는 내용만 붙어 나온다.
abiword                                         install
abiword-common                                  install
abiword-plugin-grammar                          install
abiword-plugin-mathview                         install
accountsservice                                 install
acl                                             install
acpi-support                                    install
acpid                                           install
activity-log-manager-common                     install 

그리고 source.list는
패키지 저장소 경로만 추가되어 있다.
deb http://archive.ubuntu.com/ubuntu precise main restricted
deb-src http://archive.ubuntu.com/ubuntu precise main multiverse universe #Added by software-properties

$ dpkg --get-selections > mypackages.txt
$ cp /etc/apt/sources.list ./sources.list

[링크 : http://blog.naver.com/5bpa/130127985877

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

Ubuntu 14.04 LTS desktop 64bit edition  (0) 2014.06.14
우분트 포트란 패키지  (4) 2014.06.13
ubuntu 14.04 LTS!!!  (0) 2014.04.19
Ubuntu 14.04 LTS 공개가 코앞에!!  (0) 2014.04.16
범블비 - bumblebee (Nvidia Optimus)  (0) 2013.09.19
Posted by 구차니
Linux/Ubuntu2014. 4. 19. 00:03
당연한 추세겠지만..
서버는 이제 64bit only!!!



Posted by 구차니
Linux/Ubuntu2014. 4. 16. 02:53
어디 시간인 기준인지 모르겠다만.. 아무튼 17일날 2014년 LTS 공개!!!
부디 가볍게 구성되었길 ㅠㅠ
그리고 Gnome 제발.. 구버전 형태의 기본 윈도우 매니저로 돌아오길 ㅠㅠ

 London 15th April 2014: Canonical today announces Ubuntu 14.04 LTS will be released on 17th April 2014, bringing a new level of reliability, performance and interoperability to cloud and scale out environments with support and maintenance for five years.

[링크 : http://insights.ubuntu.com/news/ubuntu-14-04-lts-the-cloud-platform-of-choice/

Posted by 구차니
Linux/Ubuntu2013. 9. 19. 21:22
윈도우에서는 옵티머스를 통해 Nvidia의 그래픽과 intel 내장형 HD3000/4000 등과 스위치가 가능한데
리눅스는 여전히 안될줄 알았더니
2011년 8월 4일 이후 범블비 프로젝트에 nvidia가 지원을 하면서 안되진 않는데
이건 되는것도 안되는것도 아니여 라는 껄쩍찌근한 반응을 보니..


[링크 : https://wiki.ubuntu.com/Bumblebee]
[링크 : https://launchpad.net/~bumblebee]

[링크 : http://deviantcj.tistory.com/467]
[링크 : http://edoli.tistory.com/120]
[링크 : http://gigglehd.com/zbxe/9432956]
Posted by 구차니