How do I install JetBrains Rider via snap on Linux Ubuntu 20? - rider

I am attempting to install JetBrains Rider on an Ubuntu Linux system using snap.
I use the following commands:
sudo apt update
sudo apt install snapd
sudo snap install rider --classic
It looks like it installs correctly.
I can seem to to figure how to actually start Rider.
How do I run Rider after it's been installed via snap.
Is snap the best way to install?

Enter the command snap run rider in the terminal and hit enter.
A first time installer will run letting you specify Rider customisation and other defaults.
Subsequently you can enter the command /snap/bin/rider in the terminal and hit enter.
Alternatively, create a Rider menu item by running the following command cp /var/lib/snapd/desktop/applications/rider_rider.desktop ~/.local/share/applications/
You will then also have the option to right click and "Add to panel"
Update: Adding /snap/bin to your path (the fact it is missing I suspect is a snap bug) will also fix this issue.
I opened up ~/.bashrc and added the following line at the bottom PATH=/snap/bin:$PATH
Saved and reloaded the file by executing source .bashrc
Now I can load rider from any bash terminal by simply entering rider and hitting enter.
I'm using Debian buster btw.
References:
https://snapcraft.io/docs/getting-started#heading--running
https://forums.linuxmint.com/viewtopic.php?t=319827

Related

Other conda environments do not automatically activate in VScode git bash

I'm not really understanding what's happening with git bash and scripts in general. I'm just following a data science course and I'm trying to setup my environment nicely.
I first downloaded Anaconda3 and git bash. I'm also using git bash as my default terminal in VSCode.
I have 2 issues that are happening that are kinda of annoying.
When I start VS code, terminal (git bash) opens by default but does NOT activate conda. However, when I open a new terminal then it'll automatically "conda activate". I'm confused why it doesn't run it by default and I'm also confused why it runs it automatically when I open a new terminal session.
My other issue is that when I created a new conda environment called "pandas", for some reason this breaks that script that automatically activates the environment. As in that scripts works perfectly when I'm using the default conda interpreter "base" but if I change it, it'll just give me this error message when I open a new terminal.
C:\ProgramData\Anaconda3\Scripts\activate pandas
bash: C:ProgramDataAnaconda3Scriptsactivate: command not found
if I manually type in "conda activate pandas" it'll work.

problems with Arch linux installation commands

It's my first time trying to install and using Arch linux, I was trying to install it in VirtualBox in Mac Os mojave, when i did arch-chroot /mnt(after all the configuration), then tried to nano /etc/locale.conf it just printed command not found.
I've already tried with vim or other commands like sudo or apt to install a plain text editor but it's always the same and I also tried twice but nothing changes.
PLEEAAASE, I need help.
In Archlinux you should use pacman -S to install packages
try this :
"pacman -S nano"
you can see more information here:
https://wiki.archlinux.org/index.php/pacman#Installing_packages
You can install it with the Linux kernel etc.
For installing the kernel you use
pacstrap
so just add nano, vim or whatever text-editor you like to use.
For more information: https://wiki.archlinux.org/index.php/Installation_guide

Linux Subsystem can't install and recognize packages

I am using windows and didn't wanted to switch to linux. I still wanted to learn it so I downloaded ubuntu subsystem for windows. It works fine and I can also execute linux commands on it. But the problem is I can't check my pip version using "pip --version" command also I can't access nodejs . It says that node isn't recognized. But it is working fine on my cmd windows terminal. How can I make it work ? Do I really have to download all these packages again after running "sudo apt update" command.
Yes, you have to download all these packages again for Ubuntu-WSL. That is because WSL is not compatible with windows executable, just like Ubuntu is supposed to be.

Direnv not allowing me to allow

I've installed direnv (v2.18.2) onto my Ubuntu 16.04 machine using:
sudo snap install direnv
as per the website, and added the line:
eval "$(direnv hook bash)"
to my ~/.bashrc file as per the instructions. When I navigate into the directory with my .envrc file, the following message shown:
direnv: error .envrc is blocked. Run `direnv allow` to approve its content.
Sweet. So I run direnv allow, and I'm immediately hit with exactly the same error. I've also tried using direnv allow . but that doesn't seem to help. Also, completely restarting my laptop hasn't helped either.
All the advice I've seen is for direnv not finding the .envrc file, but here it is finding it, it's just not allowing me to allow it.
I know this is not a propper solution, but I encountered this aftering installing from a snap on Linux Mint.
After I uninstalled the snap and installed it from aptitude I did not have any issues.
While the OP is on Ubuntu I ran into the same problem with the snap installed binary on CentOS 7.7.
I worked around the problem by installing a go binary and then building direnv from source: git clone https://github.com/direnv/direnv.git; cd direnv; make; make install which got me direnv 2.21.2 in /usr/local/bin

What is going on and how do I fix it?

https://prnt.sc/hlt4ey
I'm trying to get onto the xfce4 client from my chromebook (and it has worked before), however now this error is popping up. How do I fix this error?
My guess is you may not have the right user privileges. According to the error message you provided you are running an Ubuntu Linux environment.
If you haven't tried running the program through the terminal yet, attempt to do so.
The terminal can typically be opened by the key combination Ctrl+Alt+T on ubuntu linux.
Try using sudo command before running the program. This will run the command you enter using root privileges.
For example, if running the program on your terminal is
myName#ubuntu: xfce4
And this encounters an error, try to use sudo beforehand like so:
myName#ubuntu: sudo xfce4
Alternatively you can log in and not have to type sudo before every command.
myName#ubuntu: sudo bash
password:
If this fails you may need to update the package that contains the library. This can be done on the terminal in a fashion similar to:
myName#ubuntu: sudo apt-get install --only-upgrade xfce4