Skip to content

Rage Against the Shell

Linux tips and other things…

  • Home
  • Contact
  • Privacy Policy

Month: January 2022

Using qrencode

Posted on January 16, 2022 by Mr. Reboot

Tested on Ubuntu 20

With qrencode you can encode text, strings or urls into a QR image, easily.

Install package:

~ $ sudo apt-get install qrencode

Generate a QR image from a URL in PNG format:

~ $ qrencode -o thebestwebsite.png -t PNG "https://rageagainstshell.com"

Generate a QR image from a URL in PNG format, with size 10 (default is 3):

~ $ qrencode -s 10 -o thebestwebsite.png -t PNG "https://rageagainstshell.com"

Print a QR image by stdout from a text:

qrencode -t ansiutf8 "This is a string" -o -

If you feel green, you may change the default background color:

~ $ qrencode --background=457834 -s 5 -o thebestwebsite.png -t PNG "https://rageagainstshell.com"

Or the foreground:

~ $ qrencode --foreground=457823 -s 5 -o thebestwebsite.png -t PNG "https://rageagainstshell.com"
Posted in Command lineLeave a comment

Search

Calendar

January 2022
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Apr    

Categories

  • Apache
  • Cisco
  • Command line
  • Distros
  • Dovecot
  • File systems
  • Gadgets
  • GlusterFS
  • MySQL
  • Nginx
  • NTP
  • Opendkim
  • Pacemaker + Corosync
  • Postfix
  • Raspberrypi
  • SSH
  • SSL
  • Varnish

RSS RSS

  • Using qrencode January 16, 2022
  • Compile varnish module vmod_vsthrottle April 22, 2020
  • SSH vpn with sshuttle April 9, 2020
  • Disable swap in systemd December 16, 2019
  • Getting the parent process pid October 12, 2018
Proudly powered by WordPress | Theme: micro, developed by DevriX.