Saturday, 31 October 2015

install Google Earth on Elementary OS Freya - Ross Devitt



Google Earth has changed from just being a popular diversion on Linux to becoming a handy and for some people, indispensable tool used by many.   There are several ways to install Google earth in Debian based Linux distributions like Ubuntu and Elementary OS.

If you are using the 32 bit Elementary OS system, the quickest and by far the simplest way to install Google earth at the time of writing this post (October 2015) is from the terminal.   Simply press Ctrl+Alt+T  keys and when the terminal opens, type the following commands.  Type each one as soon as the previous one is completed and you have the $ prompt again.  You will need to be connected to the Internet of course, and you will be asked for your root password after you enter the second command.

This first command will get the install package from google.

wget http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb

This one will unpack the deb file and prepare it for installation.

sudo dpkg -i google-earth-stable*.deb

(you will now be asked for the [sudo] password.  this is your root password.

You may see a message that there are dependencey problems with lsb-core and that Errors were encountered while processing.  You should be able to ignore these, because lsb-core is probably already installed.

The final command which actually installs Google Earth is

sudo apt-get -f install

You might be asked to confirm you want to go ahead with the installation - just hit enter.  Once complete Google Earth will appear in your Applications Menu under the Internet section.

Here are the three commands one after the other.  Just copy each one (one at a time), paste and hit enter.

wget http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
sudo dpkg -i google-earth-stable*.deb
sudo apt-get -f install

NOTE!  This is for 32 bit systems.  64 Bit installation is a little more tricky.
For various reasons I run 32 bit OS on my 64 bit somputers.


Friday, 23 October 2015

Elementary OS and other distributions - ROOT low on space

This morning I again got a warning message the 'root' is low on space.  I've mentioned before that I'm used to the old days when Linux fitted nicely onto a single floppy.  And that a legacy of that is my tendency to only allocate about 15GB to the Linux root file system.

One major problem with root getting low is its impact on /tmp, particularly during operations like working with a HD video or something similar that uses /tmp a lot.  That is easily fixed in the short term by making /tmp a link to a tmp directory in my /home.

But even with that in place, I was warned that I knoy had around 500MB of free space in /root today.  So I set about discovering the culprit.  An analysis of my file scructure soon showed that I had almost 7GB in /usr, with much of it in /share.  One of the  surprising finds was around 2GB of icons that I never use.  Another was a huge stash of old Linux kernels and headers.

By deleting the folders for icons I never use from /usr/share/icons I managed to get about 1GB of free space.  it was after that I discovered all the kernels and headers.  But past experience reminded me that digging around these stripping one at a time was slow and tedious.  However deleting them all in one go is a big risk.

I used the uname -r command in a terminal to show me which kernel is being used, the rebnooted the system to confirm that this was the one used by GRUB.  I am aware of the importance of leaving at least one previous kernel and header in the system as a fallback in case the one being used fails.  In practice however, I have never managed to get a system to boot into one of the old kernels from GRUB.

So I opted for the riskier method of stripping the old kernels by purging all but the one currently in use.

Using the following in a terminal (acquired from:  https://ubuntugenius.wordpress.com/2011/01/08/ubuntu-cleanup-how-to-remove-all-unused-linux-kernel-headers-images-and-modules/)

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

Then waiting while it did its business then rebuilt GRUB brought my total free space on /root  to a little over 4GB.  Plenty to get me out of trouble until I decided some time to repartitions the hard drive and reinstall from scratch.

Before too long Elementary should complete another update with a replacement kernel and I should have a backup kernel and headers in place anyway.

For now, I have some room to move again!




Monday, 12 October 2015

Elementary OS FREYA Some keyboard shortcuts and a little surprise

Ok, this is probably no secret, but it is something I just noticed.  After using Elementary OS Freya for quite a while now it still provides little surprises from time to time.

I was about to put a hot key combination in a program and I pressed what used to be the 'Windows' key but is now more commonly called the 'SUPER' key.  (That's the one between Ctrl  and  Alt on most keyboards).   The plan was to use an easy to remember combination of Super and something else.  But I pressed the combination without opening the program.

And here's the result!

This is the menu as it first pops up - showing 'Places' on the computer.  Files, folders and stuff:


And here's what happens when I click on Graphics from that MENU:


A rather neat shortcut to a nice elegant desktop menu.

This is probably built into most Linux distributions, but because I'm so used to simply right clicking the desktop to bring up a Desktop Menu, I've never seen it.  it is probably also in Windows, but I haven't used that OS in more than a decade.

Almost 18 years now of using Linux and it still surprises me.  One thing about Freya's implementation of the desktop menu is that it is attractive.

The most common actions activated by the  'SUPER' key are.

SUPER and TAB will
cycle between desktops,
(just as Ctrl Alt Right Arrow - but with one less key to hold down)

SUPER and Home as well as SUPER and End -
will move forwards and backwards through workspaces
(just as Ctrl Alt Right or Left Arrow - but with one less key to hold down)

SUPER and W
toggles a view of all running programs in the current workspace

SUPER and A  on the other hand is quite useful.    It is similar to Supper W, but it
shows ALL programs currently running regardless of whatever workspace they are on.

SUPER and S
opens the normal Slingshot menu on the panel.

SUPER and L   -  
LOCKS the screen and requires your login password to get back in.

N O T E ! ! !
SUPER and P -  is   something to avoid.    It cycles between screen mirroring, swapping primary and secondary display settings and other stuff.  If you had 'Conky' clock running on your secondary display for example, it will rewrite it to appear on the primary display.
so SUPER and P is a SUPER P ain in the Arse.



Saturday, 10 October 2015

Linux, Elementary and the problem with temp files

One legacy of more than fifteen years using Linux is complacency.  some of us are so used to Linux being pretty well bulletproof that we forget it has changed.  And it has grown.  I fall for this all the time.  A root file system of a grew hundred megabytes used to be plenty.  Later as Linux distributions grew I started making root about two, then four gigabytes.  Over the last few years I installed into root partitions of fourteen and twenty gigabytes.  Now I find my Elementary OS Freya is taking all but three and a half of the fourteen gigabytes allocated to root.

This was not much of an issue in the past, but with NBN in Australia we have significantly increased our ability to move data around.  And as someone who likes playing with operating systems and graphics, not to mention editing video, I end up with large files in my /tmp directory.  This creates fairly regular warnings that my hard disk is low on space.

As an example, just now I decided to pull in a 1.6GB iso.  It wants to transit /tmp on the way to its eventual destination.  And there is only about 2GB space in /root.  Next time there's a major release of Elementary I will probably reformat my hard drive and allocate about 30GB to root.  For now though the simplest option is to make more room in /tmp.

Luckily in Linux the problem is relatively easy to solve.  First I need to redirect all saves to /root/tmp to my home directory.   So first I make a new /tmp under /home/user.   Then I send all 'current' tmp stuff there.  This applies to operations after Linux has actually booted.  There will be some files still going to /root/tmp, but most of them will be zero bytes in size.

Opening my text editor as root I can edit the environment file.

$  sudo kate /etc/environment          And on a new line enter the following:

TEMP=/home/user/tmp

Then save the file and reboot the computer.   whatever text editor you use can be substituted for kate.  gedit, kwrite, vi, whatever is in use at the moment.

Something to be aware of though is that things like lock files for the word processor and other functions will also be redirected to this /home/user/tmp directory.  So it is easy to kill stuff that shouldn't be 'made dead'.   If that is a concern, make the tmp directory hidden by putting a dot in front of it.  But remember to make the environment path read    TEMP=/home/user/.tmp      so the system can find it.




Monday, 5 October 2015

SLIMJET - My Favourite Browser for Linux and other Operating Systems

 Ok, I've been a naughty blogger again and haven't written anything for a while.  One of the joys of bad health.  However, I have been plagued by the slow browser thing again.

 Over the years I have seen web browsers gain more and more features, while becoming slower and slower to use.  This can be blamed on many things. The Internet becoming overloaded is the main suggestion I hear, but with the massive improvements in delivery speed people are writing richer and more intense content.  This often means downloading much more 'stuff and then everything slows.

However it is more than that.  Firefox used to be fast.  Opera once blitzed almost every other mainstream browser.  Google Chrome was brilliant for a while, and recently I switched to Chromium to get away from some of the annoyances that Mr Google imposes on us.

Opera is still fast and nice but has serious limitations in a Linux Environment.  Quite simply it cannot cope with the demands of something more powerful and versatile than poor old Windows.

There's a light at the end of the tunnel though.  One of my annoyances with Google Chrome that has been inherited by Chromium is the lack of customization.  And of course one of the reasons may of us 'old timers' still love Linux and particularly Ubuntu is that we can customise 'stuff'.  We can make most things look and work almost exactly as we want to.

I save a lot of pages from the web.  Pages I have created for people that I want to experiment on in a live situation.  And in most browsers I can simply go to File > Save Page As  and save the page with its various 'bits' to a folder.  Now, it is easy enough to do this with a keyboard shortcut, but I'm an old man and I use so many keyboard shortcuts that sometimes it is easier to click the File menu and choose Save As than to remember the shortcut.

But Google Chrome no longer makes that available.  I can find it by opening the file dropdown and looking under More Tools.  And there I can see the shortcut.  But right next to the shortcut is the menu item anyway, so I can click that.  However it is not somewhere easy to find.

So I discovered Flashpeak Slimjet.  Now, Slimjet is built on Chromium.  But unlike Chromium it allows customization.  So I can have just about anything just about anywhere I want it.

Slimjet (http://www.slimjet.com/en/) claims to be the "Fastest web browser for Windows & Linux Powered by Blink engine".  But it doesn't stop there.

Let's have a look at the features offered by this browser.


Efficient Ad BlockerKill Annoying Ads with Ad Blocker

 
internet download managerTurbocharged Download Manager
  Fed up with all the annoying ads? Kill them all with the built-in ad blocker. Boost the performance of your browser by saving memory, CPU and bandwidth consumed by the ads. Boost file download speeds by up to 12 times by making multiple parallel connections to the server. Also allows you to resume download jobs between different sessions.
 
form filler and password managerQuickFill Intelligent Form Filler
 
Fast Download ManagerFully-customizable Toolbar
  Smarter and more convenient than the basic password manager in Chrome. Save page link and login data in a form file which lets you open your favorite online account with a single click later on. Slimjet let users customize the toolbar and add/remove additional buttons to quickly access more features and functionalities.
 
In-Browser Facebook IntegrationConvenient Facebook Integration
 
download videoYoutube Video Downloader
  In Slimjet, you can share the link you visited, a paragraph of text or an image easily on facebook with a single click on the facebook toolbar button. Download any youtube videos to local hard disk in various resolution and format for offline viewing. You can also extract mp3 file from the downloaded video file.
 
fast photo uploadingPhoto Enhancement & Photo Framing
 
photo shrinkingInstant Photo Upload
  Slimjet includes a Photo Salon in which you can apply different effects or add beautiful frames to the photos before they are uploaded. Automatically compress photos to web-optimized resolution so that photos are uploaded up to 20 times faster.
 
Integrated Weather ForecastWeather Condition & Weather Forecast
 
url aliasURL Alias Support in Omnibox
  Display currrent weather condition and weather forecast directly on the browser window. Slimjet lets you define short aliases for long URLs which are slow to type and hard to remember. After that, just type the aliases from the omnibox to open the corresponding page.
 
browser extensionExtensive Support for Plugins and Themes
 
quick-dial new tab pageCustomizable New Tab Page

  Slimjet is compatible with most plugins and extenions designed for Chrome, such as Adblock Plus, RoboForm, LastPass, Avast Online Security, etc. It is also compatible with all the chrome themes. You can customize the number of quick-dial buttons and the background image. Multiple search engines and voice input are supported on the search box in the New Tab page.
 
Built-in Web Page TranslationFlexible Web Page Translation
 
options and settingsFlexible Options and Settings
  Instead of automatically translating a full web page into the current UI language, Slimjet lets you translate a web page or a piece of text between any two specified languages. Slimjet provides many additional options and settings so that you can customize the browser to best suit your personal preference instead of being forced to take everything as it is without any choice.
 
I must admit that I have replaced Slimjet's speed dial with FVD 3D Speed Dial, and I will write about that another time,  But it is simply because I like the curved screen look of FVD 3D.  On the other hand, I do use the YouTube download part extensively and I can also vouch for the ridiculously fast download manager.

There are many more features and options that can be used in Slimjet, but I don't know how much it can be loaded up without slowing it down.  For now though I find it lives up to its promise of speed and flexibility perfectly.  Chrome keyboard shortcuts work of course and I had no problem importing bookmarks and stuff from both Chrome and Firefox.

 More Features and Options:


 Auto refresh web page
Auto refresh one or more web pages based on a preset period.

 Enhanced autofill from predefined identity information
Added support of login id and preferred password to the autofill feature available in Chrome.

 Bookmarks side panel
Get quick access to more bookmark links and folders with the bookmarks side panel.

 Quickly switch search engine
A drop down button is available at the right end of the omnibox which allows users to quickly switch between different search engines.

 Save webpage screenshot
Save screenshot of the entire page or selected region as an image file.

 Flexible Tab Behavior Control
Options to control automatic tab activation, automatic tab creation, tab insertion order and more.

 Stop all gif animations
A simple switch can be flipped to stop all gif animations (most of them annoying ads) from playing.

 Allow mixed-mode http/https content
Option to allow mixed http/https content to run properly.

 Option to disable desktop notification
A simple switch to quickly disable all desktop notifications that many users find annoying in Chrome.

 Upload clipboard image
Upload image stored in clipboard quickly without having to manually saving it to a file first.

Friday, 21 August 2015

Elementary OS Freya - The DropBox problem.

Elementay OS has been one of those computing experiences that simply sneaks up on me.  What I mean is that I forget am using it, and forget to write about it.  That is a good thing in a way because it means I am not frustrated with it or challenged by it - it simply works.

There are still a few odd things that are still a bit strange.  Dropbox is one of them.  Sure, it can be installed form the Software Centre, but often that doesn't add the dropbox icon to the Wingpanel, which means you can't right click on the icon to check status and perform other actions.  If does however incorporate Dropbox into the default file manager, where right click actions are available.

Then you get people like me who have their Elementary OS Freya modified.  I don;t use the default file manager - I use a personally tweaked Dolphin.  And while my Dropbox folder shows up in Dolphin, there are no right click actions for Dropbox available.

So back to the Wingpanel icon.  Adding that gave me one click availability for Dropbox.

First, open Software Centre or Synapric (whichever you use) and REMOVE Dropbox.
Then close Software Centre or Synaptic.

Open a terminal and if you don;t already have it - install 'git'

sudo apt-get install git

Then 'git' the installer for Dropbox

git clone https://github.com/zant95/elementary-dropbox /tmp/elementary-dropbox

Then install Dropbox.

bash /tmp/elementary-dropbox/install.sh

I think from memory I got a message asking if I wanted to run Dropbox.  Accept, and it will ask for your login details.  Once that is done and you go through the initial guide stuff you should have the DropBox icon in Wingpanel.  If it is not there, try logging out and in again.  
If all went well it will be there.  In the screenshop Dropbox is the white icon on the left.


Sunday, 26 July 2015

pcDuino v3B no audio from some programs - by Ross Devitt

After using sudo board-config.sh to update my pcDuino v3B various things stopped working and I have written about some of them in the previous posts.  One ting I did not check before the upgrade though, was whether I had sound in my browser and things like smplayer and vlc.  XBMC worked and for my original purpose that was all I was interested in.

But the more I got involved in this magic little computer, the more I wanted to try other things.  And during that process I discovered the ONLY thing that had sound was XBMC.  So I did a little snooping.  And found a simple solution - for me at least.

Now at the time i didn't write down everything I did.  It was after midnight and I was exhausted.  But I know I did: 

sudo apt-get install pavucontrol 

I can;t remember if that installed all the other pulse audio stuff or if i had to also do:

 sudo apt-get install pulseaudio

But if you have this problem, try the first.  If it still doesn;t allow you to set up audio, try the second as well.

After I did this i could adjust sound settings from the volume icon on the panel.  Then I had ausio output in everything inclusing YouTube videos!

Cheers,

RossD

Saturday, 25 July 2015

PCDUINO v3B XBMC won;t play mpg and mpeg videos - by Ross Devitt

The longer I play with the PCDUINO v3B, the more things I find that are wrong with it.  but so far,with the exception of that problem creating a bootable, usable 32GB micro SD card, the other problems seem to have solutions.

One annoying thing that I discovered when I got my 1 Terror Bite portable USB 3.0 hard drives drives working in the pcDuino 3B was that while mp4 files played great, I have a heap of old mpg and mpeg videos that would not work.  Generally as XBMC was working through a playlist as soon as it encountered an mpeg or mpg extension, it simply shut down and dropped to the desktop.

I can't guarantee this solution this will fix it for everyone, but it worked for me.

Open a terminal and type:

sudo apt-get install mplayer2


Then hit enter and wait.  You might have to hit enter again if it asks you for a Y/n choice.

Next do:

sudo apt-get install libavcodec-extra-53 

And hit enter again.

It was that simple.  As soon as I opened XBMC again it played all my mp4 and mpg and mpeg videos.  I haven't checked to see if avi files are still playing.  I must admit i was so excited I forgot.

Anyway, just another tip for pcDuino v3B users.  Hope it helps.

Cheers,

RossD.

pcDuino How to use pcDuino with a 1TB USB hard drive - by Ross Devitt

The pcDuino is a great device and can make a fantastic entertainment centre, but it has one major failing.  Although it is just the richt size to fit in an enclosure with a USB hard drive, it needs a uSB hub in the only USB port to run things like a mouse and keyboard or the wireless dongle for a wireless all in one keyboard like the Logitech k400.

This means that you can only run a USB hard drive if you install a powered USB hub.  And that means you need to have access to power for that hub.  I searched for a simple way to use power from the SATA drive connector to power a USB hub, and I searched for a simple adapter from the on board SATA to USB female.  Neither seems possible.

But there is a solution and it is relatively easy.

By following the instructions here:  http://learn.linksprite.com/pcduino/usb-development/turn-usb-otg-port-into-an-extra-usb-host-pcduino3/  very carefully, you can use the OTG port as an extra USB port for connecting the USB hub and wireless dongle.

And here is the great news!   Once that was enabled, I could run up a 1 Terabyte portable USB drive (NOT the desktop type) and access all my movies and music etc on it.  It plays 1.5GB 1080p videos without hesitation in XBMC.  And it allows me to select and play content from thumb drives connected to the USB hub in the OTG port just as easily.

This means that if I want to I can now have a 1TB USB drive attached to the bottom of the pcDuino case and use it as a complete self containeed Multimedia Centre.  Stacking that combo on top of my PowerBank should make the thing completely portable. 

It also means I might be able to install the OS to a partioned portable hard drive with a bit of work.  Al lI need is the right kernel and I might be able to get Elementary or Lubuuntu running completely on a nice big drive.

But those are experiments still in the plannign stage.  For now at least I have decent functionality.

Cheers - RossD

pcDuino3 - using 32GB SD Card as main drive - by Ross Devitt

The pcDuino3B has 1GB Flash memory and 4GB RAM.  With the pcDuino's version of lubuntu installed there's about 1.5GB of free spance for the home partition for user files.  This rapidly shrinks as it fills up with cacheed stuff, especially if you run a browser.

Luckily it is easy to write a shell script to clear the cache regularly and I am playing around with ways to do this at boot.  In the mean time it is a nuisance that such a great and versatile little computer is hamstrung by this lack of usable space.

Ok, first the good news!  According to these instructions on the Linksprite website it is possible to expand the usefuless of the pcDuino3 by cloning the OS to a 32GB micro SD card.

http://learn.linksprite.com/pcduino/quick-start/pcduino3/use-32gb-sd-card-with-pcduino3/

Now the bad news.

It is bullshit.  It might work for some people, but it doesn't work.

UPDATE - 

I'll put any updates here close to the top of the post so they can be found easily.  
I have jsut tried a third method to create a bootable 32GB microSD.  I used a utility called unetbootin, which usually works with almost anything.  It found the pcDuino .img file, and it even wrote it to the card.  But no way was it interested in booting.

Ok, back to the original post:
 
By following the steps exactly as written, I managed to end up with a 32GB microSD card with a dead partiton table.  It would not show up on any computer.  So I tried a 16GB card and ended up with a dead microSD card.  After that I wondered if I had a couple of dud cards, so I bought a brand new Sandisk Ultra microSD card and tried that.

Sure enough after carefully following the steps exactly I had another dead card.  Luckily Gparted on my Linux computer enabled me to rebuild the cards, Testing each one as I finished to make sure I could write a file to it and delete the file again.

Tried the board-config.sh thing again and managed to get one card that went through the motions of booting, but locked in a loop that asked for a sh file it expected to find on a USB disk. However reading the file told me it would overwrite the on-board nand and that is not somethign I wasnte to do accidentally.

I found another site that offered a more traditional way to burn a bootable 32GB micro SD using the following method.

sudo dd if=/home/user/file.img of=/dev/sdX bs=1M
    
     FIRST - UNMOUNT sdb1
    
     umount /dev/sdb1
    
     THEN - write the image
    
Wonderful!  I now had about 8MB of my 32GB disk used.  But still not bootable.

A bit of googling suggests this is a pretty common problem and nobody has devised a solution to it yet.  My guess is that there is somethign missing from the instructions at Linksprite.com.

My advice - forget about trying to use a 32GB card if it doesn;t work the first time and if you are worried aboout destroying partitions on the microSD cards.




However all is not lost.  Although I was not able to fix the lack of storage, I was able to delete some cache files and fix one other problem - which will be addressed in the following post.

And I am still trying to find a solution to the bootable 32GB micro SD problem.  If I could only find the thing as an iso instead of an img file.

Cheers,  RossD.


Friday, 24 July 2015

pcDuino ethernet not working - by Ross Devitt

There's problem on the pcDuino v3B that occurs if you update or upgrade the Ubuntu operating system.  WiFi networking still works, but the wired ethernet (eth0) is disabled..   It seems to be a Ubuntu problem, not a pcDuino problem as it has only been happening to people since recent Ubuntu updates and it seems to have happened to various distros.

I believe there is a way to correct it by editing a system file, but I'm not sure I have the patience at the moment to go looking for it.  So here's a quick fix that worked for me. 

Create a file in your Desktop folder and call it something like  Start-Ethernet   and copy the following 2 lines into it.

!#/bin/bash
sudo killall -9 NetworkManager

Then make the file executable (you can do this by right clicking the file in File Manager then choosing Properties > Permissions and click in the check box for Make Executable)

Then when you click the file on the desktop, it will stop your network, then restart it.  Instead of teh WiFi symbol on the right end of the panel, you will see two arrows, one up - one down.  This is the icon to show Wired Ethernet is connected.

It is probably not the correct way to fix the problem, but it is simple, and it works.

When you reboot the pcDuino though, you will be back to Wireless Networking.  Simply click the file again and wait until it swaps over to Wired Ethernet.

Obviously, if you don;t have a network cable plugged in you can ignore this.  But if you don;t have a WiFi router and have to rely on cables, this might just help you.

Thursday, 23 July 2015

what to do when PCDUINO will not shut down after lubuntu upgrade - by Ross Devitt

Ok, I came across an annoying problem with the PCDUINO after I ran sudo apt-get upgrade.  The shutdown icon on the right end of the panel no longer works.  It simply flashes the shutdown dialog on the screen for one second and if you can read it quickly enough it says you cannot shutdown while another user is logged in.

Now, on Linux, there is always another user logged in.  If you run the command   who   in a terminal you will see user  root logged in at ttys0 and tty1.  This is normal and necessary.  You will also see user ubuntu logged in at tty7.  This is you unless you created a new user account.

What is happening is due to the way some linux distros work with user policy and it is annoying but ridiculously simple to fix on our little PCDUINO because in lubuntu any files in the desktop folder are displayed 'on the desktop.

1 - open your desktop folder
2 - create a new text document called  SHUTDOWN
3 - open the text document
4 - In the text document type ecactly what is in the two lines below (nothing else) the 0 is a number ZERO

!#/bin/bash
sudo shutdown -h 0

5 - save the file then make it executable.  You could do this from the command line, but the easiest way is to open the desktop folder with File manager, then right click your file called SHUTDOWN   and open the Permissions tab.  At the bottom you will see a check box that says 'Make this file executable'.  Click the box to put a tick in it, and you now have a little program that will shut down your computer.

The file SHUTDOWN  will show on your desktop.  Simply click it and the PCDUINO will close down neatly and normally.  To start it again, just unplug the USB power cable from the power adapter or from your power bank and plug it in again.

Reboot from the icon is also dead, so you can follow the directions above and make another file called REBOOT in the Desktop folder.
Don't forget to save your new file and make it executable.

Just make the contents  below:

!#/bin/bash
sudo reboot


Again, this REBOOT file will show on your desktop.  Simply click on it and you can reboot your system.

I name the files in CAPITALS so I can find them easily and not click them accidentally.

There are more complicated ways to solve this problem by editing system files, but this is simple, quick and effective.

Cheers,

RossD