'ubuntu'에 해당되는 글 5건
- 2014.06.02 Knife bootstrap failed only with "Connection closed by remote host"
- 2014.06.02 Linux SSH Session Timeout Setting
- 2012.05.04 Install sun java 6 on Ubuntu 10.04 LTS
- 2012.01.28 설치된 패키지 정보 추출
- 2011.02.28 [Ubuntu] 설치된 패키지(소프트웨어) 확인
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.
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.
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
설치된 패키지 정보 추출
역시나 구글신님은 아주 유용한 정보를 제공해 주었습니다.
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
[Ubuntu] 설치된 패키지(소프트웨어) 확인
$ apt-cache search [패키지명]
$ apt-cache show [패키지명]
$ aptitude -v