2

What I want to make is a Operating System based on Ubuntu which will use the web

I want to make the items clickable. If you click on an app-icon, the application will open. I tried to use WebSockets, but they are'nt that easy to use.

I tried PHP, with exec(), popen(), system() and I tried ssh2 functions. Doesn't work or too slow.

I can't use a GUI like shellinabox, because I only want to connect to localhost and run some commands like 'firefox' or 'sensible-browser' or like 'gedit'. That's why I want help.

I googled the whole day and found nothing. I'm searching for a simple solution. Just a connection and just some commands. No extra GUI, just that simple things!

Thanks, Amanush.

-------------------------------------------[SECOND QUESTION (EDIT)]------------

I made my own protocol and it's working well!

One last question. My html:

<html>
<body>
<a href="cloudje:firefox">Open firefox</a>
</body>
</html>

My .desktop file:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/usr/bin/cloudjerun -c gedit
Name[en_US]=Gedit
Comment[en_US]=Small, easy-to-use program to access iTunesU media
Name=TunesViewer
Comment=Small, easy-to-use program to access iTunesU media
Icon=/usr/share/icons/hicolor/scalable/apps/tunesview.svg
Categories=Application;Network;
MimeType=x-scheme-handler/cloudje;
Comment[en_US.utf8]=Small, easy-to-use program to access iTunesU media

Tutorial: http://jarrpa.net/2011/10/28/creating-custom-url-handlers-in-ubuntu-11-04-11-10-gnome-3-0/

Ok, it's always executing gedit. The reason is the line Exec=/usr/bin/cloudjerun -c gedit.

That's cool, but I want to run firefox as well, with 'cloudje:firefox' in the HTML-file. How can I replace -'-c gedit' with '-c firefox', '-c skype' or '-c sensible-browser', automaticly?

7
  • 2
    What exactly are you trying to do... 1. Make a UI for Ubuntu that runs in a browser (like ChromeOS) and launches programs on the local machine? 2. Make a UI that runs programs on a remote machine? Commented May 4, 2013 at 11:55
  • are working with gnome3 or unity? Commented May 4, 2013 at 11:57
  • Making a browserbased OS, like JoliOS. You click on an item, it will launch with WebSockets. The point is, I'm not using JoliOS and WebSockets aren't that nice. It's not important if I am using gnome or unity. I care about making SSH connections with Javascript and running commands on the same computer using a SSH-server. I will use Chromium. Commented May 4, 2013 at 11:57
  • @all this not a web question. Note that Ubuntu uses javascript for the desktop as well Commented May 4, 2013 at 11:58
  • This is a web question. Because I am using HTML, CSS, JS and that kind of things ;) Commented May 4, 2013 at 11:59

2 Answers 2

1

I suggest you register a custom protocol handler for your OS on the machine.

ie.: mysweetos://launchapp/chromium

you can find info about this with a quick google of "registering a custom protocol handler linux"

You would have to write some software/script on the linux machine to receive this request and execute the required application.

Sign up to request clarification or add additional context in comments.

4 Comments

I really appreciate your help, I want to serve it from an external website, but the idea is great! Maybe is a Chrome addon a good idea?
If you want to serve it from an external website, the only option is the protocol handler. It is the same way that Steam launches games. I have edited my answer to reflect this.
Never thought about Steam. They are almost doing the same thing. Now Googling 'protocol handler'.
I've got another question, you can all read it below my first one :)
0

This looks very similar, and could be a significant part of what you are trying to accomplish. Technical details here, looks like it requires GTK3.2+

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.