From f741879b9686ecd1d9286ff88cadde40339c4d9a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 1 Aug 2023 22:32:14 +0200 Subject: [PATCH] Enhance w530 bookworm setup. --- bookworm/apt-mark/w530 | 1 + bookworm/etc_files/w530/etc/default/grub | 32 ++++++ bookworm/setup_scripts/.setup_desktop.sh.swp | Bin 0 -> 12288 bytes bookworm/setup_scripts/.setup_home.sh.swp | Bin 0 -> 16384 bytes bookworm/setup_scripts/setup_desktop.sh | 11 +- bookworm/setup_scripts/setup_home.sh | 115 +++++++++++++++++++ 6 files changed, 158 insertions(+), 1 deletion(-) create mode 100644 bookworm/etc_files/w530/etc/default/grub create mode 100644 bookworm/setup_scripts/.setup_desktop.sh.swp create mode 100644 bookworm/setup_scripts/.setup_home.sh.swp create mode 100755 bookworm/setup_scripts/setup_home.sh diff --git a/bookworm/apt-mark/w530 b/bookworm/apt-mark/w530 index 46d4321..f61c1d1 100644 --- a/bookworm/apt-mark/w530 +++ b/bookworm/apt-mark/w530 @@ -5,6 +5,7 @@ make linux-headers-6.1.0-10-amd64 xz-utils # for NVIDIA driver .run --no-kernel-modules +wget libvulkan1 libglvnd-dev pkg-config diff --git a/bookworm/etc_files/w530/etc/default/grub b/bookworm/etc_files/w530/etc/default/grub new file mode 100644 index 0000000..ff1b598 --- /dev/null +++ b/bookworm/etc_files/w530/etc/default/grub @@ -0,0 +1,32 @@ +# If you change this file, run 'update-grub' afterwards to update +# /boot/grub/grub.cfg. +# For full documentation of the options in this file, see: +# info -f grub -n 'Simple configuration' + +GRUB_DEFAULT=0 +GRUB_TIMEOUT=5 +GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` +GRUB_CMDLINE_LINUX_DEFAULT="quiet nvidia.NVreg_OpenRmEnableUnsupportedGpus=1" +GRUB_CMDLINE_LINUX="" + +# Uncomment to enable BadRAM filtering, modify to suit your needs +# This works with Linux (no patch required) and with any kernel that obtains +# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) +#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" + +# Uncomment to disable graphical terminal (grub-pc only) +#GRUB_TERMINAL=console + +# The resolution used on graphical terminal +# note that you can use only modes which your graphic card supports via VBE +# you can see them in real GRUB with the command `vbeinfo' +#GRUB_GFXMODE=640x480 + +# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux +#GRUB_DISABLE_LINUX_UUID=true + +# Uncomment to disable generation of recovery mode menu entries +#GRUB_DISABLE_RECOVERY="true" + +# Uncomment to get a beep at grub start +#GRUB_INIT_TUNE="480 440 1" diff --git a/bookworm/setup_scripts/.setup_desktop.sh.swp b/bookworm/setup_scripts/.setup_desktop.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..099e6cdbc211fceaf3878402d1bd67771397daf5 GIT binary patch literal 12288 zcmeI2&yU+g6vw9=kQOK)_y?xWO6>~S&StwyXq5vJzgA)k656s-1(xHPB-1!E#$z{G zRVk+e;t$}!fddlaR>Xw^7Z4{nz=aFqAAlQ(1HJN{v9s%JTFQ0NSo+5C%$qm!KJPiw zYG1#7b$5?;gAT#f$i~dyG7iJ6?584$a-Jz2 zCQ1&(FzhQeo~nEjYF?CCq?24^g|43%*W*HEfgb&rO`MG*;0UY|D2svLJ-ffv*|hI! z%R5J(erkW!&W$(%j({WJ2si?cfFs}tI0BBq|CT_Jogwccx`*lrFV^=nC+_v5yEy`m zfFs}tI0BA8`40LD`WUjYoxBRc|) zfFs}tI0BAQ~zbEOQx#vm@zX&eV+*(_fyV%yG-S<^@luBntEPk8=w(2JB*mfi=3O? zskeT!>P?NzNR;J#AZBxW*k~Y9u0867xl)BkCqjxzoKo{d5@wbzwXqtvbC0y>8@!-p zM(wG%ydiQWCtMafAY>p2#TA6>H}g_f{jYNzQ!0PVbIDU5A(q(Ink6F>aQV!PE}7f8 z=@7e&iXzjO!m!i<1MXDCEWn0L#6f}<+=G`8Q+FqPRmgJY&$>I&&PD9Za&d#_5u}BZ z^QE&`-$zI5UAemZ!tV2a(}BO@Ab`DHx9qsLy|o>5cY^kI6%4btNj&DX4l)u_7jc@d zOi=&&`URQgD%r4eLs6ihcrsRHLASP^<()3Col=!?=?}B=UI6X7R7rkB3L~SkZ|PLA zh5xobVMGk*HKbY}>Vi)q8Be%Jd(@k5Z?!%8)@53ZxFjT~dYJ2qY8cN^KVDS|b$>Hf z2szH;s(_B&qIB+GR4awnyHDXR8N#FOyKdIDS@_CpdoRuxJ=sVn?~7O-)kC9%t3c=! z&RsWS(UcGIy3{@lxxicC9H>$<1G0U@kReSrr}aBRapCv{ zYL~Cs2{Y0_Ya(epMgjzliMg!*-X<~M>kMw%yfqUUiQ^0oRNnL*2`VIAw-H2*P4s2T z6sf$o7jN^4;LqFO`7BO~^pKk3i}PV=egWu(28@m1{DMZyqdv?wk64h^jeDMHzo)kD d$a2Pd-lDJGBgjAXXVs09*151RWQbqce*kWCB!2(^ literal 0 HcmV?d00001 diff --git a/bookworm/setup_scripts/.setup_home.sh.swp b/bookworm/setup_scripts/.setup_home.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..571101ae910a25b8ded33836fc775f3c6f719475 GIT binary patch literal 16384 zcmeI2ZHOIL8OO(Ho1`@=3M#E7PwrjWq~y-r-H>FHupu#~NyH>28!N%+b?(fWdrx=X zm~&=#uX(9jDiowrK`ep@>W3;=^g|1Zf>o$59~3N6!GMKQ`lU2hQlX&H|8r*U-MRZ> z6e5buWq-SO=Df@~|9Q@H&U5y3+Yg*LNi+7eh0i-I>j(3{@bCGZZTsUiFhm*sA}p zJfY50D^M%2rUJPRS~FX$UDH!$tTr3l=w0vp$eLN}o3#S90<{9Q0<{9Q0<{9Q0<{9Q z0{@>1=yZei5W2RZ?A~4F-#4xJ`{wfc+&cNn+x4GXfm(rDfm(rDfm(rDfm(rDfm(rD zfm(rDfm(t8K?PjjvaY|?vX-`>arpoLF#i9`+b!!FxB{L5PlK-l2|D0BI147hjkj6W ztKetgY48;I7We`PK^JtuDR2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wyBti((Ndo9Jhga)i~&M<%S%xht74~+}F-&t@or#MAh%x8s>lofGh zg{`dl(mC0HiF_Iqjdr2Tdj=A#JN`uL(ad}SRc#CC7b_IH?eFuLvK26JEhqe+bWM> zqfM(DzIOLZaWMgiu5{zh(DODdt5`7_n?c#BhJ_iF?ImzSCCs;C_?_a3ITSq%o1zG@ zgTrdRT=1DCEwA+2Bf~RGB~w>XC4WUr%xZD7shaPMH{e3$vLj)poP|H8{@E#uzn71k zG7HOzu@cLxO!o9+NgSX|m>zU0_mx>R7PYt6>HMVWyjVhzg_SfrT{r9H5wGvJ7gZTC zcG#0cHL%)kA=}hQ3v2a*XB&J9pB8uTYB#L$7c<)!9*Tp;5EeX-vAzPzy|PV#OyDCKY-tZCxOv>{lL6VsTH_&3Shpew|VMq zo_d>yL&0J=tdSjaKD1-&L!(d6u_gvG}gHdFpMRs0_9_7BfNlSlBq) zkf=o3Wz5F*Q`!Gp6|r)}S#R^y+dOM+X4Km}p;&vL<5q0*VB>r2zd!435Sgti-mB)3 eYW85Oo5gFlZ~c9kCarV ~/.ssh/id_rsa.pub +# stty echo +# eval $(ssh-agent) +# ssh-add +# ssh-keyscan -H "plomlompom.com" >> ~/.ssh/known_hosts +# +# # Clone config to copy dotfiles etc. from it. +# cd +# mkdir -p "${public_repos_dir}" +# ensure_repo config +# cd "${setup_scripts_dir}" +# ./copy_dirtree.sh "${config_tree_prefix}/home_files" "${HOME}" minimal user "${system_name}" +# +# # Set up native messenger for tridactyl. +# version='ef9f02d0da258f68d7faf8898707f6d83d90d07a' +# curl -fsSl "https://raw.githubusercontent.com/tridactyl/tridactyl/${version}/native/install.sh" | bash +# +# # Set up further non-public parts of infrastructure. +# cd "${dir_secrets}" +# script -c 'gpg --import secret_keys.asc' /dev/null +# tar xf borg_keyfiles.tar +# mkdir -p "${borgkeys_dir}" +# mv borg_keyfiles/* "${borgkeys_dir}" +# # .authinfo may not be present on every secrets drive yet +# if [ -f "${authinfo_file}" ]; then +# cp "${authinfo_file}" ~ +# fi +# cd +# rm -rf "${dir_secrets}" +# +# # Sync org dir via borgbackup. For this we need the borgbackup servers +# # in our .ssh/known_hosts file. +# cat "${borgrepos_file}" | while read line; do +# first_char=$(echo "${line}" | cut -c1) +# if [ "${first_char}" = "#" ]; then +# continue +# fi +# server=$(echo "${line}" | sed 's/.*@//') +# ssh-keyscan "${server}" >> "${ssh_dir}"/known_hosts +# done +# BORG_PASSPHRASE="${SECRETS_PASS}" "${path_borgscript}" orgpull +# +# # Fill ~/public_repos. +# cat "${repos_list_file}" | while read line; do +# first_char=$(echo "${line}" | cut -c1) +# if [ "${first_char}" = "#" ]; then +# continue +# fi +# ensure_repo "${line}" +# done +# +# # Set up e-mail system. Note that we only do mbsync if the imap pass file +# # is found. It may not be present on every secrets drive yet, so we have to +# # deal with the possibility of it being absent at this point. +# mkdir -p "${maildir}" # expected by mbsync/isync +# if [ -f "${HOME}/${authinfo_file}" ]; then +# mbsync -a +# notmuch new +# fi +# +# # # Final note on how to integrate tridactyl. +# # echo "TODO: As tridactyl user, don't forget to do :source on the first Firefox run, wait a little while (Tridactyl needs to walk through all commands in the .tridactylrc) and then re-start." -- 2.30.2