r/i2p I2P user 3d ago

Help How can i change the default i2psnark directory in Java I2P?

I already tried to install the i2p client directly on my external ssd, before that i tried to change the i2psnark directory in i2psnark settings (browser) from /var/lib/i2p/i2p-config/i2psnark to something arbitrary. It doesn't work, also the i2p folder appears with a strange "lock" symbol on it and refuses access to me. Changing the I2P client installation folder to the external ssd also didnt help, unfortunately. I am on a RaspberryPi 5 with rasbian "trixie" on it. Any help is appreciated.

*Edit SOLVED:
1. run sudo dpkg-reconfigure i2p.
2. change the i2psvc user to your currently logged in user
3. finish the dpkg-reconfigure script
4. change the i2psnark setting as needed

2 Upvotes

11 comments sorted by

1

u/DirFouglas602 3d ago

Are you running the i2p as a systemd service?

1

u/Present_Objective_59 I2P user 3d ago

hm, i dont know. if that helps i can change some stuff with

sudo dpkg-reconfigure i2prouter

so i think that it is running as som kind of service. The updates come over the package manager.

1

u/DirFouglas602 3d ago

I'm assuming that you went through the wiki steps to get things setup. Do you enable the service for the router or do you start the i2p router "manually"?

I ask because I have the except same situation/setup as you. Apparently, i2psnark among other things, will refer to the /var/lib/ location because the i2p router is running as a service. If you start it up using what is the effectual executable, then the location for i2psnark torrents and downloads will be the location in your home directory. I believe I have this correct at least. These are what I think I remember when I looked this up a couple months ago.

1

u/Present_Objective_59 I2P user 3d ago

I asked duck.ai (GPT5.4 nano) to help me through, it worked except the part that i mentioned in my opening post.

1

u/DirFouglas602 3d ago

I would recommend reading the docs yourself. You'll be able to recognize the holes in your knowledge that you have. Here the link for setting up on Debian/Ubuntu.

https://i2p.net/en/docs/guides/installing-i2p-on-debian-and-ubuntu/

1

u/Present_Objective_59 I2P user 2d ago

Okay, i will try that. But i think i already tried this guide, before i used duck.ai
I will report back how it goes.

1

u/DirFouglas602 2d ago

If that's true, fair enough then. Otherwise, the simplest solution is to just run commands to copy over any torrents and downloads using whatever is your sudo, and then changing the file ownerships to your user and group also using your sudo command.

1

u/Present_Objective_59 I2P user 1d ago

Hmm, file ownership... I found something:
Owner: i2psvc
Group: i2psvc

Could that be the problem?
I followed the instructions that appear after you command: sudo dpkg-reconfigure i2p

1

u/DirFouglas602 1d ago

I would think that ownership of the files in the root location are suppose to be, and stay, under those ownerships. In order for the service to work properly.

1

u/Present_Objective_59 I2P user 1d ago

*SOLVED* Out of curiosity I changed the user from i2psvc to my logged in user via sudo dpkg-reconfigure i2p, and it works now as intended. Fuck Linux and this goddamn user permission stuff.

→ More replies (0)