僕の備忘録(PC、UN*X、ネットワーク関連が中心)なんです。
自分の書いたところは適当(な時とか)に書き換えますので御了承を。
wheezyを最小限のパッケージ数でインストールし、
起動後スーパーユーザで
sed -i 's/wheezy/jessie/' /etc/apt/sources.list
して
apt-get dist-upgrade -yf。
一度エラーで処理が停止したが、もう一度
繰り返すと最後まで行った。
再起動後、lxdeやら何やら一度に突っ込む。
デスクトップに表示されたアイコンは、ゴミ箱だけ。
ゴミ箱を開き、中のメニューを辿ってアプリケーション
からアクセサリを...、でも端末はない。
さしあたり、こんなの。
user@host:~/デスクトップ $ cat lxterminal.desktop [Desktop Entry] Type=Link Name=Lxterminal Icon=lxterminal URL=/usr/share/applications/lxterminal.desktop
ようやく端末を開く。
lxterminal上で。
$ ps auxw | grep tty | grep -v grep root 573 0.0 0.0 13892 1988 tty1 Ss+ 09:20 0:00 /sbin/agetty --noclear tty1 linux root 598 1.5 2.3 270176 47800 tty7 Ss+ 09:20 0:00 /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
適当に /etc の下を探り、man 5 logind.conf を舐めて
/etc/systemd/logind.conf を少し書き換える。
以下、コメントアウトしてある場所は省略。
[Login] NAutoVTs=autoavt
この結果、Xを閉めて Alt + F{1..5}くらいを押す度に
仮想コンソールが開くようになった。
Alt + F1押下してログイン。
$ ps auxw | grep tty | grep -v grep root 573 0.0 0.1 73880 3364 tty1 Ss 09:20 0:00 /bin/login -- $user 913 0.0 0.1 21376 3720 tty1 S 09:22 0:00 -bash $user 918 0.0 0.0 16736 1164 tty1 S+ 09:22 0:00 tmux a
Alt + F2押下してログインプロンプトを見た。
またtty1 に戻る。
$ ps auxw | grep tty root 573 0.0 0.1 73880 3364 tty1 Ss 09:20 0:00 /bin/login -- $user 913 0.0 0.1 21376 3720 tty1 S 09:22 0:00 -bash $user 918 0.0 0.0 16736 1164 tty1 S+ 09:22 0:00 tmux a root 925 0.0 0.0 13892 1984 tty2 Ss+ 09:22 0:00 /sbin/agetty --noclear tty2 linux
Alt + F3の後。
$ ps auxw | grep tty | grep -v grep root 573 0.0 0.1 73880 3364 tty1 Ss 09:20 0:00 /bin/login -- $user 913 0.0 0.1 21376 3720 tty1 S 09:22 0:00 -bash $user 918 0.0 0.0 16736 1164 tty1 S+ 09:22 0:00 tmux a root 925 0.0 0.0 13892 1984 tty2 Ss+ 09:22 0:00 /sbin/agetty --noclear tty2 linux root 931 0.0 0.0 13892 2016 tty3 Ss+ 09:22 0:00 /sbin/agetty --noclear tty3 linux
Alt + F4。同じ。
$ ps auxw | grep tty | grep -v grep root 573 0.0 0.1 73880 3364 tty1 Ss 09:20 0:00 /bin/login -- $user 913 0.0 0.1 21376 3720 tty1 S 09:22 0:00 -bash $user 918 0.0 0.0 16736 1164 tty1 S+ 09:22 0:00 tmux a root 925 0.0 0.0 13892 1984 tty2 Ss+ 09:22 0:00 /sbin/agetty --noclear tty2 linux root 931 0.0 0.0 13892 2016 tty3 Ss+ 09:22 0:00 /sbin/agetty --noclear tty3 linux root 937 0.0 0.0 13892 1968 tty4 Ss+ 09:22 0:00 /sbin/agetty --noclear tty4 linux
シリアルコンソールも、また違う方法で。たぶん。
リンクはご自由にどうぞ。でもURLや内容が変った場合はあしからず。