How to install Cdialog on Ubuntu 17.04
How to install Cdialog on Ubuntu 17.04
The Cdialog is a Shell Script application that display messages and present a variety of questions using dialog boxes from a shell script. It is an enhanced version of ' dialog' to work with ncurses. This tutorial explains the installation procedure of cdialog on Ubuntu 17.04.
Installation procedure
To start the installation, add the required repositories by executing the command.
root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.
+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
packaged in this and related PPAs. End users and administrator are responsible for
runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
Ubuntu repositories and external PPAs. Below is the list of
.
.
.
gpg: keybox ' /tmp/tmp5dz6r_wu/pubring.gpg' created
gpg: /tmp/tmp5dz6r_wu/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+" imported
gpg: Total number processed: 1
gpg:imported: 1
OK
The repositories are added to the target system. Update the repo by executing the apt-get update command.
root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Get:3 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]
Get:5 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [3,924 B]
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [3,916 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [3,140 B]
Hit:8 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Fetched 205 kB in 2s (83.1 kB/s)
Reading package lists... Done
The target system is updated with the required repositories. Install the dialog package and press y to continue with the installation procedure.
root@linuxhelp1:~# apt-get install dialog -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
dialog
0 upgraded, 1 newly installed, 0 to remove and 46 not upgraded.
Need to get 216 kB of archives.
After this operation, 1,138 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 dialog amd64 1.3-20160828-2 [216 kB]
Fetched 216 kB in 2s (102 kB/s)
Selecting previously unselected package dialog.
(Reading database ... 168833 files and directories currently installed.)
Preparing to unpack .../dialog_1.3-20160828-2_amd64.deb ...
Unpacking dialog (1.3-20160828-2) ...
Setting up dialog (1.3-20160828-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
For using the package, type the dialog command and a list of options that can be used with the dialog will be viewed in the terminal.
root@linuxhelp1:~# dialog
cdialog (ComeOn Dialog!) version 1.3-20160828
Copyright 2000-2015,2016 Thomas E. Dickey
This is free software see the source for copying conditions.There is NO
warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* Display dialog boxes from shell scripts *
Usage: dialog < options> { --and-widget < options> }
where options are " common" options, followed by " box" options
Special options:
[--create-rc " file" ]
Common options:
[--ascii-lines] [--aspect < ratio> ] [--backtitle < backtitle> ] [--beep]
[--beep-after] [--begin < y> < x> ] [--cancel-label < str> ] [--clear]
[--colors] [--column-separator < str> ] [--cr-wrap] [--date-format < str> ]
[--default-button < str> ] [--default-item < str> ] [--defaultno]
[--exit-label < str> ] [--extra-button] [--extra-label < str> ]
.
.
[--no-nl-expand] [--no-ok] [--no-shadow] [--no-tags] [--nook]
[--ok-label < str> ] [--output-fd < fd> ] [--output-separator < str> ]
[--print-maxsize] [--print-size] [--print-version] [--quoted]
[--scrollbar] [--separate-output] [--separate-widget < str> ] [--shadow]
[--single-quoted] [--size-err] [--sleep < secs> ] [--stderr] [--stdout]
[--tab-correct] [--tab-len < n> ] [--time-format < str> ] [--timeout < secs> ]
[--title < title> ] [--trace < file> ] [--trim] [--version] [--visit-items]
[--week-start < str> ] [--yes-label < str> ]
Box options:
--buildlist< text> < height> < width> < list-height> < tag1> < item1> < status1> ...
--calendar< text> < height> < width> < day> < month> < year>
--checklist< text> < height> < width> < list height> < tag1> < item1> < status1> ...
.
.
.
--passwordform < text> < height> < width> < form height> < label1> < l_y1> < l_x1> < item1> < i_y1> < i_x1> < flen1> < ilen1> ...
--pause< text> < height> < width> < seconds>
--prgbox< text> < command> < height> < width>
--programbox< text> < height> < width>
--progressbox< text> < height> < width>
--radiolist< text> < height> < width> < list height> < tag1> < item1> < status1> ...
--rangebox< text> < height> < width> < min-value> < max-value> < default-value>
--tailbox< file> < height> < width>
--tailboxbg< file> < height> < width>
--textbox< file> < height> < width>
--timebox< text> < height> < width> < hour> < minute> < second>
--treeview< text> < height> < width> < list-height> < tag1> < item1> < status1> < depth1> ...
--yesno< text> < height> < width>
Auto-size with height and width = 0. Maximize with height and width = -1.
Global-auto-size if also menu_height/list_height = 0.
To remove the dialog package, execute the following command and press y continue with the uninstallation process.
root@linuxhelp1:~# apt-get remove dialog -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
dialog
0 upgraded, 0 newly installed, 1 to remove and 46 not upgraded.
After this operation, 1,138 kB disk space will be freed.
(Reading database ... 168983 files and directories currently installed.)
Removing dialog (1.3-20160828-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Wasn' t that an easy installation procedure? The cdialog contains calender, checklist, file-selection, gauge, info, menu, message, radiolist, tailbox and time.
Comments ( 0 )
No comments available