Author

Topic: Stocked with homebrew script (Read 226 times)

member
Activity: 174
Merit: 12
August 04, 2022, 08:48:21 AM
#14
Time Machine - to create a backup
Parallels - for VM Smiley
copper member
Activity: 784
Merit: 710
Defend Bitcoin and its PoW: bitcoincleanup.com
August 04, 2022, 07:01:18 AM
#13
Why not macOS VM since OP currently use that OS?

You are right but just thought that if OP wants to...

play around the open source code.

... he might as well go the whole nine yards and use an open source OS as well. IMO it just seems wrong not to  Tongue
copper member
Activity: 784
Merit: 710
Defend Bitcoin and its PoW: bitcoincleanup.com
August 03, 2022, 08:41:17 AM
#12
I would recommend making a Linux VM and experimenting/learning there.
In case you mostly copy+paste commands it would be safer to experiment on a VM than your everyday PC. There's no better way of learning than the hands-on approach, and a VM is a better test bed. You don't care if you FUBAR it  Grin (fuck up beyond any repair)

Just sayin' ...
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
August 03, 2022, 08:24:24 AM
#11
As far as I know, there's no way to install the Homebrew package manager without root.

But if your goal was to install Bitcoin Core, I'd recommend pulling the source through git (like you've done) and building it locally, anyway.
I pulled the source through git. I will like to ask is $brew command line doing the same thing $ sudo does ? Because pip isn't install anything for me on my mac command terminal


All of your questions can be answered through simple web searches.

brew: OS Package manager.
apt: OS Package manager.
pip: Python package manager.
sudo: Execute command as superuser / root.
git: Version control system / VCS.

And how to enter your password on the command line is what I've answered in the very first reply. Was something unclear about that?

One more clarification: Installing Homebrew requires root; using it after it's installed does not.
https://github.com/Homebrew/install/blob/master/install.sh#L220
So you're looking at installing Homebrew through sudo /bin/bash -c ... and then using it afterwards simply with brew install ....
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
August 03, 2022, 04:35:07 AM
#10
You can also just run sudo -i to get a root shell so you can copy/paste the command verbatim. Much more straightforward than typing a hidden password (how are you supposed to know when curl is finished downloading?)
full member
Activity: 305
Merit: 106
August 03, 2022, 04:00:23 AM
#9
I didn't create any input window where i can enter my password
After you enter the command " sudo ..... " it took you to the next row and it said "password: "
You just type there the password (doh). No extra field, no input, no *** instead of characters. Just write it and hit enter. It will register it.  Wink

Have fun playing around with the console. Hard at first with no UI but you'll get the hang of it
sr. member
Activity: 966
Merit: 421
Bitcoindata.science
August 03, 2022, 03:27:36 AM
#8
When you add sudo you are asked for your mac user password. The one you use to open your macbook.

What do you want to do ? Install Bitcoin Core ? Might as well download the archive directly https://bitcoin.org/en/download
I have the bitcoin core already i want to play around the open source code. Sudo apt locked the password with a key, that is the first [img] i uploaded. I didn't create any input window where i can enter my password
full member
Activity: 305
Merit: 106
August 03, 2022, 03:15:14 AM
#7
Mac is what i have. More like saying $sudo apt install "whatever" on linux and homebrew/bin/brew install "whatever" since i was denied access to sudo. This made me install brew manually

https://support.apple.com/en-gb/guide/terminal/apd5b0b6259-a7d4-4435-947d-0dff528912ba/mac#:~:text=To%20run%20commands%20with%20superuser,sudo%20stands%20for%20superuser%20do.&text=You're%20asked%20for%20the%20password%20of%20the%20current%20user.&text=You're%20asked%20to%20enter,is%20opened%20for%20that%20user.

When you add sudo you are asked for your mac user password. The one you use to open your macbook.

What do you want to do ? Install Bitcoin Core ? Might as well download the archive directly https://bitcoin.org/en/download
sr. member
Activity: 966
Merit: 421
Bitcoindata.science
August 03, 2022, 02:14:45 AM
#6
Brew is a packet manager. It does the same thing as apt does.
Do you have linux or mac ?
Apt is used on linux (apt install "whatever") and brew mostly on mac (brew install "whatever")
"sudo" is just a linux way to say "run as administrator" and it will ask for the password for your root account (master account when you installed linux)
Mac is what i have. More like saying $sudo apt install "whatever" on linux and homebrew/bin/brew install "whatever" since i was denied access to sudo. This made me install brew manually
legendary
Activity: 1932
Merit: 1273
August 03, 2022, 01:27:04 AM
#5
I will like to ask is $brew command line doing the same thing $ sudo does ?
It's a completely different thing.

sudo is used to authorize something. While brew, is kind of like the App Store.

When in doubt you can always try to see the documentation/manual page.

Code: ($ man sudo)
NAME
       sudo, sudoedit - execute a command as another user

DESCRIPTION
       sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.  The invoking user's
       real (not effective) user-ID is used to determine the user name with which to query the security policy.


Code: ($ man brew)
NAME
       brew - The Missing Package Manager for macOS (or Linux)

DESCRIPTION
       Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn´t include with macOS. It can also install software not
       packaged for your Linux distribution to your home directory without requiring sudo.

full member
Activity: 305
Merit: 106
August 03, 2022, 01:24:08 AM
#4
I pulled the source through git. I will like to ask is $brew command line doing the same thing $ sudo does ? Because pip isn't install anything for me on my mac command ?

Brew is a packet manager. It does the same thing as apt does.
Do you have linux or mac ?
Apt is used on linux (apt install "whatever") and brew mostly on mac (brew install "whatever")
"sudo" is just a linux way to say "run as administrator" and it will ask for the password for your root account (master account when you installed linux)
sr. member
Activity: 966
Merit: 421
Bitcoindata.science
August 02, 2022, 10:12:47 PM
#3
As far as I know, there's no way to install the Homebrew package manager without root.

But if your goal was to install Bitcoin Core, I'd recommend pulling the source through git (like you've done) and building it locally, anyway.
I pulled the source through git. I will like to ask is $brew command line doing the same thing $ sudo does ? Because pip isn't install anything for me on my mac command terminal



hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
August 02, 2022, 04:47:54 PM
#2
How do i bypass the password pls.
It is not giving me an avenue to enter my password
Oh, if you need to enter a user password in a unix prompt, you usually don't see anything (no asterisks *** or anything like that).
That's normal behaviour. It is still picking up the characters you're typing and you can even backspace-delete characters if you notice you mistyped.

As far as I know, there's no way to install the Homebrew package manager without root.

But if your goal was to install Bitcoin Core, I'd recommend pulling the source through git (like you've done) and building it locally, anyway.
sr. member
Activity: 966
Merit: 421
Bitcoindata.science
August 02, 2022, 01:13:54 PM
#1
Installing homebrew package manager
After entering this command line on my terminal i got this command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"



How do i bypass the password pls.
It is not giving me an avenue to enter my password




Solved...

Jump to: