-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathendeavourostips
463 lines (386 loc) · 13.6 KB
/
endeavourostips
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
---Advices to use archlinux
Use the LTS kernel - you can change it with: akm
Uninstall your update notifier
Install only a single DE/WM : desktop environment
Let your updates finish before rebooting
Make sure your root partition doesn’t become completely full
Use a simple partition layout
Use a simple system configuration -no btrfs or grub or snapshooting boot
Don’t re-use /home -
Have some amount of swap
Don’t reset or hard power off your system -
Don’t install packages you don’t use -
Don’t use 3rd party repositories -
Don’t use *-git packages without a reason
Use a minimal maintenance routine
Read the questions pacman asks you
Don’t multi-boot
Don’t follow advice you don’t understand -
Use common, mainstream hardware
----installing
GPT partition table and not MBR.
prefer not to use dual boot. just install Linux OS
--partitions طريقة Efi
- efi: fat32. flags: boot - 1 GB
- swap - 4 GB
- root = /: ext4. no flags. - at least 32 GB
-/home partition. ext4. no flags.
--partitions طريقة BIOS - MBR or GPT are supported
- swap - 4 GB
- root = /: ext4. no flags. - at least 32 GB
-/home partition. ext4. no flags.
- grub-bootloader: unformatted. flags: grub-bootloader - at the end of the space. at least 16.5 kb
---make swap file
sudo mkswap -U clear --size 4G --file /swapfile
sudo swapon /swapfile
add entry to fstab: kate /etc/fstab
/swapfile none swap defaults 0 0
hdd: swap partitions better
ssd: swap file better
---after install
change kernel to lts with akm. sudo pacman -S akm
copy pkg folder from another computer: /var/cache/pacman/
copy it to /home
change cachae folder
Edit /etc/pacman.conf and change the line:
#CacheDir = /var/cache/pacman/pkg/
then make a full system upgrade: yay
----for bios update from fwupd.org:
inxi -M / for info
fwupdmgr get-updates
fwupdmgr update
---info
open terminal in kde: ctrl+alt+t
install package: sudo pacman -S software
install from AUR: yay package
---GUI package managers if needed - better not
yay pacseek / CLI
yay -S --needed octopi / dont use aur
yay -S pamac-aur /disable check for updates
yay -S --needed bauh
yay -S tkpacman
---change DE (desktop environemet)
login to TTY4 Ctrl + Alt + F4
give username and password to login as user.
1: uninstall old Desktop
eos-packagelist "KDE-Desktop" > kde
sudo pacman -Rc - < kde
2 install the new one:
eos-packagelist --install "LXQT-Desktop"
eos-packagelist --install "LXDE-Desktop"
sudo pacman -S --needed - < lxde
3 make sure the base system is ok:
eos-packagelist --install "Desktop-Base + Common packages"
4 change display manager:
sudo systemctl -f enable GDM / this is just for gnome?
sudo systemctl -f enable --now GDM
lxdm is for lxde
sudo pacman -S xfce4
sudo pacman -S xfce4-goodies
sudo pacman -S gnome
sudo pacman -S deepin deepin-extra
sudo pacman -S budgie-desktop
sudo pacman -S cinnamon system-config-printer gnome-keyring blueberry cinnamon-translations
sudo pacman -S mate mate-extra system-config-printer blueman
sudo pacman -S plasma-desktop
full: sudo pacman -S plasma
or:
eos-packagelist --list
lxde uses openbox
lxde language:
sudo gedit /etc/xdg/lxsession/LXDE/autostart
@setxkbmap -layout "us,ar" -option "grp:alt_shift_toggle"
mate uses: lightdm display managet. and: marco: windows manager
sudo systemctl start lightdm
sudo systemctl enable lightdm
----softwares
sudo pacman -S libreoffice-fresh wine winetricks krita filelight cups cups-pdf python-pip android-tools onionshare obs-studio neofetch base-devel kwave krecorder akm tgpt
yay -S shamela boomaga crow-translate muezzin-bin ventoy-bin
--detailled
libreoffice-fresh
wine /or: wine-staging
winetricks
kde partition manager
evolution / email client, or: claws-mail , or:
gimp / photoshop alternative
inkscape / illustrator alt
scribus / indesign alt
filelight / or: disk usage analyser: baobab
cups / for printing
cups-pdf
python-pip
android-tools / adb and fastboot
obs-studio / record screen
neofetch / show info in CLI
pdfarranger /pdf editing tool
akm / kernel manager
f3 / to test flash disk real capacity
redshift / if not using gnome or kde: they have it integrated. make it in startup applications
yt-dlp / front end: Parabolic
freetube / with tor: default settings using 127.0.0.1 for the IP and 9050 for the port.
tgpt
python-pdftotext
jre-openjdk - java runstime - is needed for executing GUI Java programs.
jdk-openjdk - is needed for Java development. jdk= java developement kit
base-devel / to build AUR packages
jdownloader2 for batch youtube download
webcamoid / camera software
vlc: already with endeavouos / alternative: haruna is better
yay: shipped be default in endeavouros
yay -S ventoy-bin
yay -S muezzin-bin
yay -S crow-translate
yay -S boomaga / booklet printing
yay -S foo2zjs-nightly / hp printer . alternative: hplip
yay -S shamela / المكتبة الشاملة
scantailor
ktea /for alaram
kwave/ audio editor
krecorder / video recoreder
spectacle / kde screen capture
virt-manager
tor browser
yay github-desktop
---settings
shortcut: kscreen-doctor --dpms off / ctrl+/
shortcut to toggle touchpad: ctrl+B
--full upgrade
yay / = yay -Syu / the best: it updates official repo + aur
eso-update
sudo pacman -Syu / no aur updates
---printer
sudo pacman -S cups cups-browsed cups-filters cups-pdf system-config-printer --needed
full CUPS: ghostscript
sudo pacman -R gsfonts foomatic-db-engine foomatic-db foomatic-db-ppds foomatic-db-nonfree foomatic-db-nonfree-ppds gutenprint foomatic-db-gutenprint-ppds
QT envirenment: sudo pacman -S print-manager --needed
sudo systemctl enable --now cups.socket
sudo systemctl enable --now cups.service
----firefox browser
kiwix
ublock origin addon for firefox
settings: colors: dark background
---firefox privacy
settings: privacy and security: Strict
always delete cookies and data when closing firefox
always use private browsing
block pop ups
uncheck: allow firefox to send technical data
Enable HTTPS-Only Mode in all windows
DNS: max protection
search: use brave search. open. then right click the link bar: add brave search
---firefox disable copy/past restriction
about:config
dom.event.clipboardevents.enabled
--using tor: network ettings:
settings: network
seckets host: 127.0.0.1 port: 9050
sudo tor
change ip adress:
sudo killall -HUP tor
service tor reload
---libreoffice
libreoffice: language settings default complex text layout
custom: ctrl+space = styles: character: no character style
ctrl+B = strong emphasis
extention: add: AltSearch: AltSearch.oxt
extention: Template Changer: TemplateChanger-L-2.0.1.oxt
all arabic spell checking extention: dict-ar-3.5.oxt
---enable bluetooth
sudo systemctl enable --now bluetooth
----virtual machine VM - KVM qmu
sudo pacman -S libvirt qemu virt-manager virt-viewer dnsmasq bridge-utils libguestfs vde2 openbsd-netcat ebtables iptables
virt-manager / front end of libvirt
sudo systemctl enable libvirtd.service
sudo systemctl start libvirtd.service
# Check that the service is running (press 'q' to quit):
systemctl status libvirtd.service
kate /etc/libvirt/libvirtd.conf
Navigate to around line 85 and uncomment the following lines:
unix_sock_group = "libvirt"
And then navigate to around line 108 and uncomment:
unix_sock_rw_perms = "0770"
Add your user to the libvirt group
sudo usermod -G libvirt -a `whoami`
# If you get the "usermod: group 'libvirt' does not exist" error, create the group by
# running the following command, and then try adding your user again.
newgrp libvirt
sudo systemctl restart libvirtd.service
sudo virsh net-autostart default
sudo virsh net-list --all
sudo virsh net-start default
then: virt-manager : add connection
shared folders:
WinFSP GitHub in guest windows. linux is the host OS
install: Core
virtio-win-guest-tools.exe
Services
VirtIO-FS Service
--or
virtual box + extention pack for usb / add user to group: sudo gpasswd -a $USER vboxusers / check: groups $USER
virtualbox-guest-utils / for shared folders
xtreme / new link . or: perspolis
----fingerprint
libfprint
fprintd
to configure: fprintd-enroll
-----usefull commands
sleep 10
shutdown 30 / shutdown after 30 minutes
sudo systemctl start NetworkManager / start networkmanager service
sudo rm /path/to/file /remove file
---clean system - ينبغي التثبت مما سيتم حذفه قبل الإقدام عليها
with pamac-manager: remove all orphans
remove not necessary AUR packages
pacman -Qdtq | sudo pacman -Rns -
remove orphans: yay -Yc
---pacman log
var/log/pacman.log
-----ffmpeg split video file
ffmpeg -i 0.mp4 -t 00:38:36 -c copy smallfile1.mp4 \
-ss 00:50:00 -c copy smallfile2.mp4
ADD picture to audio:
ffmpeg -loop 1 -i b.jpg -i 1 31-35.mp3 -shortest out.mp4
ffmpeg -i black.png -i 31-35.mp3 ep1.mp4
---ssh
sudo pacman -S openssh
sudo systemctl enable --now sshd
sudo systemctl status sshd.service
sudo systemctl enable sshd.servicestart sshd.service
sudo systemctl start sshd.service
ssh-keygen -f ~/.ssh/aur
Your identification has been saved in /home/pc/.ssh/aur
Your public key has been saved in /home/pc/.ssh/aur.pub
never share the pricate key
----secure messaging apps
Jitsi, Mumble, Jami, GnuGk, Linphone, FreeSwitch, Asterisk, Wire, Kamailio, Ekiga, qTox, or Empathy
----wakeup alarm
echo "sudopass HERE" | sudo -S rtcwake -m show -l -v |rg alarm: | cut -c 8-30
echo Setting rtclock; echo "sudopass HERE" | sudo -S rtcwake -m no -l -t $(date +%s -d 'tomorrow 0259')
echo bs | sudo -S rtcwake -m show -l -v |rg alarm: | cut -c 12-30
echo bs | sudo -S rtcwake -m no -l -t $(date +%s -d 'tomorrow 0315')
echo bs | sudo -S rtcwake -m no -l -t $(date +%s -d 'today 0740')
----kate: reopen last opened documents
Sessions: New session: Default session
configure: open last session
or: edit application: --start "Default Session
-----timeshift dark moode
sudo cp -r /home/$USER/.config/gtk-3.0/* /root/.config/gtk-3.0
---best file system to share with windows / for flash usb device
exFAT
---export packages list
pacman -Qqe > pkglist.txt
---install packages from a list
pacman -S --needed - < pkglist.txt
/var/cache/pacman/pkg
the packages from the cache will be used - no need to download again
pacman -Syu first
everything that is already present will not be downloaded again
to change the cahe folder:
Edit /etc/pacman.conf and change the line:
#CacheDir = /var/cache/pacman/pkg/
/var/cache/pkg/
sudo pacman -Syu --cachedir
pacman -Sw package_name
download package without installing it
sudo cp -r folder/pkg /var/cache/pacman/
sudo rm -r
--install from usb
mount --mkdir /dev/sdxY /mnt/repo
/etc/pacman.conf
[custom]
SigLevel = PackageRequired
Server = file:///mnt/repo/Packages
pacman -Syu
---to ask helpe
inxi -FAZ --no-host | eos-sendlog
arch-audit-gtk
---to execute a file
terminal: ./file.run
---how to install pip-python scrypt
mkdir softwarename
cd softwarename
python -m venv env
source env/bin/activate
pip install tkinter
pip install name --upgrade
pip install -r requirements.txt
python ./file.py
to use the app:
cd resemble-enhance
source env/bin/activate
---------------wine theme
Type "wine regedit" in a terminal. Then navigate to HKEY_CURRENT_CONFIG > Software > Fonts and change the LogPixels: 85
winecfg: themes: no theme.
wineRT: light. / not dark
control background: black
control text: white
windows background: black
windows text: wite
tooltip background: black
tooltip text: white.
menu background: black
menu text: white.
---wine info
WINEPREFIX="/home/endeavouros/.local/share/wineprefixes/wine32" WINEARCH=win32 wine miflash_unlock.exe
WINEPREFIX=$HOME/.wine wine launcher.exe
lib32-libglvnd
lib32-libxcomposite
winetricks corefonts
WINEARCH=win32 WINEDEBUG=fixme-all wine launcher.exe
WINEDEBUG=fixme-all wine Al_Madinah_Mushaf.exe
export LANG=ar_DZ.UTF-8; WINEDEBUG=fixme-all wine _shamela.exe
shamela3:
winetricks -q richtx32
wine geko? / explorer
wine mono / .net
----pacman and pamac
pamac is build by manjaro team and not archlinux. it can download from aur. no need for yay
pacman is archlinux package manager
cli = command line interface
gui = graphic user interface
Pacman can’t install/build aur packages so if you use Pacman you need an aur helper like 'yay'.
other pacman gui: Octopi tkpacman vpacman
sudo pacman -S / install ine package
sudo pacman -Syu / full system upgrade
sudo pacman -Syu --ignore discord,firefox,jdk-openjdk,libreoffice-fresh
---- upgrade only from specefic repo
sudo pacman -S --needed $(comm -12 <(pacman -Qq | sort) <(pacman -Slq core | sort))
/-S, --sync Synchronize packages. Packages are installed directly from the remote repositories, including all dependencies required to run the packages. [...]
pamac install mpv / this code will update other packages.
/etc/pacman.conf : ParallelDownloads>
-----test usb falsh drive
yay f3
f3write /media/flash-drive-mount-point
f3read /media/flash-drive-mount-point
If you see from the output that some sectors are corrupted, then your USB flash drive is fake.
First find out the block device name of your flash drive with lsblk command:
lsblk
sudo f3probe --destructive --time-ops /dev/sda
---manual ventoy? dint work?
fat32=vfat?? VTOYEFI 30 mb
extfat rest
---repositories packages number stats
https://repology.org/repositories/statistics/total
---repair system from liveusb
sudo lsblk -f
sudo mount /dev/sda2 /mnt
sudo arch-chroot /mnt
repair grub:
grub-install --target=i386-pc /dev/sdX
grub-mkconfig -o /boot/grub/grub.cfg
---clear pacman cache dir
To retain only one past version use:
paccache -rk1
to remove all cached versions of uninstalled packages, use the following:
paccache -ruk0
To remove all the cached packages that are not currently installed, and the unused sync databases, execute:
pacman -Sc
remove old packages from the cache and unused repositories.
ya -Sc
orphans: yay -Yc
----refresh keys
pacman-key --refresh-keys
---install from PKGBUILD
makepkg -si
---telegram with tor
advanced - connection settings: proxy: 127.0.0.1 and 9050