• Getting a server running on Arch
    19 replies, posted
I have tried going through the Arch Wiki, but I really didn't know what to look for. I have a spare hard drive that I would like to set up so that my friends and I can store crap onto it. What I need to know is just what program to use for this and any helpful advice on how to do it would be cool too.
That depends a lot on what kind of server you'll be setting up. For webserver (html, php, that sort of stuff), try [url="http://wiki.archlinux.org/index.php/LAMP"]LAMP[/url] (Arch Wiki)
Well if someone outside of your network is wanting to store files on it then you'll need to basically turn it into a website. pacman -S apache2 and then you can change the directory from /var/www to somewhere in /home, because /home is usually the largest part of the hard drive. Do it like this. sudo nano /etc/apache2/sites-available/default and change. [code]DocumentRoot /var/www[/code] to [code]DocumentRoot /home/<user>/srv[/code] or whatever you like. The rest needs to be done in your router control panel to set a static ip to you server. So first tell us what your isp is and if you have a linksys router or something else. [B]Option 2:[/B] If you want to share files only on your network for people connected to your internet you can use samba. pacman -S samba sudo nano /etc/samba/smb.conf and go to the very bottom and add: [code][<what you want the share to appear as] path = /home/user #this is the path you want to allow people to store files browsable = yes writable = yes[/code] Then use this to add a user for others to login with. "smbpasswd -a username" And then in windows it will either show up in the networks or you can add a network place and add it.
install proftpd [editline]08:51PM[/editline] the use filezilla to connect to it
[QUOTE=Yumyumbublegum;21432512]install proftpd [editline]08:51PM[/editline] the use filezilla to connect to it[/QUOTE] You still have to set it up with a static ip for anyone outside the network to connect and you have to setup a ftp user.
[QUOTE=Maccabee;21433003]You still have to set it up with a static ip for anyone outside the network to connect and you have to setup a ftp user.[/QUOTE] you think? why would i type out a whole guide there's plenty floating around on the internet
Frontier is my ISP. I have a Gigaset SE567 router. I got it to give me a static ip before so I should be able to do so again. This would be fore people outside of my home network, so the Samba server I already have up wouldn't really work I think. [editline]05:36PM[/editline] Also, a VPN kind of thing would be ideal. [editline]05:42PM[/editline] Google is giving me OpenVPN. That any good?
[QUOTE=Maccabee;21433003]You still have to set it up with a static ip for anyone outside the network to connect and you have to setup a ftp user.[/QUOTE] I've explained this to you before, you do not require a static IP for people outside the network to connect.
openvpn: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory THE FUCK DOES THAT MEAN
install that libssl
There is nothing named libssl or libssl-dev or anything in the repos. OpenSSL comes when I google it. Would that work? [editline]09:14PM[/editline] That worked. New error [quote]Cannot load certificate file /usr/share/openvpn/easy-rsa/keys/server.crt: error:02001002:system library:fopen:No such file or directory: error:20074002:BIO routines:FILE_CTRL:system lib: error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib[/quote]
is the file there?
[QUOTE=ButtsexV2;21435828]I've explained this to you before, you do not require a static IP for people outside the network to connect.[/QUOTE] wutwut?
[QUOTE=Maccabee;21438038]wutwut?[/QUOTE] he's right
Yes, the file is there. Also, I updated openSSL and now pacman doesn't work. That's great.
[QUOTE=redonkulous;21438144]Yes, the file is there. Also, I updated openSSL and now pacman doesn't work. That's great.[/QUOTE] Good. Tetris is superior anyway.
[QUOTE=Maccabee;21439241]Good. Tetris is superior anyway.[/QUOTE] I hope that was just a bad joke
[QUOTE=ButtsexV2;21439690]I hope that was just a bad joke[/QUOTE] It was. I've been in that kind of mood lately. Also, how can you share files outside of a network without using a static ip.
You just give out your dynamic IP address. The only downside is that the IP can change, and you'll have to give out your new IP. There are services like dyndns, that gives you a domain name, and you can change the IP that domain points to whenever your IP changes. So your users at least have an address they can consistently use.
I do believe that OpenVPN has a feature that automatically updates the dns every time your ip changes so you don't have to. I have a static though so I don't care.
Sorry, you need to Log In to post a reply to this thread.