+4 votes
231 views
Creating a print server and files shared with Linux - part 1

in Linux / Unix by (552k points)
reopened | 231 views

1 Answer

+5 votes
Best answer

In the first part of this tutorial we will configure our old hardware to convert it into a file server, as well as the installation of the necessary protocols to perform this operation.
  • 1 - For a basic server of files and printing we do not need a fast server, that old laptop with the screen worn and not enough RAM to open up to 20 tabs in Firefox, will serve us more than good.
  • 2 - An effective device with many benefits such as the NSLU-2 also known as Slug Box is what we need to complement our server hardware level. This microcomputer will give us what we need with its ARM processor and it is small enough to put it where we want, additionally it is supported by Debian .

image

  • 3 - Whatever hardware we use our intention is to use a Linux distribution that does not give us headaches, that is friendly, easy to update and install new programs in it. We can use both Debian and the server version of Ubuntu .
  • 4 - We will use the disk of our old laptop to install the distribution, but we can make a partition in it to separate information. There will be different options depending on our hardware and the size of the files to be shared but definitely having separate disks will speed up processes considerably.
  • 5 - To assign the network addresses in our computers, we will be using DHCP . What we need to consider is that we need a static address for the server. We collect the information we need in our local network with ifconfig and the netstat -n command.
  • 6 - We choose an IP address that is far from the assigned range for example: 192.168.0.242 and we set it during installation.

image

  • 7 - We perform a minimal installation, but Debian gives us several options for our server, selecting one of them will give us enough or everything we need.
  • 8 - Yes we are running Ubuntu and we are trusting sudo to win super user privileges it is time to change this by adding a password to root.
  • 9 - Now we need to install the NFS , which means Network file system , which is nothing more than the protocol that will allow us to communicate with our computer to access the files remotely, for this we run the following command:

 Apt-get install nfs-kernel-server portmap 
  • 10 - Do not forget to change the license to the / exports directory with chmod -R 777. After creating the file system, change the following line in / etc / default / nfs-common :

 NEED_IDMAPD = yes 
  • 11 - Then to read the remote files we run the following command:

 mkdir ~ / SharedFolder sudo mount 192.168.0.242: / home / nfs / home / username / SharedFolder 

image

  • 12 - Finally if we want to write the permissions on these files we should only edit / etc / exports on the server with rw . We can fix exports by host name, domain or IP address.
After this point we just have to get creative, we can use NIS , LDAP or look for a different approach with Samba, in the second part of this tutorial we will continue with the creation of our server but this time the turn will touch the print.

To continue with part 2 of this Tutorial, keep clicking this link:
http: //www.solvetic....ux---parte-2/

by (3.5m points)
edited

Related questions

+5 votes
1 answer
+3 votes
1 answer
asked Jun 23, 2019 in Windows Server by backtothefuture (552k points) | 211 views
+5 votes
1 answer
asked Jun 24, 2019 in Windows Server by backtothefuture (552k points) | 203 views
+4 votes
1 answer
asked Jun 24, 2019 in Linux / Unix by backtothefuture (552k points) | 222 views
+3 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users