The officially official Devuan Forum!

You are not logged in.

#351 Re: Devuan Derivatives » AVMultimedia with Devuan Beowulf: A powerful RAM based desktop » 2019-09-16 04:47:21

avbox wrote:

VirtualBox I could not test, I did not find the swith to enable UEFI (if someone can test or post the way to activate uefi), that would be helpfully.

Hi avbox,

Hopefully this will help...

1.  When you open VirtualBox, click (to highlight) the OS that you want to run in VirtualBox.
2.  Click Settings
3.  When the Settings window opens, click System in the side bar.
4.  In the Motherboard tab, put a check mark next to "Enable EFI (special OSs only).
5.  Click Okay.
6.  The Settings window will close, and you can then click the Start button to start the OS in EFI mode in VirtualBox.

#352 Re: Installation » firefox 52.9 esr » 2019-09-15 18:00:24

Who needs DRM when there's Afdah and Popcorn Time?

LOL! tongue

Not that I would know from experience or anything like that.   tongue

#353 Re: Devuan Derivatives » Release: Virage GNU/Linux: A Devuan-based distro for audio/video works » 2019-09-14 11:41:02

Hi wamphyre!

Welcome and thanks for your work. I'm quite busy, but I hope to be able to try Virage soon. smile

#354 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-13 08:24:50

Also, I think I've found an easy solution to the upgrade-sync script issue. I started thinking...if a cron job can run apt-get update as root, I don't see why one can't run the script as root...so I made a cron job for it in /etc/cron.d/...

@reboot root /usr/bin/update-sync

So, update-sync performs an apt-get update at system start-up and should run apt-get update in the specified intervals thereafter. It showed in /var/log/cron.log without any type of error...

I wanted to know that it's actually running, but I don't know what to make of all this gobbledygook or if I've even done the command correctly. LOLOLOL!!! tongue

dan@miyolinux:~$ ps aux | grep update-sync
root      1640  0.0  0.0   4276   744 ?        Ss   03:57   0:00 /bin/sh -c /usr/local/bin/update-sync
root      1677  0.0  0.0  11164  2840 ?        S    03:57   0:00 bash /usr/local/bin/update-sync
dan       3319  0.0  0.0  12780  1028 pts/1    S+   04:08   0:00 grep update-sync

I think it's running...well...sleeping (according to the S), which is what it should've been doing when I ran the command. From man ps...

S    interruptible sleep (waiting for an event to complete)

#355 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-12 23:24:05

fsmithred wrote:

After poking around a bit, I looked in /etc/cron.daily/apt-compat. That gets used for unattended upgrades and also auto-updates the cache. One of the nice things it does is check to see if you're on battery power and cancels any actions if you are.

I have another install from the first time we played with this that I set up to use the daily auto-updates. Create /etc/apt/apt.conf.d/10periodic with the following contents:

APT::Periodic::Enable "1";
#  - Enable the update/upgrade script (0=disable)

APT::Periodic::Update-Package-Lists "1";
#  - Do "apt-get update" automatically every n-days (0=disable)

The package cache will get updated once a day.

Edit: Changed 10_periodic to 10periodic. (see /usr/lib/apt/apt.systemd.daily and don't freak out over the name.)

I haven't tried this yet. Do you know "when" the update happens? Does it get logged somewhere in /var/log/?

Nevermind about the log question; I found the answer on this web page...

https://wiki.debian.org/UnattendedUpgrades

...but that brings up another question...does the unattended-upgrades package need to be installed for the 10periodic file to work?

#356 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-11 07:46:35

Okay, I tried moving the quotation marks around in upgrade-yes, but it didn't solve it.

#357 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-10 22:23:09

I've been checking, and apparently the kernel has it built in to not allow scripts to run as root. There are ways around it but none that I'm comfortable with. So, I think I would prefer implementing the cron job again. I know that it works.

I think I've already tried switching the quotation marks around...I tried various things with it to see if I can get it to work last night, but I'll try that to make sure.

...maybe this is why pointlinux relied on synaptic alone? LOL! tongue

Thanks fsr!

#358 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-10 11:51:59

The change didn't solve it for me; I got the same result.

I'm more stumped by the update-sync script. If I run it in the terminal (and leave the terminal open), it runs at the assigned intervals...as does the launcher in /etc/xdg/autostart (when I run it in the terminal). I left the terminal open for HOURS, and it ran like clockwork in both cases.

#359 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-10 00:18:14

I installed mini-i2p-mimo on another computer so I could test again.

I got the pop up this time saying that I needed to install xterm or synaptic. My mistake earlier was that I only removed xterm...I didn't purge it. tongue

So I installed xterm, but I'm still having the issue about sudo command not found. Even though I have sudo privileges, I looked at /etc/group and there I was in the sudo group. wink

Here's the output you requested...

dan@mini-mimo:~$ /usr/bin/upgrade-yes
+ '[' -e /usr/sbin/synaptic ']'
+ '[' -e /var/lib/dpkg/info/xterm.list ']'
++ wc -l
++ grep load
++ sudo -n uptime
+ sudo_allowed=1
+ [[ 1 -ne 0 ]]
+ xterm -fa mono -fs 12 -hold -e 'sudo "$command"'

I won't upgrade this system for awhile so I can keep testing on it.

#360 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-09 11:01:27

It'll have to be when more updates come down, because stupid me...I installed the updates on both systems to make sure synaptic worked as it should. tongue

I have sudo privileges on both systems.

#361 Re: Devuan Derivatives » [mini-i2p-mimo] New 'Devuan-based' release: » 2019-09-09 07:02:41

Thanks so much stanz! That was the ticket and worked just like you said! smile

I think your work with mini-i2p-mimo is absolutely fantastic for people who want more security and anonymity while online. Thank you! smile

#362 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-09 06:44:59

Second try: on my mini-i2p-mimo

I was hoping that perhaps some of the items I described above may have been related to using Qt, but I got all of the same as described above on this GTK system.

The only difference was that mini-i2p-mimo doesn't include synaptic out of the box, so I only had to remove xterm before starting the tests.

Since I hadn't used synaptic on this system before, it didn't close automatically after the updates were finished. So it does look like that "perk" is dependent upon a user ticking the box to close the "installing packages" window during the normal installation of a package.

#363 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-09 05:18:11

First try: my 32 bit beowulf with LXQt

I wanted to test it thoroughly, so I removed both xterm and synaptic before installing the notifier.

After removing them and installing the notifier, I replaced upgrade-yes and show-updates.

First run...

Clicking on Yes didn't produce another notification saying that I needed to install xterm or synaptic. I tried running upgrade-yes in the terminal, and received this output...

dan@deboowulf:~$ /usr/bin/upgrade-yes
/usr/bin/upgrade-yes: line 9: xterm: command not found

So, I went ahead and installed xterm.

Second run...

Clicking Yes opened xterm. However, when I entered my sudo password, it gave me this output...

Enter your password
[sudo] password for dan:
sudo: : command not found

...and I could do nothing else. I just had to close xterm.

I let it run again for a third time and tried entering the root password just in case, but it just said Sorry, try again. I entered a wrong password, and it said Sorry, try again. So I entered the sudo password, and got the same output as in the code above. So I just closed xterm.

So, I installed synaptic.

Fourth run...

Synaptic worked.

Now to try stanz's mini-i2p-mimo...

#364 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-08 21:41:52

Is that upgrade-yes?

I got the synaptic options from the pointlinux-update-notifier.py script. That's also what was throwing me off. The pointlinux notifier used gksu. Where I have pkexec in the command, it had /usr/bin/gksu. I was following the same logic and using /usr/bin/synaptic-pkexec, but it wasn't working right. Tried /usr/bin/pkexec, but that didn't work right either. I messed around with everything else in the command with worse results. I finally tried it with just pkexec out of frustration...and it stinkin' worked. LOLOL! tongue

I was thinking about using xterm instead of x-terminal-emulator after you noted the issues. I'll try your script above later tonight. I have stanz's mini-i2p-mimo that I haven't upgraded yet (Ascii) and a 32 bit beowulf that I haven't upgraded in over a month.

Thanks fsr!

Oh...I've also gone back to the cron job (for syncing the repos) for now...I haven't yet taken time to explore those other options you mentioned.

#365 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-08 18:35:20

MiyoLinux wrote:

I've been playing around with making it open synaptic again (like the pointlinux update notifier did). It'll open synaptic, but I haven't yet figured out how to get it to automatically show the updates like pointlinux did.

Still working on it...

Got it! big_smile  I was trying to make it a lot harder than it had to be.  tongue

Have this in my upgrade-yes file now...

pkexec /usr/sbin/synaptic --dist-upgrade-mode true --non-interactive

Just like opening synaptic normally, you have to enter your password. Synaptic opens and shows the available updates. Click "Mark", and it immediately downloads and installs the updates. When it finished, Synaptic closed automatically for me...I think that depends on whether the user has previously marked Synaptic's "installation" window to close automatically.

I've only tested it on ASCII. I see no reason that it shouldn't work on beowulf, but I won't be able to try it until later this evening.

Would solve the issue with different terminals needing different coding, but synaptic would need to be added as a dependency to the .deb package.

#366 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-08 17:22:51

I've been playing around with making it open synaptic again (like the pointlinux update notifier did). It'll open synaptic, but I haven't yet figured out how to get it to automatically show the updates like pointlinux did.

Still working on it...

#367 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-08 12:03:52

The update-sync script definitely could be the culprit in Ron's case. It seems to only sync the repos at system start-up. It's supposed to do it at start up and periodically throughout the day.

So...if the updates came down sometime after start up, it didn't detect them.

I was trying to keep from running a cron job to sync the repos, but I might return to that if I have to...but we'll see.

Thanks for the report Ron.

#368 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-07 18:27:15

The new upgrade-yes isn't working for me in ASCII for some reason. All I get is an open terminal with the message in the title bar (?) and a solid cursor in the terminal itself...it doesn't accept any input.

I'm busy right now and can't investigate, but I will when I can.

#369 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-07 17:13:10

fsmithred wrote:

One more. Someone noted a high number of available updates in ascii this morning, so I added a count to show-updates.

#!/usr/bin/env bash

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

count=$(echo "$list" | wc -l)

notify-send "$count updates available:

$list"

exit 0

If you like it, I'll add this, too.

I like both changes! So yes...let's include them!

Just used the new changes on beowulf. Had something like 91 updates! yikes

Worked fantastic. I haven't updated my ASCII yet...will try it soon.

#370 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-07 17:09:37

norb wrote:

Thank you for making the .deb pkg available, I installed, logged out and back in, a few moments later a notification popped
up in the tray informing of updates, it worked as expected, very easy to use, Thanks again.

You're welcome.

It's still being worked on...trying to improve it more. wink

#371 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-07 12:23:14

I guess another option would be to make a small note on the window where you choose Yes, Show Updates, or No that says the user will need to enter their root password.

#372 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-07 12:16:23

fsmithred wrote:

I'm wondering if we should add a list of these as Recommends or maybe Suggests or put something about it in a readme. The last would be the easiest - it's a long list, and full desktop environments have their own ways of doing it.
https://wiki.archlinux.org/index.php/De … on_servers

Thought of one other question: What happens if there's no root account? Does the user's password work? I don't think I've ever tried 'su' without a root account.

Oh, I just got another idea about the notification. Gonna do a test.

When I originally coded it, I had the terminal open and ask for the sudo password. Then I thought that there are probably more people who have root accounts than people who only have sudo accounts. So I changed it to using the root password. So as it stands right now, if you just enter the user's password, the terminal just closes and doesn't install the updates. I'm not sure how to code it to use either su or sudo both, but I can try to figure it out.

I know we added xfce4-notifyd to either recommends (or suggests), but that was the only one.

#373 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-07 10:49:45

fsmithred wrote:

I didn't know anything about lxpanel's notifications, so I looked it up. Arch wiki pulled through again. I added notification-daemon, started it, and notify-send immediately works. 

For openbox, the .desktop files in /etc/xdg/autostart don't do anything. I added the following lines to ~/.config/openbox/autostart:

/usr/share/update-notifier/update-notifier.py &
/usr/lib/notification-daemon/notification-daemon &

Good deal. I didn't know about needing the notification-daemon on lxpanel. Thank you.

On the download site's readme file, I do have a note about window managers may need to add the commands for the update notifier to their autostart file, but I mainly had i3 in mind. wink

I'll add that about lxpanel to the readme file.

I guess your Openbox must be even more base than Miyo-Modern...the .desktop files in /etc/xdg/autostart work on my Miyo (openbox) builds but not on i3. tongue

Thanks fsr!

#374 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-06 23:56:08

Okay. I did a fresh install of Miyo-Modern so that I knew I'd have updates.

Installed lxpanel (did not use no-recommends).

Removed xfce4-notifyd

Set lxpanel to start at system startup.

Installed the notifier.

Logged out/in. Ran the show-updates script, and nothing happened. When the icon appeared in the system tray, I clicked on it and chose Show Updates. Nothing. Nada. Zilch.

Apparently, the lxpanel notifications aren't included in Devuan's version...unless it comes with the full lxde desktop environment???

I installed dunst, and it works as normal, but dunst takes some configuring to get it how you want it to look. So, I presume you'll either need to install dunst or xfce4-notifyd. Sorry fsr.

Here's what the dunst notifications look like out of the box...

2019-09-06-195718-1280x1024-scrot_orig.png

#375 Re: Devuan Derivatives » [MiyoLinux] Update on the Update Notifier » 2019-09-06 23:01:17

fsmithred wrote:

notify-send isn't working for me in openbox. The updates icon shows up in lxpanel, and when I click on it, the window comes up to ask me what to do. show-updates makes the list (I tested the script alone) but notify-send doesn't display. Is this normal, or am I missing something for openbox?

Hmmm...interesting. I feel silly asking you this.

Are you using the native notifications that lxpanel provides? If so, do you receive any other notifications?

I really feel silly asking you this, but is libnotify-bin installed?

I'll install lxpanel and see what happens. Might be a while though. I'm writing this from my phone.

I know that when I made Miyo-Xtra, I installed lxpanel with no-recommends, and the native lxpanel notifications weren't included.

Board footer

Forum Software