$ sudo apt-get update

$ sudo apt-get dist-upgrade

$ sudo reboot now



$ screen

$ sudo apt-get install alsa-utils

$ sudo usermod -a -G audio <username>

$ sudo alsamixer



$ sudo usermod -a -G video <username>

$ sudo apt-get install xserver-xorg xinit



$ sudo apt-get install openbox

$ mkdir ~/.config/openbox



$ sed '/<keyboard>/,/<\/keyboard>/d' /etc/xdg/openbox/rc.xml > ~/.config/openbox/rc.xml

$ vim ~/.config/openbox/autostart

attract &

$ cd

$ sudo apt-get install unzip build-essential libsdl2-dev libfontconfig1-dev qt5-default libsdl2-ttf-dev

$ wget [url]https://github.com/mamedev/mame/releases/download/mame0191/mame0191s.zip[/url]

$ unzip mame0191s.zip

$ unzip mame.zip -d mame

$ cd mame



$ cd src/

$ wget http://mamestuff.lowtrucks.net/MKChamp/suppression_0191u0.txt

$ patch -p1 -E < suppression_0191u0.txt

$ cd ../



$ screen

$ screen -ls

$ screen -r <session ID>

$ make

$ sudo mv mame64 /usr/games/

$ cd

$ mkdir .mame

$ cd .mame

$ mame64 -cc

$ vim mame.ini

#

# CORE SEARCH PATH OPTIONS

#

homepath $HOME

rompath $HOME/mame/roms

hashpath $HOME/.mame/hash

samplepath $HOME/mame/samples

artpath $HOME/mame/artwork

ctrlrpath $HOME/mame/ctrlr

inipath $HOME/.mame;.;ini

fontpath .

cheatpath $HOME/mame/cheat

crosshairpath $HOME/mame/crosshair

pluginspath $HOME/mame/plugins

languagepath $HOME/mame/language

swpath $HOME/mame/software



#

# CORE OUTPUT DIRECTORY OPTIONS

#

cfg_directory $HOME/.mame/cfg

nvram_directory $HOME/.mame/nvram

input_directory $HOME/.mame/inp

state_directory $HOME/.mame/sta

snapshot_directory $HOME/.mame/snap

diff_directory $HOME/.mame/diff

comment_directory $HOME/.mame/comments



#

# CORE OUTPUT DIRECTORY OPTIONS

#

hiscore_directory $HOME/.mame/hi



autoboot_delay 0

plugins 1

plugin hiscore



#

# CORE MKChamp OPTIONS

#

skip_gameinfo 1



$ sudo apt-get install libopenal-dev libsfml-dev libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavresample-dev libjpeg-dev

$ wget [url]https://github.com/mickelson/attract/archive/v2.3.0.tar.gz[/url]

$ tar -zxvf v2.3.0.tar.gz

$ cd attract-2.3.0/

$ make

$ sudo make install



$ cd ..

$ rm -rf attract-2.3.0/

$ rm v2.3.0.tar.gz



$ sudo systemctl edit getty@tty1

[Service]

ExecStart=

ExecStart=-/sbin/agetty -a <USERNAME> --noclear %I $TERM



$ startx

$ vim .profile

if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then

exec startx

fi

