'ubuntu'에 해당되는 글 5건

  1. 2014.06.02 Knife bootstrap failed only with "Connection closed by remote host"
  2. 2014.06.02 Linux SSH Session Timeout Setting
  3. 2012.05.04 Install sun java 6 on Ubuntu 10.04 LTS
  4. 2012.01.28 설치된 패키지 정보 추출
  5. 2011.02.28 [Ubuntu] 설치된 패키지(소프트웨어) 확인
2014. 6. 2. 06:56

Knife bootstrap failed only with "Connection closed by remote host"

Knife bootstrap beyond a jump host failed just showing following log:



 DEBUG: Adding xx.xx.xxx.xxx

DEBUG: establishing connection to 127.0.0.1:xxxxxx

DEBUG: connection established

INFO: negotiation protocol version

ERROR: Net::SSH:Disconnect: connection closed by remote host


To resolve this, change ssh config as below on the jump host:


sudo vi /etc/ssh/sshd_config


 AllowTcpForwading yes


And restart ssh service.

2014. 6. 2. 06:42

Linux SSH Session Timeout Setting

Our project faced a very weird problem that SSH.Net cannot get the exit event after 10 minutes. Though the command was finished, SSH.Net was waiting for its completion.


The reason was caused by the time-out of the ssh session. To increase this, set it as below.


sudo vi /etc/ssh/sshd_config


# 300 secons

ClientAliveInterval 300

# 300 * (12) MAX 1 HOUR

ClientAliveCountMax 12


$ sudo service ssh restart


After this, it worked well.

2012. 5. 4. 00:16

Install sun java 6 on Ubuntu 10.04 LTS

출처: http://crazia.tistory.com/773


http://source.android.com 에 나오는 방법대로 해도 java6 가 설치되지 않았습니다. 이에 대한 해결책은 다음과 같습니다.


$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ferramroberto/java
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk sun-java6-plugin


2012. 1. 28. 23:27

설치된 패키지 정보 추출

가끔 설치된 패키지에 대한 정보를 얻고 싶을 때가 있습니다. 예를 들면 tomcat6 를 설치했는데 이 녀석들이 당췌 어디에 깔렸는지를 알수가 없을 때입니다. 여러 매뉴얼을 보면 tomcat의 특정 파일을 수정하라고 하는데 이 녀석이 어디에 깔리는 지를 모르니 이것 참 답답하더군요. 그래서 혹시나 해서 설치된 패키지에 대한 정보를 추출하는 방법이 없을까 라는 호기심을 가지고 구글링을 해보았습니다. 

역시나 구글신님은 아주 유용한 정보를 제공해 주었습니다.

dpkg -L tomcat6 라는 명령이 바로 그것입니다. 결과는 아래와 같습니다.

sskk@ubuntu:/usr/opengrok/bin$ dpkg -L tomcat6
/.
/var
/var/log
/var/log/tomcat6
/var/lib
/var/lib/tomcat6
/var/lib/tomcat6/webapps
/var/lib/tomcat6/common
/var/lib/tomcat6/common/classes
/var/lib/tomcat6/server
/var/lib/tomcat6/server/classes
/var/lib/tomcat6/shared
/var/lib/tomcat6/shared/classes
/var/cache
/var/cache/tomcat6
/etc
/etc/tomcat6
/etc/tomcat6/Catalina
/etc/tomcat6/Catalina/localhost
/etc/tomcat6/catalina.properties
/etc/tomcat6/logging.properties
/etc/tomcat6/context.xml
/etc/tomcat6/server.xml
/etc/tomcat6/tomcat-users.xml
/etc/tomcat6/web.xml
/etc/tomcat6/policy.d
/etc/tomcat6/policy.d/01system.policy
/etc/tomcat6/policy.d/02debian.policy
/etc/tomcat6/policy.d/03catalina.policy
/etc/tomcat6/policy.d/04webapps.policy
/etc/tomcat6/policy.d/50local.policy
/etc/init.d
/etc/init.d/tomcat6
/etc/cron.daily
/etc/cron.daily/tomcat6
/usr
/usr/share
/usr/share/doc
/usr/share/doc/tomcat6
/usr/share/doc/tomcat6/copyright
/usr/share/doc/tomcat6/changelog.Debian.gz
/usr/share/tomcat6-root
/usr/share/tomcat6-root/default_root
/usr/share/tomcat6-root/default_root/index.html
/usr/share/tomcat6-root/default_root/META-INF
/usr/share/tomcat6-root/default_root/META-INF/context.xml
/usr/share/tomcat6
/usr/share/tomcat6/defaults.template
/usr/share/tomcat6/defaults.md5sum
/var/lib/tomcat6/logs
/var/lib/tomcat6/work
/var/lib/tomcat6/conf
/usr/share/doc/tomcat6/README.Debian.gz


그리고 dpkg -l tomcat6 는 패키지 리스트를 보여줍니다. 결과는 아래와 같습니다.
sskk@ubuntu:/usr/opengrok/bin$ dpkg -l tomcat6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version           Description
+++-=================-=================-==================================================
ii  tomcat6           6.0.28-2ubuntu1.5 Servlet and JSP engine

그리고 aptch-cache search 를 이용하는 방법이 있는데 이 명령의 결과는 다음과 같습니다.

sskk@ubuntu:/usr/opengrok/bin$ apt-cache search tomcat6
libtomcat6-java - Servlet and JSP engine -- core libraries
tomcat6 - Servlet and JSP engine
tomcat6-admin - Servlet and JSP engine -- admin web applications
tomcat6-common - Servlet and JSP engine -- common files
tomcat6-docs - Servlet and JSP engine -- documentation
tomcat6-examples - Servlet and JSP engine -- example web applications
tomcat6-user - Servlet and JSP engine -- tools to create user instances


2011. 2. 28. 12:16

[Ubuntu] 설치된 패키지(소프트웨어) 확인

설치된 패키지(또는 소프트웨어)를 확인하는 방법에는 여러가지가 있습니다.

$ apt-cache search [패키지명]

원하는 패키지를 찾습니다.

$ apt-cache show [패키지명]

원하는 패키지 찾은 다음 그에 대한 정보를 출력하는 명령입니다.

$ aptitude -v

메뉴를 이용하여 원하는 패키지를 찾을 수 있습니다. 문제는 SecureCRT 와 같은 도구를 이용할 때 제대로 보이지 않음.

참고: