home · contact · privacy
Enhance w530 bookworm setup.
[config] / bookworm / setup_scripts / setup_desktop.sh
index 4b5a554f183f2f1c072f3061fdcf2b6720666994..c306dbeedc34a66405d1f9d1c89257b801f36bde 100755 (executable)
@@ -32,7 +32,7 @@ if [ "$system_name" = "w530" ]; then
     git clone https://github.com/NVIDIA/open-gpu-kernel-modules
     cd open-gpu-kernel-modules
     git checkout 337e28e
-    make modules -j($nproc)
+    make modules -j$(nproc)
     make modules_install
     cd
     driver_version=535.86.05
@@ -41,3 +41,12 @@ if [ "$system_name" = "w530" ]; then
     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