For some reason I have a qube made with a debian11 template and I will install Vs code which works fine, but when I shutdown and get back on the qube Vs code needs to be re-downloaded.
Has anyone had this issue?
For some reason I have a qube made with a debian11 template and I will install Vs code which works fine, but when I shutdown and get back on the qube Vs code needs to be re-downloaded.
Has anyone had this issue?
This to be expected due to extensions
and data
folders being installed within the /home
directory by default. I have some notes on this …
(I’ll be right back if @mods don’t pounce on me/ban before)
OK, back (for now) …
First things first, VSCodium is a bit less glowey and what is used in the examples below but, they can be applied to VSCode as well.
If you do want to roll with VSCodium, You can grab packages here or, add the repo via instructions here.
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium main' | tee /etc/apt/sources.list.d/vscodium.list
apt update && apt install codium codium-insiders -y
codium --user-data-dir /usr/share/codium/data --extensions-dir /usr/share/codium/extensions --install-extension dracula-theme.theme-dracula
codium --user-data-dir /usr/share/codium/data --extensions-dir /usr/share/codium/extensions --install-extension golang.go
...
etc.
mkdir /usr/share/codium/data
chown -R user:user /usr/share/codium/data
mkdir /usr/share/codium/extensions
chown -R user:user /usr/share/codium/extensions
sed -i 's/codium\/codium/codium\/codium --user-data-dir \/usr\/share\/codium\/data --extensions-dir \/usr\/share\/codium\/extensions/g' /usr/share/applications/codium*
mkdir /usr/share/codium/data
chown -R user:user /usr/share/codium/data
mkdir /usr/share/codium/extensions
chown -R user:user /usr/share/codium/extensions
mkdir /usr/share/codium-insiders/data
chown -R user:user /usr/share/codium-insiders/data
mkdir /usr/share/codium-insiders/extensions
chown -R user:user /usr/share/codium-insiders/extensions
echo '#!/bin/bash' >> /etc/profile.d/codium_alias.sh
echo 'alias codium="codium --user-data-dir /usr/share/codium/data --extensions-dir /usr/share/codium/extensions"' >> /etc/profile.d/codium_alias.sh
echo 'alias codium-insiders="codium-insiders --user-data-dir /usr/share/codium/data --extensions-dir /usr/share/codium/extensions"' >> /etc/profile.d/codium_alias.sh
How you installed VCCode? It feels like the classic issue of installing software in an appvm and not the tamplate