summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2021-06-22 13:28:41 -0500
committerKyle K <kylek389@gmail.com>2021-06-22 13:28:41 -0500
commit19b0577d78e294877def287e5ea433ff4f7c6c34 (patch)
treee2002cffead0faa0b855e44438888765170f8dc9
parent510001b233a3d32872fa0934468302323085ebff (diff)
downloadconfigs-19b0577d78e294877def287e5ea433ff4f7c6c34.tar.gz
configs-19b0577d78e294877def287e5ea433ff4f7c6c34.tar.bz2
configs-19b0577d78e294877def287e5ea433ff4f7c6c34.zip
ROG Ubuntu, more backups
-rw-r--r--rog/etc/crypttab1
-rw-r--r--rog/etc/default/grub34
-rw-r--r--rog/etc/fstab29
-rw-r--r--rog/etc/modprobe.d/my.conf2
-rw-r--r--rog/etc/systemd/system/local.service14
-rw-r--r--rog/r.txt4
-rwxr-xr-xrog/usr/lib/udev/VBoxCreateUSBNode.sh51
-rwxr-xr-xrog/usr/local/bin/local-cleanup.sh2
-rwxr-xr-xrog/usr/local/bin/local.sh8
-rwxr-xr-xrog/usr/local/bin/sign-modules.sh15
10 files changed, 157 insertions, 3 deletions
diff --git a/rog/etc/crypttab b/rog/etc/crypttab
new file mode 100644
index 0000000..fbc52a4
--- /dev/null
+++ b/rog/etc/crypttab
@@ -0,0 +1 @@
+CRYPTED UUID=f63ff1bc-cdab-4a85-8a35-af82541b559f none luks,discard,initramfs
diff --git a/rog/etc/default/grub b/rog/etc/default/grub
new file mode 100644
index 0000000..4a381cd
--- /dev/null
+++ b/rog/etc/default/grub
@@ -0,0 +1,34 @@
+# If you change this file, run 'update-grub' afterwards to update
+# /boot/grub/grub.cfg.
+# For full documentation of the options in this file, see:
+# info -f grub -n 'Simple configuration'
+
+GRUB_DEFAULT=0
+GRUB_TIMEOUT_STYLE=hidden
+GRUB_TIMEOUT=10
+GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
+GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=f63ff1bc-cdab-4a85-8a35-af82541b559f:CRYPTED modprobe.blacklist=nouveau fsck.mode=skip"
+#GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=f63ff1bc-cdab-4a85-8a35-af82541b559f:CRYPTED"
+GRUB_CMDLINE_LINUX=""
+
+# Uncomment to enable BadRAM filtering, modify to suit your needs
+# This works with Linux (no patch required) and with any kernel that obtains
+# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
+#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
+
+# Uncomment to disable graphical terminal (grub-pc only)
+#GRUB_TERMINAL=console
+
+# The resolution used on graphical terminal
+# note that you can use only modes which your graphic card supports via VBE
+# you can see them in real GRUB with the command `vbeinfo'
+#GRUB_GFXMODE=640x480
+
+# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
+#GRUB_DISABLE_LINUX_UUID=true
+
+# Uncomment to disable generation of recovery mode menu entries
+#GRUB_DISABLE_RECOVERY="true"
+
+# Uncomment to get a beep at grub start
+#GRUB_INIT_TUNE="480 440 1"
diff --git a/rog/etc/fstab b/rog/etc/fstab
new file mode 100644
index 0000000..b162749
--- /dev/null
+++ b/rog/etc/fstab
@@ -0,0 +1,29 @@
+#/dev/mapper/CRYPTED / ext4 errors=remount-ro 0 1
+/dev/mapper/CRYPTED / ext4 errors=remount-ro 0 0
+
+#UUID=0cfa534f-3f59-4adb-908a-4bbdf69fe8ce /boot ext3 defaults 0 2
+UUID=0cfa534f-3f59-4adb-908a-4bbdf69fe8ce /boot ext3 defaults,nofail,x-systemd.automount,x-systemd.device-timeout=3 0 0
+
+#UUID=74B7-09FF /boot/efi vfat umask=0077 0 1
+UUID=74B7-09FF /boot/efi vfat umask=0077 0 0
+/swapfile none swap sw 0 0
+
+# /mnt/d (z97 rog)
+#/dev/md126p2 /mnt/d ntfs-3g defaults,uid=1000,gid=users,dmask=0022,fmask=133 0 2
+
+# 10TB RAID0 (z97 rog)
+#UUID=3A5AFA965AFA4E5F /mnt/e ntfs-3g defaults,rw,uid=1000,gid=1000,nofail,x-systemd.device-timeout=5 0 0
+
+# the 14TB is getting unlocked with dislocker at /usr/local/bin/local.sh, mounted as RO of course, can't risk it...
+
+tiny:/srv/dump/public /mnt/nfs nfs4 defaults,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10 0 0
+
+//192.168.1.13/jpop /mnt/jpop cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0
+//192.168.1.13/jpop2017 /mnt/jpop2017 cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0
+//192.168.1.13/jpop2018 /mnt/jpop2018 cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0
+//192.168.1.13/jpop2019 /mnt/jpop2019 cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0
+//192.168.1.13/jpop2020 /mnt/jpop2020 cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0
+
+# changelog
+#
+# disable fsck bit (last column was set to 0) for both /boot and /boot/efi filesystems as systemd is fucking up
diff --git a/rog/etc/modprobe.d/my.conf b/rog/etc/modprobe.d/my.conf
new file mode 100644
index 0000000..0223101
--- /dev/null
+++ b/rog/etc/modprobe.d/my.conf
@@ -0,0 +1,2 @@
+# triggers bug in gdm3 lmao, so use it only with startx or something
+options nvidia_drm modeset=1
diff --git a/rog/etc/systemd/system/local.service b/rog/etc/systemd/system/local.service
new file mode 100644
index 0000000..204c9d0
--- /dev/null
+++ b/rog/etc/systemd/system/local.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Run local commands after boot
+ConditionFileIsExecutable=/usr/local/bin/local.sh
+After=multi-user.target
+
+[Service]
+Type=oneshot
+# below is needed otherwise ExecStop would execute right after start and unmount
+RemainAfterExit=Yes
+ExecStart=/usr/local/bin/local.sh
+ExecStop=/usr/local/bin/local-cleanup.sh
+
+[Install]
+WantedBy=multi-user.target
diff --git a/rog/r.txt b/rog/r.txt
new file mode 100644
index 0000000..ef93f96
--- /dev/null
+++ b/rog/r.txt
@@ -0,0 +1,4 @@
+ls -1 /usr/src/my/
+ dislocker
+ gamemode
+ scdl
diff --git a/rog/usr/lib/udev/VBoxCreateUSBNode.sh b/rog/usr/lib/udev/VBoxCreateUSBNode.sh
new file mode 100755
index 0000000..ae45de2
--- /dev/null
+++ b/rog/usr/lib/udev/VBoxCreateUSBNode.sh
@@ -0,0 +1,51 @@
+#! /bin/sh
+# $Id: VBoxCreateUSBNode.sh $ */
+## @file
+# VirtualBox USB Proxy Service, Linux Specialization.
+# udev helper for creating and removing device nodes for VirtualBox USB devices
+#
+
+#
+# Copyright (C) 2010-2020 Oracle Corporation
+#
+# This file is part of VirtualBox Open Source Edition (OSE), as
+# available from http://www.virtualbox.org. This file is free software;
+# you can redistribute it and/or modify it under the terms of the GNU
+# General Public License (GPL) as published by the Free Software
+# Foundation, in version 2 as it comes in the "COPYING" file of the
+# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
+# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
+#
+
+# Constant, from the USB specifications
+usb_class_hub=09
+
+do_remove=0
+case "$1" in "--remove")
+ do_remove=1; shift;;
+esac
+bus=`expr "$2" '/' 128 + 1`
+device=`expr "$2" '%' 128 + 1`
+class="$3"
+group="$4"
+devdir="`printf "/dev/vboxusb/%.3d" $bus`"
+devpath="`printf "/dev/vboxusb/%.3d/%.3d" $bus $device`"
+case "$do_remove" in
+ 0)
+ if test -n "$class" -a "$class" -eq "$usb_class_hub"
+ then
+ exit 0
+ fi
+ case "$group" in "") group="vboxusers";; esac
+ mkdir /dev/vboxusb -m 0750 2>/dev/null
+ chown root:$group /dev/vboxusb 2>/dev/null
+ mkdir "$devdir" -m 0750 2>/dev/null
+ chown root:$group "$devdir" 2>/dev/null
+ mknod "$devpath" c $1 $2 -m 0660 2>/dev/null
+ chown root:$group "$devpath" 2>/dev/null
+ ;;
+ 1)
+ rm -f "$devpath"
+ ;;
+esac
+
diff --git a/rog/usr/local/bin/local-cleanup.sh b/rog/usr/local/bin/local-cleanup.sh
index 9495ec1..ff79960 100755
--- a/rog/usr/local/bin/local-cleanup.sh
+++ b/rog/usr/local/bin/local-cleanup.sh
@@ -1,4 +1,4 @@
#!/bin/bash
umount /mnt/d/
-umount /mnt/dislocker2
+#umount /mnt/dislocker2
diff --git a/rog/usr/local/bin/local.sh b/rog/usr/local/bin/local.sh
index c89c8b2..96bf893 100755
--- a/rog/usr/local/bin/local.sh
+++ b/rog/usr/local/bin/local.sh
@@ -10,7 +10,11 @@
#mount -t ntfs-3g -o defaults,rw,uid=1000,gid=1000,nofail,x-systemd.device-timeout=5 /dev/disk/by-id/md-uuid-415ed6dd:4dba377d:7cb2adcb:e170454c-part1 /mnt/d
# the 14TB hdd
-dislocker-fuse -v -r -V "/dev/disk/by-id/ata-ST14000DM001-2JC101_ZHZ1GDKT-part2" -pXXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX -- /mnt/dislocker/
-mount -o loop,ro,defaults,exec,uid=1000,gid=1000 /mnt/dislocker/dislocker-file /mnt/e/
+dislocker-fuse -v -r -V "/dev/disk/by-id/ata-ST14000DM001-2JC101_ZHZ1GDKT-part2" -p597707-275451-080267-169389-714274-455103-194942-207790 -- /mnt/dislocker/
+mount -o loop,ro,defaults,nofail,exec,uid=1000,gid=1000 /mnt/dislocker/dislocker-file /mnt/e/
/usr/local/bin/sign-modules.sh
+
+hdparm -S 0 /dev/disk/by-id/ata-ST14000DM001-2JC101_ZHZ1GDKT
+
+exit 0
diff --git a/rog/usr/local/bin/sign-modules.sh b/rog/usr/local/bin/sign-modules.sh
new file mode 100755
index 0000000..c0af5de
--- /dev/null
+++ b/rog/usr/local/bin/sign-modules.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+cd ~
+
+/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n nvidia)
+/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n nvidia_drm)
+/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n nvidia_uvm)
+/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n nvidia_modeset)
+
+/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)
+/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetadp)
+/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetflt)
+#/usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxpci)
+
+exit 0