Go to advanced search

by knute
Thu Mar 22, 2018 10:43 pm
Forum: Troubleshooting
Topic: .desktop file can't create terminal?
Replies: 1
Views: 249

.desktop file can't create terminal?

Anybody know why my .desktop file doesn't create a terminal? It runs the Java program just fine though. [Desktop Entry] Name=test Type=Application Exec=java -jar test.jar Terminal=true Hidden=false Here is the test.java program if you want to try it: import java.awt.*; import javax.swing.*; public c...
by knute
Thu Mar 22, 2018 10:28 pm
Forum: General discussion
Topic: auto execution jar file after raspberry start up using cron job
Replies: 3
Views: 952

Re: auto execution jar file after raspberry start up using cron job

The @reboot scheme isn't going to work either because the X11 desktop isn't running when cron tries to start the program, hence the headless errors. Probably the simplest method to run a program like this is to use a Desktop file in your autostart directory. In the /home/pi/.config/autostart directo...
by knute
Thu Mar 22, 2018 9:57 pm
Forum: General discussion
Topic: auto execution jar file after raspberry start up using cron job
Replies: 3
Views: 952

Re: auto execution jar file after raspberry start up using cron job

You do know that headless and GUI are mutually exclusive?
by knute
Tue Mar 20, 2018 3:16 am
Forum: Beginners
Topic: Counting pixel colors from an image
Replies: 2
Views: 632

Re: Counting pixel colors from an image

Do you want to find the most popular pixel color or do you want the average color of your image? I'm not a python programmer but I can tell you how I would go about it and maybe then you can program it. 1) Create an array of integers for the color values of each pixel. 2) Create a hashmap that uses ...
by knute
Fri Mar 16, 2018 6:49 pm
Forum: General discussion
Topic: Simple security system to trigger photo
Replies: 1
Views: 226

Re: Simple security system to trigger photo

Take a look at the Java program I wrote, MotionDetection, at pi.knutejohnson.com. It should do exactly what you are looking for.
by knute
Tue Feb 20, 2018 5:31 pm
Forum: Other projects
Topic: Call queue system
Replies: 2
Views: 745

Re: Call queue system

Sure and no it wouldn't be too difficult. You could wire up each teller position with a switch, one position is available and the other is busy. Connect the switch to a Pi I/O and display that teller number along with all the other numbers that are free and remove it when not. When a number is added...
by knute
Sun Feb 11, 2018 4:01 pm
Forum: Beginners
Topic: Forward [ip address] port 23 to Localhost port xxx
Replies: 3
Views: 791

Re: Forward [ip address] port 23 to Localhost port xxx

Hi, could you Linux geeks help me? I must use a blackbox program, that expects data to arrive on Localhost port xxx. (from ser2net) My data source is another intranet address, port 23. You mean it connects to port 23 or the source port is 23? Can i manage that without programming? if yes, how? If n...
by knute
Thu Feb 01, 2018 7:15 pm
Forum: Troubleshooting
Topic: JavaFX; Java 8
Replies: 2
Views: 595

Re: JavaFX; Java 8

The current Java 8 in the RPi does not have JavaFX. I don't know about OpenJDK but I don't think so.

Take a look at: http://docs.gluonhq.com/javafxports/
by knute
Thu Dec 21, 2017 8:49 pm
Forum: Troubleshooting
Topic: vsftpd passive
Replies: 7
Views: 1255

Re: vsftpd passive

First of all, standard mode (non-passive) ftp uses both ports 21 and 20. I already had this working. I even verified I was able to connect, download and upload files. I want to use passive to allow incoming data connections on specific ports that I can forward through my hardware firewall. In activ...
by knute
Wed Dec 20, 2017 4:13 pm
Forum: Beginners
Topic: How install OpenJDK using tar.gz file - without internet access?
Replies: 3
Views: 919

Re: How install OpenJDK using tar.gz file - without internet access?

The OP said
I have (currently) installed noobs/raspbian
So I knew if I said Raspbian lite somebody would say no NOOBS Lite.
by knute
Tue Dec 19, 2017 4:27 pm
Forum: Raspbian
Topic: Set VNC resolution?
Replies: 22
Views: 49305

Re: Set VNC resolution?

Coming to this one late but I run all my Pi headless using standard VNC server and the only thing I change is # uncomment to force a console size. By default it will be display's size minus # overscan. framebuffer_width=1900 framebuffer_height=1024 in /boot/config.txt nothing else needed at all +1
by knute
Tue Dec 19, 2017 4:24 pm
Forum: Beginners
Topic: Is it possible to VNC securely from a mobile phone?
Replies: 7
Views: 1618

Re: Is it possible to VNC securely from a mobile phone?

Raspbian comes with a RealVNC server installed. There is an Android VNC client app and probably one for the other OS' too. I think the encryption in RealVNC is more than adequate for your phone.
by knute
Tue Dec 19, 2017 4:05 pm
Forum: Beginners
Topic: How install OpenJDK using tar.gz file - without internet access?
Replies: 3
Views: 919

Re: How install OpenJDK using tar.gz file - without internet access?

That file looks fine to me but you can also go to: http://www.oracle.com/technetwork/java/ ... 33151.html to get the latest released version.

Are you running NOOBSLITE? Because the Java8 JDK is already installed in the full version and you don't need to install anything.
by knute
Tue Dec 19, 2017 3:50 pm
Forum: Troubleshooting
Topic: vsftpd passive
Replies: 7
Views: 1255

Re: vsftpd passive

Passive cant work out of the box without the setting the passive ports. Port 21 and 20 are used for standard FTP, which works fine. I only have a problem when I turn on passive. Respectfully, you are wrong. This isn't the first FTP I have set up, only the first on a Linux system. That's clear. I ha...
by knute
Sun Dec 17, 2017 10:15 pm
Forum: Weather station
Topic: Failed to start the Apache HTTP server
Replies: 9
Views: 3618

Re: Failed to start the Apache HTTP server

Try running sudo apachectl config-test and post the output here.
by knute
Sun Dec 17, 2017 10:07 pm
Forum: Troubleshooting
Topic: vsftpd passive
Replies: 7
Views: 1255

Re: vsftpd passive

Passive works out of the box on vsftpd. You don't need all those configuration entries to get it to work (I really don't think you want listen=YES). There is one caveat to that though, do you have ufw running? If so you need to tell it to allow the related connection. iptables -A PREROUTING -t raw -...
by knute
Sun Dec 17, 2017 9:52 pm
Forum: Beginners
Topic: Issues with Cron
Replies: 7
Views: 677

Re: Issues with Cron

The python interpreter is not in pi's crontab path so it won't run. False. On any normal Raspbian system (and probably any/all others), both python and python3 are in /usr/bin and, despite all and sundry claims to the contrary that you may see either on these forums or online, /usr/bin is in the de...
by knute
Tue Dec 12, 2017 7:06 pm
Forum: Beginners
Topic: Issues with Cron
Replies: 7
Views: 677

Re: Issues with Cron

I'm not sure that */1 is different from * but here nor there.

The python interpreter is not in pi's crontab path so it won't run. Try:

* * * * * python /usr/local/bin/rsump.py
by knute
Fri Dec 01, 2017 9:21 pm
Forum: Advanced users
Topic: Scaling digital signage to 500 screens with limited bandwidth
Replies: 16
Views: 3059

Re: Scaling digital signage to 500 screens with limited bandwidth

I don't know what sort of compression you've got on your video but 500 sites streaming HD takes a big pipe. Are they all viewing the same video on the same day? Can you send out tomorrow's video overnight? You can use multicast to transmit only once and all sites can receive the data. You might need...
by knute
Wed Nov 29, 2017 10:51 pm
Forum: General discussion
Topic: Queue Management for Raspberry Pi?
Replies: 2
Views: 1005

Re: Queue Management for Raspberry Pi?

I need a really simple queue manager (by a person's name) so we know who is next in line. Is anyone aware of anything that will run on a Pi that does this? Kept me entertained for an afternoon! //package com.knutejohnson.pi; import java.awt.*; import java.awt.event.*; import java.util.*; import jav...
by knute
Mon Nov 27, 2017 9:40 pm
Forum: Raspbian
Topic: run code in crontab between hours does not work
Replies: 5
Views: 634

Re: run code in crontab between hours does not work

hello. I want to run code in crontab between hours every 1 minute but it doesn't work. in reality the code starts the job at the indicated time (10:00) but it doesn't finish its execution at the indicated time (19:00). the last line in the crontab is : * 10-19 * * * /usr/bin/python /home/pi/Desktop...
by knute
Wed Nov 15, 2017 4:38 pm
Forum: Networking and servers
Topic: eth0 loses IP address if i unplug the cable
Replies: 2
Views: 543

Re: eth0 loses IP address if i unplug the cable

Hi, i have set up routing between the two so i can reach an application that will only listen to the static IP, even from the wan interface. This works as long as something is plugged into the ethernet socket, usually an ethernet switch... That doesn't make any sense, maybe you better explain that ...
by knute
Sat Nov 11, 2017 10:10 pm
Forum: Beginners
Topic: New NTP server questions/problems.
Replies: 9
Views: 1465

Re: New NTP server questions/problems.

That's a fair enough call, but alas I don't think it is THE problem. Alas I have since restarted/reset the NTP server so I can't show you the problem now. But indulge me with this line of thinking: On the NTP server, it has 3 external servers in its list. So there is a good source for the right tim...
by knute
Sat Nov 11, 2017 7:24 pm
Forum: Beginners
Topic: New NTP server questions/problems.
Replies: 9
Views: 1465

Re: New NTP server questions/problems.

lerner wrote:
Sat Nov 11, 2017 12:42 am
AFAIK, the NTP server is working happily but if I leave it disconnected from the outside network for a long time, it seems to hang.

Anyone - please?
I think that's your problem. If the server hasn't gotten synced in recent history it can't serve up a valid time.
by knute
Sat Nov 11, 2017 6:57 pm
Forum: General discussion
Topic: When "http://mirrordirector.raspbian.org/" server running again?
Replies: 4
Views: 897

Re: When "http://mirrordirector.raspbian.org/" server running again?

There was some kind of a network problem yesterday that caused the same problem for me in Texas. Works fine today.

Go to advanced search