Install the stock Raspian Image (Current Version: 2018-06-27-raspbian-stretch)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
sudo apt --purge remove wolfram-engine libreoffice* python-pygame minecraft-pi emacs emacs24 geany scratch scratch2 sonic-pi
sudo apt-get clean
sudo apt autoremove
sudo apt install apache2 mysql-server php php-mysql php-memcache php-curl php-soap php-imap memcached php-gd php-pear php-mcrypt phpmyadmin php-net-imap mysql-server nmap whois libapache2-mod-php php-cli php-json fping mysql-client python-mysqldb mtr-tiny ipmitool imagemagick rsync screen minicom apache2-utils fence-agents git-all |
Kiosk Mode:
Browser:
Open the browser and disable all extensions which may cause an issue with Kiosk mode.
Settings (three vertical dots) > More tools > Extensions > Uncheck all Enable boxes
Startup Scripts:
Open the configuration file pertaining to the GUI display manager and turn off the screen sleep. Add to the [Seat:*] section.
sudo vim /etc/lightdm/lightdm.conf
xserver-command=X -s 0 -dpms
Declare the required variables in the session environment of the picked user(s). Add to the end of the file.
...
Back to CLI, edit the file responsible for automatic command/process submission upon boot (for the user(s) of your choice)
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
Code Block |
---|
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
@chromium-browser --kiosk --incognito http://localhost
@xset s noblank
@xset s off
@xset -dpms |
Desktop Launcher: http://images.clipartpanda.com/plant-clipart-sample140313a.png
sudo nano /etc/xdg/menus/growbox-applications.menu
Code Block |
---|
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<!-- GrowBox -->
<Menu>
<Name>Grow Box Tools</Name>
<Directory>growbox.directory</Directory>
<Include>
<Category>growbox</Category>
</Include>
</Menu>
<!-- End GrowBox -->
|
sudo nano /usr/share/desktop-directories/growbox.directory
Code Block |
---|
[Desktop Entry]
Name=Grow Box Tools
Icon=/home/pi/Pictures/plant-icon.png
Type=Directory |
sudo nano /usr/share/applications/growbox-dashboard.desktop
Code Block |
---|
[Desktop Entry]
Type=Application
Name=Growbox Dashboard
Exec=/usr/bin/chromium-browser --kiosk --incognito http://localhost
Icon=/home/pi/Pictures/plant-icon.png
Terminal=false
StartupNotify=false
Type=Application
Categories=growbox
Comment=Launch Growbox WebUI |
Set desktop background
Code Block |
---|
pcmanfm -w /home/pi/Pictures/plant-icon.png --wallpaper-mode=fit |
Modify System Menu
Code Block | ||
---|---|---|
| ||
cd /usr/share/applications
sudo rm Thonny* sense_emu_gui.desktop idle* display-im6.q16.desktop rp_prefapps.desktop debian-reference-common.desktop
cd /usr/share/raspi-ui-overrides/applications/
sudo rm magpi.desktop idle* python-games.desktop debian-reference-common.desktop geany.desktop raspi_getstart.desktop help.desktop raspi_resources.desktop python-games.desktop |
Temp Sensor:
Add the following to the end of the file
nano /boot/config.txt
Code Block |
---|
#Temp Sensor Edit
dtoverlay=w1-gpio
|
Add to the end of the file before the 'exit 0' line
sudo nano /etc/rc.local
Code Block |
---|
sudo modprobe w1-gpio
sudo modprobe w1_therm |
Disabling Warning Overlays: https://www.raspberrypi.org/documentation/configuration/config-txt/misc.md
Edit /boot/config.txt and add
Code Block |
---|
#Disable Warning Overlays and allow turbo mode
avoid_warnings=2 |
Generate a new Registration Key Hash for growbox_login.php:
Code Block |
---|
php confs/growbox_hash_gen.php test
|
Ex Output:
Ubuntu Server of Minimal (I prefer minimal)
Expand |
---|
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
apt update
apt upgrade
sudo apt install -y mongodb-org nodejs nmap whois rsync screen minicom git |