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
Following AWS instruction to install Docker, After ssh to the ubuntu instance, I am getting the terminal as
ubuntu#ip-<private ip>:~$ but step 3 says
[ec2-user ~]$ sudo yum update -y
Not sure if I should continue wit the command or I need to create a user and re login as that user? I am new to AWS and my linux practice is 10 years old.
And if a user needs to be created, is that via the current ssh or the AWS console?
Thanks
You use simple curl command to install docker on any Linux machine.
curl -SsL https://get.docker.com | bash
Above command will automatically solve all the dependencies and install docker.
The documentation shows how to install Docker on Amazon Linux instances not ubuntu. The user youre logged in with doesnt matter, just replace the yum commands with the apt-get equivalents or switch to using an Amazon Linux AMI.
For Ubuntu, you can use:
$ sudo apt-get update
you might have been checking the documentation of RHEL which needs
$ sudo yum update -y
If you are working behind a proxy, Make sure you configure the proxy for Docker.
Hope it helps.. :)
Follow below commands on ubuntu ec2 :
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -;
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable";
sudo apt-get update -y;
sudo apt-cache policy docker-ce; ( Here select the required one from this step for the next step)
sudo apt-get install docker-ce=5:18.09.2~3-0~ubuntu-xenial;
sudo service docker start;
Related
I have installed AWS CLI latest version using "sudo pip install --upgrade awscli " .
this has successfully updated my aws cli version but for only root users, but for all remaining users , it is showing version as previous one only, If I run the command without sudo then its saying permission denied.
If my server has multiple linux users and want to update my aws cli version from 1.16.3 to 1.18.223 for all users, how can I do it ?
Please help me .
Thank in advance
You can adjust the path where you want to install, the binary.
Install the AWS CLI version 1 using the bundled installer with sudo
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle-1.18.223.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
Just curious when you are upgrading the AWS Cli why not the latest which is backward compatible and probaly more options
Try not to install pip packages with sudo. Better use a Creating virtual environments
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
What is the simple and step by step guide for installing Apache spark 2.0 in Ubuntu(16.04) local machine accessed using python(pyspark). I have tried to search web most of them end up in one or other error.
Courtesy : https://www.santoshsrinivas.com/installing-apache-spark-on-ubuntu-16-04/
I am writing my steps here as I saw few steps are different than expected (at least for ubuntu 16.04)
So here are the steps
step 1:
Download the latest pre-built version from http://spark.apache.org/downloads.html
step 2:
Unzip and move Spark
cd ~/Downloads/
tar xzvf spark-2.0.1-bin-hadoop2.7.tgz
mv spark-2.0.1-bin-hadoop2.7/ spark
sudo mv spark/ /usr/lib/
step 3:
Install SBT
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
Note:- you might have some issues in this step. so please refer the link provided at the end.
step 4:
make sure Java is installed. if not
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
step 5:
Configure Spark
cd /usr/lib/spark/conf/
cp spark-env.sh.template spark-env.sh
vi spark-env.sh
and add following
JAVA_HOME=/usr/lib/jvm/java-8-oracle
SPARK_WORKER_MEMORY=4g
step 6:
configure bash file.
open the bashrc file using below command
vi ~/.bashrc(if you want to use vi editor)
subl ~/.basrc(if you want to use sublime)
copy the below in the bashrc file
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export SBT_HOME=/usr/share/sbt-launcher-packaging/bin/sbt-launch.jar
export SPARK_HOME=/usr/lib/spark
export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:$SBT_HOME/bin:$SPARK_HOME/bin:$SPARK_HOME/sbin
start the bash file using below command
source ~/.bashrc
step 7:
try now
pyspark
Note: in case you get stuck with sbt installation (usual case for ubuntu 16.04) try the below link
https://askubuntu.com/questions/771839/problem-installing-package-git-all/771889#771889
Command
yum -y install httpd
and in other commands while installing software or services online
Type man yum to see the options.
-y, --assumeyes
Assume yes; assume that the answer to any question which would be asked is yes.
Configuration Option: assumeyes
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 6 years ago.
Improve this question
Can I run VirtualBox and an active VM on a server hosted on Google Compute Engine? If yes, what are the steps? Just install it and build the VM through VNC?
So far I have found similar solution for DigitalOcean where you simply install VirtualBox, xfce, VNC, etc. and it runs.
Create GCE instance
SSH to that instance
Download and install Virtualbox (wget DEB + sudo dpkg -i virtualbox-5*.deb)
Upgrade system, build and install kernel modules
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install -y build-essential
sudo apt-get install -y linux-headers-$(uname -r)
sudo /etc/init.d/vboxdrv setup
Profit!
To check if all is good just run VBoxManage --version. If some other errors are present google and resolve
Yes, the same approach will work on a GCE VM.
You can also use Vagrant with the Google Compute Engine plugin to automate creation of virtual machines and GCE VMs.
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
Is there any simple tutorial for installing geoserver with jetty on Ubuntu ?
sudo apt-get update
sudo apt-get install unzip openjdk-6-jre
echo "export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64" >> ~/.bashrc
source ~/.bashrc
wget -c http://sourceforge.net/projects/geoserver/files/GeoServer/2.3.5/geoserver-2.3.5-bin.zip/download
unzip -a geoserver-2.3.5-bin.zip
cd geoserver-2.3.5/bin
./startup.sh &
In web browser visit http://localhost:8080/geoserver/
You can use this docker container https://hub.docker.com/r/winsent/geoserver/ it based on Oracle Java 7 with JAI 1.1.3, ImageIO 1.1, GDAL 1.10.1 and extensions.
Or see Dockerfile how to install https://hub.docker.com/r/winsent/geoserver/~/dockerfile/
You can use abhijeetkoli/geoserver image if you wish to give it a try.
Source and build scripts are here
Docker
docker run -d --name geoserver abhijeetkoli/geoserver
Kubernetes
kubectl --kubeconfig ~/.kube/gis.config apply \
-f ./scripts/kubernetes/gis/geoserver-service.yaml \
-f ./scripts/kubernetes/gis/geoserver-deployment.yaml