The officially official Devuan Forum!

You are not logged in.

#2202 Re: Documentation » LVM and/or RAID with refractainstaller » 2018-08-19 20:03:02

LVM on RAID1

Partition disks as in the first post.

mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
pvcreate /dev/md0
vgcreate vol0 /dev/md0
lvcreate -L 5G vol0 -n lvroot1
lvcreate -l +100%FREE vol0 -n lvhome2

Run refractainstaller
Choose a partition for the operating system:  /dev/mapper/vol0-lvroot1
Choose a partition for /home: /dev/mapper/vol0-lvhome2

At pause, before installing bootloader
go to another vt and run:

chroot /target
mdadm --detail --scan /dev/md0 >> /etc/mdadm/mdadm.conf
update-initramfs -u
exit

Proceed with installer. (install GRUB)

#2203 Re: Documentation » LVM and/or RAID with refractainstaller » 2018-08-19 19:36:55

INSTALL TO LVM

Create the physical volume and volume group.
You can use a whole disk or you can use a partition. This example uses a whole disk.

pvcreate /dev/sda
pvscan  # or pvdisplay  # This is just to see what you did.
vgcreate vol0 /dev/sda
vgscan # or vgdisplay

Create the logical volumes (the partition scheme for your filesystem).

The next commands will create a 25G partition named lvroot and a second partition that uses the rest of the space, named lvhome.

lvcreate -L 25G vol0 -n lvroot
lvcreate -l +100%FREE vol0 -n lvhome

Run refractainstaller.
Choose a partition for the operating system:  /dev/mapper/vol0-lvroot
Choose a partition for /home: /dev/mapper/vol0-lvhome

Note: When the installer asks if you want the partition encrypted, you could say yes, but you will have to enter a password for each encrypted partition. Also, the encrypted root and home partitions will be named /dev/mapper/root_fs and /dev/mapper/home_fs in /etc/fstab.

When the installer is finished, remove the live media and reboot.

NEXT: LVM on RAID1

#2204 Documentation » LVM and/or RAID with refractainstaller » 2018-08-19 19:36:29

fsmithred
Replies: 3

The cli version of refractainstaller has a couple of characteristics that make it possible to use it in non-standard ways.
1. You have to type in the device name when choosing partitions.
2. The installer pauses before installing the bootloader. This allows you to chroot the installed system to make changes manually.

While lvm and raid are not explicitly supported by the installer, it is possible to do either or both. Here are some examples. These examples use /dev/sda and /dev/sdb. You must change that if you use different drives.

In all cases, I installed the grub bootloader to the mbr of /dev/sda.

Important note regarding encryption: If you encrypt a raid array or lvm and your root partition or home partition is contained within that volume, tell the installer "no" when it asks if you want to encrypt that partition.

INSTALL TO RAID1 (mirrored)

Partitioning
There are several ways to do this. You can create the array from whole disks (/dev/sda and /dev/sdb) or you can create it from two partitions (/dev/sda1 and /dev/sdb1). If you use whole disks, there will be no room at the beginning of the disk for grub, and you will need another disk for the bootloader. Also, if you use whole disks, you can then partition the array, and you will use partitions like /dev/md0p1, /dev/md0p2 during the installation.

For this example, partition two disks with at least one partition on each. Make them the same size. You can use either gpt or msdos partition tables. If you have uefi hardware, you need an efi partition somewhere. We'll install the whole system into one partition.

(Note: gpt with bios boot requires an unformatted partition, at least 1MB in size with bios_grub flag, or ef02)

(Note 2: refractainstaller can only recognize separate /boot, /home and / (root) partitions. There's a way to have more, but I haven't tested it with this. See /etc/refractainstaller.conf.)

(Note 3: refractainstaller asks for a partition and then tests to see that it ends in a non-zero digit. That means if you call your array /dev/md0 and try to use that as a single partition, it will fail. Call it /dev/md1 instead.

Create the raid (use the partitions, not the whole device.)

mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
cat /proc/mdstat   # this is just to let you see that it worked

Run refractainstaller (please use the -d option for a better error log)

refractainstaller -d

The installer will ask where to put the operating system. Enter /dev/md1
(Note: we only made one partition, so don't enter anything for /boot or /home)
The installer will ask if you want the partition encrypted. You can say yes if you want, and it will work. (You don't need a separate /boot partition. See the notes on full-disk encryption at the end of  this post.)
The installer will pause when the installed system is ready for chroot. That pause looks something like this:

The installed system is ready for chroot. (proc, sys, dev are mounted)
    If you want, you may work in another virtual terminal.
    Make a selection when you are ready to proceed.

    ${bios_boot_warning}

    Choices (enter number)
        1 or 2)  (Install bootloader or copy files and install bootloader)
        3) Continue without a bootloader.
        4) Abort the installation and exit.

Do not choose anything yet. Go to another console or another tab in your terminal and get root. Then run the following commands.

chroot /target
mdadm --detail --scan /dev/md1 >> /etc/mdadm/mdadm.conf
update-initramfs -u
exit

Return to the console or terminal where the installer is running, and make the appropriate choice. (usually, you want to install a bootloader.) Continue until the installer is finished. Reboot (remember to remove the live media).

References:
https://www.digitalocean.com/community/ … untu-16-04
https://dev1galaxy.org/viewtopic.php?pid=10954#p10954  (Thanks for trying it first, stroudmw.)
https://www.howtoforge.com/linux_lvm
https://wiki.archlinux.org/index.php/LVM
https://wiki.archlinux.org/index.php/Dm … VM_on_LUKS

Next: LVM

#2205 Re: Installation » Installation without Session management and policykit backends » 2018-08-19 16:04:39

Thanks for the reply. Your English is good enough that I think I understand everything you said. And I agree with you.

a lot of software was created (mainly by freedesktop.org), in my opinion, very complicated and difficult to manage.

You're too polite! I won't put my version of that statment in print, because it's not safe for work.

I've spent a good part of the morning looking at dependencies of different display managers and session managers in jessie and ascii. It's a big rat's nest. It looks like the problem comes from a change in the dependencies of libpolkit-gobject-1-0 and libpolkit-backend-1-0.

I will discuss this with the appropriate devs, and we should be able to sort it out for beowulf.

#2206 Re: Installation » Installation without Session management and policykit backends » 2018-08-18 15:20:48

A simple solution would be to move those dependencies to Recommends. Then anyone who wanted a minimalist xfce could install without recommends. (Many of them already do this.)

campus, can you list the functions that are lost by installing without consolekit?

#2207 Re: Desktop and Multimedia » VLC and Kaffeine won't install on Ascii [SOLVED] » 2018-08-17 17:35:39

Once you get your sources straightened out, just install kaffeine. You should not need to tell it to install vlc - the package manager will pull in any dependencies automatically.

#2208 Re: Forum Feedback » Yandex [solved] » 2018-08-17 17:32:46

Something from this list probably does what you want.

$ apt-cache search yandex
rclone - rsync for commercial cloud storage
translate-shell - Command-line translator using Google Translate, etc.
git-annex-remote-rclone - rclone-based git annex special remote
youtube-dl - downloader of videos from YouTube and other sites

#2209 Re: Hardware & System Configuration » usb's not auto mounting » 2018-08-17 17:24:47

The devuanized versions of 0.105-15 are in jessie-security.

apt-get -t jessie-security install policykit-1

#2210 Re: Hardware & System Configuration » Microcode to fight Spectre and Meltdown cpu flaws » 2018-08-17 11:30:44

As explained above, you need to fix your sources.list.

This is wrong:

deb http://gb.deb.devuan.org/merged/ ascii/non-free main

This is right:

deb http://gb.deb.devuan.org/merged/ ascii main contrib non-free

Make similar changes in the other lines and update the cache again.

Edit: Ah, you posted while I was typing.

The microcode will be inserted into the initrd when you install the package. I think you can have both the amd and intel packages installed, but only the one for your processor will be in the initrd.

#2211 Re: Devuan Derivatives » Refracta no-dbus experiment » 2018-08-16 16:11:22

Gentoo can be completely no-dbus because you get to compile ALL your packages. (Anyone is welcome to recompile all the debian/devuan packages that require libdbus*)

#2212 Re: Other Issues » Possible missing firmware /lib/firmware/nvidia » 2018-08-16 16:06:21

The messages are letting you know that some of your hardware can use non-free firmware. You would need to enable contrib and non-free repos, update, and then install firmware-misc-nonfree if you wanted it. I don't know if it will make a difference in how your vid card performs.

#2213 Re: Devuan Derivatives » Refracta no-dbus experiment » 2018-08-16 14:53:23

Refracta-nodbus has libdbus-1-3 and libdbus-glib-1-2. I don't think they do anything except satisfy some package dependencies. A search for 'dbus' in /var/log/* shows some errors in the refractainstaller log and in  Xorg.0.log.

refractainstaller_error.log:

D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.

Xorg.0.log:

(EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)

I'm not sure what question I'm supposed to answer from stevepusser's post.
This? libgtk-3-dev is installable in ascii. I tried to install it, but I already have the latest version.

#2214 Re: Installation » Installation without Session management and policykit backends » 2018-08-16 14:08:52

Sorry about that. I did read all your posts, but I didn't re-read them every time I returned.

Anyway, I did get xfce running without any *kits and without xfce4-session in ascii. There may be better ways to do this, but this is mostly working. I doubt that there will be any changes in xfce4-session in ascii, but it might be possible for beowulf. If you start testing beowulf, you could file a bug report against xfce4-session to get things moving.

I started with a refracta-nox install in virtualbox. (standard system utilities plus some extras, no X)
Added the following packages (without Recommends):

xorg xinit xserver-xorg-legacy xfwm4 xfwm4-themes xfconf xfce4-panel xfce4-settings xfdesktop4 xfce4-terminal thunar thunar-volman

Added needs_root_rights=yes to /etc/X11/Xwrapper.config

Put the following (exactly as posted) in /etc/X11/Xsession.d/31nokit

xfwm4 &
xfce4-panel &
xfdesktop

Start the xsession as user with startx /etc/X11/Xsession

To end the xsession, I've been dropping to console and running 'init 1' as root. I'm sure there are better ways to do this, but this is convenient for testing.

#2215 Re: Other Issues » How can i get rar in devuan? [solved] » 2018-08-12 19:44:43

rar/unrar is in non-free. You would need to add non-free to your sources.list to install it.

#2216 Re: Off-topic » [SOLVED] refractainstaller: confused about sudo options » 2018-08-12 19:40:09

The wording in the cli installer is better than in the graphical.

	1) Disable sudo (recommended)
	2) Permit sudo for new user (and keep root account.)
	3) Use sudo as default for new user (and disable root account.)
	4) Use sudo only for shutdown (and keep root account.)

#2 and #3 put the primary user in the sudo group, so all admin commands are available.
#4 adds a file to /etc/sudoers.d/ to let the user reboot, shutdown, suspend or hibernate.

Edit: I just made a note to myself to fix the wording in the graphical installer.

#2217 Re: Devuan » new desktop-live iso » 2018-08-12 19:30:48

There is a point in the installer, right before it installs the bootloader, where you could chroot into the installed system and make changes (such as installing openrc.) I haven't tried it, but it should work.

#2218 Re: Installation » I can not install the new Devuan(2) » 2018-08-12 18:58:38

At the beginning of the install, when the installer asks if you want to use sudo or su, choose sudo, and you won't have to enter the root password to start the installation process. This only gets used to start the installer.

Later in the install, it will ask if you want to use sudo or a root account for the installed system. Choose whichever you want.

An alternate solution would be to use the command-line installer. From a root terminal, run refractainstaller
or from a user's terminal, run sudo refractainstaller

#2219 Re: Installation » Installation without Session management and policykit backends » 2018-08-12 18:51:50

Since I do not know, nor did I find anywhere else, another method to start the desktop, I wrote that the only solution possible is to modify the "xfce4-session" package.

The command you're looking for is startx. That's a generic command that will start an xsession with your default window manager. In this case, xfwm. You'd probably need to start the panel or other parts of xfce separately. I don't know exactly what limitations there would be, and I've been mostly away from the computer and unable to try it myself.

I can second the recommendation for openbox. I use it in some installations along with lxpanel. (tint2 is another popular panel.)

#2220 Re: Installation » Installation without Session management and policykit backends » 2018-08-10 00:03:24

The desktop packages I'm interested in (XFCE4) are built so that a Session manager is always installed.

You would probably have better luck if you stopped trying to install xfce4, which is a metapackage that does nothing but pull in other packages such as xfce4-session, which you do not want. Install the parts of xfce that don't pull in the session manager, as I described earlier in this thread.

#2221 Re: Installation » Latest devuan jessie update causing authentication problems » 2018-08-01 14:49:05

VH,

You need to downgrade the associated libraries, too. You can find those packages in the repo or do it as described here -
https://dev1galaxy.org/viewtopic.php?pid=11042#p11042

Note: you should probably use pkgmaster instead of packages in the links I provided. I'll go back and change the links I posted.

Edit: I previously supplied the link for one of the libraries instead of the main package.

If you're downloading the packages, select the correct version and architecture of the files in this directory. (0.105-9+devuan1)
http://pkgmaster.devuan.org/devuan/pool … licykit-1/

#2222 Re: Installation » MIYO "install" button seems to do nothing » 2018-07-31 18:07:07

Those commands for chroot don't look right. Does it really work after that?

I'd do it this way...

Boot live CD, then get a root terminal.

mount /dev/sda1 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt
grub-install /dev/sda
update-grub
exit

#2223 Re: Installation » Latest devuan jessie update causing authentication problems » 2018-07-31 17:04:10

The problem is that the newer version of policykit-1 has not been devuanized yet.

$ apt-cache policy policykit-1
policykit-1:
  Installed: 0.105-9+devuan1
  Candidate: 0.105-15~deb8u3

You might be able to fix it by reverting to the older versions of policykit-1 and associated libs.

dpkg -i /var/cache/apt/archives/<filename>

If you don't have a copy of the packages locally, you can download them from the repo and install with 'dpkg -i <filename>'
Select the correct version and architecture of the files in this directory. (0.105-9+devuan1)
http://pkgmaster.devuan.org/devuan/pool … licykit-1/

Edit: I filed a bug report against policykit-1 in jessie.

#2224 Re: Installation » MIYO "install" button seems to do nothing » 2018-07-31 14:52:31

Plan C. (Unless you answer "no" to any of my previous questions.)

Reinstall, and when the installer gets to the pause before it installs the bootloader, open a root terminal and run the following commands:

chroot /target
grub-install /dev/sda
update-grub
exit

Then go back to the installer window and proceed (it might say "Proceed without a bootloader" but that's ok, because you just did it manually.)

If you see a button labeled "Chroot" when the installer pauses, you can use that, and it will open a terminal in the chroot. Then you can just run the grub commands and exit.

#2225 Re: Other Issues » [SOLVED] Upgrade from Jessie to Ascii: apt thinks I'm using "testing" » 2018-07-31 14:45:38

There are new mirrors you should use. Change sg.mirror.devuan.org to deb.devuan.org (or maybe sg.deb.devuan.org) in sources.list, then update.

Board footer

Forum Software