-
Notifications
You must be signed in to change notification settings - Fork 0
/
arch_setup.txt
77 lines (59 loc) · 1.75 KB
/
arch_setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
wsl --set-default-version 2
Download https://github.com/yuk7/ArchWSL/releases export to C:\archlinux, run exe
https://github.com/yuk7/ArchWSL
wsl --setdefault Arch
bash
pacman-key --init
pacman-key --populate
pacman-key --refresh-keys
pacman -Sy archlinux-keyring
https://github.com/equalsraf/win32yank/releases
// put into arch path
set clipboard+=unnamedplus
let g:clipboard = {
\ 'name': 'win32yank-wsl',
\ 'copy': {
\ '+': 'win32yank.exe -i --crlf',
\ '*': 'win32yank.exe -i --crlf',
\ },
\ 'paste': {
\ '+': 'win32yank.exe -o --lf',
\ '*': 'win32yank.exe -o --lf',
\ },
\ 'cache_enabled': 0,
\ }
# to fix remote not working with alacritty
infocmp | ssh "$user@$host" 'tic -x /dev/stdin'
groupadd sudo
vim /etc/sudoers
// uncomment %wheel ALL=(ALL) NOPASSWD: ALL
// uncomment %sudo ALL=(ALL) ALL
:w!
:q
useradd -m -G wheel,sudo <username>
passwd dirli
// in windows
./Arch.exe config --default-user <username>
sudo pacman -S --needed base-devel
sudo pacman -S git
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rust.sh
sudo chmod u+x rust.sh
./rust.sh
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
mkdir ~/personal_config/scripts
touch ~/personal_config/scripts/config.nu
paru -S nushell
paru -S starship
chsh -s /usr/bin/nu
// add nu to ~/.bashrc
paru -Fy
paru -S openssh
ssh-keygen -t ed25519 -C "[email protected]"
cat .ssh/id_ed25519.pub
git clone [email protected]:domdir/config.git
// make sure you are not inside nu and .config folder is empty or does not exist
ln -s config/.config .config
nu
nu config/install_wsl.nu