Entries from 2013-05-01 to 1 month

vino設定

vino-preferences

sshd ポートの設定

【sshd】ポートの設定 pオプション 接続を受け付けるポートの指定(デフォルト=22番). 以下のように複数のポートを受け付けることが可能(sshd の設定ファイルは /etc/ssh/sshd_config). Port 22 #デフォルト Port 10000 #追加分 変更後,sshd を再起…

`require': cannot load such file -- openssl (LoadError)

sudo apt-get install libssl-dev rvm remove 2.0.0 # get rid of unsuccessful installation rvm get head --autolibs=3 # get the latest RVM and build required libs rvm requirements # just in case, install all other required stuff rvm reinstall …

remote lubuntu LXDE session tightvnc vncclient vino

https://help.ubuntu.com/community/VNC/ServersLXDE session automatically after tightvncserver starts to make me able see desktop when connecting to the host via vncclient? http://askubuntu.com/questions/178962/how-to-start-lxde-session-auto…

例外の発生した場所/行番号をメッセージで出力してみる

組み込み変数の$@を使う。begin open("notfound.txt", "r") do |file| puts file.readlines end rescue puts $@ end ファイル名、行数、メソッド名が出力される。morningcoffee.rb:2:in `initialize'

sftp ruby command line

Net::SFTP.start('host', 'username', :password => 'password') do |sftp| # upload a file or directory to the remote host sftp.upload!("/path/to/local", "/path/to/remote") # download a file or directory from the remote host sftp.download!("/p…