奇現諸葛賢深亮鄭賢基

simryang.egloos.com


포토로그 마이가든 방명록


유닉스에서 ctrl 키로 터미널 간단하게 제어하기 archlinux

ctrl-s가 화면을 멈추는 것만 알고 있다가 아치 리눅스 설치하면서 잠시 이전 기록을 볼 일이 있어서 사용해서 보고 났더니 다시 화면이 움직이지 않았다. ctrl-s, enter, space 등의 그 어떤 키도 재개 시키지 못했다.
그래서 ctrl s ctrl q 라고 구골한테 물어봐서 문제를 해결했다.

유닉스에서 사용되는 제어키(control, ctrl) 목록에서 답을 찾으면 되겠다.
ctrl-s 화면을 멈추게 한다.
ctrl-q 멈춰진 화면을 다시 움직이게 한다.
ctrl-c 프로그램에게 중지 신호를 보낸다.
ctrl-\ ctrl-c 와 같은 기능이나 좀 더 강력하다. 터미널이 응답하지 않는 경우에 쓰인다.
ctrl-z 현재 실행되는 프로세스를 일시 중지(suspend) 시킨다. fg 명령으로 다시 현재 사용자가 다시 실행시키거나 bg 명령으로 배경 프로세스로 실행되게 할 수 있다.
ctrl-h BS(backspace)키와 동일한 기능을 한다. 마지막에 입력된 한 글자를 지운다.
ctrl-w 마지막에 입력된 한 단어를 지운다.
ctrl-u 마지막에 입력된 한 줄을 지운다.
ctrl-r 마지막에 입력된 한 줄을 다시 보여준다.
ctrl-d 텍스트 입력을 끝낸다.

Go to the previous, next section.

apt-cache 옵션 목록 ubuntu

이것을 작성한 이유는 지금까지 우분투에서 sudo dpkg -l|grep 패키지이름 명령으로 원하는 패키지를 검색했었는데 할 때마다 암호 입력해야하고 이래 저래 불편했었다. 그런데.. apt-cache search 밖에 기능을 몰라 그 기능 외엔 버렸던 apt-cache 에 로컬에 설치된 패키지 이름을 손쉽게 일반 사용자 권한으로 검색 가능한 기능이 이미 있었다..
apt-cache pkgnames 패키지이름 명령이면 관리자 권한도 필요없고 파이프 쓸 필요도 없다...
콘솔에서 아무 옵션 없이 apt-cache를 실행시킨 결과이다.
사용법: apt-cache [옵션] 명령
        apt-cache [옵션] add 파일1 [파일2 ...]
        apt-cache [옵션] showpkg 패키지1 [패키지2 ...]
        apt-cache [옵션] showsrc 패키지1 [패키지2 ...]
apt-cache는 APT의 바이너리 캐시 파일을 처리하고, 캐시 파일에
정보를 질의하는 저수준 도구입니다.
명령:
   add - 소스 캐시에 패키지 파일을 추가합니다
   gencaches - 패키지 캐시 및 소스 캐시를 만듭니다
   showpkg - 한 개의 패키지에 대한 일반적인 정보를 봅니다
   showsrc - 소스 기록을 봅니다
   stats - 기본적인 통계를 봅니다
   dump - 전체 파일을 간략한 형태로 봅니다
   dumpavail - 사용 가능한 파일을 표준출력에 표시합니다
   unmet - 맞지 않는 의존성을 봅니다
   search - 정규식 패턴에 맞는 패키지 목록을 찾습니다
   show - 패키지에 대해 읽을 수 있는 기록을 봅니다
   showauto - 자동으로 설치한 패키지 목록을 표시합니다
   depends - 패키지에 대해 의존성 정보를 그대로 봅니다
   rdepends - 패키지의 역 의존성 정보를 봅니다
   pkgnames - 시스템에 들어 있는 패키지의 이름을 모두 봅니다
   dotty - GraphViz용 패키지 그래프를 만듭니다
   xvcg - xvcg용 패키지 그래프를 만듭니다
   policy - 정책 설정을 봅니다
옵션:
  -h   이 도움말.
  -p=? 패키지 캐시.
  -s=? 소스 캐시.
  -q   상태 표시를 하지 않습니다.
  -i   unmet 명령에서 중요한 의존성만 봅니다.
  -c=? 지정한 설정 파일을 읽습니다.
  -o=? 임의의 옵션을 설정합니다. 예를 들어 -o dir::cache=/tmp
좀 더 자세한 정보는 apt-cache(8) 및 apt.conf(5) 매뉴얼 페이지를 보십시오.
다음은 man apt-cache 한 결과 중 옵션에 관한 설명
     showsrc pkg(s)                                                           
       showsrc displays all the source package records that match the
       given package names. All versions are shown, as well as all records
       that declare the name to be a Binary.
       dump
       dump shows a short listing of every package in the cache. It is
       primarily for debugging.
       dumpavail
       dumpavail prints out an available list to stdout. This is suitable
       for use with dpkg(1) and is used by the dselect(1) method.
       unmet
       unmet displays a summary of all unmet dependencies in the package
       cache.
       show pkg(s)
       show performs a function similar to dpkg --print-avail; it displays
       the package records for the named packages.
       search regex [ regex ... ]
       search performs a full text search on all available package lists
       for the POSIX regex pattern given, see regex(7). It searches the
       package names and the descriptions for an occurrence of the regular
       e-pression and prints out the package name and the short
       description, including virtual package names. If --full is given
       then output identical to show is produced for each matched package,
       and if --names-only is given then the long description is not
       searched, only the package name is.
       Separate arguments can be used to specify multiple search patterns
       that are and'ed together.
       depends pkg(s)
       depends shows a listing of each dependency a package has and all
       the possible other packages that can fulfill that dependency.
       rdepends pkg(s)
       rdepends shows a listing of each reverse dependency a package has.
       pkgnames [ prefix ]
       This command prints the name of each package APT knows. The
       optional argument is a prefix match to filter the name list. The
       output is suitable for use in a shell tab complete function and the
       output is generated extremely quickly. This command is best used
       with the --generate option.
       Note that a package which APT knows of is not necessarily available
       to download, installable or installed, e.g. virtual packages are
       also listed in the generated list.
       dotty pkg(s)
       dotty takes a list of packages on the command line and generates
       output suitable for use by dotty from the GraphViz[1] package. The
       result will be a set of nodes and edges representing the
       relationships between the packages. By default the given packages
       will trace out all dependent packages; this can produce a very
       large graph. To limit the output to only the packages listed on the
       command line, set the APT::Cache::GivenOnly option.
       The resulting nodes will have several shapes; normal packages are
       boxes, pure provides are triangles, mixed provides are diamonds,
       missing packages are hexagons. Orange boxes mean recursion was
       stopped [leaf packages], blue lines are pre-depends, green lines
       are conflicts.
       Caution, dotty cannot graph larger sets of packages.
       xvcg pkg(s)
       The same as dotty, only for xvcg from the VCG tool[2].
       policy [ pkg(s) ]
       policy is meant to help debug issues relating to the preferences
       file. With no arguments it will print out the priorities of each
       source. Otherwise it prints out detailed information about the
       priority selection of the named package.
       madison /[ pkg(s) ]
       apt-cache's madison command attempts to mimic the output format and
       a subset of the functionality of the Debian archive management
       tool, madison. It displays available versions of a package in a
       tabular format. Unlike the original madison, it can only display
       information for the architecture for which APT has retrieved
       package lists (APT::Architecture).

archlinux firefox 설치하기 smart phone

sudo pacman -S firefox firefox-i18n

우분투 바탕화면 위젯 screenlets

내가 우분투에서 바탕화면 쪽지를 사용하기 위해 설치하는 프로그램이 있다. screenlets 이다.
시냅틱 패키지 관리자에서 검색해서 설치하거나 명령창(console)에서는 다음과 같이 설치한다.

sudo apt-get install screenlets

설치가 완료되면 보조프로그램에 등록이 된다.

실행시키면 사용할 수 있는 위젯 목록이 뜨고 원하는 위젯을 Launch/Add 를 선택해서 실행시키면된다.
여기서 쪽지는 Notes이다.

문제가 하나 있다. 빈 쪽지를 눌러 입력하면 한글이 입력되지 않는다.
이런 이유로 빈 쪽지에서 마우스 오른쪽 버튼을 눌러 나오는 메뉴에서 Edit를 선택해서 입력하면 한글을 입력할 수 있다.
쪽지 창의 길이도 조절되지 않는다. 원하는 내용을 여러 쪽지에 나눠놓는게 정신 건강에 좋다.

나머지 기능은 좀 더 써보면서 보강할 예정이다.

해 - 박두진

-박두진

 

해야 솟아라. 해야 솟아라. 말갛게 씻은 얼굴 고운 해야 솟아라. 산 넘어 산 넘어서 어둠을 살라 먹고, 산 넘어서 밤새도록 어둠을 살라 먹고, 이글이글 앳된 얼굴 고운 해야 솟아라.

 

달밤이 싫여, 달밤이 싫여, 눈물 같은 골짜기에 달밤이 싫여, 아무도 없는 뜰에 달밤이 나는 싫여……,

 

해야, 고운 해야. 늬가 오면 늬가사 오면, 나는 나는 청산이 좋아라. 훨훨훨 깃을 치는 청산이 좋아라. 청산이 있으면 홀로래도 좋아라,

 

사슴을 따라, 사슴을 따라, 양지로 양지로 사슴을 따라 사슴을 만나면 사슴과 놀고,

 

칡범을 따라 칡범을 따라 칡범을 만나면 칡범과 놀고,……

 

해야, 고운 해야. 해야 솟아라. 꿈이 아니래도 너를 만나면, 꽃도 새도 짐승도 한자리 앉아, 워어이 워어이 모두 불러 한자리 앉아 앳되고 고운 날을 누려 보리라.

 

<해, 청만사, 1949>


1 2 3