linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux [2016/08/10 13:17] – [XBMC] bengt | linux [2016/11/03 22:02] (current) – bengt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Bengts installation av Linux och MythTV ====== | + | ====== Bengts |
+ | |||
+ | 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 | + | # htpasswd /etc/httpd/htpasswd |
- | # htdigest /var/www/digest | + | # htdigest /etc/httpd/htdigest |
# 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 | + | AuthUserFile /etc/httpd/htdigest |
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:// | ||
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. |
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 " | Also be sure to not wait too long with upgrades of the server as you cannot skip " | ||
http:// | http:// | ||
+ | |||
+ | Also fixed an issue where a user did not have write access after upgrade this way: | ||
+ | sudo -u apache php / | ||
===== 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:// | http:// | ||
- | Installation as follows, installing the rpm manually: | + | Installation as follows, installing the rpm manually: |
- | # yum remove community-squeeze-repo-1-8.noarch squeezecenter-repo-1-6.noarch # logitechmediaserver | + | # dnf install http:// |
- | # yum -y install http:// | + | |
- | # yum -y install http:// | + | |
- | # yum -y install http:// | + | |
- | (# yum -y install http:// | + | |
- | (# yum -y install http:// | + | |
The web server is then available for configuration: | The web server is then available for configuration: | ||
http:// | http:// | ||
- | 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)", | + | 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)", |
- | 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:// | + | 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:// | ||
- | Fixing | + | 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 '/ | $ sed -i -e '/ | ||
$ sed ' | $ sed ' | ||
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 | + | |
+ | ALL ALL=(ALL) NOPASSWD: / | ||
+ | | ||
$ wget https:// | $ wget https:// | ||
- | $ gedit server.properties | + | $ cd / |
- | $ | + | $ vi eula.txt |
+ | $ chmod u+x start.sh | ||
+ | Then setup a start.sh-script containing the above java command line and start this using " | ||
===== Home automation ===== | ===== Home automation ===== | ||
Line 1376: | Line 1384: | ||
mkdir tbs | mkdir tbs | ||
cd tbs | cd tbs | ||
- | wget http:// | + | wget http:// |
- | 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 1383: | Line 1391: | ||
# sed -i ' | # sed -i ' | ||
# gedit v4l/ | # gedit v4l/ | ||
+ | # gedit ./ | ||
make -j4 | make -j4 | ||
make install | make install | ||
Line 1795: | Line 1804: | ||
==== Upgrade Fedora 22 -> 23 ==== | ==== Upgrade Fedora 22 -> 23 ==== | ||
- | I still used package manager upgrade method https:// | + | I still used package manager upgrade method https:// |
- | and not the preferred dnf plugin method https:// | + | |
First upgrade system, clean dnf, backup and reboot: | First upgrade system, clean dnf, backup and reboot: | ||
Line 1806: | 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 < | You may need to remove some conflicting packages to avoid issues during upgrade using "dnf remove < | ||
Line 1826: | 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.1470835067.txt.gz · Last modified: 2016/08/10 13:17 by bengt