The officially official Devuan Forum!

You are not logged in.

#1301 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.

#1302 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.

#1303 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

#1304 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.

#1305 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.

#1306 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.

#1307 Re: Hardware & System Configuration » [SOLVED] Slim login screen spans across 2 monitors as if one monitor » 2018-08-01 03:53:40

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.

#1308 Re: Installation » "Console productivity" tools with Devuan ASCII? » 2018-07-31 14:07:07

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, zsh

#1309 Re: Desktop and Multimedia » Teamviewer 13 library issue: libQt5Core.so » 2018-07-24 12:48:17

It looks very peculiar. Could you check with

$ file /usr/lib/i386-linux-gnu/libQt5Core.so.5.10.1

to make sure it's an appropriate library.

Also, check with

$ ldd /usr/lib/i386-linux-gnu/libQt5Core.so.5.10.1

that it has compatible dependent libraries to all else.

If all those look fine, I'm out of ideas...

#1310 Re: DIY » Mount android disk image inside linux » 2018-07-22 23:19:46

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.

#1311 Re: Hardware & System Configuration » NetworkManager connects to wireless but does not resolve » 2018-07-21 04:32:30

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 loopback

Anything else, and in particular any lines mentioning wlan0 may well confuse the situation.

#1312 Re: Other Issues » [Solved] Older version of php » 2018-07-09 21:17:14

Devuan jessie has 5.6.36+dfsg-0+deb8u1, in jessie-security, so you might be able to install from there.

#1313 Re: Installation » Deterministic names for network interfaces? » 2018-07-09 21:05:11

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.

#1314 Re: Installation » Deterministic names for network interfaces? » 2018-07-09 12:41:27

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.

#1315 Re: Off-topic » I can help Devuan project? » 2018-07-07 23:52:40

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.

#1316 Re: Off-topic » I can help Devuan project? » 2018-06-28 05:50:51

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.

#1317 Re: Off-topic » I can help Devuan project? » 2018-06-26 10:20:50

@Eaglet: I you like, you would also be welcome to add the русский flavour to this forum.

#1319 Re: Hardware & System Configuration » openvpn server and client on same box » 2018-06-20 00:10:35

Gems of knowledge into my sea of ignorance .. I hope the OP gets to mark this as solved soon.

#1320 Re: Forum Feedback » Let's make this forum multilingual! (Calling for language authors) » 2018-06-19 22:57:08

Det låter jättebra. Tack. Låt mig samla ihop underlaget, så skickar jag det till din regestreringsadress (om en dag eller två).

#1321 Re: Hardware & System Configuration » openvpn server and client on same box » 2018-06-19 11:46:43

There are probably many holes in my understanding, but isn't it so, that the server-vpn program already interacts on eth0 for handling its clients; so it's response packets are already outbound on eth0 without any routing?

#1322 Re: Forum Feedback » Much ado about nothing » 2018-06-18 22:56:46

Thanks smile A full day without takers!
In my mind, "blame" is not central to Anarchism; there are other belief systems for that.
But I agree it's a good point: what would Kropotkin say?

#1323 Re: Hardware & System Configuration » openvpn server and client on same box » 2018-06-18 22:49:09

mmm ... all 192.168.x.0/24 (ethX) traffic should go out without ado due to the network route.

#1324 Re: Hardware & System Configuration » openvpn server and client on same box » 2018-06-18 22:02:11

That's a good set of rules for doing no filtering at all, yes smile

If you don't mind, rather dump the output if iptables-save, just to confirm all the tables. Basically, you shouldn't need any iptables rules, except the masquerading of the outbound traffic on tunY. That one is necessary to allow packets with original source from IP 10.8.x.0/24 (i.e., your server-vpn clients) or 192.168.y.0/24 (your wlanX neighbors), as well as allowing packets from 192.168.x.0/24 (your ethX neighbors) to be forwarded and masqueraded through tunY.

#1325 Re: Hardware & System Configuration » openvpn server and client on same box » 2018-06-18 21:17:51

What would be the best way to check?

Remove the rule

iptables -A FORWARD -j REJECT

to see if it works without it.

Then add it back, preceded by rules that allow forwarding between tunX and tunY.

Board footer

Forum Software