Question:
How to make aplications load after connecting to WiFi Ubuntu?
Brian
2010-11-23 12:03:59 UTC
I am using my PC as a server, eventually it will have not keyboard, mouse or monitor attacthed so it needs to be able to run just by pressing 'ON'

I have configured everything PERFECTLY, it all works =)

One problem; the applications i need to open on boot open straight away, they open before it connects to my WiFi meaning they dont work. I need to close and open again for them to work (which is impossible without keyboard or mouse which i wont have)

Is there a way for it to connect to my wifi first then open the apps (PMS - playstation media server and TeamViewer - Remote Desktop application so i can access my PC via laptop)

Or just a simple way to Lag or hault the two apps from opening so it has enough time to connect
Three answers:
anonymous
2010-11-23 12:22:34 UTC
You will have to get those applications to startup from a shell script. Google "shell scripting" for more info on how to setup these.

At the start of the script add "sleep [amount-of-seconds-you-wish-the-script-to-wait-for]"



Then type in the command that is used to open your program/s (find the program/s under applications, right click and add launcher to desktop or panel, then right click the new launcher and copy the "command" box, as this is the command to run your program)



to get the shell script to run automatically, add it under system-->preferences-->startup applications just like you would have done for the programs



hope this helps
anonymous
2016-12-16 18:41:33 UTC
pass to equipment>Admin>hardware drivers. it is going to test you workstation, deploy the superb stress on your card. (you ought to ought to connect via ability of an ethernet cable for it to get carry of the driving force) so connect it in the previous you run the stress test. as quickly as the stress is deploy, the wifi will look on the actual appropriate hand on the workstation, and something is fairly like in homestead windows. If this nevertheless does not artwork, Linux Mint (geared up on ubuntu, yet extra beneficial and extra consumer friendly IMO) could have the driving force you opt for it in. email me in case you opt for added help, i'm even keen to do a skype consultation with you and tutor you strategies I did it on my Inspiron 1525. There are like 20 human beings on yahoo solutions who comprehend Linux properly, i'm between the main lively even with the undeniable fact that. You is fortunate =). additionally, what's the wifi card producer, which will help to boot. email me.
?
2010-11-23 12:30:48 UTC
Open up GEDIT copy pasta below as "startup.sh". Then set "startup.sh's" properties to executable. Then set it to run on startup. Replace program1command and program2command to the actual terminal commands to execute the programs.



----- Copy Pasta Below------



#!/bin/bash



sleep 120



program1command & program2command


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...