Code: Select all
#!/bin/bash
kodi
if [ "$?" = "0" ]; then
killall kodi
sudo chvt 5 # could be any number between 1 and 6; I just went with 5!
sudo chvt 7 # back to the desktop
fi
Code: Select all
*your username* ALL=(ALL) NOPASSWD: /bin/chvt
Code: Select all
sudo visudo
lol... this won't work. You need to build the pvr into Kodi itself. If you're going to play hero with my how-to, at least know what you're doing to back it up. I gave it to you to learn, and told you I wouldn't upload a pre-built *.deb for a reason.. for people to learn how to do it themselves.Kratos wrote:Yup.KratosCode: Select all
sudo apt-get install kodi-pvr-nextpvr
Code: Select all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo rpi-update
sudo apt-get install build-essential make git-core checkinstall
sudo apt-get install libboost1.58-all-dev swig curl libgnutls-dev libxml2-dev libxslt1-dev libfreetype6-dev libfontconfig1-dev libfribidi-dev libmpeg2-4-dev libmad0-dev libjpeg8-dev libsamplerate0-dev libogg-dev libvorbis-dev libflac-dev libtiff5-dev liblzo2-dev cmake zip unzip libsqlite3-dev libpng12-dev libpcre3-dev libjasper-dev libsdl1.2-dev libsdl-image1.2-dev libass-dev libmodplug-dev libcdio-dev libtinyxml2-dev libyajl-dev libgpg-error-dev libgcrypt11-dev libmicrohttpd-dev autoconf libtool autopoint libudev-dev python-dev python-imaging libmysqlclient-dev libcurl4-gnutls-dev libbz2-dev libtinyxml-dev libssh-dev libxrandr-dev libsmbclient-dev libcap-dev gawk gperf debhelper libiso9660-dev liblockdev1-dev ccache git-core checkinstall default-jre doxygen librtmp-dev libnfs-dev libgif-dev libplist-dev libshairport-dev libbluray-dev libbluray1 libbluetooth-dev uuid-dev libtag1-dev libspeex-dev
git clone -b master git://github.com/xbmc/xbmc.git kodi
git clone --recursive git://github.com/Pulse-Eight/libcec.git
cd libcec/src/platform
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd
cd libcec
mkdir build
cd build
cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
make -j4
sudo make install
cd
sudo make -C kodi/tools/depends/target/crossguid PREFIX=/usr/local
cd kodi/project
git clone -b master https://github.com/kodi-pvr/pvr.hts.git
cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../kodi/addons -DPACKAGE_ZIP=1 ../../kodi/project/cmake/addons
make -j4
cd ..
nano tools/depends/target/ffmpeg/autobuild.sh
add to the rest below "./configure --prefix=$FFMPEG_PREFIX \"
--enable-libspeex \
./bootstrap
CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi2 --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --enable-libcec --disable-pulse --enable-optical-drive --enable-dvdcss --enable-libusb --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --enable-libbluray --with-ffmpeg=auto
make -j4
sudo checkinstall
** 10 to 20 minutes later.....
tar: (India): Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
OK
Stripping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list...OK
Building Debian package...OK
Installing Debian package...OK
Erasing temporary files...OK
Deleting temp dir...OK
**********************************************************************
Done. The new package has been installed and saved to
/home/ubuntu/kodi/kodi_17.0.000-1_armhf.deb
You can remove it from your system anytime using:
dpkg -r kodi
**********************************************************************
## make keyboard work for non-root eg inside search-fields for user 'ubuntu'
sudo usermod -aG tty ubuntu
sudo su -c 'echo "KERNEL==\"tty[0-9]*\", GROUP=\"tty\", MODE=\"0660\"" >> /etc/udev/rules.d/99-input.rules'
Actually... Ubuntu has an Ubuntu version in the repos. But it'll only work with the version of Kodi that Ubuntu currently hosts in the repos. Kodi 17 requires stuffs not built in to that version.Kratos wrote:Actually, it looks like it is only supported on Windows:Reference:NextPVR is a free Personal Video Recorder (PVR) application for Microsoft Windows.
http://kodi.wiki/view/NextPVR
Kratos
Code: Select all
NextPVR PVR
NextPVR PVR client addon for Kodi
Build instructions
Linux
git clone https://github.com/xbmc/xbmc.git
git clone https://github.com/kodi-pvr/pvr.nextpvr.git
cd pvr.nextpvr && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.nextpvr -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
make
Code: Select all
https://github.com/kodi-pvr/pvr.nextpvr
Well, that was classy... we ARE all learning here; on the shoulders of giants and all that.greenbag wrote:lol... [snip] If you're going to play hero with my how-to, at least know what you're doing to back it up. [snip] again... learn what you're doing.
No.. what's classless, is stabbing me in the back.Snze wrote:Well, that was classy... we ARE all learning here; on the shoulders of giants and all that.greenbag wrote:lol... [snip] If you're going to play hero with my how-to, at least know what you're doing to back it up. [snip] again... learn what you're doing.![]()
Thanks for the help though.
Agreed! But I'm putting the pi together for my sister-in-law, and trying to make it as idiot-proof as possible.greenbag wrote:you're going to use the keyboard anyway, so pressing 2 keys isn't too hard to do.
Ummm...You did help me a lot, as stated in the credits:greenbag wrote:No.. what's classless, is stabbing me in the back.Snze wrote:Well, that was classy... we ARE all learning here; on the shoulders of giants and all that.greenbag wrote:lol... [snip] If you're going to play hero with my how-to, at least know what you're doing to back it up. [snip] again... learn what you're doing.![]()
Thanks for the help though.
Sorry if I offended you.Thanks to Szne, carvari, greenbag, divebombdom, and MonkeymanStones for helping me smoosh all the bugs. This project would have taken a LOT longer without their help. Thanks so much!
Thanks for the tips! Will give it a go again tonight.greenbag wrote: lol... this won't work. You need to build the pvr into Kodi itself. If you're going to play hero with my how-to, at least know what you're doing to back it up. I gave it to you to learn, and told you I wouldn't upload a pre-built *.deb for a reason.. for people to learn how to do it themselves.
Code: Select all
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo rpi-update sudo apt-get install build-essential make git-core checkinstall sudo apt-get install libboost1.58-all-dev swig curl libgnutls-dev libxml2-dev libxslt1-dev libfreetype6-dev libfontconfig1-dev libfribidi-dev libmpeg2-4-dev libmad0-dev libjpeg8-dev libsamplerate0-dev libogg-dev libvorbis-dev libflac-dev libtiff5-dev liblzo2-dev cmake zip unzip libsqlite3-dev libpng12-dev libpcre3-dev libjasper-dev libsdl1.2-dev libsdl-image1.2-dev libass-dev libmodplug-dev libcdio-dev libtinyxml2-dev libyajl-dev libgpg-error-dev libgcrypt11-dev libmicrohttpd-dev autoconf libtool autopoint libudev-dev python-dev python-imaging libmysqlclient-dev libcurl4-gnutls-dev libbz2-dev libtinyxml-dev libssh-dev libxrandr-dev libsmbclient-dev libcap-dev gawk gperf debhelper libiso9660-dev liblockdev1-dev ccache git-core checkinstall default-jre doxygen librtmp-dev libnfs-dev libgif-dev libplist-dev libshairport-dev libbluray-dev libbluray1 libbluetooth-dev uuid-dev libtag1-dev libspeex-dev git clone -b master git://github.com/xbmc/xbmc.git kodi git clone --recursive git://github.com/Pulse-Eight/libcec.git cd libcec/src/platform mkdir build cd build cmake .. make -j4 sudo make install cd cd libcec mkdir build cd build cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib .. make -j4 sudo make install cd sudo make -C kodi/tools/depends/target/crossguid PREFIX=/usr/local cd kodi/project git clone -b master https://github.com/kodi-pvr/pvr.hts.git cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../kodi/addons -DPACKAGE_ZIP=1 ../../kodi/project/cmake/addons make -j4 cd .. nano tools/depends/target/ffmpeg/autobuild.sh add to the rest below "./configure --prefix=$FFMPEG_PREFIX \" --enable-libspeex \ ./bootstrap CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi2 --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --enable-libcec --disable-pulse --enable-optical-drive --enable-dvdcss --enable-libusb --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --enable-libbluray --with-ffmpeg=auto make -j4 sudo checkinstall ** 10 to 20 minutes later..... tar: (India): Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors OK Stripping ELF binaries and libraries...OK Compressing man pages...OK Building file list...OK Building Debian package...OK Installing Debian package...OK Erasing temporary files...OK Deleting temp dir...OK ********************************************************************** Done. The new package has been installed and saved to /home/ubuntu/kodi/kodi_17.0.000-1_armhf.deb You can remove it from your system anytime using: dpkg -r kodi ********************************************************************** ## make keyboard work for non-root eg inside search-fields for user 'ubuntu' sudo usermod -aG tty ubuntu sudo su -c 'echo "KERNEL==\"tty[0-9]*\", GROUP=\"tty\", MODE=\"0660\"" >> /etc/udev/rules.d/99-input.rules'
Heh! I probably did it wrong! I do like the succinctness of mine though - 7 lines, baby!Kratos wrote:Thanks for the script Szne! For some reason the startkodi script was working on my system....wierd...![]()
Kratos
Hey, if it works, who needs anything else?Snze wrote:Heh! I probably did it wrong! I do like the succinctness of mine though - 7 lines, baby!Kratos wrote:Thanks for the script Szne! For some reason the startkodi script was working on my system....wierd...![]()
Kratos
Kratos wrote:
Sorry if I offended you.
Kratos
When? Just to be clear, I did not try to stab anyone at all. Sorry if I am being a complete idiot, but I am not sorry I built Kodi for many good folks to enjoy. Hopefully this does not turn into a flame war after all the work we have put into this...greenbag wrote:I told you straight up I didn't want it released as a prebuilt deb, because I wanted people to learn.
I forgot to mention... the reason I want people to learn how to actually build it themselves, instead of relying on someone else to build it for them.. I used to mod another "community" of testers, and if you didn't learn to compile the sources.. you weren't watching tv. The coders did not want their work released as prebuilt binaries, and those who did play hero.. on their work, were quickly shunned. The coders were more than willing to share the knowledge.. as long as you paid it forward, not create a name for yourself releasing someone else's work. Their work. That's how I learned to compile.. someone else took the time to show me how. It's also why I will never release a prebuilt anything from someone else's source. I'd rather show them how to do it for themselves. The hardest part of compiling, is getting the dependencies installed. Once you have the apt list, it's pretty easy to type the build commands. Not too difficult.Snze wrote:we ARE all learning here; on the shoulders of giants and all that.![]()
Thanks for the help though.
Private pm... where I gave you the guide. In private.Kratos wrote:When? Just to be clear, I did not try to stab anyone at all. Sorry if I am being a complete idiot, but I am not sorry I built Kodi for many good folks to enjoy. Hopefully this does not turn into a flame war after all the work we have put into this...greenbag wrote:I told you straight up I didn't want it released as a prebuilt deb, because I wanted people to learn.
Kratos
greenbag wrote:Private pm... where I gave you the guide. In private.
Snze wrote:greenbag wrote:Private pm... where I gave you the guide. In private.Where perhaps this exchange should have taken place? Can't we all just get along?
In my (albeit limited) experience, building from source isn't usually massively difficult, just frustrating due to the dependencies (as you mentioned). I, for one, am massively thankful for Kratos for absorbing that headache for me. There's plenty of other stuff that folk might need to build from source for their pi, and when that moment comes, necessity will be the mother of invention.
I get your point re GPL, though - live and learn I guess; perhaps making your guide more visible might be the best way forward?
I do thank you for that.greenbag wrote: But I told him straight up.. I didn't want it released in a prebuilt package. He looked as if he was having issues in another thread, that was pro Raspbian and not Ubuntu, so I reached out in pm giving him my steps... which took me quite a few hours to come up with, mind you.
OK, do it.greenbag wrote: He responds that I'm the greatest man on earth, and would I mind uploading a package. I said I didn't want to release a package. In fact, I was about to post a guide myself on how to build Kodi 17 on Mate.. the exact same steps, really.
Are you?greenbag wrote: The main point is he's not the authour of the source
Good for you for coming up with that well documented option.greenbag wrote: , therefore, he has no right to release a prebuilt package, making a name for himself, off the backs of someone else's work. Especially when he uses my guide to do it. How do I know he used my guide? I'm the only one in the community who uses "--with-ffmpeg=auto".
I cannot prove it, but I am not that guy. I would not try to keep anyone from learning anything, unless it was self-damaging (like building a bombgreenbag wrote: I had a similar discussion with another "developer", as he liked to call himself, over at kodi forums. He's been on here, batting heads with another resident developer on this site. Over at kodi forums, he pops into every damn thread about compiling, and immediately says, "why bother going through all that hassle of compiling, when I've already done it for you?" He did this to me.. even though I've been compiling for more than a decade.. lol. He then goes into another thread and makes his pitch about his repo.. fine. But then someone else comes in and tells him he should try compiling, not me btw, then he returns and tries again to deter this guy from trying to learn. I laid into him, saying he was self-posturing, playing hero off someone else's work. The funny thing? Not a single member of team kodi came to his defense. That should tell you something, and how they feel about other people making a name for themselves with their hard work.
Did you notify them?greenbag wrote: As for the proprietary codecs though... right now, raspberry pi . org is hosting a link to what could be considered, illegal software. Just sayin'.
Have you tried building Kodi 17 yet? I can build 16 on Mate, but I'm getting an error when it comes to ffmpeg overlays or something.. just after it does it's "this is a PNG" test. I just noticed Mate 16.04 LTS came out 2 days ago, and the Pi2 and Pi3 images should be available in a few days. Hopefully it's just a matter of file versions causing the error. Apt-get build-dep kodi works though, and installs a shitload of files. Not sure why the error. It builds fine in Raspbian.. I just don't like Raspbian. Damn trash can disappears, and I can't get my remote going. It works out of the box in both Ubuntus.
https://ubuntu-mate.org/blog/ubuntu-mat ... l-release/
You can install the confluence skin on 17, you know!Kratos wrote:The only reason I built it was because I personally like the old look better.![]()
Kratos