Using netcat to install or copy .img or .img.xz files
Jump to navigation
Jump to search
Needed to use this approach installing fedora17 on a calxeda box. Image provided was in the format .img.xz. Initial attempts to install in a minimial pxe environment on the calxeda box failed due to lack of memory. This solution worked (un compress image on host and pipe file contents over network to nc running on installation system)
- On the sending host (host a, ip 172.28.0.1)
david@NodeD:~$ xzcat Fedora-17-armhfp-highbank-sda.img.xz | nc -l 4001- On the calxeda host (host b)
nc 172.28.0.1 4001 > /dev/sda1