git (GitKraken)
this is rather a side theatre of war but as I wasted some hours on it I share it here
If you install GitKraken from the Ubuntu Software Center it installs the snap package what wasn’t listed in in the Software Center anymore so I opend the terminal and did sudo snap remove gitkraken
and installed it again.
Next I had to fix GitKraken icon missing - snap - snapcraft.io.
It turned out that snap package comes with limitations, you cannot use a network share to store the repo on the host to save space or allow to edit it on the host as well, doing only the build in the VM.
see
- Is there a way for a snap application to access a network-mounted disk drive
- How to get access to USB-storage from the application installed as Snap?
- How to give snaps access to /somedir
so you have to install it like this sudo snap install --devmode gitkraken
, see
as that option shown in
- How to get access to USB-storage from the application installed as Snap?
- A guide to snap permissions and interfaces | Ubuntu
is not given.
So far so bad.
After all this I tried several approaches, linking and mounting, fighting with smb shares
see Git clone/pull across local network what is definitely not a good idea.
If you mount it via terminal you fighting with permission, see how-tos
- Allow regular user to use mount without SUDO or FSTAB
- Linux - Mount device with specific user rights
or you use Nautilus and find teh mount as described here
but if you want to clone into this folder, it won’t work as it rename the lockfile
I tried
- smb shares “Mounting cifs URL not implemented yet” when I try to mount a samba share or see https://linuxhint.com/shared_folders_hypver-v_ubuntu_guest/. You may have to do
sudo apt install smbclient
andsudo apt-get install cifs-utils
. - bookmarks, How to map a network drive?, second answer
- symbolic links, What happened to the Nautilus feature “Create Link” in Ubuntu 16.10 and newer?
but none worked.
At the end, I cloned it on the host but opened it in the VM. It worked only when I did a symbolic link to a folder in a shared-drives
, what comes with the Enhanced Mode
.
But even that is not perfect, as it says all files changed.
May it works if you install GitKaken as app using the standard installer but even when I do this, I get complains, that it is read only, so I think smb network shares between hyper-v and Linux are not perfect