Replies: 23 comments 22 replies
-
Hi Kevin, |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm not an experienced linux user, but I wanted to try and use a Pi4b to run jamulus as a portable alternative to my laptop. At the moment i'm struggling to even get my Presonus Audiobox USB 96 to even get connected to the Pi! Any library i need to install? libmtp perhaps? I'd love to hear any ideas :) Cheers, |
Beta Was this translation helpful? Give feedback.
-
I am seeing this same issue, but am an experienced Linux user, but not an
audio expert. I would be happy to help diagnose, maybe discuss in the
Slack channel?
Thanks,
Carlos
…On Thu, Jan 7, 2021 at 10:08 AM razze2006 ***@***.***> wrote:
Hello,
I'm not an experienced linux user, but I wanted to try and use a Pi4b to
run jamulus as a portable alternative to my laptop. At the moment i'm
struggling to even get my Presonus Audiobox USB 96 to even get connected to
the Pi!
I'm getting an endless cycle of the device being recognised and then found
not to be an MTP device and subsequentluy disconnected.
Any library i need to install? libmtp perhaps? I'd love to hear any ideas
:)
Cheers,
Marco
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKJTEZRHG5C3L4EF4W3SATSYX2AXANCNFSM4VH63KSA>
.
|
Beta Was this translation helpful? Give feedback.
-
The slack team I mentioned can be joined by following this link:
https://join.slack.com/t/jacktripcollaboration/shared_invite/zt-g3iz2nkh-d9tQeOZItS30SZUELaXf1A
The #jambox channel is where relevant discussion would be found.
Carlos
…On Thu, Jan 7, 2021 at 2:24 PM razze2006 ***@***.***> wrote:
I'll set up slack and try. Should there be a slack workspace i should be
able to join with the email I use to log into github? I'm in the uk, so
I'll have to wait until tomorrow to do it
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKJTE7OLJV732IXPW7P6JLSYYYBFANCNFSM4VH63KSA>
.
|
Beta Was this translation helpful? Give feedback.
-
Hello |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your answer in the middle of the night :-) |
Beta Was this translation helpful? Give feedback.
-
Which is correct image version? |
Beta Was this translation helpful? Give feedback.
-
Hi, we tested the jambox today with 4 raspberries to connect. But we had problems with Jamulus and with sonobus.
Maybe anybody has an idea? Many thanks :-) |
Beta Was this translation helpful? Give feedback.
-
@Ghost6772 Settings changes should save. If they aren't saving, try a different micro SD card. Another test: write something to a file, and make sure you can read it after a reboot. |
Beta Was this translation helpful? Give feedback.
-
I've had a Pi 4B kit for over a week and was struggling to get it to drive an old DVI monitor whose power supply I repaired just for this purpose and which worked up to a month ago with my laptop's HDMI port. No success there so I plugged it into the replacement monitor, installed Jamulus on Raspbian and tried to get it going. No luck sorting out Jack. So I finally read through the JamBox instructions and finally succeeded in flashing an image onto the 4GB card I pulled from my wife's defunct Kobo Reader. Fired it up and voila! JamBox sorted out the first audio interface I tried. More on that later. And noVNC/urlrelay works a charm on my pc but not my old iPad 2 nor the phones (screen too small). I imagine the iPad's browser does not support JavaScript. Thanks, Kevin! |
Beta Was this translation helpful? Give feedback.
-
Thank you, Kevin, I hadn't come across this super-useful tidbit anywhere,
and I have been studying up on amixer, because our group has a need to
control mic gain and/or volume, and I can imagine putting into some handy
scripts with a gui icon. I am going to work on this, so let me know if you
beat me to it. ;-)
Carlos
…On Tue, Feb 2, 2021 at 6:28 PM Kevin Doren ***@***.***> wrote:
@ve3meo <https://github.com/ve3meo> @CAguayo <https://github.com/CAguayo>
Even the cheapest USB Audio Interfaces can have internal controls and
switches that might be useful (sometimes a bewildering array of them)
They're not necessarily exposed through any GUI, but you might be able to
get to them via the "amixer" command.
For example, it might be possible to disable AGC. Here's a cheap one
(Sabrent I think, card 1 in this case) that has AGC:
# look for a control with "Auto" in the name
***@***.***:~ $ amixer -c 1 | grep Auto
Simple mixer control 'Auto Gain Control',0
# get the value of mixer control "Auto Gain Control
***@***.***:~ $ amixer -c 1 cget iface=MIXER,name='Auto Gain Control'
numid=9,iface=MIXER,name='Auto Gain Control'
; type=BOOLEAN,access=rw------,values=1
: values=on
# set "Auto Gain Control" off
***@***.***:~ $ amixer -c 1 cset iface=MIXER,name='Auto Gain Control' 0
numid=9,iface=MIXER,name='Auto Gain Control'
; type=BOOLEAN,access=rw------,values=1
: values=off
If you find the magic command that disables AGC, you could put it in
/etc/jackdrc.conf (that file is sourced so any commands in it are
executed). Then it will get executed whenever Jamulus starts or jack is
restarted.
The cheap audio interfaces typically have poor power supply filtering, and
the Pi has noisy power (Pi4 is better than Pi3). Trashy power + poor
filtering + mic preamp = noise problems.
Glad you found a use for your T41; I still have a couple of T40's lying
around, they were great laptops for their day.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKJTE6BKYSMLALQQ5TUC5TS5CYGBANCNFSM4VH63KSA>
.
|
Beta Was this translation helpful? Give feedback.
-
This discussion looks like it might be a bit old. We have been using Jamboxes for singings online a couple of times a week. We are looking to see if there might be a 64bit image available or information on how to load the necessary software on a 64bit Bookworm Pi. I am particularly interested at the moment in how to get the URLRelay feature working. P)lease advise if this is not the proper place to ask about this. Any assistance would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Many of us have been using Jamulus for shape note (Sacred Harp) singings since the beginning of the pandemic. We still me twice a week (and sometimes more). We have deployed several Jamboxes to the less computer capable singers in our community. (And, as you probably are aware, it is sometimes impossible to get Jamulus to run on some machines!) We are quite grateful for being able to do this! I recently thought I might try to build one without using the standard 1.5 image and immediately ran into issues. That has gotten me quite interested in the process of using the current 64bit version of the Pi OS.
Mind you, I am very computer literate both from a hardware and software standpoint. I have gotten more and more familiar with Linux by downloading about a dozen different flavors and installing Jamulus on them. I now have a version of Wubuntu that will run quite well booted from a thumb drive. However, I am relatively a Linux newbie.
I usually try to access the systems that I am running (even my multiple home, mostly Windows, machines on multiple floors of the house) with some flavor of VNC. (I usually use UltraVNC.) On the Linux machines, I have found KRFB to be the most consistent server. I have run my Jamboxes headless and really like the ability to access them from a browser! I am not sure how whatever VNC version on the 1.5 image communicates with noVNC but would love to try to understand that. (Does it have something to do with PiConnect?) I assume that the version of RealVNC that is on that image must be an older edition. I have tried installing the new RealVNC server version on my current Pi and it seems to require the viewer to also use RealVNC viewer. I would prefer not to have to install client viewer software.
Are there any instructions that you can point me to on how to implement the noVNC connection to the urlrelay.com service, I would much appreciate it. Is AWS Amazon Web Service? Is that something for which you pay? Can you tell if it is still getting much use?
From the work I have done on Linux, I also understand that installing Jamulus and Jack and whatever dependencies they have on the Pi probably is going to be challenging. Other than those and perhaps the volume control app, I am not sure what might lurk in the bowls to trip me up. But I have already had many challenges – how else do we learn? The Pi was introduced as a learning tool!
Thank you so much for your reply and any further assistance you may be able to provide.
RT
From: Kevin Doren ***@***.***>
Sent: Saturday, October 19, 2024 1:18 PM
To: kdoren/jambox-pi-gen ***@***.***>
Cc: rtrial ***@***.***>; Mention ***@***.***>
Subject: Re: [kdoren/jambox-pi-gen] Welcome to jambox-pi-gen Discussions! (Discussion #1)
@rtrial <https://github.com/rtrial> Thanks for the question! (Although FYI it's best to start a new discussion or open a new issue, rather than resurrect a 4 year old discussion).
What is the reason that you want a 64-bit Bookworm version? Are you adding additional applications?
The existing (but old) release is still functional AFAIK. There are still quite a few users, although it's way down from the peak during the pandemic.
I was at one point building under Debian Bullseye (still using 32 bit because that was RPi default at the time). The main thing I was working on was using pipewire to route audio instead of jack. This worked but didn't add any new functionality for the jamming use case. So I never released it.
It would be quite a bit of work for me to build and test a Bookworm release. I'm not currently inclined to do that unless there is significant demand for it.
The urlrelay functionality is itself fairly simple on the RPi side (it registers its internal url with urlrelay.com at startup and again every 24 hours). However it does require noVNC to be running to make the RPi gui web-accessible on your local network.
The urlrelay.com service runs in AWS and is all serverless, so it costs me almost nothing to run. I intend to keep it running as long as anyone is using it.
* Kevin
—
Reply to this email directly, view it on GitHub <#1 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6CGDPK2GQFOTTMKT523TMDZ4KH6BAVCNFSM6AAAAABP7OMVACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJZGI2DAOI> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/A6CGDPMLGMQSVPNESUTULHDZ4KH6BA5CNFSM6AAAAABP7OMVACWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAU65RS.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your kind reply. Since I received this, I have had some health issues (a cardio ablation to correct ventricular tachicardia). I am doing well now and hopefully, that is behind me. Consequently, I have not done much with my project.
I have run stage3/07-install-boot-script/01-run.sh but there is obviously more needed. That seems to have installed some, or perhaps all, of URLRelay. The only thing that seems to have changed is that I am now having to provide a password when I reboot.
I have found what appears to be the NoVNC portion, or at least some part of it, in stage03/ 04-install-sw/02-run.sh. I may try to run that next.
My question to you now is, might I consider running all of stage3? might that install all of the apps and adjust configurations? how do I do that?
Your reply is much appreciated.
RT
From: Kevin Doren ***@***.***>
Sent: Tuesday, October 22, 2024 5:23 AM
To: kdoren/jambox-pi-gen ***@***.***>
Cc: rtrial ***@***.***>; Mention ***@***.***>
Subject: Re: [kdoren/jambox-pi-gen] Welcome to jambox-pi-gen Discussions! (Discussion #1)
@rtrial <https://github.com/rtrial> The jambox-pi-gen repo is a fork of Raspberry Pi's pi-gen, its function is to create a pre-configured ISO file that can be flashed onto an SD card. In the jambox case, it installs and configures everything, including noVNC, the jamming apps, and setting all the configurations properly. Under Buster and Bullseye, it also installed a low-latency kernel (might not be necessary on Bookworm which uses a low-latency kernel by default).
You could accomplish similar by manually configuring a stock Raspberry Pi OS image and then cloning it, this is what most people do. The downside of this is that for a complex configuration, you'll have a lot of trouble replicating what you did unless you take really good notes and follow them precisely. With the pi-gen approach, I could change configurations, push a button, and easily generate a new image. Which made it very easy to experiment.
To see the steps I used, the jambox pieces are under the "stage3" directory of this repo. I suggest you look at the "jambox-pw" branch, which works but was never released. It's for Debian Bullseye but it uses pipewire for audio routing which is now the default used by Bookworm. Pipewire is better than jack but maintains a jack interface for compatibility.
The apps and kernel were installed from .deb packages from my apt repo (which serves Buster and Bullseye, but not yet Bookworm). If the only app is Jamulus, and you're using the stock kernel, you wouldn't need that, you could just use the default debian repos.
noVNC is the magic required to run the GUI in a web browser without installing a client. noVNC has a mini-HTTP server that loads a javascript VNC client into the user's browser, then connects to the Pi's VNC server over a websocket. This requires "websockify" to be installed and running on the RPi to bridge them together. Look at stage3/04-install-sw/02-run.sh for installation details.
The urlrelay systemd service is installed in stage3/07-install-boot-script/01-run.sh (with files in stage3/07-install-boot-script/files/ )
The urlrelay web service runs in AWS; I pay for this but it's all serverless so it costs very little money. It's essentially free except for the domain name and DNS zone, so maybe $25/yr for urlrelay.com and another $25/year for jambox-project.com which is for my apt repo (and maybe a website at some point).
At the peak there were over 1000 jamboxes out there, all over the world, around 2/3 in Europe. It's down to a bit over 100 and holding steady these days.
A lot of the work for Jambox was making it easy to use for non-technical end users and people like you who are helping them. This includes the urlrelay service and noVNC for web browser GUi access without installing anything or knowing the RPi's IP address (although in many cases you may also be able connect to the RPi via a .local DNS name without using urlrelay). Also things like the application start scripts that run by clicking an icon, which set up and tear down the jamming apps.
Much work for Jambox was also testing to get the configuration optimized for reliable operation for jamming while minimizing latency. Also testing with various RPi and audio hardware, and stability testing. For me to do a Bookworm release, it would be quite a bit of implementation and debug/testing work, which I'm not inclined to do right now, especially if the end result did pretty much the same thing, but under Debian Bookworm.
My general advice is that if the existing jambox image still does the job for you, save yourself some pain and keep using it. Unless of course you like a challenge and want to use it as a learning experience. If that's the case, have fun.
…-Kevin
—
Reply to this email directly, view it on GitHub <#1 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6CGDPLBFULCGSLS7RRYBLDZ4YKO7AVCNFSM6AAAAABP7OMVACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBRGQ4DAMI> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/A6CGDPOCMUBDAHXJZ3UEP63Z4YKO7A5CNFSM6AAAAABP7OMVACWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAVAJJC.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
@rtrial the scripts in stage3 are meant to be run by the pi-gen process, which sets up and understands the context. Pi-gen is somewhat complex. The jambox-pw branch was working under Debian bullseye, but would need some work to get it running under bookworm. I pointed you to them to use as a guide to manually modifying a bookworm installation. You only need the primarily the Jamulus app which should be available in the rpi bookworm repo. The scripts and config files for installing noVNC and websockify should work but may need some modifications to be run outside of pi-gen. I would suggest starting with a stock bookworm image, then try to get noVNC and websockify working. You can use my scripts as a guide but there is also info available online. You don't need urlrelay to test noVNC, if it's working you should be able to connect to its IP address on port 6080 I think. And with many routers you could connect to .local:6080 without even knowing the IP. There is code there to set a VNC password from an encrypted environment variable. But you could just set the password manually by command, I think it's vncpasswd. Once you get noVNC working, you can try adding urlrelay if you want (but you may not need to if you can use hostname.local). That is relatively simple and requires installing the script, config, and systemd unit files, and enabling it to start on boot. It registers its local url with my urlrelay web service, then re-registers every 24 hours. You can also inspect these files on an existing jambox. |
Beta Was this translation helpful? Give feedback.
-
I have struggled to make some progress with NoVNC. I have managed to get it and websockify installed and they appear to be running properly. I do get a Connect screen when I go to URLRelay.com/go however. When I click “Connect" it comes back saying “Connecting” and then an error screen with no indication of what the error might be:
I am running RealVNC server on the Pi with wayland. I am able to connect remotely with both Pi Connect and also UltraVNC (although only one seems to work at a time).
I must be getting close to having this work. Any suggestions/recommendations would sorely be appreciated.
Also, if you could suggest how I can make the ./novnc_proxy start when I reboot, that would be appreciated. Please remember that I am a relative unix newbie.
RT
From: Kevin Doren ***@***.***>
Sent: Friday, November 22, 2024 7:11 AM
To: kdoren/jambox-pi-gen ***@***.***>
Cc: rtrial ***@***.***>; Mention ***@***.***>
Subject: Re: [kdoren/jambox-pi-gen] Welcome to jambox-pi-gen Discussions! (Discussion #1)
@rtrial <https://github.com/rtrial> the scripts in stage3 are meant to be run by the pi-gen process, which sets up and understands the context. Pi-gen is somewhat complex. The jambox-pw branch was working under Debian bullseye, but would need some work to get it running under bookworm.
I pointed you to them to use as a guide to manually modifying a bookworm installation. You only need the primarily the Jamulus app which should be available in the rpi bookworm repo.
The scripts and config files for installing noVNC and websockify should work but may need some modifications to be run outside of pi-gen.
I would suggest starting with a stock bookworm image, then try to get noVNC and websockify working. You can use my scripts as a guide but there is also info available online.
You don't need urlrelay to test noVNC, if it's working you should be able to connect to its IP address on port 6080 I think. And with many routers you could connect to .local:6080 without even knowing the IP.
There is code there to set a VNC password from an encrypted environment variable. But you could just set the password manually by command, I think it's vncpasswd.
Once you get noVNC working, you can try adding urlrelay if you want (but you may not need to if you can use hostname.local). That is relatively simple and requires installing the script, config, and systemd unit files, and enabling it to start on boot. It registers its local url with my urlrelay web service, then re-registers every 24 hours. You can also inspect these files on an existing jambox.
—
Reply to this email directly, view it on GitHub <#1 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6CGDPMHILGVJA2IWMLXPHL2B4NN3AVCNFSM6AAAAABP7OMVACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZUHA2DEOI> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/A6CGDPNYU3XJAXLDY7MUKTL2B4NN3A5CNFSM6AAAAABP7OMVACWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAVUU42.gif> Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi @rtrial , Sorry to go dark on you, I was traveling for a while. If you get the "connect" button, but the button doesn't work, consider the following: Working system requires VNC server, NoVNC, and websockify, all working together.
I hope this helps, -Kevin |
Beta Was this translation helpful? Give feedback.
-
Thank you for getting back to me. I went a little dark over the holidays also. Once I got back to it a week or so ago, I have had some moderate success.
I have all three of the things you mention running. NoVNC and websocify were installed and set up per your instructions. The VNC server has been the issue. I have tried RealVNC with no luck. I have finally resorted to WayVNC server. (Apparently, the VNC protocol has been enhanced and functions a bit differently.)
I struggled with it for a while but got a tip from someone on a Google group related to NoVNC pointing me to here: How to connect to Raspberry Pi Desktop using wayvnc VNC Server <https://www.claudiokuenzler.com/blog/1385/how-to-connect-raspberry-pi-bookworm-desktop-vnc-wayvnc> suggesting that there was an issue with certification. Once I removed the "enable_auth=true" line from the config file, NoVNC worked!!!
However, unfortunately, it seems to be unsecured and I get the attached messages from RealVNC and UltraVNC viewers. I am not concerned about encryption, but none of the viewers prompt for credentials any longer. This is not acceptable for any device on my network. I am trying to find out if there is some way to require at least password verification without enable_auto=true?
Probably not something you are familiar with but you may have some insight.
Any thoughts or suggestions are welcome.
RT
From: Kevin Doren ***@***.***>
Sent: Monday, January 20, 2025 5:23 AM
To: kdoren/jambox-pi-gen ***@***.***>
Cc: rtrial ***@***.***>; Mention ***@***.***>
Subject: Re: [kdoren/jambox-pi-gen] Welcome to jambox-pi-gen Discussions! (Discussion #1)
Hi @rtrial <https://github.com/rtrial> ,
Sorry to go dark on you, I was traveling for a while.
If you get the "connect" button, but the button doesn't work, consider the following:
Working system requires VNC server, NoVNC, and websockify, all working together.
1. Check that a VNC server is running on your Pi. You should be able to test it using a standard VNC client to connect to your pi's IP address using the standard VNC port of 5900.
2. NoVNC runs an http server on port 6080, which loads a javascript VNC client into your web browser, but that is likely working if you get the NoVNC screen and the connect button.
3. It the above 2 things are both working, problem is likely with "websockify" (not installed, not running, or not configured correctly). A web browser is not allowed to directly open a VNC connection, that would be a security problem. Web browser is only allowed to open a websocket connection. Websockify runs on the pi, and functions as a bridge. It accepts a websocket connection on port 6080, and sends the data to/from the pi's VNC server on port 5900. If this isn't working, I expect you'd see the behavior you describe.
I hope this helps,
…-Kevin
—
Reply to this email directly, view it on GitHub <#1 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6CGDPK4TO3I4CCO5CEVNNL2LTE7LAVCNFSM6AAAAABP7OMVACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBYHA4DQMI> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/A6CGDPOJ7QIWDSCNI34YZSL2LTE7LA5CNFSM6AAAAABP7OMVACWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAWVUPC.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
I have reinstated RealVNC server on the Pi and am able to access it remotely from RealVNC and UltraVNC remote clients. I am no longer able to get at it with Pi Connect and still unable to access it with NoVNC.
I have been unable to locate the vncserver-x11 file to make your recommended config settings. Do I need to create a config file or a vncserver-x11 file as below?
RT
From: Kevin Doren ***@***.***>
Sent: Monday, January 20, 2025 3:02 PM
To: kdoren/jambox-pi-gen ***@***.***>
Cc: rtrial ***@***.***>; Mention ***@***.***>
Subject: Re: [kdoren/jambox-pi-gen] Welcome to jambox-pi-gen Discussions! (Discussion #1)
On jambox image I used realvnc-vnc-server.
Config file /root/.vnc/config.d/vncserver-x11 contains:
Authentication=VncAuth
Encryption=PreferOff
Password=70dc86dbbe2f1bc7
NoVNC will normally prompt for a password, unless you give it one in the URL (with ?password= at end of url). urlrelay supplies the URL to your browser, it's whatever url the pi registered with urlrelay. Jambox defaults to including the password, to simplify operation for users. But you can change that in file /etc/urlrelay/urlrelay.conf by commenting out URL_ARGS
Running VNC secured requires TLS connection with trusted certificate. This protects against a bad guy from sniffing the traffic and seeing the data or reading the password. This could be an issue for VNC traffic routed over the internet, but it's simply not a problem for VNC traffic confined to your local network (and jambox firewall will refuse traffic from outside your local network).
There are 3 connections involved. The browser connects to the pi on port 6080 (currently via HTTP, but could be secured with HTTPS). Then the browser opens a websocket to websockify on the pi using port 6080. Then websockify on the pi opens a VNC connection to VNC server on the pi using port 5900.
Securing connections requires a trusted certificate (otherwise you might be sending encrypted data to a bad guy). On the internet, certificates for domain names are signed by a trusted Certificate Authority (CA). But you can't do that when connecting to an IP address on your local network. TLS on local network requires creating a private CA and self-signed certificate, then adding your private CA to the trusted CA store (on the pi for the NoVNC/websockify, and on user's PC for the web browser-to-pi connection. While this can be done, there's no benefit to doing it. There's zero chance that there's a bad guy on your local network sniffing the VNC traffic so they can break into your pi via VNC.
…-Kevin
—
Reply to this email directly, view it on GitHub <#1 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6CGDPPIYCY2VVHGFGQRBMD2LVI3BAVCNFSM6AAAAABP7OMVACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBZGQ3TQMY> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/A6CGDPMJT5RJCI4DZRYFAJL2LVI3BA5CNFSM6AAAAABP7OMVACWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAWV776.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
I have finally gotten noVNC to work on my Bookworm! For some reason the user ID on the new image was “Pi” instead of “pi”. There were a couple of instructions in the script that I had to decipher (especially the [[). It was key to create the vncserver-x11 file and give it the encrypted password. It has been quite a learning exercise so far. With the assistance of a friend, I managed to get it working. A couple of questions:
How did you get the encrypted password for “jambox” (70dc86dbbe2f1bc7)? When I run the echo jambox | vncpasswd -print command, I get a very long different encryption.
Going to urlrelay.com/go brings up the “Connect” page. What causes that? How does it work?
Is it not necessary to install the components for urlrelay? As far ask I know, I did not run the urlrelay.sh.
Will I still be able to use urlrelay.com/go to get to noVNC on a different local network?
Again, thank you for your patience.
RT
From: Kevin Doren ***@***.***>
Sent: Wednesday, January 22, 2025 6:08 AM
To: kdoren/jambox-pi-gen ***@***.***>
Cc: rtrial ***@***.***>; Mention ***@***.***>
Subject: Re: [kdoren/jambox-pi-gen] Welcome to jambox-pi-gen Discussions! (Discussion #1)
I haven't used Pi Connect. But I would caution against exposing your Pi or anything else on your network to the open internet without careful consideration of security. I don't know if Pi Connect can interfere with VNC, but I'd suggest disabling it. FYI with the Jambox image, the only unsolicited internet traffic allowed through the firewall is for jamming server UDP traffic (only used if someone runs a jamming server on the pi).
VNC on jambox is installed and configured by this file:
https://github.com/kdoren/jambox-pi-gen/blob/jambox/stage3/04-install-sw/02-run.sh
It creates the directory for the config file if it doesn't exist, then creates the file. You need to be root or use sudo to see or create it.
I believe the directory exists, but the file doesn't, although I'm not certain. Also this is for Debian Buster, so there's a chance that something has changed on later releases (although I'm guessing it has not changed).
If you can connect to VNC with VNC client, and you can also get the noVNC screen and connect button from your browser, the problem is likely websockify. It needs to be installed in as part of noVNC. If noVNC is installed in /usr/local/noVNC, then websockify would be in /usr/local/noVNC/utils/websockify. If it's not there, you should be able to copy and paste the second "git clone" commands (assuming ROOTFS_DIR is undefined).
…-Kevin
—
Reply to this email directly, view it on GitHub <#1 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6CGDPKMMZIF5OMIT6ALSMT2L532LAVCNFSM6AAAAABP7OMVACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJRGUYDSMY> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/A6CGDPPSPBPE3BUQSNVG4ZT2L532LA5CNFSM6AAAAABP7OMVACWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAWXHVK.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick response.
That explains why the encrypted passwords that was generated when I ran
vncpasswd was so different. The encrypted password (70dc86dbbe2f1bc7) that
is in the description of the script seems to work well. So, assuming it
will continue to work, I will stick with it.
Thank you for the explanation of how Urlrelay works and what it does. I
definitely have not run the urlrelay. sh script on the Bookworm Pi image. I
do however still regularly (at least twice a week) use the same Pi box
booted from a µSD with your original old image to sing online. I am sure
that the urlrelay server must still be using my same local IP address to
reroute when I boot the Bookworm SD. That does not change when I switch SD
cards and OS when using the same Pi hardware. Now I will have to run the
script on the Bookworm. Might there a way to de-register the IP address
from the urlrelay server?
Another question: Do you have a suggestion/recommendation on how to make an
ISO image of the SD card to share when I have something stable? (Remember,
I am a strong Windows user, but not so strong on the Unix side.)
Much appreciated.
RT
From: Kevin Doren ***@***.***>
Sent: Thursday, February 6, 2025 5:40 AM
To: kdoren/jambox-pi-gen ***@***.***>
Cc: rtrial ***@***.***>; Mention ***@***.***>
Subject: Re: [kdoren/jambox-pi-gen] Welcome to jambox-pi-gen Discussions!
(Discussion #1)
The vncpasswd program has been updated in bookworm, to increase security, so
the encryped password now defaults to a longer/stronger cipher. You can
force the old behavior with the -legacy argument .
echo "my-password" | vncpasswd -legacy -print
There is a urlrelay service that runs on the PI. Its function is to tell the
cloud service the local URL of your PI. It does this at boot, and again
every 24 hours. Registrations are deleted after 30 days if not refreshed.
Files to install it are here:
https://github.com/kdoren/jambox-pi-gen/tree/jambox/stage3/07-install-boot-s
cript
I'm guessing you ran at least once, otherwise you would have gotten an error
message from urlrelay.com.
When your browser connects to your Pi on http port 6080, it's connectting to
a mini http server on your PI that noVNC uses to load your browser tab with
a javascript VNC viewer, then it displays the "Connect" button. When you
press connect, your browser opens a websocket connection to websockify
running on your PI, which is how the javascript VNC client in your browser
can communicate with the VNC server running on your PI.
The urlrelay service on your pi periodically sends its local URL on your LAN
up to the urlrelay.com service in the cloud. The cloud service can see the
source (external) IP address of your home router, which becomes the database
key for the local URL. When you visit urlrelay.com/go from a browser on the
same local network, urlrelay.com uses the same source IP to lookup the local
URL, and sends that URL to your browser with a 302 redirect, which then
connects to the PI.
If you take your box to a different local network, urlrelay service on your
pi will register its new local URL under its new external IP, so it will
work. When you return to your original network, it will work again there
too. Of couse, your pi is only accessible from its same local network; you
can't access a box on a different local network.
…-Kevin
�
Reply to this email directly, view it on GitHub
<#1 (comment)
80389> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6CGDPN5DD2HJDHDDD6T4RL2O
M3YRAVCNFSM6AAAAABP7OMVACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTE
MBYGAZTQOI> .
You are receiving this because you were mentioned.
<https://github.com/notifications/beacon/A6CGDPN6DI6OD6EKDV6LXP32OM3YRA5CNFS
M6AAAAABP7OMVACWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3T
UL5UWJTQAXBKQK.gif> Message ID: <
***@***.***
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I believe the easist way to clone a card is with the raspberry pi imager: Normally you don't need to delete a registration with urlrelay.com (you either update them for new local URL or ID, or let them expire after 30 days). However there is an API to do that if you want.
This needs to be called from the same local network as the entry you want to delete. You'll need the urlrelay id of your box, which defaults to 1 unless you change it. You'll also need the MAC address. You can see this (as "ether" under the ethernet interface if you run ifconfig). To do this programmatically: in urlrelay.sh, the MAC address is found as follows:
you can also get the NODE_ID as follows
Then you can call the delete API from command line, or construct a URL to paste into a browser:
|
Beta Was this translation helpful? Give feedback.
-
Again, thank you.
As I said before I am a rather experienced Windows user. I almost religiously and regularly use Macrium Reflect and swear by it. However, it does not clone or image USB devices, In searching for ways to copy the Pi SD cards, I came across several suggestions.
I tried DD and found it very difficult to interpret and understand but, with the help of a friend did get an image.
I used Win32Disk Imager to not only create an image but also burn it as well as the DD image to a second SD and third card. (That was not quite intuitive either but is rather straightforward once you figure out what to tell it.) Rufus may also burn the image to an SD card but I haven’t tried that – yet.
The third thing I have tried is using the Pi SD Card Copier accessory which even cloned the card I was booted from (not sure that is necessarily a wise thing to do, but it did work.)
As far URLRelay is concerned, my friend has also suggested an alternative which seems to be working quite well to get access to the Pi with noVNC using a browser on another computer in the same network as the Pi! Instead of going to the web browser address “urlrelay.com/go” we have used <networkname>:6080 which returns the VNC Connect screen prompt and then a prompt to enter the password. We can also get there and avoid the password prompt by using <networkname>:6080/?password=<password>. The one issue we have run into with this method is when there might be multiple jamboxes on the same network. The workaround would be to boot each one individually and change the System hostname with the Raspberry Pi Configuration accessory/utility (to something unique like Jambox1…).
My next attempt will be to install Jamulus and the other components that may be required. I don’t think I will need all of the apps that you have, I do think the volume control will be needed. Any suggestions on that would be appreciated.
By the way, where are you located? What instrument do you play? Do you still use Jamulus to play?
Fun and games!
RT
From: Kevin Doren ***@***.***>
Sent: Thursday, February 6, 2025 10:23 PM
To: kdoren/jambox-pi-gen ***@***.***>
Cc: rtrial ***@***.***>; Mention ***@***.***>
Subject: Re: [kdoren/jambox-pi-gen] Welcome to jambox-pi-gen Discussions! (Discussion #1)
I believe the easist way to clone a card is with the raspberry pi imager:
https://www.kevsrobots.com/learn/docker_swarm/02_cloning-raspberry-pi-os.html
Normally you don't need to delete a registration with urlrelay.com (you either update them for new local URL or ID, or let them expire after 30 days). However there is an API to do that if you want.
https://urlrelay.com/delete?id=1 <https://urlrelay.com/delete?id=1&macaddr=aa.bb.cc.dd> &macaddr=aa.bb.cc.dd
This needs to be called from the same local network as the entry you want to delete.
You'll need the urlrelay id of your box, which defaults to 1 unless you change it.
You'll also need the MAC address. You can see this (as "ether" under the ethernet interface if you run ifconfig).
To do this programmatically:
in urlrelay.sh, the MAC address is found as follows:
# get route info for interface used to get to internet
IP_ROUTE=`ip -o route get to 8.8.8.8`
# extract the source IP and device name
MY_IP=`echo "$IP_ROUTE" | sed -n 's/.*src \([0-9.]\+\).*/\1/p'`
MY_INTF=`echo "$IP_ROUTE" | sed -n 's/.*dev \([a-zA-Z0-9:-]\+\).*/\1/p'`
# lookup the MAC address
MACADDR=`cat /sys/class/net/$MY_INTF/address`
you can also get the NODE_ID as follows
if [ -f /etc/urlrelay/urlrelay.conf ]; then
source /etc/urlrelay/urlrelay.conf
fi
[[ -z "$NODE_ID" ]] && NODE_ID=1
Then you can call the delete API from command line, or construct a URL to paste into a browser:
curl -s "https://urlrelay.com/delete?id=${NODE_ID} <https://urlrelay.com/delete?id=$%7bNODE_ID%7d&macaddr=$%7bMACADDR%7d> &macaddr=${MACADDR}"
—
Reply to this email directly, view it on GitHub <#1 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6CGDPKBJ5F5XPEL5DQUOLT2OQRIHAVCNFSM6AAAAABP7OMVACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMBYHEZDSNY> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/A6CGDPNDUWDKFG6ZVIOMFID2OQRIHA5CNFSM6AAAAABP7OMVACWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAXB35C.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions