Jump to content
  • 0

VNC Shortcut support


Cyro

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

Hi there, so ive been running my server without any ui interface with linux system coz of ram consuming issues,

so now i have shifted my server to dedicated server which is having 32gb and installed VNC so it would be easy to monitor with screen command easily, so everything working fine
just want to know how to install this shortcut icons in Vnc as attached below(so need not to open terminal everytime i need to restart server) , i tried searching reading guides but unable to find something related to it , so someone can help me to redirect me to proper guide?

Screenshot_1.png
or some instructions would be appreciated
TIA 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

There's no single solution to this as there are many aspects to running a VNC server that affect how this would be setup.

For a basic example though, you can look at these:

Desktop shortcut file (start.desktop)

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Start rAthena
Type=Application
Terminal=false
Exec=/path/to/scripts/start_server.sh
Icon=/path/to/icon.png

start_server.sh

#!/bin/sh
DIR=/path/to/scripts
xterm -title "Login Server" -bg black -fg white -hold -e $DIR/start_login_server.sh &

start_login_server.sh

#!/bin/sh
cd /path/to/rAthena
./login-server

There are a great many guides on the internet that can walk you through setting up a VNC server and then configuring it to run scripts based on desktop shortcuts.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

9 hours ago, Akkarin said:

There's no single solution to this as there are many aspects to running a VNC server that affect how this would be setup.

For a basic example though, you can look at these:

Desktop shortcut file (start.desktop)


[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Start rAthena
Type=Application
Terminal=false
Exec=/path/to/scripts/start_server.sh
Icon=/path/to/icon.png

start_server.sh


#!/bin/sh
DIR=/path/to/scripts
xterm -title "Login Server" -bg black -fg white -hold -e $DIR/start_login_server.sh &

start_login_server.sh


#!/bin/sh
cd /path/to/rAthena
./login-server

There are a great many guides on the internet that can walk you through setting up a VNC server and then configuring it to run scripts based on desktop shortcuts.

 

Thank you for the reply akkirin 

i tried this, and when tried to start "start server" applocation i got an error "there was an error launching this application" 
any solution or can u link me any guide :)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

On 3/22/2017 at 2:35 PM, Cyro said:

Thank you for the reply akkirin 

i tried this, and when tried to start "start server" applocation i got an error "there was an error launching this application" 
any solution or can u link me any guide :)

i am also getting this error "there was an error launching this application" 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

1 hour ago, iubantot said:

i am also getting this error "there was an error launching this application" 

You need to give give 755 permissions to . desktop applications

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

1 hour ago, Cyro said:

You need to give give 755 permissions to . desktop applications

I already added "chmod +x start.desktop" still having error launching applciation

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

1 hour ago, iubantot said:

I already added "chmod +x start.desktop" still having error launching applciation

You can click on on "trust and open this application" after you give permissions to it

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

If it helps, have a look at my Cervantes installer. Step 8 is where the desktop icons are picked up from my server, created on the desktop and chmod'ed so users can double-click them. https://vhost.rocks/cerv

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...