Run the following command as root - Run sudo su -l
first if you're logged in as another user. Do not put sudo
in front.
bash <(wget -qO- getamp.sh)
This script will automatically install any dependencies, create a new system user and get you started. You will be prompted for a set of login details to use. Once the wizard completes, you're done!
ldd --version
to check)ldd --version
to check)First try running the one-line install. The script will automatically detect if it's able to install on your system based on the current package manager.
The following steps are only for distributions that GetAMP is unable to manage automatically.
This is not an optional step. AMP will refuse to start if you try and run it as root or as a user that has root permissions.
useradd -d /home/amp -m amp -s /bin/bash sudo passwd amp
Install the following applications via your distributions package manager
tmux socat unzip git wget
This is not a runnable command, please consult your distributions documentation for how to install these packages.
Additionally, if you intend to run srcds based servers such as Team Fortress 2 or Counter-Strike: Global Offensive you will need 32-bit versions of glibc and the c++ standard libraries (libstdc++) for your distribution.
This assumes that your distribution uses iptables. If your distribution uses another firewall manager such as firewalld or ufw please consult your distributions documentation.
iptables -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT iptables-save > /etc/iptables/rules.v4
Then you can download and install AMP:
wget -q https://repo.cubecoders.com/ampinstmgr-latest.tgz tar -xf ampinstmgr-latest.tgz -C / rm ampinstmgr-latest.tgz #Enable ampinstmgr services for background tasks and firewall sync. systemctl enable ampinstmgr.service systemctl enable ampfirewall.service systemctl enable ampfirewall.timer systemctl enable amptasks.service systemctl enable amptasks.timer systemctl start ampfirewall.timer systemctl start amptasks.timer
sudo su -l amp ampinstmgr quickstart
Download the installer and run through the wizard
By default the installer will use the drive with the most available free space as the datastore for AMP instances. If you wish to pick a different location you can chose this by using the 'Custom' option during setup.
AMP will not run as the built in Administrator user on Windows. Attempting to manage instances or access the file system while logged in as Administrator may result in permissions issues that can cause AMP or applications running within it to stop working properly. Please ensure that you only use your AMP user when working with this software.
Download the installer and run through the wizard
By default the installer will use the drive with the most available free space as the datastore for AMP instances. If you wish to pick a different location you can chose this by using the 'Custom' option during setup.
AMP cannot be run as the built in 'Administrator' user - a new user is required. This user should be part of the Administrators group if you need to create service instances.
Run the following in powershell as Administrator (The first command will prompt for a password):
$Password = Read-Host -AsSecureString New-LocalUser amp -Password $PASSWORD -FullName "AMP User" Add-LocalGroupMember -Group "Administrators" -Member "amp"
Login as your new AMP user, then open up PowerShell as administrator and run:
wget https://cubecoders.com/Downloads/AMPSetup.msi .\AMPSetup.msi /qn
By default the AMP datastore is placed in the "AMPDatastore" directory on the drive with the most free space. If you wish to manually specify a location then you can add the DATASTOREDIR argument:
.\AMPSetup.msi /qn DATASTOREDIR="D:\AMPDatastore\"
Specifying whichever directory you wish as the DATASTOREDIR - ensure this area is somewhere writable by any user. It should not be placed within the "Users" directory.
After that you can then run:
ampinstmgr quickstart
You will be prompted to browse to AMPs web interface to continue installation during setup, which you will need to do from another computer. You will be provided the URL during this process.