Entries from 2012-04-01 to 1 month

Ubuntu 12.04 で nautilus-gksu がない!!! nautilus-open-as-rootに乗り換え

げろげろ!!!root@server:# apt-get install nautilus-gksu Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package nautilus-gksu 参考:https://forums.ubuntulinux.jp/viewtopic.php?…

Ubuntu 12.04 server && NX free でGnome3を動かす。

http://d.hatena.ne.jp/johnyuan2000/20120404/1333537310 で紹介したとおり、sudo dpkg -i nxclient_3.5.0-7_amd64.deb sudo dpkg -i nxnode_3.5.0-7_amd64.deb sudo dpkg -i nxserver_3.5.0-9_amd64.deb (http://www.nomachine.com/download.php)とUbuntu1…

TkPackage

逆引きRuby/Tk の PNG 画像表示のサンプルコードを実行すると次のエラーが出て動かない。 /usr/lib/ruby/1.8/tk/package.rb:86:in `require': TkPackage can't find package img::png (RuntimeError)locate tkextlib/tkimg すると /usr/lib/ruby/1.8/tkextli…

sudoが極端に遅くなる、または「sudo: unable to resolve host」というエラーがでる

解決するには/etc/hostsのIPアドレスの項目に127.0.0.1 localhost 202.XXX.YYY.ZZZ HOSTNAMEHOSTNAME このホスト名を同じにすれば解決しまし

fallback(ubuntu-2d)かUnity(unity 3D)かを見分ける

tail -n 20 /var/log/lightdm/lightdm.log | grep "Starting session" | cut -d ' ' -f5

NoMachine 4 Preview インストール

http://www.nomachine.com/download-preview.php http://www.nomachine.com/ar/view.php?ar_id=AR10I00603 root@Server:/home/admin/Downloads# dpkg --force-depends -i nxserver_4.0.181-2_i386.deb dpkg: considering removing nxnode in favour of nxser…

Ubuntu 12.04 LTS for server for ARM

http://www.ubuntu.com/download/armcurrently only TI Panda and BeagleXM development boards are supported. http://pandaboard.org/ http://en.wikipedia.org/wiki/PandaBoard http://legacyos.homeip.net/beagleboard/http://gihyo.jp/admin/serial/01/…

中国・バーコード

http://www.a-solsh.com/?gclid=CKTnmOGE1K8CFcek4godMBVvcg

interfaces, ppp, wifi 設定

http://qref.sourceforge.net/quick/ch-gateway.ja.html https://help.ubuntu.com/11.10/serverguide/network-configuration.html無線 LAN インターフェイスの設定を行うwireless-tools パッケージには、インターフェイスを 立ち上げる前に無線 LAN (802.11a…

How to ip route, ip rule, split traffic, squid設定 複数NIC、複数proxy port

root@server:#cat /etc/iproute2/rt_tables # # reserved values # 233 local 244 main 255 default 0 unspec # # local # #1 inr.ruhep 200 T1 201 T2root@server:# ip rule 0: from all lookup local 32766: from all lookup main 32767: from all lookup …

NICs installing

lspci lshw -C network cat /var/log/dmesg | grep -i eth

Ruby 正規表現の足し算

irb(main):003:0> ipaddr=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/ => /[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/ irb(main):004:0> x=/local\s+IP\s+address\s+/ => /local\s+IP\s+address\s+/ irb(main):014:0> "local IP address 192.1…

Ruby em-proxy outgoing address

https://github.com/igrigorik/em-proxy/issues/14

複数ゲートウェイの為のinterfaces設定

http://www.debian-administration.org/articles/377Append a new table name with an unique number for every uplink./etc/iproute2/rt_tables # # reserved values # 255 local 254 main 253 default 0 unspec # # local # #1 inr.ruhep 200 uplink1 201 …

Proxy設定:Squidを使って別のゲートウェイにルーティングする

http://www.linuxquestions.org/questions/linux-networking-3/transparent-proxy-with-2-wan-links-787973/#ifconfig ppp1 Link encap:Point-to-Point Protocol inet addr:xxx.xxx.xxx.xxx P-t-P:yyy.yyy.yyy.yyy Mask:255.255.255.255/etc/iproute2/rt_tab…

ssh tunnel

ssh -D 8888 user@server

How To Install Squid in Ubuntu Linux

http://e-healthexpert.org/node/431Squid is a caching proxy for the Web supporting HTTP, HTTPS and FTPHome: http://www.squid-cache.org/After installing and configuring Squid you must configure your system to use a proxy cache. Change releva…

vpn

sudo apt-get install pptp-linux http://www.cyberciti.biz/tips/howto-configure-ubuntu-fedora-linux-pptp-client.html https://wiki.ubuntu.com/VPN https://wiki.ubuntu.com/Setting%20up%20PPTP%20VPN%20connection%20in%20konsole https://help.ubunt…

for_all

http://www.shido.info/gb/guestbook.php?id=184for_all $1 $2: ディレクトリ $2 の下にあるファイル全てに $1 の操作をします。ディレクトリに対して、関数 rec を再帰的に呼び出すことによって、階層構造を持つディレクトリ下の全てのファイルを処理します…

Check if IP Forwarding is enabled

Using sysctl:sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 0Enable IP Forwarding on the flyAs with any sysctl kernel parameters we can change the value of net.ipv4.ip_forward on the fly (without rebooting the system):sysctl -w net.ipv4.…

route delete/add

Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.2.1 0.0.0.0 UG 100 0 0 eth0 192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0 localnet * 255.255.255.0 U 0 0 0 eth0sudo route del -net 192.168.1.0 netmask 255.255.255.0 dev wla…

resolvconf

First, install the resolvconf package, then runsudo nano /etc/resolvconf/resolv.conf.d/headDo not touch warning /etc/resolv.conf is autogenerated, so the warning is there so it will get put in /etc/resolv.conf when /etc/resolv.conf is gene…

wicd

NetworkManagerからWicd (Wireless Interface Connection Daemon )に乗り換えます。# apt-get install wicdこれをインストールすると、NetworkManager はアンインストールされます。 再起動すると、使えるようになります。

wpa etc/network/interfaces 初期設定書き込み

http://blog.nelhage.com/2008/08/using-wpa_supplicant-on-debianubuntu/auto ath0 iface ath0 inet dhcp wpa-driver wext wpa-conf /etc/wpa_supplicant/wpa_supplicant.confスタティックルートを設定したい場合はupに続いてrouteコマンドを記述する。 up …

Ubuntu11.10 server nautilus-gksuが動かない!

sudo cp /usr/lib/nautilus/extensions-2.0/libnautilus-gksu.so /usr/lib/nautilus/extensions-3.0/

Rubyでテキストなプログレスバーを表示するProgressBar

http://d.hatena.ne.jp/kitamomonga/20110307/ruby_progressbar_gemProgressBar という、アスキーアート状態のプログレスバーで進捗を表すことができる gem があります。Linux とかのターミナルエミュレータ上で動作し、Windows のコマンドプロンプトでもだ…

Ubuntu11.10 server gnome-classic 英語版にiBus+Anthy日本語環境設定

Ubuntu11.10 server gnome-classic 英語版に日本語環境設定を試みると、何かと不都合がでる。全てはUnityを使わないことから来る困難らしい。11.10 Serverをインストールした後に、Gnomeの最小インストールとNXサーバの組み合わせで、NXクライアントからアク…

blacklist rt2800usb

sudo gedit /etc/modprobe.d/blacklist.conf blacklist rt2800usb

lshw -C network

lshw -C network

ubuntu 10.04 server ruby 1.9.2 rvm

http://www.web2linux.com/05/installing-rails-3-on-ubuntu-10-04-lucid-lynx/ https://rvm.beginrescueend.com/rvm/install/First, let\u2019s install all of the necessary tools and libraries:apt-get install curl git-core build-essential zlib1g-d…