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/08/10 13:37] – [Minecraft server] bengtlinux [2016/11/03 22:02] (current) bengt
Line 1: Line 1:
-====== Bengts installation av Linux och MythTV ======+====== Bengts old installation av Linux och MythTV ====== 
 + 
 +This page is getting obsolete, look here for new updates: [[linux64|Bengts Fedora Linux server with MythTV and more]] 
 ===== Inledning ===== ===== Inledning =====
  
Line 346: 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 354: 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 361: 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 560: 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 574: Line 579:
 Also be sure to not wait too long with upgrades of the server as you cannot skip "major" releases. Then the upgrade through the web will fail after yum upgrade. Had to manually force installation of 8.1.5 rpms found here: Also be sure to not wait too long with upgrades of the server as you cannot skip "major" releases. Then the upgrade through the web will fail after yum upgrade. Had to manually force installation of 8.1.5 rpms found here:
 http://koji.fedoraproject.org/koji/buildinfo?buildID=744095 http://koji.fedoraproject.org/koji/buildinfo?buildID=744095
 +
 +Also fixed an issue where a user did not have write access after upgrade this way:
 +sudo -u apache php /usr/share/owncloud/occ files:scan --all
 ===== Other software ===== ===== Other software =====
  
Line 744: 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 752: 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 1013: Line 1017:
 There is a lot of server wrappers around and I did not now what to select so I set up my own solution instead: There is a lot of server wrappers around and I did not now what to select so I set up my own solution instead:
   # useradd minecraft   # useradd minecraft
-  # su - minecraft +  # visudo 
 +  ALL ALL=(ALL) NOPASSWD: /home/minecraft/start.sh 
 +  # su - minecraft
   $ wget https://s3.amazonaws.com/Minecraft.Download/versions/1.10.2/minecraft_server.1.10.2.jar   $ wget https://s3.amazonaws.com/Minecraft.Download/versions/1.10.2/minecraft_server.1.10.2.jar
-  $ java -Xmx1024M -Xms1024M -jar minecraft_server.1.10.2.jar +  $ cd /home/minecraft && java -Xmx1024M -Xms1024M -jar minecraft_server.1.10.2.jar -o true nogui 
-  $ vi eula.txt server.properties whilelist.json +  $ vi eula.txt server.properties whitelist.json start.sh 
-Then setup a script with sudo or something like that to automatically start the server with the above java command line.+  $ chmod u+x start.sh 
 +Then setup a start.sh-script containing the above java command line and start this using "lxterminal -e sudo -u minecraft /home/minecraft/start.sh". Note that I had issues using lxde autostart desktop file in ~/.config/autostart until I let the script itself start the terminal. Also ensure to have the /home/minecraft directory backed up.
 ===== Home automation ===== ===== Home automation =====
  
Line 1377: Line 1384:
   mkdir tbs   mkdir tbs
   cd tbs   cd tbs
-  wget http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_v160630.zip +  wget http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_v160919.zip 
-  unzip tbs-linux-drivers_v160630.zip+  unzip tbs-linux-drivers_v160919.zip
   tar xvjf linux-tbs-drivers.tar.bz2   tar xvjf linux-tbs-drivers.tar.bz2
   cd linux-tbs-drivers/   cd linux-tbs-drivers/
Line 1384: Line 1391:
   # sed -i 's#f_dentry#f_path.dentry#g' linux/drivers/media/rc/lirc_dev.c # Fix lirc compilation issue on kernel 3.19. Not needed in latest driver?   # sed -i 's#f_dentry#f_path.dentry#g' linux/drivers/media/rc/lirc_dev.c # Fix lirc compilation issue on kernel 3.19. Not needed in latest driver?
   # gedit v4l/isl6423.h # Fix compilation issues on kernel 4.2.8, add "," in "const struct isl6423_config *config,". Should not affect 6280 only other other cards. See http://www.tbsdtv.com/forum/viewtopic.php?f=52&t=2285   # gedit v4l/isl6423.h # Fix compilation issues on kernel 4.2.8, add "," in "const struct isl6423_config *config,". Should not affect 6280 only other other cards. See http://www.tbsdtv.com/forum/viewtopic.php?f=52&t=2285
 +  # gedit ./linux/drivers/media/dvb/dvb-usb/af9015.c # Add "#define GOLDEN_RATIO_PRIME_32 0x9e370001UL" for kernel 4.7.2, see http://www.tbsdtv.com/forum/viewtopic.php?f=47&t=10059
   make -j4   make -j4
   make install   make install
Line 1796: 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 1807: 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 1827: 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.1470836221.txt.gz · Last modified: 2016/08/10 13:37 by bengt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki