-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathrc.local
More file actions
23 lines (23 loc) · 726 Bytes
/
rc.local
File metadata and controls
23 lines (23 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#
# teamviewer 10 (or newer) autostart fix script
sudo -k teamviewer --daemon start
cd /opt/teamviewer/tv_bin/script
sudo cp teamviewerd.sysv /etc/init.d/
sudo chmod 755 /etc/init.d/teamviewerd.sysv
sudo update-rc.d teamviewerd.sysv defaults
/opt/teamviewer/tv_bin/script/teamviewer --daemon start &
sudo service teamviewerd.sysv start
# !!!!!! Also add teamviewer program to KDE's Autostart (command to use: teamviewer)
exit 0