Go to advanced search

by yy502
Thu Jan 18, 2018 12:41 pm
Forum: Advanced users
Topic: Does anyone have the time and is willing to risk a Pi to a 170 MB hosts file?
Replies: 2
Views: 442

Re: Does anyone have the time and is willing to risk a Pi to a 170 MB hosts file?

You can probably compress it to about 5% of its original size using gzip.
by yy502
Fri Oct 20, 2017 11:48 am
Forum: Troubleshooting
Topic: First time Pi3 user - feels cheated
Replies: 12
Views: 3103

Re: First time Pi3 user - feels cheated

Create a script, call it omx-live.sh or whatever. Paste the code below into it. Make it executable. Optionally, move it to /usr/local/bin/ #!/bin/bash YT_URL="" if [ -z "$1" ] ; then echo -n "Enter YouTude video URL: " read -e YT_URL else YT_URL=$1 fi echo "Retrieving YouTube video URL from $YT_URL"...
by yy502
Thu Oct 19, 2017 2:04 pm
Forum: Advanced users
Topic: Log Nth line in data log
Replies: 4
Views: 959

Re: Log Nth line in data log

use awk
by yy502
Fri Sep 29, 2017 6:44 pm
Forum: Advanced users
Topic: Raspbian Stretch - omxplayer build dependency conflict
Replies: 4
Views: 1571

Re: Raspbian Stretch - omxplayer build dependency conflict

The build failed without libssl-dev . Guess libssl-dev and libssl1.0-dev are different after all. $ make Makefile:104: warning: overriding recipe for target 'install' Makefile:95: warning: ignoring old recipe for target 'install' Makefile:107: warning: overriding recipe for target 'uninstall' Makefi...
by yy502
Fri Sep 29, 2017 6:36 pm
Forum: Advanced users
Topic: Raspbian Stretch - omxplayer build dependency conflict
Replies: 4
Views: 1571

Re: Raspbian Stretch - omxplayer build dependency conflict

libssh-dev and libssl1.0-dev can coexist just fine. It's omxplayer that insists on having libssl-dev rather than libssl1.0-dev . $ ./prepare-native-raspbian.sh Modifying for native build on Debian Checking dpkg database for missing packages .................. You are missing required packages. Run ...
by yy502
Fri Sep 29, 2017 3:12 pm
Forum: Advanced users
Topic: Raspbian Stretch - omxplayer build dependency conflict
Replies: 4
Views: 1571

Raspbian Stretch - omxplayer build dependency conflict

Both libssl-dev and libssh-dev are required for building omxplayer from source. Since upgraded to Stretch, libssl-dev and libssh-dev can't co-exist. You install one, the other would get uninstalled automatically. If you install both in one line, you get: $ sudo apt-get install libssl-dev libssh-dev ...
by yy502
Thu Sep 14, 2017 10:31 pm
Forum: Raspbian
Topic: usbmount doesnt work
Replies: 10
Views: 14111

Re: usbmount doesnt work

Here's my solution based on the one mentioned in previous post. sudo apt-get install pmount Add the following to /etc/udev/rules.d/usbstick.rules ACTION=="add", KERNEL=="sd[a-z][0-9]", TAG+="systemd", ENV{SYSTEMD_WANTS}="[email protected]%k" Add the following to /lib/systemd/system/[email protected]...
by yy502
Mon Mar 13, 2017 4:23 pm
Forum: Troubleshooting
Topic: Pi Zero GPIO pin stuck at low even when pulled up
Replies: 14
Views: 1915

Re: Pi Zero GPIO pin stuck at low even when pulled up

I imagine that you are using some kind of relay driver board? If so then current limiting resistors shouldn't be necessary (as they will be built into the relay board). If you are trying to energise relays directly from the Pi then expect to lose another Pi, they cant handle the load directly. Yes,...
by yy502
Mon Mar 13, 2017 10:06 am
Forum: Troubleshooting
Topic: Pi Zero GPIO pin stuck at low even when pulled up
Replies: 14
Views: 1915

Re: Pi Zero GPIO pin stuck at low even when pulled up

Thanks for the tip! I always thought RPi would have some kind of current protection built-in for the GPIOs. I'm using 2 pins to control some relays. Do I need current limiting resistors for them too? If the GPIO pin was ever set as an output and set high the lack of a current limiting resistor would...
by yy502
Thu Mar 09, 2017 11:01 pm
Forum: Beginners
Topic: please help test my omxplayer deb package
Replies: 0
Views: 231

please help test my omxplayer deb package

Hi all, Please help me test my ready-built omxplayer deb package from https://github.com/yy502/omxplayer-deb-package It was built on my RP2B running jessie, and I wonder if it will work on other models/versions of RPis. Please leave a comment especially if it failed on yours. I intend to track the c...
by yy502
Fri Mar 03, 2017 2:14 pm
Forum: Troubleshooting
Topic: Pi Zero GPIO pin stuck at low even when pulled up
Replies: 14
Views: 1915

Re: Pi Zero GPIO pin stuck at low even when pulled up

yeh.... already ordered the new Zero W... but I just don't get it why the pins broke for no good reason? It's usually done by sending 5V (or higher) into a GPIO (that isn't true for the SDA/SCL pins which have 1K8 pullups). For the record, I moved the sensor data wire to GPIO 6 and it works again. ...
by yy502
Fri Mar 03, 2017 2:00 pm
Forum: Troubleshooting
Topic: Pi Zero GPIO pin stuck at low even when pulled up
Replies: 14
Views: 1915

Re: Pi Zero GPIO pin stuck at low even when pulled up

DougieLawson wrote:
yy502 wrote: Is there a way to fix these?
It'll cost you a fiver or a tenner if you want on-board wireless.
yeh.... already ordered the new Zero W... but I just don't get it why the pins broke for no good reason?
by yy502
Fri Mar 03, 2017 1:58 pm
Forum: Troubleshooting
Topic: Pi Zero GPIO pin stuck at low even when pulled up
Replies: 14
Views: 1915

Re: Pi Zero GPIO pin stuck at low even when pulled up

move to another pin, but post your circuit diagram first so we can fix it hmmm, it's a very simple circuit as below: +-------+ | | | DHT22 | | | +-+-+-+-+ | | | | | | | | +-----+ GND | | | +--+----+ GPIO | | | +-+-+ | |10k| | +-+-+ | | +----+----+ 3.3V I guess I can use another pin, but I'm curious...
by yy502
Fri Mar 03, 2017 1:07 pm
Forum: Troubleshooting
Topic: Pi Zero GPIO pin stuck at low even when pulled up
Replies: 14
Views: 1915

Re: Pi Zero GPIO pin stuck at low even when pulled up

joan wrote:With nothing connected to the GPIO try wiringPi's pintest utility or try my gpiotest.
got some faults :-(
--> Pin 4 failure. Expected 1, got 0
--> Pin 5 failure. Expected 1, got 0
Is there a way to fix these?
by yy502
Thu Mar 02, 2017 11:57 am
Forum: Troubleshooting
Topic: Pi Zero GPIO pin stuck at low even when pulled up
Replies: 14
Views: 1915

Re: Pi Zero GPIO pin stuck at low even when pulled up

joan wrote:With nothing connected to the GPIO try wiringPi's pintest utility or try my gpiotest.
will do this evening and post an update. thanks for the advice!
by yy502
Thu Mar 02, 2017 11:24 am
Forum: Troubleshooting
Topic: Pi Zero GPIO pin stuck at low even when pulled up
Replies: 14
Views: 1915

Pi Zero GPIO pin stuck at low even when pulled up

Background I've been using a DHT22 sensor with my RP0 for some time already and it worked perfectly well. I use a 10k Ohm resistor to pull up GPIO 5 (BCM 24) to 3.3V, and all the voltage tests fine using a multimeter. i.e. 3.3V across GPIO 5 and GND. Issue One day I found my DHT22 isn't reading dat...
by yy502
Wed Jul 27, 2016 1:48 pm
Forum: Networking and servers
Topic: MAC address changer
Replies: 2
Views: 785

Re: MAC address changer

if you have access to your pi without relying on network, i.e. ssh, you can potentially have a simple bash script to do this. the ethernet port needs to be brought down first and have its mac changed, then brought up again to reconnect to your network. so you will lose network connectivity momentari...
by yy502
Sun Feb 28, 2016 11:25 pm
Forum: General discussion
Topic: Pi Zero onboard wifi hack
Replies: 32
Views: 45376

Re: Pi Zero onboard wifi hack

Here's my solution. The full size female USB socket is semi-secured onto the board by soldering with 2 of the feet of the mini HDMI socket. It holds the socket and a WiFi dongle reasonably stable. You will still need to press the USB socket against the PCB when plug/unplug anything to be safe. This ...
by yy502
Tue Jan 26, 2016 9:53 pm
Forum: Advanced users
Topic: Auto mount USB drive as shared for all users
Replies: 7
Views: 5177

Re: Auto mount USB drive as shared for all users

OK, my approach of selective-automount is to still use udev rules, but with more conditions. i.e. disk uuid in this case. # test rule before reloading: udevadm test $(udevadm info -q path -n /dev/sdxx) 2>&1 KERNEL!="sd[a-z][1-9]", GOTO="automount_end" ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="...
by yy502
Tue Jan 26, 2016 8:25 pm
Forum: Advanced users
Topic: Auto mount USB drive as shared for all users
Replies: 7
Views: 5177

Re: Auto mount USB drive as shared for all users

I have a solution for you based on my previous code. will post here when I get home tonight. Okay I have written a command line program called "am" which is short for "automount" it must be run under root. The program uses the output of the blkid program to determine when a user inserts a disk with ...
by yy502
Sun Jan 03, 2016 1:06 am
Forum: Advanced users
Topic: Autoscript Browser Login Form after Startup to acc Network
Replies: 6
Views: 2400

Re: Autoscript Browser Login Form after Startup to acc Netwo

You can do so using selenium via a python script and headless browser (phantomjs). The script below is what I use to load a forum, log in, navigate to the "clock in" App, select the desired option (radio button) and submit. Runs daily as a cron job. You will need to look into the web page source co...
by yy502
Mon Dec 07, 2015 11:18 pm
Forum: Advanced users
Topic: Backup SD card image to USB disk while Raspberry is running
Replies: 7
Views: 2194

Re: Backup SD card image to USB disk while Raspberry is runn

Yes, it's possible. Just use tar and exclude certain dirs. I back up my system to a tgz file every 15 days with a cron job. This is my back up script. 1st argument is target file prefix, or enter it when prompted. #!/bin/bash DES="" if [ -z "$1" ] ; then echo -n "Enter target backup file PREFIX with...
by yy502
Wed Nov 18, 2015 9:38 pm
Forum: Advanced users
Topic: Autoscript Browser Login Form after Startup to acc Network
Replies: 6
Views: 2400

Re: Autoscript Browser Login Form after Startup to acc Netwo

You can do so using selenium via a python script and headless browser (phantomjs). The script below is what I use to load a forum, log in, navigate to the "clock in" App, select the desired option (radio button) and submit. Runs daily as a cron job. You will need to look into the web page source cod...
by yy502
Thu Nov 12, 2015 3:26 pm
Forum: Advanced users
Topic: Auto mount USB drive as shared for all users
Replies: 7
Views: 5177

Re: Auto mount USB drive as shared for all users

Here's what I use to auto-mount when plugging in. You will need to manually umount your disk before unplugging, and the mount points will be auto-removed. Create: /etc/udev/rules.d/10-my-media-automount.rules With the following content: # start at sda (i.e. sd[a-z]) disk, or sdb to skip your USB sys...

Go to advanced search