Go to advanced search

by sprinkmeier
Fri Dec 29, 2017 9:16 am
Forum: Troubleshooting
Topic: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
Replies: 3
Views: 8630

Re: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]

what is ${rootfs} set to? The error means you're trying to copy files to a file system that does not support the permissions etc. of the source filesystem. Typically this happens when you rsync from ext4 (such as root) to FAT (such as /boot). The data is copied, but the file metadata is missing. Dep...
by sprinkmeier
Thu Dec 28, 2017 9:41 pm
Forum: Troubleshooting
Topic: RPI: severe problems with connection over network switch
Replies: 14
Views: 1717

Re: RPI: severe problems with connection over network switch

Code: Select all

interface eth0
static ip_address=192.168.2.100
[...]

interface wlan0
static ip_address=192.168.2.200
If eth0 and wlan0 are both active then having them on the same subnet can lead to confusion.

What output do you get when you try to ping the Pi from one of the other systems on your network?
by sprinkmeier
Thu Dec 28, 2017 9:19 pm
Forum: Troubleshooting
Topic: RPI: severe problems with connection over network switch
Replies: 14
Views: 1717

Re: RPI: severe problems with connection over network switch

192.168.2.100/24 looks unusual. Most home networks are 192.168.1/24 or 192.168.0/24 (i.e. the ADSL router/gateway/widget is usually configured to hand out addresses on that subnet.). What's the IP address and netmask of the other computers on your network? You should also be able to use the link-lo...
by sprinkmeier
Thu Dec 28, 2017 9:13 pm
Forum: Other projects
Topic: Need help with a analog clock upgrade
Replies: 7
Views: 1771

Re: Need help with a analog clock upgrade

Break up the problem. Do you have the mechanical side sorted out, i.e. the connection to the stepper motor? "town clock" sounds kind of big, this might be a 'non-trivial' problem. Get a driver board for the stepper motor (i.e. do NOT try to run it directly from GPIO!) Get the RTC working. Note that ...
by sprinkmeier
Thu Dec 28, 2017 9:06 pm
Forum: Beginners
Topic: How to require VNC connections to come from the SSH Server?
Replies: 4
Views: 418

Re: How to require VNC connections to come from the SSH Server?

That's not what I mean, to reject VNC connections not tunneled from the SSH Server. Some daemons can be bound to particular devices, so if the VNC server can be bound to the "lo" device it should prevent network raw connections. An alternative is to use the iptables firewall to block direct connect...
by sprinkmeier
Thu Dec 28, 2017 8:57 pm
Forum: Troubleshooting
Topic: retrieving broken ssh connection
Replies: 1
Views: 350

Re: retrieving broken ssh connection

You can use
screen
or
mosh
to run long jobs over the network. These will allow you to reconnect if the connection breaks and pick up where you left off.

Your opencv installation most likely ended abruptly when the SSH session broke.
by sprinkmeier
Thu Dec 28, 2017 8:49 pm
Forum: Automation, sensing and robotics
Topic: Complete Newbie: running two scripts on startup
Replies: 16
Views: 2458

Re: Complete Newbie: running two scripts on startup

You could also look for
crontab -e
and
@reboot
.
by sprinkmeier
Thu Dec 28, 2017 8:28 pm
Forum: Beginners
Topic: Cron and GPIO relay SOLVED
Replies: 8
Views: 1398

Re: Cron and GPIO relay

The script is missing the magic first that tells the OS how to invoke it (i.e. that it's a python script rather than a bash script fo somesuch): #!/usr/bin/python Also ensure the script is executable, and that it doesn't need environment variables set that are not provided by cron (~/.bashrc might s...
by sprinkmeier
Thu Dec 28, 2017 8:23 pm
Forum: Troubleshooting
Topic: RPI: severe problems with connection over network switch
Replies: 14
Views: 1717

Re: RPI: severe problems with connection over network switch

Switches _should_ be 'invisible'. Given that the problems persisted when the switch was removed I doubt it was to blame.

How did you set the static IP address? are you sure it's still static after reboot?
by sprinkmeier
Mon Feb 20, 2017 9:12 am
Forum: Beginners
Topic: can I shut down and swap SD-cards?
Replies: 3
Views: 1608

Re: I want to experiment a little

Go ahead, experiment, and report back!

fcbvyre: 1) jvyy jbex, 2) jvyy cebonoyl jbex qrcraqvat ba lbhe cbjre-fhccyl.
by sprinkmeier
Sat Apr 09, 2016 10:28 am
Forum: Troubleshooting
Topic: unable to connect to internet using rpi 3
Replies: 7
Views: 4593

Re: unable to connect to internet using rpi 3

In my experience Windows can barely provide networking for itself, let alone anything plugged into it... How is the laptop connected to the internet? Can you connect the Pi directly? Failing that, post the result of ipconfig /all from the laptop and ip addr ip route cat /etc/resolv.conf from the Pi
by sprinkmeier
Sat Apr 09, 2016 9:34 am
Forum: Troubleshooting
Topic: Pi3 Why Couldn't run sudo ./install?
Replies: 7
Views: 999

Re: Pi3 Why Couldn't run sudo ./install?

without info on what you downloaded and error messages (as plain text in CODE blocks please, no links-to-jpegs-on-twitter) diagnosing the problem is difficult.
by sprinkmeier
Fri Apr 01, 2016 10:15 pm
Forum: C/C++
Topic: Can't write .txt file
Replies: 5
Views: 1176

Re: Can't write .txt file

Personally I prefer to perform such manipulations in memory. eg: For small amount of output like this the buffered I/O would probably be just as efficient. std::ostringstream is definetely worth using when assembling long strings. for(...) finalString += someString; is a lot slower than for(...) os...
by sprinkmeier
Fri Apr 01, 2016 11:20 am
Forum: C/C++
Topic: Can't write .txt file
Replies: 5
Views: 1176

Re: Can't write .txt file

[email protected] ~/GIT/src $ cat ofstream.cc #include <fstream> int main(int argc, char ** argv) { (void)argc;(void)argv; std::string fname("/tmp/foo.txt"); std::ofstream myfile; myfile.open(fname.c_str()); myfile << "WooT" << (int)42 << std::endl; myfile.close(); return 0; } [email protected] ~/GIT/src $ g++ -g ...
by sprinkmeier
Fri Apr 01, 2016 11:12 am
Forum: Off topic discussion
Topic: Legality Question
Replies: 34
Views: 3947

Re: Legality Question

... ----- * To be pedantic, it's a civil issue not criminal. Therefore it is "an actionable tort", not "illegal", but that language just leads to confusion. I wish more people were pedantic enough to know the difference. civil issue: You have done something bad against someone/something, and if the...
by sprinkmeier
Fri Apr 01, 2016 10:47 am
Forum: Troubleshooting
Topic: sudo apt-get update not working
Replies: 2
Views: 653

Re: sudo apt-get update not working

I am behind a proxy server and I am trying to run a sudo apt-get update command and it's not working. The image has the complete error output. Am I doing something wrong? Internet access is working by modifying the 10proxy file. http://imgur.com/zLEy2hW image? what's wrong with copy-paste-ing the e...
by sprinkmeier
Fri Apr 01, 2016 10:44 am
Forum: Off topic discussion
Topic: I am getting a Pi and new Laptop and this is about the LT...
Replies: 2
Views: 482

Re: I am getting a Pi and new Laptop and this is about the L

I need a laptop which will allow me to do both 3D and 2D art plus Mod Games... Any suggestions and it need to buyable by some who is upper middle class and a little cheap? nowhere near enough info in that to give useful advice. hunt down your local geeks (linux user group, hackerspace, nerd-knittin...
by sprinkmeier
Fri Apr 01, 2016 10:40 am
Forum: General discussion
Topic: How to prevent Raspberry Pi to shutdown using watchdog?
Replies: 3
Views: 1135

Re: How to prevent Raspberry Pi to shutdown using watchdog?

p64 wrote: ... "shutdown -h 0" ...
try

Code: Select all

shutdown -r 0
?
It seems to be that "shut down and halt" is a perfectly legitimate way of asking the system to shut down and stay off.
by sprinkmeier
Fri Apr 01, 2016 10:36 am
Forum: Raspbian
Topic: u-boot with passoward on rasbian wheezy
Replies: 2
Views: 584

Re: u-boot with passoward on rasbian wheezy

Hi, Good morning to all.iam working on security project on raspberry pi,that is when the device is booting in u-boot i want to place a password withn text or Encryped password.when user enter the passoword it will boot the kernel otherwise it will wait for three times after three times the password...
by sprinkmeier
Fri Mar 25, 2016 12:39 am
Forum: Beginners
Topic: sending data from raspberry
Replies: 6
Views: 993

Re: sending data from raspberry

There are many possible solutions. More information about the project could help narrow the scope a little. A somewhat generic solution would be to use espeak in a loop called from a script to voice the data. Use trained homing-pigeon/parrot crossbreeds to memorise and deliver the data. A speech-to-...
by sprinkmeier
Wed Mar 09, 2016 10:33 am
Forum: General discussion
Topic: SSH/VNC stopping and running programs
Replies: 1
Views: 474

Re: SSH/VNC stopping and running programs

If I have a Python script that uses the GPIO and I start it on an remote server or on the Pi itself, would it be possible to stop the program from running by using a different SSH/VNC server? And is there some command that will allow the Pi to continue to run a program even after closing the server...
by sprinkmeier
Mon Mar 07, 2016 9:03 pm
Forum: Beginners
Topic: Looking for ideas to automate wget
Replies: 1
Views: 437

Re: Looking for ideas to automate wget

Generating date-stamps like this is possible in both bash and python: $ date +%d%m%Y 08032016 $ python Python 2.7.11+ (default, Feb 22 2016, 16:38:42) [GCC 5.3.1 20160220] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> time.strftime('%d%m%Y') '08...
by sprinkmeier
Sat Feb 20, 2016 12:01 am
Forum: Beginners
Topic: Displaying USB drive information - How should I begin?
Replies: 14
Views: 1718

Re: Displaying USB drive information - How should I begin?

Check the system messages to get then name of attached disks: [email protected]:~ $ dmesg | grep 'Attached .* disk' [13734.750541] sd 0:0:0:0: [sda] Attached SCSI disk [13781.854586] sd 1:0:0:0: [sda] Attached SCSI disk Then you can get a partition listing: [email protected]:~ $ sudo fdisk -l /dev/sda Disk /dev/s...

Go to advanced search