summaryrefslogtreecommitdiff
path: root/cs/Gentoo/Asahi - Gentoo - Wayland - Suckless Setup.md
blob: ddcd05f1a5f561fb88cab57e948944fd8070ba58 (plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201

curl https://alx.sh | sh

# From gentoo livecd

net-setup
ifconfig
lsblk

fdisk /dev/nvme - take all free space left

mkfs.btrfs -f /dev/nvmeRoot

mount /dev/nvmeRoot /mnt/gentoo
mkdir -p /mnt/gentoo/boot/
mount /dev/nvmeEFI /mnt/gentoo/boot/

wget stage3
> arm openrc desktop or not ?
> https://www.gentoo.org/downloads/#arm64-advanced
tar xpvf stage3-X.tar.xz --xattrs-include='*.*' --numeric-owner -C /mnt/gentoo

nano /mnt/gentoo/etc/portage/make.conf   ------------------ SKIP DO AFTER GENTOOSUPPORT
```
[...]
MAKEOPTS="-j(nproc) -l(nproc)"
EMERGE_DEFAULT_OPTS="--jobs 3"
ACCEPT_LICENSE="linux-fw-redristribuable no-source-code"

GENTOO_MIRRORS="https://mirror.rit.edu/gentoo/ https://gentoo.osuosl.org/ https://lug.mtu.edu/gentoo/ https://mirror.csclub.uwaterloo.ca/gentoo/"

# Keep a newline at the end! Important!
```

cp --dereference /etc/resolv.conf /mnt/gentoo/etc/
mount --types proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --bind /run /mnt/gentoo/run


chroot /mnt/gentoo /bin/bash
source /etc/profile

emerge-webrsync
emerge --sync

emerge -av dev-vcs/git
git clone https://github.com/chadmed/asahi-gentoosupport
cd asahi-gentoosupport
./install.sh

eselect profile
emerge -1 sys-apps/portage

lsblk
blkid

nano /etc/fstab
```
# /etc/fstab: static file system information.
#
#
# <fs>                                          <mountpoint>    <type>          <opts>          					<dump/pass>
UUID=XXXX-XXXX                                  /boot           vfat            defaults,noatime        				0 2
UUID=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx      	/               btrfs		subvol=/@,defaults,noatime,autodefrag,compress=zstd 	0 0
```

passwd

emerge -av sys-fs/dosfstools sys-fs/btrfs-progs net-wireless/wpa_supplicant app-portage/gentoolkit app-portage/eix

eix-update

ls /usr/share/zoneinfo
echo "US/Eastern" > /etc/timezone
emerge --config sys-libs/timezone-data

nano /etc/[locale.gen](locale.gen)
locale-gen
eselect locale list
eselect locale set x

env-update && source /etc/profile

echo 'dev-lang/rust' >> /etc/portage/package.mask

exit

umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -R /mnt/gentoo

reboot

>> /dev/nvme0n1p6 - obsolete to be removed

# USERLAND

altezza@asahi

make.conf wayland use
-X on laptop


rc-service sshd start
rc-update add sshd default

## using git to sync repos instead of rsync - /var/db/repos/gentoo
vim /etc/portage/repos.conf/gentoo.conf
```
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = https://gitweb.gentoo.org/repo/sync/gentoo.git
auto-sync = yes
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
```

##  setup sudo
emerge app-admin/sudo
visudo

#Allow members of group sudo to execute any command without any password
%sudo ALL=(ALL:ALL) ALL
%sudo ALL=NOPASSWD: ALL

##  dbus
emerge sys-apps/dbus
rc-update add dbus default

emerge net-misc/openntpd

## Add User
useradd -m -G users,wheel,audio,sudo ??? $USER
video, input, seatd
passwd $USER

emerge sys-process/cronie
crontab
/etc/init.d/cronie start
rc-update add cronie default

su - altezza
## ZSH
emerge app-shells/zsh app-shells/zsh-completions app-shells/gentoo-zsh-completions app-shells/zsh-syntax-highlighting \
	app-editors/neovim app-vim/gentoo-syntax

chsh -s /bin/zsh
eselect vi list

## Wayland + wlroots + Dwl + terminal++

sudo eselect repository add palladian git git.afu.re/palladian
emerge --sync palladian


emerge dev-libs/wayland x11-base/xwayland gui-libs/wlroots \
	gui-wm/dwl gui-wm/dwlb gui-apps/foot dev-libs/bemenu \
	gui-apps/wlr-randr gui-apps/wbg x11-misc/dunst


### Dotfiles g git

emerge app-misc/lf media-video/mpv media-gfx/nsxiv media-gfx/ueberzugpp \
	app-text/zathura app-text/zathura-pdf-poppler \
	app-text/odt2txt media-video/ffmpegthumbnailer app-text/catdoc app-text/docx2txt app-text/odt2txt app-text/poppler \
	app-office/calcurse app-misc/abook sci-visualization/visidata \
	mail-client/mutt-wizard mail-client/neomutt net-mail/isync mail-mta/msmtp \
	media-sound/mpd media-sound/mpc media-sound/rmpc media-sound/beets \
	net-misc/yt-dlp  media-video/ffmpeg app-text/wgetpaste \
	www-client/firefox:esr



 > rewrite dmenu script for bemenu

> ALIAS abook to SHCMD(TERMINAL " -e abook -C ~/.config/abook/abookrc --datafile ~/.config/abook/addressbook") },

> ALIAS htop=htop-vim


> region function :slurp & grim ?

> EMOJIS ?
{ MODKEY,			XK_grave,	spawn,	{.v = (const char*[]){ "dmenuunicode", NULL } } },


### gpg pass ect
https://github.com/t-8ch/pinentry-bemenu
app-admin/pass

### Email setup
emerge