Raspberry Pi server

Discussion in 'Computer Programming, Emulation, and Game Modding' started by Monado_III, Jan 19, 2016.

  1. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    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?

    sorry maybe?
     
    Last edited by Monado_III, Jan 19, 2016
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,346
    9,144
    Nov 21, 2005
    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.
     
  3. Monado_III
    OP

    Monado_III GBAtemp Advanced Fan

    Member
    636
    349
    Feb 8, 2015
    Canada
    /dev/null
    fairly basic probably a basic "BasicTextHere12345". But thanks for those links, gives me a place to start.
     
  4. Luglige

    Luglige hiatus

    Member
    1,409
    1,520
    Jan 24, 2016
    Antarctica
    under your bed
    There are many Tutorials on how to build a RPI server. But i never seen a setup like this
     
  5. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,346
    9,144
    Nov 21, 2005
    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.
     
  6. Luglige

    Luglige hiatus

    Member
    1,409
    1,520
    Jan 24, 2016
    Antarctica
    under your bed
    Could you do an encrypt maybe?
     
  7. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,346
    9,144
    Nov 21, 2005
    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.
     
  8. Luglige

    Luglige hiatus

    Member
    1,409
    1,520
    Jan 24, 2016
    Antarctica
    under your bed
    Woopeeeeeeeeeeeeee my 1 year old rpi b+ come at me!