Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-06-2014, 01:08 AM
|
#1
|
Member
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373
Rep:
|
Setting up a Debian file server.
I have an old computer (P4 HT 1GB) collecting dust which I want to use for a file server. The problem is that I have no idea what I have to search for and that my searches are resulting in too many links perplexing me even more. It seems the word "server" has attached to it many technical meanings that searching is futile if I don't be more specific.
My aim is as simple as setting up a home server where I can save and retreive my files, especially huge fsarchiver files. However, I still want to keep it as secure as GNU/Linux technology permits.
Thanks for any helpful pointers.
Last edited by edbarx; 08-06-2014 at 01:09 AM.
|
|
|
08-06-2014, 01:16 AM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
fileservers like this usually export their files via samba or nfs. Unless all your clients are GNU/Linux you probably want to use samba. So you could try searching for "linux samba server howto".
Alternatively, start here: http://debian-handbook.info/browse/s...ith-samba.html
HTH,
Evo2.
|
|
|
08-06-2014, 01:35 AM
|
#3
|
Member
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373
Original Poster
Rep:
|
Thanks for the link. However, I need to understand the basics behind a server, otherwise, I will be like a parrot repeating commands that I don't understand. These questions are important to me, otherwise, I will not be capable to put things into a logical perspective.
i) What is a server?
ii) How does it work?
iii) How does it defend itself from network attacks?
iv) How does it communicate with its clients?
Executing commands that I don't understand what consequences they can have, discourages me. In other words, I need to understand the logic behind the theory.
|
|
|
08-06-2014, 01:50 AM
|
#4
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
Quote:
Originally Posted by edbarx
Thanks for the link. However, I need to understand the basics behind a server, otherwise, I will be like a parrot repeating commands that I don't understand. These questions are important to me, otherwise, I will not be capable to put things into a logical perspective.
|
Ok, good.
Quote:
Originally Posted by edbarx
i) What is a server?
|
A "server" is any computer that provides a "service".
Quote:
Originally Posted by edbarx
ii) How does it work?
|
Typicall a service listens on a port (or ports) and xlients connect to it to communicate with the server... requests are made, data is transferred etc.
Quote:
Originally Posted by edbarx
iii) How does it defend itself from network attacks?
|
Services should use defensive coding, sanitise input etc. Servers should only listen on specific ports and only provide services that are actually needed, and only to specific networks etc (eg using firwalls and/or tcp wrappers).
Quote:
Originally Posted by edbarx
iv) How does it communicate with its clients?
|
Typically over TPC or UDP
Quote:
Originally Posted by edbarx
Executing commands that I don't understand what consequences they can have, discourages me.
|
You should never blindly execute commands. You should at least briefly review their associated documentation.
Quote:
Originally Posted by edbarx
In other words, I need to understand the logic behind the theory.
|
I think you need to do some general background reading. I don't have a link to an appropriate source on hand.
Evo2.
|
|
|
08-06-2014, 02:09 AM
|
#5
|
Member
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373
Original Poster
Rep:
|
Thanks, that is already some background. So, I know what to look for and what to read.
|
|
|
08-06-2014, 11:50 PM
|
#6
|
Member
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334
Rep:
|
I used to use an old Dell P4 but it did use a lot of power ( this is an issue since a 24/7 server is more useful) & the other problem was a lack of SATA ports.
If you are not streaming multiple videos, a Raspberry Pi may be worth looking at as a cheap, low power option. Have a look at: http://theurbanpenguin.com/wp/?p=2415 if you would like to provide access to Windows PCs as well. Other options are nfs (better for sharing with other Linux PCs) & sshfs (nice for sharing outside a home network since it is encrypted). For a media server, have a look at minidlna.
|
|
|
08-08-2014, 05:35 PM
|
#7
|
Member
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373
Original Poster
Rep:
|
The more I am reading the more I am getting confused as new questions crop up. Since there are many different situations that can be served remotely from a serving computer (server), it means, conceptually, there are as many different servers as one can imagine. I think, a server is essentially a daemon running on a remote computer which listens to a network interface for service requests. For instance, a file server, the thing I need, is a daemon which listens for file requests and serves these requests by locating the requested files and uploading them to the client. So, I imagine a server should have a configuration file telling it how to communicate with the outside world. I also think there should be an agreed way to make sense of the network nodes where the server and client are located so that they can communicate. My logic also dicates to me that a server and a client must agree on a language through which they communicate.
Am I right? However, the golden question is how in reality the various aspects of a server are implemented?
Last edited by edbarx; 08-08-2014 at 05:37 PM.
|
|
|
08-08-2014, 10:47 PM
|
#8
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,671
|
I think you are overthinking this.
A server is any computer or process running on a computer that provides a service that can be accessed by other computers. If I want to ssh into this computer here, I must run the ssh server program on this computer here. If I want to access files in shared directories on this computer here, I have to run a program (service or daemon) that allows me to access files in shared directories on this computer here.
When you say "server" to a hardware manufacturer, the hardware manufacturer is going to think of some machine with massive resources that can support hundreds or thousands of simultaneous connections on the hardware level. But, for a home file server, pretty much any computer with reasonable hardware will do. For my own home file server, I use a Dell 4700 P4 with 4GB RAM running Debian Sid with several terabites of external storage on USB hard drives. All my other computers also have "server" capability, as they all are have at least one shared directory accessible over my home network.
Use Samba.
Follow this guide. ( PDF here.)
Last edited by frankbell; 08-08-2014 at 10:50 PM.
|
|
|
All times are GMT -5. The time now is 01:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|