How to Add Scripts to Ubuntu's Autostart?
Go to solution
Solved by WereCatf,
#!/bin/bash cd /home/comp/ ./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 -port 27050 -tickrate 128
Save this as e.g. /home/comp/runcs.sh and make it executable (on the command-line, you'd make it executable with chmod ugoa+x runcs.sh), then run crontab -e, and at the bottom add @reboot /home/comp/runcs.sh
Explanation: cron is a program that basically executes stuff at certain times, crontab -e allows you to add or remove things for it to run. @reboot tells cron to run the following command when the PC has finished booting up, so your CS-script will run then.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now