Make Install Error 255 Permission Denied

May 13, 2024, 19:19

incognitas0411

Hi all, I am following miner installation guide here: https://github.com/maco2035/DiyHeliumHotspots/blob/master/RAK2287/Raspberry%20Pi%204B/Guide.md I messed up something on a line where it says: If you do not want to have to put in your password a million times in the next step, you can create a ssh key in the sub steps below otherwise skip to the next step. Create the ssh key pair. ssh-keygen -t rsa Press enter three times to accept the defaults. Set up your user to use the key pair. ssh-copy-id -i ~/.ssh/id_rsa.pub pi@localhost so I followed steps and came to the point: Make the executables: make install when making install it asks for password and then gives all errors below as I messed up something in previous steps so cant make an install I think I made a mistake where it says pi@localhost where I had to input my username??? please help sorting this out 😭 myusername@raspberrypi:~/sx1302_hal $ make install make install -e -C libloragw make[1]: Entering directory '/home/myusername/sx1302_hal/libloragw' ---- Copying libloragw files to localhost:/home/pi/sx1302_hal/bin pi@localhost's password: Permission denied, please try again. pi@localhost's password: Permission denied, please try again. pi@localhost's password: pi@localhost: Permission denied (publickey,password). make[1]: [Makefile:38: install] Error 255 make[1]: Leaving directory '/home/myusername/sx1302_hal/libloragw' make: [Makefile:36: install] Error 2

illegitimate_egg

right

incognitas0411

As I said the best thing would be to delete/revert back the ssh key i created . But how?

illegitimate_egg

the default username is pi

illegitimate_egg

wrong

illegitimate_egg

the best thing would be to update the target.cfg file

illegitimate_egg



incognitas0411

How do I update it? As I mentioned I am beginner. I appreciate your help and would buy you a pint of beer 🍻

illegitimate_egg

dw about the beer

illegitimate_egg

so

illegitimate_egg

if you run the command ls

illegitimate_egg

it will list all the files in the directory

illegitimate_egg

hopefully one will be called target.cfg

incognitas0411

Yes, it is there

illegitimate_egg

alright

illegitimate_egg

so

illegitimate_egg

next command is nano target.cfg

illegitimate_egg

this will let you edit the file

illegitimate_egg

once you've changed the username to be your actual username save the file using Ctrl+O then Ctrl+X then try again

incognitas0411

Ok, now it gives different error, it did not ask for a password

incognitas0411

make install -e -C libloragw make[1]: Entering directory '/home/myusername/sx1302_hal/libloragw' ---- Copying libloragw files to localhost:/home/pi/sx1302_hal/bin mkdir: cannot create directory ‘/home/pi’: Permission denied make[1]: [Makefile:38: install] Error 1 make[1]: Leaving directory '/home/myusername/sx1302_hal/libloragw' make: [Makefile:36: install] Error 2

illegitimate_egg

ah

illegitimate_egg

change the pi in target dir to your username too

illegitimate_egg

this config file is shit btw

incognitas0411

Ok, thanks, I thought so. Will do now

incognitas0411

Hey it worked now! Thanks a lot!!

illegitimate_egg

np

incognitas0411

<@685869137939267603> hi I created one more topic, can you please have a look? I understand I will need to use "nano" command, but I have no idea where/how to find the script 😢

k9t33n

Wheres that other topic?

k9t33n

Like another thread?

incognitas0411

Now I have problem here, I am beginner to Raspberry Pi.... https://discord.com/channels/818384379197784084/1240329480761901126

incognitas0411

Can you please help me here. https://discord.com/channels/818384379197784084/1240329480761901126 it could be an easy fix, but I am struggling 🙁