Skip to content

Instantly share code, notes, and snippets.

@returnwellbeing
Created November 24, 2018 02:03
Show Gist options
  • Save returnwellbeing/f33f860610c4300f292b42fcc258da03 to your computer and use it in GitHub Desktop.
Save returnwellbeing/f33f860610c4300f292b42fcc258da03 to your computer and use it in GitHub Desktop.
우분투18.04 시너지 자동실행

Autostart Synergy before logging in (GDM)

Client side

vi /etc/gdm/Init/Default

/usr/bin/killall synergyc
while [ $(pgrep -x synergyc) ]; do sleep 0.1; done
/usr/bin/synergyc <SERVER HOSTNAME>

exit 0

vi /etc/gdm/PostLogin/Default

/usr/bin/killall synergyc
while [ $(pgrep -x synergyc) ]; do sleep 0.1; done

sudo chmod +x /etc/gdm/PostLogin/Default

/etc/X11/Xsession.d/85synergys

/usr/bin/killall synergyc
while [ $(pgrep -x synergyc) ]; do sleep 0.1; done
/usr/bin/synergyc <SERVER HOSTNAME>

sudo chmod +x /etc/X11/Xsession.d/85synergyc

참고

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment