Go to advanced search

by thagrol
Mon Jun 18, 2018 11:56 am
Forum: Advanced users
Topic: Can't SSH into Pi with Hostapd
Replies: 7
Views: 1309

Re: Can't SSH into Pi with Hostapd

Curious.

What IP address is you phone/juicessh using to connect to the Pi? 172.20.1.22 or 192.168.1.1?
by thagrol
Mon Jun 18, 2018 11:54 am
Forum: Android
Topic: Replacing car head unit
Replies: 6
Views: 9026

Re: Relacing car head unit

aharonhakohen wrote:
Mon Jun 18, 2018 1:32 am
I would like to REPLACE my car's head unit with a Raspberry Pi running Android. I would add a digital to analog audio converter, a USB GPS, a fm tuner, camera, etc.
Last time I checked there ia no version of android that runs on any Pi model. (Well android things but that isn't stock android)
by thagrol
Mon Jun 18, 2018 11:40 am
Forum: Advanced users
Topic: Can't SSH into Pi with Hostapd
Replies: 7
Views: 1309

Re: Can't SSH into Pi with Hostapd

Are you trying to connect by hostname or IP address? Is the machine you're trying to connect from actually connected to the Pi's hotspot? With two network interfaces the Pi will have two IP addresses.Which one your client is using (or which one the hostname it's ising resolves to) affect which inter...
by thagrol
Mon Jun 18, 2018 11:32 am
Forum: Beginners
Topic: Access denied on SHH (password is correct, user is pi)
Replies: 15
Views: 1232

Re: Access denied on SHH (password is correct, user is pi)

I really wasn't going to respond further on this as I'd started feeding the troll But there are some points I do feel I have to respond to. And if the user is running their Pi headless? Or there's no internet connection? (about the only way you can do what you're suggesting for locale is geo-ip look...
by thagrol
Sun Jun 17, 2018 10:47 pm
Forum: Advanced users
Topic: Pi Zero as a USB keyboard (HID gadget)
Replies: 34
Views: 27104

Re: Pi Zero as a USB keyboard (HID gadget)

# cat /boot/cmdline.txt dwc_otg.lpm_enable=0 console=tty1 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether The piece at the end is what makes the ethernet gadget work. Do I have to remove that? Is there a similar piece n...
by thagrol
Sun Jun 17, 2018 10:35 pm
Forum: Beginners
Topic: Access denied on SHH (password is correct, user is pi)
Replies: 15
Views: 1232

Re: Access denied on SHH (password is correct, user is pi)

What I would like to see - and which we will see; it's just a matter of time - is a "first boot" script (a "Wizard" if you will) that takes you through the "must-set" options in raspi-config. And if the user is running their Pi headless? Or there's no internet connection? (about the only way you ca...
by thagrol
Sun Jun 17, 2018 10:22 pm
Forum: Troubleshooting
Topic: USB Auto mount - Raspbian Stretch Lite [Solved]
Replies: 20
Views: 103186

Re: USB Auto mount - Raspbian Stretch Lite [Solved]

donbrew wrote:
Sun Jun 17, 2018 8:56 pm
The problem with using fstab is it won't boot if the drive is not plugged in first. The system gets stuck looking for it.
There's an easy fix for that: add "nofail" to the mount options in your fstab entry.
by thagrol
Sun Jun 17, 2018 4:24 pm
Forum: Advanced users
Topic: Pi Zero as a USB keyboard (HID gadget)
Replies: 34
Views: 27104

Re: Pi Zero as a USB keyboard (HID gadget)

I've got the isticktoit tutorial working. My code is here: https://github.com/thagrol/pwdgen/blob/ ... idsetup.sh for comparison.
by thagrol
Sun Jun 17, 2018 4:18 pm
Forum: Beginners
Topic: GPIO + memory resident programs (and other ?)
Replies: 2
Views: 300

Re: GPIO + memory resident programs (and other ?)

Ah DOS, I remember that :) Unlike DOS, linux is multiuser and doesn't reallt have the same concept of TSR programs that DOS did. You can run pretty much any shell command as a background job by appending "&" to the command line used to launch it e.g. python /path/to/script & It will stay running unt...
by thagrol
Sun Jun 17, 2018 4:07 pm
Forum: Beginners
Topic: Access denied on SHH (password is correct, user is pi)
Replies: 15
Views: 1232

Re: Access denied on SHH (password is correct, user is pi)

Somebody should write a Pi utility that does: 1) Uses the Internet to figure out where the user is. This is a little creepy to think about, but the fact is that the data is there and lots of programs use it. Given your IP address, they know where you are to within, I think, a 6 mile radius. 2) Conf...
by thagrol
Sat Jun 16, 2018 10:28 pm
Forum: Compute Module
Topic: Compute Module 3 with usb ssh
Replies: 3
Views: 1529

Re: Module 3 with usb ssh

NP. The confusion could just as well have been on my end. As I understand it, the USB host port is just that. So you should be able to connect a USB wifi or ethernet dongle. Via a hub if you need other USB devices too. Of course, you won't be able to use both the host and slave ports at the same time.
by thagrol
Fri Jun 15, 2018 7:14 pm
Forum: Beginners
Topic: Connect to NanoPi using the Raspberry via SSH
Replies: 4
Views: 585

Re: Connect to NanoPi using the Raspberry via SSH

This? http://www.nanopi.org/

If so the OP might sdo better asking on their forums.
by thagrol
Fri Jun 15, 2018 7:09 pm
Forum: Advanced users
Topic: Mapping Network Drive (NAS)
Replies: 3
Views: 883

Re: Mapping Network Drive (NAS)

bob_binz wrote:
Thu Jun 14, 2018 8:23 pm
Which operating system are you using?

Try adding vers=1.0 to the options list, e.g.

Code: Select all

sudo mount -t cifs -o username=<Uname>,password=<pwd>,vers=1.0 //192.168.0.xxx/Share /mnt/mylocalfold
--
BBz
Doubt that'll make any difference. Try replaceing "username= with "user="

See

Code: Select all

man mount.cifs
by thagrol
Fri Jun 15, 2018 7:05 pm
Forum: Compute Module
Topic: Compute Module 3 with usb ssh
Replies: 3
Views: 1529

Re: Module 3 with usb ssh

Hi everybody, I have a question, possible there is already answer on forum but i fail to find it: Is it possible "to ssh" to module 3 over micro usb cable on using slave port? OR can I put micro usb to usb adapter and put wifi dongle on usb SLAVE port for "ssh-ing" from pc? If by "module 3" you mea...
by thagrol
Tue Jun 12, 2018 10:24 pm
Forum: Raspberry Pi OS
Topic: Cannot automount Synology NAS server folder
Replies: 3
Views: 812

Re: Cannot automount Synology NAS server folder

Try configuring wait for network in raspi-config's boot options and/or adding _netdev to the mount options in your fstab entry.
by thagrol
Tue Jun 12, 2018 10:18 pm
Forum: Advanced users
Topic: Turning off power on a PI Zero W
Replies: 6
Views: 2908

Re: Turning off power on a PI Zero W

srjacob wrote:
Tue Jun 12, 2018 12:25 pm
I will be using Zero MQ, but no open files on the PI Zero.
You could go with a read only root approach in that case. Search the forum or hit google.
by thagrol
Tue Jun 12, 2018 10:15 pm
Forum: Advanced users
Topic: How to Use Raspberry Pi to start a program on a external Computer
Replies: 3
Views: 430

Re: How to Use Raspberry Pi to start a program on a external Computer

Can't give more guidence on how to start vthe remote process without knowing more about both it and the model Pi you're using. However a couple of vague suggestions: 1. Write your own python client on the PC that you can comuunicate with from the Pi. 2. If using a Pi Zero/ZeroW configure it as a USB...
by thagrol
Tue Jun 12, 2018 10:05 pm
Forum: Advanced users
Topic: How to Use Raspberry Pi to start a program on a external Computer
Replies: 3
Views: 430

Re: How to Use Raspberry Pi to start a program on a external Computer

Possible? Don’t see why not. How much finesse do you want? What sort of control? What other program? Quick and dirty solution. Have a PowerShell script on the PC that occasionally pings the Pi. When it responds.... (PowerShell gives you .NET and a relatively simple interface) Nope, that'll start th...
by thagrol
Tue Jun 12, 2018 9:55 pm
Forum: Beginners
Topic: Format SD card with pi
Replies: 4
Views: 456

Re: Format SD card with pi

Were you trying to format the SD card the pi was running from? If so, that ain't gonna work easily, if at all. If you were trying to format an SD card in a USB card reader, make sure that it hasn't been mounted anywhere and that you're trying to format the correct device. Hint: the one callled /dev/...
by thagrol
Mon Jun 11, 2018 7:14 pm
Forum: Beginners
Topic: Send a file from my PC through LAN to a HDD connected to my Raspberry
Replies: 3
Views: 326

Re: Send a file from my PC through LAN to a HDD connected to my Raspberry

Or try scp, though you may have to enable ssh first.

One windows app that supports it (there are others) is winscp
by thagrol
Mon Jun 11, 2018 7:07 pm
Forum: Beginners
Topic: Headless sdcard shutdown power off
Replies: 13
Views: 1305

Re: Headless sdcard shutdown power off

IF you have nothing that writes to the SD card, this might be worth a look: https://learn.adafruit.com/read-only-raspberry-pi
by thagrol
Sun Jun 10, 2018 6:24 pm
Forum: Networking and servers
Topic: HELP: Monitoring PC Sleep/Wake status
Replies: 2
Views: 454

Re: HELP: Monitoring PC Sleep/Wake status

Testing for a response to a network message isn't enough. If the target PC is busy you may not get a timely response which would give you a false positive. It also doesn't distinguish between a crash and a legitimate sleep/poweroff. You may also need to distinguish between a reboot (system down for ...
by thagrol
Fri Jun 08, 2018 7:29 pm
Forum: Other projects
Topic: PiCamera Button Activated Network Share
Replies: 2
Views: 663

Re: PiCamera Button Activated Network Share

For a one-shot still image that's overly complex. I'd do it like this: Mount the SMB share on the camera pi When the button is pressed run something like: raspistill -o /path/to/smbshare/$(date +"%Y-%m-%d_%H%M").jpg As long as you don't take more than one image a in any given minute you shouldn't ha...
by thagrol
Fri Jun 08, 2018 7:19 pm
Forum: Beginners
Topic: backup windows directories to RPi over the network
Replies: 5
Views: 815

Re: backup windows directories to RPi over the network

I've setup an RPi with a USB hard drive and wifi in an enclosure and set that up in my house. The RPi is available on the network and I can use putty from windows to login via ssh. The USB drive is auto mounted and available on the RPi. You'll need to make that HDD availble over the network, look i...
by thagrol
Fri Jun 08, 2018 7:13 pm
Forum: Beginners
Topic: Running crontab forever. [Solved]
Replies: 9
Views: 1093

Re: Running crontab forever.

They should. Your crontab persists across reboots.

Rather than trust google, try

Code: Select all

man cron
man crontab
in a terminal.

Go to advanced search