The officially official Devuan Forum!

You are not logged in.

#1201 Re: Hardware & System Configuration » safe networking with only one tool » 2019-01-31 07:45:47

/etc/resolv.conf is needed for DNS to work, but before that you need to declare the routing paths.

How about adding a default route?

# ip route add default via 192.168.0.1 dev eth0

That's assuming your router having IP 192.168.0.1. Use

$ ip route show

to inspect the routing table. There's plenty more to read about routing, which is what provides networking above the link level packet exchange.

You don't need /etc/networks or the /etc/network tree; these are used by the ifupdown networking support, but they are not necessary for networking to work.

#1202 Re: Hardware & System Configuration » right click on mac » 2019-01-28 02:35:16

I have an ASUS with a touchpad, with both left and right corner being click buttons, but without proper middle button. I'm therefore using synclient to make it behave, and run it as follows:

synclient RightButtonAreaLeft=1625 RightButtonAreaRight=3249 \
    RightButtonAreaTop=1800 RightButtonAreaBottom=2223 \
    RightEdge=2500 TopEdge=500 \
    RTCornerButton=2 RBCornerButton=0 \
    TapButton1=1 TapButton2=2 TapButton3=3 \
    ClickFinger1=1 ClickFinger2=2 ClickFinger3=3 \
    VertEdgeScroll=0 HorizEdgeScroll=0 CornerCoasting=0 \
    VertTwoFingerScroll=0 HorizTwoFingerScroll=0 \
    CircularScrolling=0

With that set up, I get a middle-button click area in the upper right corner, and also alternative left/middle/right buttons by 1/2/3-fincger taps and clicks (and scrolling sensing turned off, since I found it too easy to trigger while typing).

As I remember, it took a bit of experimentation to get the 6 magic numbers right. The first 4 tells where that middle-button area is, and the next 2 is for something else that I don't remember.  /var/log/Xorg.0.log might tell the x/y dimensions for your touchpad, and man synaptics provides documentation of the available options.

#1203 Re: Other Issues » Troubles playing audio CD on SMPlayer » 2019-01-06 00:57:55

If the new package file has newer version, then it will cause uninstall of the previous version.

If it was me, I would download the .deb file rather than changing my sources list.

For Devuan ASCII you would try installing the debian 9.0 version. Of course, if it ends up in direct or indirect dependencies of systemd it will fail, and your system might be in an iffy state. An installation might also want to pull upgrades to other packages, so you should certainly trial it with --simulate first, to see what is about to happen.

#1204 Re: Installation » E: Package 'python-ipalib' has no installation candidate » 2019-01-05 22:20:40

With equivs you rather easily define an empty dummy package that satisfies an installation dependency. It has excellent documentation (well, at least I understood to use it, to dummy out the avahi nonsense).

#1205 Re: Other Issues » Troubles playing audio CD on SMPlayer » 2019-01-05 22:13:45

Fair enough. If it was a script, file would have said so. Now it says it's an ELF executable, which is not a script.

The principle of having a wrapper script is fairly easy, but I will bail out at this point, especially since the idea itself is merely based on a hunch of the source of the problem. Ideally someone who is already using SMPlayer and/or mpv will step in and lead the way through the "morass" of scripting exercises needed to resolve this. Or provide some other, perhaps better, way to deal with it.

Or, of course, your own research and learning may well bring about a working solution. You'll probably find it worth trying, even just for the joy of learning something new.

#1206 Re: Other Issues » Troubles playing audio CD on SMPlayer » 2019-01-05 02:32:10

One way is by a command:

$ file $(which mpv)

or if that says "symbolic link" you may need:

$ file $(readlink -f $(which mpv))

#1207 Re: Other Issues » Troubles playing audio CD on SMPlayer » 2019-01-05 00:00:57

With my infinite "google fu" I dredged up this comment from 2017:  (https://bugs.mageia.org/show_bug.cgi?id=20550#c5)

José Jorge 2017-04-22 21:39:55 CEST wrote:

I got it. mpv refuses cdda://1, it only works with cdda:// . It is an upstream problem to report either to smplayer or mpv if you want, to get this bug fixed.

Presumably that's still standing.

You might possibly be able to make your own patch by wrapping mpv through a script that makes any cdda://1 argument (or part of argument) be a cdda:// argument (or part of argument). Maybe mpv is a script already, and then it'd be a walk in the park. By the looks of it in the OP log, that cdda://1 is passed in to mpv rather than being invented by it. Perhaps it gets 1 from an environment variable (perhaps  media-title). Or, by increasing convolution, perhaps the 1 gets passed in via stdin, embedded in some way? A wrapper script might deal with any of those.

#1208 Re: Other Issues » Troubles playing audio CD on SMPlayer » 2019-01-04 21:51:51

Please confirm that you have a /dev/cdrom link that resolves properly to the CD device, typically /dev/sr0.

#1209 Re: Other Issues » Troubles playing audio CD on SMPlayer » 2019-01-03 23:28:55

Maybe a red herring, but error code 2 traditionally is EACCESS, which would mean that there is a permission problem for some file, or even that some intermediate directory is missing when the program attempts to access a file. You might be able to use strace to follow up on it, or maybe there is some debug argument to start mpv with.

#1210 Re: Desktop and Multimedia » Can someone explain... » 2019-01-02 20:54:37

The first points of call are /etc/apt/sources.list and /etc/apt/sources.list.d/*; especially the latter: maybe your server upgrade dropped a new source point for you?

#1211 Re: Hardware & System Configuration » shutdown does not poweroff nor restart » 2018-12-29 23:34:00

Do you have live-tools installed?
If so, you should disable /bin/live-medium-eject, e.g by renaming it to /bin/live-medium-ejectOFF.

Basically, live-tools inserts a next-to-final step in the shutdown sequence that by default will want to eject the live medium, and then wait indefinitely for user confirmation. That step has many failure cases that simply end in silently waiting indefinitely (before allowing halt to happen), and yet it's not a needed step at all. You might even want to patch it more elegantly, i.e., exclude it from the shutdown and reboot sequences, if this seems to fix your problem.

#1212 Re: Desktop and Multimedia » Freshclam error (?) message [SOLVED]. » 2018-12-22 22:56:38

It appears some friends on the World Wide Web discussed this very issue some almost 4 years ago:
https://askubuntu.com/questions/589318/ … und/632911
maybe that solution applies for you too?

#1213 Re: Hardware & System Configuration » Can't use keyboard after unlock sleep » 2018-12-07 22:22:40

Is this a matter of slock not returning the keyboard focus back to the application it stole it from? Or it could be that that prior process doesn't deal with keyboard focus events properly? Which program is it, that should receive that typing that it seemingly doesn't receive?

#1214 Re: Hardware & System Configuration » [Solved] ifstat.eth0 on Boot » 2018-12-07 22:00:43

It would appear the boot up is held back due to a problem with the network configuration.

Firstly, could you please confirm it really is ifstat and not ifstate? The latter would be the status files used and maintained by the ifupdown networking package, whereas I couldn't find out which package would be using the former (with a cursory web search).

Perhaps you have multiple and conflicting network configuration methods activated, in which case it could help to reduce that to a single one? Which network configuration method(s) do you use?

If it already is only a single method, perhaps it'd help to make a change to that, such that networks are configured later? Or maybe, if it's a viable choice,  changing to a method that configures the network interfaces asynchronously with respect to the boot up process? Which network configuration method do you use?

#1215 Re: Devuan » A philosophical diatribe: How to avoid having users - and how not to » 2018-12-07 11:14:29

@MiyoLinux: I gather esr's tax identity is Eric S. Raymond, and his CV, would he present one, would or at least could be jam packed with notes about contributions to open source software.

Of course I would agree that the style of "barging in" and presenting an authoritarian opinion is ill suited to this community. But it's certainly worth to hear him out. I think his points are more directed to end-user distribution aims, than to the core Devuan project of maintaining a systemd free platform. Even so, they can well be discussed on this thread.

#1216 Re: Other Issues » Can't start UGENE » 2018-12-06 03:30:46

Copper36, I think it's the "then" fork that is selected, not the "else" fork. Perhaps you should add a line before the "if" saying

echo "$dirname/$appname" "${params[@]}"

which would tell which program is actually run.

It looks though like it's problem is that it cannot find the appropriate translation file(s) so that it can tell what it's problem is, so you might not gain anything more from this than knowing which program has a problem.

EDIT: there is also https://bugs.debian.org/cgi-bin/bugrepo … bug=868885 to ponder.

#1217 Re: Other Issues » Apt-get: DNS problem » 2018-11-29 19:56:55

I think there may well be explanation stories making ipv6 the culprit, and If you don't need it, you should disable it. E.g. put the following into a file /etc/sysctl.d/noipv6.conf and reboot:

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1

#1219 Re: Hardware & System Configuration » Equivalent to Systemd Service Unit/Socket » 2018-11-24 04:40:03

When I write the first few lines in my firewall script, they are not executed.

What do you mean by that?
Which are your "first few lines in my firewall script"?
And where do you write them?
Are you confused about how to run the redirection rule by hand?

The second seems a bit more complicated

Which is "more complicated" than what here?

Isn't it that you want your machine set up such that a certain program runs upon tcp connection to a certain port, with that socket IO being standard input/output for the program? Since that notion is almost as old as me, there are more than a few ways available for it, including those packages, as well as direct approaches using nc or socat.

I think I would do this by adding a start-up script to start the port service when I log in to the desktop management system, with the particular port service I have chosen; probably using micro-inetd, which has this as its central use case. If I would find myself wanting similar but different set ups for several ports, I would probably eventually move over to be using openbsd-inetd instead. But I know folks that certainly would make other choices.

#1220 Re: Hardware & System Configuration » Equivalent to Systemd Service Unit/Socket » 2018-11-23 21:12:53

The first facility is traditionally serviced by loading the  netfilter-persistent package.

The second facility is traditionally serviced by the openbsd-inetd package, which also has a number of "improved" variants on the scale from the minimalistic micro-inetd to the "gruesomely over-featured inetd replacement" rlinetd package.

#1221 Re: Hardware & System Configuration » persistent network interface names with multiple interface cards » 2018-11-20 22:38:21

Firstly, do these interfaces really initialize in different orders at different boots, or are they always in the same order?

The example you present suggests that "04:4b:80:08:80:03" is first, then "00:01:29:d3:0f:01", and then "00:15:e9:bd:1c:b7". If that is always the boot order, then you would do best in naming the first one "eth0", the second one "eth1" and the the third one "eth2", since that coincides with what they are initialized as.

If there is initialization randomness, then you do best in naming them on a naming scheme apart from "ethN", since that will avoid name clashes. The suggestion by @fsmithred might work if their "bus addresses" remain fixed, but it's probably better if you use a scheme of your own, say "eN".

If you also really need them to be named "ethN" in your way, then you must rename twice: first to a different scheme, then back to the "ethN scheme". In that case, you cannot really rely on udev to configure them, since the configuration has to be postponed until after the double renaming (and not on "first sight"). I think you are in scripting territory with that.

#1222 Re: Desktop and Multimedia » PCManFM-Qt: eject or unmount USB? » 2018-11-18 21:43:19

Isn't eject just umount for all partitions on the "drive", followed by an eject command to the drive; though USB drives typically ignores that, unless it's a USB CD drive, or something.

#1223 Re: Other Issues » How to get youtube-dl-gui? [solved] » 2018-11-16 13:54:32

Not my language, but I guess "orden" is for the command to execute, and then that is where the full pathname to the program should be. The next field, "directario de trabajo", is probably the working directory, and I would suggest you pinpoint one of your own directories there.

#1224 Re: Other Issues » ACPI error at start-up » 2018-11-16 00:55:38

@Sevilla.Larry Those and other kinds of ACPI parsing complaints are typically nothing to worry about. Just copy the error messages into a web search tool, and browse a few of the discussions it will find to learn some more.

Welcome to the forum.

Board footer

Forum Software