6 expect_n_args 1 "(system name)" "$@"
7 get_system_name_arg "$1"
9 # Set up system without user environment.
10 cd "${setup_scripts_dir}"
11 ./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}"
13 # Set up NVIDIA eGPU config.
14 if [ "$system_name" = "w530" ]; then
16 git clone https://github.com/NVIDIA/open-gpu-kernel-modules
17 cd open-gpu-kernel-modules
19 make modules -j$(nproc)
22 driver_version=535.86.05
23 runscript=NVIDIA-Linux-x86_64-${driver_version}.run
24 wget https://us.download.nvidia.com/XFree86/Linux-x86_64/${driver_version}/${runscript}
25 chmod u+x ${runscript}
26 ./${runscript} --no-kernel-modules
29 # Set up user environments.
30 cd "${setup_scripts_dir}"
31 ./copy_dirtree.sh "${config_tree_prefix}/home_files" "/root" minimal root
32 adduser --disabled-password --gecos "" plom
33 usermod -a -G sudo plom
35 cp setup_home.sh /home/plom
36 chown plom:plom /home/plom/setup_home.sh