Cheatography
https://cheatography.com
AMP (Application Management Panel) is a simple to use, self-hosted web control panel for game servers that runs on both Windows and Linux systems with a focus on ease of use through its intuitive user interface and simple setup process.
This is a draft cheat sheet. It is a work in progress and is not finished yet.
AMP
AMP system user |
sudo su -l amp |
Dwonload and install AMP |
bash <(wget -qO- getamp.sh) |
Fix AMP |
ampinstmgr repair |
Check AMP status |
ampinstmgr status |
restart amp |
systemctl restart ampinstmgr |
start amp instance |
ampinstmgr start ads01 |
|
ampinstmgr upgradeall |
|
ampinstmgr lastlog ads01 |
Ubuntu
See permissions of a file or directory |
ls -l <name optional> |
Change permission of a file or directory |
sudo chmod <example 777> <name> |
Change Ownership |
sudo chown <user>:<group> <file/directory> |
Edid privilages |
sudo visudo |
Setup jenkins agent to start with system |
sudo nano /etc/systemd/system/jenkins-agent.service |
Show users |
cat /etc/passwd |
Add a New User |
sudo adduser <username> |
Delete a User |
sudo deluser <username> |
Service status |
systemctl status <service-name> |
Start service |
sudo systemctl start <service-name> |
Stop service |
sudo systemctl stop <service-name> |
Check services settings |
cd /etc/systemd/system |
|
|
CHMOD
value |
read write execute |
0 |
- - - |
1 |
- - x |
2 |
- w - |
3 |
- w x |
4 |
r - - |
5 |
r - x |
6 |
r w - |
7 |
r w x |
The first number represents the file’s owner.
The second number represents the file’s group.
The third number represents everyone else.
|
|
Jenkins
Restart |
sudo systemctl restart jenkins |
Check if the agent is running |
sudo systemctl status jenkins-agent |
Restart agent on VM |
sudo systemctl daemon-reload sudo systemctl enable jenkins-agent sudo systemctl start jenkins-agent |
Setup Jenkins agent to start with system |
sudo nano /etc/systemd/system/jenkins-agent.service |
Check Jenkins Logs |
sudo journalctl -u jenkins |
Enable Jenkins to Start on Boot |
sudo systemctl enable jenkins |
Nginx SSL Configuration
Generate SSL Certificate with Certbot |
sudo certbot --nginx -d yourdomain.com |
Test Nginx Configuration |
sudo nginx -t |
Reload Nginx |
sudo systemctl reload nginx |
|