Skip to content

This tool is a Bash script that generates a QR code from a provided URL.

Notifications You must be signed in to change notification settings

mdbentaleb/Dynamic_QR_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

QR Code Generator Script

script-

This is a Bash script that generates QR codes from a given URL using the qrencode command-line utility.

Prerequisites

This script automatically installs qrencode if it's not already present on your system. However, you will need administrative privileges to install packages. If you're prompted for a password during script execution, please provide it to allow the installation to proceed.

Usage

  1. Clone the repository:
   git clone https://github.com/mdbentaleb/Dynamic_QR_Generator.git
  1. Make the script executable by running the following command:
   chmod +x qrgen.sh
  1. Run the script with the following command:
   ./qrgen.sh <URL>

Replace with the URL you want to encode into a QR code.

Example

   ./qrgen.sh "https://example.com"

example-

  • This will generate a QR code image file named qr_code.png in the current directory, encoding the URL https://example.com

Output

If the QR code generation is successful, the script will print a message indicating the name of the generated QR code file. If it fails, an error message will be displayed.

output-

Note for Users

  • The script uses sudo to execute certain commands. If prompted for a password, it is expected behavior, and there is no need to be concerned. This is a standard security measure to ensure proper system maintenance.

Disclaimer

This script is designed for personal use. Review the code before executing on critical systems.

Author

mdbentaleb

About

This tool is a Bash script that generates a QR code from a provided URL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages