X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance?a=blobdiff_plain;ds=sidebyside;f=bookworm%2Fsetup_scripts%2Fsetup_desktop.sh;h=c306dbeedc34a66405d1f9d1c89257b801f36bde;hb=f741879b9686ecd1d9286ff88cadde40339c4d9a;hp=f265697f17c33726a7461019eb3e214deb27ec70;hpb=f50c2ff925fb389818dcb23a684acc0275821a36;p=config diff --git a/bookworm/setup_scripts/setup_desktop.sh b/bookworm/setup_scripts/setup_desktop.sh index f265697..c306dbe 100755 --- a/bookworm/setup_scripts/setup_desktop.sh +++ b/bookworm/setup_scripts/setup_desktop.sh @@ -1,5 +1,6 @@ #!/bin/sh set -e +set -x debian_version="bookworm" legal_system_names="x220 w530" @@ -25,3 +26,27 @@ config_tree_prefix="${HOME}/config/${debian_version}" setup_scripts_dir="${config_tree_prefix}/setup_scripts" cd "${setup_scripts_dir}" ./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}" + +if [ "$system_name" = "w530" ]; then + cd + git clone https://github.com/NVIDIA/open-gpu-kernel-modules + cd open-gpu-kernel-modules + git checkout 337e28e + make modules -j$(nproc) + make modules_install + cd + driver_version=535.86.05 + runscript=NVIDIA-Linux-x86_64-${driver_version}.run + wget https://us.download.nvidia.com/XFree86/Linux-x86_64/${driver_version}/${runscript} + chmod u+x ${runscript} + ./${runscript} --no-kernel-modules +fi + +# Set up user environments. +cd "${setup_scripts_dir}" +./copy_dirtree.sh "${config_tree_prefix}/home_files" "/root" minimal root +adduser --disabled-password --gecos "" plom +usermod -a -G sudo plom +passwd plom +cp setup_home.sh /home/plom +chown plom:plom /home/plom/setup_home.sh