Run application when start vnc server - vnc

I want to automatically launch an application when access to the VNC session. The scenario is that when open the VNC session, the application will be run as a popup automatically. I think I need to modify the ~/.vnc/xstartup.turbovnc file, but I don't know where do I need to start.
Thank you.

Related

Starting nginx and server at system restart

I have two batch files which will start my nginx and node server ( using node forever) separately.
I want these scripts to restart every time the whole system restarts.
Now my server is a windows VM(windows server 2016) which has multiple users.
I tried this but it creates a startup folder under my user, so I am guessing it will restart each time my user logs in and moreover my user folder will be deprecated.
I DO NOT want to start the scripts each time a user logs in.
Only when the system/VM restarts. How can I ensure that this happens?
You can try adding the shortcut in Windows startup. Take a look at this link.

How to run Application.exe before windows startup?

I have a windows application with user Interface that do some stuff...
Now my client wants that, when he pushes the power button MyApplication run before he forced to input the username and password!
comment: the system is multi user on windows XP or Seven.
Is it possible anyway?
I found the way to do this was to create a scheduled task with a trigger for "on startup". This starts the application before windows logon. This is particularly useful in a server type environment if you need to have something run that is not a service.
It is simple. The process is.
Run gpedit.msc
Go to computer Configuration -> Windows Setting -> Scripts(Startup/shutdown)
Go to Startup properties then you will get the new windows.
Now add the program that you want to run before login.
The right way to do this is to implement a Windows service.
I've used this article here as I run a Minecraft server which I need to have the console interactive so I can manage the server and running it as a service is not a good solution in such a case: https://www.tenforums.com/tutorials/138685-turn-off-automatically-restart-apps-after-sign-windows-10-a.html
What I did was edit the registry:
Go to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Create a new DWORD value (if this DWORD doesn't exist already) and
call it RestartApps with the value of 1
This now starts apps that usually startup before you log in and starts the programs in shell:startup
You can not run an exe without first loading the operating system. You can, however, run the exe without logging in first. Just add copy and paste the shortcut for the exe into C:\Documents and Settings\Administrator[or other user name]\Start Menu\Programs\Startup. Then check msconfig to make sure your exe is checked to run on startup.

How to access an open terminal session

I would like to know if it is possible on any OS to be able to remotely connect to a terminal prompt session which is already open as it gets quite annoying when switching to the iPad using the prompt app and not being able to connect to that already open session.
Have you looked into the screen program? It allows you to run multiple sessions at once and connect to them from other devices/sessions.
http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/

Running a GUI app on linux, without showing the gui?

I'm working with an api that requires an app to be started, the app runs a GUI on linux.
I need to punsh in some login information and then hide the app.
Is there a way I can go to the machine start the GUI and then hide it, log out, and have other users log in with out having the GUI shown, but still having the app running?
You can take a look at Xvfb http://en.wikipedia.org/wiki/Xvfb
it's a framebuffer version of X.
It will launch an X11 server without displaying it (useful with selenium for example)
Xdotool can send input to anyb xwindow, including xvfb

Execute a batch script from Firefox

I have written an intranet application from which you can directly connect to a virtual machine by clicking on a RDP-button. The click calls a .bat file, which opens the connection.
With IE, this is no problem, as you can choose to directly execute the batch file. But with Firefox, I can only download the script, and have to start it manually afterwards. Is there a way to trust the intranet domain (about:config?) so Firefox allows it to execute scripts directly? Or is there an even better (easier) way to start an RDP connection from Firefox?
You can easily register a custom protocol handler such as "myrdp://somedata" to run the app that opens the VM (This would probably work with a .bat, it works with a WSH script, better a small exe)
IE/FF support this functionality and allow you to then simply <a href="myrdp://somedata" ..>
You could also try to set up your firefox to automatically open the .rdp files with the default rdp client. This way the files will be downloaded in a temp dir and immediately started up.
You can do this in Firefox's preferences. Hope this helps )

Resources