Create a QR Code

Wi-Fi

Some smartphones have the ability to connect to Wi-Fi by scanning a QR code. You can use the qrencode tool to do this.

Here’s the standard template:

WIFI:S:<ssid>;T:<security-type>;P:<password>;;

Here’s a couple of examples using qrencode, which you’ll need to install.

# Example (print the output on the terminal):
qrencode --type=ansiutf8 "WIFI:S:<ssid>;T:WPA;P:<password>;;"

# Example (print the output to a file, which you can then print):
qrencode \
    --type=PNG \
    --size=6 \
    --foreground="4caf50" \
    --background="FFFFFF" \
    --output ppn5.png \
    "WIFI:S:PPN5;T:WPA;P:Groggily*Exclude1*Sublevel*Denial;;"

Misc Information

# Multiline:
qrencode \
    --type=PNG \
    --size=6 \
    --foreground="006a4d" \
    --background="FFFFFF" \
    --output output.png \
    """
Multiline
QR Code
With Text
    """

About

I'm a technology professional who's been passionate about computers since my Grandad introduced me to an Intel 386 back in the 90s when I was a kid. Those moments inspired a passion within for technology, and I've been playing around with anything with a circuit board ever since. Whenever I have a moment you can probably find me working on something computer-related, and this is where I like to write about those moments.