Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Installs x for retroarch to run in
- apt-get update -y
- apt-get install x-window-system -y
- apt-get install xterm twm -y
- #Necessary dependencies
- apt-get install libsdl1.2-dev libsdl1.2debian pkg-config build-essential -y
- #Adds libretro and installs retroarch
- add-apt-repository ppa:libretro/testing -y
- apt-get update ; apt-get install retroarch* libretro* -y
- #Adds aufan's ppa for armsoc and libmali
- apt-add-repository -y ppa:ayufan/pine64-ppa -y
- apt-get update
- apt-get install -y xserver-xorg-video-armsoc-sunxi libmali-sunxi-utgard0-r6p0
- #Disables CLI Login
- mkdir -pv /etc/systemd/system/getty@tty1.service.d/
- echo "[Service]
- ExecStart=
- ExecStart=-/sbin/agetty --autologin pine64 --noclear %I 38400 linux" >> /etc/systemd/system/getty@tty1.service.d/autologin.conf
- systemctl enable getty@tty1.service
- #Adds startx retroarch and shutdown on exiting retroarch to rc.local / also starts rc.local
- > /etc/rc.local
- echo "#!/bin/bash
- startx retroarch && sudo shutdown now
- exit 0" >> /etc/rc.local
- systemctl enable rc-local.service
- #Enables mali + drm
- exec /usr/local/sbin/pine64_enable_sunxidrm.sh
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement