Skip to content

Instantly share code, notes, and snippets.

@ochinchina
Last active August 29, 2015 14:27
Show Gist options
  • Save ochinchina/2a68e74b5670c3391684 to your computer and use it in GitHub Desktop.
Save ochinchina/2a68e74b5670c3391684 to your computer and use it in GitHub Desktop.
some experience on archlinux

###install openssh

$ sudo pacman -Sy openssh
$ sudo systemctl enable sshd
$ sudo systemctl start sshd

###enable DHCP

add & edit the file /etc/systemd/network/MyDhcp.network with following contents:

[Match]
Name=en*

[Network]
DHCP=ipv4

Then enable and start the systemd.networkd

$ sudo systemctl enable systemd-networkd
$ sudo systemctl start systemd-networkd

###install net-tools

the net-tools package includes some network utilities, such as "netstat"

$ sudo pacman -Sy net-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment