User Tools

Site Tools


linux

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux [2016/10/23 13:31] bengtlinux [2016/11/03 22:02] (current) bengt
Line 349: Line 349:
  
 Adding new users can be done this way: Adding new users can be done this way:
-  # htpasswd /var/www/passwd username # For basic authentication +  # htpasswd /etc/httpd/htpasswd username # For basic authentication 
-  # htdigest /var/www/digest "In the club?" username # For digest authentication+  # htdigest /etc/httpd/htdigest "In the club?" username # For digest authentication
   # service httpd restart   # service httpd restart
      
Line 357: Line 357:
     AllowOverride All # Allows using .htacess-files in html-folder     AllowOverride All # Allows using .htacess-files in html-folder
     SSLRequireSSL # Require using https for access     SSLRequireSSL # Require using https for access
-    AuthUserFile /var/www/digest # File containing passwords+    AuthUserFile /etc/httpd/htdigest # File containing passwords
     AuthName "In the club?" # Realm SAME as in digest file and presented in login dialog     AuthName "In the club?" # Realm SAME as in digest file and presented in login dialog
     AuthType Digest # Using Digest (better) or Basic authentication     AuthType Digest # Using Digest (better) or Basic authentication
Line 364: Line 364:
  
 ==== https/cert ==== ==== https/cert ====
 +
 +Numera kan nog https://letsencrypt.org ge dig ett riktigt certifikat istf ett självsignerat.
  
 Först bör du generera ett trevligt certifikat för att få apache att prata https lite bättre: Först bör du generera ett trevligt certifikat för att få apache att prata https lite bättre:
Line 563: Line 565:
 ==== owncloud for sharing data ==== ==== owncloud for sharing data ====
  
-As an alternative to cloud services like dropbox you can install owncloud in your web server.+As an alternative to cloud services like dropbox you can install owncloud in your web server. Installation instructions https://doc.owncloud.org/server/latest/admin_manual/installation/index.html
  
 Simply install and configure: Simply install and configure:
Line 750: Line 752:
  
 Then I gave upp, did not work. Lacking mythlogging.h header file. Then I gave upp, did not work. Lacking mythlogging.h header file.
-==== Squeezebox ====+==== squeezebox ====
  
 I found out that there is a spotify-plugin for squeezebox and decided to try a Boom in the kitchen. It seems like a squeezebox server running together with the mythbackend is a very nice solution to get access to your music files, spotify, internet radio and more. Instructions for fedora here:\\ I found out that there is a spotify-plugin for squeezebox and decided to try a Boom in the kitchen. It seems like a squeezebox server running together with the mythbackend is a very nice solution to get access to your music files, spotify, internet radio and more. Instructions for fedora here:\\
Line 758: Line 760:
 http://forums.slimdevices.com/forumdisplay.php?27-Logitech-Media-Server http://forums.slimdevices.com/forumdisplay.php?27-Logitech-Media-Server
  
-Installation as follows, installing the rpm manually: (Untested!) +Installation as follows, installing the rpm manually: 
-  # yum remove community-squeeze-repo-1-8.noarch squeezecenter-repo-1-6.noarch # logitechmediaserver +  # dnf install http://downloads-origin.slimdevices.com/nightly/7.9/sc/b1a775c/logitechmediaserver-7.9.0-0.1.1476850390.noarch.rpm
-  # yum -y install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm +
-  # yum -y install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm +
-  # yum -y install http://downloads-origin.slimdevices.com/nightly/7.9/sc/5d05bcb/logitechmediaserver-7.9.0-0.1.1467729831.noarch.rpm +
-  (# yum -y install http://downloads.slimdevices.com/nightly/7.9/sc/2294973/logitechmediaserver-7.9.0-0.1.1437729381.noarch.rpm) +
-  (# yum -y install http://downloads.slimdevices.com/LogitechMediaServer_v7.8.0/logitechmediaserver-7.8.0-1.noarch.rpm)+
  
 The web server is then available for configuration: \\ The web server is then available for configuration: \\
 http://localhost:9000/ \\ http://localhost:9000/ \\
-You can skip the account on mysqueezebox.com and continue. Configure music folder and start scan. The default spotify plugin won't work with Squeezebox Boom so disable it, apply and let the server restart. Then enable "3rd Party Spotify Plugin (Intel and Arm Processors Only)", apply and configure your spotify premium account. You may need to to check "Show all 3rd party plugins" for the plugin to show.+You can skip the account on mysqueezebox.com and continue. Configure music folder and start scan. The default spotify plugin won't work with Squeezebox Boom so disable it, apply and let the server restart. Then enable "3rd Party Spotify Plugin (Intel and Arm Processors Only)", apply and configure your spotify premium account. You may need to to check "Show all 3rd party plugins" for the plugin to show. Also look for the chromecast plugin.
  
-Had a lot of issues with rebuffering on Boom and Classic. Have experimented with max bitrate and lame recoding on the server suspecting my flac files but no real success. Seems to work better when using wired, need to redo network setup to switch. Some special keys to press on remote to factory reset on older SB hardware: \\ http://wiki.slimdevices.com/index.php/Special_IR_Keys_on_Reboot_for_Factory_Reset_and_Last_FW+Had a lot of issues with rebuffering on Boom and Classic. Have experimented with max bitrate and lame recoding on the server suspecting my flac files but no real success. Seems to work better when using wired, need to redo network setup to switch. Some special keys to press on remote to factory reset on older SB hardware: \\ 
 +http://wiki.slimdevices.com/index.php/Special_IR_Keys_on_Reboot_for_Factory_Reset_and_Last_FW
  
-Fixing url-encoding for squeezebox playlists using sed and change path respectively:+A solution to reuse sb playlists with other software is to fix url-encoding for squeezebox playlists using sed and change path respectively:
   $ sed -i -e '/^tmp:/ s#%20# #g' -e '/^tmp:/ s#%C3%96#Ö#g' -e '/^tmp:/ s#%C3%B6#ö#g' -e '/^tmp:/ s#%C3%85#Å#g' -e '/^tmp:/ s#%C3%A5#å#g' -e '/^tmp:/ s#%C3%84#Ä#g' -e '/^tmp:/ s#%C3%A4#ä#g' -e "/^tmp:/ s#%27#'#g" -e '/^tmp:/ s#%C3%A9#é#g' -e '/^tmp:/ s#%C3%A0#à#g' -e '/^tmp:/ s#%C3%A7#ç#g' -e 's#^tmp://##g' -e 's#tmp://#file://#g' Bengts.m3u   $ sed -i -e '/^tmp:/ s#%20# #g' -e '/^tmp:/ s#%C3%96#Ö#g' -e '/^tmp:/ s#%C3%B6#ö#g' -e '/^tmp:/ s#%C3%85#Å#g' -e '/^tmp:/ s#%C3%A5#å#g' -e '/^tmp:/ s#%C3%84#Ä#g' -e '/^tmp:/ s#%C3%A4#ä#g' -e "/^tmp:/ s#%27#'#g" -e '/^tmp:/ s#%C3%A9#é#g' -e '/^tmp:/ s#%C3%A0#à#g' -e '/^tmp:/ s#%C3%A7#ç#g' -e 's#^tmp://##g' -e 's#tmp://#file://#g' Bengts.m3u
   $ sed 's#/data/music/#Y:/music/#g' Bengts.m3u > BengtsWin.m3u   $ sed 's#/data/music/#Y:/music/#g' Bengts.m3u > BengtsWin.m3u
Line 1806: Line 1804:
 ==== Upgrade Fedora 22 -> 23 ==== ==== Upgrade Fedora 22 -> 23 ====
  
-I still used package manager upgrade method https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum +I still used package manager upgrade method https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum and not the preferred dnf plugin method https://fedoraproject.org/wiki/Upgrading .
- and not the preferred dnf plugin method https://fedoraproject.org/wiki/Upgrading .+
  
 First upgrade system, clean dnf, backup and reboot: First upgrade system, clean dnf, backup and reboot:
Line 1817: Line 1814:
   # cp -a rpm_backup rpm   # cp -a rpm_backup rpm
   # reboot   # reboot
- 
 You may need to remove some conflicting packages to avoid issues during upgrade using "dnf remove <pkg>". Maybe even use "rpm -e --nodeps" to avoid dependency checks and removing lots of packages. Maybe old kernel packages to free space in /boot. You may need to remove some conflicting packages to avoid issues during upgrade using "dnf remove <pkg>". Maybe even use "rpm -e --nodeps" to avoid dependency checks and removing lots of packages. Maybe old kernel packages to free space in /boot.
  
Line 1837: Line 1833:
   # package-cleanup --dupes   # package-cleanup --dupes
   # package-cleanup --orphans   # package-cleanup --orphans
-   
 Do not remove too much. You may also need to fix your squeezebox cpan modules (see above), upgrade owncloud database, etc.  Do not remove too much. You may also need to fix your squeezebox cpan modules (see above), upgrade owncloud database, etc. 
  
linux.1477229511.txt.gz · Last modified: 2016/10/23 13:31 by bengt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki