started conversion to asciidoc

master
Alessandro Mauri 4 years ago
parent bb24005bb0
commit 605b53fa3b
  1. 1
      anon.adoc
  2. 1
      forensic.txt
  3. 563
      linux_general.adoc
  4. 12911
      linux_general.pdf
  5. 61
      minimal install
  6. 2
      reminders.txt

@ -0,0 +1 @@
https://i2pd.website/

@ -4,3 +4,4 @@
- nmap / zenmap // Network mapping tool - nmap / zenmap // Network mapping tool
- wireshark // Network traffic sniffer - wireshark // Network traffic sniffer
- theharvester // Employee discovery, mail discovery and pgp verification tool, among other useful stuff - theharvester // Employee discovery, mail discovery and pgp verification tool, among other useful stuff
- https://nitter.net/ // Search people and tweets

@ -1,216 +1,236 @@
-Qt for wayland requires qt5-wayland package and "export QT_QPA_PLATFORM=wayland" = An Open Source collection of common problems and solutions for *nix users
Alessandro Mauri <alemauri001@gmail.com>
-You still have tor and "arm" to monitor it v1.0, 2019-12-02
:doctype: manpage
-Docker is pretty cool you should use it, https://www.kali.org/news/official-kali-linux-docker-images/
also works with wifite2, it basically is a shell-oriented low-weight high-performance virtual machine == Arch Linux
wich can run prebuilt docker images or your personal docker images. Docs: https://docs.docker.com/
=== Links useful during an arch install
# ARCH SECTION https://wiki.archlinux.org/index.php/Installation_guide[1],
https://wiki.archlinux.org/index.php/GRUB[2],
-Links useful during an arch install: https://wiki.archlinux.org/index.php/General_recommendations#Users_and_groups[3],
https://wiki.archlinux.org/index.php/Installation_guide https://wiki.archlinux.org/index.php/EFI_system_partition[4],
https://wiki.archlinux.org/index.php/GRUB https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks[5],
https://wiki.archlinux.org/index.php/General_recommendations#Users_and_groups https://wiki.archlinux.org/index.php/List_of_applications[6],
https://wiki.archlinux.org/index.php/EFI_system_partition
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks === Pacman commands
https://wiki.archlinux.org/index.php/List_of_applications * `pacman -Syy`: update repositories
* `pacman -Su`: update packages
-Pacman commands: * `pacman -Qdtq`: list unused/orphan packages
"pacman -Syy" update repositories * `pacman -R`: remove a package
"pacman -Su" update packages * `pacman -S`: install a package
"pacman -Qdtq" list unused/orphan packages * `pacman -R $(pacman -Qdtq)`: remove orphaned packages recursively
"pacman -R" remove a package * `pacman -Rns`: remove packages and its dependencies recursively
"pacman -S" install a package * `pacman -Rcs`: remove packages and its dependents recursively
"pacman -R $(pacman -Qdtq)" remove unused packages * `pacman -Ql`: list all package's files and locations
"pacman -Rns" remove packages and its dependencies recursively * `pacman -Qqe`: list all installed packages
"pacman -Rcs" remove packages and its dependents recursively * `pacman -Qc`: view package changelog
"pacman -Ql" list all package's files and locations * `pacman -Qm`: list packages not present in official repositories
"pacman -Qqe" list all installed packages
"pacman -Qc" view package changelog If there are update related errors that you do not understand, do not panic
"pacman -Qm" list packages not present in official repositories issue a full update with the following commands:
If you panic just do "sudo pacman -Syy" and then "sudo pacman -Su" `sudo pacman -Syy` and then `sudo pacman -Su`
"rm -rf /var/lib/pacman/db.lck" remove pacman's transaction lock file
(to solve "could not unlock database" error, which happen when pacman is already running) If you get an error similar to `could not unlock database` when trying to
NOTE: If all of a sudden everything is fucked up bad (like no GUI whatsowever) issue a command that means that another program is using the package manager.
check the pacman log at "/var/log/pacman.log" to see what went wrong and what got removed If you feel like taking the risk of breaking your system try manually (and forcefully)
To manage and download packages from the AUR use: removing the transaction lock file by issuing `rm -rf /var/lib/pacman/db.lck`
pikaur: https://github.com/actionless/pikaur#installation
yaourt (unmantained) In the unfortunate event that all of a sudden everything fucked up bad
These are all wrappers which means they extend some functionalities of pacman to use (like no xorg or wayland or login session ...),
AUR, for example updating and installing packages (-Syu and -S) check the pacman log at `/var/log/pacman.log` to see what went wrong and what got removed
NOTE: pacman wrappers don't need to be run as root since it's dangerous to
run PKGBUILD as such. === AUR pacman wrappers
Pacman GUI frontends: * https://github.com/actionless/pikaur#installation[pikaur]
"pamac" based on gtk and it is the same GUI frontend in the gnome and KDE releases * https://github.com/Jguer/yay[yay]
of manjaro, to install use the package "pamac-aur" or "pamac-aur-git" from the AUR.
"octopi" is a lightweight GUI frontend for pacman and it is one of the most used ones Pacman GUI frontends (I advice you to not use them)::
although it isn't as visually appealing as pamac and requires a gtk sudo permission * `pamac`: based on gtk and it is the same GUI frontend in the gnome and KDE releases
package such as "blank don't remember" of manjaro, install `pamac-aur` or `pamac-aur-git` from the AUR.
Ranking mirrors based on speed: * `octopi`: is a lightweight GUI frontend for pacman and it is one of the most used ones
although it isn't as visually appealing as pamac and requires a gtk permission manager.
-Network management === Network management
Arch uses netctl to manage connections, all the config files and examples are under Sources::
/etc/netctl/ and /etc/netctl/examples https://wiki.archlinux.org/index.php/Netctl[1]
References: https://wiki.archlinux.org/index.php/Netctl https://www.raspberrypi.org/forums/viewtopic.php?t=54080[2]
https://www.raspberrypi.org/forums/viewtopic.php?t=54080 https://wiki.archlinux.org/index.php/Dhcpcd#Static_profile[3]
https://wiki.archlinux.org/index.php/Dhcpcd#Static_profile
Arch uses netctl to manage connections, all the config files and examples are under
-Network managers: `/etc/netctl/` `and /etc/netctl/examples` +
NetworkManager: default in many distros pretty good but resorce heavy (also depends on systemd?) *NOTE*: This is valid for every system that uses systemd(ick)
void: https://docs.voidlinux.org/config/network/networkmanager.html
arch: https://wiki.archlinux.org/index.php/NetworkManager == Void Linux
Connman: small and fast, does all you need and doesn't hog on resources and has vpn support
void: https://wiki.voidlinux.org/Connman Hold package updates::
arch: https://wiki.archlinux.org/index.php/ConnMan * Hold: `xbps-pkgdb -m hold <pkg>`
Wicd: outdated by now and written in python 2.7, still pretty good for simple configurations * Unhold: `xbps-pkgdb -m unhold <pkg>`
* List packages on hold: `xbps-query --list-hold-pkgs`
# VOID LINUX SECTION
== Sysadmin stuff
-Hold pkgs form updating
hold: xbps-pkgdb -m hold <pkg> === Fixing mandoc.db permission denied
unhold: xbps-pkgdb -m unhold <pkg> *Source*: https://old.reddit.com/r/voidlinux/comments/dsdn5a/did_sudo_behaviour_change_recently/[link]
list on hold: xbps-query --list-hold-pkgs
If you ran `sudo makewatis ...` then it is possible that the file permissions
# SYSADMIN SECTION of `/usr/share/man/mandoc.db` and `/usr/local/share/man/mandoc.db` were changed from
644 (rw-r--r--) to 600 (rw-------), giving the error when viewing man pages
-Fixing mandoc.db permission denied `... mandoc.db permission denied` or `data changed but could not update mandoc.db` etc.
Source: https://old.reddit.com/r/voidlinux/comments/dsdn5a/did_sudo_behaviour_change_recently/ To fix this simply do:
If you ran "sudo makewatis ..." then it is possible that the file permissions
of /usr/share/man/mandoc.db and /usr/local/share/man/mandoc.db were changed from sudo chmod 644 /usr/share/man/mandoc.db
644 (rw-r--r--) to 600 (rw-------), giving the error when viewing man pages
"... mandoc.db permission denied" or "data changed but could not update mandoc.db" etc.
To fix this simply do: sudo chmod 644 /usr/share/man/mandoc.db
sudo chmod 644 /usr/local/share/man/mandoc.db sudo chmod 644 /usr/local/share/man/mandoc.db
-"acpi" is kinda important in laptops "acpi -i" for info, also "thinkpad_acpi" should be noted === Important packages
* `acpi` gives information and control on battery and power status, it can also handle
-Basic commands: power related events (lid open/close, power button press, etc.)
GREP: * `thinkpad_acpi` acpi addon specific to thinkpads
G-REP or "grep" can be used to filter command results:
"ps ax | grep whatyouwant" and it will output the line containing "whatyouwant" === Qt in wayland
example "dmesg | grep whatyouwant" To run QT prigrams in wayland install `qt5-wayland` and add the followind line somewhere
NOTE: "|" is used to pipe the output in another program in your profile (.profile .zprofile .bash_profile etc.)
PS: `export QT_QPA_PLATFORM=wayland`
Ps is a UNIX tool used to get information about the current status of the system
=== Monitor Tor network usage
install the `arm` package and run it
=== Basic commands
* `grep`: find the lines which contain the input string: +
`ps ax | grep <query>` and it will output the line containing the query +
`grep <query> file.txt` search matches in file +
`grep -i <query> file.txt` case insensitive search
* `ps`: Ps is a UNIX tool used to get information about the current status of the system. +
The most basic and or useful usage is to view all the running processes and the corresponding The most basic and or useful usage is to view all the running processes and the corresponding
UUIDs (like if you want to kill process and you need its UUID), that is done by appending "ax" UUIDs, that is done by appending `ax` to ps: +
to ps: "ps ax" `ps ax`
KILL: * `kill`: kill the specified process given its UUID: +
It kill the specified process given its UUID, syntax "kill <UUID>" `kill <UUID>`
"|" and ">": * `killall`: kill all the processes which name matches the arguments: +
`killall <proc name>`
* `|` and `>`:
These are both "pipe" functions, they can pipe the output of a script or program into These are both "pipe" functions, they can pipe the output of a script or program into
something (via std i/o), but they are used differently in the sense that "|" is specifically something (via std i/o), but they are used differently in the sense that `|` is
used to pipe the output into another program EX: "ps ax | grep gnome-shell", this outputs the UUIDs used to pipe the output into another program, example: +
of all the gnome-shell instances since the output of "ps ax" is piped into GREP which in turn `ps ax | grep xorg` this outputs all the runnng processes into grep as
returns just the results of the query. input, which in turn filters the result. +
On the other hand ">" is used to pipe the output into a file EX: "ls -la > ls.txt", this puts On the other hand `>` is used to pipe the output into a file, example: +
the output of ls into ls.txt which we can then read. `ls -la > ls.txt` this puts the output of ls into ls.txt which we can then read.
"whoami" and "groups": *NOTE*: `>` replaces everything that was in the file
they respectively output the current user and groups * `<`: same thing as `>` but in "reverse"
NOTE: one alternative to "whoami" is "echo $USER" which can be used in scripts * `>>` and `<<`: same as `<` and `>` but appends instead of replacing
FIND: * `whoami` and `groups`:
Sources: they respectively output the current user and groups +
https://www.cyberciti.biz/faq/how-do-i-find-all-the-files-owned-by-a-particular-user-or-group/ *NOTE*: one alternative to `whoami` is `echo $USER` which can be used in scripts
refer to man for all the available options * `find`: Basic syntax: +
Basic syntax: `find <dir> [OPTIONS]` +
"find <dir> [OPTIONS]" Some options: +
OPTIONS: ** `-user <user>`: find files owned by a particular user
"-user <user>" find files owned by a particular user ** `-group <group>`: find files owned by a particular group
"-group <group>" find files owned by a particular group ** `-ls`: list results in "ls" format:
"-ls" list results in "ls" format: ** `-name <filename>`: find a specific file or pattern (*.txt)
"-name <filename>" find a specific file or pattern (*.txt)
=== Group actions
-Groups: * Adding a user to a group: +
Adding users to groups: `usermod -a -G group user` then reboot
"usermod -a -G group user" * Listing all groups: +
reboot `cut -d: -f1 /etc/group | sort`
Listing all groups: * Deleting a group: +
"cut -d: -f1 /etc/group | sort" `groupdel <group name>` then reboot
-Users: === Users actions
Creating a new user: * Creating a new user: +
useradd -m user-name `useradd -m user-name`
Deleting an existing user: * Deleting an existing user: +
userdel user-name `userdel user-name`
-Linux afterinstall (how to get thing working): === Generating locales
Bluetooth usage: . Add locales by uncommenting them in `/etc/locale.gen`
Refers to: . generate locales by running `locale-gen`
https://wiki.archlinux.org/index.php/Bluetooth_headset . Reboot
https://wiki.archlinux.org/index.php/bluetooth
Start the "bluetooth.service" service then refer to: *NOTE*: some languages (russian, chinese, japanese) require specific fonts to be installed
Generating locales (languages and language support): refer to: https://wiki.archlinux.org/index.php/Localization[link] for an incomplete list of specific fonts
Add locales uncommenting them in /etc/locale.gen
Run "locale-gen" === Getting the graphics drivers
Reboot For Intel graphics cards::
NOTE: if installing locales with a specific character set (russian, chinese, japanese) *Source*: https://wiki.archlinux.org/index.php/intel_graphics[link] +
it is needed to also install the specific fonts, refer to: Install `mesa` on arch or `mesa-intel-dri` on void and `xf86-video-intel`
"https://wiki.archlinux.org/index.php/Localization" to find the specific font packages For nvidia graphics cards::
and install them using pacman Follow the steps in: https://wiki.archlinux.org/index.php/NVIDIA#Installation[link]
Getting the graphics drivers: For AMD graphics cards::
For Intel graphics cards: Install: `mesa` on arch or `mesa-ati-dri` on void and `xf86-video-ati` for Xorg hardware acceleration support
Refers to: https://wiki.archlinux.org/index.php/intel_graphics
mesa === Adding entropy to your system (faster boot times)
lib32-mesa *Source*: https://wiki.archlinux.org/index.php/Random_number_generation[link] +
vulkan-intel This is useful as the kernel's built-in random number generator is very slow, as such
For nvidia graphics cards: it makes tasks like loading the login manager a pain.
Please refer to: https://wiki.archlinux.org/index.php/NVIDIA#Installation To solve this problem you can install some pseudo-random number generators such as:
For amd graphics cards: * `rng-tools` secure but uses more CPU
mesa * `haveged` fast and lightweight but less secure
lib32-mesa *NOTE*: Keep in mind that these are not for secure systems and remember to start and enable the service
xf86-video-ati: for Xorg hardware acceleration support rngd.service
mesa-vdpau and lib32-mesa-vdpau: for accelerated video decoding
Adding entropy to your system: === NTFS partitions support
Refers to: https://wiki.archlinux.org/index.php/Random_number_generation *Source*: https://wiki.archlinux.org/index.php/NTFS-3G[link] +
This is useful as the kernel's built-in random number generator is very slow, as such Install `ntfs-3g`
it makes tasks like loading the login manager a pain.
To solve this problem you can install some pseudo-random number generators such as: === Listing all installed packages
"rng-tools" secure, uses more CPU With apt/apt-get: `apt list --installed` +
"haveged" fast and lightweight With pacman: `pacman -Qqe` +
NOTE: Keep in mind that these are not for secure systems and remember to start and enable the service With xbps: `xbps-query -m` +
rngd.service
Getting NTFS support working: === Changing the default shell
Refers to: https://wiki.archlinux.org/index.php/NTFS-3G * `chsh -l` list all installed shells and respective path
Install the "ntfs-3g" package * `chsh -s <path-to-shell>` set the shell for the current user
-Listing installed packages: === Changing keyboard layout
With apt/apt-get: *Source*: https://superuser.com/questions/1147320/how-to-change-keyboard-layout-in-i3[link] +
"apt list --installed" In a tty (no graphical envirnment line ssh) type: `layout <layout>` +
With pacman: In a graphical environment (or terminal emulator) type: `setxkbmap <layout>`
"pacman -Qqe"
With xbps:
xbps-query -m
-Changing the default shell
To change your default shell to something other than bash use:
"chsh -s full-path-to-shell" for example "chsh -s /bin/zsh"
to list all installed shells use "chsh -l"
-Changing keyboard layout:
Source: https://superuser.com/questions/1147320/how-to-change-keyboard-layout-in-i3
In the system console type "layout <layout>"
In i3, dwm (and possibly other wms) "setxkbmap -layout <layout>"
-"https://wiki.archlinux.org/index.php/systemd" just helpful
-To run .jar files in cli you must use "java -jar" -To run .jar files in cli you must use "java -jar"
-To list all partitions "sudo fdisk -l" === Disk and volume info
Graphical::
* `gparted` graphical tool for managing disks and partitions
Terminal::
Partitioning tools:::
* `fdisk`
* `parted`
Listing drives and mount points:::
* `fdisk -l` more info
* `lsblk`
Listing drive UUIDs:::
* `blkid`
=== Automatically mount volumes
Install `udevil` and start `devmon` at login/boot
=== Check disk health (if available)
Install `smartmontools`, then check the drive's compatibility with
....
smartctl -c /dev/sdX
....
Then either run a short test
....
smartctl -t short /dev/sdX
....
Or a long test
....
smartctl -t long /dev/sdX
....
lastly run `smartctl -H /dev/sdX` to get the results
=== Change default file openers
*Source*: https://wiki.archlinux.org/index.php/XDG_MIME_Applications[link]
. Create a file (if not present) in `$HOME/.config` called `mimeapps.list`
. Search your file extension in https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types[link]
. Add or modify the entry to that mimetype to be opened with the desired `<applications>.desktop`
*IF* `<application>.desktop` *IS NOT PRESENT*:
. Look again in `/usr/share/applications`
. If it is not present make one and put it into: `~/.local/share/applications/` +
with the format:
-To list all partition UUIDs "sudo blkid"
-Change default file openers:
Source: https://wiki.archlinux.org/index.php/XDG_MIME_Applications
create a file (if not present) in .config called mimeapps.list
search your file extension in https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
add or modify the entry to that mimetype to be opened with the desired app.desktop
IF app.desktop IS NOT PRESENT:
look again in /usr/share/applications
if it is not present make one and put it into:
~/.local/share/applications/
with the format:
[Desktop Entry] [Desktop Entry]
Name=Xpdf Name=Xpdf
Comment=Views Adobe PDF (acrobat) files Comment=Views Adobe PDF (acrobat) files
@ -220,68 +240,68 @@
Icon=xpdf Icon=xpdf
Categories=Office; Categories=Office;
MimeType=application/pdf; MimeType=application/pdf;
NOTE: Exec= are the execution parameters
*NOTE*: `Exec=` are the execution parameters (-b, -l, etc.)
-To check a disk's health you need "smartmontools", first check system compatibility with "sudo smartctl -c /dev/sdX"
then either do a short test "sudo smartctl -t short /dev/sdX" or a long test "sudo smartctl -t long /dev/sdX" === Recompiling compilers for zerynth
lastly do "sudo smartctl -H /dev/sdX" to get the results If you are facing compiling errors in zerynth, one option is to manually
recompile the compiler for the board/platform. Compilers are locarted at
-Recompiling compilers for zerynth: `~/.zerynth2/sys` +
If facing compiling errors in zerynth, manually recompile the compiler for the board in ""~/.zerynth2/sys" For example to replace the `xtensa-lx106` compiler: (esp8266)
for example replacing the xtensa-lx106 compiler (esp8266) goes: . Move the old compiler folder (located at `~/.zerynth2/sys/xtensa-lx106`) somewhere safe
1-Move the old compiler folder somewhere safe (~/.zerynth2/sys/xtensa-lx106) . Clone and compile (as standalone) new compiler in a temporary folder, guide here
2-Clone and compile (as standalone) new compiler in a temporary folder, guide here -> "http://domoticx.com/sdk-esp8266-xtensa-architecture-toolchain/" http://domoticx.com/sdk-esp8266-xtensa-architecture-toolchain/[link]
3-Move the newly created compiler folder (xtensa-lx106-elf) in ~/.zerynth2/sys and rename it as the original one (xtensa-lx106/) . Move the fresh compiler folder (xtensa-lx106-elf) in `~/.zerynth2/sys` and rename it as the original one (xtensa-lx106/)
4-Copy the old package.json in the new compiler folder . Copy the old package.json in the new compiler folder
Better yet is to wait for an official fix and report the bug on the troubleshooting section
Also the same thing has to be done with the xtensa-lx6 compiler (esp32) *NOTE*: Better yet is to wait for an official fix and report the bug on the troubleshooting section +
"https://dl.espressif.com/doc/esp-idf/latest/get-started/linux-setup.html" Link for the `xtensa-lx6` compiler: (esp32)
https://dl.espressif.com/doc/esp-idf/latest/get-started/linux-setup.html[link]
-Various permission errors:
Arduino permissions: === Various permission errors
Source: https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/ Arduino permissions::
"ls -la /dev/tty*" and see which group TTYs are in, then add yourself to that group: *Source*: https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/[link] +
"usermod -a -G examplegroup exampleusername" or just use "$USER" to add current user, then reboot. `ls -la /dev/tty*` and see which group TTYs are in, then add yourself to that group: +
Wireshark permissions: `usermod -a -G <group> <user>` or just use `$USER` to add current user, then reboot.
"usermod -a -G wireshark $USER" Wireshark permissions::
Pen drive in read only: ....
Refers to: https://www.youtube.com/watch?v=F4lAlb74mGs usermod -a -G wireshark $USER
unmount the pen drive (4exmpl /dev/sdb1) ....
type as superuser "dosfsck -a /dev/sdb1" Pen drive in read only::
remount *Source*: https://www.youtube.com/watch?v=F4lAlb74mGs[link] +
profit . Unmount the pen drive (`/dev/sdXx`)
. Run `dosfsck -a /dev/sdXx`
-Arduino not starting: . Remount
Try installing "arduino-avr-core" package
=== Cannot scroll down in VIM on st
-Cannot scroll down in VIM on st: Add `set ttymouse=sgr` to your .vimrc
one solution is to add "set ttymouse=sgr" to your .vimrc
=== DEL key not working in st
-DEL key not working in st: *source*: https://www.reddit.com/r/archlinux/comments/8w4unu/setting_up_the_delete_key_in_st/[link] +
source: https://www.reddit.com/r/archlinux/comments/8w4unu/setting_up_the_delete_key_in_st/ Add `tput smkx` in your zshrc/bashrc or equivalent
add: tput smkx
in your zshrc or eqiuvalent === Theming gnome
download the themes packages https://www.gnome-look.org/[here] and unzip them
-Theming gnome: then depending if it is an icon theme or an normal theme place them in
download the theme packages at "https://www.gnome-look.org/" and unzip them `/usr/share/icons` or `/usr/share/themes` accordingly
then depending if it is an icon theme or an normal theme place them in
"/usr/share/icons" or "/usr/share/themes" accordingly === Printing documents
*Source*: https://wiki.archlinux.org/index.php/CUPS#Installation[link] +
-Printing documents: Install `cups` then start and enable the cupsd service/daemon or socket if you want
Refers to: https://wiki.archlinux.org/index.php/CUPS#Installation on-demand activation. +
Install the "cups" package then start and enable it To add and configure a printer either do it in your print manager or trough the cups web interface
To start a print use whatever printing program you have at the address: `localhost:631` +
if you do not have a print manager program you can always open up the web interface in your browser at: *NOTE*: adding and modifying printers requires administator (root) permissions, so
localhost:631 in the web interface, when asked, insert the root credentials
NOTE: you might need to add printers and to do so, in some cases like for KDE, you'll need to be logged as root
=== Adding executables and shortcuts
-Adding executables and shortcuts: *Sources*::
Refers to: * https://askubuntu.com/questions/322772/how-do-i-add-an-executable-to-my-search-path[1]
https://askubuntu.com/questions/322772/how-do-i-add-an-executable-to-my-search-path * https://unix.stackexchange.com/questions/3809/how-can-i-make-a-program-executable-from-everywhere[2]
https://unix.stackexchange.com/questions/3809/how-can-i-make-a-program-executable-from-everywhere
You have to add them to your $PATH, example: "export PATH="$PATH:$HOME/esp/xtensa-esp32-elf/bin" You have to add them to your $PATH, example: "export PATH="$PATH:$HOME/esp/xtensa-esp32-elf/bin"
Quote "If you just type export PATH=$PATH:</path/to/file> at the command line it will only last for the length of the session. Quote "If you just type export PATH=$PATH:</path/to/file> at the command line it will only last for the length of the session.
If you want to change it permanently add export PATH=$PATH:</path/to/file> to your ~/.bashrc file (just at the end is fine)." If you want to change it permanently add export PATH=$PATH:</path/to/file> to your ~/.bashrc file (just at the end is fine)."
-Eagle CAD dark theme fix (KDE): -Eagle CAD dark theme fix (KDE):
Refers to: Refers to:
@ -499,6 +519,15 @@
# NETWORK SECTION # NETWORK SECTION
-Network managers:
NetworkManager: default in many distros pretty good but resorce heavy (also depends on systemd?)
void: https://docs.voidlinux.org/config/network/networkmanager.html
arch: https://wiki.archlinux.org/index.php/NetworkManager
Connman: small and fast, does all you need and doesn't hog on resources and has vpn support
void: https://wiki.voidlinux.org/Connman
arch: https://wiki.archlinux.org/index.php/ConnMan
Wicd: outdated by now and written in python 2.7, still pretty good for simple configurations
-Gathering information on network cards ie IP, MAC, status, etc. -Gathering information on network cards ie IP, MAC, status, etc.
With ifconfig, just type "ifconfig" and it will give: With ifconfig, just type "ifconfig" and it will give:
ether: the MAC address ether: the MAC address

File diff suppressed because it is too large Load Diff

@ -1,61 +0,0 @@
install: xorg-xinit and xorg xrandr
in void also install xorg-minimal, for dwm install:
base-devel libX11-devel libXft-devel libXinerama-devel
libEGL st and dmenu
add to .zprofile {
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
on systemd-less systems:
if [[ ! $DISPLAY && $(tty) == /dev/tty1 ]]; then
exec startx
fi
}
change layout in xinit: setxkbmap -layout fi
feh to change wallpaper: feh --bg-scale /dev/null
terminal: st
install: git
install: dwm, dmenu, pikaur
personalize dwm (clone)
apply patches: {
install via aur
download git
apply patches to git
make install
}
in void install: setxkbmap xsetroot
install acpi
install alsa-utils pulseaudio and pulseaudio-alsa
install pavucontrol to easily manage audio
install i3lock and i3lock-wrapper
use xrandr to change resolution
xrandr --output <monitor> --mode <resolution>
the mode has to be supported, check supported modes with 'xrandr'
if your monitor resolution is not listed try:
cvt 1920 1080 60
this gives you a modeline, paste it into:
xrandr --newmode <modeline>
then do
xrandr --addmode <monitor> <resolution>
install noto-fonts and noto-fonts-cjk for basic fonts
on void if getting too many nm-dispatcher logs install and configure: socklog and socklog-void
on artix: syslog-ng and either syslog-ng-openrc or ##-runit
notifications: install libnotify notification-daemon dunst
> profit
for global hotkeys install: sxhkd, configure it and add sxhkd & to .xinitrc
kakoune is a cool editor
nnn is the best file explorer
to install musl just install the package on arch

@ -37,7 +37,7 @@
http://www.clifford.at/icestorm/ http://www.clifford.at/icestorm/
symbiflow (open souce fpga development): symbiflow (open souce fpga development):
https://symbiflow.github.io/#hero https://symbiflow.github.io/#hero
nextptr (oss gui router for ICE40 fpgas an more): nextpnr (oss gui router for ICE40 fpgas an more):
https://github.com/YosysHQ/nextpnr https://github.com/YosysHQ/nextpnr
-All 4chan banners: -All 4chan banners:
https://imgur.com/a/40bUo https://imgur.com/a/40bUo