mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Add files via upload
This commit is contained in:
parent
1d29d1796e
commit
e2c4ded514
130
redhat-alma-rocky/freshinstall-alma-rpm.sh
Normal file
130
redhat-alma-rocky/freshinstall-alma-rpm.sh
Normal file
@ -0,0 +1,130 @@
|
||||
#!/bin/bash
|
||||
|
||||
# BKP2FSARCHIVE 1ST!!
|
||||
# Add std pkgs to new install, after running -purgedebs 1st to make space
|
||||
|
||||
# 2020.0522 for opensuse leap 15.3
|
||||
|
||||
logfile=~/freshinstall.log
|
||||
|
||||
function addpkgs {
|
||||
dnf install -y $*
|
||||
} 2>>$logfile
|
||||
|
||||
# REF: https://www.virtualbox.org/wiki/Linux_Downloads
|
||||
#wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
|
||||
#wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
|
||||
|
||||
dnf install -y epel-release
|
||||
dnf update
|
||||
|
||||
# essential - fsarchiver
|
||||
addpkgs joe mc screen tmux lzop vim nano netcat bwm-ng openssh-server smartmontools sysstat yum-utils
|
||||
|
||||
addpkgs mlocate net-tools # net-tools-deprecated # ifconfig
|
||||
|
||||
# 2006.0828 for vmware:
|
||||
#addpkgs linux-headers-`uname -r` build-essential
|
||||
#libc6-i386 ia32-libs
|
||||
|
||||
# Admin
|
||||
#addpkgs synaptic aptitude apt-file
|
||||
addpkgs mlocate # ntpdate
|
||||
#addpkgs mbr lm-sensors
|
||||
addpkgs gawk sshfs
|
||||
addpkgs pv ethtool gparted iotop dos2unix # android-tools-adb notavl
|
||||
addpkgs p7zip unrar parallel pbzip2 # xz-utils # TODO - codecs? - to play dvds
|
||||
addpkgs xfsprogs
|
||||
|
||||
# SCSI stuff
|
||||
addpkgs lsscsi sdparm
|
||||
#/unstable
|
||||
|
||||
# Removed from deflt knoppix
|
||||
addpkgs lftp ncftp nmap iptraf-ng autossh filezilla # ethstatus
|
||||
|
||||
# AUDIO/VIDEO STUFF
|
||||
addpkgs sox cdparanoia lame mpg123 # ffmpeg devede
|
||||
addpkgs udftools dvd+rw-tools #growisofs
|
||||
addpkgs xine-ui #mplayer
|
||||
#TODO? + installed pkg /usr/share/doc/libdvdread4/install-css.sh
|
||||
|
||||
#addpkgs pavucontrol pulseaudio # for HDMI sound
|
||||
# 2017.1029 no install pkg deadbeef for antix
|
||||
|
||||
# X stuff
|
||||
addpkgs rdesktop wmctrl # xlsx2csv arandr
|
||||
addpkgs thunar xfce4-terminal xterm rxvt-unicode x11vnc xfce4-screenshooter #scrot mesa-utils
|
||||
#addpkgs fonts-liberation ttf-mscorefonts-installer xfonts-scalable
|
||||
addpkgs evince
|
||||
|
||||
addpkgs libreoffice
|
||||
|
||||
# xffm4 no pkg 2017.1029
|
||||
#log2mail
|
||||
#debian-goodies
|
||||
addpkgs nano nedit vim
|
||||
|
||||
|
||||
# TOYS
|
||||
addpkgs ristretto jpegoptim tumbler
|
||||
#xearth xsnow
|
||||
|
||||
|
||||
# Printing
|
||||
addpkgs cups hplip #hplip-gui # run ' hp-doctor ' non-root
|
||||
|
||||
|
||||
#addpkgs thunderbird
|
||||
|
||||
|
||||
#+ installed pkg # apt-get install virtualbox
|
||||
#addpkgs virtualbox
|
||||
|
||||
|
||||
# Moved to end due to prompt/weirdness/needs config
|
||||
|
||||
# ZFS on linux
|
||||
#2017.0223 FIX + installed pkg zfsutils-linux # was missing 'zpool' cmd
|
||||
# REF: https://github.com/zfsonlinux/zfs/wiki/Debian / https://packages.debian.org/source/stretch/zfs-linux
|
||||
#addpkgs zfs-dkms zfsutils-linux
|
||||
addpkgs samba cifs-utils
|
||||
addpkgs samba-client # samba-test samba-tool #yast2-samba\*
|
||||
#addpkgs cifs-utils
|
||||
# && modprobe zfs
|
||||
|
||||
|
||||
addpkgs vsftpd #libdvd-pkg
|
||||
#addpkgs squid3
|
||||
#dpkg-reconfigure libdvd-pkg
|
||||
|
||||
#addpkgs discover vsftpd sawfish localepurge rcconf scsiadd icewm
|
||||
addpkgs mutt # sarg
|
||||
# for squid reports - REF: https://www.tecmint.com/sarg-squid-analysis-report-generator-and-internet-bandwidth-monitoring-tool/
|
||||
|
||||
addpkgs rsyslog
|
||||
|
||||
addpkgs man man-pages
|
||||
|
||||
# REF: https://en.opensuse.org/OpenZFS
|
||||
#zypper addrepo https://download.opensuse.org/repositories/filesystems/openSUSE_Tumbleweed/filesystems.repo
|
||||
#addpkgs zfs zfs-kmp-default dkms
|
||||
|
||||
#apt-file update &
|
||||
[ `lsmod |grep -c zfs` -gt 0 ] && zpool import
|
||||
|
||||
echo "`date` - DONE"
|
||||
|
||||
exit;
|
||||
|
||||
2023.1209 alma / rpm
|
||||
|
||||
2018.jan all-in-1 for mx17:
|
||||
# apt-get install ethtool xterm rdesktop evince gparted httrack gedit lftp chromium \
|
||||
udftools xz-utils lzop exfat-utils bwm-ng geeqie xine-ui mplayer synaptic aptitude apt-file sysstat fbpager \
|
||||
vsftpd openssh-server localepurge icedax cdparanoia growisofs nmap vorbis-tools pv pbzip2 lsscsi mbr p7zip-full filezilla \
|
||||
vlc youtube-dl fsarchiver lm-sensors mesa-utils gawk dos2unix xlsx2csv lame arandr ffmpeg wodim android-tools-adb \
|
||||
dvd+rw-tools lsdvd scrot rxvt cifs-utils xtightvncviewer jpegoptim iotop handbrake handbrake-cli x11vnc \
|
||||
xvt hplip hplip-gui imagemagick bittornado-gui sox ristretto xfce4-screenshooter tumbler pavucontrol \
|
||||
libdvd-pkg buffer fonts-liberation ttf-mscorefonts-installer xfonts-scalable parallel hddtemp
|
||||
|
65
redhat-alma-rocky/vdo-create-volume.sh
Normal file
65
redhat-alma-rocky/vdo-create-volume.sh
Normal file
@ -0,0 +1,65 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 2024.mar kneutron
|
||||
# Works on almalinux 9
|
||||
|
||||
# Target disk
|
||||
# TODO EDITME - maybe better to use partition instead of whole device
|
||||
tdisk="pci-0000:06:0b.0-part1" # -> ../../vdb1
|
||||
|
||||
# REF: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/deduplicating_and_compressing_logical_volumes_on_rhel/index
|
||||
|
||||
# NOTE Starting with RHEL 9, VDO can only be managed using LVM tools
|
||||
|
||||
|
||||
#Replace logical-size with the amount of logical storage that the VDO volume should present:
|
||||
|
||||
#For active VMs or container storage, use logical size that is ten times the
|
||||
#physical size of your block device. For example, if your block device is
|
||||
# 1TB in size, use 10T here.
|
||||
|
||||
#For object storage, use logical size that is three times the physical size
|
||||
# of your block device. For example, if your block device is 1TB in size, use 3T here.
|
||||
|
||||
modprobe kvdo
|
||||
|
||||
# TODO EDITME
|
||||
vdoname=vdotest
|
||||
|
||||
# TODO EDITME physical disk size 128G
|
||||
let pdisk=128-1 # GB
|
||||
# NOTE if we dont do -1 get insufficient free extents error
|
||||
|
||||
lsize=$(echo $[$pdisk * 3])
|
||||
|
||||
set -x -u
|
||||
# RHEL8
|
||||
#time vdo create --name=$vdoname \
|
||||
# --device=/dev/disk/by-path/pci-0000:06:0b.0-part1 \
|
||||
# --vdoLogicalSize=${lsize}G --writePolicy=async
|
||||
|
||||
# RHEL9
|
||||
vgcreate $vdoname-vg "/dev/disk/by-path/$tdisk" # pci-0000:06:0b.0-part1
|
||||
|
||||
lvcreate --type vdo -n $vdoname-lv -L ${pdisk}G -V ${lsize}G $vdoname-vg/vdo-pool1
|
||||
|
||||
# vdotest--vg-vdotest--lv -> ../dm-4
|
||||
time mkfs.xfs -K /dev/mapper/$vdoname--vg-$vdoname--lv
|
||||
|
||||
echo "$(date) - waiting for Godot"
|
||||
time udevadm settle
|
||||
date
|
||||
|
||||
systemctl enable --now fstrim.timer # auto once a week
|
||||
|
||||
mkdir -pv /mnt/vdo1
|
||||
mount /dev/mapper/$vdoname--vg-$vdoname--lv /mnt/vdo1 -odefaults,noatime
|
||||
|
||||
set +x
|
||||
echo ''
|
||||
df -hT /mnt/vdo1
|
||||
echo ''
|
||||
echo "fstab:
|
||||
/dev/mapper/$vdoname--vg-$vdoname--lv mount-point xfs defaults,noatime 0 0"
|
||||
echo ''
|
||||
vdostats --human-readable
|
Loading…
x
Reference in New Issue
Block a user