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:27]
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 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.