Go to advanced search

by knute
Sat Aug 18, 2018 11:09 pm
Forum: Troubleshooting
Topic: Why do some Pis upgrade and others don't?
Replies: 0
Views: 148

Why do some Pis upgrade and others don't?

I've got 5 Pis running here, internet access is all through the same gateway but when I run apt update and apt full-upgrade two of them pulled in a new kernel today and the other three didn't. The two with the new kernel have 4.14.62 #1134 and the other three have 4.14.52 #1123. They are a mixed bag...
by knute
Wed Aug 15, 2018 3:57 pm
Forum: Networking and servers
Topic: Raspberry Pi Apache2
Replies: 3
Views: 309

Re: Raspberry Pi Apache2

You can use the server Pi's IP address. If for example your Pi has an IP of 192.168.1.2, on your desktop (on the same network) put 192.168.1.2 in the address line of your browser and it should display your web page. You can try that on your Pi as well.
by knute
Mon Aug 13, 2018 4:06 am
Forum: Advanced users
Topic: dtoverlay=dht11?
Replies: 4
Views: 490

Re: dtoverlay=dht11?

The DHTxx series use a simple checksum rather than a CRC. For a reliable reader try http://abyz.me.uk/rpi/pigpio/examples.html#pdif2_DHTXXD Thanks Joan, I looked at your code and I and have written a C program using the pigpio library that works pretty well too. I used Java for the program I'm work...
by knute
Mon Aug 13, 2018 4:01 am
Forum: Advanced users
Topic: dtoverlay=dht11?
Replies: 4
Views: 490

Re: dtoverlay=dht11?

I would suggest repeatedly reading the sensor value at a 2-second interval and discarding any IO errors. The returned data word is protected by a CRC so this practically guarantees that any read result that does not have an IO error is the value the sensor reported. So I've been reading the file ev...
by knute
Sat Aug 11, 2018 8:41 pm
Forum: Advanced users
Topic: dtoverlay=dht11?
Replies: 4
Views: 490

dtoverlay=dht11?

When I first tried using the dht11 overlay a while back, I had some difficulty getting it to work with a DHT22. I needed to set up some temperature sensors and so thought I would try again and it appears to work OK now with a DHT22. I am having one issue and that is what I think are conflicts with t...
by knute
Mon Aug 06, 2018 5:41 pm
Forum: Raspbian
Topic: Pi as webserver- security
Replies: 2
Views: 274

Re: Pi as webserver- security

I've run stock apache web servers under linux for years without any problems and pis running apache for a couple of years. Keep your OS and your apache up to date and you should be just fine. Be careful with any CGI scripts that you write.
by knute
Mon Aug 06, 2018 5:34 pm
Forum: General discussion
Topic: Cant reach Raspberry with External IP Public Key
Replies: 2
Views: 233

Re: Cant reach Raspberry with External IP Public Key

HelloItsME1212 wrote:
Sun Aug 05, 2018 8:04 pm
What it happens is thath if i use public key, it request me password after phassprase, and if i try to login with plantext password, it dosnt let me to log in, it says its incorrect.
Then take the passphrase off of the key.
by knute
Fri Aug 03, 2018 7:46 pm
Forum: Python
Topic: New to Pi, new to Python!
Replies: 14
Views: 839

Re: New to Pi, new to Python!

If you haven't programmed in any language before, you will probably end up buying several books before you get proficient in python. But really, the way to learn is to read a little in your programming book and write a lot of programs. Writing programs is where you learn how to apply the structure a...
by knute
Fri Aug 03, 2018 7:31 pm
Forum: Java
Topic: How do I remove Java 8 from my Pi?
Replies: 6
Views: 3161

Re: How do I remove Java 8 from my Pi?

Well thanks, I never would have figured that out on my own!
by knute
Tue Jul 31, 2018 6:19 pm
Forum: Java
Topic: How do I remove Java 8 from my Pi?
Replies: 6
Views: 3161

Re: How do I remove Java 8 from my Pi?

That doesn't work either but the bit about removing wolframe-engine is interesting. [email protected]:~ $ sudo apt-mark hold oracle-java7-jdk oracle-java7-jdk set on hold. [email protected]:~ $ sudo apt purge oracle-java8-jdk Reading package lists... Done Building dependency tree Reading state inf...
by knute
Mon Jul 30, 2018 8:22 pm
Forum: Java
Topic: How do I remove Java 8 from my Pi?
Replies: 6
Views: 3161

Re: How do I remove Java 8 from my Pi?

It still wants to install Java 7. [email protected]:~ $ sudo apt purge java-common oracle-java8-jdk Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: oracle-java7-jdk The following packages will be REMOVED: ...
by knute
Sat Jul 28, 2018 6:02 pm
Forum: Java
Topic: How do I remove Java 8 from my Pi?
Replies: 6
Views: 3161

How do I remove Java 8 from my Pi?

If I do apt purge oracle-java8-jdk it wants to install java7. I just want to remove all of the installed java so I can install the latest version from a file. [email protected]:~ $ sudo apt purge oracle-java8-jdk Reading package lists... Done Building dependency tree Reading state information... Do...
by knute
Sun Jul 22, 2018 7:36 pm
Forum: Troubleshooting
Topic: Filezilla FTP access
Replies: 1
Views: 124

Re: Filezilla FTP access

There are a lot of reasons why FTP can be stymied but I've not seen it report an authentication issue. Can you post a screen shot of your FileZilla? Does your Pi have a firewall? Are you using active or passive FTP? Is your computer with the FileZilla windows or linux?
by knute
Sat Jul 14, 2018 10:12 pm
Forum: Beginners
Topic: audio project in mind, could it be done? need your ideas/suggestions
Replies: 5
Views: 511

Re: audio project in mind, could it be done? need your ideas/suggestions

ok so im also on the FB group and have come up with some suggestions and problems.. its not going to be easily viable to do what i was thinking due to processor, memory limitations etc espically if its recorded as a raw file (WAV) where that could be a very huge file! You could use some compression...
by knute
Mon May 07, 2018 5:07 pm
Forum: Beginners
Topic: Restart RPI after 6 hours
Replies: 6
Views: 610

Re: Restart RPI after 6 hours

Crontab has its own arcane entry format so you would need to have 4 separate entries for the time of day you wish to start with, so 4 lines like this:" * 6 * * * reboot" repeated 4 times around the 24 hr. clock. If you are happy with 0,6,12 and 18 hours then you can put in one entry: 0 */6 * * * yo...
by knute
Tue Apr 17, 2018 5:05 pm
Forum: Advanced users
Topic: How to enable Server Side Includes on Apache2 on Raspian
Replies: 5
Views: 776

Re: How to enable Server Side Includes on Apache2 on Raspian

.shtml should work unless you missed something. It doesn't require the XBitHack on statement to work.
by knute
Mon Apr 16, 2018 7:50 pm
Forum: Advanced users
Topic: How to enable Server Side Includes on Apache2 on Raspian
Replies: 5
Views: 776

Re: How to enable Server Side Includes on Apache2 on Raspian

1. sudo a2enmod include 2. add the following to your config file in /etc/apache2/sites-available/000-default.conf (you might have changed this file's name) <Directory /var/www/html> Options +Includes AddType text/html .shtml AddOutputFilter INCLUDES .shtml XBitHack on </Directory> 3. sudo apachectl ...
by knute
Thu Apr 12, 2018 2:53 pm
Forum: General discussion
Topic: configuring multiple virtual hosts in apache2
Replies: 4
Views: 4142

Re: configuring multiple virtual hosts in apache2

A typical .conf file contains: <VirtualHost blahblah.com> DocumentRoot /mnt/data1/public/Sites/html/blahblah Servername localhost ServerAlias www.blahblah.com <VirtualHost> Any comments/suggestions/help would be greatly appreciated. Try <VirtualHost *:80> and ServerName blahblah.com
by knute
Fri Apr 06, 2018 4:03 pm
Forum: Other projects
Topic: Motion detection using Raspberry Pi
Replies: 4
Views: 895

Re: Motion detection using Raspberry Pi

Thanks a lot for the apt response. Also,is there a feasibility to start storing panoramic images in the memory of the raspberry pi and scan it continuously to compare successive panoramic image frames,to detect changes if any?? Take a look at my MotionDetection program that I wrote in Java for an e...
by knute
Wed Apr 04, 2018 3:49 pm
Forum: Camera board
Topic: Picam Java
Replies: 1
Views: 726

Re: Picam Java

Im trying to develop a program that would display a camera feed, then take a picture after 3 seconds then buffer that to the same panel. the command im using is "raspistill -w 200 -h 200 -q 100 -t 5" Im still learning about the camera commands and java, Would this work for the command above and how...
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: 950

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: 950

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: 624

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 ...

Go to advanced search