Linux Tricks: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
Created page with "=== Color change when connected remotely === '''Problem:''' after ssh to linux machine from macbook laptop, it keeps asking about some color settings (create color profile et..."
 
Boiarino (talk | contribs)
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Color change when connected remotely ===
=== Color change when connected remotely ===


'''Problem:''' after ssh to linux machine from macbook laptop, it keeps asking about some color settings (create color profile etc), and keeps asking for password; none of passwords actually works, and it keeps asking again and again.
'''Problem:''' after opening vnc session to linux machine from macbook laptop, small window pops up asking about some color settings (create color profile etc), and keeps asking for password; none of passwords actually works, and it keeps asking again and again.


'''Fix:''' on linux machine, create file ''/etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla'' with permissions 644 and following contents:
'''Fix:''' on linux machine, create file ''/etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla'' with permissions 644 and following contents:
Line 10: Line 10:
  ResultInactive=no
  ResultInactive=no
  ResultActive=yes
  ResultActive=yes
=== Enable systemd log persistency (remember all reboots, not only last one) ===
Run ''emacs /etc/systemd/journald.conf'', set
Storage=persistent
Do following:
mkdir /var/log/journal
systemd-tmpfiles --create --prefix /var/log/journal
systemctl restart systemd-journald

Latest revision as of 10:10, 16 May 2025

Color change when connected remotely

Problem: after opening vnc session to linux machine from macbook laptop, small window pops up asking about some color settings (create color profile etc), and keeps asking for password; none of passwords actually works, and it keeps asking again and again.

Fix: on linux machine, create file /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla with permissions 644 and following contents:

[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes


Enable systemd log persistency (remember all reboots, not only last one)

Run emacs /etc/systemd/journald.conf, set

Storage=persistent

Do following:

mkdir /var/log/journal
systemd-tmpfiles --create --prefix /var/log/journal
systemctl restart systemd-journald