Commit be39e20c authored by Klaus Frank's avatar Klaus Frank

Update ~/.neomutt/neomuttrc, ~/.offlineimaprc, /etc/profile.d/prompt.sh,...

Update ~/.neomutt/neomuttrc, ~/.offlineimaprc, /etc/profile.d/prompt.sh, /etc/systemd/resolved.conf, arch-linux-install.sh, README.md, LICENSE files
Deleted .offlineimaprc, prompt.sh, resolved.conf files
parent b508dc9b
MIT License
Copyright (c) 2019 Klaus Frank (agowa338)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# Arch Linux Install
This repository shortens the path to install a full archlinux system by compressing the
ArchLinux wiki into just the relevant commandline commands, without long explanations.
This guide is entended for advanced linux users, that know what they do (at least slightly)
and either just want to get a quick start on how to install ArchLinux without skim reading
the wiki.
If you're new to Linux in generell, this guide is not for you, you may want to use the
official [Installation Guide](https://wiki.archlinux.org/index.php/Installation_guide) instead.
......@@ -3,7 +3,7 @@
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
dd if=archlinux.img | dd of=/dev/sdX bs=16M; sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
......@@ -15,23 +15,21 @@ wifi-menu
# Create partitions
cgdisk /dev/sda
# For grub:
# For grub (legacy):
# 1 100MB EFI partition # Hex code ef00
# 2 250MB Boot partition # Hex code 8300
# 3 100% size partiton # (to be encrypted) Hex code 8300
#
# For systemd-boot (default for rest of this):
# 1 350MB Boot partition # Hex code ef00
# 2 100% size partiton # (to be encrypted) Hex code 8300
mkfs.vfat -F32 /dev/sda1
mkfs.ext2 /dev/sda2
# For grub also: mkfs.ext2 /dev/sda2
# Setup the encryption of the system
# For Grub:
# cryptsetup -c aes-xts-plain64 -y --use-random luksFormat /dev/sda3
# cryptsetup luksOpen /dev/sda3 luks
cryptsetup -c aes-xts-plain64 -y --use-random luksFormat /dev/sda2
cryptsetup luksOpen /dev/sda2 luks
cryptsetup -c aes-xts-plain64 -y --use-random luksFormat /dev/sda2 # sda3 for setup with grub
cryptsetup luksOpen /dev/sda2 luks # sda3 for setup with grub
# Create encrypted partitions
# This creates one partions for root, modify if /home or other partitions should be on separate partitions
......@@ -48,10 +46,11 @@ mkswap /dev/mapper/vg0-swap
mount /dev/mapper/vg0-root /mnt # /mnt is the installed system
swapon /dev/mapper/vg0-swap # Not needed but a good thing to test
mkdir /mnt/boot
# For Grub:
# For setup with grub:
# mount /dev/sda2 /mnt/boot
# mkdir /mnt/boot/efi
# mount /dev/sda1 /mnt/boot/efi
#
# For systemd-boot:
mount /dev/sda1 /mnt/boot
......@@ -77,7 +76,7 @@ hwclock --systohc --utc
echo MYHOSTNAME > /etc/hostname
# Set DNS-Server
# Copy resolved.conf to /etc/systemd/resolved.conf
# Copy /etc/systemd/resolved.conf (from this repository) to /etc/systemd/resolved.conf
systemctl enable systemd-resolved.service
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
......@@ -174,7 +173,7 @@ echo 'alias ls="ls --color=auto"' > /etc/profile.d/ls-color.sh # colorate ls out
echo 'alias xclip="xsel --clipboard"' > /etc/profile.d/xclip.sh # register xclip as alias for xsel to access clipboard from bash
echo -e 'export http_proxy=""\nexport https_proxy=""\nexport ftp_proxy=""\nexport socks_proxy=""' > /etc/profile.d/proxy.sh # Provide empty proxy variable for buggy applications.
echo -e 'WINEPREFIX="$HOME/.wine32"\nWINEARCH=win32' > /etc/profile.d/wine.sh #
# TODO: Save prompt.sh as /etc/profile.d/prompt.sh
# TODO: Save /etc/profile.d/prompt.sh (from this repository) as /etc/profile.d/prompt.sh
# TODO: Add yubikey seps:
# - to allow client auth in firefox and chrome)
......@@ -196,9 +195,21 @@ mkinitcpio -p linux
echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers
# Add real user
useradd -m -g users -G wheel -s /bin/zsh user
useradd -m -g users -G wheel -s /bin/bash user
passwd user
# TODO: Copy .offlineimaprc to /home/user/.offlineimaprc
# TODO: Copy ~/.offlineimaprc (from this repository) to /home/user/.offlineimaprc
chmod 0400 /home/user/.offlineimaprc
chown user:user /home/user/.offlineimaprc
# TODO: Add credentials to /home/user/.offlineimaprc file
# TODO: Copy ~/.neomutt/neomuttrc (from this repository) to /home/user/.neomutt/neomuttrc
chmod 0500 /home/user/.neomutt
chmod 0400 /home/user/.neomutt/neomuttrc
chown user:user /home/user/.offlineimaprc
# TODO: Add stepps for sending emails using smarthost from within neomutt.
# TODO: Logoff and logon as user again.
systemctl --user cat offlineimap-oneshot@MSExchange.timer
systemctl --user cat offlineimap-oneshot@MSExchange.service
#!/bin/bash
# Configure prompt to show more information
# Git Repository status
......
set mail_check_stats
set folder="~/mail"
set alias_file="~/.neomutt/mail_aliases" # Tell the alias command where to save new aliases
set record="~/.neomutt/sent" # Where to place outbound mails
set postponed="~/.neomutt/postponed" # Postponed messages file
set assumed_charset=iso-8859-2:utf8
set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
set sidebar_visible # Make the sidebar visible by default
set sidebar_short_path # Shorten mailbox names
set sidebar_folder_indent # Indent all shortened folder names
# Enable after offlineimap delimiter bug is fixed
#set sidebar_delim_chars="/" # Delete everything up to the last / character
color sidebar_indicator default color17 # Dark blue background
color sidebar_highlight white color238 # Grey background
color sidebar_spoolfile yellow default # Yellow
color sidebar_new green default # Green
color sidebar_ordinary default default # Default colors
color sidebar_flagged red default # Red
color sidebar_divider color8 default # Dark grey
bind index,pager <C-Left> sidebar-toggle-visible # Use 'B' to switch the Sidebar on and off
bind index,pager <C-Up> sidebar-prev # Move the highlight to the previous mailbox
bind index,pager <C-Down> sidebar-next # Move the highlight to the next mailbox
bind index,pager <C-Right> sidebar-open # Open the highlighted mailbox
bind compose f "edit-from" # edit the from: field
bind compose \ef "edit-fcc" # enter a file to save a copy of this message in
# Include other configuration files
source ~/.neomutt/mailboxes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment