From 997b2ca47d6e3409fa0c2decdd46beb6ab517bf9 Mon Sep 17 00:00:00 2001 From: Edu4rdSHL Date: Fri, 30 Apr 2021 05:13:25 -0500 Subject: [PATCH] Update --- etc/systemd/network/Bonded 8023ad/10-bond1.netdev | 10 ++++++++++ .../network/{ => Bonded 8023ad}/10-bond1.network | 0 .../network/Bonded 8023ad/20-8023-ad.network | 6 ++++++ .../{ => Bonded Active Backup}/10-bond1.netdev | 0 .../network/Bonded Active Backup/10-bond1.network | 5 +++++ .../{ => Bonded Active Backup}/20-wired.network | 0 .../{ => Bonded Active Backup}/25-wireless.network | 0 .../network/{ => Containers}/10-macvlan.network | 0 .../20-wired.network} | 0 .../25-wireless.network} | 0 .../network/{ => Normal}/26-wireless.network | 0 user-config/bash_aliases | 13 ++++++++++++- user-config/bash_functions | 5 +++++ user-config/bashrc | 2 ++ user-config/chrome-flags.conf | 2 +- 15 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 etc/systemd/network/Bonded 8023ad/10-bond1.netdev rename etc/systemd/network/{ => Bonded 8023ad}/10-bond1.network (100%) create mode 100644 etc/systemd/network/Bonded 8023ad/20-8023-ad.network rename etc/systemd/network/{ => Bonded Active Backup}/10-bond1.netdev (100%) create mode 100644 etc/systemd/network/Bonded Active Backup/10-bond1.network rename etc/systemd/network/{ => Bonded Active Backup}/20-wired.network (100%) rename etc/systemd/network/{ => Bonded Active Backup}/25-wireless.network (100%) rename etc/systemd/network/{ => Containers}/10-macvlan.network (100%) rename etc/systemd/network/{20-wired.network.bk => Normal/20-wired.network} (100%) rename etc/systemd/network/{25-wireless.network.bk => Normal/25-wireless.network} (100%) rename etc/systemd/network/{ => Normal}/26-wireless.network (100%) diff --git a/etc/systemd/network/Bonded 8023ad/10-bond1.netdev b/etc/systemd/network/Bonded 8023ad/10-bond1.netdev new file mode 100644 index 0000000..1374b91 --- /dev/null +++ b/etc/systemd/network/Bonded 8023ad/10-bond1.netdev @@ -0,0 +1,10 @@ +[NetDev] +Name=bond1 +Kind=bond + +[Bond] +Mode=802.3ad +PrimaryReselectPolicy=always +TransmitHashPolicy=layer3+4 +MIIMonitorSec=1s +LACPTransmitRate=fast diff --git a/etc/systemd/network/10-bond1.network b/etc/systemd/network/Bonded 8023ad/10-bond1.network similarity index 100% rename from etc/systemd/network/10-bond1.network rename to etc/systemd/network/Bonded 8023ad/10-bond1.network diff --git a/etc/systemd/network/Bonded 8023ad/20-8023-ad.network b/etc/systemd/network/Bonded 8023ad/20-8023-ad.network new file mode 100644 index 0000000..43b0175 --- /dev/null +++ b/etc/systemd/network/Bonded 8023ad/20-8023-ad.network @@ -0,0 +1,6 @@ +[Match] +Name=en* +Driver=rtl8192eu + +[Network] +Bond=bond1 diff --git a/etc/systemd/network/10-bond1.netdev b/etc/systemd/network/Bonded Active Backup/10-bond1.netdev similarity index 100% rename from etc/systemd/network/10-bond1.netdev rename to etc/systemd/network/Bonded Active Backup/10-bond1.netdev diff --git a/etc/systemd/network/Bonded Active Backup/10-bond1.network b/etc/systemd/network/Bonded Active Backup/10-bond1.network new file mode 100644 index 0000000..6e76da6 --- /dev/null +++ b/etc/systemd/network/Bonded Active Backup/10-bond1.network @@ -0,0 +1,5 @@ +[Match] +Name=bond1 + +[Network] +DHCP=ipv4 diff --git a/etc/systemd/network/20-wired.network b/etc/systemd/network/Bonded Active Backup/20-wired.network similarity index 100% rename from etc/systemd/network/20-wired.network rename to etc/systemd/network/Bonded Active Backup/20-wired.network diff --git a/etc/systemd/network/25-wireless.network b/etc/systemd/network/Bonded Active Backup/25-wireless.network similarity index 100% rename from etc/systemd/network/25-wireless.network rename to etc/systemd/network/Bonded Active Backup/25-wireless.network diff --git a/etc/systemd/network/10-macvlan.network b/etc/systemd/network/Containers/10-macvlan.network similarity index 100% rename from etc/systemd/network/10-macvlan.network rename to etc/systemd/network/Containers/10-macvlan.network diff --git a/etc/systemd/network/20-wired.network.bk b/etc/systemd/network/Normal/20-wired.network similarity index 100% rename from etc/systemd/network/20-wired.network.bk rename to etc/systemd/network/Normal/20-wired.network diff --git a/etc/systemd/network/25-wireless.network.bk b/etc/systemd/network/Normal/25-wireless.network similarity index 100% rename from etc/systemd/network/25-wireless.network.bk rename to etc/systemd/network/Normal/25-wireless.network diff --git a/etc/systemd/network/26-wireless.network b/etc/systemd/network/Normal/26-wireless.network similarity index 100% rename from etc/systemd/network/26-wireless.network rename to etc/systemd/network/Normal/26-wireless.network diff --git a/user-config/bash_aliases b/user-config/bash_aliases index fbf8b98..7b098e5 100644 --- a/user-config/bash_aliases +++ b/user-config/bash_aliases @@ -1,7 +1,10 @@ ### OWN ALIAS ### +# Alias for sudo +alias sudo='sudo --preserve-env ' + #Pastes -alias rs="curl --data-binary @- https://paste.rs" +# alias rs="curl --data-binary @- https://paste.rs" # Replaced by rs() function in .bash_aliases #Temperature alias clima='curl wttr.in/bogota?lang=es' @@ -66,6 +69,10 @@ nspawn_root_dir="/var/lib/machines" alias alct="sudo systemd-nspawn -D $nspawn_root_dir/ArchLinux" alias alshell='machinectl shell edu4rdshl@ArchLinux' +# ArchLinux ARM +alias arct="sudo systemd-nspawn -D $nspawn_root_dir/ArchARM" +alias arshell='machinectl shell edu4rdshl@ArchARM' + # BlackArch alias bact="sudo systemd-nspawn -D $nspawn_root_dir/BlackArch" alias bashell='machinectl shell BlackArch' @@ -98,6 +105,10 @@ alias cu='checkupdates' alias pss='pacman -Ss' alias sa='paru -Ss' +# Alias for paru +alias yay='paru --removemake' +alias paru='paru --removemake' + # Alias for pkgfile alias pkgfile='pkgfile -v' diff --git a/user-config/bash_functions b/user-config/bash_functions index 5800785..ecfff32 100644 --- a/user-config/bash_functions +++ b/user-config/bash_functions @@ -15,3 +15,8 @@ nsretr() { machinectl copy-from $1 $2 $3/${2##*/} fi } + +rs() { + local file=${1:-/dev/stdin} + curl --data-binary @${file} https://paste.rs +} diff --git a/user-config/bashrc b/user-config/bashrc index 921ca7d..173327a 100644 --- a/user-config/bashrc +++ b/user-config/bashrc @@ -157,6 +157,8 @@ export DOTNET_CLI_TELEMETRY_OPTOUT=1 # Set TERM export TERM=xterm-256color +# Set rusnapshot database file +# export RUSNAPSHOT_DATABASE_FILE="/mnt/defvol/_snapshots/rustnapshot.sqlite" ### END OF SOME LOCAL VARIABBLES ### ### Source scripts ### diff --git a/user-config/chrome-flags.conf b/user-config/chrome-flags.conf index 9cfa498..36b7e27 100644 --- a/user-config/chrome-flags.conf +++ b/user-config/chrome-flags.conf @@ -6,5 +6,5 @@ --enable-gpu-rasterization --enable-zero-copy --enable-accelerated-video-decode ---enable-features=LazyImageLoading,NativeNotifications,ParallelDownloading,WebUIDarkMode,ReadLater,VaapiVideoDecoder +--enable-features=LazyImageLoading,NativeNotifications,ParallelDownloading,WebUIDarkMode,ReadLater,VaapiVideoDecoder,ReaderMode --disable-features=HardwareMediaKeyHandling