Linux - ServerThis forum is for the discussion of Linux Software used in a server related 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I should have been clearer. I want to stream the output of any program, like xload which outputs a GUI or a terminal window. But thanks for your comment.
i'm not a specialist in this area, but from what little information/explanation you provided:
i think you are trying to reinvent the wheel.
certainly you're not the first person that wants to see graphical content remotely!
look for how it has been solved already!
if that doesn't help, please re-explain what you are trying to achieve, in as much detail as you can.
edit:
before you even tell us what you want, a check list:
machines involved (hardware)
machines involved (operating system)
currently setup working setup (server software, modifications by you, tutorials followed etc.)
network: local (at home) or global or...?
when you tell us what you want:
desired outcome
reason
attempts made, reasoning behind those attempts, and why they failed, incl. (and this is most impoprtant) actual command output!
You are right, I am always looking for the quick and simple fix for my problems. Sorry. Let me first say I am Learning Disabled ( Dyslexia ) and reading is difficult for me and writing, thanks for spell check.
machines involved (hardware)
I plan to use a Raspberry Pi 3.
machines involved (operating system)
Using Raspbian.
currently setup working setup (server software, modifications by you, tutorials followed etc.)
My server is up and running LAMP.
network: local (at home) or global or...?
World wide.
desired outcome
Want to stream to a web page varies program outputs.
reason
To monitor run status.
attempts made, reasoning behind those attempts, and why they failed, incl. (and this is most impoprtant) actual command output!
Have not found any solution that have provided any output.
My Plan is to use this setup to provide remote support.
So far, I have looked at using 'telepi', VLC and ffmpeg.
Many posting found on Google but nothing working yet. A lot of reading to be done.
Want to stream to a web page varies program outputs.
reason
To monitor run status.
My Plan is to use this setup to provide remote support.
The usual way to provide remote support or to monitor a system would be via SSH. Raspian has OpenSSH-server in the repository and you can install that. There are a lot of shortcomings to trying to run things via the browser, complexity and lack of security are two.
If you want to leave a long-running process going on the remote machine and check on it periodically, then you can run tmux on the far end and re-attach to it when you re-connect via SSH.
What specific activities do you want to do remotely?
The usual way to provide remote support or to monitor a system would be via SSH. Raspian has OpenSSH-server in the repository and you can install that. There are a lot of shortcomings to trying to run things via the browser, complexity and lack of security are two.
If you want to leave a long-running process going on the remote machine and check on it periodically, then you can run tmux on the far end and re-attach to it when you re-connect via SSH.
What specific activities do you want to do remotely?
Yes, I use SSH very often, but I plan to allow remote users to use the interface with out using SSH. By using a web page, I can limit the kinds of activity that would be harmful to my server.
Yes, I use SSH very often, but I plan to allow remote users to use the interface with out using SSH. By using a web page, I can limit the kinds of activity that would be harmful to my server.
A restricted shell, such as rbash (aka bash -r), along with maybe a chroot would do that in SSH.
As far as limiting activities go, both in theory and in practice, whitelisting works. Ban everything and then allow in one activity at a time until you have allowed all the activities you want them to be able to do.
Along the lines of whitelisting activities, OpenSSH has the ForceCommand configuration directive that can be applied to specific groups of users. That will restrict them to automatically running only a single program. However, you could choose for that single program to be a script of your making which then reads a multiple-choice either from stdin or from the SSH_ORIGINAL_COMMAND environment variable.
There is also an equivalent command="" that can be embedded in authentication keys to make the keys single-purpose.
mrumunhum, you missed the first and most important part of my post:
Quote:
Originally Posted by ondoho
look for how it has been solved already!
if that doesn't help...
what you want has been implemented already, but not in the way you imagine.
those are complete applications specifically for the task of remotely monitoring a server. https://duckduckgo.com/?q=linux+remo...ver+monitoring
Yes. On my Fedora 23, I just did "dnf install obs-studio". Took some time to figure out who to use it but I found a youtube video that helped me. One problem, it is not supported on the Raspberry Pi! Thinking about porting it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.