Last active
June 10, 2023 12:54
-
-
Save ckunte/cb829338ae7fc24cc2ca to your computer and use it in GitHub Desktop.
Install USFOS
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # USFOS on (debian) linux: Installation script | |
| # 2016 ckunte | |
| # Create folders: | |
| if [[ ! -d $HOME/usfos/bin ]]; then | |
| mkdir -p $HOME/usfos/bin | |
| fi | |
| # Step 2: Download usfos_etc files, usfos, xact: | |
| cd $HOME/usfos/ | |
| echo "Downloading usfos_etc files" | |
| wget http://www.usfos.no/download/Linux/files/usfos_etc.tgz | |
| tar -zxvf usfos_etc.tgz | |
| cd $HOME/usfos/bin/ | |
| echo "Downloading usfos and additional modules" | |
| wget -i https://gist.githubusercontent.com/ckunte/7836a10f5d418799a8ea/raw/a84df4d072683aa6bd3d513400f2d54aadefe363/downloadlist.txt | |
| # Unzip all downloaded files: | |
| gunzip *.gz | |
| # Make binary files executable: | |
| chmod +x * | |
| # Step 3: Adding USFOS binaries to $PATH: | |
| if [[ -f $HOME/.zshrc ]]; then | |
| echo "export PATH=$HOME/usfos/bin:$PATH" >> $HOME/.zshrc | |
| echo "export USFOS_HOME=$HOME/usfos" >> $HOME/.zshrc | |
| . $HOME/.zshrc | |
| fi | |
| if [[ -f $HOME/.bashrc ]]; then | |
| echo "export PATH=$HOME/usfos/bin:$PATH" >> $HOME/.bashrc | |
| echo "export USFOS_HOME=$HOME/usfos" >> $HOME/.bashrc | |
| . $HOME/.bashrc | |
| fi | |
| # Step 4: Remind user to add usfos.key | |
| echo "All done." | |
| echo "Remember to add a valid usfos.key in the folder: ~/usfos/etc/ " | |
| echo "To run USFOS UI, type the following in terminal: xact &" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment