Skip to content

Commit

Permalink
Добави osinstall и README Preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
salif committed Nov 8, 2023
1 parent 27a3fd1 commit 69863f0
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 1 deletion.
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,49 @@ My dotfiles for Arch Linux, Cinnamon, i3wm, swaywm.
* [Github](https://github.com/salif/dotfiles)
* [Codeberg](https://codeberg.org/salif/dotfiles)

## Preferences

| | |
| :-- | :-- |
| Linux distribution | Arch Linux |
| Desktop environment | Cinnamon, Deepin |
| Window manager | i3-wm, swayfx |
| Display manager | sddm |
| Boot loader | grub |
| Grub theme | Vimix |
| File system | ext4 |
| File manager | nemo |
| GTK theme | Dracula, Otis-standard-buttons |
| Icon theme | BeautyLine, Flat-Remix-Green-Dark |
| Cursor | Bibata-Original-Ice (20px) |
| Default font | Cantarell |
| Document font | Alegreya |
| Terminal Font | Cascadia Mono PL (10pt) |
| Terminal | GNOME Terminal |
| Shell | fish |
| Text editor | micro, xed |
| Code editor| VS Code, gnome-builder |
| Package manager | pacman, yay, flatpak |
| Web Browser | firefox-developer-edition, brave-bin |
| Document viewer | xreader |
| Image viewer | xviewer, pix, gimp |
| Music player | lollypop, vlc |
| Video player | vlc, smplayer, mpv |
| Word processor | abiword |
| Spreadsheet | gnumeric |
| Calculator | galculator |
| Bluetooth Manager | blueman |
| Disk Management | gnome-disk-utility |
| BitTorrent client | transmission-gtk |
| Authentication agent | polkit-gnome |
| Password manager | keepassxc |
| Clipboard manager | parcellite, xclip |
| Keyboard layout | us(colemak) |
| Games | salif/cli-games |

## Tree

| name | description |
| | |
| :--- | :--- |
| `etc/` | linux `/etc` directory |
| `home/` | linux `$HOME` directory |
Expand Down
143 changes: 143 additions & 0 deletions other/osinstall/arch.old.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@

# Load Colemak keyboard layout
ls /usr/share/kbd/keymaps/**/*colemak*.map.gz | xargs -I {} basename {} .map.gz
loadkeys colemak

test -d /sys/firmware/efi/efivars && echo "EFI" || echo "Not EFI"

ip link

# rfkill list
# If the card is hard-blocked, use the hardware button (switch) to unblock it.
# If the card is not hard-blocked but soft-blocked, use the following command:
# rfkill unblock wifi

iwctl
# device list
# station `device` scan
# station `device` get-networks
# station `device` connect `SSID`

timedatectl set-ntp true
timedatectl status

fdisk -l
cfdisk
# /dev/sd``1 1G EFI System
# /dev/sd``2 8G Linux swap
# /dev/sd``3 64G Linux filesystem
# /dev/sd``4 64G Linux filesystem
lsblk -f

mkfs.fat -F32 -n ABOOT /dev/sd``1
mkswap -L ASWAP /dev/sd``2
mkfs.ext4 -L AROOT -F /dev/sd``3
mkfs.ext4 -L AHOME -F /dev/sd``4
lsblk -f

swapon /dev/sd``2
mount /dev/sd``3 /mnt
mkdir /mnt/efi
mount /dev/sd``1 /mnt/efi
mkdir -p /mnt/mnt/home
mount /dev/sd``4 /mnt/mnt/home
lsblk

pacstrap /mnt base linux linux-firmware base-devel networkmanager micro zsh \
nano sof-firmware man-db man-pages texinfo

genfstab -U /mnt >> /mnt/etc/fstab
less /mnt/etc/fstab

arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Sofia /etc/localtime
hwclock --systohc

micro /etc/locale.gen
locale-gen

echo "LANG=en_US.UTF-8
LC_NUMERIC=bg_BG.UTF-8
LC_TIME=bg_BG.UTF-8
LC_MONETARY=bg_BG.UTF-8
LC_PAPER=bg_BG.UTF-8
LC_NAME=bg_BG.UTF-8
LC_ADDRESS=bg_BG.UTF-8
LC_TELEPHONE=bg_BG.UTF-8
LC_MEASUREMENT=bg_BG.UTF-8
LC_IDENTIFICATION=bg_BG.UTF-8" >> /etc/locale.conf
less /etc/locale.conf

echo "arch" > /etc/hostname
less /etc/hostname

echo "
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain arch" >> /etc/hosts
less /etc/hosts
getent hosts

passwd

pacman -S grub efibootmgr freetype2 os-prober
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
pacman -S intel-ucode
grub-mkconfig -o /boot/grub/grub.cfg

pacman -Ss xf86-video
pacman -S xorg xf86-video-intel xf86-input-libinput mesa intel-media-driver \
lightdm lightdm-slick-greeter sudo acpid rng-tools --needed

ls -1 /usr/share/xgreeters/
micro /etc/lightdm/lightdm.conf
# greeter-session=lightdm-slick-greeter

EDITOR=micro visudo
# Uncomment %wheel ALL=(ALL) ALL

systemctl enable lightdm
systemctl enable NetworkManager
systemctl enable acpid
systemctl enable rngd

echo "KEYMAP=colemak" >> /etc/vconsole.conf
less /etc/vconsole.conf

echo '
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbVariant" "colemak"
Option "XkbOptions" "numpad:mac,shift:both_shiftlock,terminate:ctrl_alt_bksp,grp:lalt_lshift_toggle"
EndSection' >> /etc/X11/xorg.conf.d/00-keyboard.conf

# cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
# reflector --protocol http --latest 70 --sort rate --save /etc/pacman.d/mirrorlist

pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
pacman-key --lsign-key 3056513887B78AEB
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' \
'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
micro /etc/pacman.conf
pacman -Syyu

pacman -S cinnamon cinnamon-translations yay git gnome-terminal gnome-keyring --needed
pacman -S baobab bash-completion bibata-cursor-theme crda dialect \
dconf-editor djvulibre ethtool flat-remix flat-remix-gtk galculator \
gcolor2 gimp gnome-disk-utility gnome-logs gnome-online-accounts \
gnome-screenshot gnome-system-log gnome-system-monitor gnome-builder \
gnu-free-fonts gvfs-goa gvfs-google gvfs-gphoto2 gvfs-mtp iso-flag-png \
keepassxc lightdm-settings nemo-fileroller nemo-seahorse neofetch \
network-manager-applet noto-fonts-emoji p7zip parcellite pkgfile redshift \
seahorse tree visual-studio-code-bin vlc xclip xdg-user-dirs-gtk xed xreader --needed

useradd -m -G wheel,adm,storage,power -s /usr/bin/zsh `user`
passwd `user`
chfn `user`

su -l `user`

systemctl --user enable redshift-gtk

0 comments on commit 69863f0

Please sign in to comment.