Choose style:

Author Topic: Teamspeak 3 autostart...  (Read 938 times)

0 Members and 1 Guest are viewing this topic.

Offline Kyle

  • Member
  • ***
  • Posts: 140
  • Karma: 13
  • Microshaft cannot compete...
    • View Profile
  • Peppermint version(s): 7 (x64)
Teamspeak 3 autostart...
« on: January 06, 2017, 10:55:19 pm »
Hi all! I have a home server running Peppermint 7 headless. I would like to create a simple bash/shell script to automatically start Teamspeak 3 upon start. I will schedule the script to run with crontab @reboot. I have created a separate non-sudo user and would like the script to do the following:

Code: [Select]
./ts3server_startscript.sh start


The location of the file is:

Code: [Select]
/home/teamspeak3/teamspeak3-server_linux_amd64

The ts3server_startscript.sh is in the above folder.

Thanks in advance!  8)
« Last Edit: January 06, 2017, 10:56:53 pm by Kyle »
[] Dell Latitude E6400 []
[] CPU: Intel Core 2 Duo P8600 [] RAM: 4GB DDR2 [] HDD: 1TB 5400RPM WD Black []

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26305
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Teamspeak 3 autostart...
« Reply #1 on: January 07, 2017, 07:27:41 pm »
Why dio you want cron to start it ?

Surely an autostart launcher would be a better idea

Open a terminal and run:
Code: [Select]
pluma ~/.config/autostart/ts3server-autostart.desktop
when a BLANK file opens, make it read:-
Code: [Select]
[Desktop Entry]
Type=Application
Name=Teamspeak 3 Autostart
Comment=Autostart Teamspeak 3 at login
Exec=bash -c 'sleep 10 ; /home/teamspeak3/teamspeak3-server_linux_amd6/ts3server_startscript.sh start'
SAVE the file and exit pluma.

Log off/on to test.

or do you want it to autostart no matter which account you're logged into ?
« Last Edit: January 07, 2017, 07:29:12 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec