Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Last Update: 2016.09.08
- # NOTE: Replace rootuser with the actual username
- # Install rar2fs
- wget https://gist.githubusercontent.com/lazuratus/1b7e8196a554aeedfc56/raw/7ef9349f063b1e8a7da41a0292fdb2b5eeec273c/install_rar2fs.sh
- chmod +x install_rar2fs.sh
- sudo ./install_rar2fs.sh
- # Install Autofs & CIFS
- sudo apt-get -qy install autofs cifs-utils
- # Create credentials for each device in /home/rootuser/.smb_<hostname>
- # Filename examples: /home/rootuser/.smb_nas1 & /home/rootuser/.smb_nas2
- # Content example for: /home/rootuser/.smb_nas1
- username=nas1_smb_username
- password=nas1_smb_password
- # chmod .smbcredentials
- sudo chmod 600 /home/rootuser/.smb_*
- # /etc/auto.master
- /- /etc/auto.cifs --timeout=120 --ghost
- /- /etc/auto.rar2fs --timeout=120 --ghost
- # /etc/auto.cifs
- /mnt/smb/nas1/movies -fstype=cifs,ro,credentials=/home/rootuser/.smb_nas1,iocharset=utf8 ://192.168.1.110/movies
- /mnt/smb/nas2/movies -fstype=cifs,ro,credentials=/home/rootuser/.smb_nas2,iocharset=utf8,sec=ntlm ://192.168.1.115/movies
- # (sec=ntlm might be needed for older nas systems)
- # /etc/auto.rar2fs
- /mnt/rar2fs/nas1/movies -fstype=fuse,ro,allow_other,noatime,umask=222,--seek-length=2 :rar2fs#/mnt/smb/nas1/movies
- /mnt/rar2fs/nas2/movies -fstype=fuse,ro,allow_other,noatime,umask=222,--seek-length=2 :rar2fs#/mnt/smb/nas2/movies
- # Restart autofs service
- sudo service autofs restart
- # Download Plex Media Server
- # 32-bit version (only needed for 32-bit Ubuntu Desktop)
- wget --content-disposition "https://plex.tv/downloads/latest/1?channel=16&build=linux-ubuntu-i686&distro=ubuntu"
- # 64-bit version
- wget --content-disposition "https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu"
- # Or get direct link for latest version at https://www.plex.tv/downloads/
- # Download Plex Media Server > Download > Choose your platform > Linux > Ubuntu 64-bit (10.04 Lucid or newer)
- wget https://downloads.plex.tv/plex-media-server/1.1.3.2700-6f64a8d/plexmediaserver_1.1.3.2700-6f64a8d_amd64.deb
- # Install Plex Media Server
- sudo dpkg -i plexmediaserver_1.1.3.2700-6f64a8d_amd64.deb
- # If having connectivity problems with a Windows 7 share
- # Execute the following in Command Prompt (Administrator)
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d 1 /f
- reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "Size" /t REG_DWORD /d 3 /f
- # For the settings to take effect, restart the 'Server' service via services.msc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement