#!/bin/sh
root=/mnt/hda3/debian
if [ ! -e $root/proc/cpuinfo ]; then
$root/usr/sbin/chroot $root mount -t proc proc /proc
fi
if [ ! -e $root/share/disk ]; then
mount --bind /mnt/hda3/share $root/share
fi
$root/usr/sbin/chroot $root /bin/bash -l
landisk:/home/src# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back
ppp
26 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 10.4MB of archives. After unpacking 2035kB will be used.
Do you want to continue? [Y/n]
...省略
landisk:~# vncserver
You will require a password to access your desktops.
Password: ←パスワードの設定(A)
Verify: ←パスワードの確認
xauth: (argv):1: bad display name "landisk:1" in "add" command
New 'X' desktop is landisk:1 ←(B)
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/landisk:1.log