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:xu4_cloudshell2:software_settings [2017/05/16 16:26]
neal
en:xu4_cloudshell2:software_settings [2017/06/01 11:13] (current)
brian.kim
Line 1: Line 1:
 ====== Software Setting Guide for CloudShell-2 ====== ====== Software Setting Guide for CloudShell-2 ======
-This is step-by-step guide based on [[https://forum.odroid.com/viewtopic.php?f=146&​t=26007&​sid=b9f6d630883062d4f290c35ac7588b2e|Ubuntu 16.04.2 ​OS image]] for CloudShell-2 software environment.+This is step-by-step guide based on [[http://​odroid.com/​dokuwiki/​doku.php?id=en:​xu3_release_linux_ubuntu_k49|Ubuntu 16.04.2 ​minimal ​image]] for CloudShell-2 software environment.
  
 **0. Download Ubuntu image** [On HOST PC] **0. Download Ubuntu image** [On HOST PC]
 <​code>​ <​code>​
-$ wget http://deb.odroid.in/trial_4.9/​ubuntu-16.04.2-mate-odroid-xu4-20170222.img.xz +$ wget https://​odroid.in/​ubuntu_16.04lts/​ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz 
-$ wget http://deb.odroid.in/trial_4.9/​ubuntu-16.04.2-mate-odroid-xu4-20170222.img.xz.md5sum +$ wget https://​odroid.in/​ubuntu_16.04lts/​ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz.md5sum 
-$ md5sum -c ubuntu-16.04.2-mate-odroid-xu4-20170222.img.xz.md5sum +$ md5sum -c ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz.md5sum 
-ubuntu-16.04-server-odroid-xu3-20161028.img.xz: OK +ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz: OK 
-$ unxz ubuntu-16.04.2-mate-odroid-xu4-20170222.img.xz+$ unxz ubuntu-16.04.2-minimal-odroid-xu4-20170516.img.xz
 </​code>​ </​code>​
  
Line 17: Line 17:
      * <​code>​$ sudo umount /​dev/​path/​of/​card</​code>​      * <​code>​$ sudo umount /​dev/​path/​of/​card</​code>​
 <​code>​ <​code>​
-$ sudo dd if=ubuntu-16.04.2-mate-odroid-xu4-20170222.img of=</​dev/​path/​of/​card>​ bs=1M conv=fsync+$ sudo dd if=ubuntu-16.04.2-minimal-odroid-xu4-20170516.img of=</​dev/​path/​of/​card>​ bs=1M conv=fsync
 $ sudo sync $ sudo sync
 </​code>​ </​code>​
Line 24: Line 24:
  
 **4. Power on the CloudShell-2.** **4. Power on the CloudShell-2.**
 +
 +**4.2 Power off and on again the CloudShell-2** when the booting process is finished.
 +
 +**5. Login '​root'​ (password: '​odroid'​)**
  
 <WRAP center round important 100%> <WRAP center round important 100%>
Line 30: Line 34:
  
  
-**5. Update the Ubuntu to latest.** [On ODROID-XU4]+**6. Update the Ubuntu to latest.** [On ODROID-XU4]
 <​code>​ <​code>​
-$ sudo apt-get update && ​sudo apt-get upgrade && ​sudo apt-get dist-upgrade ​+apt-get update && apt-get upgrade && apt-get dist-upgrade ​
 </​code>​ </​code>​
 +   * If your meta kernel package is kept back, manually update it with the blow.
 +   * <​code>​ # apt-get install linux-image-xu3 ​
 + # reboot ​
 +(Login '​root'​ again after boot sequences are done.)</​code>​
  
 <WRAP center round important 100%> <WRAP center round important 100%>
Line 44: Line 52:
 </​WRAP>​ </​WRAP>​
  
-**6. Format the hard disks.** In this example, we use the just one partition. [On ODROID-XU4]\\+**7. Format the hard disks.** In this example, we use the just one partition. [On ODROID-XU4]\\
 * RAID 0/RAID 1/SPAN mode * RAID 0/RAID 1/SPAN mode
 <​code>​ <​code>​
-$ sudo dd if=/​dev/​zero of=/dev/sda bs=512 count=1 +dd if=/​dev/​zero of=/dev/sda bs=512 count=1 
-$ sudo mkfs.ext4 /dev/sda+mkfs.ext4 /dev/sda
 </​code>​ </​code>​
  
 * PM mode * PM mode
 <​code>​ <​code>​
-$ sudo dd if=/​dev/​zero of=/dev/sda bs=512 count=1 +dd if=/​dev/​zero of=/dev/sda bs=512 count=1 
-$ sudo mkfs.ext4 /dev/sda +mkfs.ext4 /dev/sda 
-$ sudo dd if=/​dev/​zero of=/dev/sdb bs=512 count=1 +dd if=/​dev/​zero of=/dev/sdb bs=512 count=1 
-$ sudo mkfs.ext4 /dev/sdb+mkfs.ext4 /dev/sdb
 </​code>​ </​code>​
  
-**7. Create the mount points and edit ///​etc/​fstab//​ file for auto-mount on system start-up**. [On ODROID-XU4]\\+**8. Create the mount points and edit ///​etc/​fstab//​ file for auto-mount on system start-up**. [On ODROID-XU4]\\
 * RAID 0/RAID 1/SPAN mode * RAID 0/RAID 1/SPAN mode
 <​code>​ <​code>​
-$ sudo mkdir -p /​media/​hdd +mkdir -p /​media/​hdd 
-$ sudo nano /etc/fstab+nano /etc/fstab
 </​code>​ </​code>​
 <​code>​ <​code>​
Line 69: Line 77:
 LABEL=boot /media/boot vfat defaults 0 1 LABEL=boot /media/boot vfat defaults 0 1
 /​dev/​sda ​      /​media/​hdd ext4 defaults ​   0 1 /​dev/​sda ​      /​media/​hdd ext4 defaults ​   0 1
 +</​code>​
 +<​code>​
 +# mount /media/hdd
 </​code>​ </​code>​
 * PM mode * PM mode
 <​code>​ <​code>​
-$ sudo mkdir -p /​media/​hdd1 +mkdir -p /​media/​hdd1 
-$ sudo mkdir -p /​media/​hdd2 +mkdir -p /​media/​hdd2 
-$ sudo nano /etc/fstab+nano /etc/fstab
 </​code>​ </​code>​
 <​code>​ <​code>​
Line 81: Line 92:
 /​dev/​sda ​      /​media/​hdd1 ext4 defaults ​   0 1 /​dev/​sda ​      /​media/​hdd1 ext4 defaults ​   0 1
 /​dev/​sdb ​      /​media/​hdd2 ext4 defaults ​   0 1 /​dev/​sdb ​      /​media/​hdd2 ext4 defaults ​   0 1
 +</​code>​
 +<​code>​
 +# mount /media/hdd1
 +# mount /media/hdd2
 </​code>​ </​code>​
  
-**8. Create a new account called "​cloudshell"​. This account is to access samba server.** [On ODROID-XU4]\\+**9. Create a new account called "​cloudshell"​. This account is to access samba server.** [On ODROID-XU4]\\
 * RAID 0/RAID 1/SPAN mode * RAID 0/RAID 1/SPAN mode
 <​code>​ <​code>​
-$ su - 
 # echo "/​bin/​false"​ >> /etc/shells # echo "/​bin/​false"​ >> /etc/shells
-# useradd cloudshell-d /media/hdd -s /bin/false+# useradd cloudshell -d /media/hdd -s /bin/false
 # passwd cloudshell # passwd cloudshell
 (Set the password of cloudshell) (Set the password of cloudshell)
 # chown cloudshell.cloudshell –R /media/hdd/ # chown cloudshell.cloudshell –R /media/hdd/
 # chmod 755 -R /media/hdd/ # chmod 755 -R /media/hdd/
-# reboot 
 </​code>​ </​code>​
 * PM mode * PM mode
 <​code>​ <​code>​
-$ su - 
 # echo "/​bin/​false"​ >> /etc/shells # echo "/​bin/​false"​ >> /etc/shells
-# useradd cloudshell-d /​media/​hdd1 ​-s /​bin/​false +# useradd cloudshell -d /media/hdd1 -s /bin/false
-# useradd cloudshell-d /​media/​hdd2 ​-s /bin/false+
 # passwd cloudshell # passwd cloudshell
 (Set the password of cloudshell) (Set the password of cloudshell)
Line 107: Line 118:
 # chmod 755 -R /​media/​hdd1/​ # chmod 755 -R /​media/​hdd1/​
 # chmod 755 -R /​media/​hdd2/​ # chmod 755 -R /​media/​hdd2/​
-# reboot 
 </​code>​ </​code>​
  
-**9. Install samba server.** [On ODROID-XU4]+**10. Install samba server.** [On ODROID-XU4]
 <​code>​ <​code>​
-$ sudo apt install -y samba+apt install -y samba
 </​code>​ </​code>​
  
-**10. Edit ///​etc/​samba/​smb.conf//​ file.** Add the following configuration options to the end of the ///​etc/​samba/​smb.conf//​ file. [On ODROID-XU4]\\+**11. Edit ///​etc/​samba/​smb.conf//​ file.** Add the following configuration options to the end of the ///​etc/​samba/​smb.conf//​ file. [On ODROID-XU4]\\
 * RAID 0/RAID 1/SPAN mode * RAID 0/RAID 1/SPAN mode
 <​code>​ <​code>​
Line 154: Line 164:
 </​code>​ </​code>​
  
-<WRAP center round tip 100%> +**12. Add the configurations below to the [global] section of the ///​etc/​samba/​smb.conf//​ file.** [On ODROID-XU4]
-**11 and 12 step is for samba performance optimization** +
-</​WRAP>​ +
- +
-**11. Add the configurations below to the [global] section of the ///​etc/​samba/​smb.conf//​ file.** [On ODROID-XU4]+
 <​code>​ <​code>​
 write cache size = 524288 write cache size = 524288
Line 167: Line 173:
 </​code>​ </​code>​
  
-**12. Add the system configurations to ///​etc/​rc.local//​ file.** [On ODROID-XU4] 
-<​code>​ 
-ifconfig eth0 mtu 6975 
-echo 5 > /​proc/​irq/​143/​smp_affinity_list 
-echo 6 > /​proc/​irq/​144/​smp_affinity_list 
-echo f > /​sys/​class/​net/​eth0/​queues/​rx-0/​rps_cpus 
-</​code>​ 
  
 **13. Install CloudShell-2 specific packages: enable LCD, FAN and IR.** **13. Install CloudShell-2 specific packages: enable LCD, FAN and IR.**
Line 180: Line 179:
 **14. Reboot and done!** **14. Reboot and done!**
 <​code>​ <​code>​
-$ sudo reboot+reboot
 </​code>​ </​code>​
en/xu4_cloudshell2/software_settings.1494921363.txt.gz · Last modified: 2017/05/16 16:26 by neal
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0