Last active
February 17, 2023 12:27
-
-
Save Sagleft/06b53576c0b763f77e4d38e15e28b023 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# NOTE: copy utopia.cfg to script local folder from https://github.com/Sagleft/utopia-api-docker | |
# NOTE: this script will eventually create an account.db file and place it in the current working directory | |
# NOTE: you can use, for example, /home/ as a working directory | |
# NOTE: to run utopia you can use: /opt/utopia/messenger/utopia --headless --configPath=./utopia.cfg | |
apt-get update | |
apt-get install wget -y | |
wget https://update.u.is/downloads/linux/utopia-latest.amd64.deb | |
apt-get install gdebi-core libx11-xcb1 libgl1-mesa-glx libpulse-mainloop-glib0 libgtk-3-dev -y | |
dpkg -i utopia-latest.amd64.deb | |
apt-get install -f -y | |
rm -rf utopia-latest.amd64.deb | |
echo "creating new account.." | |
export XDG_RUNTIME_DIR=/tmp/runtime-root | |
/opt/utopia/messenger/utopia --headless --create --db=./account.db --pwd=password --configPath=./utopia.cfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment