Go to advanced search

by swampdog
Sat Oct 19, 2019 11:33 pm
Forum: C/C++
Topic: cc: error trying to exec '/usr/lib/gcc/arm-linux-gnueabihf/8/cc1'
Replies: 2
Views: 121

Re: cc: error trying to exec '/usr/lib/gcc/arm-linux-gnueabihf/8/cc1'

$ sudo apt-get install apt-file $ apt-file update $ apt-file search /usr/lib/gcc/arm-linux-gnueabihf/8/cc1 Results likely to be.. cpp-8: /usr/lib/gcc/arm-linux-gnueabihf/8/cc1 g++-8: /usr/lib/gcc/arm-linux-gnueabihf/8/cc1plus gdc-8: /usr/lib/gcc/arm-linux-gnueabihf/8/cc1d gobjc++-8: /usr/lib/gcc/ar...
by swampdog
Fri Oct 11, 2019 11:29 pm
Forum: C/C++
Topic: copy protect an application
Replies: 3
Views: 360

Re: protect an application

If your Pi always has access to a network then you could implement something reasonably secure. It will never be foolproof though. The only way to do that is manually type in the password to decrypt (eg: like "tails" on a usb stick) the filesystem. Mac address can be spoofed of course. That aside, t...
by swampdog
Fri Sep 27, 2019 9:16 pm
Forum: Networking and servers
Topic: Slow samba server
Replies: 10
Views: 324

Re: Slow samba server

It took about 7.5 minutes to 'scp' a 1G file of urandom data to my rpi zeroW, approx 2.3MB/s according to 'scp' - from a linux box on the same subnet. About 9.5 minutes to copy it back, 1.8MB/s. The rpiZW was 100% cpu unsurprisingly. Try similar yourself and see what results you get. I tend to use '...
by swampdog
Fri Sep 27, 2019 7:54 pm
Forum: Networking and servers
Topic: Using OpenVPN to transfer files between Pi 3 and Pi 4
Replies: 5
Views: 221

Re: Using OpenVPN to transfer files between Pi 3 and Pi 4

Have you got this.. +------+ | rpi3 |--\ +------+ \ +-------+ -| phone |-->internet +------+ / +-------+ | rpi4 |--/ +------+ ..with both rpi's physically near each other? If so, you could make use of the ethernet ports and either use a switch.. +------+ | rpi3 |--\ +------+ \ | \ +--------+ \ +----...
by swampdog
Fri Sep 27, 2019 6:48 pm
Forum: General discussion
Topic: Routing from one network to another
Replies: 21
Views: 727

Re: Routing from one network to another

You've mentioned wg0 is on 10.0.0.3. Your internal network is on 192.168.1.0 which means wg0 has nowhere to go. I'm assuming wlan0 is bridged to wg0 ('brctl show')? so sidestep that problem by assigning a 192.168.1.x address to wg0 instead of 10.0.0.3 (if they're on the same subnet no routing requi...
by swampdog
Fri Sep 27, 2019 9:33 am
Forum: General discussion
Topic: Routing from one network to another
Replies: 21
Views: 727

Re: Routing from one network to another

You don't need the bridge for forwarding. Here's the essential part of my rpi filewall, eth0 is my ISP, eth1 is my internal network. [email protected] ~ $ sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 1 [email protected] ~ $ cat /usr/local/sd/etc/svr-fw.dat | grep eth -A POSTROUTING -o eth0 -j MASQUERADE -A IN...
by swampdog
Wed Sep 25, 2019 9:23 pm
Forum: General discussion
Topic: Routing from one network to another
Replies: 21
Views: 727

Re: Routing from one network to another

I don't know if this contributes or not as I've only yesterday got my rpi4 working as an access point and is very much a work in progress. In my case it will be a "laptop" so ordinarily will use dhcp on eth0 & wlan0 but when at home may as well serve as an AP. I nearly pulled my hair out with dhcpcd...
by swampdog
Mon Sep 23, 2019 5:40 am
Forum: Beginners
Topic: Help please I just can’t seem to mount my NAS to record onto.
Replies: 2
Views: 88

Re: Help please I just can’t seem to mount my NAS to record onto.

One of my NAS is quite ancient. I happen to mount it manually (rather than /etc/fstab) on my main linux box. Copied the ".smbcred" file from it to a buster rpi4 and liberated one of the cifs mount commands out of a script. $ cd;ls -ln .smbcred && cat .smbcred | sed -e 's/=.*/=blah/' -rw------- 1 100...
by swampdog
Mon Sep 23, 2019 4:30 am
Forum: General discussion
Topic: Samba Question
Replies: 2
Views: 153

Re: Samba Question

You could set up a second samba server. You mentioned in a previous post though.. Lets say I am trying to collect Temp and altitude data on Pi 1 and transmit it to Pi 2 for the storage or backup ..so a second samba server doesn't sound like the way to go unless the PC has to be involved(*). It sound...
by swampdog
Sat Sep 07, 2019 11:24 am
Forum: General discussion
Topic: Dual redundancy raspberry PI
Replies: 14
Views: 743

Re: Dual redundancy raspberry PI

I have an rpi zero which monitors a power clamp on our fuse box. It's failed for the third time. Kudos to the guy who wrote the code but I knew it would go belly up but have been constantly too lazy to do anything about it. The code writes to a sqlite database which wears out the cards. I should hav...
by swampdog
Sat Sep 07, 2019 2:32 am
Forum: C/C++
Topic: Looking for advice with C++ learning
Replies: 29
Views: 6063

Re: Looking for advice with C++ learning

Really (really) terse example.. #include <iostream> using std::cout; typedef unsigned char TINYINT; typedef unsigned int BIGGERINT; struct foo { TINYINT a; foo(TINYINT b) : a(b){} foo operator+(foo & b) {TINYINT r(a+b.a); BIGGERINT aa(a+b.a); if (aa!=r) cout<<"oops\n"; return r; } }; int main() {foo...
by swampdog
Sat Sep 07, 2019 1:53 am
Forum: Troubleshooting
Topic: Pi 4, rootfs on SSD goes readonly
Replies: 19
Views: 1127

Re: Pi 4, rootfs on SSD goes readonly

Hi Folks, Another update. Put this https://www.amazon.co.uk/gp/product/B077SF8KMG/ref=ppx_yo_dt_b_asin_title_o08_s00?ie=UTF8&psc=1 into this https://www.amazon.co.uk/gp/product/B01K7I7UGQ/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&psc=1 and no data corruption so far. For cooling I tried this https:/...
by swampdog
Wed Aug 28, 2019 9:04 pm
Forum: Beginners
Topic: I cannot SSH my pi anymore
Replies: 20
Views: 848

Re: I cannot SSH my pi anymore

dpkg: warning: files list file for package 'node-brace-expansion' missing; assuming package has no files currently installed [snip] ^^^corruption. Your best bet at this point is to attempt to rescue what work you can. This will make it far worse unless you can guarantee your sdcard is 100% ok.. htt...
by swampdog
Wed Aug 28, 2019 6:39 pm
Forum: Beginners
Topic: I cannot SSH my pi anymore
Replies: 20
Views: 848

Re: I cannot SSH my pi anymore

privsep_preauth: preauth child terminated by signal 11 Hmm. This is a guess based on some googling. Assuming you're happy your sdcard is okay then.. $ sudo apt-get update $ sudo apt-get upgrade ..(because the last update may be incomplete) making sure there's no warnings/errors. If there are warnin...
by swampdog
Wed Aug 28, 2019 5:25 pm
Forum: Beginners
Topic: I cannot SSH my pi anymore
Replies: 20
Views: 848

Re: I cannot SSH my pi anymore

[email protected]:~ $ sudo /usr/sbin/sshd -d [sudo] password for pi: debug1: sshd version OpenSSH_7.4, OpenSSL 1.0.2l 25 May 2017 debug1: private host key #0: ssh-rsa S debug1: private host key #1: ecdsa-sha2g debug1: private host key #2: ssh-ed25U debug1: rexec_argv[0]='/usr/sbin/sshd' debug1: rexec...
by swampdog
Wed Aug 28, 2019 5:03 pm
Forum: Beginners
Topic: I cannot SSH my pi anymore
Replies: 20
Views: 848

Re: I cannot SSH my pi anymore

How can I add file ? it always throughs me " Error Invalid file extension: syslog" Ah. This is going to be tricky! I meant for you to search in "/var/log/syslog" for any errors. [email protected]:~ $ sudo egrep -i ssh /var/log/syslog Aug 28 16:44:29 pi05 systemd[1]: Started Turn on SSH if /boot/ssh is pre...
by swampdog
Wed Aug 28, 2019 4:29 pm
Forum: Beginners
Topic: I cannot SSH my pi anymore
Replies: 20
Views: 848

Re: I cannot SSH my pi anymore

[email protected]:~ $ systemctl status ssh.service ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: failed (Result: signal) since Wed 2019-08-28 15:49:05 UTC; 15s ago Process: 1000 ExecStartPre=/usr/sbin/sshd -t (cod...
by swampdog
Sun Aug 25, 2019 5:42 pm
Forum: Troubleshooting
Topic: Pi 4, rootfs on SSD goes readonly
Replies: 19
Views: 1127

Re: Pi 4, rootfs on SSD goes readonly

@rpdom, That looks like an avenue worth pursuing. It'll have to wait a month though. I missed out on getting my second Pi4 as I wasn't here when the email arrived. I've backordered it this time. My "arc" backup server has failed so the current Pi4 has been pushed into service to do the job. I've fud...
by swampdog
Sun Aug 18, 2019 1:18 am
Forum: C/C++
Topic: Looking for advice with C++ learning
Replies: 29
Views: 6063

Re: Looking for advice with C++ learning

@DarkElvenAngel https://en.cppreference.com/ C++ is a horribly complex language. Professors would have you know all of it then argue about the definition of a pointer. However, your printf() is prone to buffer overflow whereas a "cout" is not. int i string s cout<<i<<s ..works in C++ even if you cha...
by swampdog
Sat Aug 17, 2019 11:10 pm
Forum: Beginners
Topic: ssd compatibility
Replies: 7
Views: 542

Re: ssd compatibility

Been away longer than expected! When plugging/unplugging stuff it's helpful to open a terminal and type this.. $ sudo tail -f /var/log/syslog Loads of other stuff may be going on (kinda like the windows event log) but unlike that system "-f" is like "follow" so as soon as something writes into the l...
by swampdog
Sat Aug 17, 2019 10:59 pm
Forum: Troubleshooting
Topic: Pi 4, rootfs on SSD goes readonly
Replies: 19
Views: 1127

Re: Pi 4, rootfs on SSD goes readonly

Hi Folks, Unfortunately the stats I hoped to gather are now useless. Too much has changed. While I was away (longer than I thought) the gcc stress test failed because of a duff network connection downloading gmp-6.1.0 for gcc 7.4.0. I logged in remotely during the week and restarted it from scratch ...
by swampdog
Thu Aug 08, 2019 10:00 pm
Forum: Beginners
Topic: ssd compatibility
Replies: 7
Views: 542

Re: ssd compatibility

Start at the beginning of this thread to see how complex it might get.. https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=247833&p=1515778#p1515778 Generally speaking, anything (filesystem-wise) ubuntu can see, the pi can also - ie: ext2,3,4. I haven't tried xfs,btrfs,zfs on the pi (nor encryp...
by swampdog
Thu Aug 08, 2019 9:30 pm
Forum: Beginners
Topic: mounted external Hard Drive is not spinning
Replies: 8
Views: 371

Re: mounted external Hard Drive is not spinning

There needs to be some enforcement of standards in the usb/external area of computing. I have.. 3 esata caddies. 6 usb caddies. 4 unpowered usb/sata adapters. ..where one of the above is a dual usb/esata caddy. Two of the esata caddies work (on PC) as designed. The dual usb3/esata caddy does not wor...
by swampdog
Thu Aug 08, 2019 8:45 pm
Forum: Beginners
Topic: ssd compatibility
Replies: 7
Views: 542

Re: ssd compatibility

Perhaps the OP needs to start again. I'm getting M2.PCI for a google on "Samsung 970PRO".

To the OP, theoretically, yes. I've been exchanging an ssd between a Pi4 and linux mint all week.
by swampdog
Thu Aug 08, 2019 8:30 pm
Forum: General discussion
Topic: connection doens't return after router reboot
Replies: 9
Views: 363

Re: connection doens't return after router reboot

Here's a pi configured to pass everything through the machine 192.168.1.1 .. [email protected]:~ $ netstat -anr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255...

Go to advanced search