Kodi Community Forum
[RELEASE] CrystalHD Linux distributions for Apple TV with UI installer (Win, Linux) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [RELEASE] CrystalHD Linux distributions for Apple TV with UI installer (Win, Linux) (/showthread.php?tid=97949)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35


- da-bitsch - 2011-04-27

cakeove Wrote:I try following the instructions but get this error.

atv@appletv-ubuntu:/usr/bin$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python-pip
atv@appletv-ubuntu:/usr/bin$

i will appreciate your help with this
regards.

this might help - http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/


- Sam.Nazarko - 2011-04-27

GuySie Wrote:Just used the installer, finally got crystalbuntu running on the internal HD! I was having serious problems with my db size and the amount of fanart on my 8gig USB stick. Feels a bit speedier and more stable when playing 720s too versus my old pin87 install! Thanks Sam!



I have used the options="-m" method to get more working Harmony buttons.
https://github.com/Evinyatar/atvclient/wiki/
and then
http://forum.xbmc.org/showthread.php?tid=55660

On my old install this needed a recompiled atvclient, but on Sam's it worked out of the box.

Two things I'm wondering about are: what's this .asoundrc for menusounds trick that's mentioned a few times in this thread? I don't really miss the menu sounds (silence is golden and all), but i'm OCD enough that I want to have everything up and running, just in case... and: I'm also one of the people who have odd behaviour from advancedsettings.xml. My DDS fanart works (after the CPU chugged along for a few hours converting them all, poor thing) but the GPU temp is still a ?.

Glad its working fast then. GPU temp can be setup by following the documentation. As for .asoundrc -- if you prefer silence, keep it that way.

GuySie Wrote:So, you're saying to wait it out for your next PVR-related patch? Because I already edited mine after reading this in your manual:

"However, if XBMC is crashing, then this is likely due to a lack of memory available to the system. Therefore, a reboot is optimal. It does take notably longer before XBMC is restarted but ensures the system regains resources. This can be done by adding sudo reboot to the end of rc.local which can be edited via SSH with sudo nano /etc/rc.local. To regain access to the TTY session at any time, remove the reboot command."

After the PVR patch the following change will occur:

Code:
xinit /usr/bin/xbmc --standalone

Code:
xinit /usr/local/bin/xbmc --standalone

This is due to a locally produced package. The thing is, this change will not be an append, it will be an overwrite. So after the PVR update, reboot func. will stop working until you re-add the reboot line. I still don't recommend it for the reason I explained in the quote above. But I trust it is working?


- cakeove - 2011-04-27

da-bitsch Wrote:this might help - http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/

I get this
atv@appletv-ubuntu:~$ sudo easy_install pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://pip.openplans.org
Reading http://www.pip-installer.org
Best match: pip 1.0
Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.tar.gz#md5=327fc4a03df189506966e15021730550
Processing pip-1.0.tar.gz
Running pip-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-p13XRs/pip-1.0/egg-dist-tmp-udcYxy
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.0 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip-2.5 script to /usr/bin

Installed /usr/lib/python2.5/site-packages/pip-1.0-py2.5.egg
Processing dependencies for pip
Finished processing dependencies for pip



the installing airplayer and execute

but i get this error now


python /home/atv/Airplayer/airplayer/airplayer.py
Traceback (most recent call last):
File "/home/atv/Airplayer/airplayer/airplayer.py", line 19, in <module>
from protocol_handler import AirplayProtocolHandler
File "/home/atv/Airplayer/airplayer/protocol_handler.py", line 4, in <module>
import lib.biplist
File "/home/atv/Airplayer/airplayer/lib/biplist/__init__.py", line 197
if extra == 0b1111:
^
SyntaxError: invalid syntax


how can i get install in python2.6??


- Sam.Nazarko - 2011-04-27

Unfortunately, your questions are beyond the scope of this thread, as it is does not cover custom modifcations. However, the best advice I'd give is to build pip manually (configure, make, make install).


- Grenti - 2011-04-27

Sam.Nazarko Wrote:Glad its working fast then. GPU temp can be setup by following the documentation.

this is what I have for the GPU temp

<gputempcommand>echo "$(nvidia-settings -tq gpuCoreTemp) C"</gputempcommand>

the temp still shows up as ?


- Sam.Nazarko - 2011-04-27

Sounds like the file is not being parsed then.


- Grenti - 2011-04-27

The log file says it's being parsed.


- Sam.Nazarko - 2011-04-27

Run the echo command then and check that temperature is being output from a TTY session.


- Grenti - 2011-04-28

nvidia-settings was not installed with the CrystalHD Linux image. I installed it and now the temp shows up. Thanks for your help and making the apple tv awesome!


- da-bitsch - 2011-04-28

cakeove Wrote:I get this
atv@appletv-ubuntu:~$ sudo easy_install pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://pip.openplans.org
Reading http://www.pip-installer.org
Best match: pip 1.0
Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.tar.gz#md5=327fc4a03df189506966e15021730550
Processing pip-1.0.tar.gz
Running pip-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-p13XRs/pip-1.0/egg-dist-tmp-udcYxy
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.0 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip-2.5 script to /usr/bin

Installed /usr/lib/python2.5/site-packages/pip-1.0-py2.5.egg
Processing dependencies for pip
Finished processing dependencies for pip



the installing airplayer and execute

but i get this error now


python /home/atv/Airplayer/airplayer/airplayer.py
Traceback (most recent call last):
File "/home/atv/Airplayer/airplayer/airplayer.py", line 19, in <module>
from protocol_handler import AirplayProtocolHandler
File "/home/atv/Airplayer/airplayer/protocol_handler.py", line 4, in <module>
import lib.biplist
File "/home/atv/Airplayer/airplayer/lib/biplist/__init__.py", line 197
if extra == 0b1111:
^
SyntaxError: invalid syntax


how can i get install in python2.6??

do this

http://www.pip-installer.org/en/latest/

if you cant install it then change your debian defaults to include python 2.6


- nchall - 2011-04-28

http://forum.xbmc.org/showpost.php?p=635570

in the harmony config program on your computer set the remote up as a media center pc->plex->plex player. after that follow the instructions in the above post.

works well for me.


- pmcd - 2011-04-28

pumkinut Wrote:Why not just write a reboot script and save it as a favorite?
Code:
atv | sudo -S reboot

Hmm ... is there anything special to add to this? That is, do you just make a text file and add some .scrpt or whatever and change permissions? Writing xbmc scripts doesn't seem obvious. Any help would really be appreciated as this would be a nice way to do it.

philip


- pumkinut - 2011-04-28

pmcd Wrote:Hmm ... is there anything special to add to this? That is, do you just make a text file and add some .scrpt or whatever and change permissions? Writing xbmc scripts doesn't seem obvious. Any help would really be appreciated as this would be a nice way to do it.

philip
Create the file in your text editor of choice. Save it with a name, I called my reboot.sh and then make it executable with the following:
Code:
chmod +x <filename>
Substitute whatever you named your file for the <filename> part.

After that, I just added a favorite and navigated to wherever I saved reboot.sh and chose that. When I want to reboot the atv, I simply pull up my favorites, select the reboot script and voila.

I also created a shutdown script for when I want to pull power from the atv. Since the atv is not ACPI compliant, it won't power down fully, but with the script, the hard drive will park and the OS will stop, thereby decreasing the chances of data corruption greatly. Of course, the same applies to this, create the file, make it executable, choose it as a favorite.
Shutdown:
Code:
atv | sudo -S shutdown -h now

In case you're wondering the command breaks down as follows:

I use the default password for the CrystalHD install, therefore the first atv.

The pipe symbol, the |, feeds whatever precedes it into the next command, so atv is piped into the sudo command, which with the -S switch is looking for the password from stdin (standard input, which is what the | was for). This is needed because both reboot and shutdown need elevated privileges to work.

The -h switch tells linux to halt after shutdown, as opposed to restarting or something else. And, finally, the "now" portion, tells the OS not to wait, but to do it now.


- pmcd - 2011-04-28

pumkinut Wrote:Create the file in your text editor of choice. Save it with a name, I called my reboot.sh and then make it executable with the following:
Code:
chmod +x <filename>
Substitute whatever you named your file for the <filename> part.

After that, I just added a favorite and navigated to wherever I saved reboot.sh and chose that. When I want to reboot the atv, I simply pull up my favorites, select the reboot script and voila.

[ ]

Thank you for the great explanation for this and the shutdown script. The shutdown script will also come in handy. For some odd reason I don't know how to add either as a favorite. If I try to add an addon then I can never navigate to the scripts folder ( wheer put the two files). When you say to add a favorite, do you mean "addon"?

philip

Edit: Ok, I used the file manager and added it to favorites. But the script doesn't seem to work. It seems to think that atv is a command.


- Hudson_Hawk04 - 2011-04-28

I am thinking very seriously about using this method on my ATV1 (I had no idea of the footprint difference) My question is in reguards to remotes, using the origional patchstick I am able to use my philips prestigo 8015 universal remote, I was wondering if I would be able to continue using this remote.