brew install docker-machine-driver-xhive [closed] - linux

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 install docker-machine-driver-xhive using brew, as part of learning Kubernetes.
I followed the steps specified in following link:
https://www.tecmint.com/linuxbrew-package-manager-for-linux/
yum groupinstall 'Development Tools' && sudo yum install curl file git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH"' >>~/.bashrc
echo 'export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' >>~/.bashrc
echo 'export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"' >>~/.bashrc
source ~/.bashrc
All these command are executed successfully, without any error.
This is my ~/.bashrc file
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH"
export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH"
export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"
Now when i try to run brew command, i am getting this message.
bash: brew: command not found...
My OS details are as follows:
NAME="CentOS Linux"
VERSION="7 (Core)"
The OS is running on Oracle VM Virtual Box.
Any pointers will be appreciated.

I‘m afraid you‘re on the wrong OS. The xhyve driver is only for macOS. But for your brew missing problem. Have you tried to ‘locate brew‘?
This might show where the command is located.

Related

Sudoers - Execute command without sudo [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 12 months ago.
Improve this question
I have this rule in my sudoers file
user ALL = (root) NOPASSWD:/usr/bin/supervisorctl
Now I can run the command without root password.
For example :
sudo supervisorctl restart all
My question is How can I run the command without sudo command ?
For example :
supervisorctl restart all
You should be able to make that work by setting the sticky flag:
sudo chmod +s /usr/bin/supervisorctl
You can try this out using whoami:
cp /usr/bin/whoami /tmp/whoami2
sudo chown root:root /tmp/whoami2
sudo chmod +s /tmp/whoami2
If you then run ./tmp/whoami2 as any user, you'll get root, i.e., the executable executes as the user with owner, given the sticky flag.

What is the meaning of "sudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release"? [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 am installing docker in Ubuntu after reading the official documentation and there i saw this command. What does this mean? I am new to Linux and Docker.
Also, what does following command do:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
The first command curl downloads a public key from docker, that is specific to ubuntu and is installed what is called a keyring, which is then used to verify the docker packages
the second command echo writes your current OS-version alongside some other configuration text into a file that is used by apt when you install anything docker related

ZSH extends bash autocompletion [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
It's possible to make ZSH extends bash autocompletion? Bash can autocomplete almost every command in the system, and in ZSH i always need to enable a plugin for it.
Here is an example (ignore the warnings, are from custom scripts that don't work in bash)
You can install the project zsh-completions
(https://github.com/zsh-users/zsh-completions)
From Ubuntu packages
echo "deb http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-completions/xUbuntu_19.10/ /" | sudo tee /etc/apt/sources.list.d/shells:zsh-users:zsh-completions.list
curl -fsSL https://download.opensuse.org/repositories/shells:zsh-users:zsh-completions/xUbuntu_19.10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells:zsh-users:zsh-completions.gpg > /dev/null
sudo apt update
sudo apt install zsh-completions
From Gitub repository
Clone the repository:
git clone git://github.com/zsh-users/zsh-completions.git
Include the directory in your $fpath, for example by adding in ~/.zshrc:
fpath=(path/to/zsh-completions/src $fpath)
You may have to force rebuild zcompdump:
rm -f ~/.zcompdump; compinit

Yum and RPM show that the number of installed packages is different [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 6 years ago.
Improve this question
[root#study ~]# rpm -qa | wc -l
777
[root#study ~]# yum list installed | wc -l
1054
i want to know why different,shoud i get correct number of installed packages?
Example, CentOS 7 :
$ rpm -qa | wc -l
1733
$ yum list installed | wc -l
1757
Reason : wc will also count the 24 "extra yum lines" ... please check with :
$ yum list installed >> yum-list-installed.txt
$ rpm -qa >> list__rpm-qa.txt
... and watch the result in the text files : Use an editor with line numbers enabled.
Note : The above commands are unprivileged user commands. No reason to use root.
That is normal. If you install packages with RPM Yum will not know about them. It is best to install packages with yum if you want them to be managed by yum update.

sudo sorry, you must have a tty to run sudo [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
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.
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.
Improve this question
I have written a bash script that goes to each machine and runs set of command. I am using the user iis that has sudo privlidges on that machine. However, when i run the sudo yum command i get sudo: sorry, you must have a tty to run sudo.
Not sure what is wrong ? I am using the -t command to force but it would still not work
bash script
#!/bin/bash
INPUT=ccidetails.csv
OLDIFS=$IFS
IFS=,
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
while read privateip password
do
echo $privateip
scp /home/Data/Test.c iis#$privateip:/tmp
sshpass -p$password </dev/null ssh -t -o "StrictHostKeyChecking no" iis#$privateip "
hostname
cd /tmp
gcc Test.c -o TEST
./TEST
sudo yum -y update glibc
gcc Test.c -o TEST
./TEST
exit
" >> output.txt
done < $INPUT
IFS=$OLDIFS
Error:
sudo: sorry, you must have a tty to run sudo
On remote host comment the line below on /etc/sudoers:
grep tty /etc/sudoers
#Defaults requiretty
That will allow you to continue. Make sure you understand the consequences of doing so:
man sudoers | grep -i requiretty -A 5
requiretty If set, sudo will only run when the user is logged in
to a real tty. When this flag is set, sudo can only be
run from a login session and not via other means such
as cron(8) or cgi-bin scripts. This flag is off by
default.
If you don't want disable requiretty globally you can disable it for a specific user:
example:
Defaults requiretty
Defaults:your_username_goes_here !requiretty
While this isn't a question for SO, you're almost there ... what you need to change is the number of -t above ... try this:
sshpass -p$password </dev/null ssh -ttt -o "StrictHostKeyChecking no" iis#$privateip "

Resources