Go to advanced search

by jahboater
Sun Feb 23, 2020 7:10 pm
Forum: Python
Topic: Run the python interpreter nicer...
Replies: 3
Views: 224

Re: Run the python interpreter nicer...

Yes indeed.
I love the old UNIX commands - the name is actually meaningful.

If you have a quad core Pi then it should not be needed - there are three spare cores to run other programs.
by jahboater
Sun Feb 23, 2020 6:54 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: Unzipping in a pipeline

I'm not the one who is confused here. Granted, this discussion has reached kind of a high level, so the outcome is not surprising. Well, I'm confused. I did not understand what you are talking about. What we want is a nice tool to flash SD cards. You were commenting on internet services. As far as ...
by jahboater
Sun Feb 23, 2020 4:36 pm
Forum: General discussion
Topic: To perform single task at a time on raspberry-pi
Replies: 10
Views: 374

Re: To perform single task at a time on raspberry-pi

Thank you sir, for your reply, as you told that ensure that nothing run on machine while running my code....as I am very new to these coding languages and raspberry pi....please tell me how to do that Secondly how to use 'nice' command?? @Heater has answered this question well, with the same points...
by jahboater
Sun Feb 23, 2020 12:27 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

So I'm not sure if " unzip " is always there. gzip , of course, will always be there. Another advantage of gzip over unzip is that it accepts input from stdin. That is, you could I think (never tried it) do:- # curl URL | gzip -dc >/dev/sda Download, unzip, and write - all in one go! (without using...
by jahboater
Sun Feb 23, 2020 10:58 am
Forum: Beginners
Topic: SDcard
Replies: 1
Views: 108

Re: SDcard

Is a Sandisk Extreme 32 GB a good option? If you mean: https://www.amazon.co.uk/SanDisk-Extreme-microSDXC-Adapter-Performance/dp/B06XWMQ81P/ref=sr_1_3?crid=26WN26WDBB5ME&keywords=sandisk%2Bextreme%2B64gb%2Bmicrosdxc&qid=1582455393&sprefix=sandisk%2Bextreme%2Caps%2C168&sr=8-3&th=1 Yes I think they a...
by jahboater
Sun Feb 23, 2020 8:19 am
Forum: Beginners
Topic: Headless login practices?
Replies: 14
Views: 475

Re: Headless login practices?

To set the static IP address from the Pi, edit:

/etc/dhcpcd.conf

it has examples.
by jahboater
Sun Feb 23, 2020 8:13 am
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

It is great we have alternatives, but deriding a product to promote an alternative leaves a sour taste. Maybe Google's ChromeOS SD Card Creator is a good alternative ? https://www.raspberrypi.org/documentation/installation/installing-images/chromeos.md Err no that would send Analytics to Alphabet !...
by jahboater
Sun Feb 23, 2020 8:01 am
Forum: Beginners
Topic: Logitech MX Keys keyboard and MX 2S mouse with Pi 4B? Any advantages in getting the Desktop Kit?
Replies: 7
Views: 687

Re: Logitech MX Keys keyboard and MX 2S mouse with Pi 4B? Any advantages in getting the Desktop Kit?

I got the Desktop kit mostly because it comes with the micro HDMI cables, power supply and case. The keyboard with built in USB hub is nice. My only complaint is the giant full size mouse. I wish the mouse was smaller I wish the keyboard was bigger! My Pi4 came from here: https://thepihut.com/produ...
by jahboater
Sat Feb 22, 2020 11:59 pm
Forum: General discussion
Topic: Raspberry Pi Zero: please use with a CPU cooler!
Replies: 29
Views: 1280

Re: Raspberry Pi Zero: please use with a CPU cooler!

Look at the run queue length for an indication of the load. The two commands "uptime" and "top" (and htop) both show the load averages for 1, 5, and 15 minutes. The load average is really the average run queue length which is the number of "runnable" jobs waiting for a CPU. CPU's are always either i...
by jahboater
Sat Feb 22, 2020 7:03 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

This is all very interesting. I used blockdev to get the info for the Pi's SD card (64GB Sandisk A1 class) For writes it may be more interesting to see if your card reports the erase block size, e.g.: $ cat /sys/block/mmcblk0/device/preferred_erase_size 4194304 Its the same as yours, 4MiB Does that...
by jahboater
Sat Feb 22, 2020 5:59 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

Earlier I speculated that cp's choice of 128KB for its block size was somehow related to the kernels readahead.

// readahead (in 512-byte sectors)
[email protected]:~ $ sudo blockdev --getfra /dev/mmcblk0
256

That is 128KB !! cool.

You learn something every day here.
by jahboater
Sat Feb 22, 2020 5:51 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

This is all very interesting. I used blockdev to get the info for the Pi's SD card (64GB Sandisk A1 class) // block size in bytes [email protected]:~ $ sudo blockdev --getbsz /dev/mmcblk0 4096 // physical block (sector) size [email protected]:~ $ sudo blockdev --getpbsz /dev/mmcblk0 512 // logical sector ...
by jahboater
Sat Feb 22, 2020 4:48 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

That doesn't really matter. It will pre-read blocks in advance as long as you don't tell it not to. So it will keep the destination device busy. You can try it yourself. You will see there is not a huge difference between 128 KiB and 1 or 4 MiB ;) The later is what i usually use for block sizes and...
by jahboater
Sat Feb 22, 2020 3:30 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

I prefer dd over cp/cat because you can control the block size. NAND flash has large pages these days so it's a good idea to write in blocks a multiple of the page size. It's faster and causes less wear. What block size do you suggest? cp and cat use 128KB blocks which seem reasonable to me. I avoi...
by jahboater
Sat Feb 22, 2020 3:12 pm
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

Note that I'm never quite sure what is and isn't installed-by-default in Raspbian. Several perfectly obvious, for all practical purposes essential, utilities are not installed-by-default (I always have to manually install them when setting up a new system). So I'm not sure if " unzip " is always th...
by jahboater
Sat Feb 22, 2020 11:44 am
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

GlowInTheDark wrote:
Sat Feb 22, 2020 10:51 am

Code: Select all

# cat /path/to/image.img > /dev/sda
or

Code: Select all

# unzip -p /path/to/image.img >/dev/sda
which does the unzip and copy in one go (like etcher).

To be fair, one must double check sda is the right disk.
by jahboater
Sat Feb 22, 2020 9:27 am
Forum: General discussion
Topic: What is a good replacement for Etcher (ads and ignores privacy)
Replies: 143
Views: 11102

Re: What is a good replacement for Etcher (ads and ignores privacy)

I think people are upset about the fact that it (apparently) requires a network connection to run - and can be seen to be doing network communication while running (if you use something like Wireshark or tcpdump on it). Given what the program does, there is no reason for it to be doing any network ...
by jahboater
Sat Feb 22, 2020 1:41 am
Forum: General discussion
Topic: Commands
Replies: 6
Views: 304

Re: Commands

Just place it in ~/.bashrc Actually, the best place is .bash_aliases (feel free to create the file if it doesn't not already exist). Yes, sounds like that is probably best. The reason I put them in .bashrc is because its full of aliases by default: # enable color support of ls and also add handy al...
by jahboater
Fri Feb 21, 2020 9:18 pm
Forum: General discussion
Topic: Commands
Replies: 6
Views: 304

Re: Commands

Note that alias will work however by default an alias won't survive a reboot. Just place it in ~/.bashrc Simple and efficient. Much less hassle than:- - creating the shell script file - adding the shebang line - setting execute permission - placing it on the path or remembering to use ./ all the ti...
by jahboater
Fri Feb 21, 2020 9:16 am
Forum: General discussion
Topic: Sandisk Ultra Plus or Extreme
Replies: 16
Views: 751

Re: Sandisk Ultra Plus or Extreme

A1 cards do not require anything special (they work great in Raspberry Pi computers). The supposedly faster A2 cards do require support from the device to reach their lofty numbers. When used in non-A2 compatible devices (like a Pi), they are actually slightly slower than A1 cards, but still much f...
by jahboater
Fri Feb 21, 2020 3:43 am
Forum: Beginners
Topic: Partition Basics
Replies: 3
Views: 160

Re: Partition Basics

Tell me about partitions, please. I burned Raspian to a 32 GB Kingston SD card while awaiting the arrival of my Pi in a few days. Do I need a partition? If so, did I need a partition before burning the image? Do I partition it afterwards? The Raspbian image contains the two partitions needed. You n...
by jahboater
Thu Feb 20, 2020 9:48 pm
Forum: General discussion
Topic: Sandisk Ultra Plus or Extreme
Replies: 16
Views: 751

Re: Sandisk Ultra Plus or Extreme

i've switched to using u3 speed cards, faster than class 10 in these little pi's. the sdcard slot is the weak point though, it can only do so much. The best cards now are the new A1 class cards which are designed for very high IOPS - great for an OS. https://www.sdcard.org/developers/overview/appli...
by jahboater
Thu Feb 20, 2020 9:35 pm
Forum: General discussion
Topic: how to turn it off?
Replies: 9
Views: 440

Re: how to turn it off?

Is it really "stuck"? Perhaps try Ctrl-Alt-F1 (or F2 or F3 ...) It just might come up with a cleared screen and a login prompt. Then its easy to sync and shut it down cleanly. However, as noted above, if its really crashed, then there is no possibility of an orderly shutdown (saving anything that's ...
by jahboater
Thu Feb 20, 2020 6:09 am
Forum: Beginners
Topic: SSH - Copy keys to another computer or create new keys?
Replies: 8
Views: 252

Re: SSH - Copy keys to another computer or create new keys?

I copy them around to all the Pi's using "ssh-copy-id" to each Pi.

Is that wrong ?

Its very simple.
by jahboater
Wed Feb 19, 2020 6:48 pm
Forum: Advanced users
Topic: Overclock to 2.29 Ghz. But How?
Replies: 3
Views: 315

Re: Overclock to 2.29 Ghz. But How?

Your not actually running cpuburn!
By the look of it you just assembled it only.
You need to run:-

./cpuburn-a53

and leave it running for an hour or so.
In another terminal window you can periodically check the clock speed and temperature with vcgencmd.

Go to advanced search