The officially official Devuan Forum!

You are not logged in.

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

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

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

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

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

#956 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).

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

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

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

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

#961 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)

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

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

#964 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?

#966 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?

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

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

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

#970 Re: Other Issues » [SOLVED] ext4 mounted as ext2 - how much damage is being done? » 2021-09-08 04:04:28

Did you already try with

ROOTFSTYPE=ext4

in /etc/initramfs-tools/initramfs.conf ?

#971 Re: Forum Feedback » Let's make this forum multilingual! (Calling for language authors) » 2021-09-04 08:33:19

Thanks, and there's now a new setup for forum translations, via a git project https://git.devuan.org/devuan/forum-lang

To make a new or existing language:

  1. Fork the project, typically as a personal project at the git store. (*)

  2. For a new language: copy the whole English directory tree into a new sibling directory tree that is named by the target language in that language.

  3. Go through the files and replace the phrase part for each mapping as well as text portions in the mail templates. This is the actual authoring work. (**)

  4. Submit a "pull request" for inclusion into the devuan/forum-lang project. (***)

  5. Rest.

(*) It is feasible to clone into a personal workspace elsewhere than the git store as long as that workspace later is available to service the eventual pull request. But it's significantly less effort for us to merge it if you rather use the fork button on the web interface and make it a personal project on Devuan's git store.

(**) It is of course important to leave everything other than the phrase part as is.

(***) Again, it's easiest for us if you use the pull request button on web interface for submitting the pull request.

Thanks.

#972 Re: Forum Feedback » Let's make this forum multilingual! (Calling for language authors) » 2021-09-04 01:46:40

Ok. My fault. I've let my team of developers drag their feet about getting forum translations installed and now there is a small pile waiting. I'm now reasonably hopeful though, that by having a big bowl of peanuts as bounty, they will succeed in making forum translation available for distributed maintenance in a near future.

#973 Re: Installation » Someone Removed My Bug Report » 2021-09-02 20:14:51

Your @Jackoline account was invalidated on your own request. Welcome back.

#974 Re: Installation » Make "fresh" copy Jessie iso. » 2021-08-30 23:55:24

@vgal, the filename attribute of the Packages file(s) contain the relative pathname to the packages, into the "pool" directory tree, which as you point out, has the subdirectories DEBIAN and DEVUAN, and below that, you find the further relative path into the publication servers' tree for the .deb file.

It does seem like apt-ftparchive does something else than reproduce the pool path from the associated Packages files, which I guess is in your step "# generate "Packages" file". Specifically, if you locate the associated Packages file snippet for the package concerned, either in the original-cd Packages file(s), or in your local /var/lib/apt/lists/*Packages, you will find the correct pool pathname for the package. Alternatively, you add a step to change the Packages files generated by apt-ftparchive by replacing all filename attributes with the correct pool/ relative pathnames as found in that pool.

#975 Re: Devuan » desktop-live chimaera beta isos » 2021-08-27 23:05:39

The note above was for the desktop-live installer that you find at the path variation devuan_chimaera/desktop-live/ and then the file name pattern is devuan_chimaera_4.0.beta-2021-08-27_xxxxxx.iso.

The devuan_chimaera/installer-iso/ collection will find themselves updated into isos of the pattern devuan_chimaera_4.0.beta-20210830_xxxxxx.iso, with and for the desktop-base improvement, at some near future.

Board footer

Forum Software