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
computer:aunt_server [2015/05/08 15:41]
tdobes
computer:aunt_server [2015/05/08 17:15] (current)
tdobes
Line 16: Line 16:
   * ''​sed -i -e '​s/​^deb.* main$/& contrib non-free/​g'​ /​etc/​apt/​sources.list''​   * ''​sed -i -e '​s/​^deb.* main$/& contrib non-free/​g'​ /​etc/​apt/​sources.list''​
   * ''​aptitude update && aptitude forget-new''​   * ''​aptitude update && aptitude forget-new''​
-  * ''​aptitude install intel-microcode firmware-linux-nonfree''​ # nonfree firmware for ATI card+  * ''​aptitude install intel-microcode firmware-realtek''​ # nonfree firmware for Realtek WLAN card
   * ''​aptitude install ifplugd''​   * ''​aptitude install ifplugd''​
   * ''​%%sed -i -e '​s/​^INTERFACES=""/​INTERFACES="​eth0"/​g'​ /​etc/​default/​ifplugd%%''​   * ''​%%sed -i -e '​s/​^INTERFACES=""/​INTERFACES="​eth0"/​g'​ /​etc/​default/​ifplugd%%''​
Line 50: Line 50:
 </​code>​ </​code>​
   * ''​aptitude purge acpid acpi-support-base''​ # systemd-logind takes care of this   * ''​aptitude purge acpid acpi-support-base''​ # systemd-logind takes care of this
 +  * ''​aptitude install wpasupplicant ifmetric iw wireless-tools''​
 +  * ToDo:  WiFi backup for loss of network connectivity
 +  * ''​%%sed -i -e '​s/​^GRUB_CMDLINE_LINUX_DEFAULT="​quiet"​$/​GRUB_CMDLINE_LINUX_DEFAULT="​quiet panic=5"/​g'​ /​etc/​default/​grub && update-grub%%''​
 +  * <​code>​
 +systemctl mask systemd-rfkill@rfkill0.service
 +systemctl mask keyboard-setup.service
 +systemctl mask console-setup.service
 +systemctl mask rc-local.service
 +</​code>​
 +  * ''​aptitude install lm-sensors''​
 +  * allow connections on 2nd NIC:<​code>​
 +echo >> /​etc/​network/​interfaces
 +echo '#​allow-hotplug eth1' >> /​etc/​network/​interfaces
 +echo 'iface eth1 inet dhcp' >> /​etc/​network/​interfaces
  
 +sed -i -e '​s/​^INTERFACES="​eth0"​$/​INTERFACES="​eth0 eth1"/​g'​ /​etc/​default/​ifplugd</​code>​
 +  * ''​aptitude install samba''​
 +  * ''​mv /​etc/​samba/​smb.conf /​etc/​samba/​smb.conf.orig''​
 +  * <​code>​cat > /​etc/​samba/​smb.conf
 +[global]
 +  security = user
 +  workgroup = WILLIAMS
 +  server string = Mini Storage Server
 +
 +  # try to become browse master
 +  local master = yes
 +  # don't use DNS for NetBIOS lookups
 +  dns proxy = no
 +  # don't flood DNS servers with useless queries (see manpage; DC lookup still uses DNS)... also disable broadcast resolution
 +  # name resolve order = wins
 +  name resolve order = wins host
 +  # ensure that we follow PAM rules (hopefully this will enforce home directory auto-creation)
 +  obey pam restrictions = yes
 +  # no broadcast announcements (we're not using OS/2)
 +  lm announce = no
 +
 +  # disable print server
 +  load printers = no
 +  show add printer wizard = no
 +  disable spoolss = yes
 +
 +  # logging
 +  log file = /​var/​log/​samba/​log.%m
 +  # cap logfiles at 1MB
 +  max log size = 1000
 +  log level = 2
 +  # don't send anything to syslog
 +  syslog = 0
 +  # mail the admin if we crash
 +  panic action = /​usr/​share/​samba/​panic-action %d
 +
 +  # performance tweaks
 +  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
 +  use sendfile = yes
 +  max protocol = SMB3
 +  strict allocate = yes
 +
 +  # obtain permissions from parent dir
 +  inherit permissions = yes
 +  # drop connections with no open files after 15 minutes of inactivity
 +  deadtime = 15
 +  # allow Windows to handle inheritance correctly
 +  map acl inherit = yes
 +
 +  # hide Apple-specific files from Windows, but delete them if we're deleting a folder
 +  veto files = /​.AppleDesktop/​Network Trash Folder/​TheVolumeSettingsFolder/​.AppleDouble/​.AppleDB/​.DS_Store/​.TemporaryItems/​
 +  delete veto files = yes
 +
 +  create mask = 0664
 +  directory mask = 0775
 +
 +  # this wreaks all sorts of havoc with symlinks
 +  unix extensions = no
 +
 +  # emulate DOS attributes using xattr
 +  store dos attributes = yes
 +
 +[share]
 +  comment = Shared Storage
 +  writable = yes
 +  path = /​mnt/​storage
 +^D
 +</​code>​
 +  * ''​smbpasswd -a -L williams''​ (and enter password)
 +  * ''​mkdir /​mnt/​storage && chown williams /​mnt/​storage''​
 +  * ''​systemctl restart smbd && systemctl restart nmbd''​
computer/aunt_server.1431117691.txt.gz · Last modified: 2015/05/08 15:41 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS