Ενα utility για την κονσολα, το οποιο μεσα απο ενα συστημα menu μπορει ο καθενας να εκτελει εντολες του linux ευκολα και χωρις πολλες γνωσεις. Επιπλεον το προγραμμα μπορει να διαμορφωθει ωστε να δημιουργηθουν οδηγοι/tutorials για την αποκατασταση συνηθησμενων προβληματων στο linux. To προγραμμα το κατεβαζετε απο εδω: https://sourceforge.net/projects/concom/
Ολα τα menu ειναι απλα text αρχεια, οποτε μπορουν να προστεθουν/αφαιρεθουν εντολες πολυ ευκολα.


- Κώδικας: Επιλογή όλων
[] Console Commander
--------------------------------------------------------------------------------
1. About
2. Installation
3. How to use
4. Customize
--------------------------------------------------------------------------------
1. About
Console Commander is an utility to simplify the use of the console in
Linux systems (like Ubuntu) for new users. It also has guides to help users in
various troubleshooting problems with the Linux enviroment.
##### IMPORTANT ################################################################
The wrong use of some of the commands/guides in this program, may hurt your
system. Use with caution or if you dont care about the loss of any data.
Backup the files you need before trying any of these guides. The author of this
program is not responsible for any data loss you may have.
################################################################################
2. Installation
Read the install.txt file
3. How to Use
Open a terminal or switch to console with CTRL+ALT+F1..F5 and type:
./concom
Navigate with the arrow keys and select with ENTER. Also in the text
viewer you can use PAGE UP/DOWN and ESC to leave. Pressing ESC at the menus,
exits the program.
You can follow the instructions and type the commands that are described
in the guides/tutorials in the same time you are reading them. If you have
opened a terminal, just open a new tab for it from the menu: File > Open Tab
If you are in the console, you can login to another console by pressing the key
combination: CTRL+ALT+F1 to CTRL+ALT+F5. If you are allready in the console No1
then press CTRL+ALT+F2 and then login. Type the commands in here and you can
return to the original console (where you launched the ConCom) to view the
instructions by pressing CTRL+ALT+F1. When done you can write the command:
exit
to close the current console.
4. Customization
Console Commander uses some simple .ini files to customize the menus.
If you dont know what an .ini file is, it is ok. Go to the folder you have saved
Console Commander and find the folder "menus". In there, are all the menus that
are being used. You can edit them with a simple text editor, like gedit, vi etc.
You can add more commands, menus, guides to the programm. A simple example of a
menu file is this:
[main]
menuname=[ Network Information ]
itemcount=8
[item1]
text=Network Interfaces Info
command=ifconfig
...........
...........
...........
[item7]
text=Firewall Options
menu=firewall
description=Enable, Disable firewall etc.
[item8]
text=Back to Main Menu
menu=system
The main menu file that it has to be present in the menu folder is the menu.ini
All the other files are not necessary and you can delete, rename or add more. So
lets explain the structure of this file and how you can add more commands.
Its .ini file, inside, has some sections. A section is define by the
line with the two brackets (ex: [main]) and where another section begins there
the previous section ends. Each file must have a section with the name: [main]
This is important. The [main] section can have the followin keys and values:
menuname=
Value: Any text you want.
This sets the title for the menu.
itemcount=
Value: 1..
This tells how many section with commands we have in the menu.
It starts counting from 1 up to as many as you want.
menucolor=
Value: yellow, white, blue, green, red, grey, cyan
This is the text color for the menu title. Only one color can be
added.
itemcolor=
Value: yellow, white, blue, green, red, grey, cyan
This is the text color for the items. Only one color can be
added.
selectedcolor=
Value: yellow, white, blue, green, red, grey, cyan
This is the text color for the selected item. Only one color can
be added.
selectedbg=
Value: yellow, white, blue, green, red, grey, cyan
This is the background color for the selected item. Only one
color can be added.
descriptioncolor=
Value: yellow, white, blue, green, red, grey, cyan
This is the text color for the item description. Only one color
can be added.
description=
description0=
description1=
description2=
description3=
description4=
description5=
Value: Any text you want
This is the description for a menu item. You can add up to 7
rows (description, description0,description1..description5)
You can add more commands by adding an item section. An item section has
the following parameters/keys:
[item4]
Item number. It must me in the format of [itemx] where x is an
integer number. It must be lower or equal to the itemcount of
the main section.
text=
Value: Any text you want
The item text.
TO ADD A NEW MENU ADD ONLY THE PARAMETER BELOW (menu=)
menu=
Value: A valid .ini file, inside the menu folder.
This tells the program that if the user will select this item,
it will open a new menu. Dont add the .ini extension, just the
filename. For example:
menu=exit
TO ADD A CUSTOM COMMAND THE FOLLOWING PARAMETERS MAYBE NEEDED.
description=
Value: Any text you want
This is a small description for the item. It cant be more than a
row.
nocapture=1
Value: 1
This is a switch for the Console Commander that tells to the
program not to capture the output of the command it is being
executed. If you dont add this flag and execute a program like
a file explorer or text editor, the program will not display the
output of the program and so you will not be able to exit from
it.
command=
Value: A valid linux terminal command or an external program.
if the command needs a parameter from the user, enter
the variable:%value% For example:
command=shutdown -h %value%
or
command=mount %value% /media/usb_stick
With this, the program will ask the user to type the
parameter. You can specify your own prompt for the
parameter by adding the key: prompt=
For example:
prompt=Enter desired time for shutdown (ex: 23:30):
prompt=Specify the USB drive to mount:
Value: Instead of adding a linux command you can just add a new
guide/tutorial. You can do this by adding the variable
%view% and the name of the file you want to display. The
file must be in the guides folder. For example:
command=%view% fstab.txt
command=%view%format_linux_drive.txt






