Difference between revisions of "File Server"
Jump to navigation
Jump to search
Line 58: | Line 58: | ||
OnlyShowIn=Unity; | OnlyShowIn=Unity; | ||
</pre> | </pre> | ||
+ | =Server Setup= |
Revision as of 22:12, 21 March 2014
Basic Info
- Web interface at http://files/
- Can also be accessed via samba/SMB with the standard lvl1 credentials.
- ssh is also possible, but there is no safety check for accidentally deleting files this way.
Setting up on Ubuntu
- Prerequisites:
sudo apt-get install autofs smbfs
- create autofs config files
- /etc/auto.master
/mnt /etc/auto.files --timeout=6000 --ghost
- /etc/auto.files
z -fstype=smbfs,credentials=/etc/auto.auth ://files/shared
- /etc/auto.auth
- (replace CENSORED with the lvl1 credentials)
username=CENSORED password=CENSORED
- run the following:
sudo chmod 400 /etc/auto.auth sudo service autofs restart
- the files share will be mounted in /mnt/z
- to make this easily accessible, run
ln -s /mnt/z ~/z
- Desktop file for adding to menu (place in /usr/share/applications/
[Desktop Entry] Name=File Share Comment=LVL1 central file server Exec=nautilus /home/lvl1/z Icon=system-file-manager Terminal=false Type=Application StartupNotify=true OnlyShowIn=GNOME;Unity; Categories=GNOME;GTK;Utility;Core; MimeType=inode/directory;application/x-gnome-saved-search; X-GNOME-Bugzilla-Bugzilla=GNOME X-GNOME-Bugzilla-Product=nautilus X-GNOME-Bugzilla-Component=general X-GNOME-Bugzilla-Version=3.4.2 Actions=Window; X-Ubuntu-Gettext-Domain=nautilus [Desktop Action Window] Name=File Share Exec=nautilus /home/lvl1/z OnlyShowIn=Unity;