Go to advanced search

by DougieLawson
Sun Jun 13, 2021 11:33 pm
Forum: General discussion
Topic: sendmail crontab command not found
Replies: 4
Views: 148

Re: sendmail crontab command not found

The package you want is mailutils and the command you want is /usr/bin/mail

Sendmail/postfix/exim4 are MTAs not end user tools to embed in scripts driven from crontabs.
by DougieLawson
Sun Jun 13, 2021 11:22 am
Forum: Other
Topic: Raspberry Pi OS or another Distribution for a systemd free server?
Replies: 25
Views: 2038

Re: Raspberry Pi OS or another Distribution for a systemd free server?

jamesh wrote:
Sun Jun 13, 2021 9:50 am

Under what circumstances would you NOT need automounting?
Wrong question. When do you NEED automounting, it's not useful since I know I need to type sudo mount /dev/sda1 /mnt after I've inserted a USB device.
by DougieLawson
Sun Jun 13, 2021 11:20 am
Forum: Troubleshooting
Topic: Dead sdcard after power outage
Replies: 8
Views: 250

Re: Dead sdcard after power outage

Do you have any other device that can read it ? You don't need another device. You just need a bootable SDCard or USB stick (for recent models that have USB booting enabled) to get your RPi running as a rescue system. You'll then need a USB SDCard reader for the unbootable card. If you can boot you...
by DougieLawson
Fri Jun 04, 2021 1:05 pm
Forum: General discussion
Topic: raspberry pi DSI ribbon cable and camera ribbon cable
Replies: 6
Views: 265

Re: raspberry pi DSI ribbon cable and camera ribbon cable

You can pull the cable from a camera and use it for a display or vice versa.

You can NOT connect a camera to the display connector. You can NOT connect a display to the camera connector. Both connectors are clearly labelled on the silk screen printing on your RPi.
by DougieLawson
Fri Jun 04, 2021 12:27 pm
Forum: Python
Topic: beginners failure?
Replies: 4
Views: 164

Re: beginners failure?

somboku wrote:
Fri Jun 04, 2021 12:19 pm

Code: Select all

    GPIO.cleanup() 
Remove that line.
by DougieLawson
Fri Jun 04, 2021 11:00 am
Forum: General discussion
Topic: raspberry pi DSI ribbon cable and camera ribbon cable
Replies: 6
Views: 265

Re: raspberry pi DSI ribbon cable and camera ribbon cable

davidcoton wrote:
Fri Jun 04, 2021 9:48 am
No. Yes.
No.
They ARE physically the same but electrically different.
Connecting a camera to the DSI or connecting a display to the CSI is likely to have dire effects. You'll either kill the camera, kill the display, kill the Raspberry or kill all three.
by DougieLawson
Wed Jun 02, 2021 7:15 pm
Forum: Python
Topic: Send data to Mysql server
Replies: 9
Views: 356

Re: Send data to Mysql server

DO NOT USE root for general SQL tasks. root is the system admin ID, use it exclusively for system admin tasks. You're less likely to compromise your database security that way. If the database is use for "IoT", create an "iot" userid. If the database is used for "weather&quo...
by DougieLawson
Wed Jun 02, 2021 1:47 pm
Forum: Python
Topic: Send data to Mysql server
Replies: 9
Views: 356

Re: Send data to Mysql server

Use https://dev.mysql.com/doc/connector-python/en/ it's more widespread and more popular Do NOT use root as the userid. Create a separate userid for each project that has just the privileges it needs Change your mysql (aka Mariadb) server so that it binds to INADDR_ANY (0.0.0.0) rather than localho...
by DougieLawson
Wed Jun 02, 2021 8:24 am
Forum: Beginners
Topic: I am having an issue where I cannot install samba at all.
Replies: 16
Views: 406

Re: I am having an issue where I cannot install samba at all.

Turn every one of those lines in /etc/dhcpcd.conf into a comment by prefixing a line with an octothorpe #. Reboot and let your RPi get a DHCP address. Test things are working with ping -c3 8.8.8.8 and ping -c3 google.com Then look at your network settings ip -4 addr show ip -4 route That should get ...
by DougieLawson
Mon May 31, 2021 7:56 pm
Forum: General discussion
Topic: How to disable automatic file system expansion on first boot?
Replies: 9
Views: 524

Re: How to disable automatic file system expansion on first boot?

You'd need to edit the image (partition #2) before you ever boot it.

You can do that with a RaspiOS system and a USB reader. You'd need to mount the un-booted filesystem in a chroot.
by DougieLawson
Mon May 31, 2021 4:08 pm
Forum: General discussion
Topic: Services stop and start not shown in serial console?
Replies: 2
Views: 148

Re: Services stop and start not shown in serial console?

What do you have in /boot/cmdline.txt?
by DougieLawson
Mon May 31, 2021 3:39 pm
Forum: Networking and servers
Topic: Where to keep a SQLite database for use in PHP
Replies: 1
Views: 128

Re: Where to keep a SQLite database for use in PHP

I'd put it in /var/lib possibly in a /var/lib/myownname directory in there. Or somewhere in /usr/local/...

Ownership and permission needs to be uid=www-data gid=www-data
by DougieLawson
Mon May 31, 2021 3:23 pm
Forum: Troubleshooting
Topic: Cannot upgrade Pi 4 to 64 bit
Replies: 24
Views: 711

Re: Cannot upgrade Pi 4 to 64 bit

nickevackerdag wrote:
Mon May 31, 2021 2:20 pm

Code: Select all

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
arm_64bit=1
That should work (I can't test it I don't have a RPi4). But you may want to move the arm_64bit=1 outside the [pi4] conditional block.
by DougieLawson
Mon May 31, 2021 1:34 pm
Forum: Troubleshooting
Topic: Cannot upgrade Pi 4 to 64 bit
Replies: 24
Views: 711

Re: Cannot upgrade Pi 4 to 64 bit

I have a Raspberry Pi 4 Model B Rev 1.2 with an ARMv7 Processor rev 3 (v7l) running Linux pi 5.10.17-v7l+ #1421 . I have tried to convert it to run 64 bit by adding `arm_64bit=1` to the `[pi4]` section of `/boot/config.txt` and rebooting. That doesn’t make a difference. As far as I can tell, it sti...
by DougieLawson
Mon May 31, 2021 9:56 am
Forum: Troubleshooting
Topic: Playing audio with PHP shell-exec
Replies: 4
Views: 149

Re: Playing audio with PHP shell-exec

If it is an Apache web server, the user is www-data. If you want to use any of the RPi functions, the www-data user must be a member of that group. I think that the audio group would be necessary to play audio files, as is the gpio group for accessing digital pins and the dialout group for accessin...
by DougieLawson
Mon May 31, 2021 9:22 am
Forum: Troubleshooting
Topic: boot wheezy image backup on a new rasberry pi 1b
Replies: 3
Views: 253

Re: boot wheezy image backup on a new rasberry pi 1b

Thank you for your reply. I have managed to install a copy of jessie that will boot and execute the make file with the required flags. Once I have the remote desktop running with remmina I should be ok. Don't connect that computer to the internet, you're missing six years of security updates. What'...
by DougieLawson
Mon May 31, 2021 9:16 am
Forum: Raspberry Pi OS
Topic: Kano OS/Stretch on Pi 4: Is It Possible?
Replies: 4
Views: 283

Re: Kano OS/Stretch on Pi 4: Is It Possible?

You should probably start here: https://help.kano.me/hc/en-us
by DougieLawson
Sun May 30, 2021 8:32 pm
Forum: Off topic discussion
Topic: Vim syntax highlighting or GUI or whatever?
Replies: 6
Views: 309

Re: Vim syntax highlighting or GUI or whatever?

GlowInTheDark wrote:
Sun May 30, 2021 8:11 pm
Yeah, OK. I conceded that it might actually be OK via SSH.

But my main point is that it (non-GUI VIM) is rubbish on the console (either in an LXTerm or in a VC).
It's ok on a getty. No X11 windows junk needed.
by DougieLawson
Sun May 30, 2021 5:43 pm
Forum: Off topic discussion
Topic: Vim syntax highlighting or GUI or whatever?
Replies: 6
Views: 309

Re: Vim syntax highlighting or GUI or whatever?

Works perfectly in an SSH session with the right tty settings for colours.
by DougieLawson
Sun May 30, 2021 5:40 pm
Forum: Networking and servers
Topic: Change MySQL data directory on Raspberry Pi
Replies: 1
Views: 141

Re: Change MySQL data directory on Raspberry Pi

You need to update the datadir directive in /etc/mysql/mariadb.conf.d/50-server.cnf
by DougieLawson
Sun May 30, 2021 10:02 am
Forum: Beginners
Topic: Vi vs Vim in the documentation
Replies: 8
Views: 275

Re: Vi vs Vim in the documentation

It would be better to just fix the system to be more sane. I.e., make a usable VIM part of the base installation. One of the very first thing I do on any new install is: apt install vim-gtk First thing I do is sudo apt install vim-full I don't need a stinking GUI for it, but I do want the syntax hi...
by DougieLawson
Sun May 30, 2021 9:23 am
Forum: Beginners
Topic: [SOLVED] Extract Multiple (truncated) .RAR Files On Raspberry Pi (wheezy, jessie, buster)
Replies: 15
Views: 515

Re: Extract Multiple (truncated) .RAR Files Using Archive Manager

sudo apt install unrar Thank, tried that but it returns: Package unrar is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available form another source unrar is a dead link? Forget unrar. Use p7zip-full with p7zip-rar t...
by DougieLawson
Sun May 30, 2021 7:46 am
Forum: General discussion
Topic: install AWS CLI version 2 on raspberry pi 3B
Replies: 2
Views: 156

Re: install AWS CLI version 2 on raspberry pi 3B

jpgview wrote:
Sun May 30, 2021 7:44 am

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

X86_64 code WILL NOT run on a ARMHF or AARCH46 processor.
Look again.
by DougieLawson
Sat May 29, 2021 6:31 pm
Forum: Troubleshooting
Topic: wifi problem with raspberry pi
Replies: 8
Views: 265

Re: wifi problem with raspberry pi

Here's the usual question - have you disabled the completely insane WiFi power management "feature" with the on-board WiFi? For any system that's not battery powered having the WiFi go to low power / no power mode doesn't make any sense (the RPF folks have been asked, they refuse to change...

Go to advanced search