Arch Setup: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
=Introduction= | =Introduction= | ||
This page is about providing information around setting up Arch Linux. I have chosen to use this as opposed to Ubuntu because it is a lot smaller and seems to be a popular choice | This page is about providing information around setting up Arch Linux. I have chosen to use this as opposed to Ubuntu because it is a lot smaller and seems to be a popular choice | ||
=Pacman= | =Pacman (apt for Arch Linux)= | ||
So here are the commands for pacman | So here are the commands for pacman | ||
==Install== | ==Install== | ||
Line 13: | Line 13: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Purge== | ==Purge== | ||
<syntaxhighlight lang="bash"> | |||
</syntaxhighlight> | |||
==Search== | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 03:57, 5 July 2021
Introduction
This page is about providing information around setting up Arch Linux. I have chosen to use this as opposed to Ubuntu because it is a lot smaller and seems to be a popular choice
Pacman (apt for Arch Linux)
So here are the commands for pacman
Install
Remove
List
Purge
Search
Docker File
This is my base Docker for Archlinux
FROM archlinux:latest
LABEL org.opencontainers.image.authors="iwiseman@bibble.co.nz"
# Update the repositories
RUN pacman -Sy --noconfirm
# Install openssh etc...
RUN pacman -S --noconfirm openssh which
# Install dovecot
RUN pacman -S --noconfirm dovecot
# Make service directory
RUN mkdir -p /var/run/sshd
# Change root password
RUN echo "root:root" | chpasswd
# Generate host keys
RUN /usr/bin/ssh-keygen -A
# Fix sshd
RUN sed -i 's/#\?PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config
# Expose tcp port
EXPOSE 22
# Run openssh daemon
CMD ["/usr/sbin/sshd", "-D"]