Skip to content

A simple bash script that creates a soft-link to a file, generates and displays a QR code to scan.

License

Notifications You must be signed in to change notification settings

tsengia/QR-Quick-Linker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

QR-Quick-Linker

A simple bash script that creates a soft-link to a file, generates and displays a QR code to scan.

Will create a temporary soft-link to the specified file in your webserver's directory, generate a QR code, and display the QR code to be scanned by a device.

This script cleans up after itself, deleting the temporary files associated with it, so please do not hard-kill it!

NOTE: Please ensure that you have the proper permissions to access the webserver directory. You may have to use sudo!

Usage

qrQuickLink FILE

Requirements

  • qrencode
  • Eye of Mate or Eye of Gnome or Imagemajik
  • Webserver (Apache, ngix, lighthttp, etc)
  • Correct permission level to access webserver directory.

Installation

There are two configration parameters that need changed:

  • WEB_DIR This variable is the path to the webserver's directory that the temporary files will be created. Best to use absolute paths.
  • HOST_URL This is the variable that contains the base web URL that will be inserted in the QR code.

These variables can be found and edited in the first few lines of the script.

I would recommend copying it to your /usr/bin folder for easier access on your terminal: sudo cp qrQuickLink /usr/bin/

About

A simple bash script that creates a soft-link to a file, generates and displays a QR code to scan.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages