home · contact · privacy
Update bookworm setup to accommodate h610m.
[config] / bookworm / setup_scripts / setup_desktop.sh
index 637dfc242717cb9c8c2cec741504b575a3412258..a617e0e1d9f99f78215690e060adc390dd7c7e6e 100755 (executable)
@@ -7,18 +7,22 @@ get_system_name_arg "$1"
 
 # Set up system without user environment.
 cd "${setup_scripts_dir}"
-./_setup.sh "${system_name}" "" user desktop thinkpad "${system_name}"
+if [ "$system_name" = "w530" || "$system_name" = "x220"]; then
+    ./_setup.sh "${system_name}" "" user desktop thinkpad "${system_name}"
+else
+    ./_setup.sh "${system_name}" "" user desktop "${system_name}"
+fi
 
-# Set up printer.
-ppd_deb="hll2350dwpdrv-4.0.0-1.i386.deb"
-wget "https://download.brother.com/welcome/dlf103566/${ppd_deb}"
-dpkg --add-architecture i386
-apt update
-apt install -y "./${ppd_deb}"
-service cups restart
-# lpadmin -p 'Brother_HLL2350DW' -m 'brother-HLL2350DW-cups-en.ppd'
-rm "./${ppd_deb}"
-# TODO explore potential lpadmin options like -o 'OutputMode=NormalGray'
+# Set up printer.
+ppd_deb="hll2350dwpdrv-4.0.0-1.i386.deb"
+wget "https://download.brother.com/welcome/dlf103566/${ppd_deb}"
+dpkg --add-architecture i386
+apt update
+apt install -y "./${ppd_deb}"
+service cups restart
+# lpadmin -p 'Brother_HLL2350DW' -m 'brother-HLL2350DW-cups-en.ppd'
+rm "./${ppd_deb}"
+# TODO explore potential lpadmin options like -o 'OutputMode=NormalGray'
 
 # Set up NVIDIA eGPU config.
 if [ "$system_name" = "w530" ]; then
@@ -26,16 +30,19 @@ if [ "$system_name" = "w530" ]; then
     git clone https://github.com/NVIDIA/open-gpu-kernel-modules
     cd open-gpu-kernel-modules
     git checkout 337e28e
+    # git checkout 4c29105335610933e744f4ab2524ea63fc39edaf
     make modules -j$(nproc)
     make modules_install
     cd
     driver_version=535.86.05
+    # driver_version=545.29.06
     runscript=NVIDIA-Linux-x86_64-${driver_version}.run
     wget https://us.download.nvidia.com/XFree86/Linux-x86_64/${driver_version}/${runscript}
     rmmod nouveau
     chmod u+x ${runscript} 
     ./${runscript} --no-kernel-modules --silent
     depmod
+    # TODO I suspect that the GPU falling of the bus may be mildened by running nvidia-persistenced, check https://github.com/NVIDIA/nvidia-persistenced/tree/main/init  
 fi
 
 # Set up user environments.