The officially official Devuan Forum!

You are not logged in.

#1001 Documentation » Tip for using obmenu-generator in Openbox » 2024-12-07 16:26:18

greenjeans
Replies: 1

So for folks who like to tinker with Openbox and want to use obmenu-generator, A quick tip.

I love this menu program, it really makes a startling difference compared to the default static menu, it's one of the things that made me fall in love with Miyolinux back in 2017, and the menus it generated were larger and very modern looking and gorgeous.

Back then, all it took was the binary in path, a schema file in home, and loading the perl module Linux-DesktopFiles.

Fast forward to now, when I started messing with Openbox, I went and checked documentation, downloaded obmenu-generator, but now it called for 3 perl modules plus an optional 4th if you wanted localization support.  I wanted to try to do it "by the book" , so I installed cpanminus, installed all the modules and installed obmenu-generator as instructed. Ran the commands to get it started.

And got some tiny thing that looked almost nothing like the big pretty menus I was used to. It was dynamic, it did have icons on there, but it was all squished down to the size of the original static menu and basically looked just like it. I spent an hour trying to re-config it, but no joy. In fact it seemed like no amount of tinkering with the config file did anything at all, changing icon size etc. Nothing.

So, in another partition dedicated to a new version of Openbox Vuu-do, I decided to do it different, one step at a time to try and figure it out. So I did NOT install cpanminus, I installed the obmenu-generator files, then unpacked only the Linux-DesktopFiles module and installed manually. Generated a menu and BOOM my pretty menu was back!

I'm guessing it was maybe the GTK3 module that made the menu ugly, sounds like many other issues i've had with it, and maybe possible to fix with some snooping and re-configging. But I really don't have time to dig into that, i've spent plenty time already trying to make various GTK3 things work and not suck.

Edit: To install perl modules manually:
Install: libmodule-build-perl if it's not already installed.

Then unpack the desktop:files tar.gz, open terminal in that folder, su to root, then one at a time, seriously, one line at a time and hit enter, let it work, and then when you get command prompt back do the next line;

 perl Build.PL
     ./Build
     ./Build test
     ./Build install 

#1002 Re: Devuan Derivatives » Devuan-Mate-Mini: New upload 12/06/24 » 2024-12-07 06:11:21

Upload done. Well that only took 15 hours, woo-hoo! I'm going to bed now.

#1003 Re: Devuan Derivatives » Devuan-Mate-Mini: New upload 12/06/24 » 2024-12-07 05:27:38

So that went off like a lead balloon, just can't get a working iso trying to use efi as default on a machine that's running BIOS.

Ran a new one finally with grub-pc for legacy/BIOS systems and it works great, tested multiple times for proper install and it's working nicely.

As I said, I don't have an EFI machine, but I imagine you can boot this up into a live session, and replace grub-pc with grub-efi-amd64 and should be able to install into an EFI system and use grub, but I have no way of testing, would be awesome if someone could down the iso and test that, I got beer and barbecue with your name on it if you do!

Will be uploading here shortly as soon as I write some new notes in the readme.txt.

#1004 Re: Devuan Derivatives » Devuan-Mate-Mini: New upload 12/06/24 » 2024-12-07 00:21:02

So been on it for about 10 hours now, lol, just got done squashing a new one to test, i've defaulted it to EFI with regular BIOS available on install in a similar fashion to the Devuan desktop-live iso. Hopefully it works, but I have no way to test the EFI install as my machines aren't. Been a crazy day, 10 minutes ago a water pipe burst in my laundry room and started spewing water everywhere...had to make a mad dash to fix that but fortunately there was a dedicated shutoff to the laundry area, so it's not leaking and we still have water...sheesh...some days you're the windshield, some days you're the bug.

#1005 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-05 21:32:50

Issues all sorted, I think the only thing I have left to do is add some custom excludes to snapshot and make sure installer has a couple specific configs, then i'm ready to squash the first iso of Vuu-do 2 series.

I've got it down to 2.39 gigs on disk, which should be close to 2.1-2.2 actual...really trying to hit that under-700mb mark. Which is crazy to me, the old mini's I did were half that size, linux sure has....umm...grown since I last made myself a system with it.

But i'm happy, it's still wonderfully faster than my Mate installs, not as fast as the old ones, but nice. I think if Dan is still lurking around here he'll be like "Nice work Grasshopper" lol!

#1006 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-05 16:28:06

Sweet, good ol man pages, I should really learn to read them thoroughly before posting my novice issues.

Solution to the Synaptic auto-remove is found in apt-mark, mark 'em manual and should fix it (hopefully!).

Even easier than I thought, just had to delete /var/lib/apt/extended_states

Did that and and it's all good now!

#1007 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-05 16:08:40

Hah! Uninstalled all the Pipewire stuff and ALSA started working correctly! Happy about that.

Sad that they apparently got rid of the equalizer function in ALSA, but I guess most music players that would get installed have one onboard anyway. So it was likely redundant anyway.

Now if I can just get rid of the "auto-removeable" nonsense that Synaptic is doing....

That and those weird visual artifacts I mentioned, if I can fix those two things i'll be in high cotton.

#1008 Re: Devuan Derivatives » Devuan-Mate-Mini: New upload 12/06/24 » 2024-12-05 14:37:06

Thanks a bunch! Downloading now to try it out. I've been contemplating going back to good ol' MATE recently.]

My pleasure friend! Yeah, I just have to go back to cushy ol MATE every now and then, plus I do a lot of conversions for older folks and the MATE interface is very easy for them to pickup on as it's similar in it's basic functions as older versions of windoze that most of them used to use.

#1009 Re: Installation » Devuan 5 not Booting on 2005 Toshiba Tecra A7 Intel Centrino Duo » 2024-12-05 14:23:36

Yep, like Steve said, I have had pretty good luck finding older ram sticks on ebay.

#1010 Re: Off-topic » US Proposes Forcing Google to Sell Chrome . . . » 2024-12-05 13:24:41

Phone free again here since October of last year :smug:

Have never in my life owned a smart phone, went without a phone period for several years back in the day. Moved out to the country last year and my cheapie walmart Tracfone wouldn't get any bars, so I chunked it in the trash, don't miss it a bit.

Wife has one, but she stays off it most of the time.

Stupid phones interfere with all my various mad-redneck-scientist projects.

Off-topic: Lxterminal dropped support for faux transparency, I has a sad now. sad   That was my favorite feature and what made it even better than Mate terminal. With fake transparency it showed my lovely wallpaper in the background instead of whatever folder or directory I was in.

#1011 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-05 12:53:56

One more thing just struck me, I was never able to get the original Vuu-do to hibernate, I did get suspend working when you close the lid on a laptop by adding an  /etc/acpi/events entry connecting to a small script that invokes obsession-exit -s.

Since you mentioned hibernation requires it knowing the UUID of the swap partition it's easy enough for me to do on my own machine, but is there a way to do that generic-ly during install?

#1012 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-05 12:42:33

@fmsithred, thank you! Will try.

Trust me, I know about the dependency upon dependency thing, i've borked a thousand installs over the last 15 years trying to figure it out, lol. Nowadays I pretty much know what I can get away with, but of course things change over time....thes days I usually run through list of dependants, then if there's a question I go on the web and do some research.

When I pulled MATE, the system demanded I uninstall Pulse and install Pipewire, I was so giddy at the thought of getting rid of Pulse completely that I just said okay. Shoot, even the old Vuu-do is not free of Pulse completely, something dragged in libpulse0 and I couldn't get rid of it, so I basically dummied it out for a (hacky) solution. So maybe I can dump Pipewire too? Was wondering if it was any good....

I know I should have started from the ground up, but I tried that earlier this year and got so frustrated trying to work with the CLI and apt that I just stopped. Sorry, i'm a GUI guy. Part of that was I had limited time, I actually have all winter now, and I debated for a while about which way to do it, decided to try and see if this way worked first, and now i've got so much work in it I am loathe to start over, day before yesterday I got up at 7 a.m. and worked on it all day until 2:30 a.m. the next morning, slept for about 3-4 hours and got up and went back at it all day.

@Altoid no worried from me about thread-jacking, all this is very informative. But forum decorum being what it is perhaps I should change the title and maybe get Golinux to wave her magic wand and put it in DIY? Mods do what you think is best.

So question number 5:
5. Given that my system was working completely fine for user without polkit running, just needed to use terminal for root things, Would it be at all feasible to write some sort of script that only started polkit up when a request is made for superuser access and then have it shut down once you were done? It eats up a lot of ram running all the time.

#1013 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-04 23:51:30

And I just gotta say, great googly-moo, the stupid policy kit takes 75-100 mb of ram while it's running, what the actual? Is that really necessary?

#linuxatemyram

#1014 Re: Installation » Devuan 5 not Booting on 2005 Toshiba Tecra A7 Intel Centrino Duo » 2024-12-04 23:39:59

if the machine won't boot from usb media and you don't want to burn through a bunch of cd/dvd disks(harder to find and more expensive these days)

Actually they seem cheaper than ever, its what I have used for 15 years, and the nice thing is I have a stack of isos going all the way back with everything I ever did, and every distro I ever tried and liked enough to keep, all on solid media that will never be corrupted as long as I don't have a house fire, lol. wink

Honestly on a machine as old as the OP's, that's a better choice.

But you're right, 512 mb is gonna be tough. Especially if he wants to try and run a browser. If he had just a gig at least, Vuu-do and a lot of others would work. I've run the old Vuu-do maximal in an old machine with 1 gig, and loaded the liveCD into ram and it worked great, but that was the old 1.07 with the old version of Palemoon.

ETA: What would work great, is Puppy linux from around 2010-2011 or so, before Barry quit for a while and the community bloated the living crap out of it.

#1015 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-04 22:44:45

Another way to revert su to the old behavior is to put the following in /etc/default/su (which you will probably have to create).

Yep, that's the method I mentioned at the link Rolfie posted, works great!

In addition, despite that, synaptic and other admin stuff would still not start from menu, turns out the policy kit was not starting up at boot, even though there's an entry for it in /etc/xdg/autostart, I had to add a line to start it in /home/vuudo/.config/openbox/autostart, after that everything started working fine, almost....

But my extensions for root edit/access would still not work using pkexec instead of gksu.

So I found a little code online, modded it some, and made a little script I called gksu.sh and dropped it in the $PATH, all it does when you call it is convert the gksu.sh command to a full pkexec command and then executes pkexec and the action you asked for. Keeps me from having to add a bunch of code into the .desktop exec command lines.

Working soooo smooth now, and so much faster and lighter weight than MATE, I am literally almost done building Vuu-do 2, really the only issues I have left are these:

1. Getting a bunch of video artifacts on startup, logout, and shutdown, weird stuff, the Devuan-mate-mini does it too.  My original install of Daedalus a year ago did it too at first, then for some reason it stopped doing it all on it's own, wonder what that's about?

2. Totally personal to my machine i'm sure, but whenever I boot any version of Daedalus, it hangs up right at first when you boot for a minute or two, then puts out a message "Gave up on waiting for a suspend/resume device". Not sure what it's looking for, any way to bypass that behavior on my machine?

3. Alsa doesn't seem to want to start at all, so volumeicon isn't working properly and cannot fire up alsamixer or equalizer. I pulled Pulse out (YAY!) and it installed pipewire instead, pretty stoked about dumping pulse, but have no experience with Pipewire so don't know what to expect.

4. I started this from a clean install of Devuan-mate-mini, loaded openbox stuff and got a good working environment, logged into openbox session, uninstalled all the MATE stuff in Synaptic, but now Synaptic thinks that a whole lotta important stuff is now "auto removable". We're talking stuff that would destroy the whole system if I auto-removed it, the entirety of Xorg, most prgrams and system libraries, all of gstreamer, it's bizarre, like 60-70 of the most important packages in the system. What the heck?

#1016 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-03 22:24:16

That's what happens when you play Rip Van Winkle for so long . . .

It's like I walk out to my truck, put in the key and start it up, but the transmission won't shift out of park today because I didn't use my extra-super-dooper-superuser-key that I didn't know I had or needed to use.

#1017 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-03 22:18:29

Thanks rolfie, the workaround posted at the link you gave me worked fine and now it's behaving as i'm used to.

I don't like either, but I seem to be an old man yelling at clouds the last couple days anyway.

But hey, I learned new things so it's a good day. Really appreciate the forum members here helping me out.

#1019 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-03 21:31:32

Wow @rolfie, thanks for the link big-time, sure enough that new install is doing that, su - has all access. That makes me happy and sad and confused all at the same time.

Happy because I didn't do badly, my goal with the Mate-mini was to make a 100% stock Devuan with no changes or additions by me, pure Devuan as-delivered. So I guess I did that, and if that's the way they want it, so be it. Relieved.

Confused because if this goes all the way back to Beowulf, why did it not do it on my other Devuan installs from a year ago? And also, if someone would humor an out-of-touch old curmudgeon:

Why was this necessary?
Where is it? Hard-coded into Bash?

#1020 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-03 21:09:38

The su stuff has already changed in Beowulf: https://files.devuan.org/devuan_beowulf … _notes.txt

I'm sitting here right now using stock Daedalus from a netinstall I did a year ago, and that's not the behavior it exhibits, plain old su works just like it always did. That's why I didn't expect this. And I never modified anything to do with the $PATH.

The default settings for the system in all the files i've checked are identical in Daedalus installed a year ago and the one I installed last week from the most recent netinstall iso.

#1021 Re: Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-03 20:46:01

hi, reminds me of the $PATH shinanighans that came with Devuan Chimaera release...

where su no longer gave the user the path root would have.

I wonder if you get a different path if you type 'su -' instead of su.

Seems weird, but maybe you could check that.

Wow, I hadn't heard about that, will give it a check.

#1023 Hardware & System Configuration » Swapon bash:command not found ? » 2024-12-03 18:54:20

greenjeans
Replies: 25

Okay another weird one.

At some point in my frequent frenetic installing and more installing this last week, I screwed up swap. No biggie, done it before, just usually have to adjust /etc/fstab.

That didn't work out for some reason this time, so I fired up gparted on main system (sda/1) and assigned a new UUID, closed it, modded fstab on sda/1, then opened terminal and su'ed to root and ran

swapon --all --verbose

and swap fired right up. All good.

Now on to sda/2, did same thing, worked perfectly.

Now to sda/3 the new Daedalus Mate-mini,  fixed fstab, terminal, su-to-root, run swapon command again and I get the same message that you would get if you tried that command as a user instead of root 

bash: command not found

??? It has mount installed and all files are there, swapon and swapoff in /sbin....i'm at a loss here, why would it not let root run swapon?

And the thing is, swap is not off on that partition, the system monitor reports it sees it and it's working.

???

Edit: And tried swapoff, got the same message, bash can't find it.

#1024 Re: Installation » Devuan 5 not Booting on 2005 Toshiba Tecra A7 Intel Centrino Duo » 2024-12-03 17:17:33

There is still documentation on the refracta website:
https://refracta.org/docs/readme.refracta2usb.txt

Have no idea how current it is . . .

As fsmithred once told me, it is for sure a huge swiss army knife of a program, but it can be confusing because it has so many options and things it can do, so there's a learning curve.  I asked him at one point why it wasn't still around but can't remember what he said about that.

I have a couple different USB sticks I made with it, one just a standard liveUSB, one with persistence. I also have a stick that I did a conventional install one with a swap partition and all just for an experiment, but I think I just used Refracta-installer to do that one.

#1025 Re: Other Issues » Install packages / software to an offline machine... » 2024-12-03 15:18:16

So that means I have to do an apt-cache depends ( and download the dependencies ) for each dependence of the desired program ? 😭

That's what I do, but as Steve_V rightly said if you have an active connection apt can do it for you.

There is a way to have apt resolve depends using local packages, and that's if you have set up an offline repo of your own.

I did this years ago when gnome 2 was transitioning to gawdawful 3, I downed the entire repo including all gnome 2 packages and set myself up an offline repo in case I ever wanted more programs in the gnome 2 system I was using at the time.

Board footer

Forum Software