Go to advanced search

by allfox
Tue May 08, 2018 8:30 pm
Forum: General discussion
Topic: Controlling LAN LEDs individually
Replies: 34
Views: 14408

Re: Controlling LAN LEDs individually

​There is an dtparam that can control led behaviour - see https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README#L96​ It was added March 21, so requires a kernel newer than that date. Would this work for Pi 3 v1.2 ? Because mine still keep blinking after I add dtparam=eth_led0=14 ...
by allfox
Mon May 07, 2018 5:51 am
Forum: Advanced users
Topic: About SSH brute force attacks.
Replies: 19
Views: 607

Re: About SSH brute force attacks.

I agree that key pair authentication won't send the private key out. But I doubt about "there is no key to guess". Think about these steps: 1 Server send a challenge of a public key encrypted random number. 2 I make up a private key, and use it to decrypt the challenge. 3 If the server don't let in,...
by allfox
Sun May 06, 2018 7:44 pm
Forum: 日本語
Topic: MySQLが導入できない
Replies: 2
Views: 183

Re: MySQLが導入できない

https://wiki.debian.org/MySql このページによると、Debian Stretch、つまりRaspbian Stretch、はsudo権限を持つユーザーがデータベースをアクセスできます。 piユーザーはsudo権限を持っています。 つまり、piでログインしてから: $ sudo -i # mysql USE mysql; CREATE USER 'YOUR_SYSTEM_USER'@'localhost' IDENTIFIED VIA unix_socket; exit; ここから、YOUR_SYSTEM_USERはsudo権限なしでもアクセスできるようになります。 ...
by allfox
Sun May 06, 2018 7:37 pm
Forum: Advanced users
Topic: About SSH brute force attacks.
Replies: 19
Views: 607

Re: About SSH brute force attacks.

There is something called "fail2ban", it would read the /var/log/auth.log, and block any IP that brute forcing your SSH daemon, for 10 minutes. You need to know some iptables to manually configure it. But if you never played with your iptables, then by default it would work. Install it with: sudo ap...
by allfox
Sun May 06, 2018 7:32 pm
Forum: Networking and servers
Topic: Raspberry Pi as Wifi Router
Replies: 1
Views: 159

Re: Raspberry Pi as Wifi Router

Here is an official document: https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md While this idea would work, a Pi access point would be less powerful than those commercial ones. I used an ath9k_htc based USB WiFi adapter to do this, it only allow 7 clients to connect at...
by allfox
Sun May 06, 2018 7:20 pm
Forum: General discussion
Topic: Power supply for raspberry pi 3
Replies: 11
Views: 351

Re: Power supply for raspberry pi 3

The Chinese on it says it's a phone charger. So, while it might be working, I suggest you get a real power supply unit. I don't know the output either. Maybe you need post another photo about the backside. The brand says XIAOMI, it's a little strange, as the 小米 I know would brand as MI, not XIAOMI: ...
by allfox
Mon Apr 30, 2018 9:31 pm
Forum: General discussion
Topic: NOOBS - Why?
Replies: 60
Views: 2180

Re: NOOBS - Why?

I've never used NOOBS. When I was a new comer, I thought the idea of "write an image to the card, and it boots" is easier than understanding an "installation program". So I followed a tutorial of dd . During the journey, forum members here told me cp could do the same thing in an easier command line...
by allfox
Mon Apr 09, 2018 11:28 am
Forum: General discussion
Topic: UART
Replies: 7
Views: 188

Re: UART

If it's about copy file from PC, the Ethernet would be easier and faster than UART. I'm not very familar with UART, but I remember if you want send binary data via UART, you would need a special protocol, as binary data need to be escaped. The name of the protocol is Zmodem. It's slow after all. I k...
by allfox
Mon Apr 09, 2018 9:02 am
Forum: General discussion
Topic: UART
Replies: 7
Views: 188

Re: UART

Could you describe more? I mean, do you connected to Pi with UART, and want to read a text file on Pi? Or you connect to Pi with something else, and want to read text from Pi's UART?
by allfox
Sat Mar 31, 2018 8:54 am
Forum: General discussion
Topic: Building the Kernel, get error during module install
Replies: 4
Views: 195

Re: Building the Kernel, get error during module install

OP is right, module installation needs sudo. You would need to include the compiler binary path in root's PATH environment variable. Mostly, I believe, that people run into this problem because they use the Raspbian official cross compiler which is git cloned into somewhere. However, you could use t...
by allfox
Wed Mar 21, 2018 6:06 pm
Forum: Advanced users
Topic: Pi 3B+ NAT capabilities
Replies: 4
Views: 387

Re: Pi 3B+ NAT capabilities

Greetings. I'm making a late reply. I would like to know how to measure the performance of ksoftirqd, if OP could tell me how he got known the bottleneck is at ksoftirqd, please. I'm asking because I'm using NIC scaling, but I don't know if it's working: https://github.com/raspberrypi/linux/blob/rpi...
by allfox
Wed Mar 07, 2018 8:24 pm
Forum: General discussion
Topic: Audio file transfer using UART
Replies: 12
Views: 1640

Re: Audio file transfer using UART

usman2323 wrote:
Wed Mar 07, 2018 3:58 pm
can i have a contact with you . i am working on similar thing . thanks
You could open a new thread.

UART is slow, audio data is huge, why put these two together?
by allfox
Sat Mar 03, 2018 11:23 am
Forum: General discussion
Topic: Raspberry PI capabilities. Would it work?
Replies: 5
Views: 530

Re: Raspberry PI capabilities. Would it work?

I don't know the exact steps nor if there is an existing solution.

But only talking about capability, YES, Pi would handle that.
by allfox
Fri Mar 02, 2018 9:09 pm
Forum: General discussion
Topic: Wireless firmware testers wanted
Replies: 79
Views: 9357

Re: Wireless firmware testers wanted

Tfontoura wrote:
Fri Mar 02, 2018 8:14 pm
How to get back to the previous (good) firmware version? Can we download the bin file from somewhere? Or is there another solution?
Try another sudo apt update and sudo apt upgrade
by allfox
Fri Mar 02, 2018 9:43 am
Forum: General discussion
Topic: Not another SD card falure
Replies: 17
Views: 1284

Re: Not another SD card falure

Spinning storage is better.
by allfox
Tue Feb 27, 2018 9:27 pm
Forum: General discussion
Topic: Virtualize os on Pi2?
Replies: 2
Views: 205

Re: Virtualize os on Pi2?

Maybe you could tell us what model the printer is. I did this kind of thing once. I virtualize Win XP under Linux to get iTunes work. I believe it's just the wrong way. I personally would change the printer to something known to work. If there is no printer known to work, for example those designed ...
by allfox
Sat Feb 24, 2018 5:09 am
Forum: General discussion
Topic: How to use toggle and push switches with the Raspberry Pi 2 to send keystrokes to a pc as keyboard commands for games
Replies: 4
Views: 341

Re: How to use toggle and push switches with the Raspberry Pi 2 to send keystrokes to a pc as keyboard commands for game

I remember that they have a new overlay which is able to translate a GPIO signal to a key stroke to Linux. Don't quite remember the name, maybe gpio-key or something. This might not yet in the normal stable kernel. You need to checkout the GitHub Kernel source tree. EDIT: this one: https://github.co...
by allfox
Thu Feb 15, 2018 3:06 pm
Forum: General discussion
Topic: Opensuse 64bit and rpi2/3?
Replies: 5
Views: 389

Re: Opensuse 64bit and rpi2/3?

OK, I'm on a 64bit official kernel with Raspbian now.

Uptime is 10min and no obsolete instruction warning in syslog.

~$ uname -a
Linux pi1 4.14.18-v8+ #1 SMP PREEMPT Thu Feb 15 22:40:27 CST 2018 aarch64 GNU/Linux
~$ w
23:06:27 up 12 min, 1 user, load average: 0.28, 0.30, 0.29
by allfox
Thu Feb 15, 2018 1:58 pm
Forum: General discussion
Topic: Opensuse 64bit and rpi2/3?
Replies: 5
Views: 389

Re: Opensuse 64bit and rpi2/3?

I tried 64bit kernel on Raspbian. So a userland in 32bit might call "obsolute" instruction.

I think SUSE have a 64bit userland?

Someone said the GPU is in 32bit mode so currently don't work well with a 64bit kernel. Not sure about.

Rumour won't help after all. So I'll try a 64bit kernel myself.
by allfox
Thu Feb 15, 2018 1:19 pm
Forum: General discussion
Topic: Advice requested for use as small file server
Replies: 17
Views: 1251

Re: Advice requested for use as small file server

If you use a USB/Ethernet adapter you will get around 3 times that (my USB3 Anker adapter gives me 318MBsec measured with iperf). I'd stick with Raspbian Lite, even if you know Lubuntu better. A file server would receive data from the storage, then send them to Ethernet. So the throughput on Ethern...
by allfox
Thu Feb 15, 2018 12:59 pm
Forum: General discussion
Topic: Opensuse 64bit and rpi2/3?
Replies: 5
Views: 389

Re: Opensuse 64bit and rpi2/3?

I compiled the official 4.14 kernel with Debian's ARM gcc yesterday. I hesitated if I should go the normal 32bit kernel or the 64bit kernel. I remember that when I did that before, the syslog would fill up with "application calling obsolete instruction, so trying emulating that". And the system woul...
by allfox
Tue Feb 13, 2018 10:20 pm
Forum: General discussion
Topic: Advice requested for use as small file server
Replies: 17
Views: 1251

Re: Advice requested for use as small file server

Raspberry Pi got 100MBits/s Ethernet, which is a bit slow for today, but could be adequate for a small server. I think it's strength is the support. There are guaranteed working software suites available, and a paid team working on it. And its forum is helpful. And Debian has a list of cheap server ...
by allfox
Wed Feb 07, 2018 6:54 am
Forum: Off topic discussion
Topic: RPi 4
Replies: 5
Views: 2258

Re: RPi 4

I'm satisfied with Pi 2 900Mhz 1G Ram.

Guess I'll hold on buying that brain eletronic wave sensor, maybe they have an on-board one with new Pi.

Holding breath and wait.
by allfox
Fri Jan 26, 2018 3:15 pm
Forum: General discussion
Topic: Wireless firmware testers wanted
Replies: 79
Views: 9357

Re: Wireless firmware testers wanted

Did the Pulse audio issue also happen with the previous firmware version? Also, dropping packets does not necessarily result in lower throughput, so would be interesting to see figures. A reboot fixed PulseAudio. So nothing to do with the firmware. :oops: And I tried the old firmware again, it work...

Go to advanced search