The officially official Devuan Forum!

You are not logged in.

#1951 Re: Installation » Ascii on SSD with LVM and partly crypted » 2018-09-18 15:58:05

Aha - thats not exactly what I wanted to achieve. My idea was to get the hidden files of /home on the SSD and the other ones on the HD. So yes, /home will be spread, but I would like to have it in a way, that the often accessed conf-files are on the speedy SSD.

That could possibly be accomplished with some creative symlinking.

I would like to have everything except /home on the SSD and /home exclusively on the spinning drive. To make that clear - I know during the installation process I have to setup a /home on the SSD as well. But this one I will not use further. I will try to use the "old" hidden-files from the spinning drive after bulk installation of user-sw to the SSD. If this does not work I will move the hidde-files of the fake /home on the SSD to the spinning drive. Or do I run into trouble here? There might be some manual work, but I think that is not so painful like the installer-partition part.

I think you can get away with two or three partitions. Root filesystem and optional /boot partition on the ssd and /home on the spinning disk. Install everything to the ssd first, with /home as part of the root partition. Then manually edit fstab (and crypttab, I guess) to use the spinning disk as home. Move the new /home to /home.bak or something, so you keep the new config files in case you need them. And maybe make a backup copy of the old config files, in case they get lost or changed. Using the old config files with the new system may or may not work properly in all cases. It'll be trial and error until you get everything the way you want.

I forgot about swap. You want it encrypted. You could either use a swapfile inside an encrypted root partition, or you could make a new lvm on the ssd that includes the swap.

#1952 Re: Desktop and Multimedia » [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning » 2018-09-18 14:27:38

I doubt that newer versions of lightdm will be different. I think the deps are the same as the ascii version. (I know it still wants consolekit.)

#1953 Re: Installation » Ascii on SSD with LVM and partly crypted » 2018-09-18 14:19:53

Caveat and disclaimer: I hate the debian-installer enough that I maintain my own installer.

Take a look at my post with examples of raid/lvm/luks with refractainstaller. I don't know how to do such a complex setup with d-i, but I'm pretty sure you could do it similar to one or more of my examples.
https://dev1galaxy.org/viewtopic.php?id=2323

If you want your home spread over both disks, then you need to have both disks (or at least part of each disk) included in the volume group (or in a raid array). Then data will be written to both disks (striped). That may increase performance.

If you then want /var, /tmp and swap to be only on the spinning disk, they need to be in a separate lvm or raid array (or not in the volume that includes /home.) The same would be true if you wanted them to only be on the ssd. If you're ok with them being spread over both disks like your home, then one volume group will suffice.

#1954 Re: Installation » [Solved] non-free firmware: desktop-live/installer-iso » 2018-09-18 13:29:50

Most of the available wireless firmware packages are installed in the desktop-live. The script to remove them is in /usr/local/bin. Here's the list of packages it removes.  Feel free to comment out any lines for packages you want to keep. I see two that are not wireless firmware, and I commented them as an example.

The installer isos have firmware in the /firmware directory, so it can be included in the installation if needed. In case you mess up and accidentally remove a firmware package you want to keep, the packages are also in /firmware in the live isos.

apt-get --purge --yes remove \
#	firmware-amd-graphics \
	firmware-atheros \
	firmware-bnx2 \
	firmware-bnx2x \
	firmware-brcm80211 \
	firmware-intelwimax \
	firmware-iwlwifi \
	firmware-libertas \
#	firmware-linux-nonfree \
	firmware-myricom \
	firmware-netxen \
	firmware-qlogic \
	firmware-realtek \
	firmware-ti-connectivity \
	firmware-zd1211

#1955 Re: Installation » Ascii on SSD with LVM and partly crypted » 2018-09-17 12:44:40

If your lvm is inside an encrypted partition, you can still change the sizes of the logical partitions inside it. This way, everything is encrypted and you enter one password for the whole system. If you want to make the lvm bigger than the physical partition that contains it, you would add other drives/partitions to the volume group and then extend the logical partitions within.

If you're concerned about excessive writes to the ssd, then you probably want to keep it separate from the existing lvm, so it doesn't get used for any of your more active partitions. (When you add drives to a volume group, the combined space is seen as a single container, and data gets written to all parts of it.)

#1956 Re: Desktop and Multimedia » [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning » 2018-09-16 22:12:18

I found three ways to get shutdown and reboot working at the login screen. These all count as workarounds, not a fix.

1. Edit /etc/lightdm/lightdm.conf and change the greeter-user to root. That's probably a bad idea for security reasons.

2. Replace lightdm with lxdm (without recommends) and with the elogind backend/gobject libs, without consolekit. I did need to add libck-connector0.

3. Install consolekit (with lightdm, not lxdm). The approprate libraries will replace the ones for elogind, but elogind will still be installed. Reboot and shutdown will work from the login screen, but from the desktop, they'll just log you out.

Oh, wait. If you run 'pam-auth-update' and uncheck the box for elogind, then shutdown and reboot work in both desktop and login screen. (reboot or cycle through init 1 to get it to change.) This (#3) might actually be working.

Every time I've gone in to mess with polkit stuff, I've been disappointed with the results.

#1957 Re: Installation » Ascii on SSD with LVM and partly crypted » 2018-09-16 12:53:43

I believe it's possible to do what you want, but you might need to do some of it manually. I've done encrypted lvm installs before, but I've never done it with an existing lvm that had data on it. See these two threads (and some of the links in them):
https://dev1galaxy.org/viewtopic.php?id=674
https://dev1galaxy.org/viewtopic.php?id=2323

The procedure in the debian-installer for encrypted lvm is not at all intuitive. It goes something like this:
Make an encrypted volume from a partition.
Use the encrypted volume for lvm.
Create the logical volumes inside the lvm and assign mountpoints and filesystems for them.

For reference, here's a video of making an encrypted partition, without lvm. The "4" on the end of the file name is because it took me four attempts to get it right, even though I've done it many times. This will give you a sense of the logic used in the installer.
http://distro.ibiblio.org/refracta/misc … rypt-4.ogv

#1958 Re: Other Issues » VPN client stuck in a "checking DNS" connection loop » 2018-09-16 10:41:59

The cinnamon desktop uses connman instead of wicd. Connman and network-manager support vpn. Wicd does not.

#1959 Re: Installation » I can not install the new Devuan(2) » 2018-09-15 11:13:38

At the boot menu, press 'e' to edit the boot command. Add the word, nomodeset, to the linux line. Then ctrl-x to boot. That usually fixes the black screen.

#1960 Re: Devuan Derivatives » New, new Refracta isos » 2018-09-14 22:56:21

Thanks. I hadn't noticed that. I think I created the extra .desktop file for lxdm in case it ever gets an update - the default is to only show in lxde, so if it ever happens, there will still be one entry. There are two for synaptic, too, in case pkexec doesn't work for you. (I'm beginning to think pkexec has a mind of its own and decides things randomly.)

#1961 Re: Desktop and Multimedia » [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning » 2018-09-14 22:42:49

I tried it again, this time pulling cinnamon from ascii. It seems lightdm wants consolekit, but there's a way around it. And you're right - the power buttons in lightdm don't work, but shutdown/reboot/logout all work from the desktop. I did not install the cinnamon metapackage. I installed what you showed and then had to add cinnamon-core. Something may be missing. It all works when you choose cinnamon from the tasksel window in the installer. Maybe looking at the list produced by aptitude -s install task-cinnamon-desktop would provide the answer. (I'm looking at it now, it's long, and I don't see anything related to consolekit, policykit or elogind.)

Anyway, here's what I did.

# apt-get --no-install-recommends install elogind libpam-elogind
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libelogind0
Recommended packages:
  policykit-1
The following NEW packages will be installed:
  elogind libelogind0 libpam-elogind
0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
# apt-get --no-install-recommends install lightdm
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  liblightdm-gobject-1-0 libxklavier16 lightdm-gtk-greeter
Suggested packages:
  iso-codes accountsservice upower
Recommended packages:
  desktop-base gnome-themes-standard policykit-1
The following NEW packages will be installed:
  liblightdm-gobject-1-0 libxklavier16 lightdm lightdm-gtk-greeter
0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
]# apt-get --no-install-recommends install libpolkit-gobject-1-0-elogind libpolkit-backend-1-0-elogind
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libpolkit-backend-elogind-1-0 libpolkit-gobject-1-0
  libpolkit-gobject-elogind-1-0
The following NEW packages will be installed:
  libpolkit-backend-1-0-elogind libpolkit-backend-elogind-1-0
  libpolkit-gobject-1-0 libpolkit-gobject-1-0-elogind
  libpolkit-gobject-elogind-1-0
0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
# apt-get --no-install-recommends install cinnamon-session cinnamon-control-center cinnamon-settings-daemon
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  accountsservice apg cinnamon-control-center-data cinnamon-desktop-data
  cinnamon-session-common dbus-x11 gir1.2-cvc-1.0 iso-codes
  libaccountsservice0 libcinnamon-control-center1 libcinnamon-desktop4
  libcinnamon-menu-3-0 libcvc0 libgnomekbd-common libgnomekbd8
  libimobiledevice6 libmm-glib0 libnm-glib-vpn1 libnm-glib4 libnm-gtk0
  libnm-util2 libplist3 libpulse-mainloop-glib0 libupower-glib1
  libupower-glib3 libusbmuxd4 upower
Suggested packages:
  gnome-control-center gstreamer1.0-pulseaudio libcanberra-gtk-module
  cinnamon-screensaver isoquery libusbmuxd-tools
Recommended packages:
  libcanberra-pulse mesa-utils mousetweaks policykit-1-gnome pulseaudio hwdata
  usbmuxd modemmanager policykit-1
The following NEW packages will be installed:
  accountsservice apg cinnamon-control-center cinnamon-control-center-data
  cinnamon-desktop-data cinnamon-session cinnamon-session-common
  cinnamon-settings-daemon dbus-x11 gir1.2-cvc-1.0 iso-codes
  libaccountsservice0 libcinnamon-control-center1 libcinnamon-desktop4
  libcinnamon-menu-3-0 libcvc0 libgnomekbd-common libgnomekbd8
  libimobiledevice6 libmm-glib0 libnm-glib-vpn1 libnm-glib4 libnm-gtk0
  libnm-util2 libplist3 libpulse-mainloop-glib0 libupower-glib1
  libupower-glib3 libusbmuxd4 upower
0 upgraded, 30 newly installed, 0 to remove and 5 not upgraded.

I could log in, but that wasn't enough to get to the desktop, so I installed cinnamon-core. A lot more got installed here than what I'm showing, but no consolekit. I can now get to the desktop, and it seems to be working.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  at-spi2-core caribou cinnamon cinnamon-common cinnamon-screensaver cjs
  cups-pk-helper darkpurpy-icon-theme desktop-base dh-python dmz-cursor-theme
  gawk gir1.2-accountsservice-1.0 gir1.2-atspi-2.0 gir1.2-caribou-1.0
  gir1.2-cinnamondesktop-3.0 gir1.2-clutter-1.0 gir1.2-cmenu-3.0
  gir1.2-cogl-1.0 gir1.2-coglpango-1.0 gir1.2-gdesktopenums-3.0
<snip>

#1962 Re: Desktop and Multimedia » [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning » 2018-09-14 10:33:11

It looks like libpam-ck-connector is what's pulling in consolekit. But it's only a recommended package, not a dependency. Try installing the cinnamon packages without recommends, and you should be able to do it without consolekit.

#1963 Re: Installation » Firefox 60.2.0esr - Rollback » 2018-09-14 03:12:55

Yes, you can just download the package and install it. You might already have a copy of the package in /var/cache/apt/archives/.

#1964 Re: Desktop and Multimedia » [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning » 2018-09-14 03:11:14

I think if you have elogind and libpam-elogind installed first, nothing will pull in consolekit. And you should be safe pulling in parts of cinnamon to get only what you want. That's a common way to have a leaner desktop, regardless of which DE you're using.

#1965 Re: Desktop and Multimedia » [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning » 2018-09-12 15:59:39

If you want to install a minimal system, you could use one of the installer isos (not the live) and when you get to the tasksel window, un-check everything except "Standard system utilitites". Then you can add xorg and whatever desktop stuff you want after you boot into the new system.

If you want to start with the desktop-live iso, I suppose you could drop to console and uninstall the desktop stuff before running the cli installer. I've never tried that, but I think it would work.

#1966 Re: Devuan Derivatives » New, new Refracta isos » 2018-09-12 15:44:11

One more time...

beta3: https://sourceforge.net/projects/refrac … s/testing/

2018-09-12 New isos: xfce4, amd64 and i386
    - Fixed/updated accessibility theme.
    - Geany replaces medit.
    - Added xsane, sane-utils, libsane-extras, synaptic package manager.
    - Added some thunar custom actions.
    - Fixed installer help.
    - Added netdev and scanner to default user groups.

Synaptic starts without authentication, but that only seems to be for the primary user. It wouldn't start for a second user, even when the second user started synaptic-pkexec from terminal and entered the root password when requested. You can still start it from a terminal as root by running 'synaptic'. (Without the pkexec part.)

Tell me what's broken so I can fix it and be done with ascii. I want to start working on beowulf.

#1967 Re: Installation » Can Beowulf be used with kde now? » 2018-09-12 14:39:56

Beowulf isn't really ready for use yet, but it is possible to use it if you pin some packages to ascii versions. See this thread: https://dev1galaxy.org/viewtopic.php?id=2301

You could be the first to try it with kde. If you do, please let us know how it goes.

#1968 Re: Other Issues » polkit not available in Beowulf? » 2018-09-10 19:02:04

It's not in ascii-backports. You have to use policykit-1 from ascii.

Add ascii main repo, update, then apt-get -t ascii install policykit-1 or if for some reason that doesn't work, specify the version: apt-get install policykit-1=0.105-18+devuan2.11

You'll probably have to do the same with the libpolkit packages if you're forcing a downgrade from the buster/beowulf version.

#1969 Re: Desktop and Multimedia » [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning » 2018-09-10 10:54:28

I managed to install cinnamon from beowulf yesterday, but I can't tell you exactly how I did it. Basically, I installed from desktop-live, added beowulf to sources, removed xfce and slim a couple of times, installed cinnamon a couple of times (without recommends), installed lightdm and had to remove it and install libpam-elogind first, then I could have lightdm without consolekit...

Power buttons are working. I didn't try mounting removable drives. Here are some suggestions for you:

Use codenames in your sources.list. (beowulf/ceres instead of testing/unstable)

Install the devuanized policykit-1 (0.105-18+devuan2.11) and the missing libpolkit-backend (same version)

I got an error about some glib package that needed to be installed because of the newer libc6 but couldn't be installed because it needed a newer kernel. That's when I realized that libc6 was from beowulf. This is where mixing stable and testing can get ugly. You may run into some difficult conflicts with libraries.

In one of your pastes, I saw nm-applet and wicd mentioned. (.xsession-errors, I think.) I got rid of anything network-managy or wicd and installed connman, because that's the default when you install cinnamon from the tasksel window in the installer. Either way, you should pick one package to manage network connections, so they don't fight with each other.

For reference, here's a recent account of another trail-blazer who upgraded ascii to beowulf -
https://dev1galaxy.org/viewtopic.php?id=2301

#1970 Re: Other Issues » downloaded .debs have url escape code in name?! [SOLVED] » 2018-09-09 23:14:42

They look like that in /var/cache/apt/archives, too. I always assumed it was normal.

#1971 Re: Desktop and Multimedia » [Solved] Cinnamon or Gnome 3 with Devuan ASCII with apt-pinning » 2018-09-09 23:12:26

Post the output of dpkg -l | egrep "consolekit|elogind|libpam|policykit|polkit

Also for apt-cache policy libc6

#1972 Re: DIY » Porting Tails OS to Devuan / Disclosure & Discussion Thread » 2018-09-07 21:31:16

I can think of a couple ways to approach this. If everything needed to make Tails is in the debian repos, then it's available in devuan, too. Start with a minimal install, either on hardware or a VM, then add what you want, then make a live iso (for example, by using refractasnapshot.)

The other way would be to install Tails to hardware or virtual disk, upgrade it to devuan, and again, make a live iso with refractasnapshot. I don't think Tails includes an installer, but you could install refractainstaller and install from the live session.

#1973 Re: Installation » Services start issue » 2018-09-03 13:24:58

Any time you create a user, there is a corresponding group of the same name created, and that is the primary group for the user. This is configured in /etc/adduser.conf. (I think if you add your user with 'useradd' instead of 'adduser' you won't get that behavior and will have to define group, shell, home and whatever else yourself.) Sudo will not be confused by this.

The % before sudo in /etc/sudoers is to identify sudo as a group. Groups are prefaced with %. (See man sudoers)

I just want the user to be able to use sudo for some (inocuous) commands
The rest, run with su.

Then get your user out of the sudo group, and if you want more than shutdown commands available, add those other commands to sudoers.d/user_shutdown. (The name is just a name - what's inside the file determines what it does.)
deluser groucho sudo will remove the user groucho from the sudo group. If you want the user to enter a password for sudo, then remove NOPASSWD: from the line in user_shutdown.

I don't know why smartmontools won't start from command line, but I'm sure there's a good reason for it. You can still use smartctl on the command line - it doesn't need to be running as a service for that. If you want it to run tests automatically and/or notify you by email if there's a problem, then you need to turn it on in /etc/default/smartmontools and configure /etc/smartd.conf to do what you want.

Back around 2000, you were probably using ext2 filesystems, which are not journaled and take a lot longer to do a filesystem check. Be glad you're not seeing those messages. The filesystem is being checked at boot, but the message probably goes by too fast for you to see it. Install bootlogd, and you can find those messages in /var/log/boot.

You can change how frequently the filesystem checks are done by running tune2fs.

#1974 Re: Installation » Services start issue » 2018-09-02 19:58:36

Yes, I can start and stop services. Everything seems to be working fine here. I keep apache2 and samba turned off, and I start them on those rare occasions that I need them.

If you don't want the user to be able to use sudo for all commands, then remove that user from the sudo group. You'll still be able to shutdown, etc., becuase of sudoers.d/user_shutdown. And you don't need visudo to edit that file; just edit it as root.

To start smartmontools/smartd, edit /etc/default/smartmontools to uncomment #start_smartd=yes.

You don't have to start the sudo service. Use sudo if you want, or don't use it. It's obviously working correctly on your system.

I don't know what checkroot-bootclean.sh does. It doesn't show up in sysv-rc-conf as a service to start/stop, but there is a symlink for it to start in runlevel 1. I see no reason to mess with it.

#1975 Re: Installation » Services start issue » 2018-09-01 21:42:16

Looking at /etc/init.d/sudo, it looks like all that script does is change the time stamp on /var/lib/sudo. The only command it takes is 'start'. All the others (stop|restart|whatever) do nothing. Anything else gives you the standard error message for init scripts that says you should use start|stop|restart...

If your user is in the sudo group, you should be able to use sudo with your password for all commands. Try something safe like sudo blkid to see if that works. What I don't understand is why user_shutdown works when the includedir directive in /etc/sudoers is commented out. It's commented out in mine, too, but I can shutdown using sudo without password. I'm also getting the same results as you for 'service --status-all' - it doesn't change when I try to start sudo. Maybe that's because sudo runs and then exits after it changes the time stamp.

Edit: 'man sudoers' just answered my question.

The pound sign (‘#’) is used to indicate a comment (unless it is part of a #include directive... (and more)

Board footer

Forum Software