Linux System Configuration: Difference between revisions
Jump to navigation
Jump to search
Switched Alpine and Arch, added new categories |
m Added PAM rootpw and Sticky bit directories |
||
Line 85: | Line 85: | ||
| <code>${EDITOR} /etc/mkinitfs.conf; mkinitfs</code> | | <code>${EDITOR} /etc/mkinitfs.conf; mkinitfs</code> | ||
| <code>${EDITOR} /etc/mkinitcpio.conf; mkinitcpio -P</code> | | <code>${EDITOR} /etc/mkinitcpio.conf; mkinitcpio -P</code> | ||
|- | |||
| PAM rootpw | |||
| colspan=2 | | |||
{| style="margin-left:auto;margin-right:auto;text-align:left;" | |||
| {{hc|/etc/polkit-1/rules.d/49-rootpw_global.rules|2= | |||
<nowiki>// Always authenticate Admins by prompting for the root password | |||
// similar to the rootpw option in sudo | |||
polkit.addAdminRule(function(action, subject) { | |||
return ["unix-user:root"]; | |||
});</nowiki>}} | |||
|} | |||
|- | |||
| Sticky bit directories | |||
| colspan=2 | | |||
{| style="margin-left:auto;margin-right:auto;text-align:left;" | |||
| {{hc|/etc/sysctl/stickbit.conf|2= | |||
<nowiki># Allow the creation regular files in world-writable sticky directories | |||
# when the file owner doesn't match that of the directory | |||
fs.protected_regular=0</nowiki>}} | |||
|} | |||
|- | |- | ||
| NTP Client<br >([Open]NTP) | | NTP Client<br >([Open]NTP) |
Revision as of 20:37, 11 May 2021
Description | Alpine | Arch | Debian | Void |
---|---|---|---|---|
Laptop Lid Switch Fix |
|
| ||
Time Zone | ln -s /etc/zoneinfo/<Country>/<City> /etc/localtime
|
ln -s /usr/share/zoneinfo/<Country>/<City> /etc/localtime
| ||
Locale Availability | apk add musl-locales
|
${EDITOR} /etc/locale.gen; locale-gen
| ||
Locale Selection |
|
| ||
Keymap | setup-keymap
|
| ||
Console Font | ${EDITOR} /etc/conf.d/consolefont; rc-update add consolefont boot
| |||
Hostname | ${EDITOR} /etc/hostname
| |||
Hosts | ${EDITOR} /etc/hosts
| |||
Initramfs | ${EDITOR} /etc/mkinitfs.conf; mkinitfs
|
${EDITOR} /etc/mkinitcpio.conf; mkinitcpio -P
| ||
PAM rootpw |
| |||
Sticky bit directories |
| |||
NTP Client ([Open]NTP) |
| |||
NTP Client (systemd-timesyncd) |
| |||
NTP Server |
| |||
SMARTd |
| |||
Limit Logs |
| |||
Reduced service timeout |
| |||
systemd-resolved with avahi |
|