Can't run Zed after installing it in networked template

Want to start off by saying I’m very much a Qubes noob and linux in general so apologies if I’m just making a very silly mistake. I tried installing Zed on a debian 12 template I created. Followed the instructions to install it from the shell script on their website and I can’t seem to get it to open.

curl -f https://zed.dev/install.sh | sh

echo  'export PATH=$HOME/.local/bin:$PATH' >>  ~/.bashrc
source ~/.bashrc

  • I checked the bashrc file and it is appended
  • Zed is in list of apps
  • installed vulkan-tools and the cube spins round and round

When I try to open by clicking the icon nothing happens. If I try to run it from the command line. It says this.

'~/.local/bin/zed'
bash: ~/.local/bin/zed: No such file or directory

Which is very confusing because I see it in the list of apps but the terminal is right and there is no such file or directory.

Please be more clear on what qube where used to run your commands.

curl won’t work in template without a http_proxy but it looks like you installed it in the template. Check this in order to understand the problem:

Otherwise consider using flatpak to install it in the user space of an AppVM.

And try to run ˋzedˋ in the appvm terminal.

My guess is that you have not actually downloaded the install.sh file.
You could check this by running curl -f https://zed.dev/install.sh > install.sh

Templates have no network access except via the proxy used for updates.
You could set this using export https_proxy=127.0.0.1:8082 before
trying to download the file.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

If this was done in a template, this won’t even work when used in an AppVM because the installation happens in the user’s home directory, which is not inherited from the template.

Run the command in an AppVM qube, it will install Zed locally in the qube.

2 Likes

I gave the template temporary network access to download it which I know isnt recommended but I will use the proxy next time. I tried but i was missing the “export” command.

this is the output from the template

https_proxy=127.0.0.1:8082 curl -f https://zed.dev/install.sh > install.sh
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100  4329  100  4329    0     0   2970      0  0:00:01  0:00:01 --:--:--  2969

this is the output from the AppVM

curl -f https://zed.dev/install.sh > install.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4329  100  4329    0     0   7720      0 --:--:-- --:--:-- --:--:--  7716
1 Like

@parulin I ran them in the template assuming it would be inherited by the AppVM

This made it open, but it looks like this. Going in the Zed documentation to see if i can fix it but any help or advice would be apprecitated.

You could copy the install into /etc/skel in the template, and it would be available
in any newly minted qubes, if that was required.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

2 Likes

Hi :ghost:, despite i don’t use this app i make a quick silly guide to successful install zed (but don’t work)

-Choose a template o make a new one, in my example is debian-12-minimal.
-Go to this web page https://zed.dev/install.sh and copy all.
-In the template of your chose open a terminal and put nano install.sh.
-Paste all and modify in the script the line who say curl "https://zed.dev/api/releases/$channel/latest/zed-linux-$arch.tar.gz" > "$temp/zed-linux-$arch.tar.gz" to curl --proxy https://127.0.0.1/8082/ "https://zed.dev/api/releases/$channel/latest/zed-linux-$arch.tar.gz" > "$temp/zed-linux-$arch.tar.gz" and save it.
-After that, give it permission chmod +x install.sh and run it sudo ./install.sh
-When the install finish you need to put this commands in terminal echo 'export PATH=$HOME/.local/bin:%PATH' >> ~/.bashrc and source ~/.bashrc (install says to do it)
-Zed needs to install rustup and dependencies. (All the info is in zed.dev (less apt rustc))
-For rustup download from https://static.rust-lang.org/dist/rust-1.84.1-x86_64-unknown-linux-gnu.tar.xz for this need xz-utils, sudo apt install xz-utils must be installed to run correctly tar -xf rust-1.84.1-x86_64-unknown-linux-gnu.tar.xz this make a folder in that folder a file install.sh is created, you need to run it. (I found apt rustc but don’t know if is exactly the same rustup)
-For dependencies run sudo apt install gcc g++ libasound2-dev libfontconfig-dev libwayland-dev libxkbcommon-x11-dev libssl-dev libzstd-dev libvulkan1 libgit2-dev make cmake clang jq netcat-openbsd git curl gettext-base elfutils libsqlite3-dev musl-tools musl-dev build-essential if is debian 12 or above add mold libstdc++-12-dev if is debian 11 or below add libstdc++-10-dev
-Shutdown the template (must be!).
-Make a AppVM, select the template you just use. (In theory because i only can run it from template)

I said above don’t work because i have a blank screen with nothing in it but i think you can be able to troubleshooting of this point.

Needless to say, this forum is not for that particular application but I am struck by the blank screen

Regards

1 Like