Last active
October 1, 2022 16:28
-
-
Save advilm/22d89615a4713e0d4991b4a3c9af1467 to your computer and use it in GitHub Desktop.
Sets up osu on lab machines
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
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