U bekijkt momenteel de Netherlands versie van de site.
Wilt u overschakelen naar uw lokale site?
13 MIN LEESTIJD

Answers

Got a burning question about open source or the kernel? Whatever your level, email it to answers@linuxformat.com

Neil Bothwick counts 0s and 1s to try and get to sleep at night.
Gnome Keyring needs a keyring called login to have it automatically opened by PAM when you log in to your desktop session.

Q Beyond LFS

You did an excellent couple of articles on Linux From Scratch (LXF286 and LXF287). It is a great project. Very educational. However I came a cropper when I progressed to Beyond Linux From Scratch. I cannot get Gnome Keyring to load without asking for a password every time (Evolution is using this). I have this line in my .config/openbox/environment file to start it:

eval $(gnome-keyring-daemon)

From extensive ‘Quacking’, I have tried all sorts of tricks with PAM settings and so on. I am using the same password on the keyring as my login password.

A In order for Gnome Keyring to unlock automatically, it has to be started by PAM. First you have to make sure PAM is built with the correct options, which are --enable-pam and --with-pamdir=/lib64/security. The directory passed to the latter option is the one containing the PAM libraries, such as pam_unix.so. Then you need to configure PAM accordingly. Edit /etc/pam.d/gdm to add

auth optional pam_gnome_ keyring.so to the end of the auth block and

session optional pam_gnome_ keyring.so auto_start

to the end of the session block. In the file /etc/pam.d/gdm, add:

auth optional pam_gnome_ keyring.so and:

session optional pam_gnome_ keyring.so auto_start

to the auth and session blocks respectively. Finally, add:

password optional pam_gnome_keyring. so

to the password block of /etc/pam.d/ passwd. This starts the Gnome Keyring daemon and opens a keyring called login. If the keyring does not exist, it is created, with the same password as your user. When you open any other keyring, you still have to give its password, but you are given the option to save this to the login keyring. Then the other keyrings can be automatically unlocked whenever they are needed.

Alternatively, you could store everything in the login keyring, which is a simpler approach if you do not already have data stored in other keyrings.

Q Nice but not dim

We have installed Ubuntu 22.04.2 (with updates activated) on to my wife’s Apple iMac MC812X/A. It works a treat, but we cannot control the screen brightness – it is always at full. We would like to control it either from the keyboard or via a shortcut.

Ontgrendel dit artikel en nog veel meer met
Je kunt genieten:
Geniet volledig van deze editie
Direct toegang tot 600+ titels
Duizenden oude edities
Geen contract of verplichting
ABONNEER NU
30 dagen proberen, dan gewoon €11,99 / maand. Op elk moment opzeggen. Alleen nieuwe abonnees.


Meer informatie
Pocketmags Plus
Pocketmags Plus

Dit artikel komt uit...


View Issues
Linux Format
Summer 2023
IN DE WINKEL BEKIJKEN

Andere artikelen in dit nummer


Linux Format
Linux Format
The #1 open source mag Future Publishing Limited,
WELCOME
MEET THE TEAM
We’re not avoiding the office, we’re building our own and taking it with us, but what’s the oddest place you’ve found yourself doing work?
Freeeedom!
We’re all avoiding the office these days (just
REGULARS AT A GLANCE
The Red Hat paywall
Red Hat announces source code of RHEL will only be available to paying customers, who can’t redistribute it.
Lemmy numbers spike after Reddit ban
A ban on subreddits helped promote alternative Lemmy with a general boost to federated platforms.
100% free GNU Linux-libre
Bye-bye binary blobs – build a truly free system.
CLONE WARS
“Red Hat’s changes to the way it distributes
DOWN TO THE WIRE
Ashok Sidipotu is a senior software engineer at
Animated JPEGs
FFmpeg has now merged JPEG-XL support. Is this the next step to widespread adoption of the format?
Wine comes to Mac OS
Apple’s Game Porting Toolkit is based on CrossOver’s code.
A wild desktop appears!
Kera Desktop touts itself as an easy and exciting way to enjoy your favourite OS.
Distro watch
What’s behind the free software sofa?
WHAT A NUMBER!
Italo Vignoli is one of founders of LibreOffice
BE KIND PEOPLE!
Jon Masters has been involved with Linux for
Kernel Watch
Jon Masters keeps up with all the latest happenings in the Linux kernel, so you don’t have to
Mailserver
WRITE TO US Do you have a burning
CudaText
ADVANCED TEXT EDITOR
QMPlay2
MEDIA PLAYER
Mixxx
DJ SOFTWARE
Unison
FILE SYNCHRONISER
SSH-audit
SSH CONFIG ANALYSER
NormCap
COPY TEXT
Gromit-MPX
ON-SCREEN ANNOTATION
Open Fodder
SHOOT-’EM-UP
Empty Clip
RPG
LocalSend
FILE TRANSFER
Jellyfin
MEDIA SERVER
REVIEWS
WD Red Pro 20TB
High-capacity NAS OptiNAND on a platter impresses Shane Downing.
OpenSUSE 15.5
Nate Drake revisits the first Linux distro he ever used and finds that, like a fine wine, OpenSUSE has only improved with age.
Thunderbird 115
Nate Drake takes a sneak peek at the upcoming Thunderbird and finds it still comfortably ruling the roost.
Debian 12 Bookworm
Nate Drake burrows into Debian 12 (Bookworm) and is dazzled by the array of new features, including support for non-free firmware.
Roots of Pacha
Reinventing the wheel sounds like a dream to Management – they’ve sent Andrea Shearon back in time to reap the rewards!
ROUNDUP
Computer-aided design
WE COMPARE TONS OF STUFF SO YOU DON’T HAVE TO!
FREE ALL YOUR FILES
FREE ALL YOUR FILES
It’s time to stop Big Tech being in control of your online documents. Let Jonni Bidwell show you how with Nextcloud and Collabora Office.
Pi USER
Going over the Pi Pico BASICs
Relive your spaghetti code days on your Pi Pico!
I/O Learning HAT
Les Pounder wants to automate his home because his new office is too far away from the coffee machine. Maybe now he can.
Sovol SV06
Denise Bertacchi wonders what if an Ender and a Prusa MK3 had a baby?
NeoPixel URL control
Les Pounder thinks of NeoPixels as LED candy. They taste awful but look phenomenal. Will they taste better with a slice of Pi?
Set up a game development system
DEVELOPMENT
IN DEPTH
Bootstrap your LINUX career
Discover how Linux certification can help you. Stuart Burns explains the why and the how, with a few pro tips thrown in for good measure.
EVOLUTION OF CODING
Mike Bedford reveals how the programming languages of the ’50s morphed into today’s most used languages.
TUTORIALS
Multi-protocol transfer
Shashank ‘Proficient With SMB, SSH, SCP and More’ Sharma never has to rely on thumb drives to move data across different machines…
Take and organise notes with ease
Nick Peers reveals how to put your thoughts and ideas in order with the note-taking app to rule them all.
Build a static project website on GitHub
Matt Holder investigates static site generators, what they are useful for and why they are better than CMS in some situations.
Build a RISC-V LED sign
Tam Hanna takes the GigaDevice RISC-V microcontroller for a spin and creates a gadget that displays impolite messages in large red letters.
Add a little funk to mathematical plots
Always one looking to spice up his life, Ferenc Deák tries out a new function-plotting tool that’s packing a Pascal-like language.
Build your own hardware firewall
Worried about intruders and hack attacks? Nik Rawlinson shows how to take charge of network security with the BSD-based pfSense firewall.
CODING ACADEMY
Code your own Python text adventure
Nate Drake guides you through creating your own interactive text adventure with Python. This time, we LOOK at items…
Rediscover speed with the Redis revolution
REDIS
ADVERTISEMENT
GO COMPARE
go.compare
Linux Format
www.linuxformat.com www.magazinesdirect.com/LIN/B93G www.techradar.com/pro/linux
Magazines direct
www.magazinesdirect.com
Magazines Direct
magazinesdirect.com
BACK ISSUES
www.magazinesdirect.com
Magazines direct
www.magazinesdirect.com/linux-format
Techradar
techradar.com
Code club
www.codeclub.org.uk
EFF
EFF.ORG
THE BRAIN TUMOUR CHARITY
thebraintumourcharity.org
Chat
X
Pocketmags ondersteuning