mirror of
https://github.com/IntenseWebs/servercode.git
synced 2026-08-26 13:17:09 -05:00
134 lines
3.8 KiB
Plaintext
Executable File
134 lines
3.8 KiB
Plaintext
Executable File
* 2 * * * sysbench --time=14400 cpu run
|
|
# OPEN SOURCE BENCHMARKS
|
|
speccpu, netperf, memtier_benchmark, aerospike, hpcc
|
|
|
|
sudo apt purge apport apport-gtk apport-retrace apport-symptoms
|
|
|
|
inxi -Fxxc0 | nc termbin.com 9999
|
|
|
|
sudo dnf environment list --available | grep desktop
|
|
|
|
sudo dnf install switchdesk switchdesk-gui
|
|
|
|
# sudo dnf install @kde-desktop-environment
|
|
|
|
dnf grouplist -v
|
|
dnf groupinstall "Fedora Workstation"
|
|
dnf groupinstall "Cinnamon Desktop"
|
|
systemctl set-default graphical.target
|
|
# With some desktop you may also need:
|
|
systemctl enable gdm.service
|
|
sudo dnf install switchdesk switchdesk-gui
|
|
|
|
sudo vi /etc/gdm3/daemon.conf
|
|
[security]
|
|
AllowRoot=True
|
|
sudo vi /etc/pam.d/gdm-password
|
|
# COMMENT OUT: # auth required pam_succeed_if.so user != root quiet_success
|
|
|
|
sudo apt remove gnome-keyring
|
|
sudo apt autoclean && sudo apt autoremove
|
|
|
|
sudo apt install gvfs-backends
|
|
sudo apt reinstall gvfs-backends
|
|
|
|
systemctl list-unit-files | grep masked
|
|
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
|
|
|
|
tar zcvf email-backup.tar.gz /home/privacy/.thunderbird/
|
|
|
|
systemctl status display-manager.service
|
|
sudo dpkg-reconfigure gdm3
|
|
|
|
gunzip linux-brprinter-installer-2.2.3-1.gz
|
|
cd linux-brprinter-installer-2.2.3-1
|
|
chmod +x linux*
|
|
sudo ./linux-brprinter-installer-2.2.3-1
|
|
|
|
sudo dpkg --configure -a
|
|
sudo cp -a /boot
|
|
sudo cp -a /boot .
|
|
sudo update-initramfs -ut -b .
|
|
sudo dpkg --purge raspi-firmware
|
|
sudo dpkg --configure -a
|
|
sudo apt remove initramfs-tools
|
|
sudo apt install itramfs-tools
|
|
sudo apt install initramfs-tools
|
|
sudo dpkg --configure -a
|
|
shutdown -r now
|
|
|
|
sudo apt-get install pavucontrol
|
|
sudo apt-get install pulseaudio-equalizer
|
|
sudo apt-get install alsamixer
|
|
sudo alsactl init
|
|
pacmd list-cards
|
|
sudo pacmd list-cards
|
|
sudo apt-get install alsa-tools-gui
|
|
---------------------------------------------
|
|
# sudo systemctl restart networking
|
|
# Frozen SSH afterwards do this:
|
|
<enter>
|
|
~
|
|
.
|
|
---------------------------------------------
|
|
sudo dnf install akmod-nvidia
|
|
sudo dnf install xorg-x11-drv-nvidia-cuda
|
|
---------------------------------------------
|
|
source /etc/profile.d/bash_completion.sh
|
|
|
|
cat >> ~/.inputrc <<'EOF'
|
|
"\e[A": history-search-backward
|
|
"\e[B": history-search-forward
|
|
EOF
|
|
|
|
bind -f ~/.inputrc
|
|
---------------------------------------------
|
|
# FEDORA fix broken packages
|
|
sudo rpm -Va
|
|
rpm --rebuilddb
|
|
sudo dnf upgrade -b
|
|
sudo dnf --refresh reinstall package_name
|
|
sudo yum reinstall \*
|
|
sudo yum update --skip-broken
|
|
---------------------------------------------
|
|
sudo modprobe zram
|
|
sudo zramctl -s 128G -a zstd
|
|
sudo mkfs.ext4 -N 33554432 -m 0 /dev/zram0
|
|
sudo mount -o discard /dev/zram0 build/
|
|
sudo chown -R myuser build/
|
|
|
|
---------------------------------------------
|
|
Recover the Root Password
|
|
|
|
If you need to recover credentials, use this method to gaining access to the instance.
|
|
|
|
Reboot the system.
|
|
|
|
Interrupt the grub2 menu by pressing "e" to edit when prompted with the grub menu.
|
|
|
|
Move the cursor to the end of the line that specifies the kernel (vmlinuz). You may want to remove all other consoles other than TTY0, however, this step may not be necessary for your environment.
|
|
|
|
Append rd.break (no quotes), which will break the boot process just before the control is handed from initramfs to the actual system.
|
|
|
|
Ctrl+x to boot.
|
|
|
|
A root shell is presented with the root filesystem mounted in read-only mode on /sysroot.
|
|
|
|
Remount it with write privileges as /sysroot.
|
|
|
|
# mount -oremount,rw /sysroot
|
|
|
|
Switch to a chroot jail.
|
|
|
|
# chroot /sysroot
|
|
|
|
Change the password for the desired user.
|
|
|
|
# passwd example-username
|
|
|
|
If you use SELinux, you should consider re-labeling all files before continuing the boot process. Skip this part if you don't use SELinux.
|
|
|
|
# touch /.autorelabel
|
|
|
|
Use the exit to exit the chroot jail. Use exit a second time, and the system will cleanly boot from the point we interrupted it.
|