Raspberry Pi server

Monado_III

Well-Known Member
OP
Member
Joined
Feb 8, 2015
Messages
722
Trophies
0
Location
/dev/null
XP
1,443
Country
Canada
I haven't used my RPi2 for much but I have an project that I'd like to do but I'm not sure how to do it. I want to make a public website (that requires a password to login to) which then presents a standard ftp page but depending on the password given different files are shown. I also want to make some text appear before the file list which changes, again, depending on the password. I want to eventually have around 20-30 passwords, one that access all of the files on the server (solely mine), a couple for my program-related crap, another few for wii u browserhax stuff, and the rest for other random files. Each password would be given to one person.

What sort of a set up would I need to do this?

Wasn't entirely sure where to put this but seeing as how "THIS FORUM... WEB DESIGN, AND ALL RELATED SUBJECTS!" I figured no one would get too annoyed if I put it here.
 
Last edited by Monado_III,

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,403
Country
United Kingdom
directory index is probably a better term than ftp page if that image describes what you want.

What level of security are you wanting for these passwords? Standard apache and its htaccess stuff will provide a basic measure of passwording ( http://www.thesitewizard.com/apache/password-protect-directory.shtml ). You could then redirect based upon username and pasword http://serverfault.com/questions/13...-file-that-redirects-certain-users-to-certain

Not as robust or workable as a fancy php and sql driven affair but fast and pretty simple when all is said and done/after you figured out what is going on.
 

Monado_III

Well-Known Member
OP
Member
Joined
Feb 8, 2015
Messages
722
Trophies
0
Location
/dev/null
XP
1,443
Country
Canada
directory index is probably a better term than ftp page if that image describes what you want.

What level of security are you wanting for these passwords? Standard apache and its htaccess stuff will provide a basic measure of passwording ( http://www.thesitewizard.com/apache/password-protect-directory.shtml ). You could then redirect based upon username and pasword http://serverfault.com/questions/13...-file-that-redirects-certain-users-to-certain

Not as robust or workable as a fancy php and sql driven affair but fast and pretty simple when all is said and done/after you figured out what is going on.
fairly basic probably a basic "BasicTextHere12345". But thanks for those links, gives me a place to start.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,403
Country
United Kingdom
There are many Tutorials on how to build a RPI server. But i never seen a setup like this
The trick is to think of it like a normal server -- it is not X86 so some of the CGI stuff does get a bit tricky, however it does run Apache ( https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md ) nginx ( https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md ), mysql ( http://raspberrywebserver.com/sql-databases/using-mysql-on-a-raspberry-pi.html ), php ( http://www.noveldevices.co.uk/rp-php5 ), it can run Linux so you have cron jobs, sendmail ( http://unixetc.co.uk/2014/11/04/enable-outgoing-mail-on-raspberry-pi/ ) and so on and so on. That makes it a real server you can treat as such, give or take the more modest resources compared to some big boy toys.
 

Luglige

hiatus
Member
Joined
Jan 24, 2016
Messages
1,414
Trophies
1
Location
under your bed
XP
883
Country
Antarctica
The trick is to think of it like a normal server -- it is not X86 so some of the CGI stuff does get a bit tricky, however it does run Apache ( https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md ) nginx ( https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md ), mysql ( http://raspberrywebserver.com/sql-databases/using-mysql-on-a-raspberry-pi.html ), php ( http://www.noveldevices.co.uk/rp-php5 ), it can run Linux so you have cron jobs, sendmail ( http://unixetc.co.uk/2014/11/04/enable-outgoing-mail-on-raspberry-pi/ ) and so on and so on. That makes it a real server you can treat as such, give or take the more modest resources compared to some big boy toys.

Could you do an encrypt maybe?
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,403
Country
United Kingdom
Encrypt as in SSL or encrypt as in some kind of secure server?

SSL is doable and if by secure you mean can I do some kind of selinux then yeah that is possible too (give or take some possible issues with the rpi2), though even without the insanity that is selinux you can encrypt directories, do proper permissions and users and all that other jazz.
 

Luglige

hiatus
Member
Joined
Jan 24, 2016
Messages
1,414
Trophies
1
Location
under your bed
XP
883
Country
Antarctica
Encrypt as in SSL or encrypt as in some kind of secure server?

SSL is doable and if by secure you mean can I do some kind of selinux then yeah that is possible too (give or take some possible issues with the rpi2), though even without the insanity that is selinux you can encrypt directories, do proper permissions and users and all that other jazz.

Woopeeeeeeeeeeeeee my 1 year old rpi b+ come at me!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @SylverReZ I read that non-binary people identify as a blend of male and female. The point is i think i'm a blend of those and thus non binary
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Non-binary people are those who don't identify themselves exclusively as male or female.
  • cearp @ cearp:
    I don't identify as anything, unless I need to get on a plane then I show ID
    +3
  • AncientBoi @ AncientBoi:
    👈 [homo, queer, fag, coksuqr, etc......]
    +3
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I meant that I read that they can also identify as what i mentioned
    +2
  • BigOnYa @ BigOnYa:
    I identify as Long Rod Johnson, cause a cat called me that once.
    +2
  • AncientBoi @ AncientBoi:
    [takes a 👀 in your pants] Liar :angry:
    +3
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, and thus that would make me non binary since i feel like a blend of both male and female
    +1
  • AncientBoi @ AncientBoi:
    @Xdqwerty only time will tell, what/whom you are. At 14, its a bit early to "Define" yourself. :)
    +3
  • Psionic Roshambo @ Psionic Roshambo:
    I only recently have learned who I am and how much I am capable of and I'm 50 lol
    +3
  • Psionic Roshambo @ Psionic Roshambo:
    A thousand epiphanies and unbelievable pain and growth.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I wish I could sum it up for children to understand but it truly takes living a lifetime of learning
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    It's more than knowledge it's understanding
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Both are required
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, ask chatgpt or Google gémini to summarize it
  • Psionic Roshambo @ Psionic Roshambo:
    Lol summarize life's lessons
  • BigOnYa @ BigOnYa:
    My wifey tells me all the time "You need to grow the fuck up." Which I don't understand, cause I'm full grown already.
    +2
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, she means grow more
    +1
  • Xdqwerty @ Xdqwerty:
    Yawn
  • AncientBoi @ AncientBoi:
    farrrrrrrrrrrt
    +1
  • BigOnYa @ BigOnYa:
    @AncientBoi I imagine it don't make the fart sound anymore, probably sounds more like letting go of a balloon you just blew up.
    +3
  • SylverReZ @ SylverReZ:
    @BigOnYa, Tell her to grow a pair. :rofl2:
    +3
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, you played any Sega genesis games?
    Xdqwerty @ Xdqwerty: @SylverReZ, you played any Sega genesis games?