Protect with password?

Posted by Bret 
Protect with password?
October 07, 2014 11:44PM
Hi!

I recently made a pirate box on a TP-link-MR3040 router. I really like the idea and how its not connected to the internet, which got me thinking that this could kinda be a personal cloud - But I have absolutely no idea what I am doing.

For me to make it into a personal cloud, I need some help.

1.) How do I remove the "Thanks" message that comes up every time I connect to the box?

2.) Is there a way to password protect the connection, so If i connect to the box, I have to enter a password.

3.) How can I rename files that are uploaded to the Box? Is there a way to do this?

Please, if you have the time, can you type out step by step how to do this? Even if it is just one of the questions, as I have no idea how to do this.

Thanks,
Bret
Re: Protect with password?
October 08, 2014 02:45PM
Quote

1.) How do I remove the "Thanks" message that comes up every time I connect to the box?
Which message? When you login via ssh?

Quote

2.) Is there a way to password protect the connection, so If i connect to the box, I have to enter a password.
Would be a wifi password ok?

Quote

3.) How can I rename files that are uploaded to the Box? Is there a way to do this?
only while logged in via ssh - or you simply take your usb stick to your computer, after you turned the box off


This is only my signature.
Re: Protect with password?
October 10, 2014 01:05AM
1.) The message when you connect to the box and open your browser, "This isn't illegal…."


2.) a wifi password is fine

3.) Thanks!
Re: Protect with password?
October 10, 2014 08:26AM
Hi
for removing the banner page, you have to edit the index.html
You have to connect and login via SSH to the box. On MacOS & Linux
ssh root@piratebox.lan

Putty (windows): hostname: piratebox..lan ; username: root ; password: yourpass

Then edit the file
vi /opt/piratebox/www/index.html
and remove that block
	<div id="welcome" class="card">
<h2>Welcome</h2>
<p>Now, first of all, there is nothing illegal or scary going on here. This is a social place where you can chat and share files with people around you, <strong>anonymously</strong>! This is an off-line network, specially designed and developed for file-sharing and chat services. Staying off the grid is a precaution to maintain your full anonymity. Please have fun, chat with people, and feel free to share any files you may like.</p>
<input id="thanks" class="button" type="submit" value="Thanks">
</div>
.

to enable wireless WPA2-encryption run:

uci set wireless.@wifi-iface[0].encryption=psk2
uci set wireless.@wifi-iface[0].key="your_password"
uci commit wireless
wifi

More information about wifi-encryption can be found here

Matthias


This is only my signature.
Re: Protect with password?
October 11, 2014 12:16AM
WOW!! Thanks, this is amazing. I am so happy now with this, Its like my own cloud that I can share only with people I want. Your amazing!


So this leaves me with only two more questions if you want to answer them:

1.) What do i do if I want to change the password?

2.) How do I remove the footer? I will remove most of the information, just shrink it down and have a link to how to make a pirate box and that its licensed.

Again, thanks a lot!
Re: Protect with password?
October 11, 2014 07:39AM
To change the wifi password run

uci set wireless.@wifi-iface[0].key="your_password"
uci commit wireless
wifi
and that's it.

If you want to remove the footer, you have to edit two files:

/opt/piratebox/www/index.html
/opt/piratebox/src/README.txt
The last file contains the footer for the directory listing. After you modified the README.txt you have to run:

/opt/piratebox/bin/distribute_files.sh /opt/piratebox/share/Shared true

regards Matthias
Re: Protect with password?
October 12, 2014 02:10AM
/opt/piratebox/share/Shared true

This says permission denied

everything else is fine

Thanks!
Re: Protect with password?
October 12, 2014 08:39AM
the complete command is:

/opt/piratebox/bin/distribute_files.sh /opt/piratebox/share/Shared true


This is only my signature.
Re: Protect with password?
October 12, 2014 05:24PM
Thanks, That worked!thumbs up

But it only changed the shared page and not the home page. I am looking to change the "About Pirate box" on the home page below the chat box. Sorry I did not specify that earlier.
Re: Protect with password?
October 12, 2014 05:55PM
Check out the index.html like described above.. you should find that text there as well.

Matthias
Re: Protect with password?
June 20, 2016 06:35AM
What about for Raspberry Pi2? I tried the same process for the RBP and cannot configure a password for the wireless network. Thanks in advance.
Re: Protect with password?
July 01, 2016 12:01PM
Tommy Wrote:
-------------------------------------------------------
> What about for Raspberry Pi2? I tried the same
> process for the RBP and cannot configure a
> password for the wireless network. Thanks in
> advance.


Same problem here, using Raspberry Pi 2/Zero
Dan
Re: Protect with password?
July 18, 2016 04:41PM
Yeah i have been trying to do this on an RPi 3, and it doesn't seem to work...
i did use this: [piratebox.cc] to change the ssid, but the wpa settings messed up the wifi AP.

any one have any ideas?
Re: Protect with password?
July 27, 2016 04:48PM
Please do not post RPi Questions inside the OpenWrt section.

/closing
Sorry, you can't reply to this topic. It has been closed.