Skip to content

Instantly share code, notes, and snippets.

View mdeguzis's full-sized avatar

Michael T. DeGuzis mdeguzis

View GitHub Profile
exe: drive_c/Program Files/Ubisoft/Ubisoft Game Launcher/Uplay.exe
files:
- uplay: https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UplayInstaller.exe
game:
prefix: $GAMEDIR
installer:
- task:
key: ProductName
name: set_regedit
path: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
exe: drive_c/Program Files/Ubisoft/Ubisoft Game Launcher/Uplay.exe
files:
- uplay: https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UplayInstaller.exe
game:
prefix: $GAMEDIR
installer:
- task:
arch: win32
@mdeguzis
mdeguzis / returntosteam.sh
Created December 16, 2016 19:44
/usr/bin/returntosteam.sh
#!/bin/sh
dbus-send --system --print-reply --dest=org.freedesktop.DisplayManager /org/freedesktop/DisplayManager/Seat0 org.freedesktop.DisplayManager.Seat.SwitchToUser string:'steam' string:''
@mdeguzis
mdeguzis / steam.desktop
Created December 16, 2016 19:43
/home/desktop/steam.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Return to Steam
Comment=Exit desktop mode
Exec=/usr/bin/returntosteam.sh
Icon=steam
Terminal=false
Type=Application
Categories=Network;FileTransfer;Game;
MimeType=x-scheme-handler/steam;
@mdeguzis
mdeguzis / steam.desktop
Created December 16, 2016 19:42
/usr/share/applications/steam.desktop
[Desktop Entry]
Name=Steam
Comment=Application for managing and playing games on Steam
Exec=/usr/bin/steam %U
Icon=steam
Terminal=false
Type=Application
Categories=Network;FileTransfer;Game;
MimeType=x-scheme-handler/steam;
Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends;
@mdeguzis
mdeguzis / 55unattended-steamos
Created December 15, 2016 19:35
/etc/apt/apt.conf.d/55unattended-steamos
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "5";
// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Origins-Pattern {
"origin=Valve Software LLC,label=SteamOS";
};
Unattended-Upgrade::InstallOnShutdown "true";
@mdeguzis
mdeguzis / post_install.sh
Created December 15, 2016 19:11
SteamOS post_isntall.sh
#! /bin/sh
# script runs after debian installer has done its thing
chroot /target adduser --gecos "" --disabled-password steam
chroot /target usermod -a -G desktop,audio,dip,video,plugdev,netdev,bluetooth,pulse-access steam
chroot /target usermod -a -G pulse-access desktop
cat - > /target/usr/share/lightdm/lightdm.conf.d/20_steamos.conf << 'EOF'
[SeatDefaults]
pam-service=lightdm-autologin
autologin-user=steam
@mdeguzis
mdeguzis / steamos.desktop
Created December 15, 2016 19:09
/usr/share/xsessions/steamos.desktop
[Desktop Entry]
Encoding=UTF-8
Name=SteamOS
Comment=Starts a SteamOS session
Exec=steamos-session
Icon=steamicon.png
Type=Application
@mdeguzis
mdeguzis / steamos lightdm.conf
Created December 15, 2016 18:29
/etc/lightdm.conf
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
@mdeguzis
mdeguzis / 20_steamos.conf
Created December 15, 2016 14:58
/usr/share/lightdm/lightdm.conf.d/20_steamos.conf
[SeatDefaults]
pam-service=lightdm-autologin
autologin-user=steam
autologin-user-timeout=0