We're no longer updating This wiki!!

This is an old revision of the document!


Software Setting Guide for CloudShell-2

This is step-by-step guide based on Ubuntu 16.04.2 OS image for CloudShell-2 software environment.

0. Download Ubuntu image [HOST PC]

$ wget http://deb.odroid.in/trial_4.9/ubuntu-16.04.2-mate-odroid-xu4-20170222.img.xz
$ wget http://deb.odroid.in/trial_4.9/ubuntu-16.04.2-mate-odroid-xu4-20170222.img.xz.md5sum
$ md5sum -c ubuntu-16.04.2-mate-odroid-xu4-20170222.img.xz.md5sum
ubuntu-16.04-server-odroid-xu3-20161028.img.xz: OK
$ unxz ubuntu-16.04.2-mate-odroid-xu4-20170222.img.xz

1. Insert micro SD card to micro SD card slot in your PC. (* If your HOST PC does not have micro SD card slot, then you need micro SD card reader.) [HOST PC]

2. Flash Ubuntu image to micro SD card. [HOST PC]

$ dd if=ubuntu-16.04.2-mate-odroid-xu4-20170222.img of=</dev/path/of/card> bs=1M conv=fsync
$ sync

3. Insert micro SD card to micro SD card slot in ODROID-XU4. [ODROID-XU4]

4. Power on the CloudShell-2.

* NOTE: You need USB-UART Module Kit or HDMI cable + USB keyboard to access ODROID-XU4 Ubuntu console.

5. Update the Ubuntu to latest. [ODROID-XU4]

$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade 

NOTE: This step includes the hard disk formatting. If your hard disk contains important data, please backup the data before trying follow's steps.

NOTE: If you want to avoid the hard disk formatting. Please use the JBOD/PM mode and skip the step 6.
On other mode (RAID 0/RAID 1/SPAN), the two hard disks are detected one logical storage. So, it is necessary to format the logical storage(/dev/sda) before using it.

6. Format the hard disks. In this example, we use the just one partition. [ODROID-XU4]
* For RAID 0/RAID 1/SPAN mode

$ sudo dd if=/dev/zero of=/dev/sda bs=512 count=1
$ sudo mkfs.ext4 /dev/sda

* For PM mode

$ sudo dd if=/dev/zero of=/dev/sda bs=512 count=1
$ sudo mkfs.ext4 /dev/sda
$ sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1
$ sudo mkfs.ext4 /dev/sdb

7. Create the mount points and edit /etc/fstab file for auto-mount on system start-up.
* For RAID 0/RAID 1/SPAN mode

$ sudo mkdir -p /media/hdd
$ sudo nano /etc/fstab
UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 errors=remount-ro,noatime 0 1
LABEL=boot /media/boot vfat defaults 0 1
/dev/sda       /media/hdd ext4 defaults    0 1

* For PM mode

$ sudo mkdir -p /media/hdd1
$ sudo mkdir -p /media/hdd2
$ sudo nano /etc/fstab
UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 errors=remount-ro,noatime 0 1
LABEL=boot /media/boot vfat defaults 0 1
/dev/sda       /media/hdd1 ext4 defaults    0 1
/dev/sdb       /media/hdd2 ext4 defaults    0 1
en/xu4_cloudshell2/software_settings.1493375469.txt.gz · Last modified: 2017/04/28 19:01 by brian.kim
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0