Go to advanced search

by DougieLawson
Sun Mar 17, 2019 7:20 am
Forum: Wanted
Topic: We need a special device
Replies: 15
Views: 395

Re: We need a special device

Looks like a very bad turn through Google's security scrambler (aka Translate).

Perhaps the OP could write in Arabic and the English folks can try a reverse Google scramble.
by DougieLawson
Sun Mar 17, 2019 7:17 am
Forum: Wanted
Topic: Want to buy 100 Qty. Compute Modules CM3+
Replies: 6
Views: 184

Re: Want to buy 100 Qty. Compute Modules CM3+

RS Components & Farnell both allow for mass orders.

The only device that can't be bought in bulk is the RPi Zero.
by DougieLawson
Sat Mar 16, 2019 5:58 am
Forum: Raspbian
Topic: [Guide] Kodi on Raspbian Stretch
Replies: 177
Views: 139457

Re: [Guide] Kodi on Raspbian Stretch

micalbajarr wrote:
Sat Mar 16, 2019 12:11 am
Is youtube add-on "Legal" ?
Go and ask Google. They own YT and licence your use of it.
Go and ask Kodi. They own the software and enable the add-ons.
Go and ask the add-on developer. They're the ones that may be violating any YT licences.
by DougieLawson
Sat Mar 16, 2019 5:41 am
Forum: Python
Topic: whats wrong with the code?
Replies: 3
Views: 148

Re: whats wrong with the code?

You can't mix tabs and spaces. Pick one or the other and be consistent. I use two or four spaces (depending on mood).
by DougieLawson
Fri Mar 15, 2019 5:59 pm
Forum: General discussion
Topic: Connecting relay board far away from rpi
Replies: 12
Views: 287

Re: Connecting relay board far away from rpi

Use two relays.

One at the RPi switches 12V/24V. Then a 12V/24V relay near the load switches the main 230V circuit. You can run 12V/24V (up to 48V) over phone cable and it's good for hundreds of metres away from the RPi.
by DougieLawson
Fri Mar 15, 2019 5:35 pm
Forum: General discussion
Topic: Identifying a board..
Replies: 15
Views: 326

Re: Identifying a board..

There's no user accessible permanent storage on any RPi. So you can't do that. Use the burned-in serial number. vcgencmd otp_dump | awk -F ":" '/28:/ {print $2}' or grep -i 'serial.*:' /proc/cpuinfo or awk -F ":" '/Serial.*:/ {print $2}' /proc/cpuinfo [email protected]:~ $ vcgencmd otp_dump | awk -F ":"...
by DougieLawson
Fri Mar 15, 2019 5:02 pm
Forum: Networking and servers
Topic: Getting NTP time and then setting a time offset
Replies: 2
Views: 181

Re: Getting NTP time and then setting a time offset

I've just tested this recipe.

sudo -s
cd /usr/share/zoneinfo
echo "Zone 5OFF +0:05 - 5OFF" > 5OFF.zone
zic 5OFF.zone -d spoof
cd /etc
echo "spoof/5OFF" > ./timezone
rm localtime
ln -s /usr/share/zoneinfo/spoof/5OFF localtime
date
exit
by DougieLawson
Fri Mar 15, 2019 4:30 pm
Forum: Off topic discussion
Topic: Worried, Whatever-Speed
Replies: 57
Views: 1200

Re: Worried, Whatever-Speed

Should I be worried that I don't give a damn about how may Giga whatevers my code can achieve ... ? Coming from the land of the 24-bit mainframe, smaller has always been better (with S/370 assembler you could address 4K with a general purpose base register, beyond 4K was a pain - code came out smal...
by DougieLawson
Fri Mar 15, 2019 7:39 am
Forum: Beginners
Topic: How to back up your Raspbian microSD card
Replies: 4
Views: 213

Re: How to back up your Raspbian microSD card

Try it on a fresh install of plain Raspbian (not NOOBS). I used it week before last to move a 16GB SDCard to an 8GB one to free up the 16GB card to experiment with Gentoo 64bit (which doesn't fit in 8GB).
by DougieLawson
Fri Mar 15, 2019 7:02 am
Forum: General discussion
Topic: Hacking
Replies: 2
Views: 291

Re: Hacking

You may want to get Kali installed before wasting time trying to beat Raspbian to death. https://docs.kali.org/kali-on-arm/install-kali-linux-arm-raspberry-pi If Kali is slow go and ask on their forums. Why do you think the Kali stuff would run any quicker with Raspbian? https://forums.kali.org/show...
by DougieLawson
Thu Mar 14, 2019 6:14 am
Forum: Networking and servers
Topic: Wireless to wired bridge. Need help
Replies: 1
Views: 99

Re: Wireless to wired bridge. Need help

Leave one Raspberry connected with a wire. Turn that Raspberry into an Access point.

https://www.raspberrypi.org/documentati ... s-point.md
by DougieLawson
Thu Mar 14, 2019 6:11 am
Forum: Beginners
Topic: Rasbian, retropie on to one card and questions about raspberry pi zero w
Replies: 8
Views: 214

Re: Rasbian, retropie on to one card and questions about raspberry pi zero w

Take a look at PINN that allows more than one OS (which are entirely segregated) to exist on a single SDCard with a boot manager that allows you to choose which one boots.

https://github.com/procount/pinn
by DougieLawson
Thu Mar 14, 2019 6:00 am
Forum: Beginners
Topic: Migrating to a larger SD Card
Replies: 2
Views: 97

Re: Migrating to a larger SD Card

jspaceman wrote:
Wed Mar 13, 2019 3:09 pm
If not, can I I use something like GParted to resize the 16GB card and create some more room?
Use
Image

Or use sudo dd if=/dev/mmcblk0 of=/dev/sda bs=1M
Then run gparted on /dev/sda to resize the rootfs partition.

Both work.
by DougieLawson
Thu Mar 14, 2019 5:46 am
Forum: Beginners
Topic: How to back up your Raspbian microSD card
Replies: 4
Views: 213

Re: How to back up your Raspbian microSD card

There's a built-in SDCard Copier Utility. That will create a bootable copy of your running system on a new SDCard in a USB SDCard reader. That's better than anything you can do on a Windows system.

Image
by DougieLawson
Wed Mar 13, 2019 6:24 pm
Forum: General discussion
Topic: Java on OS'
Replies: 3
Views: 169

Re: Java on OS'

The Gentoo 64 bit OS has a very recent level of Java.

viewtopic.php?f=54&t=188448

That's now included in PINN. viewtopic.php?f=63&t=142574
by DougieLawson
Wed Mar 13, 2019 6:16 pm
Forum: Troubleshooting
Topic: Cron is not starting my python MQTT script correctly
Replies: 9
Views: 207

Re: Cron is not starting my python MQTT script correctly

If you do it in systemd you can make your service file dependent on the network [Unit] Description=MQTT publisher After=network-online.target mosquitto.service [Service] ExecStart=/usr/local/bin/mqttPub.py Restart=always User=pi Group=pi StandardOutput=syslog StandardError=syslog SyslogIdentifier=mq...
by DougieLawson
Wed Mar 13, 2019 5:50 pm
Forum: General discussion
Topic: Manual on/off switching of RPI 7" Touchscreen
Replies: 1
Views: 71

Re: Manual on/off switching of RPI 7" Touchscreen

Can't be done. If you power off the screen (in any way) you have to power off and reboot the RPi to get it running again. There are some software controls to dim the backlight or turn off the backlight. https://github.com/DougieLawson/backlight_dimmer has some code to dim when there's no touch event...
by DougieLawson
Wed Mar 13, 2019 6:38 am
Forum: Troubleshooting
Topic: Infrared touch bug
Replies: 14
Views: 305

Re: Infrared touch bug

Nobody knows because you still haven't told us what screen you're using and what touchscreen driver it might be trying to use. We don't know what interface it's got or what touchscreen controller chip is on the board. Furnish that and we may have a better clue how to get it running. Or toss that scr...
by DougieLawson
Tue Mar 12, 2019 5:58 pm
Forum: C/C++
Topic: CodeBlocks and pigpio
Replies: 11
Views: 235

Re: CodeBlocks and pigpio

What version of that are you using?
Where did it come from?
by DougieLawson
Tue Mar 12, 2019 5:52 pm
Forum: Advanced users
Topic: raspi-copies-and-fills package gone AWOL?
Replies: 14
Views: 1180

Re: raspi-copies-and-fills package gone AWOL?

Boot from the rescue system again. Insert the SDCard and run

for X in 1 2 5 6; do sudo umount /dev/sda$X; sudo fsck -f -y /dev/sda$X; done

That should make it bootable.
by DougieLawson
Tue Mar 12, 2019 5:48 pm
Forum: C/C++
Topic: CodeBlocks and pigpio
Replies: 11
Views: 235

Re: CodeBlocks and pigpio

What version of pigpiod?
by DougieLawson
Tue Mar 12, 2019 5:46 pm
Forum: General discussion
Topic: Static IP address changed
Replies: 3
Views: 117

Re: Static IP address changed

Go and ask your school's IT Helpdesk. Helping students is what they're there for, that's what they're paid to do.
by DougieLawson
Tue Mar 12, 2019 5:37 pm
Forum: C/C++
Topic: CodeBlocks and pigpio
Replies: 11
Views: 235

Re: CodeBlocks and pigpio

With WiringPi you can set an environment variable to allow it to run without sudo. You have clearly caught a dose of sudoitis. That's a nasty disease where Raspberry users assume the answer to all problems is sudo. export WIRINGPI_GPIOMEM=1 in bash. Or do it in C programs with setenv ("WIRINGPI_GPIO...
by DougieLawson
Tue Mar 12, 2019 12:03 pm
Forum: C/C++
Topic: CodeBlocks and pigpio
Replies: 11
Views: 235

Re: CodeBlocks and pigpio

pigpio does NOT need sudo. It's the pigpiod daemon that runs privileged.
Most GPIO access doesn't need sudo.

Go to advanced search