https://github.com/pratikshinde55/zenity-gui
Exploring Zenity: A Comprehensive Guide with Output Screenshots,
https://github.com/pratikshinde55/zenity-gui
aws-ec2 ubuntu zenity zenity-gui zenity-gui-dialogs
Last synced: 3 months ago
JSON representation
Exploring Zenity: A Comprehensive Guide with Output Screenshots,
- Host: GitHub
- URL: https://github.com/pratikshinde55/zenity-gui
- Owner: Pratikshinde55
- Created: 2024-04-02T11:59:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-26T13:15:05.000Z (5 months ago)
- Last Synced: 2025-01-13T16:50:29.442Z (4 months ago)
- Topics: aws-ec2, ubuntu, zenity, zenity-gui, zenity-gui-dialogs
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zenity

## Zenity:
**Zenity is a powerful command-line utility that allows users to create graphical user interfaces (GUIs) for shell scripts and terminal commands. In this blog post, we'll delve into the various options
and functionalities offered by Zenity, accompanied by output screenshots for better understanding.****Zenity is a handy tool for enhancing the user experience of shell scripts by providing graphical dialogs such as message boxes, input forms, file selection dialogs, progress bars, and more.
It simplifies interaction with users and adds a visual element to terminal-based applications.**## How to Install and setup of zenity:
Here i use Amazon Cloud ubuntu AMI & I used putty for ssh connection.(private-key amazon -->> .ppk )
- On putty:
1. In Session -->> Hostname: ubuntu@public_ip_of_instance -->> select ssh
2. SSH -->> Auth -->> Credentials -->> private key file for Auth (same key of used for instance)
3. SSH -->> Auth -->> X11 -->> Enable X11 forwarding
- Note:
X11 server need on local window for allow display ,
If don't have then download "Xming" link for download- [Xming-Download-link](https://sourceforge.net/projects/xming/) After download install and open onces, it
can't open just click on open.- Note:
Also check SSH settings of instance , "/etc/ssh/sshd_config" in this folder allow "X11Forwarding yes". After that just restart sshd by using "systemctl restart sshd" command.
Installation:
1st need to update use follow command:
sudo apt-get update
Install command for zenity on ubuntu:
sudo apt-get install zenity
Check zenity install or not:
zenity --version
## Magical display commands using Zenity
### Information Dialog:
zenity --info --text="Hello, World!"
### Warning Dialog:
zenity --warning --text="This is a warning message."
### Error Dialog:
zenity --error --text="An error occurred."
### Question Dialog (with Yes/No buttons):
zenity --question --text="Do you want to continue?"
### Input Dialog (for user input):
zenity --entry --text="Enter your name:"
### Password Dialog (for password input):
zenity --password --text="Enter your password:"
### File Selection Dialog (for selecting files):
zenity --file-selection --title="Select a file:"

### Calendar Dialog (for selecting a date):
zenity --calendar --title="Select a date:"

### Progress Dialog (for displaying progress):
zenity --progress --title="Progress" --text="Processing..." --percentage=50
### Color Selection Dialog (for selecting a color):
zenity --color-selection --title="Select a color:"
### Question Dialog with Custom Buttons:
zenity --question --text="Do you want to save your changes?" --ok-label="Yes" --cancel-label="No"

### Progress Dialog with Auto-Close:
(sleep 20; echo "100") | zenity --progress --auto-close --text="Processing..."

### Command that displays a "fortune" (random quote) in a dialog window:
here need 1st install fortune-mod on instance.sudo apt install fortune-mod

Every time new come up:
