jmgomez-IAA / loogbook

Personal web page
0 stars 0 forks source link

Post Ideas: Sysadmin Systemd #44

Open jmgomez-IAA opened 4 years ago

jmgomez-IAA commented 4 years ago

Systemd Timers

https://wiki.gentoo.org/wiki/Systemd#Timer_services

jmgomez-IAA commented 4 years ago

Systemd Network Manager

Configurar Network en Archlinux con Netcl y Systemd

jmgomez-IAA commented 4 years ago

Systemd

Ficheros

Los ficheros se encuentran en las carpetas:

Uso

Analizar el estado del sistema

Mostrar el estado del sistema utilice ~]$ systemctl status Listar unidades en ejecución: ~]$ systemctl o bien ~]$ systemctl list-units Listar unidades que han fallado ~]$ systemctl --failed Listado de las unidades instaladas con ~]$ systemctl list-unit-files Recargar todas las unidades ~]$ systemctl daemon-reload

jmgomez-IAA commented 4 years ago

Systemd Network

There are three types of configuration files. They all use a format similar to systemd unit files.

Comprobar si la mac del dispositivo es persistente: ~]$ cat /usr/lib/systemd/network/99-default.link

IP Estatica

Primero debemos crear un fichero de unidad que configure la ip que queremos:

 ~]$ cat  << EOF |  sudo tee /etc/systemd/network/enp0s2*.network
[Match]
Name=enp0s2*

[Network]
Address=161.111.16*.***/25
Gateway=161.111.16*.***
DNS=161.111.16*.***
DNS=161.111.1+*.***
EOF
 ~]$ cp /etc/systemd/network/enp0s25.network /srv/share/Workspace/lineas_trabajo/source/script_solutions/lib_scriptiaa/trunk/
 ~]#  systemctl daemon-reload

Links

Basico Advanced

jmgomez-IAA commented 4 years ago

Links

Linux Distro

Kernels Linux

Build Guides

jmgomez-IAA commented 4 years ago

BTRFS

https://wiki.archlinux.org/index.php/Btrfs#File_system_on_a_single_device https://www.funtoo.org/BTRFS_Fun http://www.beginninglinux.com/btrfs

Perfect BTRFS setup

https://seravo.fi/2016/perfect-btrfs-setup-for-a-server

BTRFS converting RAID1 to a single drive

date:2018 https://www.kubuntuforums.net/showthread.php/73429-BTRFS-converting-RAID1-to-a-single-drive

jmgomez-IAA commented 4 years ago

Truquetes

NFTS

Montar particion hibernada, o con errores: sudo ntfsfix /dev/sdd1

SSH job a background

screen and others can do it, but that's not what they're for. I recommend nohup for tasks you know you are going to leave behind and bg for tasks you're already running and don't want to re-start.

Then a quick disown should keep the process running after you log out

Keep in mind, both are bash specific. If you're not using bash, then the commands could be different.

jmgomez-IAA commented 4 years ago

Deluge as proxy with apache

http://themediaserver.com/access-deluge-webui-apache-openssl/

jmgomez-IAA commented 4 years ago

Windows 10

Windows Essential

Chocho

Install choco and essential packages

Here´s my current list of packages I am using. Open the command prompt as Administrator, install Choco and run the desired commands as needed.

ChocoInstallBase.ps1 by atwork.at

Get Chocolatey

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

See packages at https://chocolatey.org/packages/

Essentials

jmgomez-IAA commented 4 years ago

Netcat

https://www.binarytides.com/netcat-tutorial-for-beginners/

jmgomez-IAA commented 4 years ago

Sockets

https://websetnet.net/open-tcpudp-socket-bash-shell/

jmgomez-IAA commented 4 years ago

Docker

Docker archlinux

https://linuxhint.com/arch-linux-docker-tutorial/