for E in `ls -1`; do /usr/local/directadmin/shared/cpanel_to_da/cpanel_to_da.sh /home/admin/admin_backups/3/$E /home/admin/admin_backups/3/da/ ; done
linux list and sort all files in directory and subdirectories by size
du -ah . | grep -v "/$" | sort -rh | more
centos 7 ca expired?
t’s likely an old CA cert bundle on the system. Try the following to fix it:
Code:
curl -k -o /etc/ssl/certs/ISRG_Root_X1.pem https://letsencrypt.org/certs/isrgrootx1.pem
service directadmin restart
manjaro / arch linux BTRFS chroot grub install story.
[manjaro@manjaro-cinnamon ~]$ sudo pacman -Sy arch-install-scripts :: Synchronizing package databases... core 163.9 KiB 303 KiB/s 00:01 [######################] 100% extra 1865.8 KiB 2.29 MiB/s 00:01 [################################] 100% community 7.5 MiB 5.84 MiB/s 00:01 [################################] 100% multilib 169.3 KiB 1411 KiB/s 00:00 [################################] 100% error: failed retrieving file 'core.db' from kambing.ui.ac.id : Failed to connect to kambing.ui.ac.id port 80 after 5212 ms: Connection timed out error: failed retrieving file 'core.db' from ftp.cuhk.edu.hk : Failed to connect to ftp.cuhk.edu.hk port 80 after 5210 ms: Connection timed out error: failed retrieving file 'extra.db' from kambing.ui.ac.id : Failed to connect to kambing.ui.ac.id port 80 after 5202 ms: Connection timed out error: failed retrieving file 'extra.db' from ftp.cuhk.edu.hk : Failed to connect to ftp.cuhk.edu.hk port 80 after 5201 ms: Connection timed out error: failed retrieving file 'community.db' from kambing.ui.ac.id : Failed to connect to kambing.ui.ac.id port 80 after 5201 ms: Connection timed out warning: too many errors from kambing.ui.ac.id, skipping for the remainder of this transaction error: failed retrieving file 'community.db' from ftp.cuhk.edu.hk : Failed to connect to ftp.cuhk.edu.hk port 80 after 5202 ms: Connection timed out warning: too many errors from ftp.cuhk.edu.hk, skipping for the remainder of this transaction :: Some packages should be upgraded first... resolving dependencies... looking for conflicting packages... Packages (2) archlinux-keyring-20221123-1 manjaro-keyring-20221028-4 Total Download Size: 1.64 MiB Total Installed Size: 2.28 MiB Net Upgrade Size: 0.02 MiB :: Proceed with installation? [Y/n] y :: Retrieving packages... archlinux-keyring-20221123... 1140.5 KiB 2.46 MiB/s 00:00 [################################] 100% manjaro-keyring-20221028-4-any 541.6 KiB 6.96 MiB/s 00:00 [################################] 100% Total (2/2) 1682.2 KiB 2.49 MiB/s 00:01 [################################] 100% (2/2) checking keys in keyring [################################] 100% (2/2) checking package integrity [################################] 100% (2/2) loading package files [################################] 100% (2/2) checking for file conflicts [################################] 100% (2/2) checking available disk space [################################] 100% :: Processing package changes... (1/2) upgrading archlinux-keyring [################################] 100% ==> Appending keys from archlinux.gpg... ==> Locally signing trusted keys in keyring... -> Locally signed 1 keys. ==> Importing owner trust values... gpg: inserting ownertrust of 4 ==> Disabling revoked keys in keyring... -> Disabled 2 keys. ==> Updating trust database... gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 20 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: depth: 1 valid: 20 signed: 94 trust: 0-, 0q, 0n, 20m, 0f, 0u gpg: depth: 2 valid: 74 signed: 28 trust: 74-, 0q, 0n, 0m, 0f, 0u gpg: next trustdb check due at 2023-01-01 ==> Updating trust database... gpg: next trustdb check due at 2023-01-01 ==> Delete expired Build-Server Key ==> Updating trust database... gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 20 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: depth: 1 valid: 20 signed: 94 trust: 0-, 0q, 0n, 20m, 0f, 0u gpg: depth: 2 valid: 74 signed: 28 trust: 74-, 0q, 0n, 0m, 0f, 0u gpg: next trustdb check due at 2023-01-01 (2/2) upgrading manjaro-keyring [################################] 100% ==> Appending keys from manjaro.gpg... ==> Locally signing trusted keys in keyring... -> Locally signed 4 keys. ==> Importing owner trust values... gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 ==> Updating trust database... gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 22 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: depth: 1 valid: 22 signed: 94 trust: 0-, 0q, 0n, 22m, 0f, 0u gpg: depth: 2 valid: 74 signed: 28 trust: 74-, 0q, 0n, 0m, 0f, 0u gpg: next trustdb check due at 2023-01-01 :: Running post-transaction hooks... (1/2) Reloading system manager configuration... (2/2) Arming ConditionNeedsUpdate... resolving dependencies... looking for conflicting packages... Packages (1) arch-install-scripts-28-1 Total Download Size: 0.02 MiB Total Installed Size: 0.05 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... arch-install-scripts-28-1-any 15.8 KiB 42.3 KiB/s 00:00 [################################] 100% error: failed retrieving file 'arch-install-scripts-28-1-any.pkg.tar.zst' from kambing.ui.ac.id : Failed to connect to kambing.ui.ac.id port 80 after 6160 ms: Connection timed out error: failed retrieving file 'arch-install-scripts-28-1-any.pkg.tar.zst' from ftp.cuhk.edu.hk : Failed to connect to ftp.cuhk.edu.hk port 80 after 5212 ms: Connection timed out (1/1) checking keys in keyring [################################] 100% (1/1) checking package integrity [################################] 100% (1/1) loading package files [################################] 100% (1/1) checking for file conflicts [################################] 100% (1/1) checking available disk space [################################] 100% :: Processing package changes... (1/1) installing arch-install-scripts [################################] 100% :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... [manjaro@manjaro-cinnamon ~]$ sudo lsblk -f NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS loop0 squash 4.0 0 100% /run/miso/sfs/livefs loop1 squash 4.0 0 100% /run/miso/sfs/mhwdfs loop2 squash 4.0 0 100% /run/miso/sfs/desktopfs loop3 squash 4.0 0 100% /run/miso/sfs/rootfs sda └─sda1 ext4 1.0 10tb1 d59252fa-9b89-42c4-b966-5606a6f02b89 8.2T 4% /run/media/manjaro/10tb1 sdb └─sdb1 ext4 1.0 10tb2 47a23e21-ec2f-4f79-b1e2-0d6d62c0c8ef 355.9G 91% /run/media/manjaro/10tb2 sdc └─sdc1 ext4 1.0 10tb3 0ea2653e-5cb2-4f29-8904-c45c525961af 751.8G 87% /run/media/manjaro/10tb3 sdd └─sdd1 ext4 1.0 EVO860-2 f12442dd-5018-45db-9523-d92a857bf6b1 sde └─sde1 ext4 1.0 EVO860-1 ddb9d9b0-c043-4162-8607-28d0cfbf199f sdf iso966 Jolie MANJARO_CINNAMON_2137 2022-08-26-08-40-30-00 0 100% /run/miso/bootmnt ├─sdf1 │ iso966 Jolie MANJARO_CINNAMON_2137 │ 2022-08-26-08-40-30-00 └─sdf2 vfat FAT12 MISO_EFI 2664-DC36 nvme1n1 ├─nvme1n1p1 │ vfat FAT32 3C81-0B10 ├─nvme1n1p2 │ ├─nvme1n1p3 │ ntfs 429481D89481CF3B └─nvme1n1p4 ntfs DC76D99C76D9782A nvme0n1 ├─nvme0n1p1 │ vfat FAT32 NO_LABEL D380-908E └─nvme0n1p2 btrfs aca29224-1164-4d3f-807c-170e5a9174f2 [manjaro@manjaro-cinnamon ~]$ sudo mount -o subvol=@ /dev/nvme0n1p2 /mnt [manjaro@manjaro-cinnamon ~]$ sudo mount -o subvol=@log /dev/nvme0n1p2 /mnt/var/log [manjaro@manjaro-cinnamon ~]$ sudo mount -o subvol=@cache /dev/nvme0n1p2 /mnt/var/cache [manjaro@manjaro-cinnamon ~]$ sudo mount -o subvol=@home /dev/nvme0n1p2 /mnt/home [manjaro@manjaro-cinnamon ~]$ sudo mount /dev/nvme0n1p1 /mnt/boot/efi [manjaro@manjaro-cinnamon ~]$ [manjaro@manjaro-cinnamon ~]$ [manjaro@manjaro-cinnamon ~]$ arch arch-chroot archlinux-java archlinux-keyring-wkd-sync [manjaro@manjaro-cinnamon ~]$ arch-chroot /mnt ==> ERROR: This script must be run with root privileges [manjaro@manjaro-cinnamon ~]$ sudo arch-chroot /mnt [manjaro-cinnamon /]# sudo arch-chroot /mnt Installing for x86_64-efi platform. Installation finished. No error reported. [manjaro-cinnamon /]#
Summary:
Whenever I did a BIOS update my manjaro cinnamon installation which boots in UEFI mode and which also happens to be a BTRFS installation fucks up and never boots again , because by somehow my fucking BIOS can not find the UEFI boot entry again.
So what I do do fix this problem:
1- create a bootable manjaro cinnamon usb using etcher.
2- boot from this usb into manjaro cinnamon live using UEFI (important)
3- then appy these commands: ( details above)
sudo pacman -Sy arch-install-scripts
sudo lsblk -f
sudo mount -o subvol=@ /dev/nvme0n1p2 /mnt
sudo mount -o subvol=@log /dev/nvme0n1p2 /mnt/var/log
sudo mount -o subvol=@cache /dev/nvme0n1p2 /mnt/var/cache
sudo mount -o subvol=@home /dev/nvme0n1p2 /mnt/home
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
sudo arch-chroot /mnt
grub-install
exit chroot , reboot , set BIOS UEFI boot entry to “manjaro” again and boot….
important notes: For this to work you MUST first boot into Live USB environment using UEFI boot. Otherwise you can not chroot and write grub to /boot/efi
ntp / ntpd almalinux ? chronyd
almalinuxda nedense ntp/ntpd yi kaldirmislar
yerine chronyd yi koymuslar
bu minik yazilim artik kendi kendine network icin ntpd serverda oluyor
ama ben bu ozelligini kullanmiyorum su an
kurmak icin
dnf install chrony
systemctl start chronyd
systemctl status chronyd
systemctl enable chronyd
Adaptec RAID controller: how to get rebuild status
[root@host ~]# arcconf getstatus 1
Controllers found: 1
Logical device Task:
Logical device : 0
Task ID : 100
Current operation : Rebuild
Status : In Progress
Priority : High
Percentage complete : 0
Command completed successfully.
[root@host ~]#
Title: Adaptec ARCCONF Command Line Utility B25335
Filename: arcconf_B25335.zip
https://download.adaptec.com/raid/storage_manager/arcconf_B25335.zip
https://docs.hetzner.com/robot/dedicated-server/raid/adaptec-raid-controller/#how-to-restore-a-faulty-array
An example for the first array on the first controller would be:
arcconf SETSTATE 1 LOGICALDRIVE 0 OPTIMAL ADVANCED nocheck noprompt
https://www.thomas-krenn.com/en/wiki/Adaptec_arcconf_CLI_Commands
arcconf GETCONFIG 1
2 tane ayar ?
2 tane ayar var eger nginx_apache run etmiyorsan
ayar1: mpm event hikayesi
nano /etc/httpd/conf/extra/httpd-mpm.conf
<IfModule mpm_event_module>
StartServers 8
MinSpareThreads 48
MaxSpareThreads 148
ThreadsPerChild 64
ServerLimit 48
MaxRequestWorkers 3072
MaxConnectionsPerChild 12000
</IfModule>
ayar2: php-fpm ccocuklarinin dayanilmaz gurultusu:
nano /usr/local/php74/etc/php-fpm.conf
pm = ondemand
pm.max_children = 100
pm.process_idle_timeout = 10
pm.max_requests = 500
add dummy fake monitor to headless vm for to change screen resolution etc.
Basically install a dummy driver:
sudo apt-get install xserver-xorg-video-dummy
Then write it in the /usr/share/X11/xorg.conf.d/xorg.conf
(or possibly /etc/X11/xorg.conf
) file (create one, if it does not exist):
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x800"
EndSubSection
EndSection
Then restart the computer.
almalinux iptables
almalinuxda inatla iptables kullanmak istiyorum
systemctl stop firewalld
systemctl disable firewalld
systemctl mask firewalld
dnf remove firewalld
dnf update
dnf makecache --refresh
dnf -y install iptables-services
systemctl start iptables
systemctl enable iptables
systemctl status iptables
iptables-save > /etc/sysconfig/iptables
ip6tables-save > /etc/sysconfig/ip6tables
save etmiyor reboot edince hikayesi servisleri kurunca olmuyor artik.
phpinfo pff
echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/test.php