2016/8/29,2016/9/20
#Debian上 管理者権限で実行 apt-get remove libreoffice-core gimp -y;apt-get autoremove -y;apt-get update;apt-get upgrade -y apt-get install live-build live-boot live-config -y apt-get install tree sl -y mkdir ~/debian-live cd ~/debian-live #live boot環境の確認 #もっとも簡単なdebian-liveをつくる(コンソールベースでdebian-liveがうごく) lb config && lb build #lb buildは40分くらいかかる #live-image-i386.hybrid.iso(約1GB)ができる
#Debian(x86)上 管理者権限で実行 lb clean lb config --bootappend-live \ "boot=live config persistence noeject live-config.utc=no live-config.locales=ja_JP.UTF-8 live-config.keyboard-layouts=jp live-config.keyboard-model=jp106 live-config.keyboard-layout=jp live-config.timezone=Asia/Tokyo" lb config --binary-images hdd lb config --parent-archive-areas "main contrib non-free" lb config --archive-areas "main contrib non-free" lb config --parent-mirror-bootstrap "http://ftp.jp.debian.org/debian/" lb config --parent-mirror-binary "http://ftp.jp.debian.org/debian/" lb config --mirror-bootstrap "http://ftp.jp.debian.org/debian/" lb config --mirror-binary "http://ftp.jp.debian.org/debian/" lb config --mirror-chroot "http://ftp.jp.debian.org/debian/" lb config --tasksel aptitude --tasks "japanese japanese-desktop" mkdir config/package-lists cd config/package-lists echo "task-japanese" > xfce-japanese.list.chroot echo "task-japanese-desktop" >> xfce-japanese.list.chroot echo "task-xfce-desktop" >> xfce-japanese.list.chroot echo "less" >> xfce-japanese.list.chroot echo "tree" >> xfce-japanese.list.chroot echo "make" >> xfce-japanese.list.chroot echo "ssh openssh-client openssh-server" >> xfce-japanese.list.chroot echo "firmware-realtek" >> xfce-japanese.list.chroot cd ~/debian-live/ mkdir -p config/includes.chroot/etc mkdir -p config/includes.chroot/etc/default cp /etc/bash.bashrc config/includes.chroot/etc cp -a /etc/skel/ config/includes.chroot/etc echo "Asia/Tokyo" > config/includes.chroot/etc/timezone cp /etc/default/keyboard config/includes.chroot/etc/default/keyboard cd ~/debian-live mkdir -p ~/debian-live/chroot/user/lib/SYSLINUX cd ~/debian-live/chroot/user/lib/ ln -s SYSLINUX syslinux cd ~/debian-live date;time lb build;date #45分くらいかかる live-image-i386(900MB)ができる #----------------- #USBメモリに書き込む /dev/sdxに注意 umount /dev/sdx1 /dev/sdx2 time dd if=live-image-i386 of=/dev/sdx bs=32M fdisk /dev/sdx mkfs.ext4 /dev/sdx2 -L persistence #tune2fs -L persistence /dev/sdx2 mount -t ext4 /dev/sdx2 /mnt echo "/ union" >/mnt/persistence.conf umount /mnt
menu.cfg | install.cfgの一行を削除 | 起動メニューに「install」を表示しない。 借り物のPCにインストールすることは避ける。 |
syslinux.cfg | timeout 0を30に修正 | 起動までの待機時間を30秒に指定 |
splash.png | gimp等で加工 | 起動メニューの中のsplash.png 絵(ヘルメット)をオリジナルな絵にする。 |
#----------------- #My Debian Liveを起動 #管理者に移行 sudo -i echo "blacklist pcspkr" >> /etc/modprobe.d/alsa-base-blacklist.conf #MPLABx,xc8をインストール wget http://www.takahashi.lab/~nt/technicalnote/debian8/mplabx/MPLABX-v3.40-linux-installer.sh wget http://www.takahashi.lab/~nt/technicalnote/debian8/mplabx/xc8-v1.38-full-install-linux-installer.run chmod 755 xc8-v1.40-full-install-linux-installer.run ./MPLABX-v3.40-linux-installer.sh ./xc8-v1.38-full-install-linux-installer.run
umount /dev/sdx1 /dev/sdx2 dd if=/dev/sdx of=MyDebian8LiveUSB.img bs=32M dd if=MyDebian8LiveUSB.img of=/dev/sdy bs=32M
[SeatDefaults] ・・・ #autologin-user=user ;コメントアウト #autologin-user-timeout=0 ;コメントアウト ・・・