-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add automatic certificate generation for OneUI8 #65
base: main
Are you sure you want to change the base?
Conversation
For some reason, the image has python 3.6 and the library uses at least python |
I encountered the same errors. I don't know how to fix that. Maybe someone else has a answer to that |
…factor entrypoint.sh
I finally managed to get all things up and running. The last thing to do is to modify the Readme.md file accordingly to my changes. Maybe @Georift could help here. The new instrucitons to install the package autmatically to any Samsung TV is:
Example:
Wait until the server starts. The script will check every 5 seconds if the certificates are generated yet. Even if the script is not launched yet. So be patient, until there is a printed feedback from the script. Open: |
@Georift Nvm. I refactored the readme file. This pull request is ready for merging. |
@Georift Are you still maintaining this project? - Cause it looks like that you are very inactive. ^^ |
Hi. I pulled this down and built the docker image from the Dockerfile. I'm running the docker image on a headless server, which presents some problems. I can point my laptop browser at headless:7494/auth/start and I get to the first problem. It returns a JSON blob, instead of showing instructions. If I then visit the |
Actually this is the only thing where i can't actually help. As the generation script that i am using is from tizencertificates I experienced the same issue with the JSON blob. This occures because docker is not able to open a browser on the host machiene. Therefore you have to manually visit the side. A possible solution to this would be to directly return the Unfortunately i have to say that i am not responsible for you problem with your headless server, as the original script is not build to be run with a headless server. But we can come together and try to fix it together. |
Ah, no worries. I'd hoped you had a quick answer. I'm going to try and hack at it a bit and see if I can figure it out. |
If you find a solution i would be happy if you concider implmenting it into my PR |
Hey 👋 I just wanted to let you know that it worked fine directly from my laptop. I'll keep at it from the headless server, but I'm not optimistic. The Samsung page itself doesn't like non-full-browsers, so I don't think I'll get a curl solution (or similar) to work |
Running into an issue that I don't see documented in the Readme. Everything seems to work fine installing with the oneui8 steps but errors at the end with:
|
@Hippaduck
Are there any other log entrys that could be useful for debugging this issue? |
Jellyfin removed when the update happened and I can't find anywhere it may be installed still. The account is the same.
and the command I ran to kick it off
|
Hmm that is strange. I cannot identify any issues with the nstallation process here. Can you enter the container and check if the p12 certificates are in the right format? Get into the Containers Shell Check certs for expery date |
@Hippaduck @Epgenix When I got it to work, I used the email of my Samsung developer Account, not the email of the account signed into to the TV (which is my wife's). |
Interesting, i never had an Samsung Developer Account, i straightup used my normal Samsung Account. |
@Epgenix Dumb question, where do I get the device-id from? Is that the hostname of the TV? Might be worth putting in the readme |
Hmm seems to be the same issue as @Hippaduck had. Could you please check this Error and this one out. |
Ill rewrite th script oo that with |
The script improvements are ready. Let me know what you all think of this. Please feel free fo reach out if any errors occur. |
--get-device-id It gives me the model code of the TV. Is this correct?
I was able to complete the installation without any problems using the "Unique Device ID" value.
To avoid problems the correct value is: "Unique Device ID". |
Also if any issues occur check this out |
Not sure if anyone is still stuck with the |
Yeah that's probably also a thing that you want to do. As the default password is just a default password that i entered. |
Hi @Epgenix thanks for the PR. I'll try get some time to get this merged this weekend. |
I have an issue with the script hanging at
I doubt that this should take more than 20mins right? as instructed above, I entered the shell on the image and checked out The stdout/stderr produced by your scipt does not appear to complain about missing certificates so far. |
Please notice that the |
It's quiet intesresting that so many people experience different problems with the script. For me it just works out of the box. Probably you guys should really take a good look at the .md file and follow the instructions. If there are still some errors you can always message me on this. But most of these issues were just related to that you're were not following the instrucitons properly i guess. |
To follow up on the above: I did start the docker command with the -p option.
calling |
Hmmm. Could you probably add me on discord so i could take a close look at the hanging script. My discord handle is: epgenix |
thanks for offering support with this. I am not on discord and for now gave up on this. |
May I ask what exactly you mean by "setting a password"? Did you end up with certificates in your developer homedir eventually, and manually manipulated those to set a passwd? Or was is just a matter of using the The latter immediately spits out this and halts for me:
NB: I did create the docker image manually, as suggested by @Epgenix , and cloned his repo recursively, so I do have the tizen submodule ckecked out. |
The path is not wrong, as the script autmatically creates a symlink on the root directory to the And also the Again, here is a command chain that should work (at least for me it works): To build the container: To get the TV id: To install jellyfin on the TV: After that wait for the script to spit out that the script started. Then open That should be everything. I don't know why people struggle with this. The script works perfectly fine. |
In my case --get-device-id returns the TV model and not the "Unique Device ID". Maybe that's the error. |
Interesting, for me it returns the Unique Device ID |
Some feedback on this.
It is the only container running of this image and there were no complaints on stdedd over port bindings.
When I run a shell inside the image and run the script directly, I can access the httpserver ultimately from my browser outside the image. The furthest I got was to the point where the script ends with the error
that was discussed above. As ther users suggest, there appears to be a workaround with setting certificate passwords somehow. I would very much know how to do this exactly. Yo say above
This has not been the case for me, even when I got as far as the certificate format error above. I see that ther is a mkdir in the script, but it appears not to have run as far, and without stopping and printing on stderr. Clearly not as intended. I am happy to help debug but I do not know where to start looking. Again, thanks everyone! |
Maybe other TVs display different data?
|
Where the fuck do you get the When you have browser issues, just use a different one. Also your arguement:
Is clearly invalid, as i tested this script in a CLEAN install inside a Hypervisor Virtual Machiene. So this should work for everyone. And besides that, there were also people who successfuly ran the script. The the only conclusion is that there must be issues in the environment setup for everyone who is getting some errors. And also related to the symlink. These paths only get created when the certificate generation is completed successfuly. And last but not least. Yeah i can implement the |
Yep that is probably the issue |
I meant to say "4797". This was clearly a typo on your part: "Then open localhost:4797/auth/start on your browser where docker is running. " and I corrected it in case others stumble upon it.
You misunderstand: I do not have "browser issues", I merely wanted to make you, and others who potentially have related issues, aware that some browsers have this behaviour and it may be a source of issues.
Again, you've misunderstood: by "other setups" I meant hardware (yes, the TV), the type of developer account or authentification mechanism, and docker versions. You write "Hypervisor Virtual Machiene". These are words and I know some of them and know that others are probably misspelled. No bother, nobody is perfect. "there were also people who successfuly ran the script." That said, I do not doubt that there is something "wrong" on my end in the sense that clearly, I did not manage to successfully generate certificates and use them to sign and install stuff. Perhaps this is on me, but again, nobody's perfect. Have a great day. |
Probably you can try to invoke the tizencertificates script manually and generate a certificate out of it. The following command could be appended to the docker run command |
Great idea! I did something similar by running everything manually inside the image. Ultimately, the installation call to
On the webs I could only find solutions via some samsung device manager GUI, which I cannot run on my systems. |
@Epgenix Just want to add that i got your docker image working as well, but did also run across the problem where --get-device-id returns the TV model. |
Wow that is really interesting. The |
Hi, I almost got crazy with this. I had the same issue. After getting the image running, finding the correct Address for the certificate server I really want to thank everybody here who provided the solution. Now Jellyfin is working again, after two month of waiting. |
Originally posted by @Epgenix in #51
So i've been working in this for a few hours now (mostly figuring some things out)
This pull request is not tested yet, as i'm facing some issues with the building process of the Docker Image.
Docker is complaining that the version requested for fastapi is not existing. (It is)
I guess there is some work to do to get it up running.
But the idea is here, and maybe someone is picking up on this. I will definitely update this PR with some changes in the coming days.