netctl and esaurimento nervoso

master
Alessandro Mauri 6 years ago
parent 0da72a1be6
commit 80b8c349d9
  1. 23
      linux_general.txt

@ -25,13 +25,20 @@
NOTE: If all of a sudden everything is fucked up bad (like no GUI whatsowever) NOTE: If all of a sudden everything is fucked up bad (like no GUI whatsowever)
check the pacman log at "/var/log/pacman.log" to see what went wrong and what got removed check the pacman log at "/var/log/pacman.log" to see what went wrong and what got removed
To manage and download packages from the AUR use: To manage and download packages from the AUR use:
pikaur pikaur: https://github.com/actionless/pikaur#installation
yaourt (unmantained) yaourt (unmantained)
These are all wrappers which means they extend some functionalities of pacman to use These are all wrappers which means they extend some functionalities of pacman to use
AUR, for example updating and installing packages (-Syu and -S) AUR, for example updating and installing packages (-Syu and -S)
NOTE: pacman wrappers don't need to be run as root since it's dangerous to NOTE: pacman wrappers don't need to be run as root since it's dangerous to
run PKGBUILD as such. run PKGBUILD as such.
-Network management WIP
Arch uses netctl to manage connections, all the config files and examples are under
/etc/netctl/ and /etc/netctl/examples
References: https://wiki.archlinux.org/index.php/Netctl
https://www.raspberrypi.org/forums/viewtopic.php?t=54080
https://wiki.archlinux.org/index.php/Dhcpcd#Static_profile
# SYSADMIN SECTION # SYSADMIN SECTION
-"acpi" is kinda important in laptops "acpi -i" for info, also "thinkpad_acpi" should be noted -"acpi" is kinda important in laptops "acpi -i" for info, also "thinkpad_acpi" should be noted
@ -79,6 +86,12 @@
Listing all groups: Listing all groups:
"cut -d: -f1 /etc/group | sort" "cut -d: -f1 /etc/group | sort"
-Users:
Creating a new user:
useradd -m user-name
Deleting an existing user:
userdel user-name
-Linux afterinstall (how to get thing working): -Linux afterinstall (how to get thing working):
Bluetooth usage: Bluetooth usage:
Refers to: Refers to:
@ -232,12 +245,18 @@
[Service] [Service]
Type=idle # Not necessary Type=idle # Not necessary
Environment="TERM=dumb" # Not necessary Environment="TERM=dumb" # Not necessary
ExecStart="PATHTOEXECUTABLE --OPTIONS" ExecStart=PATHTOEXECUTABLE --OPTIONS
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
} }
And then enable it using "systemctl whatever.service enable" And then enable it using "systemctl whatever.service enable"
Other method: using crontab
Reference: https://wiki.archlinux.org/index.php/cron#Crontab_format
Install cronie then put your command into the crontab file using
"crontab -e"
Then follow the formatting according to the reference to specify when the command
is executed
# NETWORK SECTION # NETWORK SECTION