The officially official Devuan Forum!

You are not logged in.

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

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

#2028 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!)

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

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

#2031 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"

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

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

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

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

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

#2037 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/

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

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

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

#2040 Re: Installation » [Solved] Beowulf installation image » 2019-02-07 13:42:35

Try it again - the installer was just rebuilt.

mini.iso                                           07-Feb-2019 12:06            47185920

#2041 Re: Desktop and Multimedia » Software update notifications in XFCE » 2019-02-07 13:12:14

I installed from your first zip. I saw the icon and clicked on it, but it just disappeared. Made the changes you suggested and I'm waiting to see that icon again. Anyway, I have a question and a comment.

How/where is 'apt-get update' happening?

This code won't work with a devuan-live (or with most debian-live derivatives):

# Do not run in a LiveCD session
import os.path
import sys
if os.path.exists('/etc/pointlinux-installer/install.conf'):
    print "Can't run in a LiveCD session!"
    sys.exit()

This would probably work better:

# Do not run in a LiveCD session
import os.path
import sys
if os.path.exists('/lib/live/mount/medium'):
    print "Can't run in a LiveCD session!"
    sys.exit()

Note: It will still work in a live session with persistence, because in that case, the path would be '/lib/live/mount/persistence'. If you used '/lib/live/mount' in the code, that would keep it from working in both cases (with or without persistence.)

#2042 Re: Other Issues » [SOLVED] pkexec authenticates without password » 2019-02-06 18:50:16

Turns out there are some files created by live-config that get in the way. I will add them to the installer's exclude list.

- /etc/PolicyKit/PolicyKit.conf
- /var/lib/polkit-1/localauthority/10-vendor.d/10-live-cd.pkla
- /home/*/.su-to-rootrc
- /home/*/.*/share/config/kdesurc
- /home/*/.*/share/config/tdesurc

(Note: the last three also need to be added to home_boot_exlclude.list)

...and make sure policykit-1-gnome is installed.

Edit: added files specific to kde or tde.

#2043 Re: Devuan » Devuan Beowulf up and running and quite sweet » 2019-02-06 16:45:09

geki wrote:

Upgrade from Ascii to Beowulf went smooth, but that one boot to grub console - wtf? Booted once more with installer, aborted and next boot Beowulf with MATE came to life and ever since

Welcome to devuan. If you found "no-install-recommends" on your first day, you will do fine here.

I know there's an issue with grub-install in uefi with the signed bootloader. You get EFI/devuan on the efi partition, but the bootloader looks for EFI/debian, and you end up with a grub promp instead of a boot menu. I don't understand what you did when you booted with the installer and fixed it.

The fixes I know about are to either remove grub-efi-amd64-signed and run 'grub-install' and 'update-grub' or else run 'grub-install --bootloader-id=debian' and then 'update-grub'.

#2044 Re: Installation » [Solved] Beowulf installation image » 2019-02-06 16:19:17

rolfie wrote:

Thanks for the link, I'll give it a try. Is it correct that the image is dated something like April 18?

No! You want the one dated December 31, 2018. Note that both files have the same name. You need to rename one or keep them in separate directories.

i386:
http://pkgmaster.devuan.org/devuan/dist … t/mini.iso

amd64:
http://pkgmaster.devuan.org/devuan/dist … t/mini.iso

#2045 Re: Other Issues » Advice on VBox machine in UEFI mode » 2019-02-02 20:25:19

When I boot from a virtual hard drive in vbox, it brings me to UEFI Interactive Shell. At the prompt, I type 'exit' and it gives me a menu. I select 'Boot maintenance manager' and then in the next menu select 'Boot from file'. This gives me a directory tree showing the EFI directory. I can drill down until I see grubx64.efi and choose that file. Then it boots. There's no typing involved, but it's still annoying to go through all of that.

When I boot from a uefi-compatible live-iso, it boots correctly.

Sorry I don't have a better answer.

#2046 Re: Devuan Derivatives » questions about miyo and Devuan in general » 2019-02-01 13:34:31

wget -c https://files.roundr.devuan.org/devuan_ascii/installer-iso/devuan_ascii_2.0.0_amd64_netinst.iso

If the download is interrupted, re-run the same command and it will continue from where it left off. (You can replace the address with your favorite mirror if you want.)

#2047 Re: Other Issues » Beowulf - Policykit » 2019-02-01 13:11:32

Get package name, version, archive

aptitude search ~i -F"%p# %v# %t#"

#2048 Re: Off-topic » At first I thought it was insane, but then I saw who was behind it. » 2019-01-30 12:48:16

Don't feel bad. I've been using linux for 18 years, and I never heard of rcconf. I have heard of sysv-rc-conf, and that's what I use. It allows you to turn services on or off in specific runlevels. The really hard-core geeks use update-rc.d.

#2049 Re: Installation » Difference between DE during installation from dvd installer » 2019-01-30 12:32:17

If you check just the first box, you should get xfce, because it's the first of the three desktops recommended by task-desktop.

If you check just the xfce box, you'll get task-desktop because xfce depends on it.

So, checking first box only, second box only, or first and second box should all give the same result. (I haven't tested this.)

$ apt-cache depends task-desktop
task-desktop
  Depends: tasksel
  Depends: xorg
  Depends: xserver-xorg-video-all
  Depends: xserver-xorg-input-all
  Depends: desktop-base
 |Recommends: task-xfce-desktop
 |Recommends: task-lxde-desktop
  Recommends: task-mate-desktop
  Recommends: xdg-utils
  Recommends: avahi-daemon
    avahi-daemon:i386
  Recommends: libnss-mdns
  Recommends: anacron
    systemd-cron
  Recommends: eject
    eject:i386
  Recommends: iw
    iw:i386
  Recommends: alsa-utils
    alsa-utils:i386
$ apt-cache depends task-xfce-desktop
task-xfce-desktop
  Depends: tasksel
  Depends: task-desktop
  Depends: xfce4
  Depends: slim
  Recommends: xfce4-goodies
  Recommends: xfce4-power-manager
  Recommends: xfce4-mixer
  Recommends: xfce4-terminal
  Recommends: mousepad
  Recommends: orage
  Recommends: libreoffice-gtk
  Recommends: dbus-x11
    dbus-x11:i386
  Recommends: xsane
    xsane:i386
  Recommends: vlc
  Recommends: quodlibet
 |Recommends: evince-gtk
  Recommends: evince
  Recommends: tango-icon-theme
  Recommends: wicd
  Recommends: synaptic
  Recommends: iceweasel
  Recommends: libreoffice
  Recommends: libreoffice-help-en-us
  Recommends: mythes-en-us
  Recommends: hunspell-en-us
  Recommends: hyphen-en-us
  Recommends: system-config-printer
  Recommends: gnome-orca

Board footer

Forum Software