After installing and uninstalling many times here is my final set of notes. The HDMI settings you need to adjust for your situation, and if you are using VNC. It might be easier to follow my notes in the attached document.
these notes only apply for Ubuntu-mate on a Raspberry PI using more than 4 gig of SD. Resizing the storage on the sd card does not apply unless you have more than 4 gig. I recomend a minimum of 8. I highly recomend you leave the standard applications for ubuntu-mate as they are, just to minimize any probability of uninstalling apps interfering with KStars. The one application I added was filezilla to transfer images on and off the RPI.
good luck... Bruce .....
I am not an expert in Linux, I just pretent too....
resize hdmi screen
sudo nano /boot/config.txt
remove # comment out
disable_overscan=1
hdmi_force_hotplug=1 enable low resolution if using VNC and no HDMI
hdmi_group=1 to force vga
hdmi_mode=16 to force vga
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
overscan_left=16
overscan_right=16
overscan_top=16
overscan_bottom=16
resize partition
elinux.org/RPi_Resize_Flash_Partitions
Manually resizing the SD card on Raspberry Pi
You can also resize the partitions of the SD card that your Pi is running on.
First you need to change the partition table with fdisk. You need to remove the existing partition entries and then create a single new partition than takes the whole free space of the disk. This will only change the partition table, not the partitions data on disk. The start of the new partition needs to be aligned with the old partition!
Start fdisk:
sudo fdisk /dev/mmcblk0
Then delete partitions with d and create a new with n. You can view the existing table with p.
p to see the current start of the main partition
d, 3 to delete the swap partition
d, 2 to delete the main partition
n p 2 to create a new primary partition, next you need to enter the start of the old main partition and then the size (enter for complete SD card). The main partition on the Debian image from 2012-04-19 starts at 157696, but the start of your partition might be different. Check the p output!
w write the new partition table
Now you need to reboot:
sudo shutdown -r now
After the reboot you need to resize the filesystem on the partition. The resize2fs command will resize your filesystem to the new size from the changed partition table.
sudo resize2fs /dev/mmcblk0p2
This will take a few minutes, depending on the size and speed of your SD card.
When it is done, you can check the new size with:
df -h
install kstars /indi /ekos bleeding
sudo apt-add-repository ppa:mutlaqja/ppa
sudo apt-add-repository ppa:mutlaqja/astrometry.net
sudo apt-get update
sudo apt-get install kstars-bleeding && sudo apt-get install kstars-bleeding-dbg indi-dbg && sudo apt-get install gsc
Install VNC
To install X11VNC server SSH into your RasPi and use - sudo apt-get install x11vnc.
Now use x11vnc -storepasswd and set your VNC access password.
Now, we need to make X11VNC server start with LXDE, to do that use following commands at terminal.
cd .config
mkdir autostart
cd autostart
nano x11vnc.desktop
Now paste following :
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=X11VNC
Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer
StartupNotify=false
Terminal=false
Hidden=false
Save the above file by using - Ctrl-X, Y,
This will auto start our VNC server every time
Read more: Installing VNC server on Raspberry Pi for remote desktop functionality | Megaleecher.Net
www.megaleecher.net/Raspberry_Pi_VNC_Setup#ixzz3ccZwUy8n