Code Monkey home page Code Monkey logo

arch-install's Introduction

Tips for an Archlinux installation

Here are some brief notes about a basic archlinux installation. These notes are to be read together with the installation guide, and they reflect my personal preferences.

Beep sound in TTY

To disable the annoying beeping sound in TTY, run

echo "setterm -blength 0" >> /etc/profile.d/disable-beep.sh

Partitions

I create 4 partitions:

  • root partition (about 25G),
  • boot partition (200M),
  • swap partition (about twice the ram), and
  • home partition (rest of memory).

Caution! Use primary partition for 4th partition, not extended which is default in fdisc.

After that, format and mount the partitions:

mkswap /dev/sda3
swapon /dev/sda3
mkfs.ext4 /dev/sda1 
mkfs.ext4 /dev/sda2 
mkfs.ext4 /dev/sda4 
mount /dev/sda1 /mnt
mkdir /mnt/home
mkdir /mnt/boot
mount /dev/sda2 /mnt/boot
mount /dev/sda4 /mnt/home

Choose a couple close mirrors and pacstrap only base to save time. After change root, install reflector, generate mirrorlist by

reflector --verbose --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist

and install base-devel, gvim, git, networkmanager, dialog, grub and efibootmgr.

Change kernel to lts (keep the linux kernel as a backup) and install headers:

pacman -S linux-headers linux-lts linux-lts-headers 
grub-mkconfig -o /boot/grub/grub.cfg
reboot

Network manager

To avoid manually configurating networks after reboot, install networkmanager:

pacman -S networkmanager

and enable it:

systemctl enable NetworkManager

After reboot internet works out of the box.

User add

Add a new user

useradd -m -g wheel myname

and give him root privileges by running visudo and uncommenting wheel group (optionally pass the NOPASSWD option).

Prettify console

Install terminus fonts:

pacman -S terminus-font

To use terminus fonts in console do:

echo "FONT=ter-114n" >> /etc/vconsole.conf

Changing default shell

zsh is a much more powerful shell than bash. To list all installed shells, run:

$ chsh -l

and to set one as default for your user do:

$ chsh -s full-path-to-shell

where full-path-to-shell is the full path as given by chsh -l.

If you now log out and log in again, you will be greeted by the new shell.

Connecting Android devices

After having installed the packages android-file-transfer andandroid-udev, uncomment user_allow_other in /etc/fuse.conf and mount your android device with

$ mkdir ~/my-device
$ sudo aft-mtp-mount -o allow_other ~/my-device

so that a non-root user can access it.

arch-install's People

Contributors

archie-boorchie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.