Skip to content

Instantly share code, notes, and snippets.

@gwaland
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwaland/fb1dfed4b078b4cce645 to your computer and use it in GitHub Desktop.
Save gwaland/fb1dfed4b078b4cce645 to your computer and use it in GitHub Desktop.
Installing on a MK6
1. install ubuntu 14.04 from mini.iso with no options except ssh on a sata drive. Name user 'piu'
2. log in, sudo to root.
3. apt-get install mesa-common-dev libglu1-mesa-dev libxtst-dev libxrandr-dev libpng12-dev libjpeg8-dev zlib1g-dev libbz2-dev libogg-dev libvorbis-dev libc6-dev yasm libasound-dev libpulse-dev libjack-dev libglew1.6-dev binutils-dev libgtk2.0-dev libmad0-dev automake nvidia-173 xserver-xorg git gawk mesa-utils xinit alsa-base
4. ln -sf /dev/null /etc/udev/rules.d/70-persistent-net.rules
5. sed -i s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"nomodeset\"/g /etc/default/grub
6. sed -i s/#GRUB_TERMINAL=console/GRUB_TERMINAL=console/g /etc/default/grub
7. sed -i s/#GRUB_GFXMODE=640x480/GRUB_GFXMODE=640x480/g /etc/default/grub
8. update-grub
9. echo 'chmod a+wrx /dev/piuio0' >> /etc/rc.local
4. exit root
5. cd ~; git clone https://github.com/stepmania/stepmania.git; git clone https://github.com/djpohly/piuio.git
6. cd ~/piuio/mod; make; sudo cp piuio.ko /lib/modules/$(uname -r)/updates; sudo depmod -a
6. cd stepmania; ./autogen.sh; ./configure; make
7. cp src/GtkModule.so ./; cp src/stepmania ./
8. touch portable.ini
9. echo 'exec /home/piu/stepmania.sh' > ~/.xinitrc; chmod +x ~/.xinitrc
10. echo 'cd /home/piu/stepmania' > /home/piu/stepmania.sh; echo './stepmania' >> /home/piu/stepmania.sh; chmod +x /home/piu/stepmania.sh
11. add:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi
to the ~/.profile
12. replace the exec line in /etc/init/tty1.conf with:
exec /bin/login -f piu tty1 </dev/tty1 >/dev/tty1 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment