Go to advanced search

by rpdom
Wed Oct 16, 2019 10:16 am
Forum: Beginners
Topic: Apache2 not active
Replies: 2
Views: 39

Re: Apache2 not active

In the installation it has sudo apt-get -y install apache2 php5 mysql-client mysql-server php5-mysql phpmyadmin After that, did you reboot and check if apache2 is running? On the pi, open a browser and go to http://localhost. That should show the Apache default start page. Note their instructions u...
by rpdom
Wed Oct 16, 2019 9:54 am
Forum: C/C++
Topic: Running C/C++ on Raspberry Pi
Replies: 32
Views: 1114

Re: Running C/C++ on Raspberry Pi

dsyleixa123 wrote:
Wed Oct 16, 2019 9:14 am
on the Pi, also Geany needs no installation (as it comes pre-installed ;) )
Not on any of mine, it doesn't. (Running Raspbian Lite headless on all of them). I'll stick with vi, thanks :)
by rpdom
Wed Oct 16, 2019 9:29 am
Forum: General discussion
Topic: how to fix " 'apt --fix-broken install" error?
Replies: 8
Views: 233

Re: how to fix " 'apt --fix-broken install" error?

You might get more appropriate replies if you edit the subject line on your first post and change it from "how to fix 'apt --fix-broken install' error?" to "How to get netflix working with Chrome browser?" (No, I don't know how to get Netflix working, I just think this may get different people to re...
by rpdom
Wed Oct 16, 2019 5:26 am
Forum: C/C++
Topic: Running C/C++ on Raspberry Pi
Replies: 32
Views: 1114

Re: Running C/C++ on Raspberry Pi

Vi used to be the editor you could depend on being available on pretty much any *nix based system - even in recovery mode. Although recently I worked on systems that had nano instead of vi. That confused me. I installed a minimal vi as soon as I could on them. Anyone who is likely to do any sysadmin...
by rpdom
Tue Oct 15, 2019 8:21 pm
Forum: Python
Topic: Automatic light switch script
Replies: 17
Views: 2104

Re: Automatic light switch script

So put some tests in before your while loop starts to see if the relay should be on or not, to set the initial state when the program runs.
by rpdom
Tue Oct 15, 2019 8:10 pm
Forum: Python
Topic: Pi-4: Python shell (idle) is missing - why?
Replies: 5
Views: 132

Re: Pi-4: Python shell (idle) is missing - why?

The recommended IDE for Python now is Thonny instead of Idle. As you found, you can still install Idle2 and 3.
by rpdom
Tue Oct 15, 2019 7:43 am
Forum: Troubleshooting
Topic: SSH Connection refused on 2 of my Pi Zero W
Replies: 5
Views: 109

Re: SSH Connection refused on 2 of my Pi Zero W

Of course ip and port are correct. Above that, wron ip or port leads to different error messages like "no route" or "service not found" Wrong IP will get "No route to host" if it refers to a machine that doesn't exist. If it refers to a system that does exist, but isn't running an SSH server, or is...
by rpdom
Tue Oct 15, 2019 3:13 am
Forum: General discussion
Topic: Rpi Zero is heat up. Is this normal and good for wearable?
Replies: 10
Views: 264

Re: Rpi Zero is heat up. Is this normal and good for wearable?

I have just turned it on and test this code right away. I got 41.2'C. And after 10 minutes I got 44.4'C . It's not as hot as I can't hold it at all but definitely feel warm to me. So I'm curious if this is on skin altho have one layer of a thin fabric will it be warmer or irritate the person (?) I ...
by rpdom
Tue Oct 15, 2019 2:59 am
Forum: Networking and servers
Topic: Why does my PI need a network name and password to communicate via TCP/IP / port.
Replies: 4
Views: 176

Re: Why does my PI need a network name and password to communicate via TCP/IP / port.

You'll have to be a bit clearer what it is that you want to do. What sort of communications? Obviously some things can be set up to connect with no authentication. A basic webserver is one example. Other things will need a login and password, like SSH, but that can be set to use shared keys and not ...
by rpdom
Tue Oct 15, 2019 2:56 am
Forum: Troubleshooting
Topic: Raspberry Pi 4b - sudo reboot now - need to unplug power > 10seconds to recover (pisound HAT)
Replies: 31
Views: 711

Re: Raspberry Pi 4b - sudo reboot now - need to unplug power > 10seconds to recover

Whatever your issue is, it is not that. No model of RPi board has a BIOS as found on a 'conventional' (ie. 'WinTel' ) PC. I read the Rpi4 has firmware now... Maybe we dont call it a BIOS. But it does have firmware - and that's what I meant https://www.raspberrypi.org/forums/viewtopic.php?t=244585 A...
by rpdom
Tue Oct 15, 2019 2:48 am
Forum: Beginners
Topic: What folders to backup, if I want to clone the device?
Replies: 7
Views: 189

Re: What folders to backup, if I want to clone the device?

RossDv8 wrote:
Mon Oct 14, 2019 11:04 pm
If you run the SD card copier in 'Accessories' in your menu, remember NOT to use a smaller SD card :) (Easy to do if you forget your glasses).
Why not?

As long as the card being copied to has sufficient space for all the files and a bit left over, it'll be fine.
by rpdom
Tue Oct 15, 2019 1:18 am
Forum: Advanced users
Topic: Raspberry Pi 4B and firmware-loaded-to-chip information
Replies: 4
Views: 291

Re: Raspberry Pi 4B and firmware-loaded-to-chip information

From what I understand, the new Raspberry Pi 4B does something different with respect to where it stores firmware. In the past it seems like all the firmware was on the microSD card. And now, some of it gets flashed to one of the chips...? Correct. It would be nice to know how all this works if it'...
by rpdom
Mon Oct 14, 2019 8:54 pm
Forum: Troubleshooting
Topic: Buster & apt-get update
Replies: 2
Views: 75

Re: Buster & apt-get update

Run sudo apt update and answer yes to the question. (Note: apt, not apt-get).

After that apt and apt-get will both work.

This has been mentioned a few times on the forums.
by rpdom
Mon Oct 14, 2019 8:25 pm
Forum: Beginners
Topic: What folders to backup, if I want to clone the device?
Replies: 7
Views: 189

Re: What folders to backup, if I want to clone the device?

Do note that if you are looking at the SD card in something like a Windows system you will only see a small number of the files required. This is because Windows does not understand Linux file systems, so ignores them.
by rpdom
Mon Oct 14, 2019 5:22 pm
Forum: General discussion
Topic: Rpi Zero is heat up. Is this normal and good for wearable?
Replies: 10
Views: 264

Re: Rpi Zero is heat up. Is this normal and good for wearable?

I wouldn't expect a Pi Zero to get very warm, especially with a heatsink. How hot is it getting internally? You can find out by entering "vcgencmd measure_temp" on the command line (in a terminal if running desktop). I get this on a Pi Zero with room temperature at just under 20°C: pi@raspi10:~ $ vc...
by rpdom
Mon Oct 14, 2019 1:00 pm
Forum: Raspbian
Topic: MongoDB on Stretch - E- Unable to locate package mongodb-org
Replies: 10
Views: 228

Re: MongoDB on Stretch - E- Unable to locate package mongodb-org

makem wrote:
Mon Oct 14, 2019 11:12 am
A reason to buy a 4 now then :-)
Do you need a reason? :lol:
makem wrote:
Mon Oct 14, 2019 12:43 pm
I have never used a database so all new to me.
I've mostly used MySQL/MariaDB databases. Not too hard to do once you get used to them.

I think I looked at MongoDB a few years ago, but decided not to use it.
by rpdom
Sun Oct 13, 2019 9:39 pm
Forum: Python
Topic: STICKY: [announcement] python 2 end of life
Replies: 19
Views: 2120

Re: STICKY: [announcement] python 2 end of life

I always thought Ubuntu was a Debian derivative the same as Raspbian. Maybe Canonical is big enough to add more tweaks. Raspbian is pretty much a straight recompilation of Debian Stable (currently Buster), with a load of Pi specific bits added. Ubuntu is a mixture of packages from Debian Stable, Te...
by rpdom
Sun Oct 13, 2019 9:36 pm
Forum: Troubleshooting
Topic: Raspberry Pi 4b - sudo reboot now - need to unplug power > 10seconds to recover (pisound HAT)
Replies: 31
Views: 711

Re: Raspberry Pi 4b - sudo reboot now - need to unplug power > 10seconds to recover

Speaking of reboot... I long ago got trained to do sync;sudo reboot . Is the sync really necessary? Not really. A long time ago, when I first started using Unix, the recommended sequence was sync;sync;reboot (or equivalent command) , but there is quite a bit of stuff written out to the disk during ...
by rpdom
Sun Oct 13, 2019 8:48 pm
Forum: Networking and servers
Topic: Installing Apache on Pi4 ?
Replies: 5
Views: 358

Re: Installing Apache on Pi4 ?

E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Ah yes. This is a known issue caused by the fa...
by rpdom
Sun Oct 13, 2019 2:53 pm
Forum: Networking and servers
Topic: Installing Apache on Pi4 ?
Replies: 5
Views: 358

Re: Installing Apache on Pi4 ?

Did you remember to do sudo apt update first? The current version of apache-bin (for example) is 2.4.38-3+deb10u1, but your Pi is trying to fetch just 2.4.38-3. It looks like there was a recent update to the version. It may even be that the version was updated between you doing apt update and trying...
by rpdom
Sun Oct 13, 2019 7:43 am
Forum: Troubleshooting
Topic: LCD Screen Text Appears with Blocks
Replies: 4
Views: 256

Re: LCD Screen Text Appears with Blocks

Adjust the contrast on your display. You do have a contrast control connected, don't you?
by rpdom
Sat Oct 12, 2019 4:38 pm
Forum: Compute Module
Topic: CM3 and LAN9514 is working but very hot
Replies: 2
Views: 231

Re: CM3 and LAN9514 is working but very hot

I have build CM3 board using LAN9514. Everything is ok. Ethernet, 4 USB port is working. But LAN9514 is very hot after start-up about 10-20s. Someone to help me. Thanks One thing that comes to mind is that in the original design of the Pi 1B the VDD_1V8_COREx lines (I think I got the right lines th...
by rpdom
Sat Oct 12, 2019 4:25 pm
Forum: General discussion
Topic: Problem: RPi Zero and keyboard
Replies: 14
Views: 639

Re: Problem: RPi Zero and keyboard

I'd say there was something wrong with the keyboard or the USB cable/adaptor you are using. The Pi Zero W needs less than 300mA to start up and idle. The power is connected directly from the PWR USB socket to the Data USB socket, and as the problem occurs when you connect the keyboard it definitely ...
by rpdom
Sat Oct 12, 2019 4:02 pm
Forum: Troubleshooting
Topic: My Pi4 does'nt detect any usb device anymore
Replies: 4
Views: 242

Re: My Pi4 does'nt detect any usb device anymore

It looks like your main USB3.0 hub isn't working or can't be seen. Only the legacy USB2 connection on the USB-C connector. If you install pciutils, does the Hub show up with the lspci command? rpdom@raspi12:~ $ lspci 00:00.0 PCI bridge: Broadcom Limited Device 2711 (rev 10) 01:00.0 USB controller: V...
by rpdom
Sat Oct 12, 2019 12:54 pm
Forum: Beginners
Topic: Second Gigabit for PI 4B
Replies: 6
Views: 279

Re: Second Gigabit for PI 4B

The USB C port on the Pi 4 is strictly a client port (device-only) at USB 2.0 speed No, it can run in Host or Device mode. See https://www.raspberrypi.org/documentation/hardware/raspberrypi/usb/README.md#overview_pi4 That says that it is intended to run in Client mode. Not that it can only run in t...

Go to advanced search