Add 05x scripts

This commit is contained in:
Donovan Glover 2018-08-31 15:36:58 -04:00
parent 1610ac144c
commit 7415ec3fa4
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
5 changed files with 63 additions and 0 deletions

11
sh/051-dhcpcd Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# The DHCP client daemon (dhcpcd) is used for internet / LAN access.
# By enabling it as a service, we don't have to manually execute it
# every time at logon.
#
# https://wiki.archlinux.org/index.php/Dhcpcd
set -xe
systemctl enable dhcpcd.service

9
sh/052-timezone Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
#
# Set the timezone through systemd.
#
# https://wiki.archlinux.org/index.php/Time
set -xe
timedatectl set-timezone America/New_York

9
sh/053-ntp Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
#
# Sync the time periodically with a remote server.
#
# https://wiki.archlinux.org/index.php/Systemd-timesyncd
set -xe
timedatectl set-ntp true

20
sh/054-iwd Normal file
View File

@ -0,0 +1,20 @@
#!/bin/sh
#
# Use iwd if you want to connect over a wireless network.
#
# Once the service is started, you can control it with `iwctl`.
#
# List all available commands: help
# List all wifi devices: device list
# Scan for networks: device <interface> span
# List networks: device <interface> get-networks
# Connect to a WPA2 protected network:
# device <interface> connect <network_name>
#
# https://wiki.archlinux.org/index.php/Iwd
set -xe
sudo pacman -S iwd
systemctl enable iwd.service

14
sh/055-vim Normal file
View File

@ -0,0 +1,14 @@
#!/bin/sh
#
# Vim is the standard text editor.
#
# https://wiki.archlinux.org/index.php/Vim
set -xe
pacman -S vim
pacman -S neovim
# Add the `undo` directory for regular vim
mkdir -p ~/.vim/undo