How to install powershell on ubuntu 20.04? [closed] - azure

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 months ago.
Improve this question
I tried to install power-shell on ubuntu 20.04 docker image using Azure manual but I got
Step 10/30 : RUN wget -q "https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb"
wget: error getting response: Invalid argument
What I am doing wrong here?
My container OS is:
root#:/opt# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

• The command that you are using to install ‘Powershell’ on Ubuntu 20.04 docker image is incorrect. The correct command to install ‘Powershell’ from the Ubuntu repository is as follows: -
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
Once you execute the above command, the required installable files for ‘Powershell’ are downloaded and further then to install the files, execute the command below: -
dpkg -i packages-microsoft-prod.deb
• Next, update the repository with the latest changes or updates from the Microsoft Updates CDN related to ‘Powershell’ commands or features updates and install ‘Powershell’ with the help of the following commands: -
apt-get update -y
apt-get install powershell -y
Once the above has been done, then you can successfully connect to the Powershell by executing the command below: -
pwsh
For more detailed information, kindly refer the below link: -
https://www.howtoforge.com/how-to-install-and-use-powershell-on-ubuntu-20-04/

Related

How to resolve "unable to execute xfce4 session" error in X2go client? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am trying to connect to Linux VM graphical desktop using X2go client. I followed standard procedure mentioned on learn.microsoft.com(link:https://learn.microsoft.com/en-us/azure/machine-learning/data-science-virtual-machine/dsvm-ubuntu-intro#x2go).
Virtual Machine Specification: Azure VM (Ubuntu 18.40 LTS))
Client OS: Windows 10
Description of error:
Error Previously Resolved:
After following the above mentioned procedure, I encountered an error "Bash:x2golistsessions command not found" on x2goclient software installed on my client machine. This was resolved by installing packages x2goserver and x2goserver-xsession on VM using Azure Powershell as mentioned in X2go documentation(https://wiki.x2go.org/doku.php/doc:installation:x2goserver).
New Error Encountered:
However, after resolving the error mentioned above I am getting another error, "unable to execute xfce4 session" on x2go client software on my client machine. I tried installing xfce4 on my client machine using Bash on ubuntu on windows by installing xfce4 using sudo apt install command. But, the error continues to persist.
Kindly provide resolution. I am new to this field and not know much so please help me out here.
Run apt install xfce4 on the server.
Server side configuration:
sudo apt install xfce4
sudo apt-get install software-properties-common(for Ubuntu 14.04 and above)
sudo add-apt-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goserver x2goserver-xsession
service x2goserver status(If it is loaded and running its ok otherwise use service x2goserver start to run it)
Client side configuration:
sudo apt install xfce4(for windows based OS use bash on ubuntu on windows or powershell)
Install x2go client(https://wiki.x2go.org/doku.php/doc:installation:x2goclient) as you install regular software downloading setup file and installing it.
Follow the prescribed instructions to fill in the host address and username. Select the session to be xfce from the drop down list. Hit OK.
Voila!You are done!!!!
As my test, you just need to download the X2Go client for your client machine OS. For example, my local machine is Windows 10. So I download the X2Go client for Windows here.
And then I install the client on my local machine with the default setting. Run the client and configure the session like this:
The first time it failed with time out. And the second time it works fine. So you do not need to install the server on your local machine. It's installed Data Science VM with Ubuntu 18.40 LTS.

Having trouble installing mongodb on ubuntu version 18.04 LTS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I've recently installed Ubuntu version 18.04 LTS and just started to learn to use use linux and terminal. I want to install mongodb. I'm following the steps from this website.
i ran the following lines in the terminal
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
after i run the fourth line the following appears
tasif#Tasif-Dell:/$ sudo apt-get install -y mongodb-org
[sudo] password for tasif:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-server but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.
Then when i want to start mongodb the following message is displayed
tasif#Tasif-Dell:/$ sudo service mongod start
[sudo] password for tasif:
Failed to start mongod.service: Unit mongod.service not found.
installing libcurl3 fixed it for me
sudo apt install libcurl3
Unfortunately, there's no non-development release of MongoDB for 18.04 yet. (Current as of 2018-07-12)
https://repo.mongodb.org/apt/ubuntu/dists/bionic/ shows that there's only a dev release.
Your specific problem is that you are not installing all the dependencies for Mongo, which can probably be fixed with:
sudo apt-get install -f
Per this ask Ubuntu answer.

How do I install Fish Shell on AWS Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I can't seem to install Fish shell on an AWS Linux instance. I keep getting the following error and can't seem to find a fix for it.
[root#ip-172-31-20-125 ec2-user]# yum -y install fish
Loaded plugins: priorities, update-motd, upgrade-helper
Repository shells_fish_release_2 is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package fish.x86_64 0:2.5.0-1.2 will be installed
--> Processing Dependency: hostname for package: fish-2.5.0-1.2.x86_64
--> Finished Dependency Resolution
Error: Package: fish-2.5.0-1.2.x86_64 (shells_fish_release_2)
Requires: hostname
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Same way as on Centos 6.
from:
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_6/shells:fish:release:2.repo
yum install fish
2021 update:
If you're running a newer version of AWS Linux - run rpm -E %{rhel} to see the RHEL version, and then use one of the links here for the wget command. For instance, if the RHEL version is 7, run as root:
cd /etc/yum.repos.d/
wget --no-check-certificate https://download.opensuse.org/repositories/shells:fish:release:3/CentOS_7/shells:fish:release:3.repo
yum install fish
You can use Fish's Red Hat 6 package repository, which works out fine for Amazon Linux 2:
sudo yum-config-manager --add-repo http://fishshell.com/files/linux/RedHat_RHEL-6/fish.release:2.repo
After that you can install it normally.
sudo yum -y install fish
This worked for me on release:
cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
add repo
sudo yum-config-manager --add-repo http://fishshell.com/files/linux/RedHat_RHEL-6/fish.release:2.repo
clean
sudo yum clean all
install
sudo yum -y install fish
test
[ec2-user#ip-xxx-xx-x-xx] yum.repos.d]$ fish
Welcome to fish, the friendly interactive shell
For fish 3 see the instructions on the README https://github.com/fish-shell/fish-shell#building-from-source-all-platforms---makefile-generator

How to install virtualbox on ubuntu 14.04? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am using Ubuntu 14.04. I downloaded the Ubuntu version from this link:
virtualbox.org/wiki/Linux_Downloads
Ubuntu 13.04 ("Raring Ringtail") / 13.10 ("Saucy Salamander") / 14.04 ("Trusty Tahr") 64bit
download.virtualbox .org/virtualbox/4.3.18 virtualbox- .3_4.3.18-96516~Ubuntu~raring_amd64.deb
I installed by terminal:
wget -q https:// virtualbox .org/download/oracle_vbox.asc -O- | sudo
apt-key add -
Since it didn't work, I tried something else.
I downloaded the Windows version: virtualbox .org/wiki/Downloads
download.virtualbox .org/virtualbox/4.3.18/VirtualBox-4.3.18-96516-Win.exe
I installed it by using "Wine", and received this error:
Error window: SUPR3HardenedMain Effective UID is not root (euid=1000
egid=1000 uid=1000 gid=1000) (rc=-10) Please try reinstalling
VirtualBox.
Any other way to do it? I can't find why is not working!
Actually you install the package with:
sudo dpkg --install virtualbox-4.3_4.3.18-96516~Ubuntu~raring_amd64.deb
You can install virtual box from the ubuntu software center or
sudo apt-get install virtualbox-qt

Unable to install Java 6 and install 7 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to install Java 7. I tested my Java version first, please see the below code
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$ java -version
java version "1.6.0_30"
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.1)
OpenJDK Client VM (build 23.25-b01, mixed mode, sharing)
I tried uninstalling this first, using below command:
sudo apt-get remove openjdk-6-jdk
It gave me the following result.
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$ sudo apt-get remove openjdk-6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-6-jdk is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$
I also tried using sudo apt-get remove default-jdk but same.
So how can I install Java 7?
From the directions posted here,
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Then you can use update-java-alternatives,
sudo update-java-alternatives -l
sudo update-java-alternatives -s <The correct Java 7 JDK>
You could install openjdk-7-jdk directly by
apt-get install openjdk-7-jdk
After that, you could use update-java-alternatives to set it as your default Java
update-java-alternatives -l
update-java-alternatives -s <jname>

Resources