We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c1_ubuntu_minimal [2015/08/28 21:02]
mdrjr
en:c1_ubuntu_minimal [2016/11/04 03:02] (current)
mdrjr
Line 7: Line 7:
   - Fixed the date (image was 20140121)   - Fixed the date (image was 20140121)
   - Added optional step to allow root login via ssh (included on the image)   - Added optional step to allow root login via ssh (included on the image)
 +20161102: 
 +  - Updated to Ubuntu 16.04
 ---- ----
  
 To this you'll need: To this you'll need:
-      * PC running Linux Ubuntu ​14.04 64 Bits+      * PC running Linux Ubuntu ​16.04 64 Bits
       * MicroSD or eMMC to write the new image       * MicroSD or eMMC to write the new image
  
  
 This guide will cover the process to recreate the official Ubuntu Minimal image. This guide will cover the process to recreate the official Ubuntu Minimal image.
-Tested and written on a Ubuntu ​14.04 64Bits x86 Machine.+Tested and written on a Ubuntu ​16.04 64Bits x86 Machine.
  
   - Tools: \\ Basic set of tools that we will need to create our image. <​code>​   - Tools: \\ Basic set of tools that we will need to create our image. <​code>​
-sudo apt-get install debootstrap ​xz qemu-user-static</​code>​+sudo apt-get install debootstrap qemu-user-static</​code>​
   - Work folder\\ Create a workspace<​code>​   - Work folder\\ Create a workspace<​code>​
 mkdir ~/ubuntu mkdir ~/ubuntu
Line 65: Line 66:
 sudo mkdir -p target/​usr/​bin sudo mkdir -p target/​usr/​bin
 sudo cp /​usr/​bin/​qemu-arm-static target/​usr/​bin sudo cp /​usr/​bin/​qemu-arm-static target/​usr/​bin
-sudo debootstrap --variant=buildd --arch armhf trusty ​target http://​ports.ubuntu.com+sudo debootstrap --variant=buildd --arch armhf xenial ​target http://​ports.ubuntu.com
 </​code>​ </​code>​
   - Preparations via chroot \\ Will add hardkernel keys and repositories,​ fix ubuntu respository list and install the basic set of tools for a minimal image <​code>​   - Preparations via chroot \\ Will add hardkernel keys and repositories,​ fix ubuntu respository list and install the basic set of tools for a minimal image <​code>​
 sudo chroot target sudo chroot target
 cat << EOF > /​etc/​apt/​sources.list cat << EOF > /​etc/​apt/​sources.list
-deb http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty ​main universe restricted +deb http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial ​main universe restricted 
-deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty ​main universe restricted+deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial ​main universe restricted
  
-deb http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-updates main universe restricted +deb http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-updates main universe restricted 
-deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-updates main universe restricted+deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-updates main universe restricted
  
-deb http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-backports main restricted +deb http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-backports main restricted 
-deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-backports main restricted+deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-backports main restricted
  
-deb http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-security main restricted +deb http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-security main restricted 
-deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-security main restricted +deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-security main restricted 
-deb http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-security universe +deb http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-security universe 
-deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-security universe +deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-security universe 
-deb http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-security multiverse ​  +deb http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-security multiverse ​  
-deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​trusty-security multiverse+deb-src http://​ports.ubuntu.com/​ubuntu-ports/ ​xenial-security multiverse
 EOF EOF
  
Line 90: Line 91:
 apt-get install software-properties-common u-boot-tools isc-dhcp-client ubuntu-minimal ssh apt-get install software-properties-common u-boot-tools isc-dhcp-client ubuntu-minimal ssh
  
-apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ​AB19BAC9 +apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ​D986B59D 
-echo "deb http://​deb.odroid.in/​c1/ ​trusty ​main" ​> /​etc/​apt/​sources.list.d/​odroid.list +echo "deb http://​deb.odroid.in/​c1/ ​xenial ​main" > /​etc/​apt/​sources.list.d/​odroid.list
-echo "deb http://​deb.odroid.in/​ trusty main" >> /​etc/​apt/​sources.list.d/​odroid.list+
 apt-get update apt-get update
  
Line 110: Line 110:
 EOF EOF
 </​code>​ </​code>​
-  - Enable the Serial console ​<​code>​ +  - Setup fstab <​code>​echo "LABEL=boot /media/boot vfat defaults 0 0" >> /etc/fstab 
-echo "start on stopped rc or RUNLEVEL=[12345]"​ > /etc/init/​ttyS0.conf +echo "UUID=e139ce78-9841-40fe-8823-96a304a09859 ​ext4 errors=remount-ro,​noatime ​1" >> /​etc/​fstab</​code>​
-echo "stop on runlevel [!12345]" >> /etc/init/​ttyS0.conf +
-echo "respawn"​ >> /​etc/​init/​ttyS0.conf +
-echo "exec /​sbin/​getty ​-L 115200 ttyS0 vt102" >> /​etc/​init/​ttyS0.conf +
-</​code>​ +
-  ​Making ​/media/boot mounting at boot time <​code>​echo "LABEL=boot /media/boot vfat defaults 0 0" >> /​etc/​fstab</​code>​+
   - Setting a root password <​code>​   - Setting a root password <​code>​
 passwd root passwd root
en/c1_ubuntu_minimal.1440765140.txt.gz · Last modified: 2016/11/04 01:44 (external edit)
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0