5 expect_n_args 1 "(system name)" "$@"
6 get_system_name_arg "$1"
8 # Set up system without user environment.
9 cd "${setup_scripts_dir}"
10 ./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}"
13 ppd_deb="hll2350dwpdrv-4.0.0-1.i386.deb"
14 wget "https://download.brother.com/welcome/dlf103566/${ppd_deb}"
15 dpkg --add-architecture i386
17 apt install -y "./${ppd_deb}"
19 # lpadmin -p 'Brother_HLL2350DW' -m 'brother-HLL2350DW-cups-en.ppd'
21 # TODO explore potential lpadmin options like -o 'OutputMode=NormalGray'
23 # Set up NVIDIA eGPU config.
24 if [ "$system_name" = "w530" ]; then
26 git clone https://github.com/NVIDIA/open-gpu-kernel-modules
27 cd open-gpu-kernel-modules
29 make modules -j$(nproc)
32 driver_version=535.86.05
33 runscript=NVIDIA-Linux-x86_64-${driver_version}.run
34 wget https://us.download.nvidia.com/XFree86/Linux-x86_64/${driver_version}/${runscript}
36 chmod u+x ${runscript}
37 ./${runscript} --no-kernel-modules --silent
41 # Set up user environments.
42 cd "${setup_scripts_dir}"
43 ./copy_dirtree.sh "${config_tree_prefix}/home_files" "/root" minimal root
44 adduser --disabled-password --gecos "" plom
45 usermod -a -G sudo plom
47 cp -a ~/config /home/plom
48 chown -R plom:plom /home/plom/config