The officially official Devuan Forum!

You are not logged in.

#1202 Re: Hardware & System Configuration » Ascii: Lenovo Trackpoint Scrolling » 2018-09-06 05:53:42

I don't have this problem myself, but a quick round-trip through the cloud suggests that man libinput is a good source of learning the property names. In particular they seem to have libinput rather than "Evdev" as their first word.

#1203 Re: Hardware & System Configuration » /etc/udev/rules.d/70-persistent-net.rules rule not working (ASCII) » 2018-09-04 23:54:17

I suppose, if you choose to stay with the names eth0 and eth2 (i.e. not eth1) it might also work as udev rules.

#1204 Re: Desktop and Multimedia » [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning » 2018-09-04 10:23:50

I can't really answer many of your questions, except perhaps that there is indeed a "blacklist of  packages which cannot be installed due to systemd dependency", HERE.

But I wanted to suggest that you try a different approach, for greater success on the forum, and just raise one issue or ask one question in a thread. Start a new thread for each. Otherwise the thread just ends up as a mishmash of half-answers and counter questions, without really being useful for anyone, including yourself, probably.

#1205 Re: Installation » Services start issue » 2018-09-03 23:45:30

Sort of like what was once known as (this dates me) CR or 'carriage return'.
Typing machines and telex terminals from long ago.

Almost exactly right, I'd say. Time has blessed us with three different ways of ending a line, all relating back to the use of these characters for printer control, and basically a matter of how it is represented on file. So, nowadays we have:

  • the Microsoft line ending idea of using both CR (carriage return) and LF (line feed),

  • the Apple idea of ending lines with only CR, and

  • the Unix (and Linux) idea of ending lines with LF.

That line ending are characters within the files, to make up the traditional "text file" representation. Obviously the Unix idea is the right way, and the others are merely weak attempts of obfuscation.

For some reason, the fourth option of LF+CR never took hold, even though that's really the mechanical sequence that got implemented in type writers, and probably the "safest" motion for a ribbon printer, which otherwise might smudge the printing.

#1206 Re: Installation » Services start issue » 2018-09-03 21:28:08

ralph.ronnquist wrote:

    ... suspect the issue is rather the absence or presence of a newline at the end of the line.

I'm sorry, I don't understand what you mean.

Hmm. A "newline" is a character at the end of a line, and it belongs to the text of the line in the same way as space characters belong to the line, but it also is a separator between lines in the way space characters are separators between words. For visudo (and sudo, I guess) the (last) line must have a terminating newline.

Many editors though don't show much different for that last newline being there or not, and some editors (like vi) even force a final newline. Presumably the editor, jed(?), that you used, lets you end the last line without a newline character.

You can check that by making a one-line file, say xxxx.txt without entering a final newline, and then view it by cat xxxx.txt, which will show the text content of the file, and then, if the final newline is missing, the next command prompt becomes joined up on the same line.

So, you configuration file problem was that the first one-liner didn't have the terminating newline, and therefore visudo complained. As you added the % character to the beginning, you also happened to get a terminating newline, presumably because you then edited the file with a different editor (eg through visudo). The fix was due to that newline, and adding the % character "merely" changed the semantics of the line.

#1207 Re: Installation » Services start issue » 2018-09-03 13:01:55

Regarding that "X days has passed ...", it sounds like the fsck output, telling you that the file system hasn't been checked in X days, and that a check is forced. Nowadays there is a tendency of not showing the startup messages, but rather just showing an image or a black screen until the desktop environment kicks in. This is something you can configure by changing the boot command line.

Regarding your sudo configuration, I suspect the issue is rather the absence or presence of a newline at the end of the line.

#1208 Re: Hardware & System Configuration » How i must write "openrc-run" script for launch boot service? » 2018-08-31 10:49:41

ah. of course.

If you've done the set up as @dxrobertson mentioned, maybe the problem is that the noip2 daemon needs some configuration that is missing? E.g., should it have "-i IPaddress" on the command line? Though, I must admit I know less about noip2 than is written at https://github.com/jamesstout/no-ip/blo … ADME.FIRST.

#1209 Re: Hardware & System Configuration » How i must write "openrc-run" script for launch boot service? » 2018-08-31 06:53:55

echo '#!/sbin/openrc-run

is an unusual first line for a script. Or was it a mistake when copying to here? Otherwise you should remove the first 6 characters, so that the very first character is the "#" character. Or equally, make it so to say:

#!/sbin/openrc-run

#1210 Re: Devuan Derivatives » Can't boot to live Refracta 9 disc » 2018-08-29 22:54:26

On that picture, it looks like init reached the "final" bash prompt, then some background process kept/keeps "spitting" at you.

Push enter, maybe.

Though there seems to be some problem with the network module.

#1211 Re: Hardware & System Configuration » what starts the eudev service? [SOLVED] » 2018-08-29 21:36:07

Looking at my own system (ascii), the story is something like the following.

The process is named udevd.

It's first started by its pre-pivot init-top/udev script, in initramfs. That process is then killed at the end of the pre-pivot init sequence, by its  init-bottom/udev script, still in initramfs.

Next it has its init link /etc/rcS.d/S0?eudev (or possibly /etc/rcS.d/S0?udev) for starting udevd in the post-pivot init sequence.

The pre-pivot start up includes a forced traversal of the /sys tree through a udevadm trigger --action=add command, and then that init-top/udev script also waits for udevadm settle to return, before it "pokes" extra on scsi devices, if any, followed by an optional additional timeout in some circumstances. Further, the init-bottom/udev script at the end of pre-pivot init merely kills the pre-pivot udevd process, and then moves the pre-pivot /dev to be available as post-pivot /dev.

Note that pre-pivot init is a script, usually a copy of /usr/share/initramfs-tools/init, and it ends with an exec run-init ..., which becomes the post-pivot init process (or a panic, if exec fails).

#1212 Re: Hardware & System Configuration » /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED] » 2018-08-29 13:05:57

Yes, there is 73-usb-net-by-mac.rules which deals with USB net devices, unless there's a net.ifnames=0 assignment on the boot line. Then there is also 80-net-name-slot.rules being active unless net.ifnames=0, applying some last resort naming that is made available by the (unconditional) net_id invocation of 75-net-description.rules.

Those "specialized conditions" I mentioned are various reasons to avoid renaming, and they don't make renaming happen.

Note that net.ifnames=0, net.ifnames=1 and net.ifnames unassigned provide three different ways of hotplug handling of network device adapter naming, with a nice handful of rules files involved. Then there are also at least 2 other rules files involved in the enabling (or configuration) of network interfaces, and those of course depend on the name assignments, especially if there's a renaming involved.

Don't ask me why smile

#1213 Re: Hardware & System Configuration » /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED] » 2018-08-28 22:52:11

The generation need not be a mystery. It's indeed that "rules" file 75-persistent-net-generator.rules that comes into play whenever some hotplug event occurs, plus the once off initial scanning of /sys. I suppose you need to learn a bit udev-ish to work it out in detail, but essentially:

IF the hotplug event is due to the (possibly faked) addition of a net device adapter, and the NAME attribute has not been set for it, and the environment does not contain an net.ifnames variable with value 1, and the initial kernel name pattern is one of some few (including eth* and wlan*), and some few more specialized conditions,
THEN make up a name for the device adapter, and run /lib/udev/write_net_rules to generate /etc/udev/rules.d/70-persistent-net.rules.

Afaict the idea is, that any subsequent addition event for the same net device adapter will process 70-persistent-net.rules first, and that will set NAME for the adapter, and thereby disarm 75-persistent-net-generator.rules. It's all at a deplorable level and style of programming, but I'm sure someone is proud of it.

One thing is that the  logic ignores other possibilities of setting NAME before 75-persistent-net-generator.rules. I have a vague memory of various random "solutions" to adapter naming that end up setting NAME early, and thus also disarm the generation of 70-persistent-net.rules, but without them being grounded in their logic. The result is more untouchable udev rules mess, which is good for nothing but clocking consulting time. smile

#1214 Re: Hardware & System Configuration » /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED] » 2018-08-28 12:15:44

It's generated by udevd via /lib/udev/rules.d/75-persistent-net-generator.rules when net.ifnames!=1.

#1215 Re: Other Issues » How can i get rar in devuan? [solved] » 2018-08-13 22:28:46

I suppose it's also possible to make it a single source line, i.e., replace the one you had (that matches the beginning of the one I suggested) with the one I suggested. That should have the same effect but without the warnings.

#1216 Re: Other Issues » How can i get rar in devuan? [solved] » 2018-08-13 14:55:26

rar and unrar are both in the non-free area, so you'll need to include that in your sources:

deb http://pkgmaster.devuan.org/merged/ ascii main non-free

and update, then install.

#1217 Re: Off-topic » [SOLVED] how to reboot modem from router command line? » 2018-08-13 03:26:37

The "confirm" popup is in the RouterStatus.htm script to come up before the reboot request gets issued; so it's before that wget request gets issued.

When checking the file again with more care, I realized that there is the hidden input field named buttonSelect. Thus that should be the name used in the post data. I.e., try using buttonSelect=2 instead of button=2.

Since both 1.htm and 2.htm are the same progress bar response, it suggests that the id number is not very important. Thus option 1 may well work with buttonSelect=2.

The complex, third, variant doesn't work at all as is, which is my fault. It should have -O- instead of -v; you will want the download of the inner wget to go to standard output, and piped to sed, which extracts the form action (with path and id) to be used by the outer wget.

Though the complex variant is only needed if the id number is important. If there also is a connection to the session cookie, the command might need to be made even more complex, so as to making the inner wget save the cookie, and the outer load it.

#1218 Re: Off-topic » [SOLVED] how to reboot modem from router command line? » 2018-08-12 23:18:36

From a glance into the html page, it should work nicely with a single request like the following:

wget --http-user admin --http-password password --post-data 'button=2' http://192.168.100.1/goform/RouterStatus?id=1232362831

However, that extra parameter id=1232362831 was generated for the page you saved, and it's not obvious how to make it up if it's different each time. It could possibly be a timestamp, if your modem's clock is off by 9 years or so. It might also be without special significance.

If it is a time stamp for an off clock, you'd generate a new one with something like  $(( $(date +%s) - 301751682))

If it is significant, you will need to first get the page (as you did), and then pick the form action from it (e.g. with sed). You would then put these two wget together into a single command line like the following (where back-slash is immediately followed by new-line), perhaps:

wget --http-user admin --http-password password --post-data 'button=2' \
    http://192.168.100.1$(wget -v --http-user admin --http-password password \
       http://192.168.100.1/RouterStatus.htm | sed '/action/ s/.*n="\([^"]*\).*/\1/')

On the other hand, since your method works, you might as well keep that.

#1219 Re: Off-topic » [SOLVED] how to reboot modem from router command line? » 2018-08-12 12:34:44

My read buffer for python is rather limited I'm afraid, but I noticed you're using form[1] and that the javascript in post #10 submits a form[0]. I know javascript starts indexing from 0, and if python does the same, it might mean that the submitted form is actually a hidden element prior to the visible form. Perhaps there is a "tag name" selector in selenium offering the array of forms, to let you mimic the index==3 action.

Other than that, I think I'm out of ideas (well, suggesting an excursion with wget, perhaps, which also is cookie capable).

#1220 Re: Off-topic » [SOLVED] how to reboot modem from router command line? » 2018-08-11 22:44:15

Firstly about the authentication: it appears the modem uses cookies for session tracking; you see the Set-Cookie response header. That's slightly unfortunate as it might even mean you need to chain it all as two requests. Or maybe not. With curl, you use argument -b to tell it that cookies are in use, and -c x to store cookies in file x (and reuse from there).

Secondly about the URL. You will need to look into the HTML for the first <form .. action=...> and make note of its action. If that is a relative path, it would be appended to /goform. Thereafter you need to add the query parameter ?bbb=3, although that bbb you will find as the name of the button in the form. Or try with ?buttonSelect=3 (although that looks too easy). Also, if the form method is "POST" you may need to make it all a POST request rather, and then the query parameter would be added into the "data" part.

#1221 Re: Off-topic » [SOLVED] how to reboot modem from router command line? » 2018-08-11 12:52:48

Most likely the router uses "basic authentication", which means that the username and password is passed on as an HTTP header with every request, and if so, you'll be able to pass it to curl (or wget) as part of its arguments. You'd use the inspect tool of the browser (hoping it has that) to find out the triggering url for the reboot button, and it'll work nicely with a single curl (or wget) command. The reboot url would be either a simple "get request", or possibly a "post request" action of a "form" in the page.

If your browser doesn't have an inspect tool, you should be able to save the page and view it in a plain text editor instead (looking for the "reboot" text).

If the authentication is something else, you might need the more complicated solution of running a "web monkey" (e.g. casperjs, or take your pick) to mimic the human gestures across the interface, relative to the browser document representations. It would however be a bit surprising to me if it offered that kind of complexity.

#1222 Re: Off-topic » [SOLVED] how to reboot modem from router command line? » 2018-08-11 03:51:36

It might be enough to add a host route through eth0:

route add 192.168.100.1 dev eth0

#1223 Re: Off-topic » [SOLVED] how to reboot modem from router command line? » 2018-08-09 21:53:34

Did you forget to ask your favourite search engine smile

Mine came up with https://community.netgear.com/t5/Wired- … d-p/495136 which suggests a simple curl command... though I can't test and confirm.

#1224 News & Announcements » Gitlab upgrade notice. » 2018-08-09 21:34:50

ralph.ronnquist
Replies: 0

NOTICE:

Devuan's gitlab service is being upgraded to a new version at

    Sat 11 Aug 07:00:00 UTC 2018.

This upgrade should be completed within four hours.

There may be "hickups" in the service during the upgrade, and it's best you refrain from accessing it during that time.

Ralph.

#1225 Re: Hardware & System Configuration » [SOLVED] policykit-1 0.105-15~deb8u3 requires libpam-systemd » 2018-08-02 23:10:57

ok; as a slight side track on the thread: your IP ended up as "dubious", because at about half past four today (UTC), you let your computer make a "head" request to "//dev1galaxy.org/req_message". There might be an ordinary explanation for this happening, but we haven't yet got any from anyone who has done this, so it remains classified as "dubious activity". In the olden days, afaict that kind of request did something against phpbb forums, so it remains noted as a security concern although it technically is useless against this forum.

Board footer

Forum Software