BreakingExpress

Transfer recordsdata between your telephone and Linux with this open supply device

Are you on the lookout for a option to shortly copy recordsdata out of your iPhone or Android cellular system to your Linux laptop or out of your Linux laptop to your units? I lately found an open supply utility that is straightforward to put in and makes transferring recordsdata so simple as a QR code.

The qrcp undertaking gives a command that generates a QR code in your terminal that means that you can ship or obtain recordsdata to your laptop over the community.

Install qrcp on Linux, Windows, or Mac

The developer, Claudio d’Angelis, has launched the qrcp utility with an MIT license. I discovered it straightforward to put in and straightforward to make use of. It’s out there for Linux, Windows, and macOS, and will be downloaded as an RPM, DEB, or tarball. There are builds for almost each platform, together with the Raspberry Pi.

If you need to set up it on Linux, obtain both the RPM or DEB and use your bundle supervisor to carry out a neighborhood set up. For instance, on Fedora, CentOS, or Mageia, or comparable:

$ sudo dnf set up ./qrcp*rpm

If you simply need to strive it, you possibly can obtain the tar.gz archive and run it domestically:

$ tar --extract --file qrcp*tar.gz
$ ./qrcp model
qrcp 0.x.y

Set up qrcp

You can view the entire out there qrcp choices by utilizing the --help choice:

$ qrcp --help
$ ./qrcp --help
Usage:
 qrcp [flags]
 qrcp [command]

Available Commands:
 completion  Generate completion script
 config      Configure qrcp
 assist        Help about any command
 obtain     Receive one or extra recordsdata
 ship        Send a file(s) or directories from this host
 model     Print model quantity and construct info.
[...]

You can configure the applying by enhancing the default configuration file situated at ~/.config/qrcp/config.json utilizing your favourite editor or invoking the configuration wizard from the command line:

$ qrcp config

The first step is to create a configuration file. The qrcp config command takes you thru this course of, however there are a couple of tough questions.

The first query asks you for a fully-qualified area identify. If you are utilizing qrcp on a neighborhood community that does not use fully-qualified domains (or if you do not know come what may), then go away this clean. The qrcp command will use your native IP tackle as an alternative.

The subsequent query prompts you for a port. Most firewalls block non-standard ports, but it surely’s not unusual to acknowledge port 8080 as Internet site visitors. If your firewall blocks port 8080, you then’ll nonetheless have so as to add an exception. Assuming your system makes use of firewalld, you possibly can permit site visitors on port 8080 with this command:

$ sudo firewall-cmd --add-port 8080/tcp --permanent

Decline the choice to maintain the community connection alive after the switch is full and let qrcp generate a random path.

Assuming you are on a trusted community, use an HTTP (not HTTPS) connection, so you do not have to configure TLS.

The configuration is saved in ~/.config/qrcp/config.json and is editable after the very fact, so for those who change your thoughts about any setting, it is simple to replace.

The up to date configuration seems like this:

{
  "fqdn": "",
  "interface": "wlp0s20f3",
  "port": 8080,
  "keepAlive": false,
  "path": "",
  "secure": false,
  "tls-key": "",
  "tls-cert": "",
  "output": "/home/don"

Transfer recordsdata with qrcp

Now you are able to ship a file out of your Linux laptop to your cellular system. In this instance, I used my iPhone, which infamously gives no help Linux in any respect. The course of is strictly the identical on an Android system.

Here’s how I do it. First, I create an instance file on my laptop:

$ echo "Hello world"> ~/instance.txt

Next, I take advantage of the ship subcommand to ship the file from my Linux laptop to my cellular:

Linux~$ qrcp ship instance.txt

I open my digital camera utility (on Android, I take advantage of a privacy-friendly devoted QR scanner) and the iPhone scans the QR code and launches Safari on my telephone. Finally, I click on on the Download button.

Receiving recordsdata with qrcp

Receiving recordsdata is simply as straightforward, besides the command is barely completely different:

$ qrcp obtain

I scan the QR code, and it as soon as once more launches the Safari browser on my telephone, however this time it seems a bit completely different as a result of I’m sending recordsdata from my iPhone to the Linux laptop.

I click on on Choose Files, which permits me to decide on the file I need to ship.

After sending the file, it is discovered within the default location laid out in my configuration.

Try qrcp

The undertaking documentation is transient however ample, and it is supported by a group of builders along with Claudio d’Angelis, who initially got here up with the concept. The group welcomes you to affix them, and the applying will change the way in which you have a look at file transfers to and out of your cellular units. Try it out!

Exit mobile version