Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:xu4_cloudshell2:software_settings [2017/05/19 18:00] brian.kim |
en:xu4_cloudshell2:software_settings [2017/06/01 11:13] (current) brian.kim |
||
---|---|---|---|
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. | * If your meta kernel package is kept back, manually update it with the blow. | ||
- | * <code> $ sudo apt-get install linux-image-xu3 | + | * <code> # apt-get install linux-image-xu3 |
- | $ sudo reboot </code> | + | # reboot |
+ | (Login 'root' again after boot sequences are done.)</code> | ||
<WRAP center round important 100%> | <WRAP center round important 100%> | ||
Line 47: | 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 72: | 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 84: | 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 110: | 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 157: | 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 170: | 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/$(cat /proc/interrupts | grep 104 | awk -F : '{print $1}')/smp_affinity_list | ||
- | echo 6 > /proc/irq/$(cat /proc/interrupts | grep 105 | awk -F : '{print $1}')/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 183: | Line 179: | ||
**14. Reboot and done!** | **14. Reboot and done!** | ||
<code> | <code> | ||
- | $ sudo reboot | + | # reboot |
</code> | </code> |