Post installation: Difference between revisions
Guest09248 (talk | contribs) |
Guest09248 (talk | contribs) No edit summary |
||
Line 54: | Line 54: | ||
<br> | <br> | ||
By default only the '''main'' repository is enabled, most users will probably want the '''community''' repository, | By default only the '''main''' repository is enabled, most users will probably want the '''community''' repository, | ||
<br> | <br> | ||
Line 70: | Line 70: | ||
#http://dl-cdn.alpinelinux.org/alpine/edge/community | #http://dl-cdn.alpinelinux.org/alpine/edge/community | ||
#http://dl-cdn.alpinelinux.org/alpine/edge/testing}} | #http://dl-cdn.alpinelinux.org/alpine/edge/testing}} | ||
{{Note|The edge repositories contain unstable and/or possibly untested packages use at your own risk!}} | |||
<br> | |||
To avoid having to manually update the verison in '''/etc/apk/repositories''' for each Alpine Linux update change '''v.3.15''' to '''latest-stable''' | |||
Example: | |||
{{cat|/etc/apk/repositories|#/media/cdrom/apks | |||
http://dl-cdn.alpinelinux.org/alpine/latest-stable/main | |||
# http://dl-cdn.alpinelinux.org/alpine/latest-stable/community | |||
#http://dl-cdn.alpinelinux.org/alpine/edge/main | |||
#http://dl-cdn.alpinelinux.org/alpine/edge/community | |||
#http://dl-cdn.alpinelinux.org/alpine/edge/testing}} | |||
<br> | |||
For security purposes it may be a good idea to change the links from '''http''' to '''https''' | |||
Example: | |||
{{cat|/etc/apk/repositories|#/media/cdrom/apks | |||
https://dl-cdn.alpinelinux.org/alpine/v3.15/main | |||
# https://dl-cdn.alpinelinux.org/alpine/v3.15/community | |||
#https://dl-cdn.alpinelinux.org/alpine/edge/main | |||
#https://dl-cdn.alpinelinux.org/alpine/edge/community | |||
#https://dl-cdn.alpinelinux.org/alpine/edge/testing}} |
Revision as of 20:52, 6 December 2021
This material is work-in-progress ... This page "should" contain accurate and up to date information but is a work in progess |
Post installation recommendations
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)
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,
# adduser <YourUsername>
replace <YourUsername> with the username of your choice
You will probably want to install doas so we can allow <YourUsername> to use root privileges
# apk add doas
If you want your user to be able to use root privileges add them to the Wheel group
# adduser <YourUsername> wheel
Allow members of the Wheel group to use root privileges with doas:
# <editor> /etc/doas.d/doas.conf
add this to a new line:
# permit persist :wheel
Switch to the new account type exit in the shell and login with the new user,
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:
# chmod 700 /home/<YourUsername>
or
# chmod 777 /home/<YourUsername>
Repositories
By default only the main repository is enabled, most users will probably want the community repository,
# <editor> /etc/apk/repositories
Example default configuration:
Contents of /etc/apk/repositories
To avoid having to manually update the verison in /etc/apk/repositories for each Alpine Linux update change v.3.15 to latest-stable
Example:
Contents of /etc/apk/repositories
For security purposes it may be a good idea to change the links from http to https
Example:
Contents of /etc/apk/repositories