![]() You can also change 1280x800 to your desired resolution: ĭescription=Start TightVNC server at startupĮxecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1ĮxecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i ![]() A unit file encodes information about a service: sudo nano in the following, replacing idroot it with your own user name. One more time, let’s stop the VNC server so we can change configuration files: vncserver -kill :1 Create a VNC server system startup script. Make the xstartup file executable: sudo chmod +x ~/.vnc/xstartupĪnd finally, start vncserver again: vncserver Insert the following lines in this file: #!/bin/bash Now edit xstartup the file: nano ~/.vnc/xstartup Next, create a backup of its default startup script file: mv ~/.vnc/xstartup ~/.vnc/xstartup.bak First, stop the VNC session using the following command: vncserver -kill :1
0 Comments
Leave a Reply. |