X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=bookworm%2Fsetup_scripts%2Fsetup_desktop.sh;h=216bf7c0160b0d5a43c86a96711c9fe0092d9ef3;hb=5f8840a7eed21f8601ce5055e0e605c98f06d0d2;hp=9675df81987ac29ebfc3198ea6aa122f603121f6;hpb=c23514e257843acb215e435b2da06a24c11f39dd;p=config diff --git a/bookworm/setup_scripts/setup_desktop.sh b/bookworm/setup_scripts/setup_desktop.sh index 9675df8..216bf7c 100755 --- a/bookworm/setup_scripts/setup_desktop.sh +++ b/bookworm/setup_scripts/setup_desktop.sh @@ -10,6 +10,17 @@ get_system_name_arg "$1" cd "${setup_scripts_dir}" ./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}" +# 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 cd @@ -22,8 +33,10 @@ if [ "$system_name" = "w530" ]; then 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} + rmmod nouveau chmod u+x ${runscript} ./${runscript} --no-kernel-modules + depmod fi # Set up user environments. @@ -33,4 +46,5 @@ 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 +cp misc.sh /home/plom +chown plom:plom /home/plom/*.sh