Skip to content

Instantly share code, notes, and snippets.

@RPTST
Last active October 5, 2021 14:36
Show Gist options
  • Save RPTST/78389d605ec82353e6d06dbf0c1b1229 to your computer and use it in GitHub Desktop.
Save RPTST/78389d605ec82353e6d06dbf0c1b1229 to your computer and use it in GitHub Desktop.
MysticBBS RPI install
# The begining
# Setup system
Downloaded ISO - 32-bit
https://downloads.raspberrypi.org/raspios_lite_armhf/images/
Using th methods on the official Raspberrpi.org website create the SD card from the image you just downloaded and boot it up.
From your PC SSH into you raspberry pi and use the default username for your distribution.
# First we will refresh the OS to make sure it is up-to-date
sudo apt-get update
sudo apt-get upgrade -y
sudo reboot
From your PC we will need to SSH back into you raspberry pi.
# Installing python
sudo apt-get install python3 python3-pip
sudo apt-get install python python-pip
*Note if that did not work please use python2 depending on what your distrobution expects.
sudo apt-get install python2 python2-pip
*If pip still will not install for python/2 then use the below command to download to your system
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
# Install essentials
sudo apt install -y build-essential make cmake gcc g++ git curl wget htop ninja-build neofetch default-jdk default-jre mosh screen bmon wavemon iftop ipcalc hexcurse exa hping3 arping lshw fping chkrootkit ioping trash-cli ranger mc whowatch lsof nethogs fdupes stress ccze tilde nmap original-awk gawk curl git wget zip unzip unrar-free tshark saidar xlsx2csv docx2txt pwgen libcrack2
sudo apt install gcc-arm-linux-gnueabihf // If needed
sudo reboot
# SSH back into you RPI
# Create and move to temp directory
mkdir ~/projects
cd ~/projects
# install vulkan & dependencies
sudo apt install libxcb-randr0-dev libxrandr-dev
sudo apt install libxcb-xinerama0-dev libxinerama-dev libxcursor-dev
sudo apt install libxcb-cursor-dev libxkbcommon-dev xutils-dev
sudo apt install xutils-dev libpthread-stubs0-dev libpciaccess-dev
sudo apt install libffi-dev x11proto-xext-dev libxcb1-dev libxcb-*dev
sudo apt install bison flex libssl-dev libgnutls28-dev x11proto-dri2-dev
sudo apt install x11proto-dri3-dev libx11-dev libxcb-glx0-dev
sudo apt install libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev
sudo apt install libva-dev x11proto-randr-dev x11proto-present-dev
sudo apt install libclc-dev libelf-dev git build-essential mesa-utils
sudo apt install libvulkan-dev ninja-build libvulkan1 python-mako
sudo apt install libdrm-dev libxshmfence-dev libxxf86vm-dev libunwind-dev
sudo apt install valgrind libzstd-dev vulkan-tools vulkan-utils
sudo apt install libxcb-glx0-dev libx11-xcb-dev libxcb-dri2-0-dev
sudo apt install libxcb-dri3-dev libxcb-present-dev
# remove old versions first
sudo rm -rf /home/pi/mesa_vulkan
# install meson
sudo apt purge meson -y
sudo pip3 install meson
# install mako
sudo pip3 install mako
# install v3dv
cd ~
git clone https://gitlab.freedesktop.org/mesa/mesa.git mesa_vulkan
# build v3dv (± 30 min)
cd mesa_vulkan
CFLAGS="-mcpu=cortex-a72 -mfpu=neon-fp-armv8" \
CXXFLAGS="-mcpu=cortex-a72 -mfpu=neon-fp-armv8" \
meson --prefix /usr \
-D platforms=x11 \
-D vulkan-drivers=broadcom \
-D dri-drivers= \
-D gallium-drivers=kmsro,v3d,vc4 \
-D buildtype=release build
ninja -C build -j$(nproc)
sudo ninja -C build install
# check your driver
glxinfo -B
# Test that is all works do the following and install a dependency
sudo apt-get install libassimp-dev
# download the demos
git clone --recursive https://github.com/SaschaWillems/Vulkan.git sascha-willems
cd sascha-willems
# download some fonts
python3 download_assets.py
# build the demos
mkdir build; cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j4
# Install bpytop (a much better and more colorful htop command)
pip3 install bpytop
# Install LSD a more colorful LS
wget -P ~/projects https://github.com/Peltoche/lsd/releases/download/0.20.1/lsd-musl_0.20.1_arm64.deb
nano ~/.bashrc
Then edit alias
ls='ls' to alias ls='lsd'
# Install SYNTH-SCHELL a very fancy command prompt
git clone --recursive https://github.com/andresgongora/synth-shell.git
chmod +x synth-shell/setup.sh
cd synth-shell
./setup.sh
*At the prompt please enter /I /U /N /Y /N /N /N
# Setting up / Installing ZRAM (only needed if not using dietpi)
Remove the old dphys version
sudo /etc/init.d/dphys-swapfile stop
sudo apt remove --purge dphys-swapfile
Install zram
sudo wget -O /usr/bin/zram.sh https://raw.githubusercontent.com/novaspirit/rpi_zram/master/zram.sh
Set autoload
sudo nano /etc/rc.local
Add the next line before exit 0
/usr/bin/zram.sh &
Save with <Ctrl+X>, <Y> and <Enter>
Save with Ctrl+X, "Y" and "Enter"
/usr/bin/zram.sh &
sudo chmod +x /usr/bin/zram.sh
sudo nano /usr/bin/zram.sh
Alter the limit with * 2
mem=$(( ($totalmem / $cores)* 1024 * 2))
Save with Ctrl+X, "Y" and "Enter"
Then reboot
sudo reboot
# Install RPI monitor
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 2C0D3C0F
sudo wget http://goo.gl/vewCLL -O /etc/apt/sources.list.d/rpimonitor.list
sudo apt update
sudo apt install -y rpimonitor
Use the below to stop / start / restart
sudo service rpimonitor stop
sudo service rpimonitor start
sudo service rpimonitor restart
sudo service rpimonitor status
Open a browser and go to http://<IP_ADDRESS>:8888
# Install bat a more IDE color style cat command
Download 64-bit
wget -P ~/projects https://github.com/sharkdp/bat/releases/download/v0.18.3/bat_0.18.3_arm64.deb
Download 32-bit
wget -P ~/projects https://github.com/sharkdp/bat/releases/download/v0.18.3/bat_0.18.3_armhf.deb
# Install bat
sudo dpkg -i bat_*.deb
rm bat*.deb
bat /etc/profile
# configure your bashrc to make sure everything works
sudo nano ~/.bashrc
At the end of the file add the following:
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:bin:/usr/games:/usr/local/games:/mystic"
export PATH=$HOME/.local/bin:$HOME/.local/usr/bin:$PATH
# Install ps-mem a more granular way to see what apps are using your memory more usefully.
sudo wget -O /usr/local/bin/ps_mem https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py
sudo ps_mem
# + Setting up box86
cd ~/projects
git clone https://github.com/ptitSeb/box86
cd box64; mkdir build; cd build
# Install Box86
cmake .. -DRPI4=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j$(nproc)
sudo make install
sudo systemctl restart systemd-binfmt
# Install Telet (if needed for you OS)
sudo apt install telnet telnetd
sudo nano /etc/services
Change the following lines for telnet access
#telnet 23/tcp
telnet 2323/tcp
Restart
sudo reboot
# Install Mystic BBS on linux
mkdir -p /mystic && sudo chown "$(id -u):$(id -g)" /mystic
wget -P ~/projects http://bbs.nz/files/fsxbbs-pi.tar.gz
wget -P ~/projects http://www.mysticbbs.com/downloads/mys112a46_pi.zip
unzip mys112a46_pi.zip -d /mystic
tar -xf fsxbbs-pi.tar.gz -C /
cd /mystic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment