Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
virtualisation:file-server [2018/03/01 08:26]
buettner
virtualisation:file-server [2018/03/15 15:39]
buettner
Line 9: Line 9:
 ==== 1) Preparations ==== ==== 1) Preparations ====
  
-The first step you should take is to give your router a static IP adress. For this, use  
-<​code>​ 
-nano /​etc/​network/​interfaces 
-</​code>​ 
-and set up a static IP configuration for your primary interface. In this example, the configuration for the eth0 interface looks like this: 
-<​konsole>​ 
-auto eth0 
-iface eth0 inet static 
-address 192.168.1.50 
-netmask 255.255.255.0 
-network 192.168.1.0 
-broadcast 192.168.1.255 
-gateway 192.168.1.105 
-dns-nameservers 192.168.1.105 
-</​konsole>​ 
  
-After that, use +The first step you should take is to use 
 <​code>​ <​code>​
 apt-get update apt-get update
Line 163: Line 148:
 After this, upload your downloaded and renamed folder to your web servers default location (e.g. /​var/​www/​html). Now you can access the FTP server over the name of this folder (For example, if your domain is mediacontainer.local and you renamed the folder to ftpserver, you can access it via http://​mediacontainer.local/​ftpserver). After this, upload your downloaded and renamed folder to your web servers default location (e.g. /​var/​www/​html). Now you can access the FTP server over the name of this folder (For example, if your domain is mediacontainer.local and you renamed the folder to ftpserver, you can access it via http://​mediacontainer.local/​ftpserver).
  
-You also have to change the rigths ​of the temp folder in your uploaded folder. Fot this, go to this folder and type+You also have to change the rights ​of the temp folder in your uploaded folder. Fot this, go to this folder and type
 <​code>​ <​code>​
 chmod 777 temp chmod 777 temp
Line 364: Line 349:
  
 Now format an USB stick to the FAT16 oder FAT32 file format. Copy to it the "​autorun.key"​ file together with the "​autorun.sh"​ file and the files/​folders you want to transfer. Now format an USB stick to the FAT16 oder FAT32 file format. Copy to it the "​autorun.key"​ file together with the "​autorun.sh"​ file and the files/​folders you want to transfer.
-{{ :virtualisation:usb_3.png?​nolink&​600 |}}+<​konsole>​ 
 +/​mnt/​media/​autorun $ ls -lh 
 +drw-r--r-- ​   2 root     ​root ​       8.0K Feb  1 10:46 Audio-trans 
 +drw-r--r-- ​   2 root     ​root ​       8.0K Feb  1 10:47 Bilder-trans 
 +drw-r--r-- ​   2 root     ​root ​       8.0K Feb  1 13:25 System Volume Information 
 +drw-r--r-- ​   2 root     ​root ​       8.0K Feb  1 16:46 Video-trans 
 +-rw-r--r-- ​   1 root     ​root ​         65 Feb  1 11:21 autorun.key 
 +-rw-r--r-- ​   1 root     ​root ​        286 Feb  1 16:44 autorun.sh 
 + 
 +</​konsole>​
  
 If you now plug in the stick into the router, the stick is mounted to the file system and all tasks from the "​autrorun.sh"​ file are run. If you now plug in the stick into the router, the stick is mounted to the file system and all tasks from the "​autrorun.sh"​ file are run.