Entries from 2013-03-01 to 1 month

ruby gem command

http://docs.rubygems.org/read/chapter/16 http://docs.rubygems.org/read/chapter/2 http://docs.rubygems.org/read/chapter/10

Ubuntu VPN PPTP Client setting

http://www.ubuntugeek.com/howto-configure-pptp-vpn-in-ubuntu-intrepid-and-jaunty.htmlirst you need to install the following packages sudo apt-get install pptp-linux ppp pptpdConfigurationFirst you need to edit /etc/ppp/chap-secrets file su…

Nokogiri/Mechanize Can't find libxml/parser.h

apt-get update sudo apt-get install build-essential sudo apt-get install libxslt-dev libxml2-dev

NX Gnome3 Ubuntu Server 12.04

Ubuntu server 12.10 より上のバージョンだとNXのリドローが上手く行かず、再コネクトするとテキストが見えなくなる。(以下を参照)http://askubuntu.com/questions/198790/nomachine-nx-text-missing-on-all-gtk-interface-unity-and-gnome-classicそこで…

selenium

http://anahorny.blogspot.hk/2011/08/selenium-webdriver-ruby-tutorial.html http://qiita.com/items/9cb81d7a98150ff22f53

“Open As Root” ,“Open terminal here” to Nautilus' Gnome

sudo apt-get install nautilus-open-terminal$ sudo add-apt-repository ppa:nae-team/ppa $ sudo apt-get update && sudo apt-get install nautilus-open-as-root

Gnome software-center, language-support

pppoe ppoeconf pon/off ifconfig xxx up/down

https://help.ubuntu.com/community/ADSLPPPoEhttp://www.debian.org/doc/manuals/debian-reference/ch05.ja.html

Gnome software-center, language-support

Ubuntu 12.10 server && NX && NX Server 3.5

Being the default desktop environment Unity still not supported by NX sessions, Ubuntu 12.10 introduces two different types of GNOME session fallback. The default fallback is named 'GNOME Classic' and neither NX 3.5.0 or NoMachine 4 are ab…

ネットワーク基礎

http://www.debian.org/doc/manuals/debian-reference/ch05.ja.html

Encoding::UndefinedConversionError :: v.encode('utf-8', 'SJIS', invalid: :replace, undef: :replace, replace: ' ')

http://stackoverflow.com/questions/14305497/ruby-one-encoded-data-to-another-encoded-csv-with-many-lineshttp://qa.atmarkit.co.jp/q/2349/revisions文字列中に自身のエンコーディングとして不正な文字が入っていたり、変換先エンコーディングに変換で…

upgrading over SSH

http://askubuntu.com/questions/8884/whats-the-risk-of-upgrading-over-sshhttp://serverfault.com/questions/321520/ssh-connection-lost-during-server-upgrade-how-to-reconnect-to-processhttp://serverfault.com/questions/321724/ubuntu-server-upgr…

Can't access select websites

http://superuser.com/questions/213264/cant-access-select-websites-on-linux-but-can-on-windows

開いているポートを調べる

$netstat -tln $sudo ufw status $sudo iptables -L INPUT

hint : vpn over vpn

http://superuser.com/questions/173821/vpn-through-vpnThe target VPN server I want to connect to allows connections only from one IP address. When I am at my office (the network public IP is trusted on the VPN server) everything is OK, but …