[ Prev ] [ Index ] [ Next ]

Archlinux Cheat Sheet

Created lørdag 22 oktober 2016


Foreword

# Read the Github page for more details.
# Author : Henrik ( Jeppesen@tutanota.com )
# Updated Version : https://github.com/Stickano/ArchCheatSheet
# Dotfile Repository : https://github.com/Stickano/dotfiles


System Base

# The following section will help you through what I consider a bare minimum.
# Follow the below order for a somewhat painless and stable setup.


1) Arch Base Installation

Arch_Base


2 ) Network Connectivity

Check out netctl in Network


3 ) Create a new User

Check out Users and Groups in Users


4 ) Define some privileges for our newly created user

sudo


4.5 ) Consider installing Git and cloning Dotfile and CheatSheet repository

Make it a matter of copypasta!


5 ) Enable 32bit support

Check out Mirrors in Maintenance


6 ) Display Server (+xinit)

Xorg


7 ) Touchpad was mad out of the box - Configure it early

Touchpad


8 ) Stable everyday use kernel and Long Time Support (Zen & lts)

Kernels


9 ) Nvidia Video Driver

DKMS
Nvidia_proprietary (Alternative to the DKMS and Display_Driver sections)


10 ) Intel Video Driver and extended Nvidia controls

Display_Driver


11 ) AUR Support (Unofficial Packages)

Check out makepkg and cower in System Tools


12 ) Window Manager

i3 (+some)



Extended System Functionality

# Now we should have a workspace to navigate around on. Quick and Stable - yet so useless.
# We still need quite a few things, before it is what I'd consider robust system.


# We are not using a Display Manager - Define a nice Welcome Message instead

Login


# External Devices

Automount USB and HDD


# Monitor

DPMS
Backlight


# Keyboard

Fn-key


# Network

Alpha_AWUS036H


# Bluetooth

Bluez


# Sound

Pulseaudio


# Notifications

SSMTP (Emails)
Dunst (Desktop)


# Scheduled Jobs - used by some packages throughout

Cron


# Dual Booting

Windows


# Virtual Machine

VirtualBox


# Check these out too!

Additional_rather_useful_software



Performance and Improvements on Wear Down

# We are well away with our base setup.
# Before we start making our system useful for everyday tasks,
# we'll first improve some overall performance.


# Browser Performance

PSD_and_ASD


# Video Acceleration

VA-API_and_VDPAU


# Watchdog

Disable_Watchdog


# Hardware Specific

SSD
CPU
Laptop



System Tools

# Here are some of the everyday tools you will be working with - and some not so everyday.
# Much is installed by Arch Base, but there is a few additional packages and pointers.


# Some very low-level, yet good to know tools

Basic_Tools_and_General_Examples
ls (Output Explanation)
sed (Text Manipulation)


# Service Manager

Systemd


# Package Manager

Pacman


# Unofficial Packages (AUR)

makepkg
Cower
Yaourt


# Pointers on Desktop Entries (Application default run options)

Desktop_Entries


# Pointers on handling Kernel Modules

Kernel_Modules


# File Types default application (mime-types)

Mimeo



Network

# More Network information can be found throughout. This is mainly based on management
# of your network connection.


# WiFi and Ethernet Management

netctl



Users and Groups

# It is recommended to keep your User and Administrator (root) profile apart.
# Though I'm the sole user of this system, the option to manage several users
# is available in this section.


# Manage Users and Groups

Users and Groups


# Manage Permissions and some Explanation (drwx)

Permissions



Maintenance

# Awesome. Now we got a fast and stable system - and we know how to manage the basics of it!
# Before we continue to all the additional user specific packages, let's first see how we can
# keep our system at its best even after a long time of abuse.


Configure Once

# Automatically Update Mirrors

Mirrors



Revisit Frequently

# When Upgrading Packages

Pacnew_and_Pacsave


# Cleaning the Filesystem - Pacman cache, Orphans, Old configurations, Broken symlinks

Clean_the_Filesystem



When Needed

# Downgrade Kernels or Packages in case of problems

Downgrading



Getting Information

# This section will (hopefully) help us getting the information we need to get further.
# Whether that information might be driver, kernel hardware, network or log information
# pointers can be found in this section.


# Some tips on getting Hardware information

Hardware


# Logs, Kernel Modules, Drivers and Application information

Software


# Connectivity - Mainly ss network tool

Network


# System Journal

journalctl



Shell and Terminal

# Now let us begin with some of the fun stuff. I find myself staring in a terminal window
# quite often. Such a wonderful (and powerful) tool needs a little extra caress^


# Extended functionality with Aliases and Functions

Aliases
Functions


# Shell

Zsh


# Terminal

rxvt-unicode
Xresources (a little out of category, but hey)


# Terminal Wrapper

Gnu_Screen


# A little extra!

Additional Terminal Packages
Terminal_Keks (lolcat, fortune, cowsay)



Security

Several security steps has been taken - but several more could probably be added.


# Anti Virus

clamav


# IDS

Tripes


# Firewall

iptables
iptable_rules (25 common rules)
ipset
Fail2ban
Uncomplicated_Firewall


# Password Manager

KeePass


# Security Audit

lynis


# Secure Browsing

Tor



Preferred Software

# We've come a long way.
# Now let's look at some useful tools, so we can get on with our lives.


GUI Tools

# Web Browser

Firefox
Chromium


# Office Suite

LibreOffice



CLI Tools

# Text Editor

Vim


# File Manager

Ranger


# Bookmark Manager

Buku


# News

Haxor-news
Reddit_Terminal_Viewer


# IRC

irssi


# Video Player

mplayer


# Music Player

Cmus


# Image Viewer (Also used to display a Wallpaper)

Feh



A little bit of both

# Random list of goodies!

Additional_Badass_Software



Eye Candy

# We'll pimp our system a little - make a pleasant on the eyes^


# Themes for various situations

Theming


# Some delicious fonts

Fonts


# Random list of orgasm for the eyes!

Additional_sweetass_software



Development

# With a few years on my back as a Web Developer and a passion to generally learn new
# development techniques, this section will handle exactly that.


# Development Control

Git


# Integrated Development Environment

Sublime
MonoDevelopment


# Web Services

LAMP
SASS


# Images/Design

Gimp


# Random Goodies

Create_Gif
HTML_Validator (totalvalidatorbasic)
Composer (PHP Dependency Manager)
Laravel



Gaming

# Ain't nobody got time for that.. I still like the opportunity though.


# 100+ Linux Games on Steam \o/

Steam


# Game Specific Troubleshoot

Wasteland_2



SSH

# Having an old computer act as server (whatever its purpose), is a great use of old hardware
# and a great waste of valuable time! This section will help you communicate with that spoiled
# little time consumer. Oh joy!


# SSH Server and Client Setup

Server_and_Client


# SSH Keys

Keys


# SSH Agent - Providing SSH keys to requesting services

Agent


# Transfer files via SSH

scp



Crypto

# Cryptography is a mighty interesting subject - Hope I will be able to learn more about
# the subject at some point.


# GnuPG - Encrypt/decrypt your files/messages

GPG


# Crypto Currency - Coin Farmer

monero



Analysis

# Here is a few tools to gather that additional information.


# Network Host Scanner

nmap


# Network Packet Monitor

wireshark




Pentest

# A few offensive tools and pointers.


# The suites of all suites

aircrack-ng
Metasploit


# Web

Websploit
Proxychains
SqlMap



Key Binds

# At this point I have no more configurations or packages to throw at you.
# Hope it was manageable. Bare in mind, that his was not actually meant to teach you
# the technical stuff, but rather how to quickly install, configure and a quick scope of it capabilities.
# At this point, I would suggest you to trim down all this nonsense text. Get a better overview.
# Happy Tinkering!


# Phew, that sure was a lot of configuration. At this point we've already forgot what we are
# capable of. Good thing this section is a throwback section - covering only the most necessary
# handling.


# Navigate the Window Manager

i3_mapping


# Our Text Editor

vim_mapping


# Our Developer IDE

Sublime_mapping


# Actions from our Terminal (Missing Aliases and Functions)

Terminal


# Navigating our File Manager

Ranger_mapping



Random Additionals

# Create Windows (EFI) bootable USB from Linux

Windows_Booltable