LegoMayhem
Posts: 6
Joined: Sun Aug 07, 2022 8:00 pm

MagPi 120 - Minecraft Server

Sun Aug 07, 2022 8:13 pm

Evening.

I’m trying to follow the build a minecraft server in issue 120, page 48.

I’m new to Linux and git.

I’m at stage 5 - “Build the console tool”

git clone https://github.com/Tiiffi/Marconi.git

However when I execute this it asks for a username and then a password (not shown in the tutorial)

I have a username, but it didn’t like the correct password. An error came up with a link suggesting I needed a different way of authentication.

Did a bit of research and created a token on the GitHub site, tried entering this at the password request prompt but although I’ve got a step closer, it still fails - now with unrecognised username / password.

I’m 99.9% certain im entering the long token correctly, tried it numerous times (with help).

My GitHub username contains upper and lower case, I’ve even tried all lowercase just in case that was the issue (as I said I’m new to both Linux and git).

I’m stuck !

Any help greatly appreciated, please ?

TIA

LegoMayhem
Posts: 6
Joined: Sun Aug 07, 2022 8:00 pm

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 6:31 am

Hunted around ….Should I be :-

“Caching your GitHub credentials in Git”
https://docs.github.com/en/get-started/ ... als-in-git

And then installing GitHub CLI:-

https://github.com/cli/cli/blob/trunk/d ... l_linux.md

curl -fsSL https://cli.github.com/packages/githubc ... eyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh

And if I do are there any security implications if I make the server visible to the outside world should the player get access to the command line ?

Why can’t I just enter the token at the password prompt ?

I seem to have gone down a rabbit hole.

Also can I do this from the Minecraft additional user we setup earlier in the tutorial.. that doesn’t appear to have Sudo access or should I do it before switching user ?

User avatar
neilgl
Posts: 4964
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 9:14 am

It is working for me but using mcrcon not Marconi

Code: Select all

git clone https://github.com/Tiiffi/mcrcon.git
Cloning into 'mcrcon'...
remote: Enumerating objects: 527, done.
remote: Counting objects: 100% (36/36), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 527 (delta 19), reused 20 (delta 12), pack-reused 491
Receiving objects: 100% (527/527), 116.04 KiB | 2.23 MiB/s, done.
Resolving deltas: 100% (311/311), done.

lucyhattersley
Posts: 44
Joined: Tue Aug 04, 2015 5:05 pm

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 9:29 am

Good spot neilgl

Looks like a typo to me. I'll check in with the author to confirm and add errata to the issues page.

Sorry about this OP.


Just checked P49 in the magazine and it looks like PJ's instructions are correct after all. User error perhaps? Glad it's solved TIA

LegoMayhem
Posts: 6
Joined: Sun Aug 07, 2022 8:00 pm

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 9:46 am

Ok. What is difference between the two please ?
Also did you have git setup ? Username and token ?
Thanks for replying

User avatar
neilgl
Posts: 4964
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 11:23 am

The difference between the two is that Marconi is the man who invented radio, mcrcon is the name of the repository on github. My ipad autocorrects mcrcon to Marconi !
Although I do have a username and token for github, it was not needed.

LegoMayhem
Posts: 6
Joined: Sun Aug 07, 2022 8:00 pm

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 1:09 pm

Sorry the typo was in the forum only not actually in the code I typed (typing in an iPhone never good!)
Screen shot enclosed

Forcing me to enter username and password
Attachments
A1AA4C8B-22CF-4291-AEE0-F717511A9A55.jpeg
A1AA4C8B-22CF-4291-AEE0-F717511A9A55.jpeg (89.89 KiB) Viewed 1993 times

User avatar
neilgl
Posts: 4964
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 2:30 pm

You still have the wrong name it is mcrcon not mcron

LegoMayhem
Posts: 6
Joined: Sun Aug 07, 2022 8:00 pm

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 9:09 pm

You are 100% correct and I’m a twit.
Sorry to have wasted your time on this.
Moving forward again now I’ve typed the instructions correctly !
Cheers

User avatar
neilgl
Posts: 4964
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 10:22 pm

Yeah but at least we now know who invented radio.

User avatar
rpdom
Posts: 20581
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: MagPi 120 - Minecraft Server

Mon Aug 08, 2022 10:42 pm

neilgl wrote:
Mon Aug 08, 2022 10:22 pm
Yeah but at least we now know who invented radio.
Living where I do, I'd be very surprised if I didn't know that one.
Unreadable squiggle

LegoMayhem
Posts: 6
Joined: Sun Aug 07, 2022 8:00 pm

Re: MagPi 120 - Minecraft Server

Tue Aug 09, 2022 6:33 am

Must have been a top bloke to get a type of pasta names after him ! :oops:

Return to “The MagPi”