戻る

Debian GNU/Linux 8 (Jessie) 関係

下記の内容は,色々と試行錯誤したうち,成功したと思われる結果のみを挙げています. そのため,下記の内容通りに行っても期待される結果が得られない場合もあると思います. 従って,このページの内容については私の保証するところではありませんので,各自の責任でお願いします.

更新情報

 2017. 6. 4 サーバ編を追加
 2016. 3.19 インストール ThinkPad E450の場合を追記
 2015.11.28 fcitxを使う、を追加
 2015. 5.17 ffmpegのインストールを追記
 2015. 5. 3 インストール ISK310-Fusionの場合を追記
 2015. 2. 1 Wifi/ThinkPad EDGE E135の場合を追記
 2014.12.20 インストール ThinkPad EDGE E135の場合を追記
 2013. 7. 6 記録開始



サーバ編

■ssh終了時にclientのterminalが固まる
参考: http://symfoware.blog68.fc2.com/blog-entry-1734.html
> sudo apt-get install libpam-systemd



インストール (lenovo ThinkPad E450の場合)

■インストール
Debian Installer 8 - netinst CD イメージをダウンロード
unetbootinでUSBに焼く。
Wiredでインストール開始。
ネットワークのインストールで次のメッセージがでるが、無視して続行。
 「iwlwifi-7265-9.ucode iwlwifi-7265-8.ucodeが無いので、USBに入れて挿してくれ」

とりあえず完了。

■グラフィック
ドライバをインストール。

apt-lineに次を追記して、
deb http://.../debian/ jessie main contrib non-free

firmware-realtek firmware-linux-nonfreeをインストールする。
# sudo apt-get update
# sudo aptitude install firmware-realtek firmware-linux-nonfree

■Wifi
Intel 7265のドライバをインストール。
次を参考に、
 iwlwifi @Debian wiki
   https://wiki.debian.org/iwlwifi

aptlineはすでに追加してあるので、
> sudo apt-get install firmware-iwlwifi
> sudo modprobe -r iwlwifi
> sudo modprobe iwlwifi

■Two Finger Scroll
E135の場合とはいろいろと違ってるようだ。
> xinput list
してみると、

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ PS/2 Generic Mouse                      	id=10	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Integrated Camera                       	id=8	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=9	[slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                  	id=11	[slave  keyboard (3)]

PS/2 Generic Mouseとして認識されているようだ。
トラックポイントとタッチパッドが一つのハードウェアとして認識されている?

ちなみにubuntu 15.10をインストールした場合は次のように認識されている。

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPad        	id=10	[slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint Stick           	id=11	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Integrated Camera                       	id=8	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=9	[slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                  	id=12	[slave  keyboard (3)]



とりあえず、次で使えている。

Section "InputClass"
	Identifier	"Trackpoint Wheel Emulation"
	MatchProduct	"PS/2 Generic Mouse|TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad"
	MatchDevicePath	"/dev/input/event*"
	Option	 "EmulateWheel"	 "true"
	Option	 "EmulateWheelButton"	"2"
	Option	 "Emulate3Buttons"	"false"
	Option	 "XAxisMapping"	 "6 7"
	Option	 "YAxisMapping"	 "4 5"
EndSection

■[Fn]と[Ctrl]を入れ替える
やっぱり一番左下のキーは[Ctrl]であって欲しいので[Fn]と入れ替えます。

UEFIのシステム メニューからConfig/Keyboardにありますね。
 Fn and Ctrl Key swap
を[Enable]にする。

■Touch Padを無効化する
今のところ、不明です。
Ubuntuでは実現できているので、シリアスな問題ではないはず。

インストール (lenovo ThinkPad EDGE E135の場合)

■インストール
Debian Installer 8 - netinst CD イメージをダウンロード
unetbootinでUSBに焼く。
Wiredでインストール開始。
ネットワークのインストールで次のメッセージがでるが、無視して続行。
 「rtl_nic/rtl8168e-3.fw が無いので、USBに入れて挿してくれ」

とりあえず完了。

■グラフィック
再起動後グラフィックが遅い、ドライバが入ってないのでインストール。

apt-lineに次を追記して、
deb http://.../debian/ jessie main contrib non-free

firmware-realtek firmware-linux-nonfreeをインストールする。
# sudo apt-get update
# sudo aptitude install firmware-realtek firmware-linux-nonfree

再移動しても、変更した明るさを保存してます!

■Wifi
Broadcom Corporation BCM43228が認識されていないのでドライバをインストール。
次を参考に、Debian 7 "Wheezy" の場合そのままで、
 https://wiki.debian.org/wl
https://wiki.debian.org/brcm80211

aptlineはすでに追加してあるので、
> sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
> sudo modprobe -r b44 b43 b43legacy ssb brcmsmac
> sudo apt-get install firmware-brcm80211
> sudo modprobe -r brcmsmac ; modprobe brcmsmac
> sudo modprobe wl

■Two Finger Scroll
参考:http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint#xorg.conf.d
> sudo vi /usr/share/X11/xorg.conf.d/20-thinkpad.conf

Section "InputClass"
	Identifier	"Trackpoint Wheel Emulation"
	MatchProduct	"TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad"
	MatchDevicePath	"/dev/input/event*"
	Option	 "EmulateWheel"	 "true"
	Option	 "EmulateWheelButton"	"2"
	Option	 "Emulate3Buttons"	"false"
	Option	 "XAxisMapping"	 "6 7"
	Option	 "YAxisMapping"	 "4 5"
EndSection

■[Fn]と[Ctrl]を入れ替える
やっぱり一番左下のキーは[Ctrl]であって欲しいので[Fn]と入れ替えます。

UEFIのシステム メニューからConfig/Keyboardにありますね。
 Fn and Ctrl Key swap
を[Enable]にする。

■Touch Padを無効化する
googleってみるとBIOSで設定できるという情報もありましたが、Edge E135のUEFIシステム メニューには該当する項目が無かった。
結果、次の方法で可能だったので特に問題はない。

参考:タッチパッドの無効化 @ThinkPad with Ubuntu
 http://yoshi-1968.com/2011/10/30/%E3%82%BF%E3%83%83%E3%83%81%E3%83%91%E3%83%83%E3%83%89%E3%81%AE%E7%84%A1%E5%8A%B9%E5%8C%96/
/usr/share/X11/xorg.conf.d/50-synaptics.conf に次を追記する。

Section "InputClass"
	Identifier "no need for accelerometers in X"
	MatchProduct "SynPS/2 Synaptics TouchPad"
	Option "Ignore" "on"
EndSection



インストール (ISK310-Fusion の場合)

■インストール
・debian-live-8.0.0-amd64-gnome-desktop.iso を UNetBootIn で USBに焼いてインストール。
・Graphical Installを選択してもテキストモードになる。
・ネットワークのインストールでメッセージ。
 「rtl_nic/rtl8168e-2.fw が無いので、...」
 と怒られるが無視して続行する。

再起動すると、Gnome3が起動してくれる。
とりあえず大きな問題はないようだ。

wheezyのようにfirmware-linux-nonfreeをインストールしなくてもいいようですね。

■sshdの準備

# apt-get install sshd

# vi /etc/ssh/sshd_config
PasswordAuthentication no ← パスワードのみ(RSA key なし)の接続を禁止する
ChallengeResponseAuthentication no ← 公開鍵認証のみ使うので

sshのキーを作成
$ ssh-keygen -t rsa
$ cp ~/.ssh/id_rsa.pud ~/.ssh/authorized_keys
$ chmod 600 ~/.ssh/authorized_keys

プライベート キー(~/.ssh/id_rsa)をクライアント マシンに移動。
クライアントからの接続は次のように、
$ ssh -i id_rsa hoge@192.168.2.20

■ WOL (マジックパケットで起動する設定)

必要なbiosの設定はマシンにより異なるので割愛。
そんなに分かりにくくはないと思う。

$ su -
でrootになる。

いろいろインストールしておく。
# apt-get install acpid wakeonlan ethtool etherwake

MACアドレスを確認しておく。
# ifconfig
 「ハードウェアアドレス xx:xx:xx:xx:xx:xx」と表示される。

WOL (wake on lan) の設定。
ip アドレスを固定にして、WOLの設定を追記
# vi /etc/network/interfaces

 iface eth0 inet static
 address 192.168.2.20
 network 192.168.2.0
 netmask 255.255.255.0
 broadcast 192.168.2.255
 gateway 192.168.2.xx
 ETHTOOL_OPTS="wol g"

acpidを開始しておく。
# /etc/init.d/acpid start
 これをしておかないと、shutdownしても、(準備はできているが)電源が落ちない場合がある。
 ...Reboot: Power Down
 で止まったままになる場合がある?

普通に終了する。
# shutdown -h now
or
# halt -p

インストール (VAIO Type P VGN-P91NSの場合)

■インストール
Debian Installer 8 - netinst CD イメージをダウンロード
unetbootinでUSBに焼いて起動しインストール開始。
無線Lan経由でインストールすると再起動後に無線Lanが無効(?)になったので、Wiredで実行した。
問題なくinstall完了。

再起動後、
・バックライトの明るさをコントロールできる!

■Two Finger Scroll
参考:http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint#xorg.conf.d
> sudo vi /usr/share/X11/xorg.conf.d/20-thinkpad.conf

Section "InputClass"
	Identifier	"Trackpoint Wheel Emulation"
	MatchProduct	"PS/2 Generic Mouse"
	MatchDevicePath	"/dev/input/event*"
	Option	 "EmulateWheel"	 "true"
	Option	 "EmulateWheelButton"	"2"
	Option	 "Emulate3Buttons"	"true"
	Option	 "XAxisMapping"	 "6 7"
	Option	 "YAxisMapping"	 "4 5"
	Option	 "ZAxisMapping"	 "4 5"
EndSection

環境設定

■userでsudoできるようにする。
rootで次を実行
>apt-get install sudo

rootでvisudoを実行し、userを追加。

■ホームディレクトリの日本語フォルダを英語にする
> sudo apt-get install xdg-user-dirs-gtk
> LANG=C xdg-user-dirs-gtk-update

■シェルスクリプトパス(~/sh)の追加
$ vi ~/.bashrc
次を追記
PATH="$PATH":~/sh

■fcitxを使う
> sudo apt-get install fcitx fcitx-mozc
> sudo apt-get install fcitx-config-gtk fcitx-config-gtk2 fcitx-frontend-gtk2 fcitx-frontend-gtk3 mozc-utils-gui
> im-config
でfcitxを選択

参考:ibusではなくfcitxを使う @気づいたらガジェ獣
 http://utimukat55.blogspot.jp/2013/10/ibusfcitx.html

■ibus-mozc
パッケージをインストール。
> sudo apt-get install ibus-mozc

システム メニュー(設定)/地域と言語、で入力ソースに「日本語 (Mozc)」を追加、

次に、
> im-config
でibusを選択する。

■IMEの切り替えを[Ctrl]+[Space]にする
システム メニュー(設定)/キーボードのタブ:ショートカット、でタイピングを選択、
「次の入力ソースへ切り替える」をクリックし、[Ctrl]+[Space]を押す。


■IceweaselでFlashを使う
先のようにapt-lineにcontrib non-freeを追加したうえで、
> sudo apt-get install flashplugin-nonfree

■chrome, Iceweaselでmms: (.wax, .asx)をダイレクトに再生する
> sudo apt-get install mimms mplayer2 gecko-mediaplayer

■ffmpegをインストールする
> sudo sh -c 'echo "deb http://www.deb-multimedia.org jessie main" >> /etc/apt/sources.list'
> sudo apt-get update
> sudo apt-get install deb-multimedia-keyring
> sudo apt-get install ffmpeg

参考:How To Install FFmpeg 2.2.2 “Muybridge” On Debian Sid, Debian Jessie And Debian Wheezy
 http://linuxg.net/how-to-install-ffmpeg-2-2-2-muybridge-on-debian-sid-debian-jessie-and-debian-wheezy/





戻る