Go to advanced search

by allfox
Thu Sep 27, 2018 10:37 am
Forum: General discussion
Topic: Copy partitions with rsync?
Replies: 2
Views: 123

Re: Copy partitions with rsync?

I don't know vfat. However rsync SD cards would work.

I did that before with rsync -avx --delete SRC/ DEST
by allfox
Fri Sep 21, 2018 10:56 am
Forum: General discussion
Topic: Pi 3 Model B+ locks up daily
Replies: 11
Views: 580

Re: Pi 3 Model B+ locks up daily

It says wlan reconfigured, so might be some external radio interferences happened.

Could you try a wired connection?
by allfox
Mon Sep 17, 2018 9:28 am
Forum: General discussion
Topic: Chinese input method? [solved]
Replies: 2
Views: 156

Re: Chinese input method?

I use a headless setup, so not sure about the exact steps. But essentially, you need a Chinese font, an input method framework(daemon), and an actual input method. Raspbian is Debian mostly, so it might worth trying https://wiki.debian.org/gnome-chinese-input EDIT: I just remember that Raspbian is n...
by allfox
Mon Sep 17, 2018 9:21 am
Forum: General discussion
Topic: Pi 3B+ Ethernet hardware behaviour
Replies: 4
Views: 147

Re: Pi 3B+ Ethernet hardware behaviour

They changed the Ethernet chip, so there could be anything strange between the 3B+ and those elder model. Don't know what is it.

Might worth changing the cable.
by allfox
Wed Sep 12, 2018 4:43 pm
Forum: General discussion
Topic: No Red LED [solved]
Replies: 5
Views: 207

Re: No Red LED

My BCM2836 Pi 2B's red LED is illuminating here.
by allfox
Wed Sep 12, 2018 4:12 pm
Forum: General discussion
Topic: Fail2ban-client
Replies: 4
Views: 191

Re: Fail2ban-client

I don't like this this thread. It says /usr/local/bin, so the OP compiled his own version of fail2ban and some bad thing blow up, and he said nothing about it. And his solution is "rm" the main executable file, again with no explanation. I think the right solution should be getting a fresh new Raspb...
by allfox
Mon Aug 06, 2018 6:53 pm
Forum: Networking and servers
Topic: Multicast Client
Replies: 5
Views: 388

Re: Multicast Client

Is there any encoding or compression with the audio stream?

If they are RAW data, you could just redirect them to aplay:

./your-program | aplay [parameter to define RAW format]

https://en.m.wikipedia.org/wiki/Aplay
by allfox
Mon Jul 09, 2018 9:51 am
Forum: Advanced users
Topic: Is there a performance penalty to using two byte structs instead of 4?
Replies: 16
Views: 643

Re: Is there a performance penalty to using two byte structs instead of 4?

I have some uncertain about this.

I think it's the compiler make the decision. If it is optimizing for speed, it could fit the 2 bytes struct into a 4 byte aligned space.

And I have an unsure illusion that Windows would fit anything into 8 byte aligned space.
by allfox
Mon Jul 09, 2018 9:40 am
Forum: General discussion
Topic: Setting a static IP address from SD card before boot
Replies: 20
Views: 1495

Re: Setting a static IP address from SD card before boot

[*]Static IPs still require the router to be configured NOT to use those addresses. I agree with "Don't do that." for static IP. However, I'd like to mention that some routers would check if an dynamic IP is usable before assigning it to a client. The dnsmasq would send a ICMP ping to make sure the...
by allfox
Thu Jun 28, 2018 10:49 am
Forum: General discussion
Topic: Why didn't we go with Mali?
Replies: 139
Views: 19903

Re: Why didn't we go with Mali?

I recently see an Android tablet with Mali priced at 90 US dollars is able to decode HEVC(x265) by hardware. I wish that HEVC unicorn works on Pi either. My tablet, and the laptop I'm typing now is not able to accelerate HEVC either. They are old, bought in 2013 or so. Anything newer than 2016 shoul...
by allfox
Sat Jun 23, 2018 12:35 pm
Forum: General discussion
Topic: Network Monitoring
Replies: 4
Views: 541

Re: Network Monitoring

I think iptables could log traffic, like this: # iptables -nv --list .... 0 0 RETURN icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmptype 0 0 0 RETURN icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmptype 3 44 1856 RETURN icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmptype 8 0 0 RETURN icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmptype 11 0 0 R...
by allfox
Tue Jun 12, 2018 11:45 am
Forum: General discussion
Topic: Automatically update project onto many headless pi
Replies: 8
Views: 269

Re: Automatically update project onto many headless pi

I remember there are platform program which let you update those IOT Pi on the air.

They overwrite the whole image when update.
They load the image into memory before execute it, so you could cut the power anytime.

But I can't recall the name!
by allfox
Tue May 08, 2018 8:30 pm
Forum: General discussion
Topic: Controlling LAN LEDs individually
Replies: 37
Views: 18818

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: 1031

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: 3
Views: 1405

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: 1031

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: 379

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: 552

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: 67
Views: 3300

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: 278

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: 278

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: 436

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: 528

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...

Go to advanced search