• 0
Cyro

VNC Shortcut support

Question

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 

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

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.

 

Share this post


Link to post
Share on other sites
  • 0
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 :)

Share this post


Link to post
Share on other sites
  • 0
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" 

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
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.

Loading...