You are not logged in.
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.
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-freeand update, then install.
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.
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=1232362831However, 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.
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).
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.
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.
It might be enough to add a host route through eth0:
route add 192.168.100.1 dev eth0Did you forget to ask your favourite search engine ![]()
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.
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.
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.
This suggestion is really in the absence of real knowledge, that using slim I would think you can patch the default_server in /etc/slim.conf to be a script that starts the X server, and in addition spawns a delayed appropriate xrandr command. Perhaps something like the following:
#!/bin/bash
( sleep 2 ; xrandr --output VGA-1 --auto --same-as LVDS-1 ) &
exec /usr/bin/X11/X $*Though, I'm pretty sure you'll need some xauth call as well, to import /var/run/slim.auth.
I'm also pretty sure there are better ways than this, and perhaps someone in the know will slide by eventually.
Not sure it answers your query, but task-console-productivity pulls in tasksel as dependency, and the following as "recommends":
abook, alsa-utils, apcalc, aspell, aspell-en, bastet, beep, bind9-host, bittornado,
bombardier, brltty, bsdgames, caca-utils, calcurse, cavezofphear, clex, cmatrix,
cowsay, crawl, curl, curseofwar, dialog, dnsutils, dvtm, ed, edbrowse, eject, empire,
entr, espeak, espeak-ng-espeak, espeakup, fbi, fbterm, fetchmail, figlet, fortune-mod,
fortunes-min, freesweep, ftp, gddrescue, gdisk, geoip-bin, ghostscript, gnuchess,
gnupg, gnupg-agent, gnupg2, gpm, greed, hasciicam, htop, iftop, imagemagick, iotop,
irssi, iw, jhead, lftp, links2, lrzsz, man-db, manpages, manpages-dev, matanza, mc,
mcabber, minicom, mlocate, moc, moria, mosh, msmtp, mtr-tiny, multitail, mutt, ncdu,
net-tools, netcat, nethack-console, nfacct, ninvaders, nrss, omega-rpg,
openssh-client, openssh-server, pacman4console, parallel, parted, pciutils, pente,
poppler-utils, procmail, psmisc, radio, rename, rpl, rsync, sc, screen, sox, sudo,
sudoku, taskwarrior, telnet, termsaver, time, tin, tmux, toilet, toilet-fonts,
traceroute, ttyrec, unzip, w3m, wavemon, wget, whois, wireless-tools,
wpasupplicant, yasr, zile, zshIt looks very peculiar. Could you check with
$ file /usr/lib/i386-linux-gnu/libQt5Core.so.5.10.1to make sure it's an appropriate library.
Also, check with
$ ldd /usr/lib/i386-linux-gnu/libQt5Core.so.5.10.1that it has compatible dependent libraries to all else.
If all those look fine, I'm out of ideas...
If /dev/mmcblk0 was the full disk, you can't mount the image file directly. One solution to that would be to use nbd (network block device) where you set up the nbd server to use the image file, and then "install it" to the system with an nbd client, which would create a series of /dev/nbd0p1, /dev/nbd0p2, ... points for the partitions and subsequent file system mounting.
However, I don't think file recognizes the image correctly, but rather that the image is a raw NAND image, which needs to be pulled as such. It's a fair while since I was blistering my eyebrows on that problem, and apart from me having forgotten most of it, the details of the story are probably quite different nowadays anyhow. I can only suggest that you follow up on reading/writing NAND images.
Is it that the installation left some residue in /etc/network/interfaces? If you're using a network manager, that file should be just
auto lo
iface lo inet loopbackAnything else, and in particular any lines mentioning wlan0 may well confuse the situation.
Devuan jessie has 5.6.36+dfsg-0+deb8u1, in jessie-security, so you might be able to install from there.
I don't know exactly which set up you had before or which you have now, but I do know that it works how I described.
For this, I installed a fresh Devuan ascii VM with two network interfaces, and have explored the variations. It appears to be the case, that the kernel establishes its interface naming before the udev (i.e., eudev) processing gets a chance. Therefore the first attempt to rename eth0 to eth1 fails, etc.
In my VM, I only added /etc/udev/rules.d/70-persistent-net.rules with the two rules (adapted for my mac addresses of course), and looked at the effects of the various alternatives. The set up of naming the secondary interface eth2 works fine.
This test system will of course always pass the kernel's eth0 first to udev. With physical adapters I can imagine the possibility that the kernel passes its eth1 first, in which case this solution would fail anyhow, and then you would rather need to rename both interfaces to unused names.
As far as I can tell, the first rule pair is the right one. However, it's not possible to rename an interface to an already taken name, and the problem is that the udev rules apply well after both interfaces have gained their kernel names. I.e., both names eth0 and eth1 are in use when the rules apply.
Thus, when udev wants to rename eth0 to eth1, it fails because eth1 is already taken. Then the renaming of eth1 to be eth0 also fails for the same reason.
You may however probably rely on that the interface originally named eth0 by the kernel will be processed first. You could therefore set up the rules to name the secondary interface eth2 rather than eth1. Doing so makes eth0 free for any subsequent renaming of the other interface. In that case you will have the interfaces named as eth0 and eth2 via their mac addresses.
If you insist on having eth0 and eth1 you will need a subsequent renaming to happen. That is not easily done through udev, but I think the ifrename package would be able to deal with this.
This forum is now blessed with a русский language option with your translations. Great!
Note that the forum software, including the translations (in their php form) is available at Devuan's gitlab.
That sounds good. I'll prepare the "translation pack" and email this to your registration email. It involves some 1500 phrases and 17 email templates. Though half or so are for the admin pages, which don't necessarily need translations.
@Eaglet: I you like, you would also be welcome to add the русский flavour to this forum.
Great work. I've lodged a bug on your behalf. https://bugs.devuan.org//cgi/bugreport.cgi?bug=222
Gems of knowledge into my sea of ignorance .. I hope the OP gets to mark this as solved soon.
Det låter jättebra. Tack. Låt mig samla ihop underlaget, så skickar jag det till din regestreringsadress (om en dag eller två).