Entries from 2014-01-01 to 1 year

さくらのVPSでUbuntu

http://support.sakura.ad.jp/manual/vps/cpanel/custom.html http://support.sakura.ad.jp/manual/vps/cpanel/custom_ubuntu1204.htmlhttps://gihyo.jp/admin/serial/01/ubuntu-recipe/0322ファイヤーウォール http://toshitanian.hatenablog.com/entry/201…

さくらのVPN Ubuntu server 12.04 最初にする設定

http://ik-fib.com/2013/10/sakura-cloud-default-setting/ http://qiita.com/tanaka51/items/cc101445a1958fa9e6f6 http://knowledge.sakura.ad.jp/beginner/1126/ssh周りの設定 使用ポート番号の変更 rootでのログイン禁止 パスワードログイン禁止

FreeNX on ubuntu 12.04

sudo add-apt-repository -y ppa:freenx-team sudo apt-get update sudo apt-get install -y freenx freenx-serverwget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gztar -xvf nxsetup.tar.gz sudo cp n…

Initial Server Setup with Ubuntu 12.04 | DigitalOcean

https://cloud.digitalocean.com/droplets https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-12-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 https://www.digitalocean.com/communi…

NX3 xfce

sudo apt-get update sudo apt-get install --no-install-recommends xubuntu-desktop sudo apt-get install xfce4 sudo nano /usr/NX/etc/node.cfg CommandStartGnome = "/usr/bin/X11/startxfce4"

NX3 SSH change port

sudo nano /etc/ssh/sshd_config Port 2222 reload sshsudo nano /usr/NX/etc/node.cfg SSHDPort = "2222"sudo nano /usr/NX/etc/server.cfg SSHDPort = "2222" SSHDAuthPort = "2222" sudo /usr/NX/bin/nxserver --restart

ubuntu 12.04 Watir Selenium "Unable to obtain stable firefox connection in 60 seconds" match webdriver version and firefox version

http://stackoverflow.com/questions/14303161/unable-to-obtain-stable-firefox-connection-in-60-seconds-127-0-0-17055webdriver compatibilityhttp://selenium.googlecode.com/git/rb/CHANGESfirefox version and reinstall/downgradehttp://selenium.go…

run a server on Ubuntu on port 80 as a normal user?

http://serverfault.com/questions/112795/how-can-i-run-a-server-on-linux-on-port-80-as-a-normal-user

use wifi router as network hub/switch

Wanポートから、アップリンク用のケーブルをLANポートに付け替え(その代わりLANポートが1つ使えなくなる)、DHCPをオフにすれば良い

ubuntu networkmanager openvpn client

sudo apt-get install network-manager-openvpn

Set ulimit parameters on ubuntu

http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/ By default the number of open files pro user in Ubuntu 8.04 is 1024. In my case this number was too small so I have to increase it.This is done with the ulimit command:$ul…

ubuntu 12.04 LTS Can't mount external USB driver

sudo apt-get install usbmount

Ubuntu server 12.04 LTS gnome classic

After server version installed:gnome2, classic, fallback installation on server-versionsudo apt-get update sudo apt-get install gnome-core gnome-session-fallback - Ambiance and Radiance themessudo add-apt-repository ppa:webupd8team/themes …

ubuntu server power cut/failure/outage won't boot

まず、biosでpower-on設定次に edit /etc/default/grubGRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet spla…

Enable a Xfce/Xubuntu Remote Desktop, Vino, Desktop Sharing

http://www.ehow.com/how_6980234_enable-xubuntu-remote-desktop.html http://askubuntu.com/questions/71309/how-do-i-enable-remote-desktop-connection-on-xubuntu-11-10Input the following line to install vino:sudo apt-get install vinoInput the f…

xface headless startX11

How to run a non-default virtual desktop environmentYou can configure the node to run an alternative desktop environment. To do that, edit the node.cfg file (namely /usr/NX/etc/node.cfg), ensure that the DefaultDesktopCommand key is uncomm…

Ubuntu 12.10 or later with NoMachine 4

Xfce, LXDE, Enlightenment, and Razor-qt: http://www.renewablepcs.com/about-linux/kde-gnome-or-xfceGUI for ubuntu server: xfce or xubuntu-desktop http://askubuntu.com/questions/305646/gui-for-ubuntu-server-xfce-or-xubuntu-desktopUninstall G…

bluehost nokogiri install

gem install nokogiri -- --use-system-libraries gem install nokogiri --user-install -- --use-system-libraries

hosting gmail setting bluehost google apps mail MX record

http://tech.shawnlelle.com/setting-up-google-apps-in-bluehost/ http://www.tech-faq.com/setup-google-apps-with-your-bluehost-account.html

Identifying VNC Server port

sudo lsof -i -P | grep -i "listen"http://askubuntu.com/questions/259166/change-port-for-desktop-sharing-in-ubuntu-12-10 https://support.realvnc.com/Knowledgebase/Article/View/227/4/how-do-i-find-out-what-port-vnc-server-or-ard-is-listening…

NX and VNC for Ubuntu 12.10 and 14.04

https://www.nomachine.com/AR07K00676以下の設定でNXを設定してUbuntu 12.10 there are two different types of GNOME session fallback. The default fallback is named 'GNOME Classic' and neither NoMachine 4 or NX 3.5.0 are able to work with it. I…

ssh tunnel proxy

ssh -D 8080 username@example.comThis connects to the computer at ‘example.com’ and attempts to authenticate as ‘username’, asking for a password if necessary. When authentication is successful, ssh will act as a SOCKS proxy server on port …

xmppframework GCDAsyncSocket doWriteData EXC_BAD_ACCESS

http://code.tutsplus.com/tutorials/building-a-jabber-client-for-ios-interface-setup--mobile-7188 http://www.ht.sfc.keio.ac.jp/~takuro/blog/files/602a012759a8599e04fdf93baf860582-4.html要するに XMPPFramework/Authentication (フォルダー追加…

iOS XMPP #import 'libxml/tree.h' file not found

http://xmpp.org/rfcs/rfc3920.html#arch http://www.ht.sfc.keio.ac.jp/~takuro/blog/files/602a012759a8599e04fdf93baf860582-4.html #import 'libxml/tree.h' file not found - http://stackoverflow.com/questions/14622684/import-libxml-tree-h-file-n…

xchat adhearsion asterisk1.4 ruby-tcp

http://www.macports.org/ https://github.com/xchataqua/xchataqua/tree/master/iOS/Sources http://en.wikipedia.org/wiki/XChat http://www.adhearsion.com/ http://www.sitepoint.com/ruby-tcp-chat/http://en.wikipedia.org/wiki/Comparison_of_instant…

ruby upgrade rubies (i did ruby-1.9.3-p374 =>ruby-1.9.3-p545)

rbenv$ rbenv install --list $ rbenv install 1.9.3-p545 $ rbenv rehash $ rbenv global 1.9.3-p545rvm# NOTE: you probably want to upgrade your rvm first, as the list of known rubies seems to be coupled to the rvm version. $ rvm get stable $ r…

ruby-1.9.3-p374 =>ruby-1.9.3-p545 *** buffer overflow detected ***: ruby terminated

mechanizeを使いマルチスレッドで同時に複数のページにアクセスするプログラムを使っていた。mechanizeでDNS 解決(gethostbyname)などのタイムアウトを制御するためrequire 'em-resolv-replace' または require 'resolv-replace' (参照: http://seesaawi…

Ruby 実行ファイルの名前を取得

http://d.hatena.ne.jp/yoshidaa/20120718/1342614445p File.expand_path($0) p $PROGRAM_NAME $0 は、ruby に引数として渡された実行中のスクリプトファイル名を表す組み込み変数で、ちょっとしたライブラリを作る際に以下のような感じでよく使います。# ho…

lsof open files and sockets with users “Too many open files” ulimit -n,#

http://www.tecmint.com/10-lsof-command-examples-in-linux/http://stackoverflow.com/questions/106234/lsof-survival-guidehttp://www.thegeekstuff.com/2012/08/lsof-command-examples/ulimit -n Linux でプロセスが開けるファイルディスクリプタの上限 …

byobu ubuntu以外

ステータスバーが無限に表示される場合 http://gihyo.jp/admin/serial/01/ubuntu-recipe/0291?page=2http://techracho.bpsinc.jp/kazumasa-ogawa/2013_09_05/13493設定の確認・変更 http://shim0mura.hatenadiary.jp/entry/20111005/1317819710