TRANSFERRING FILES TO MOBILE DEVICES WITH QRCP
Even though Croc supports a variety of architectures and operating systems, if you wish to transfer files between a computer and a smartphone, your only options are to either use a USB cable or worse still, email the files to yourself. Thankfully, a smarter and more convenient solution is available.
Qrcp works by binding a web server to the sender machine’s IP address along with a random port number. Next, it generates a unique QR code that provides the relevant information. You need only read the QR code on your mobile device, which will then automatically take you to the decoded URL. The web server automatically stops once the download is completed.
Head over to the project’s GitHub page (https://github.com/claudiodangelis/ qrcp) and download the latest source tarball and place the extracted qrcp file in a directory in $PATH, such as /usr/ local/bin.
To transmit a file, run the qrcp filename command on the sender machine. Qrcp will generate a QR image as well as provide a URL such as http://192.168.0.15:33773/send/qb2d. On the mobile device, use a QR code scanner, such as Google Lens, and scan the QR code. Then tap on the decoded URL that’s displayed on the screen, and the transfer will begin automatically.
You can similarly transmit files from the mobile device. First, open the terminal on the recipient machine and run the qrcp receive command. This will again generate a QR image, which you must scan on your mobile device. This opens a file browser, which you can use to select the files you wish to transmit.