Friday 31 July 2020
.NET Core doesn't work on a Pi Zero
.NET Core doesn't work on a Pi Zero. The Pi Zero is armv6 whereas .NET core supports amrv7. The Pi Zero uses the Thumb instruction set (16 bits rather than the normal ARM 32 bit) which the Core CLR JIT compiler does not support.
Command alias in Ubuntu
f you haven’t previously installed xclip simply run the following command in your terminal window:
SHELL
sudo apt-get install xclip -y
Edit your BASH settings file using your favourite text editor. I’ll be using nano, but feel free to use Gedit or Vim etc.
SHELL
nano ~/.bashrc
Then create an alias for pbcopy and pbpaste:
SHELL
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
Close and save the file then just refresh your bash to import your new settings
SHELL
source ~/.bashrc
Monday 20 July 2020
Saturday 4 July 2020
docker i/o timeout on raspberry pi
I was getting an i/o timeout when pulling images on a raspberry pi.
To resolve it I had to change the nameservers on the pi to 8.8.8.8.
This involved setting the primary nameserver on the router and editing /etc/resolv.conf
To resolve it I had to change the nameservers on the pi to 8.8.8.8.
This involved setting the primary nameserver on the router and editing /etc/resolv.conf
Friday 3 July 2020
Partitions
Raspbian on a SanDisk 16GB
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk0p2 532480 31116287 30583808 14.6G 83 Linux
Disk /dev/mmcblk0 - 15 GB / 14 GiB
CHS 486192 4 16 - sector size=512
Current partition structure:
Partition Start End Size in sectors
Warning: number of heads/cylinder mismatches 64 (FAT) != 4 (HD)
Warning: number of sectors per track mismatches 32 (FAT) != 16 (HD)
1 P FAT32 LBA 128 0 1 8319 3 16 524288 [boot]
Warning: Bad ending sector (CHS and LBA don't match)
2 P Linux 8320 0 1 486191 3 16 30583808 [rootfs]
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk0p2 532480 31116287 30583808 14.6G 83 Linux
Disk /dev/mmcblk0 - 15 GB / 14 GiB
CHS 486192 4 16 - sector size=512
Current partition structure:
Partition Start End Size in sectors
Warning: number of heads/cylinder mismatches 64 (FAT) != 4 (HD)
Warning: number of sectors per track mismatches 32 (FAT) != 16 (HD)
1 P FAT32 LBA 128 0 1 8319 3 16 524288 [boot]
Warning: Bad ending sector (CHS and LBA don't match)
2 P Linux 8320 0 1 486191 3 16 30583808 [rootfs]
Thursday 2 July 2020
File and disk recovery
TestDisk and PhotoRec are open source file/disk recovery programs. They are install as part of the same suite and must be compiled before use.
Git source
Git source
Subscribe to:
Posts (Atom)