linux

秘密鍵を持たないユーザをsshでログインできないようにする

/etc/ssh/sshd_configのPasswordAuthenticationを「no」にし、 # Change to no to disable tunnelled clear text passwords #PasswordAuthentication yes ↓ PasswordAuthentication noその後sshdを再起動すればOK。 $ /etc/init.d/ssh restart

GentooPrefix on MacOSXでghcがビルドできない

emerge ghcしたところ、以下のようなエラーでビルドに失敗してしまう。あとで追ってみよう。 ... /* ERROR: dev-lang/ghc-6.8.2-r1 failed: * Could not locate bundled libreadline.so * * Call stack: * ebuild.sh, line 51: Called call-ebuildshell 'src…

Portageの基本

Gentoo Prefixを入れてみたものの、Gentooのパッケージ管理システムであるPortageの使い方がさっぱりわかってないので以下のドキュメント「Gentooを使いこなす」を読んでみた。http://www.gentoo.org/doc/ja/handbook/handbook-x86.xml?part=2&chap=0 Portag…

Hello Gentoo Prefix

自宅のMac環境へGentoo Prefixをインストールしてみた。以下はそのときのメモ。Gentoo Prefixの入り口(なのかな)。http://www.gentoo.org/proj/en/gentoo-alt/prefix/index.xmlMacOSXのひとはここの手順に従ってインストールすればOK。http://www.gentoo.o…

Ruby/Gnome2でHello World

http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?gtk2-tut-helloworld#Ruby-GNOME2Ruby/Gtk2のHello Worldを見ながら試してみる。 $ sudo aptitude install ruby-gnome2 $ irb irb(main):001:0> require 'gtk2' => true irb(main):003:0> button = Gtk::Butt…

Ubuntu9.0.4インストールメモ

Ubuntu9.0.4をインストールした。インストールする前の環境へ戻すまでの手順を記録しておくよ。 外観の設定 Xが固まるのを防止するため、「システム-外観の設定-視覚効果」で「効果なし」を選択する。 IMEのON/OFFを変換と無変換へ割り当て SCIM入力メソッド…