Skip to content

Instantly share code, notes, and snippets.

@advilm
Last active October 1, 2022 16:28
Show Gist options
  • Save advilm/22d89615a4713e0d4991b4a3c9af1467 to your computer and use it in GitHub Desktop.
Save advilm/22d89615a4713e0d4991b4a3c9af1467 to your computer and use it in GitHub Desktop.
Sets up osu on lab machines
NETID="$(whoami)"
cd /extra/$NETID
# download osu
wget -O osu.AppImage https://github.com/ppy/osu/releases/latest/download/osu.AppImage
chmod +x osu.AppImage
# create symlink
mkdir osu
ln -sf /extra/$NETID/osu ~/.local/share
# setup sdl2
wget -O SDL2-2.24.0.tar.gz https://www.libsdl.org/release/SDL2-2.24.0.tar.gz
tar xzf SDL2-2.24.0.tar.gz
rm SDL2-2.24.0.tar.gz
cd SDL2-2.24.0
./configure --prefix=/extra/$NETID/usr
make install
cd ..
rm -rf SDL2-2.24.0
rm /extra/$NETID/usr/lib/libSDL2*.a
# create run script
cat <<- EOF > /extra/$NETID/run_osu.sh
export LD_LIBRARY_PATH="/extra/$NETID/usr/lib"
ln -sf /extra/$NETID/osu ~/.local/share
/extra/$NETID/osu.AppImage
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment