LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-22-2023, 05:12 AM   #2851
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,916

Rep: Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034

Here you go, pretty simple.

Now, a caution:
be aware that after this patch, jobs in your crontab that may have been relying on the variables that were leaking through may need to be modified, else they will likely fail.

Personally I agree with the comments in the original man-page that env setup is better left to individual scripts that run your jobs, but anyone who just likes sticking simple commands in their crontab with no regard for environment might get caught out by this.

I've just knocked this up, its only had minor testing, so if you try it, do give it a good test before putting it on anything "production".


Also, while I'm here, I'll just re-advertise these patches which clean up some other dcron issues:
https://www.linuxquestions.org/quest...8/#post6450978
Attached Files
File Type: txt dcron-cleanup-env.patch.txt (1.7 KB, 36 views)

Last edited by GazL; 09-22-2023 at 05:19 AM.
 
3 members found this post helpful.
Old 09-22-2023, 09:26 AM   #2852
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0, slackware64-current, slackware-14.0
Posts: 562

Rep: Reputation: 322Reputation: 322Reputation: 322Reputation: 322
Quote:
Originally Posted by regdub View Post
About /etc/rc.d/rc.crond, I noticed that when you do a "stop" and then later a "start" from a terminal, the cron process and processes it launches inherit the current shell environment.

I'm wondering if some sort of environment cleaning wouldn't be desirable ?
Please forgive me if this is a stupid question.

But, under what circumstances would it be necessary to stop and then restart the cron daemon ?
 
Old 09-22-2023, 10:13 AM   #2853
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,916

Rep: Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034
Quote:
Originally Posted by glennmcc View Post
Please forgive me if this is a stupid question.

But, under what circumstances would it be necessary to stop and then restart the cron daemon ?
Typically when you don't want background jobs starting during critical system maintenance. Anyway, that's kind of beside the point.

The issue is that even when crond is started the usual way by rc.M during boot env variables are leaking in through inheritance. Restarting crond manually just makes it more obvious.
 
1 members found this post helpful.
Old 09-22-2023, 05:00 PM   #2854
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,067

Rep: Reputation: Disabled
kbd 2.6.3

kbd-1.153 shipped in Slackware-current is 11 years old.

As a result keysyms added since then are not recognized, which can make loadkeys fail if e.g. ckbcomp from Debian is used to convert X keyboard settings to a keymap.

I made a quick and dirty package taking inspiration from https://gitlab.archlinux.org/archlin...g/packages/kbd and now "ckbcomp-mini -layout de|loadkeys" works as expected.

I think that most patches in the source repository can be discarded, as well as speakupmap.map (already shipped in the kernel source package). Not sure about the alternate speakup-jfw.map (is JAWS still using the same mapping?)

Last edited by Didier Spaier; 09-23-2023 at 01:10 AM. Reason: JAWS capitalized.
 
3 members found this post helpful.
Old 09-23-2023, 04:05 PM   #2855
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
It would be an additional package more inclined to /extra, along with it's dependencies (if out of tree), but ADRIConf would be handy for modern systems to help control and manage the 3D graphics capabilities of GPUs.

https://gitlab.freedesktop.org/mesa/adriconf/
 
1 members found this post helpful.
Old 09-23-2023, 04:20 PM   #2856
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,344

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Quote:
Originally Posted by ReaperX7 View Post
It would be an additional package more inclined to /extra, along with it's dependencies (if out of tree), but ADRIConf would be handy for modern systems to help control and manage the 3D graphics capabilities of GPUs.

https://gitlab.freedesktop.org/mesa/adriconf/
+1

Nice GUI tool

GUI tool to configure Mesa drivers by setting options and writing them to the standard drirc file
 
Old 09-23-2023, 04:47 PM   #2857
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0, slackware64-current, slackware-14.0
Posts: 562

Rep: Reputation: 322Reputation: 322Reputation: 322Reputation: 322
May we get pure-ftpd added from the release of v15.1 ?

If not in the main tree, perhaps in /extra ?

https://slackbuilds.org/repository/1...ork/pure-ftpd/

Freshly upgraded from the older v1.0.49 to the newer v1.0.51

Works perfectly on 15.0 and on current.
 
Old 09-24-2023, 05:16 AM   #2858
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Puppy, Slackware
Posts: 92

Rep: Reputation: 18
Can I request that AAC be enabled in ffmpeg please? The native ffmpeg implementation is free of Fraunhofer encumbrance and is compatible with GPL, although it may not be the best quality. I'm sure that will improve in due course.

Code:
--enable-encoder=aac
It's a PITA to convert everything to matrotska from my phone so I can easily concat clips, or even convert a simple wav for including in an mp4.

Thanks for consideration and apologies if this has already been considered and rejected for whatever reason.

EDIT: so apparently in the US this can't be done due to patents; too bad

Last edited by 01micko; 09-24-2023 at 06:35 AM.
 
Old 09-24-2023, 07:34 AM   #2859
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,026

Rep: Reputation: 618Reputation: 618Reputation: 618Reputation: 618Reputation: 618Reputation: 618
Forgot to add quote

Last edited by 3rensho; 09-24-2023 at 07:36 AM.
 
Old 09-24-2023, 07:35 AM   #2860
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,026

Rep: Reputation: 618Reputation: 618Reputation: 618Reputation: 618Reputation: 618Reputation: 618
Quote:
Originally Posted by 01micko View Post
Can I request that AAC be enabled in ffmpeg please? The native ffmpeg implementation is free of Fraunhofer encumbrance and is compatible with GPL, although it may not be the best quality. I'm sure that will improve in due course.

Code:
--enable-encoder=aac
It's a PITA to convert everything to matrotska from my phone so I can easily concat clips, or even convert a simple wav for including in an mp4.

Thanks for consideration and apologies if this has already been considered and rejected for whatever reason.

EDIT: so apparently in the US this can't be done due to patents; too bad
Have a look at AlienBOB's restricted SlackBuilds
 
Old 09-24-2023, 08:08 AM   #2861
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 540

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Didier Spaier View Post
kbd-1.153 shipped in Slackware-current is 11 years old.
Some testing was already done with version 2.x: http://www.slackware.com/~rworkman/kbd/
See also https://www.linuxquestions.org/quest...-a-4175686156/
 
1 members found this post helpful.
Old 09-24-2023, 11:15 AM   #2862
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,067

Rep: Reputation: Disabled
Quote:
Originally Posted by franzen View Post
Thanks for the reminder. Why Robby's work has not been included yet is a mystery.

Last edited by Didier Spaier; 09-24-2023 at 11:41 AM.
 
Old 09-24-2023, 11:43 AM   #2863
ArTourter
Member
 
Registered: Oct 2010
Location: Frome, UK
Distribution: Slackware, CentOS, Rocky
Posts: 66

Rep: Reputation: 29
lua.pc in lua packages points to /usr/local as prefix when it should be /usr. This prevents some lua packages from SBo to install in the right place and therefore be detected by lua itself.

I thought it was something to fix in the slackbuild but the file is written outside of it anyway so easily fixed.

Hope this helps
 
Old 09-24-2023, 02:53 PM   #2864
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by ArTourter View Post
lua.pc in lua packages points to /usr/local as prefix when it should be /usr. This prevents some lua packages from SBo to install in the right place and therefore be detected by lua itself.

I thought it was something to fix in the slackbuild but the file is written outside of it anyway so easily fixed.

Hope this helps
Generally,the PATH for packages looking up stuff, should be set as:

Code:
"PATH=/usr,/opt,/usr/local"
for comprehensive coverage when looking for directories and files. Maybe an overlook?
 
Old 09-24-2023, 03:26 PM   #2865
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,067

Rep: Reputation: Disabled
kbd-163 (follow-up)

Addendum to this post: also an useful feature would be the ability to to compute or select map files based on the X settings (layout,variant,options), as do Debian with console-setup and the scripts ckbcomp (big perl script) and ckbcomp-mini (small shell script that select relevant lines in files gathering pre-generated maps, useful in an installer) and others. For instance Fedora ships a package kbd-legacy with the maps already included in the kbd source archive and a package kbd-misc including the map files associated with the lists of layouts, variants and options provided by xorg-config (also using ckbcomp from Debians' console-setup). Alpine does something similar as shown in this APKBUILD, using ckbcomp[1].

This allows to select a console keymap based on the language/layout/variant/options chosen, displaying an associated description (found in Slackware in /etc/X11/xkb/rules/base.lst) instead of a rather cryptic file name as have legacy keymaps.

PS I have suggested to include console-setup in Slackware and Anton Zinoviev proposed to help package it for Slackware, see this 10 years old thread

[1]To build bmap files compatible with BusyBox' loadkmap

Last edited by Didier Spaier; 09-25-2023 at 06:26 AM. Reason: note [1] added.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration