| Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-10-2010, 10:37 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2010
Location: Newark, NJ
Distribution: Ubuntu, LinuxMint
Posts: 6
Rep:
|
How do I execute a bash script from a link on a web page? Is there any way to do this
I want to be able to have a Linux computer go to a web page that I have hosted in cyberspace (nexcess) and by clicking a link, I want it to do one of the following:
1. open gnome-terminal and execute the script located on my server to be run locally (my preferred method)
2. download the script, make it executable, and execute the script locally within gnome-terminal
A hybrid of both techniques is acceptable, but I want the solution to be ultimately a one-button solution. In short, if there is a way to click a http link to open gnome-terminal locally and execute a script, then I can ultimately find a way to do what I really would like to do. Thanks in advance.
|
|
|
|
03-10-2010, 10:45 AM
|
#2
|
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
You don't really want to do that.
If your browser executed scripts from the web then all hell could break loose.
You would need your web server set up to deliver the script in some other form than text.
Then you would have to set your browser to open the script file using a terminal and somehow make it executable on your machine.
That's why we have permissions. To stop things like that happening.
There is no one button solution, the client has ultimate control.
You can use rpms that way, but it's still a bad idea.
|
|
|
|
03-10-2010, 11:12 AM
|
#3
|
|
LQ Newbie
Registered: Mar 2010
Location: Newark, NJ
Distribution: Ubuntu, LinuxMint
Posts: 6
Original Poster
Rep:
|
The reason why I would like to do this is that I have a growing user base that is new to Linux. I want to soften the learning curve with them so that they can fix common issues quickly and painlessly (such as installing java or flash or adobe acrobat quickly). Still a bad idea?
|
|
|
|
03-10-2010, 11:16 AM
|
#4
|
|
LQ Newbie
Registered: Mar 2010
Location: Newark, NJ
Distribution: Ubuntu, LinuxMint
Posts: 6
Original Poster
Rep:
|
Maybe a better solution is how could I set up a ready ssh link that I would be able to connect to a client's computer remotely to administer their system without a lot of to-do in setting such a service up? i.e. a one-button solution that will grant ssh access to me from the client's computer? Possibly using dyndns.org as a simple host portal?
|
|
|
|
03-10-2010, 11:22 AM
|
#5
|
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
The problem comes when a malicious person sets up a similar thing and the unsuspecting newbie runs it on their computer.
If you want that kind of thing, then stick to windows. But even windows warns you about running untrusted executables.
You have to trust the person you are getting the script from, and you have to understand what the script is going to do.
You can't soften the learning curve without making the users vulnerable.
The best thing to do, is offer the script as it is, explain to them what it does and how to run it, and leave it at that.
Then it's their choice. And make sure you explain that it's their choice and responsibility.
Besides which, your script is going to be quite complicated to take into account all the variables there are between different computers, even if they are running the same distribution. What if it breaks something ?
|
|
|
|
03-10-2010, 11:24 AM
|
#6
|
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
If you want remote control then look into RDP. But you still should steer clear of "one click" solutions.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:51 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|