ハックキットインストール直後は、
hackkit:~# cat /etc/passwd root:(暗号化されたパスワード):0:0:root:/root:/bin/bash : yasunari:(暗号化されたパスワード):1001:1000:Yasunari Yamashita,,,:/home/yamasita/yasunari:/bin/bash hackkit:~#と /etc/passwd に暗号化されたパスワードがそのまま入ってます。
hackkit:~# pwconv hackkit:~#これで、/etc/passwd のパスワードフィールドは x になりました。
hackkit:~# cat /etc/passwd root:x:0:0:root:/root:/bin/bash : yasunari:x:1001:1000:Yasunari Yamashita,,,:/home/yamasita/yasunari:/bin/bash hackkit:~#
hackkit:~# apt-get install psmisc Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: psmisc 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 79.7kB of archives. After unpacking 275kB of additional disk space will be used. Get:1 http://ftp2.jp.debian.org etch/main psmisc 22.3-1 [79.7kB] Fetched 79.7kB in 0s (406kB/s) Selecting previously deselected package psmisc. (Reading database ... 8698 files and directories currently installed.) Unpacking psmisc (from .../archives/psmisc_22.3-1_arm.deb) ... Setting up psmisc (22.3-1) ... hackkit:~#
hackkit:~# dpkg -P nvi (Reading database ... 10373 files and directories currently installed.) Removing nvi ... Purging configuration files for nvi ... hackkit:~#
hackkit:~# apt-get install vim Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: vim-common vim-runtime Suggested packages: ctags vim-doc vim-scripts The following NEW packages will be installed: vim vim-common vim-runtime 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 7364kB of archives. After unpacking 24.0MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp2.jp.debian.org etch/main vim-common 1:7.0-122+1etch2 [181kB] Get:2 http://ftp2.jp.debian.org etch/main vim-runtime 1:7.0-122+1etch2 [6430kB] Get:3 http://ftp2.jp.debian.org etch/main vim 1:7.0-122+1etch2 [752kB] Fetched 7364kB in 1m16s (95.9kB/s) Selecting previously deselected package vim-common. (Reading database ... 10347 files and directories currently installed.) Unpacking vim-common (from .../vim-common_1%3a7.0-122+1etch2_arm.deb) ... Selecting previously deselected package vim-runtime. Unpacking vim-runtime (from .../vim-runtime_1%3a7.0-122+1etch2_all.deb) ... Selecting previously deselected package vim. Unpacking vim (from .../vim_1%3a7.0-122+1etch2_arm.deb) ... Setting up vim-common (7.0-122+1etch2) ... Setting up vim-runtime (7.0-122+1etch2) ... Processing /usr/share/vim/addons/doc Setting up vim (7.0-122+1etch2) ... hackkit:~#
#!/bin/sh if [ "$1" != micon_interrupts ] then exit fi int=`/usr/local/sbin/miconapl -a int_get_switch_status | sed -n -e 's/^int=\(.*\)$/\1/p'` if [ "$int" = power_sw ] then shutdown -h now fi |
|
|
← パッケージのアップデート |
LS-GL,HS-DHGL ハックキット LinkStation LS-GL,HS-DHGL をハックしよう LinkStation/玄箱をハックしよう |
→ 追加パッケージのインストール |