Go to advanced search

by ~$sudo
Fri Jun 17, 2016 5:26 pm
Forum: Troubleshooting
Topic: Wifi issue on Pi Zero
Replies: 0
Views: 328

Wifi issue on Pi Zero

I have been experiencing a strange problem with my Raspberry Pi Zero, running Raspbian Jessie, and a RTL8188CUS USB wifi adapter. I can connect to my wireless network through /etc/network/interfaces just fine, and can access the internet perfectly, yet some wireless tools are not running correctly. ...
by ~$sudo
Thu Oct 01, 2015 12:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Monitor USB data
Replies: 0
Views: 339

Monitor USB data

I am doing some investigating on a USB game controller adapter, and I wanted to monitor the data it outputs through USB. What would be the best way to do this on the Raspberry Pi? Is there some sort of command line tool that could help? I tried some things with usbmon, but what I found seems to not ...
by ~$sudo
Sun Feb 23, 2014 3:23 am
Forum: General discussion
Topic: Arduino HTML Auto-Request
Replies: 2
Views: 680

Re: Arduino HTML Auto-Request

Ah thank you so much! I have modified it for other file types aswell, a bit slow but I know that's just a restriction of the arduino.
Thanks!
by ~$sudo
Sat Feb 22, 2014 8:56 am
Forum: General discussion
Topic: Arduino HTML Auto-Request
Replies: 2
Views: 680

Arduino HTML Auto-Request

Hi, I know this isn't related to the brilliant Raspberry Pi, but I thought this is a good place to bring it up. I am experimenting around with running a web server on my Arduino (not internet just LAN). I have all the files stored on an SD card, which the Arduino reads, and writes the .htm file to t...
by ~$sudo
Sat Feb 01, 2014 12:33 pm
Forum: Troubleshooting
Topic: WiFi internet not working
Replies: 0
Views: 261

WiFi internet not working

Hi, I'm having trouble getting my Pi to connect to the internet with a wifi adapter. This is what I'm trying to do: I use the Ethernet port to ssh into the pi, this network has no internet. I want to connect to the internet through the use of a wifi adapter. However, despite the adapter connecting t...
by ~$sudo
Tue Jan 14, 2014 3:47 pm
Forum: Off topic discussion
Topic: Visual C++ Studio not working
Replies: 2
Views: 871

Re: Visual C++ Studio not working

Oh gosh starts working now!
Typical windows 8:
"Why don't i randomly stop working so i can annoy people"

Oh sorry i guess this post was a bit of a waste of time....
Never had to run as administrator before...
by ~$sudo
Tue Jan 14, 2014 2:25 pm
Forum: Off topic discussion
Topic: Visual C++ Studio not working
Replies: 2
Views: 871

Visual C++ Studio not working

Hi, I have recently installed Microsoft Visual C++ Studio Express, and made a simple Win32 Console Application script. This is it: // Calculates pi #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #define iterations 1000000 long double pi; long double partial[iterations]; long double a = 1...
by ~$sudo
Mon Jan 13, 2014 2:37 pm
Forum: Troubleshooting
Topic: Overclocking not working?
Replies: 8
Views: 1405

Re: Overclocking not working?

I realise it only shows the default, i wanted to make sure that it WAS using ondemand scaling frequency.
by ~$sudo
Mon Jan 13, 2014 2:36 pm
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Convert! No definitely not. I prefer neither windows or linux (let's just leave apple out of this, osx in my opinion is so bad it doesn't count). Windows has its uses, as does linux. Well actually i do prefer windows, simply because of its excellent GUI, but linux is definitely on my list if a want ...
by ~$sudo
Mon Jan 13, 2014 1:43 pm
Forum: Troubleshooting
Topic: Overclocking not working?
Replies: 8
Views: 1405

Re: Overclocking not working?

Hi, Is it possible that the CPU is not under enough load? If it isn't under high load, overclocking will not kick in. Also, if the SoC gets hotter than 85C it won't initiate overclocking for safety reasons. Try these in terminal and post your results: cat /proc/cpuinfo cat /sys/class/thermal/thermal...
by ~$sudo
Mon Jan 13, 2014 1:28 pm
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Well i got it done in the end, and then applied that thing to other scripts, such as my cluster reboot and processor temperature reading script. It the good thing about linux, isn't it? The are so many different ways to do everything, and i like how you have to power to modify core objects, whereas ...
by ~$sudo
Mon Jan 13, 2014 9:44 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Yes, ok a got it all wrong, but doesn't matter now because Richard-TX kindly helped me out with another way to do it that works great.
Thank you for your help and everyone elses also.
by ~$sudo
Mon Jan 13, 2014 7:39 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Oh right but overclocking shouldn't really affect it should it, because it only overclocks when the cpu usage is high.
by ~$sudo
Mon Jan 13, 2014 6:58 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Thank you it works a treat! (Since i remebered to use the backtick haha) One quick question a bitt off topic but related to the rpi cluster I'm building: Will setting the overclock to "modest" have any long term effects of the performance of the rpi's? This might just be my imagination, but it seemd...
by ~$sudo
Mon Jan 13, 2014 6:26 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Yeah it contains the ip addresses of the nodes and the master. I am running this script from the master, and the first line is the masters IP. I don't want to turn off the master untill last, so i need to skip line one. Then at the end of the script i have "sudo poweroff" I have already tried with "...
by ~$sudo
Mon Jan 13, 2014 6:17 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Yes i realise that now, please don't think I'm completely stupid, i am doing this on my iPod for multiple reasons so whether its a backtick or ' is difficult to see. Anyway, how now can i make it skip line one, because the "IPADDR", "a", "host" whatever is now not a variable but a bash command, so i...
by ~$sudo
Mon Jan 13, 2014 6:11 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Oh god sorry i was thinking what's a backtick!
Really sorry.
by ~$sudo
Mon Jan 13, 2014 6:10 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Oh no sorry i meant to say that i used "host" instead of "a" but maybe i didn't make it clear that it did not work because the ssh command took the contents of "host" or "a" or whatever literally.
by ~$sudo
Mon Jan 13, 2014 5:51 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Ah solution! I shall program it in c, a language i actually know a fair bit about.
Hmmm... But reading a file in c?
by ~$sudo
Mon Jan 13, 2014 5:44 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Also xargs does not work, it just outputs to the terminal:
ssh pi@192.168.1.200 'sudo poweroff'
etc, etc.
Hmmm
by ~$sudo
Mon Jan 13, 2014 5:40 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Well i did this, which was someones suggestion, with a bit of my own added in (the if bit might not be right): exec 10<&0 cat /home/pi/machines | while read host; do if [$host != 192.168.1.200]; then ssh pi@"$host" sudo poweroff fi <&10 done It sort of works, the if bit does because it skips the fir...
by ~$sudo
Mon Jan 13, 2014 5:21 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Well I'll try everyones ideas and see which one I'll use. But i just remembered one thing: is there any way for it to skip the first line? Because the first line is the master processor and has to be in the list first, but power off last. Any way to do this? Maybe with an if statement: (Dunno about ...
by ~$sudo
Mon Jan 13, 2014 3:33 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Yes i only need to do the one command, ssh. And there are no spaces, only ip addresses, but i think full stops should matter.
I'll experiment with these and post my results.
Thanks all for the help
by ~$sudo
Mon Jan 13, 2014 2:41 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

Ok, but what's with the exec 10<10 bit? Because it is something to do with the number of lines it will read, hoe can i makr it stop automatically at the last line?
Thanks
by ~$sudo
Mon Jan 13, 2014 1:55 am
Forum: Advanced users
Topic: SSH IP addresses from file
Replies: 39
Views: 4460

Re: SSH IP addresses from file

I'm building a raspberry pi cluster for a supercomputer, so with many nodes i need to easily turn them all off/reboot them. I have a script (bash) that is ok for a few nodes, but i want to read lines from the file /home/pi/machines, then run "ssh pi@<line_read> 'sudo poweroff'"
So yes, bash.

Go to advanced search