Post installation: Difference between revisions

From Alpine Linux
(Created page with "{{Draft|This page "should" contain accurate and up to date information but is a work in progess}} == Post installation recommendations == <br> When '''#''' is displayed in a...")
 
(blanked page as all content moved and added REDIRECT)
Tag: New redirect
 
(102 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{Draft|This page "should" contain accurate and up to date information but is a work in progess}}
#REDIRECT [[Installation#Post-Installation]]
 
== Post installation recommendations ==
<br>
 
When '''#''' is displayed in a command that means the command needs to be run with root privileges,
 
Anything in < > is likely just a placeholder that you need to replace (e.g <editor> file.txt)
 
<br>
== Creating a new user account ==
 
After installing Alpine by default you only get a root account. You will probably want to create an account that is not root,
 
{{cmd|# adduser <YourUsername>}}
replace <YourUsername> with the username of your choice
 
<br>
 
You will probably want to install '''doas''' so we can allow <YourUsername> to use root privileges
{{cmd|# apk add doas}}
 
<br>
 
If you want your user to be able to use root privileges add them to the Wheel group
{{cmd|# adduser <YourUsername> wheel}}
 
<br>
 
Allow members of the '''Wheel''' group to use root privileges with doas:
 
{{cmd|# <editor> /etc/doas.d/doas.conf}}
 
add this to a new line:
{{cmd|# permit persist :wheel}}
 
<br>
 
Switch to the new account type '''exit''' in the shell and login with the new user,
 
<br>
 
By default the permissions of your new user(s) home directory may be limited to the root account, run one of these commands to change that:
 
{{cmd|# chmod 700 /home/<YourUsername>}}
 
or
 
{{cmd|# chmod 777 /home/<YourUsername>}}
 
<br>
 
== Repositories ==
<br>
 
By default only the '''main'' repository is enabled, most users will probably want the '''community''' repository,
 
<br>
 
{{cmd|# <editor> /etc/apk/repositories}}
 
<br>
 
Example default configuration:

Latest revision as of 04:17, 29 May 2025