:: Re: [DNG] Web md RAID monitoring [w…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Didier Kryn
Fecha:  
A: dng
Asunto: Re: [DNG] Web md RAID monitoring [was: Re: Fake RAID]
Le 12/03/2022 à 11:03, tito via Dng a écrit :
> On Sat, 12 Mar 2022 10:32:53 +0100
> Didier Kryn <kryn@???> wrote:
>
>> Le 12/03/2022 à 02:05, Ralph Ronnquist via Dng a écrit :
>>> On Sat, 12 Mar 2022 09:33:01 +1100
>>> Ralph Ronnquist <ralph.ronnquist@???> wrote:
>>>
>>>> On Fri, 11 Mar 2022 16:04:45 +0100
>>>> Didier Kryn <kryn@???> wrote:
>>>>>        Its almost done. I have added a few features devised from
>>>>> Tito's suggestions, and added git version control, but I can't
>>>>> remember how to create the initial version in Devuan's git store.
>>>> You need an acount set up first; let's say it's "kryn" and for the
>>>> sake of example I use the name "webraid" for this project.
>>>>
>>>> Then, at home, you use the 2 commands:
>>>>
>>>> $ git remote add origin git@???:kryn/webraid.git
>>>>
>>>> $ git push --set-upstream origin master
>>>>
>>>> Thereafter you need to jump onto the store's web interface and change
>>>> the project settings into not being a private project.
>>> Actually, the above would be only if you have your ssh key registered
>>> at the git store. If not you would rather use the following first
>>> command:
>>>
>>> $ git remote add origin https://git.devuan.org/kryn/webraid.git
>>>
>>> and then follow on with the login credentials it asks for.
>>>
>>       Thanks for the explanations. I will keep your mails for the next
>> time. Following Aitor's instructions, I created a minimal repository
>> from the web, then cloned it locally, copied all the stuff in locally,
>> committed it and pushed the result back.
>>
>>       It's called Diskweb. Thanks all for your help.
>>
>> --     Didier
>>
>> _______________________________________________
>> Dng mailing list
>> Dng@???
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> Hi,
> some minor typos in Readme.md file:
>
> This is a small http server, originally inspired by micro-httpd, for its small size, but with the intention to serve dynamic content instead of static files.
>
> The primary reason to use an http server is that it is a simpler method to display graphics than interfacing with a graphics library like Gtk or Qt.
>
> The second reason is that it is still usable on systems without graphics capability, since it is enough to have a network connection and view the graphics from a remote full-fledged computer.
>
> This server provides monitoring of filesystem status and md RAID status. Monitoring of other system-critical components could be added.
>
>                                                     file system
>
> This server follows http 1.0 protocol, which means that the connexion is closed immediately after the content have been transferred. This makes it usable to serve one request after the other and have only one session at a time.
>
>                                                                                            connection
>
> Data transferred reflects the status of the filesytems and of the RAID(s) at the moment of the request. There is no automatic update. To obtain updates, the user must repeat the request (by using the "refresh" button of the web blowser).
>
>                                                                  file systems                                                                                                                                                                                                                                                                         browser
>   
> PORT NUMBER
>
> This server expects connexions on port 8085 by default. If another port number is desired, it can be changed by one of 4 means:
>
>                                connections
>
>      on the command line, invoque 'httpd port-number'
>
>                                        invoke  (call?)
>
>      in src/httpd.c: change the line #define LISTEN
>
>      add the line above in /src/diskweb.h
>
>      in the makefile, add a -D option to the gcc command to do the same
>
> diskweb's httpd can also be invoqued through inetd, in which case it does not listen to any port and the listening port is part of inetd's configuration.
>
>                                            invoked (called?)
>
> BUILDING and INSTALLING
>
> To just compile the executable file httpd, run 'make' To delete it, run 'make clean' To install /usr/local/diskweb/httpd, run 'make install' . (A dot is missing)
>
>   To uninstall it, run 'make uninstall'   . (A dot is missing)
>
> No sysv-rc, runit, s6, or other init scipt is provided. The easy way to start diskweb on Devuan is to copy the file diskweb.sh in /etc/boot.d ; commands in this directory
>
>                                                    script
>
>   are executed by /etc/rc.local as the last step of system startup. This script is not installed by 'make install' because it would require root priviledge.
>
>                                                                                                                                                                                                                 privileges
> Note that root priviledge is needed to listen on a port number lower that 1024.
>
>                        privileges are


    Done. Replaced "invo[k|qu]e" by "execute". I think "call" is rather
meant for functions than applications. Thanks for reviewing.

--     Didier