Successful CloudShell2 Install with Armbian 23.8 Bookworm

Post Reply
westyd1982
Posts: 1
Joined: Sun Nov 12, 2023 8:27 am
languages_spoken: english
ODROIDs: C2, XU4 +CloudShell2
Has thanked: 0
Been thanked: 1 time
Contact:

Successful CloudShell2 Install with Armbian 23.8 Bookworm

Post by westyd1982 »

I successfully installed Armbian 23.8 Bookworm and was able to get the CloudShell2 display and fan working. Download Armbian 23.8 Bookworm and install on SD card. Follow the regular steps to get Armbian up and running on the XU4. Using armbian-config, I selected the XU4 board and install avahi.

Install CloudShell2 Software on Armbian Bookworm

sudo nano /boot/boot.ini

In the Use Hardware Add-On section, change cs2enable to true:

Code: Select all

#------------------------------------------------------------------------------
#
# Use Hardware Add-On
#
#------------------------------------------------------------------------------
#
# If you are using your odroidxu4 in a CloudShell2 enclosure set this to true to
# enable TFT LCD and FAN control via i2c bus
# false : disabled
# true : TFT LCD and i2c bus enabled
#
# default : false
#
#------------------------------------------------------------------------------
setenv cs2enable "true"
Setup Hard Drive(s)

Code: Select all

sudo lsblk
sudo dd if=/dev/zero of=/dev/sda bs=512 count=10000
sudo mkfs.ext4 /dev/sda
sudo mkdir /mnt/hdd1
sudo nano /etc/fstab
UUID=[add device UUID] /mnt/hdd1 ext4 noexec,nodev,noatime,nodiratime 0 0
Set Up Software and Copy files

Get cloudshell software from: https://github.com/hardkernel/cloudshell-lcd

Copy cloudshell-lcd and cloudshell-lcd.service to your XU4. On the XU4:

Code: Select all

chmod +x cloudshell-lcd
sudo cp cloudshell-lcd /bin/cloudshell-lcd
sudo cp cloudshell-lcd.service /lib/systemd/system/cloudshell-lcd.service
sudo systemctl enable cloudshell-lcd.service
sudo systemctl start cloudshell-lcd.service
Fan control (adapted and updated from https://github.com/Virusmater/OdroidXU4-Cloudshell2-OMV):

nano fan_control.sh

Code: Select all

#!/bin/bash
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

temp_start_fan=50 #in celsius. adjust it for your own preference

cpu_temp=$(($(</sys/class/thermal/thermal_zone0/temp) / 1000))

echo "cpu temp = " $cpu_temp "C";
echo "start fan temp = " $temp_start_fan "C";


if [ $cpu_temp \> $temp_start_fan ];
then
    echo "starting fan";
    i2cset -y 0 0x60 0x05 0xf0; #start fan
else
    echo "stopping fan";
    i2cset -y 0 0x60 0x05 0xf5; #stop fan
fi;
chmod +x fan_control.sh
sudo cp fan_control.sh /usr/local/sbin/fan_control.sh
sudo crontab -e
* * * * * /usr/local/sbin/fan_control.sh

Finally:
sudo reboot
These users thanked the author westyd1982 for the post:
igorpec (Mon Nov 13, 2023 3:26 am)

Post Reply

Return to “CloudShell”

Who is online

Users browsing this forum: No registered users and 1 guest