https://github.com/mdbentaleb/dynamic_qr_generator
This tool is a Bash script that generates a QR code from a provided URL.
https://github.com/mdbentaleb/dynamic_qr_generator
Last synced: 7 months ago
JSON representation
This tool is a Bash script that generates a QR code from a provided URL.
- Host: GitHub
- URL: https://github.com/mdbentaleb/dynamic_qr_generator
- Owner: mdbentaleb
- Created: 2024-05-14T15:28:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T14:18:33.000Z (about 2 years ago)
- Last Synced: 2024-05-16T18:53:28.559Z (about 2 years ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QR Code Generator 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:**
```bash
git clone https://github.com/mdbentaleb/Dynamic_QR_Generator.git
```
2. **Make the script executable by running the following command:**
```bash
chmod +x qrgen.sh
```
3. **Run the script with the following command:**
```bash
./qrgen.sh
```
Replace with the URL you want to encode into a QR code.
## Example
```bash
./qrgen.sh "https://example.com"
```

- 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.

## 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](https://github.com/mdbentaleb)