Difference between revisions of "Debian jessie bootstrap"

From Studio Kousagi Wiki
Jump to: navigation, search
(Created page with "=Background= These instructions assume you are starting from the image located at http://bunniefoo.com/xobs/novena-recovery-image.img.gz , and you are intending to install Jessie...")
 
Line 18: Line 18:
  
 
Install bluetooth:
 
Install bluetooth:
 +
chroot /mnt apt-get install bluetooth
  
 
Install network manager:
 
Install network manager:
 +
chroot /mnt apt-get install network-manager
 +
 +
Install ntpdate:
 +
chroot /mnt apt-get install ntpdate
 +
 +
Install ssh:
 +
chroot /mnt apt-get install openssh-server
  
 
Copy over config files:
 
Copy over config files:
  
  cp /var/lib/bluetooth /mnt/var/lib/bluetooth
+
  cp -r /var/lib/bluetooth /mnt/var/lib/   # grab your bluetooth keyboard config
  cp /etc/X11/Xorg.conf /mnt/etc/X11/Xorg.conf
+
  cp /etc/X11/xorg.conf /mnt/etc/X11/     # grab mode configs
  cp /etc/NetworkManager/system/connections /mnt/etc/NetworkManager/system/connections
+
  cp -r /etc/NetworkManager/system-connections /mnt/etc/NetworkManager/ # grab any local network settings
 +
 
 +
Reboot the system and fix up the broken installs due to dbus errors (if you're using a bluetooth keyboard you have have to bootstrap this through an ssh connection due to dbus errors):
 +
 
 +
sudo apt-get install -f

Revision as of 10:22, 28 April 2014

Background

These instructions assume you are starting from the image located at http://bunniefoo.com/xobs/novena-recovery-image.img.gz , and you are intending to install Jessie to an attached SATA hard drive.

This is a low-level dd image that includes bootloader and partition table with a recovery image, and it's meant to target a 4GiB microSD card. You can create the image by doing

zcat novena-recovery-image.img.gz | sudo dd of=/dev/sdX bs=1M

To activate the recovery image, you must hold down the "user" button while powering on or resetting the board, otherwise the system will attempt to boot from the attached hard drive.

Bootstrap

After booting into the recovery image, create your target filesystem using mkfs.ext4, and mount the respective partition at, for our example purposes, /mnt

Run debootstrap

debootstrap jessie /mnt

After completion you'll need to install a minimal set of networking protocols for the next step:

Install bluetooth:

chroot /mnt apt-get install bluetooth

Install network manager:

chroot /mnt apt-get install network-manager

Install ntpdate:

chroot /mnt apt-get install ntpdate

Install ssh:

chroot /mnt apt-get install openssh-server

Copy over config files:

cp -r /var/lib/bluetooth /mnt/var/lib/   # grab your bluetooth keyboard config
cp /etc/X11/xorg.conf /mnt/etc/X11/      # grab mode configs
cp -r /etc/NetworkManager/system-connections /mnt/etc/NetworkManager/ # grab any local network settings

Reboot the system and fix up the broken installs due to dbus errors (if you're using a bluetooth keyboard you have have to bootstrap this through an ssh connection due to dbus errors):

sudo apt-get install -f