Go to advanced search

by knute
Fri Feb 21, 2020 9:04 pm
Forum: Raspbian
Topic: Apache2 & CGI Setup
Replies: 4
Views: 100

Re: Apache2 & CGI Setup

So enabling CGI is very simple with current apache. You don't need to edit ANY files. Just run the command: sudo a2enmod cgid Next put your CGI files in the /usr/lib/cgi-bin directory. They need to be executable by www-data. That's it! I would guess that your 500 error is caused by some permission p...
by knute
Thu Feb 13, 2020 3:42 am
Forum: Networking and servers
Topic: Hosting Multiple Websites on RPi 4 - Help Needed
Replies: 3
Views: 164

Re: Hosting Multiple Websites on RPi 4 - Help Needed

I have website1.com inside of "/var/www/website1.com/public_html/index.php" and I have website2.com inside of "/var/www/website2.com/public_html/index.php" "<VirtualHost *:80> ServerAdmin admin@Website1.com ServerName Website1.com ServerAlias www.Website1.com DocumentRoot /var/www/Website1/public_h...
by knute
Sun Feb 09, 2020 3:02 am
Forum: Networking and servers
Topic: Can't ssh into raspberry pi from internet unless 0.0.0.0 Listen address is in sshd_config
Replies: 16
Views: 848

Re: Can't ssh into raspberry pi from internet unless 0.0.0.0 Listen address is in sshd_config

Two NICs? /etc/hosts has no 205. address?

You don't need the two Port ### lines if you have the ListenAddress lines with the same ports. I want to see ip a too.
by knute
Fri Feb 07, 2020 3:54 pm
Forum: Java
Topic: Terminal printing over JavaFX application
Replies: 3
Views: 3389

Re: Terminal printing over JavaFX application

Post an SSCCE and I'll look at the problem for you.
by knute
Thu Feb 06, 2020 2:11 am
Forum: Advanced users
Topic: USB WiFi hangs intermittently
Replies: 0
Views: 80

USB WiFi hangs intermittently

I've got a Pi2B with a USB WiFi dongle that hangs up every now and then. I originally thought it was the Pi dying but the WiFi dongle goes deaf. If I pull it out of it's socket and put it back my Pi is back up and running just fine. Is there a way to power cycle the USB ports with software so I can ...
by knute
Thu Feb 06, 2020 1:57 am
Forum: Troubleshooting
Topic: RPi4 - serious (UDP) network issues
Replies: 11
Views: 420

Re: RPi4 - serious (UDP) network issues

Anyhow. Which buffers did you change to what size? We've got about 200 NUCs running Xubuntu 18.04. We send them a lot of UDP datagrams. For those we created a file 80-sysctl.conf in /etc/sysctl.d. In that we put: net.core.rmem_max=4194304 This improved the lost packet situation for us. I've seen fo...
by knute
Wed Feb 05, 2020 3:49 pm
Forum: Beginners
Topic: Building a small Raspberry Pi phone
Replies: 10
Views: 426

Re: Building a small Raspberry Pi phone

AJ Hunter wrote:
Wed Feb 05, 2020 10:20 am
Well i am basically going for a VoIP solution
Take a look at the intercom code I wrote for the Pi, http://knutejohnson/pi. It is basically VoIP. You could cludge up an old phone handset with a USB mic and speaker.
by knute
Wed Feb 05, 2020 3:39 pm
Forum: Troubleshooting
Topic: RPi4 - serious (UDP) network issues
Replies: 11
Views: 420

Re: RPi4 - serious (UDP) network issues

Don't know if this will help you but we found that increasing the receive buffer size significantly reduced the number of lost UDP packets.
by knute
Wed Feb 05, 2020 3:30 pm
Forum: Java
Topic: Install OpenJFX 13 on Raspberry Pi 3B and Raspbian
Replies: 4
Views: 257

Re: Install OpenJFX 13 on Raspberry Pi 3B and Raspbian

I'm sorry, I really don't know anything about Maven or even what it does.
by knute
Tue Feb 04, 2020 10:06 pm
Forum: Java
Topic: How to install jre / jdk on RPi zero
Replies: 2
Views: 240

Re: How to install jre / jdk on RPi zero

That problem had me going for some time. The OpenJDK 11 in the repository won't run on a Pi 0 or 1. I think you can still install JDK 8 from the repository and get it to work but the best answer is to download the Zulu OpenJDK for Arm from azul.com. Azul has both a JDK 8 and JDK 11 available for the...
by knute
Tue Feb 04, 2020 7:21 pm
Forum: Java
Topic: Install OpenJFX 13 on Raspberry Pi 3B and Raspbian
Replies: 4
Views: 257

Re: Install OpenJFX 13 on Raspberry Pi 3B and Raspbian

You can't get it from the repository but you can download it from https://gluonhq.com/products/javafx/ or you can get a complete JDK from BellSoft, https://bell-sw.com/ with their version of JavaFX. They have three versions available, I like the full version that includes JavaFX and the DeviceIO API...
by knute
Thu Jan 30, 2020 9:06 pm
Forum: Troubleshooting
Topic: Apache Update
Replies: 3
Views: 383

Re: Apache Update

creative-2008 wrote:
Thu Jan 30, 2020 8:56 pm
What am I missing? Is it that I don't have the latest version of Raspbian, and I can't update Apache without updating that first.
Most likely. My Raspbian Buster is up to date and I have apache version 2.4.38.
by knute
Tue Jan 28, 2020 10:21 pm
Forum: Raspbian
Topic: Apache2 website permissions???
Replies: 4
Views: 221

Re: Apache2 website permissions???

The permissions for apache can drive you crazy. The thing to remember is that apache runs as www-data and needs to be able to read HTML files. They can be owned by anybody as long as they are readable by www-data. Usually this means world readable. The directory /var/www/html is owned by root and of...
by knute
Thu Jan 23, 2020 3:35 pm
Forum: Deutsch
Topic: DHT22 am Raspberry
Replies: 2
Views: 254

Re: DHT22 am Raspberry

http://pi.knutejohnson.com

You will have to translate it, sorry.
by knute
Sat Jan 11, 2020 10:40 pm
Forum: Beginners
Topic: trying to write java code on my rpi 3 b+
Replies: 4
Views: 373

Re: trying to write java code on my rpi 3 b+

Install openjdk-11-jdk and openjdk-11-doc. Test it with: pi@raspberrypi3B-1:~ $ java -version openjdk version "11.0.5" 2019-10-15 OpenJDK Runtime Environment (build 11.0.5+10-post-Raspbian-1deb10u1) OpenJDK Server VM (build 11.0.5+10-post-Raspbian-1deb10u1, mixed mode) Then try running a simple Java...
by knute
Thu Jan 02, 2020 4:44 pm
Forum: Networking and servers
Topic: [SOLVED] Apache2 multiple VHosts on LAN not working
Replies: 5
Views: 372

Re: Apache2 multiple VHosts on LAN not working

If you can resolve the host names from your PC it will work fine. And yes adding a name to /etc/hosts works. You are going to have to have different host names for the different VirtualHosts no matter how you do it. One of those can be the IP address.
by knute
Thu Jan 02, 2020 2:54 am
Forum: Networking and servers
Topic: [SOLVED] Apache2 multiple VHosts on LAN not working
Replies: 5
Views: 372

Re: Apache2 multiple VHosts on LAN not working

192.168.3.13/forum is not a fully qualified domain name so that won't work. Say your domain name is www.example.com and the IP is 123.123.123.123. You could have a server name of www.example.com and an alias of 123.123.123.123 and all of the documents served up whether with a http://www.example.com ...
by knute
Thu Jan 02, 2020 2:37 am
Forum: Java
Topic: Desktop indicators bleed through JavaFX
Replies: 23
Views: 7073

Re: Desktop indicators bleed through JavaFX

Thanks, I'll check it out.
by knute
Wed Jan 01, 2020 11:32 pm
Forum: Troubleshooting
Topic: ftp help
Replies: 1
Views: 141

Re: ftp help

I'm curious what is it that you want to administer with this GUI?
by knute
Wed Jan 01, 2020 11:14 pm
Forum: Other projects
Topic: Making an avionics package for far 103 aircraft.
Replies: 12
Views: 765

Re: Making an avionics package for far 103 aircraft.

This discussion got me all excited about making airplane instruments. So I made a gyro compass display for fun. It is written in Java. I don't like the airplane but it's OK for this. import java.awt.*; import static java.awt.RenderingHints.*; import java.awt.event.*; import java.awt.geom.*; import j...
by knute
Tue Dec 31, 2019 4:23 pm
Forum: Other projects
Topic: Making an avionics package for far 103 aircraft.
Replies: 12
Views: 765

Re: Making an avionics package for far 103 aircraft.

Disregarding the question of why you would want to do this; there is no airspeed input. I think the other instruments could be created from the data provided. It is not clear to me what a 10dof is however? I don't know enough about how the gyroscopes in this work to know if it is possible to get a g...
by knute
Sun Dec 29, 2019 3:32 am
Forum: Java
Topic: Desktop indicators bleed through JavaFX
Replies: 23
Views: 7073

Re: Desktop indicators bleed through JavaFX

T13 wrote:
Sat Dec 28, 2019 8:56 pm
I´m using the latest Raspbian Buster and Liberica 13.0.1 (https://bell-sw.com/pages/java-13.0.1/) that meanwhile has JavaFX Media included and is based on OpenJDK and OpenJFX.
So does Liberica 13.0.1 have javafx.media? Their website says no for ARMHF.
by knute
Sat Dec 28, 2019 8:43 pm
Forum: Java
Topic: Quit Java to Command Line
Replies: 5
Views: 596

Re: Quit Java to Command Line

If you want to terminate a JavaFX program, you want to use Platform.exit(). That will cause it to stop right now. When I am writing code before it is completely debugged I put code in the catch block to display the error to the command line and and any code I need to see the values of variables that...
by knute
Tue Dec 24, 2019 2:13 am
Forum: Java
Topic: Quit Java to Command Line
Replies: 5
Views: 596

Re: Quit Java to Command Line

(...) public void Stop() { try { mainFormController.Stop(); scheduler.shutdown(); scheduler.awaitTermination(10, SECONDS); gpio.shutdown(); Platform.exit(); Thread.sleep(1000); System.exit(0); } catch (Exception ex) { } } (...)[/code] I tried searching the forum, but my search-fu is weak, so apolog...
by knute
Fri Nov 08, 2019 3:13 pm
Forum: General discussion
Topic: Upload a pic every minute
Replies: 45
Views: 3051

Re: Upload a pic every minute

Yes you need to install Java (openjdk-11-jdk). The program is a command line program. You run it with the java command, the name of the Java file and the arguments. java ScaleImage.java sourceFile destFile WxH WxH is the width and height separated by a lower case 'x'. In your case 1200 by 740 would ...

Go to advanced search