Linux System Configuration: Difference between revisions
Jump to navigation
Jump to search
m Added Debian information |
m Added Configurations for Void |
||
Line 13: | Line 13: | ||
{| style="margin-left:auto;margin-right:auto;text-align:left;" | {| style="margin-left:auto;margin-right:auto;text-align:left;" | ||
| {{hc|/etc/systemd/logind.conf|2= | | {{hc|/etc/systemd/logind.conf|2= | ||
<nowiki>... | |||
HandleLidSwitch=ignore | |||
...</nowiki>}} | |||
|} | |||
| | |||
{| style="margin-left:auto;margin-right:auto;text-align:left;" | |||
| {{hc|/etc/elogind/logind.conf|2= | |||
<nowiki>... | <nowiki>... | ||
HandleLidSwitch=ignore | HandleLidSwitch=ignore | ||
Line 20: | Line 27: | ||
| Time Zone | | Time Zone | ||
| <code>ln -s /etc/zoneinfo/<Country>/<City> /etc/localtime</code> | | <code>ln -s /etc/zoneinfo/<Country>/<City> /etc/localtime</code> | ||
| colspan= | | colspan=3 | <code>ln -s /usr/share/zoneinfo/<Country>/<City> /etc/localtime</code> | ||
|- | |- | ||
| Locale Availability | | Locale Availability | ||
Line 73: | Line 80: | ||
|} | |} | ||
| <code>dpkg-reconfigure keyboard-configuration</code><br /><code>setupcon</code> | | <code>dpkg-reconfigure keyboard-configuration</code><br /><code>setupcon</code> | ||
| rowspan=2 | | |||
{| style="margin-left:auto;margin-right:auto;text-align:left;" | |||
| {{hc|/etc/rc.conf|2= | |||
<nowiki>... | |||
KEYMAP=us | |||
... | |||
FONT=Lat2-Terminus16 | |||
...</nowiki>}} | |||
|} | |||
|- | |- | ||
| Console Font | | Console Font | ||
Line 79: | Line 95: | ||
|- | |- | ||
| Hostname | | Hostname | ||
| colspan= | | colspan=4 |<code>echo "hostname" > /etc/hostname</code> | ||
|- | |- | ||
| Hosts | | Hosts | ||
| colspan= | | colspan=4 | | ||
{| style="margin-left:auto;margin-right:auto;text-align:left;" | {| style="margin-left:auto;margin-right:auto;text-align:left;" | ||
| {{hc|/etc/hosts|2= | | {{hc|/etc/hosts|2= | ||
Line 117: | Line 133: | ||
|- | |- | ||
| User Creation | | User Creation | ||
| colspan= | | colspan=4 | <code>useradd -m -u <nnnn> -g users -G wheel,games,video,audio,optical,storage,scanner,power <username></code> | ||
|- | |- | ||
| Passwords | | Passwords | ||
| colspan= | | colspan=4 | <code>passwd <username></code> | ||
|- | |- | ||
| Package Manager | | Package Manager | ||
Line 216: | Line 232: | ||
|- | |- | ||
| NanoRC | | NanoRC | ||
| colspan= | | colspan=4 | | ||
{| style="margin-left:auto;margin-right:auto;" | {| style="margin-left:auto;margin-right:auto;" | ||
| | | | ||
Line 243: | Line 259: | ||
| style="vertical-align:top" | | | style="vertical-align:top" | | ||
{{hc|/root/.nanorc|2= | {{hc|/root/.nanorc|2= | ||
<nowiki>set titlecolor | <nowiki># nano < 5.0 (Ubuntu 20.04 = 4.8) | ||
set | set titlecolor brightwhite,magenta | ||
set statuscolor bold,lightwhite,magenta | set statuscolor brightwhite,magenta | ||
set errorcolor bold,lightwhite,red | set errorcolor brightwhite,red | ||
set spotlightcolor black,orange | |||
set selectedcolor | # 6.0 < nano >=5.0 (Debian 11 Bullseye = 5.2) | ||
# set titlecolor bold,lightwhite,magenta | |||
# set statuscolor bold,lightwhite,magenta | |||
# set errorcolor bold,lightwhite,red | |||
# set scrollercolor magenta | |||
# nano >=6.0 (Arch, Void) | |||
# set promptcolor black,yellow | |||
# set spotlightcolor black,orange | |||
# All of nano | |||
set selectedcolor brightwhite,cyan | |||
set stripecolor ,yellow | set stripecolor ,yellow | ||
set numbercolor magenta | set numbercolor magenta | ||
set keycolor | set keycolor brightmagenta | ||
set functioncolor magenta</nowiki>}} | set functioncolor magenta | ||
</nowiki>}} | |||
|} | |} | ||
|} | |} | ||
|- | |- | ||
| sudo | | sudo | ||
| colspan= | | colspan=4 | | ||
{| style="margin-left:auto;margin-right:auto;text-align:left;" | {| style="margin-left:auto;margin-right:auto;text-align:left;" | ||
| | | |
Latest revision as of 21:42, 15 March 2022
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
|
|
dpkg-reconfigure keyboard-configuration setupcon
|
| |||||
Console Font | ${EDITOR} /etc/conf.d/consolefont; rc-update add consolefont boot
|
dpkg-reconfigure console-setup
| |||||||
Hostname | echo "hostname" > /etc/hostname
| ||||||||
Hosts |
| ||||||||
Initramfs | ${EDITOR} /etc/mkinitfs.conf; mkinitfs
|
| |||||||
User Creation | useradd -m -u <nnnn> -g users -G wheel,games,video,audio,optical,storage,scanner,power <username>
| ||||||||
Passwords | passwd <username>
| ||||||||
Package Manager |
|
To enable multilib on Debian-based distros: | |||||||
NanoRC |
| ||||||||
sudo |
| ||||||||
PolicyKit rootpw |
|
| |||||||
Sticky bit directories |
| ||||||||
NTP Client ([Open]NTP) |
| ||||||||
NTP Client (systemd-timesyncd) |
| ||||||||
NTP Server |
| ||||||||
Plymouth |
| ||||||||
SMARTd |
| ||||||||
Limit Logs |
| ||||||||
Reduced service timeout |
| ||||||||
systemd-resolved local host name resolution |
| ||||||||
systemd-resolved with avahi |
| ||||||||
Default Editor |
| ||||||||
Video Acceleration |
|