mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 01:21:33 -05:00
Update Ubuntu-Desktop-20.04-LTS.sh
This commit is contained in:
parent
0f1fb47e77
commit
b251f9e870
@ -184,6 +184,15 @@ sudo sed -i 's^DRIVER=="nvidia", RUN+="/usr/lib/gdm3/gdm-disable-wayland"^#DRIVE
|
|||||||
#Signing ashmem kernel module
|
#Signing ashmem kernel module
|
||||||
sudo kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der /lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko
|
sudo kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der /lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko
|
||||||
|
|
||||||
|
#Kind of an ugly hack, but since I use Nvidia and it needs to sign the Nvidia driver everytime theres a kernel update anyways, so I am doing this for now
|
||||||
|
sudo bash -c 'cat > /etc/dkms/sign_helper.sh' <<-'EOF'
|
||||||
|
#!/bin/sh
|
||||||
|
/lib/modules/"$1"/build/scripts/sign-file sha512 /root/mok.priv /root/mok.der "$2"
|
||||||
|
echo "kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der /lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
sudo chmod 755 /etc/dkms/sign_helper.sh
|
||||||
|
|
||||||
#Randomize MAC address
|
#Randomize MAC address
|
||||||
sudo bash -c 'cat > /etc/NetworkManager/conf.d/00-macrandomize.conf' <<-'EOF'
|
sudo bash -c 'cat > /etc/NetworkManager/conf.d/00-macrandomize.conf' <<-'EOF'
|
||||||
[device]
|
[device]
|
||||||
|
Loading…
Reference in New Issue
Block a user