LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-08-2017, 10:33 AM   #1
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
streaming minicom to web server?


Hi group,

Is there a way of streaming output from minicom to a web page?
 
Old 01-08-2017, 11:26 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
A bit of searching came up with this php class to read a serial port. No idea how well it works.

https://github.com/Xowap/PHP-Serial
 
Old 01-11-2017, 04:30 PM   #3
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by michaelk View Post
A bit of searching came up with this php class to read a serial port. No idea how well it works.

https://github.com/Xowap/PHP-Serial
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.
 
Old 01-12-2017, 04:55 PM   #4
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
I found this:http://https://www.raspberrypi.org/f...?f=67&t=122583But have not been able to verify it works. Keep you posted.
 
Old 01-14-2017, 01:35 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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!

Last edited by ondoho; 01-14-2017 at 01:38 AM.
 
Old 01-14-2017, 02:38 PM   #6
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by ondoho View Post
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.

Thanks for your inputs.

Last edited by MrUmunhum; 01-14-2017 at 02:41 PM.
 
Old 01-14-2017, 02:52 PM   #7
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by MrUmunhum View Post
  • desired outcome
    • 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?
 
Old 01-14-2017, 03:07 PM   #8
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by Turbocapitalist View Post
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.
 
Old 01-15-2017, 12:17 AM   #9
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by MrUmunhum View Post
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.
 
Old 01-15-2017, 03:48 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
mrumunhum, you missed the first and most important part of my post:
Quote:
Originally Posted by ondoho View Post
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
 
Old 03-18-2017, 04:56 PM   #11
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
I found a solution, Open Broadcast System ( OBS ). It does exactly what I want. I am testing it on my laptop, very promising.
 
Old 03-19-2017, 02:26 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
you mean this one:
https://obsproject.com/
?
 
Old 03-19-2017, 04:26 PM   #13
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by ondoho View Post
you mean this one:
https://obsproject.com/
?
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?
 
Old 03-20-2017, 02:39 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by MrUmunhum View Post
Thinking about porting it?
nice try.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] video streaming support with VLC(?) as the streaming server wachi Linux - Embedded & Single-board computer 3 03-28-2011 12:35 PM
Darwin streaming server Video streaming local only ahmed_as8 Linux - Networking 2 05-28-2009 02:52 PM
LXer: Web,Streaming,ftp or mail server Logs analyzer Using Awstats LXer Syndicated Linux News 0 06-05-2007 02:01 PM
Streaming Web Server advice needed Tectron1 Linux - Software 1 06-15-2005 11:51 AM
help me in streaming video from a web server tuxfood General 0 08-19-2004 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration