-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add scripts to autolaunch from xubuntu
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Seat:*] | ||
autologin-session=xubuntu | ||
autologin-user=unrared | ||
autologin-user-timeout=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Name=MPF | ||
Comment=Mission Pinball | ||
Exec=/home/unrared/grand-prix/bin/run | ||
Path=/home/unrared/grand-prix | ||
Terminal=false | ||
Type=Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo groupadd -r autologin | ||
sudo gpasswd -a $USER autologin | ||
|
||
# To autologin to the Xubuntu Desktop X Server | ||
sudo ln -s $USER/grand-prix/.xubuntu/lightdm.conf \ | ||
/etc/lightdm/lightdm.conf | ||
|
||
# To launch MPF after starting the X Server | ||
mkdir -p $HOME/.config/autostart | ||
ln -s $HOME/grand-prix/.xubuntu/mpf.desktop \ | ||
$HOME/.config/autostart/mpf.desktop | ||
|
||
# Prevents a serial error with some hardware | ||
sudo usermod -a -G dialout $USER | ||
# Probably prevents full minute delay when not | ||
# connected to the internet (unconfirmed) | ||
sudo sed -i -e 's/NM_ONLINE_TIMEOUT=60/NM_ONLINE_TIMEOUT=5/g' \ | ||
/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
mpf both -c production | ||
# TODO: production config once machine is ready for it | ||
#xterm -e "sleep 5 && cd /home/unrared/grand-prix && mpf both -c production" | ||
|
||
# temporary solution to use dev config | ||
# and smart vitual platform | ||
CMD="mpf both -Xtav -c development" | ||
xterm -hold -e "source ~/.bash_profile && cd ~/grand-prix && bash -c '$CMD'" |