How can I get Pi-Star Gui

2,083次阅读
没有评论

The Steps of Pi-Star Gui

here are the instructions…..

Expand the SD card with the following command
sudo pistar-expand
​​exit from the command and let the pi reboot
Now set pi-star to read/write mode with this command:
​​rpi-rw
​​then enter this command to download the needed script:
​​wget http://pistar.uk/downloads/installGUI.sh
Change the permissions on the downloaded file:
chmod 755 installGUI.sh
Run the installer command:
./installGUI.sh
Be Patient!!! The installer takes a really long time. It has to download all the files needed to enable the GUI interface on Pi-star. Leave it alone, and let it do its job. It should restart when done, and boot to your new dashboard screen.
At this point, you need to use SSH, either direct, or through the dashboard. The next few steps will make it so you dont have to ‘login’ to the dashboard when using the on-board screen. It will still require login from any other device.
Edit the following file using your editor of choice (nano, vi, etc) ****Note – you must use ‘sudo’ with your editor to have proper permissions for editing the file.
/etc/nginx/sites-enabled/pi-star
Find the line that contains the following:
location ^~ /admin {
Create a new line after the line you found and add the following 2 lines:
satisfy any;
allow 127.0.0.1;

Save your file and exit.

installGUI.sh

#!/bin/bash
#
# Script to install a GUI and WebBrowser on Pi-Star
#         Written by Andy Taylor (MW0MWZ)
#

# Remount root as writable
sudo mount -o remount,rw /
sudo mount -o remount,rw /boot

# Update the apt sources
sudo apt-get update

# Patch Debian 9
if [[ $(cut -c 1 /etc/debian_version) -eq 9 ]]; then
	sudo apt-get install -y --reinstall libraspberrypi0 libraspberrypi-dev libraspberrypi-bin
fi

# Install all the GUI apps
sudo apt-get install -y --no-install-recommends xserver-xorg
sudo apt-get install -y --no-install-recommends xinit
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y raspberrypi-ui-mods
sudo apt-get install -y lightdm

# Install unclutter to remove the pointer
sudo apt-get install -y unclutter chromium-browser

# Modify the autostart parameters
mkdir /home/pi-star/.config
mkdir /home/pi-star/.config/lxsession
mkdir /home/pi-star/.config/lxsession/LXDE-pi
touch /home/pi-star/.config/lxsession/LXDE-pi/autostart
sed -i 's/@xscreensaver -no-splash/#@xscreensaver -no-splash/g' /home/pi-star/.config/lxsession/LXDE-pi/autostart
echo "@xset s off" >> /home/pi-star/.config/lxsession/LXDE-pi/autostart
echo "@xset s noblank" >> /home/pi-star/.config/lxsession/LXDE-pi/autostart
echo "@xset -dpms" >> /home/pi-star/.config/lxsession/LXDE-pi/autostart

# AutoStart the browser
echo "@chromium-browser --noerrdialogs --kiosk --incognito http://localhost" >> /home/pi-star/.config/lxsession/LXDE-pi/autostart

# Fix the autologin user
sudo sed -i 's/#autologin-user=/autologin-user=pi-star/g' /etc/lightdm/lightdm.conf
sudo sed -i 's/#autologin-user-timeout=0/autologin-user-timeout=0/g' /etc/lightdm/lightdm.conf

# Chown the .config dir
sudo chown -R pi-star:pi-star /home/pi-star/.config

# Force the disk to be RW on boot
sudo sed -i 's/mount -o remount,ro \///g' /etc/rc.local
sudo reboot

How can I fix that in the x-server configuration?

1.Install xserver-xorg-input-evdev

sudo apt-get install xserver-xorg-input-evdev

2.create a directory xorg.conf.d

sudo mkdir /etc/X11/xorg.conf.d

3.create a file with named 99-calibration.conf

sudo nano /etc/X11//xorg.conf.d/99-calibration.conf

4.With following entry:

Section "InputClass"
Identifier "calibration"
Driver "evdev"
MatchProduct "FT5406 memory based driver"
Option "InvertX" "1"
Option "InvertY" "1"
EndSection

5.Reboot

正文完
 0
admin
版权声明:本站原创文章,由 admin 于2021-03-20发表,共计3161字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)
验证码