The officially official Devuan Forum!

You are not logged in.

#1801 Re: Hardware & System Configuration » Shutdown encrypted LVM on Beowulf » 2019-02-22 00:21:09

Something has to happen here. I'm not sure what. I tried changing line 164 to just 'for i in 1 ; do' but I don't think it really worked. Only tried it once before I reinstalled over it. I've done a bunch of installs today, and it looks like grub can't do full-disk encryption or encrypted lvm. I need to run the tests again, because I just got a new version of grub. If I can get an encrypted lvm install to boot, I'll play with this some more.

   156  do_stop() {
   157      dmsetup mknodes
   158      log_action_begin_msg "Stopping $INITSTATE crypto disks"
       
   159      crypttab_foreach_entry _do_stop_callback
   160      log_action_end_msg 0
   161  }
   162  _do_stop_callback() {
   163      local i rv=0
   164      for i in 1 2 4 8 16 32; do
   165          remove_mapping "$CRYPTTAB_NAME" 3<&- && break || rv=$?
   166          if [ $rv -eq 1 ] || [ $rv -eq 2 -a $i -gt 16 ]; then
   167              log_action_end_msg $rv
   168              break
   169          fi
   170          log_action_cont_msg "$CRYPTTAB_NAME busy..."
   171          sleep $i
   172      done
   173  }

#1802 Re: Devuan Derivatives » [Fixed] Upgraded "Miyo-XTRA Beowulf" boot suspend/resume delay » 2019-02-21 13:55:33

There's a resume file in your initrd that has that uuid inside it. In a live session, run lsinitramfs /initrd.img | grep resume to see if it's there. That uuid should correspond to a swap partition. There's a way to avoid this when making the snapshot. It's in the readme. Starting with refractasnapshot-10.2 the script will do it for you (or ask what to do.) 

If you have no swap partition, you can probably get rid of the file by running update-initramfs -u. The other way to get rid of it is to unpack the initrd, remove the file (conf/conf.d/resume) and then repack the initrd. If you need the commands for that I can post them after another cup of coffee.

#1803 Re: Hardware & System Configuration » Shutdown encrypted LVM on Beowulf » 2019-02-20 13:32:59

Looks like the file name was changed to  /lib/cryptsetup/cryptdisks-functions. (there's a dash instead of a dot)

I have it on two beowulf installs - one was upgrade from ascii, one was from mini.iso install.

I don't know if that fix still works (i.e. copying part of the jessie version into the ascii file.) You could try the earlier fix of changing the timings on line 190 to 'for i in 1'.  I haven't tested this yet, because I have't been able to boot into my encrypted lvm install.

# Removes all mappings in crypttab
181 do_stop() {
182     dmsetup mknodes
183     log_action_begin_msg "Stopping $INITSTATE crypto disks"
184
185     crypttab_foreach_entry _do_stop_callback
186     log_action_end_msg 0
187 }
188 _do_stop_callback() {
189     local i rv=0
190     for i in 1 2 4 8 16 32; do
191         remove_mapping "$CRYPTTAB_NAME" 3<&- && break || rv=$?
192         if [ $rv -eq 1 ] || [ $rv -eq 2 -a $i -gt 16 ]; then
193             log_action_end_msg $rv
194             break
195         fi
196         log_action_cont_msg "$CRYPTTAB_NAME busy..."
197         sleep $i

#1804 Re: Installation » Beowulf: Link sbin » 2019-02-18 20:16:35

I tried copying .Xauthority and that didn't work for me in beowulf. Are you using that in beowulf now?

I also tried xhost + and that didn't work, either.

#1805 Re: Devuan Derivatives » Refacta 9.0 Released » 2019-02-18 18:34:17

Oh! That typo has been there for a long time. Good thing it's just a commented example. I'll fix it in next version.

make_efi makes the files needed to boot the iso on uefi hardware. For that to work, you need to have grub-efi-amd64-bin installed (it already is, unless you removed it.)

#1806 Re: Installation » Beowulf: Link sbin » 2019-02-18 18:11:14

The problem you're running into is the change in root's path when you run su in a terminal. That path no longer contains the sbins. If you use su - instead, you'll get the root path that you're used to. But then you won't be able to start graphical apps as root from that terminal. For that, you're supposed to use pkexec. When you figure all that out, I'll read your posts. Until then, or until someone gives me good reasons not to do this, I'm working around the problem.

# grep PATH /root/.bashrc
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Oh yeah, the other workaround is to use the full path for commands.

/sbin/blkid
/usr/sbin/update-grub

#1807 Re: Installation » [Solved] Stuck with Beowulf netinstall » 2019-02-13 22:40:29

You did both fixes and only needed to do one. With the *-signed package removed, you can just run grub-install and it will make (re-make) the devuan entry and set it be the first bootloader. (It should do that, anyway. Not all uefi systems act the same.)

#1808 Re: Installation » [Solved] Stuck with Beowulf netinstall » 2019-02-13 20:00:02

Go into rescue mode and get a shell in the installed system. Run dpkg -l | grep grub and if a package named grub-efi-amd64-signed is installed, remove it.

If that's not possible, try grub-install --bootloader-id=debian and see if that fixes it.

Note: I had the same problem with an encrypted install of beowulf, and I was able to fix it with either of the methods I described. If neither of these can help, post the contents of /etc/fstab, /etc/crypttab and /boot/grub/grub.cfg, and the output of the following comands:

fdisk -l
df -h
blkid

#1810 Re: Installation » [Solved] Stuck with Beowulf netinstall » 2019-02-13 12:42:25

Either boot from grub command line or go into chroot and remove grub-efi-amd64-signed. Then run grub-install and update-grub.

#1811 Re: Devuan Derivatives » Refacta 9.0 Released » 2019-02-12 22:19:05

Here's the distrowatch link. I should have included this in the first post. They dressed up my dry announcement a bit.
https://distrowatch.com/?newsid=10460

#1812 Re: Desktop and Multimedia » Software update notifications in XFCE » 2019-02-12 21:04:10

"not stable" means that they might change the way it works. If it stops working, you'll notice that you're not getting notified about updates, and you can change the script then.

If anyone reading the thread knows python well enough to get it to feed the list of packages to notify-send, please tell me about it. I can get them to print all on one line, but I want one package per line the way my short script does it.

#1813 Re: Desktop and Multimedia » Software update notifications in XFCE » 2019-02-12 00:23:49

Last I checked, the man page for apt says not to use it in scripts. I don't know what bad things might happen if you do.

I got rid of the cron job and set up apt to update the cache once a day.

To do that, put this line in /etc/apt/apt.conf.d/10periodic. ("1" is once a day, "2" is every other day, etc.)

APT::Periodic::Update-Package-Lists "1";

See /usr/lib/apt/apt.systemd.daily for other options you can add to that file if you want to change from the default settings. (I don't know why it has that name.)

That said, I agree that it makes sense for the script to initiate the update. (Or for a postinstall script to make the change to apt.)

@miyo:
In beowulf, /lib/live/mount has changed to /run/live/medium

#1814 Re: Devuan Derivatives » Refacta 9.0 Released » 2019-02-10 14:55:23

I disable all those dirs because it annoys me to have them in my home. I make my own directories, in some cases with names I've been using since win98. Whoever sets the default user-dirs doesn't know how I want to organize my files. (...and they can get off my lawn!)

#1815 Re: Devuan Derivatives » Refacta 9.0 Released » 2019-02-10 12:34:59

Pan, look in /etc/xdg/user-dirs.defaults and uncomment the dirs you want.

#1816 Re: Hardware & System Configuration » root-Terminal on Beowulf » 2019-02-09 19:44:40

golinux wrote:
fsmithred wrote:

I don't know the reason they changed it, but it certainly got in the way of my workflow.

Wasn't that due to the merged /usr in stretch/beowulf?

I don't think so. If it were due to that, I'd expect /usr/sbin/ to be in the path, but all the sbins are gone when you get root with 'su'. If you use 'su -' instead, you get the sbins in your path, but then your working directory changes to /root and  you can't run a graphical app in the user's desktop.

#1817 Re: Hardware & System Configuration » root-Terminal on Beowulf » 2019-02-09 18:47:21

Root's path in ascii and jessie was this. If you don't have anything in /usr/local/ the path you're using is fine.

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

I added the following line to /root/.bashrc and now I can get root with 'su' and still run commands in *sbin and still open graphical apps on user desktop and still be in the same directory. I don't know the reason they changed it, but it certainly got in the way of my workflow.

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

#1818 Re: Devuan Derivatives » Refracta no-dbus experiment » 2019-02-08 19:51:55

Cool, Aitor! Thanks. I'll add it to the next nodbus build (which might be beowulf.)

#1819 Re: Desktop and Multimedia » Software update notifications in XFCE » 2019-02-08 19:50:05

Yes, please do use it. I tried putting the list in the notification that the python script uses, but it wanted to list all the updates on one line, so most of them were not visible. (That was down around line 88, change  c['message'], to c['check'],)

You don't need to add "The following updates are available" because there's a title in the notification window that says "Updates Available" (You could edit that message in the python script.

Try 480 and let us know what happens. Another way to do it would be to set apt to update periodically, but I'm not sure if that still works.

#1820 Re: Desktop and Multimedia » Software update notifications in XFCE » 2019-02-08 13:47:09

Played with it some more. Instead of disabling the line that starts synaptic, it can be changed.

Original line 48:

gui = "/usr/bin/gksu '/usr/sbin/synaptic --dist-upgrade-mode true --non-interactive'",

Alternates:

# Run synaptic without admin privs
#    gui = "/usr/sbin/synaptic",

# Run synaptic as root
#    gui = "/usr/bin/synaptic-pkexec",

# Run my script
    gui = "/usr/local/bin/show-updates",

Make sure to change line 78 back to 'True' (note: 'true' won't work)

    subprocess.call(c['gui'], shell=True)

and line 80 or so, revert to do_updates

#    gobject.timeout_add(1, self.destroy)
    gobject.timeout_add(1, do_updates)

/usr/local/bin/show-updates (don't forget to make it executable)

#!/usr/bin/env bash

list=$(apt-get -s dist-upgrade | awk '/^Inst/ { print $2 }')
notify-send "$list"

exit 0

#1821 Re: Devuan Derivatives » Refacta 9.0 Released » 2019-02-08 12:38:58

Hey dude, welcome back. I made some isos back in October that still fit on a CD. Updates since then bloated the system enough to push it up over the threshold.

No usb where you are? Can we find you a 21st century computer and a 1G usb stick? (I'm guessing we can't find the latter - they're all 8G and up now.)  Seriously, if you really need the smaller iso, I'll figure out how to get it to you. Or, if you wait a little while, there might be a preview beowulf iso.

#1822 Re: Desktop and Multimedia » Software update notifications in XFCE » 2019-02-08 03:08:23

# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).

Looks like there's a way to redirect it. (forward it to spammers?) I don't know where, but it's probably in a config file for cron.

You could remove exim4 and stop all system mail. I edited /etc/cron.d/update-notifier to run the update three times per day instead of every 30 minutes.

Edit: Oops! This makes it run every minute. I put it back the way it was (0/30 * * * *)

* 4 * * * root /usr/bin/apt-get update
* 12 * * * root /usr/bin/apt-get update
* 20 * * * root /usr/bin/apt-get update

#1823 Devuan Derivatives » Refacta 9.0 Released » 2019-02-08 00:30:06

fsmithred
Replies: 24

Refracta GNU/Linux has a new stable release (9.0) and a new Home Page at
https://refracta.org/

Refracta-9.0 is based on Devuan-2.0 (ASCII) and provides a lightweight
desktop with software for most home computing needs.

Features:
- kernel 4.9, sysvinit, eudev, elogind, XFCE4 (4.12.3)
- The desktop is installed as individual parts rather than from a metapackage, making it easier to remove individual parts.
- Utilities for diagnosis, rescue and repair.
- Refracta Snapshot and Refracta Installer allow you to easily make your own custom live-iso from the installed system.
- Boot to high-contrast/accessibility theme with second item in boot menu.
- All free/open-source software installed. Non-free wireless firmware packages are included in case you need to install them.

Download stable version: https://get.refracta.org/files/stable/

#1824 Re: Desktop and Multimedia » Software update notifications in XFCE » 2019-02-07 23:25:13

Sorry I wasn't clear. It's doing just what you said it would do, before and after the edits.

Now I want to learn python so I can modify it. What's the python equivalent of notify-send "$check" and how do you make that run when you click on the icon? That would show the list of packages to be upgraded for a few seconds - long enough to know whether you want to bother opening synaptic (or a root terminal) or rather leave it until later.

#1825 Re: Installation » gdm3 requires libpam-systemd » 2019-02-07 23:04:26

Or else install libpam-elogind as a replacement for libpam-systemd.

Board footer

Forum Software