Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Installing

TheRealOne78 edited this page Jun 25, 2023 · 8 revisions

Installing with make

Installing with make is easy as pie, the only command needed is the following:

root# make install

Installing manually

However, there is another manual option that requires copying by the final build to the system and making it executable:

root# cp ./build/xawp /usr/bin/ # Copies the build to /usr/bin
root# chmod +x /usr/bin/xawp    # Changes the permissions of the file to be executable

You also need to install the configuration file. To do so, follow the next steps:

Installing configuration with make

Just like installing with make, using using it to install the configuration file across all users is easy:

root# make install-config

Installing configuration manually

There are 2 ways to install the configuration file manually:
1. By installing across all users

root# for f in /home/*/; do \
	install -d --owner=$(stat -c "%U" $f) --group=$(stat -c "%G" $f) -m 755 "$f.config/" ; \
	install -d --owner=$(stat -c "%U" $f) --group=$(stat -c "%G" $f) -m 755 "$f.config/xawp/" ; \
	install -t "$f.config/xawp/" --owner=$(stat -c "%U" $f) --group=$(stat -c "%G" $f) -m 755 ./.config/xawp/xawp.conf ; \
done

This will make sure that every user with a home directory located in /home/ will have .config/xawp/xawp.conf

2. By copying the configuration file to yourself only

foo$ cp --parents -r ./.config/xawp/xawp.conf $HOME

This will make sure ./.config/xawp/xawp.conf will be copied completely to your home directory. You can replace $HOME with another directory as well, but it would be required for the right file permissions to do so.

To uninstall XAWP, see the uninstalling page.
See how to use XAWP in the usage wiki page.

Clone this wiki locally