Go to advanced search

by swampdog
Fri Jul 29, 2016 12:40 pm
Forum: Beginners
Topic: Selecting Languages for software development
Replies: 16
Views: 2542

Re: Selecting Languages for software development

Huh. What makes C++ less portable? It's compiled so there's a certain set of runtime dependencies. That's almost a non-issue though because you have all the sources so can rebuild it for any new target for which QT exists. The other issue is you have to build against a given OS. The Windows API is ...
by swampdog
Fri Jul 22, 2016 11:25 pm
Forum: Beginners
Topic: Selecting Languages for software development
Replies: 16
Views: 2542

Re: Selecting Languages for software development

As you know C++ then I'd go for QT. It is the most portable. Develop your app using a mainstream linux box. Use the pi for the final build/test. If there's one thing I could go back and change, it was being told/persuaded to learn WinAPI when I knew in my heart QT was a winner. That said, if you don...
by swampdog
Fri Jul 22, 2016 10:53 pm
Forum: General discussion
Topic: Need assistance with mounting drives at startup
Replies: 5
Views: 1141

Re: Need assistance with mounting drives at startup

Hi all, I am trying to mount SMB shares from another raspberry pi to a raspberry pi. Both pi are running raspbian jessie lite. My issue is that I have been organizing my media library and in order to keep the folders separate I had to create 8 SMB shares. When I had just a few shares it would load ...
by swampdog
Fri Jul 22, 2016 10:18 pm
Forum: Advanced users
Topic: Config SSH from
Replies: 17
Views: 7624

Re: Config SSH from

You can use nano .ssh/known_hosts to view it. rm .ssh/known_hosts to delete ALL of it or use ssh-keygen -f "/home/ xxxYourUserHerexxx /.ssh/known_hosts" -R 192.168.1.37 to remove one entry for a 'failing' IP (192.168.1.37 in this case) Not forgetting the "hack 'n' slash" method.. $ nano -w ~/.ssh/k...
by swampdog
Fri Jul 22, 2016 9:39 am
Forum: General programming discussion
Topic: Porting code to raspberry pi from source code? (Non coder)
Replies: 5
Views: 988

Re: Porting code to raspberry pi from source code? (Non code

The sources for well supported code which make use the autotools or cmake will be a good reference point because they are supposed to work. When they don't there's a much greater chance you can assume you have done something wrong (typically a missing package). Over the years I've had to port or cus...
by swampdog
Thu Jul 21, 2016 10:19 pm
Forum: Advanced users
Topic: Config SSH from
Replies: 17
Views: 7624

Re: Config SSH from

Actually it should still work. We used to clone headless linux VM's all the time safe in the knowledge the cloned VM would have an "admin" account we could ssh into to complete configuration. Perhaps it is putty? Well, this isn't quite a clone of vm as the mac and IP have changed and won't match an...
by swampdog
Thu Jul 21, 2016 7:33 pm
Forum: C/C++
Topic: -static library
Replies: 1
Views: 1275

Re: -static library

I don't know this library but from the looks of it you have the choice to build static or dynamic libs. The 'build' script defaults to dynamic. It looks like you have to.. $ build static You should then have " libwiringPi.a" as well as the dynamic one "libwiringPi.so*". A note of caution with "-stat...
by swampdog
Thu Jul 21, 2016 6:16 pm
Forum: Advanced users
Topic: Config SSH from
Replies: 17
Views: 7624

Re: Config SSH from

This should work if you have to enter a password (I swap cards around all the time and putty hates it due to changes in mac and ip). It should fail (and it does) if you have set ssh keys up, as they will no longer be valid for the cloned card / device comb. Actually it should still work. We used to...
by swampdog
Thu Jul 21, 2016 6:53 am
Forum: General discussion
Topic: Unexpected shutdowns protection - different filesystem?
Replies: 10
Views: 1797

Re: Unexpected shutdowns protection - different filesystem?

I'm planning to replace some virtual machines (VM) with pi's to save space & power. The VM host uses software raid1 and LVM (Logical Volume Manager) with (because it's old) ext3. That setup has seen me through most(*) issues. I haven't done it yet because my situation is complex. Nevertheless my pla...
by swampdog
Thu Jul 21, 2016 12:58 am
Forum: Advanced users
Topic: Config SSH from
Replies: 17
Views: 7624

Re: Config SSH from

Try "ssh -vvv [blah]". The reason for failure will be displayed (whether it makes sense or not is another matter). Compare it with the working one.
by swampdog
Thu Jul 21, 2016 12:53 am
Forum: Advanced users
Topic: Resolve the raspberryPi3 with hostname
Replies: 2
Views: 649

Re: Resolve the raspberryPi3 with hostname

This sounds like a windows problem..

$ sudo systemctl status dhcpcd
$ sudo cat /var/log/messages | grep eth0
$ cat /etc/resolv.conf

..unless you're using the RPI3 wireless in which case you may need to stop it from going to sleep.

You need to figure why the dhcp server is issuing a new ip address.
by swampdog
Thu Jul 21, 2016 12:29 am
Forum: Beginners
Topic: RPI3 auto login non root user
Replies: 5
Views: 4097

Re: RPI3 auto login non root user

I don't know the answer but it sounds like you'll be able to figure it out from 'raspi-config' - there's a "get_autologin" function in there pointing to.. /etc/systemd/system/getty.target.wants/[email protected].service ..which on the sole autologin pi I have contains.. ExecStart=-/sbin/agetty --autologin ...
by swampdog
Fri Jul 15, 2016 7:51 pm
Forum: C/C++
Topic: Software Key
Replies: 2
Views: 621

Re: Software Key

Dougie has demonstrated how hard it is to generate software keys. I assume you desire some critique as you posted here. Unfortunately I do not have much time so only a few points.. C++ headers files are conventionally *.hpp (rather than *.h). You mix char[] and string. Just use string. Catch excepti...
by swampdog
Fri Jul 15, 2016 7:14 pm
Forum: Troubleshooting
Topic: Pi causing broadband suspension (unacceptable use)
Replies: 19
Views: 3134

Re: Pi causing broadband suspension (unacceptable use)

I run fail2ban and have a policy of "one failed attempt at either port 22, 80 or 443 and you're completely blocked until the system is rebooted". Each of your 1,500 attempts would have be blocked after the first go. There are fifty one blocked addresses since the system was rebooted at 23:25:59 on ...
by swampdog
Fri Jul 15, 2016 6:32 pm
Forum: Troubleshooting
Topic: Reset Password Remotely
Replies: 8
Views: 4651

Re: Reset Password Remotely

This may be useful as a starting point..

http://apple.stackexchange.com/question ... em-on-os-x
by swampdog
Thu Jul 14, 2016 1:42 pm
Forum: Troubleshooting
Topic: Pi causing broadband suspension (unacceptable use)
Replies: 19
Views: 3134

Re: Pi causing broadband suspension (unacceptable use)

.......... Having checked (and double checked) my router I did have a port 22 forward setup. Which I don't recall doing!!!! Anyway, I have disabled it, well all of them. Ideally I would like to open port 445 to allow me to access media and use as cloud server from outside (I guess that means inboun...
by swampdog
Thu Jul 14, 2016 12:26 pm
Forum: Beginners
Topic: project landed in my lap
Replies: 19
Views: 3184

Re: project landed in my lap

I put some explicit instructions for cygwin (but they'll work for linux) on how to generate keys..

viewtopic.php?f=28&t=153113&p=1003610#p1003610

..hopefully that helps.
by swampdog
Wed Jul 13, 2016 11:19 pm
Forum: Troubleshooting
Topic: Reset Password Remotely
Replies: 8
Views: 4651

Re: Reset Password Remotely

Never tried it myself.. http://www.mapledyne.com/ideas/2015/8/4/reset-lost-admin-password-for-raspberry-pi ..as I always create a second account and I never forget that password. Additionally, when you get it working again set up ssh "keys" for passwordless login then you *can* remote in from anothe...
by swampdog
Fri Jul 08, 2016 12:35 pm
Forum: Networking and servers
Topic: SFTP access permissions
Replies: 8
Views: 3122

Re: SFTP access permissions

oh I see what you mean. Would it be as simple as assigning disk 1 to pi & user1 and disk 2 to pi and user 2? This seems like a really sensible answer. I could lock down the pi itself to only pi and the external drives to pi & user I want. Would they still see the files (but not able to open)? I do ...
by swampdog
Fri Jul 08, 2016 12:06 pm
Forum: C/C++
Topic: Delays writing CSV files
Replies: 5
Views: 1020

Re: Delays writing CSV files

Unix doesn't have much free memory. It assigns most of it to the file cache. When an app wants more memory, it reduces the file cache size. Your file commits are "lazy". All your writes get pushed to ram, and then, when unix feels like it, those writes get committed to disk. fflush() is at a higher ...
by swampdog
Fri Jul 08, 2016 11:30 am
Forum: C/C++
Topic: Compiling C++ files
Replies: 8
Views: 2041

Re: Compiling C++ files

Once again 'swampdog' for your suggestions but I am afraid a lot of it was above my head. You see,I have only had my Pi3 for a few weeks so I am really a 'beginner' and am still struggling to understand many of the command line entries. Basically what I want to do try out an Ardiuno sketch which I ...
by swampdog
Fri Jul 08, 2016 10:35 am
Forum: General discussion
Topic: Warning re. using the SD card copier
Replies: 25
Views: 4053

Re: Warning re. using the SD card copier

I haven't used the "SD card copier" but I would imagine it has only scribbled over the first few Gb of your disk. If your big disk was formatted with a unix filesystem then there will have been copies of the superblock scattered all over it as part of the formatting process. If you are serious in at...
by swampdog
Thu Jul 07, 2016 2:47 pm
Forum: C/C++
Topic: Compiling C++ files
Replies: 8
Views: 2041

Re: Compiling C++ files

Many thanks Marcus and 'swampdog' for replies, that has clarified things for me, but neither of you answered the last part of my question "Where should any Include libraries be installed within the Pi3 filing system." Think of the system include (header) files as a description of the capabilities o...
by swampdog
Thu Jul 07, 2016 4:46 am
Forum: Troubleshooting
Topic: Raid Array 0 and md0 disappears after reboot [Solved!?]
Replies: 6
Views: 5642

Re: Raid Array 0 and md0 disappears after reboot

I don't have a pair of hard disks to try it with so used a pair of memory sticks. From my history.. 1947 2016-07-07 05:01:21 sudo -i lsscsi 1948 2016-07-07 05:01:33 sudo -i fdisk -l /dev/sda 1949 2016-07-07 05:01:35 sudo -i fdisk -l /dev/sdb 1950 2016-07-07 05:02:48 sudo -i fdisk /dev/sda 1952 2016-...
by swampdog
Thu Jul 07, 2016 12:22 am
Forum: Raspbian
Topic: Samba - File size limit exceeded
Replies: 5
Views: 4385

Re: Samba - File size limit exceeded

I would take the disk out of the equation if you can. Have you tried writing to a share off a folder on the pi sd card? Also, does a 350Mb file actually get written before it fails? Running "sudo iftop" and "top" etc on the pi whilst watching might yield a hint which end gives up first. Up the log l...

Go to advanced search