Feature request - cloudshell XU4

Suggestions for features and software you would like to see in DietPi, goes here.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Feature request - cloudshell XU4

Post by Fourdee »

John,

Ready for testing.
Had to change a lot of the source code and how it saves settings, so this will reset your current DietPi-Cloudshell settings.

Please run the following commands to update (copy and paste all into term):

Code: Select all

rm /DietPi/dietpi/.dietpi-cloudshell
cat << _EOF_ > /etc/systemd/system/dietpi-cloudshell.service
[Unit]
Description=dietpi-cloudshell on main screen

[Service]
Type=forking
StandardOutput=tty

# These are run from dietpi-cloudshell and autostart
ExecStartPre=/bin/bash -c 'setterm --term linux --blank 0 --powersave off' # Fails to set powersaving, must originate from tty
ExecStartPre=/bin/bash -c 'tput civis'

ExecStart=/bin/bash -c '/DietPi/dietpi/dietpi-cloudshell 1 &'
ExecStop=/bin/bash -c 'setterm -reset'
ExecStop=/bin/bash -c '/DietPi/dietpi/func/dietpi-notify 0 DietPi-Cloudshell terminated, have a nice day!'

[Install]
WantedBy=multi-user.target
_EOF_
systemctl daemon-reload
wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/dietpi-cloudshell -O /DietPi/dietpi/dietpi-cloudshell
Reboot system, then run dietpi-cloudshell to configure. You'll be looking for the "Storage" settings option to configure mount paths. Then enable the additional scenes as needed.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Feature request - cloudshell XU4

Post by johnvick »

HI Fourdee,

Thanks it's looking like just what I need and I am sure others will find it useful.

John
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Feature request - cloudshell XU4

Post by Fourdee »

johnvick wrote:HI Fourdee,

Thanks it's looking like just what I need and I am sure others will find it useful.

John
Excellent, please let me know what you think after you've tested it over a few days (eg: any feedback, changes etc)?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Feature request - cloudshell XU4

Post by johnvick »

Hi Fourdee,

Thanks for this welcome addition.

Some initial observations are that before the USB2/3 screen there is some garbage text on screen for a very brief period - can't read it and I doubt I'd be quick enough to photograph it.

I have the SSD mounted as /mnt/ssd and is the second device in cloudshell - sometimes the screen says "mount not active" and other cycles it appears as it should (same applies to flash/rootfs storage). A few reboots and the situation isn't any different. I don't remember seeing "mount not active" in v7.

Can I request that you can give drives identifying names instead of USB Storage 1 - such as SSD, HD, Flash drive etc?

John
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Feature request - cloudshell XU4

Post by johnvick »

IMG_20161103_113522 (Copy).jpg
IMG_20161103_113639_BURST023 (Copy).jpg
The pictures show the blue line extending onto the second line - minor I know but I'm sure you'll want it to look perfect - and the "mount not active message".
The next shows some screen garbage - an error that is quickly overwritten.

John
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Feature request - cloudshell XU4

Post by Fourdee »

Thanks John,

I'll take a look.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Feature request - cloudshell XU4

Post by Fourdee »

Hi John,

Image 1 is fixed.

Image 2, cant seem to replicate this on mine. If you can remember, does it flash before the PiHole scene is displayed or after?

Changing names of drives, throught you'd ask so I coded it to allow that ;)

Code: Select all

nano /DietPi/dietpi/.dietpi-cloudshell
- Scroll to bottom
- Change the STORAGE_NAME values as needed
- Add spaces at the end of the name to line up with the other entries (or it will spill over to next line)
Example, USB_5:

Code: Select all

STORAGE_NAME[5]='Epic drive 1!       '
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Feature request - cloudshell XU4

Post by johnvick »

HI Fourdee,

Thanks for the update - the line fixed as you say - I have changed the drive names - the garbage text doesn't happen any more for some reason.

I still get the "mount not active" message for the eMMC and the SSD - but not consistently. A reboot doesn't make any difference. Some cycles they are reported OK, some not.

Any idea why this is?

John
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Feature request - cloudshell XU4

Post by Fourdee »

johnvick wrote:I still get the "mount not active" message for the eMMC and the SSD - but not consistently. A reboot doesn't make any difference. Some cycles they are reported OK, some not.

Any idea why this is?
Hi John,

Mount not active is triggered when df | grep drive mount (eg: /mnt/usb_1) returns no results. So either its being temporarily dismounted, or something else.
Let me monitor my XU4 over the next few days and see if I can replicate.

Next time you see mount not active and your connected to the system over SSH, run df -h and see if your drive is listed.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Feature request - cloudshell XU4

Post by johnvick »

Hi Fourdee,

Still intermittently getting this message and all drives present with df -h. Sometimes the root fs drive is reported as "Mount not active" which is a bit of a paradox.

John
Post Reply