Go to advanced search

by tpyo kingg
Fri Jun 14, 2019 4:12 am
Forum: General discussion
Topic: simple html <button> execute aplay
Replies: 2
Views: 137

Re: simple html <button> execute aplay

If you are using PHP (are you sure it's 5 and not 7?) take a look at the system() function to call aplay. Just remember that Apache2 needs read access to the sound file. However, if you don't let the script act on any inputs, then it could even be as simple as a CGI shell script: #!/bin/sh echo -e "...
by tpyo kingg
Fri Jun 14, 2019 3:57 am
Forum: Beginners
Topic: How do you name your Pies?
Replies: 14
Views: 303

Re: How do you name your Pies?

Going to be a lot easier for me, as I've only got two so far and I don't see myself getting more. Or is that famous last words? Just like potato chips I tell you... you can't have just one. They tend to proliferate. But even if you don't buy any more or receive some as presents, or don't give away ...
by tpyo kingg
Thu Jun 13, 2019 7:45 pm
Forum: Beginners
Topic: How do you name your Pies?
Replies: 14
Views: 303

Re: How do you name your Pies?

Since I generally operate them headless via SSH and or UART, having a host name which identifies the task at hand makes a big difference. I've settled on using a single-word mnemonic for the particular project plus a two-digit number for the SD card's storage slot. The storage slots have some pencil...
by tpyo kingg
Wed Jun 12, 2019 7:00 pm
Forum: Other projects
Topic: Autorefresh file upon save on multiple PIs
Replies: 4
Views: 98

Re: Autorefresh file upon save on multiple PIs

Another way could be to have a script or unit file fetch the document from a web server using curl or wget and then display it with LibreOffice. See the --view option along with maybe also --display, --norestore, and --invisible. The web server could be one of the Raspberry Pis, but doesn't have to ...
by tpyo kingg
Wed Jun 12, 2019 11:58 am
Forum: Raspbian
Topic: Unzipping .zip image to SD disk?
Replies: 5
Views: 179

Re: Unzipping .zip image to SD disk?

You'd need the options -c and -d for unzip to use it in a pipe. Likewise for dd, you'd need if=/dev/stdin to deal with input via the pipe. See the manual pages to be sure.
by tpyo kingg
Tue Jun 11, 2019 5:43 pm
Forum: Raspbian
Topic: Webmin or an alternative
Replies: 10
Views: 741

Re: Webmin or an alternative

Thanks. I'll take look. I missed making a followup post: I ended up just puting together a script and calling it via CGI. That was fast to write and meant I could configure just the functions I needed with no extras as distractions.
by tpyo kingg
Mon Jun 10, 2019 8:30 am
Forum: General discussion
Topic: Triple Monitor Support + Computer Replacement
Replies: 11
Views: 437

Re: Triple Monitor Support + Computer Replacement

Question 1 - Is it possible to use / connect 1 or more Raspberry Pi computers together so I can still run 3x 1920x1080 monitors (left to right), and avoid the need to buy another laptop / desktop. synergy is also there in the Raspbian repository. I haven't tried it myself but do know a few people w...
by tpyo kingg
Mon Jun 10, 2019 4:50 am
Forum: General discussion
Topic: Raspberry Pi-based Prosthetic leg
Replies: 1
Views: 121

Raspberry Pi-based Prosthetic leg

Apparently a Raspberry Pi running Python3 is the main controller in the prosthetic leg shown here: https://news.umich.edu/open-source-bionic-leg-first-of-its-kind-platform-aims-to-rapidly-advance-prosthetics/ The project has its own site with specifications with a lot of details . Disclosure: two de...
by tpyo kingg
Sun Jun 09, 2019 3:26 pm
Forum: General discussion
Topic: Help- raspberry pi ip logger for fun
Replies: 2
Views: 94

Re: Help- raspberry pi ip logger for fun

nmap will do some of that.
by tpyo kingg
Fri Jun 07, 2019 1:35 pm
Forum: Graphics, sound and multimedia
Topic: Select and display random images with ImageMagick
Replies: 3
Views: 149

Re: Select and display random images with ImageMagick

The above formula in your second script won't work. xargs works differently. However, even when the flow is corrected I'm not seeing a way for xargs (or parallel) to pass all the pictures' file names ahead of the output file name. So I would try it with command substitution instead: #!/bin/sh montag...
by tpyo kingg
Fri Jun 07, 2019 9:25 am
Forum: The MagPi
Topic: Undoing double subscription
Replies: 2
Views: 257

Re: Undoing double subscription

Yes, it just shows both subscriptions all week without any options to adjust them in any way, as far as I can tell.
by tpyo kingg
Fri Jun 07, 2019 7:51 am
Forum: The MagPi
Topic: Undoing double subscription
Replies: 2
Views: 257

Undoing double subscription

I've tried contacting the MagPi subscription service ( Raspberry Pi <raspberrypi@subscriptionhelpline.co.uk> ) several times since last Friday but not gotten any response. My subscription expired without me receiving a notice that it was about to end and when I tried to subscribe, I got an error mes...
by tpyo kingg
Thu Jun 06, 2019 3:20 am
Forum: Networking and servers
Topic: sch password
Replies: 14
Views: 415

scp password

Please give more detail about what you have tried and what your general goal is. scp is considered deprecated these days and there is probably a more apropriate alternative. Just a wild guess, if you are logging into the Raspberry Pi from a different account, you will also need to specify the name o...
by tpyo kingg
Sat Jun 01, 2019 5:22 pm
Forum: Raspbian
Topic: SSH (iptables): how to allow only one IP
Replies: 4
Views: 168

Re: SSH (iptables): how to allow only one IP

I usually have DROP in my default policies, rather than putting a REJECT at the end of the table. I don't want my systems to waste time replying to junk. The policies can only default to DROP, they can't handle REJECT so the latter has to be added to the chains to make it a default action. DROP is ...
by tpyo kingg
Sat Jun 01, 2019 4:18 pm
Forum: General discussion
Topic: How to get smooth play back in libreoffice impress?
Replies: 3
Views: 107

Re: How to get smooth play back in libreoffice impress?

With regular video it seems to help to play a lower resolution. No need to try to pump more data than will be used. So I would suggest adjusting the resolution of the video to just the actual part of the screen being used in the presentation. Reencode if necessary.
by tpyo kingg
Sat Jun 01, 2019 3:31 pm
Forum: Raspbian
Topic: SSH (iptables): how to allow only one IP
Replies: 4
Views: 168

Re: SSH (iptables): how to allow only one IP

The first rule should allow the loopback interface to communicate with itself. Without it, the system cannot run. The second rule in the INPUT rule should allow all ESTABLISH and RELATED connections in. Otherwise your outgoing connections cannot return. Ping is good to allow, too. Then the fourth ru...
by tpyo kingg
Fri May 31, 2019 1:53 pm
Forum: Other programming languages
Topic: Photos Gallery into iframe html web server
Replies: 3
Views: 137

Re: Photos Gallery into iframe html web server

How fancy do you need the functions on your photo gallery to be? I made mine using a little perl and the rest static HTML5 and CSS3. You can do a heck of lot with SFTP, some home made templates, and a little python or perl or even shell script. On the other end of the spectrum, there are some very c...
by tpyo kingg
Fri May 31, 2019 12:55 pm
Forum: Advanced users
Topic: What is the preferred FS format for high-cap external drives?
Replies: 12
Views: 1260

Re: What is the preferred FS format for high-cap external drives?

ZFS should work with as little as 64MB of RAM, at least that is what some of the specialists have claimed for recent versions. Do you have a link? Not a direct one. I've read other requirements and adjusted the configurations and done some experimenting with it on the Raspberry Pi in FreeBSD 12. Ot...
by tpyo kingg
Fri May 31, 2019 4:28 am
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 403

Re: How to access an active program on headless Pi?

DougieLawson wrote:
Thu May 30, 2019 4:27 pm
I'd use ps -ef | grep clock to find the PID of the process (named clock in my example). Then assuming that returned 12345. kill -term 12345 # with the PID I've discovered
pkill is another option, if the process has a unique name

Code: Select all

pkill -x -TERM clockprog
by tpyo kingg
Fri May 31, 2019 4:18 am
Forum: Advanced users
Topic: What is the preferred FS format for high-cap external drives?
Replies: 12
Views: 1260

Re: What is the preferred FS format for high-cap external drives?

ZFS is fantastic for mac/linux but won't work with Windows and a Pi doesn't have the RAM. ZFS should work with as little as 64MB of RAM, at least that is what some of the specialists have claimed for recent versions. However, there are a few options which might have to be tuned, such as arc_max, km...
by tpyo kingg
Tue May 28, 2019 12:34 pm
Forum: General discussion
Topic: snyology like raspberry pi?
Replies: 9
Views: 564

Re: snyology like raspberry pi?

You can use mdadm to create a RAID1 device out of your two drives.

Then you can make that device available over the LAN using Samba or NFS. Setting disk quotas would ensure that they are each limited to no more than half.
by tpyo kingg
Mon May 27, 2019 9:51 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Physically attaching multiple I2C devices to RPi Zero
Replies: 2
Views: 225

Physically attaching multiple I2C devices to RPi Zero

I'm looking at parts for a possible project but have questions about how methods for attaching a PiTFTplus LCD screen (SPI), a DS3231 real-time clock (I2C), and a MLX90640 thermal imager (I2C) all to the same Raspberry Pi Zero, or Zero W, or Zero WH. What would be the best kind of arrangement to max...
by tpyo kingg
Sun May 26, 2019 3:06 am
Forum: Advanced users
Topic: What is the preferred FS format for high-cap external drives?
Replies: 12
Views: 1260

Re: What is the preferred FS format for high-cap external drives?

Never understood why Apple did not enable the hack - walled garden I assume. Some of that but mostly NTFS is an unreliable format. Also, since Apple operates mostly from the US, the fact that NTFS is loaded down with software patents is an additional barrier. Apple would have to pay extra licensing...
by tpyo kingg
Sat May 25, 2019 10:11 am
Forum: Advanced users
Topic: What is the preferred FS format for high-cap external drives?
Replies: 12
Views: 1260

Re: What is the preferred FS format for high-cap external drives?

The native format, in this case EXT4, is usually best. For what it's worth, the last I checked even with added software OS could only access EXT systems safely read-only. So if you think you must some day connect the external drive directly to your OS X machine then you might use HFS+ instead. I see...
by tpyo kingg
Thu May 23, 2019 5:35 pm
Forum: Beginners
Topic: SSH on real console
Replies: 1
Views: 102

Re: SSH on real console

The way I deal with that kind of situation is to launch the script(s) within a special tmux session. I can then re-attach to the tmux session from the console or via SSH. Here are two examples from /etc/rc.local, the first one is rather simple, the second one sets up more: /usr/bin/tmux new-session ...

Go to advanced search