The officially official Devuan Forum!

You are not logged in.

#951 Re: Desktop and Multimedia » incorrect screen size and keyboard not working after lid closure » 2021-09-29 23:17:25

Is there anything spectacular in /var/log/syslog or /var/log/Xorg.0.log ? or perhaps som /var/log/pm-* log file?

Generally the issue is likely to be that some module fails to reset/restart properly on resume. if that is the case and you can isolate which one, adding that module to the SUSPEND_MODULES list (see man pm-suspend) for unloading and re-loading might solve the issue.

#952 Re: Other Issues » [SOLVED] repos not syncing » 2021-09-27 22:29:34

Yes. Basically amprolla's package update process had locked up; most likely due to the network traffic shaping I had set up which ignored the one "brittleness" in the tcp protocol, that packet drop during its tear-down handshake might cause the client end to hang.

#953 Re: Installation » [SOLVED] Desktop.iso install: multiple problems » 2021-09-27 02:19:24

"live installer" is a good choice; I'm not sure whether it's strictly better or not but it has the "advantage" of try-before-buy smile

I don't know about runit. Perhaps the best is start a new thread on that topic as there's for sure people with experience from that around here.

#954 Re: Installation » [SOLVED] Desktop.iso install: multiple problems » 2021-09-27 01:46:21

2) ok. In order for root to run X programs on a user's X server started by slim the two environment variables
XAUTHORITY=/home/devadmin/.Xauthority and DISPLAY=:0 would be needed. E.g.

# XAUTHORITY=/home/devadmin/.Xauthority DISPLAY=:0 mousepad

(replace devadmin with the user id)

#955 Re: Installation » [SOLVED] Desktop.iso install: multiple problems » 2021-09-27 01:16:42

1) firmware-iwlwifi is on the ISO somewhere in its pool/ directory tree.
You might try to find and install that. there is also rfkill which you might need if the wifi is "turned off".
(The firmware should have been installed "automatically" during the installation; not sure why that didn't happen)

2) what's the output of:

# pgrep -a Xorg
# echo $DISPLAY

3) well the failures of installing mate and lxqt would have been during the installation so it's moot now, otherwise the installer has its /var/log/syslog that you can tail the end portion of to see what the error messages are.

#956 Re: Installation » [SOLVED] Desktop.iso install: multiple problems » 2021-09-27 00:39:43

1) Which of the few installation methods did you try?

Certainly the very first one, named "Install", installs firware-iwlwifi both for the installer itself and for the installed system.

A common fault is to choose the method named "Expert install" and then fail to load the installer components (perhaps because the step is named "Load additional installer components").

2) perhaps you can illustrate the with the actual command that you try, and it's actual response.

3) perhaps you could rather include the tail of syslog for the failing installation attempts. Again the exact message is needed.

Yes the forum registration is fussy; good that you did find a way through it.

#957 Re: Installation » [SOLVED] Devuan Chimaera gateway setup » 2021-09-25 02:36:02

That will need a slight revision to your ifupdown setup.

Firstly you may want to install hostapd and bridge-utils.

hostapd provides the software needed for running an access point. bridge-utils provides the software for combining interfaces (eth1 and wlan0) into a common network through a virtual "bridge" interface.

Note that hostapd gets "deployed" when installed, and like for dnsmasq, you'll need to disable that:

# service hostapd stop
# update-rc.d hostapd disable

The previous setup is now split up such that DHCP is provided on the bridge which is configured with eth1 and wlan0 as its ports. The new setup in /etc/network/interfaces.d/downlink.conf might be as follows:

# Virtual bridge interface with DHCP service
iface subnet inet static
    address 192.168.200.1/24
    bridge_ports none
    up /usr/sbin/dnsmasq -i subnet -a 192.168.200.1 -I lo -I wlan0 -I eth0 -I eth1 \
       -p 0 -K -D -N -b --dhcp-sequential-ip \
       --dhcp-option=3,192.168.200.1 \
       --dhcp-option=6,$DNSHOST \
       -F 192.168.200.2,192.168.200.254,255.255.255.0,192.168.200.255 \
       --dhcp-hostsfile=/var/run/subnet.dhcphosts
    down pkill -f 'dnsmasq -i subnet'

# The cable interface
iface eth1 inet manual
    up brctl addif subnet $IFACE

# The wireless interface
iface wlan0 inet manual
    hostapd /etc/hostapd/mywifi.conf
    up brctl addif subnet $IFACE

Then you need to configure your access point in /etc/hostapd/mywifi.conf perhaps as follows:

interface=wlan0
country_code=AU
hw_mode=g
channel=5
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
ssid=mywifi
wpa=2
wpa_passphrase=abadaba001133557799
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256

There are "millions" of options that may be set and varied; especially you will want to confirm or change ssid and wpa_passphrase. Look at /usr/share/doc/hostapd/examples/hostapd.conf for inspiration.

When it works, you bring it up with subnet first, then eth0 and then wlan0.

# ifup subnet
# ifup eth1
# ifup wlan0

Note that some people prefer to name the bridge as br0 whereas I like the more intentional naming smile

Also, note that the bridge interface, subnet, will use the MAC address of one of its ports. If that port interface is taken down, then that bridge will change its MAC address to that of the remaining port. This is a feature of bridge interfaces which sometimes causes confusion.

EDIT: corrected the subnet configuration which had bad copy-paste remnants that mentioned eth1 wrongly.

#958 Re: Other Issues » file system check failed but did not detect errors » 2021-09-24 04:43:37

If azura-dawn is your root LVM then, possibly, the initram lacks the lvm2 utilities? But those should have been added by the update-initramfs command, so it's a bit peculiar.

#959 Re: Installation » [SOLVED] Devuan Chimaera gateway setup » 2021-09-22 03:30:53

Setup for ipv4

  1. Enable forwarding for the kernel:

    # sysctl net.ipv4.ip_forward=1
  2. Add a masquerading rule to the kernel's networking:

    # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  3. Set up ifupdown configuration for eth1 using dnsmasq for DHCP.
     

    1. This involves the initial step of disabling its default deployment that you get when installing it, and then just use it for downlink DHCP service. Something like the folllowing:

      # sed 's/ENABLED=1/ENABLED=0/' -i /etc/dnsmasq/default
      # update-rc.d dnsmasq stop
      # update-rc.d dnsmasq disable
    2. Write a file /etc/network/interfaces.d/downlink.conf with the following, where you replace $DNSHOST with the ip address of your DNS server:

      iface eth1 inet static
      address 192.168.200.1/24
          up /usr/sbin/dnsmasq -i eth1 -a 192.168.200.1 -I lo -I wlan0 -I eth0 \
             -p 0 -K -D -N -b --dhcp-sequential-ip \
             --dhcp-option=3,192.168.200.1 \
             --dhcp-option=6,$DNSHOST \
             -F 192.168.200.2,192.168.200.254,255.255.255.0,192.168.200.255 \
             --dhcp-hostsfile=/var/run/eth1.dhcphosts
          down pkill -f 'dnsmasq -i eth1'

       

  4. Make sure your /etc/network/interfaces includes that configuration with e.g. a line:

    source /etc/network/interfaces.d/downlink.conf

    (or with the wildcard statement source /etc/network/interfaces.d/* that is a debian default)

  5. Bring up eth1 with that configuration

    # ifup eth1

    This will also start dnsmasq for serving IP addresses via DHCP on eth1, and it will also store the allocations in the file /var/run/eth1.dhcphosts. dnsmasq is killed when eth1 is deconfigured with ifdown or ifdown --force.

I think that would be all, but I do forget things now and then.

#960 Re: Installation » How to partition my disk ? » 2021-09-19 00:37:51

Élisabeth wrote:

My understanding was you have to use Expert install to partition the disk as suggested above.

Just for the sake of clarity: All partitioning choices, options and methods are available equally with "default install" and "expert install".

The "expert install" method merely offers a richer potential of confusion, and (admittedly) some few additional choice dialogues that pretty much everyone will chose the defaults for anyhow. Even those who would insist on using LILO as boot method can use the "default install" and then escape to the "expert install" level for the boot system installation step. If you necessarily need to use "expert install" you are one of a single-handed handful.

The labeling of "expert" for the "expert install" method is a misnomer because the expert would chose the default method almost always. Maybe it should better have been called the "unusual install" method.

#961 Re: Installation » How to partition my disk ? » 2021-09-18 21:31:10

@Élisabeth it appears you are using "Expert install" method and are skipping the "load components" step. (Otherwise you would have an ext4 formatting option).

May advice on that would be: Don't.

The plain "install" method works fine for the overwhelming majority of cases and it's only if you really insist on some special peculiarity during the installation procedure that you would use "Expert install". I know that some people feel good about running an "Expert install" even though their need for that is nil, but if you do, you will need to explicitly take all the steps that are needed (which presupposes knowing which they are).

Obviously I might be wrong in my guesswork and in that case you should just ignore me.

#962 Re: Other Issues » file system check failed but did not detect errors » 2021-09-14 23:12:36

One of the early steps in the boot sequence is to run fsck on the root file system, and that apparently has some difficulty, but doesn't result in stopping the boot-up. There might be log file(s) saved to /var/log/fsck/ with details. Otherwise it would be a good idea to firstly shut down and boot up using a live disk to run fsck manually to see what is happening and possible resolve it. Secondly boot up the machine again and if there's still the note, then you should force a rebuild of your initrd (which apparently have become incomplete in some way).

#963 Re: Hardware & System Configuration » [solved, add user to right group] Lasercutter and Lightburn » 2021-09-14 23:00:08

No, according to the log there is a serial link set up (over USB) on /dev/ttyUSB0, so the next is to point the software to that.

First, of course, you need to make sure that the software (user) has permission to read and write /dev/ttyUSB0.
The "professional" way for that would be to make sure the user is in the special user group for operating that device, while the "hobbyist" approach is to simply chmod a+rw /dev/ttyUSB0 and let any user (on that computer) do anything to it.

#964 Re: Installation » [SOLVED] USB image - Access Denied error » 2021-09-14 22:52:32

Élisabeth wrote:

Stupid question: why not proceed with my Debian USB inserted? I can boot Devuan and through the installation menu and make my choices. Do you think my  Devuan USB won't be suitable for the actual installation ?

Not stupid; yes, you should go ahead and try to install that way; whatever the outcome, it'll be an improvement smile

You will also have the backup path of just installing Debian and when that is up, return to installing Devuan.

#965 Re: Installation » [SOLVED] USB image - Access Denied error » 2021-09-14 10:48:20

Hmm. I'm not sure how then to verify.
Maybe, after doing dd, eject the USB and put it back in, while still in windows.
It should then contain two partitions; the first of some unknown format (format zero) and the second a FAT12 partition. If you mount that, it should have a folder named EFI.

Possibly you can use the diskpart command, then select the USB disk and use the sub command list partition.
https://docs.microsoft.com/en-us/window … s/diskpart

#966 Re: Installation » [SOLVED] USB image - Access Denied error » 2021-09-14 10:00:32

As discussed at https://wiki.archlinux.org/title/USB_fl … ion_medium using dd for windows you should probably use a od argument rather than of so as to tell the program to write to the whole drive; otherwise it merely writes to the first partition.
Thus, it may look like this:

dd if=devuan_chimaera_4.0.beta-20210906_amd64_netinstall.iso od=\\.\f

PS: once we get there, can I ask questions about partioning on the forum?

Yes, certainly.

#967 Re: Installation » [SOLVED] USB image - Access Denied error » 2021-09-14 09:33:25

sorry about editing your post.. must be tired...

Ok. so AnyBurn is no good, then. Possibly dd-windows? but you must make sure to select The Whole usb stick and not any of its partitions.. except that possibly dd-windows uses the name "partition0" for the whole disk (again I've picked that idea from my web searching)

#968 Re: Installation » [SOLVED] USB image - Access Denied error » 2021-09-13 22:42:45

Ok; afaict AnyBurn has the "Burn image file to disc" button to master a USB stick from an ISO file, and if you used that, then the USB stick is mastered correctly.

The next would be to get an overview of which boot options the UEFI startup code sees. Apparently there is a windows' program named bootcfg to use for that.
https://docs.microsoft.com/en-us/window … ons-in-efi
If I understand correctly, you would start an Administrator command line shell for running bootcfg, and (from the doc) the applicable command seems to be bootcfg query. You should try that with the mastered USB in place, and perhaps also with the mastered Debian USB in the secondary place.

Please drop the resulting output here for us to look at.

EDIT: then I saw that apparently bcdedit is a replacement bootcfg... so maybe you already posted something. Though in that post it only shows the windows boot entry, so maybe you will need to repeat that with the mastered USB in place. My random doc pointer for bcdedit is
https://docs.microsoft.com/en-us/window … ds/bcdedit

EDIT2:
and this one is useful for bocdedit /enum variants
https://docs.microsoft.com/en-us/window … edit--enum
.. perhaps a good list from

bcdedit /enum osloader

.. or maybe

bcdedit /enum all

#969 Re: Installation » [SOLVED] USB image - Access Denied error » 2021-09-13 13:37:59

@Élisabeth, the ISO file is supposed to be put onto a USB memory stick to reside from the physical block 0 and up on the USB. Copying onto a partition is not the right way.

To achieve that on windows seems unduly complicated but it should be possible, and in particular I believe dd-windows may be used for it. The important point is that the USB becomes an exact copy of the ISO from its block 0 up to whatever size the ISO is, and then the USB stick can have whatever on the blocks after that. (Somewhere I saw the suggestion that "the disk as a whole" is Partition0 with dd-windows)

The first partition on a disk starts some few blocks in and the first few blocks contain the partition table. The ISO file starts at block 0 and includes a partition table for its partition layout, which includes an EFI partition and a CDROM partition. All that must be put onto the USB memory stick from its block 0.

Note that when you "format the USB as FAT32" you actually create a single first partition on that USB, and then copy&paste just copies the ISO file to be a file on that partition. Doing that is not the right way. Again, just to have it repeated three times: you'll need to copy the ISO onto the USB stick as a whole to become the exact memory image of the USB stick from block 0 and up.

Ralph.

#970 Re: Installation » Could not install under UEFI with chimera netinstall » 2021-09-12 10:26:46

The ISO has a "dos" partition table that presents it as having two partitions:
1) first partition of type 0 spanning blocks 0-759807
2) second parition of type ef (=EFI) spanning blocks 4040-5511

Just the "normal" multi-boot set up.

Use "fdisk -l $iso" to review that ..
perhaps VBOX fails to see the partition table? Or that its  virtual UEFI implementation fails to see it?

#972 Re: Installation » Could not install under UEFI with chimera netinstall » 2021-09-12 09:17:39

1) Why doesn't it boot? What does happen on the attempt?

#973 Re: Installation » [SOLVED] USB image - Access Denied error » 2021-09-12 08:26:05

My web search lead to
https://www.cocosenor.com/articles/comp … aptop.html
where at least the first option seems quite safe to try.

EDIT: duly edited. Thanks @Camtaf.

#974 Re: Installation » Could not install under UEFI with chimera netinstall » 2021-09-10 13:09:05

Yes, the netinstall is supposed to work in UEFI mode, and there are many cases were it has done so.

One of the issues that may come up with the grub installation step is that for some reason the "efivars" have got filled up with some kind of dump files. This can be handled by the following slight manual hands-on just before selecting init system:

  1. Shift to virtual terminal 2 by pressing Ctrl-Alt-F2, and push Enter.

  2. Check if this might be the problem by command: ls /sys/firmware/efi/efivars/dump-*
    If that results with lots of output, then continue with step 3;
    if there is no such file, then this is not your problem, so skip step 3.

  3. Remove the dump files with command: rm /sys/firmware/efi/efivars/dump-*

  4. Return back to installer at virtual terminal 1 by pressing Ctrl-Alt-F1, and continue.

#975 Re: Other Issues » [SOLVED] ext4 mounted as ext2 - how much damage is being done? » 2021-09-08 13:45:56

"Use the source, Luke" wink

Yes, one could say, without imparting disrespect on any particular developers, that sometimes "fondness of gilding" strays from "diligent QA standard"... luckily it's scripts and not binaries.

Board footer

Forum Software