Frontend προγραμμα για εκτελεση εντολων σε terminal...

...του ubuntu και έργων ΕΛ/ΛΑΚ (Έργα-Οδηγοί-Προτάσεις)

Συντονιστής: konnn

Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό xqtr » 25 Φεβ 2009, 00:02

Console Commander

Ενα 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

Τελευταία επεξεργασία από xqtr και 08 Μαρ 2009, 02:08, έχει επεξεργασθεί 3 φορά/ες συνολικά
O χειμώνας έρχεται...
Γνώσεις ⇛ Linux: Μέτριο │ Προγραμματισμός: Ναι (Delphi/Lazarus) │ Αγγλικά: Καλά
Λειτουργικό : Ubuntu 14.04 σε Acer Aspire 5520
Προδιαγραφές ⇛ AMD Turion 1.8GHz │ 1GB │ ATI X700 │ Broadcom BCM4318 │LCD 15.4"
Άβαταρ μέλους
xqtr
seniorTUX
seniorTUX
 
Δημοσιεύσεις: 509
Εγγραφή: 05 Φεβ 2009, 19:00
Εκτύπωση

Re: Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό linuxman » 25 Φεβ 2009, 00:16

Πολύ μεγάλο ΜΠΡΑΒΟ , πολύ χρήσιμο αυτό .
Δεν κάνεις και ένα μικρό οδηγό με εικόνες και τα αρχεία αυτά να το προσθέσουμε στους οδηγούς .
Για να κατεβάσουν από κάπου αρχεία όλα μαζί στείλε μου π.μ. αν θες να τα ανεβάσω στο econlab.uom.gr να τα έχουμε εκεί άλλα και στο ubuntu-gr.org
μπορώ να τα ανεβάσω .
Οδηγίες προς Νεοεισερχόμενους
1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Ικανοποιητικό ┃ Αγγλικών: Ικανοποιητικό
2 Linux Mint 17.1 Rebecca 3.13.0-37-generic 64bit (el_GR.UTF-8, X-Cinnamon cinnamon)
3 Intel Core i5-2310M CPU @ 2.10GHz ‖ RAM 3866 MiB ‖ Dell Inc. 0D7C51 - Dell Inc. Dell System Vostro 3750
4 Intel 2nd Generation Core Processor Family Integrated Graphics [8086:0116] {i915}
5 wlan0: Intel Centrino Wireless-N 1030 [Rainbow Peak] [8086:008a] (rev 34) ⋮ eth0: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
http://www.greeklug.gr
Άβαταρ μέλους
linuxman
Επίτιμο μέλος
Επίτιμο μέλος
 
Δημοσιεύσεις: 10378
Εγγραφή: 10 Μάιος 2008, 20:41
Τοποθεσία: Thessaloniki / Macedonia / Greece
Εκτύπωση

Re: Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό luckyb » 25 Φεβ 2009, 00:17

χμμμ

εμείς πως μπορούμε να το δοκιμάσουμε :?:

(μήπως έχασα κάποιο λινκ ?)
luckybackupkde-apps.org
Γνώσεις ⇛ Linux: Καλό ┃ Προγραμματισμός: Ναι ┃ Αγγλικά: Καλά
Λειτουργικό ⇛ Aptosid σε Dell M1530
Άβαταρ μέλους
luckyb
babeTUX
babeTUX
 
Δημοσιεύσεις: 84
Εγγραφή: 05 Ιαν 2009, 21:26
Τοποθεσία: Αθήνα
Εκτύπωση

Re: Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό xqtr » 25 Φεβ 2009, 00:38

http://rapidshare.com/files/202132152/c ... ar.gz.html <---- κατεβαστε το απο εδω προσωρινα..
το προγραμμα δεν ειναι 100% ετοιμο.. ειναι πληρως λειτουργικο, το μονο που του λειπει ειναι να προσθεσουμε τους οδηγους (πχ πως να κανεις mount ενα δισκο) και οποια αλλη εντολη ειναι απαραιτητη. Βασικα να φτιαχτει ενα menou/συνολο εντολων το οποιο σε περιπτωση προβληματος με το λειτουργικο να μπορει να διορθωσει το προβλημα...

οποιεσδηποτε προτασεις, δεκτες.
O χειμώνας έρχεται...
Γνώσεις ⇛ Linux: Μέτριο │ Προγραμματισμός: Ναι (Delphi/Lazarus) │ Αγγλικά: Καλά
Λειτουργικό : Ubuntu 14.04 σε Acer Aspire 5520
Προδιαγραφές ⇛ AMD Turion 1.8GHz │ 1GB │ ATI X700 │ Broadcom BCM4318 │LCD 15.4"
Άβαταρ μέλους
xqtr
seniorTUX
seniorTUX
 
Δημοσιεύσεις: 509
Εγγραφή: 05 Φεβ 2009, 19:00
Εκτύπωση

Re: Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό chazisop » 25 Φεβ 2009, 00:47

Mπράβο , ούτε το μυαλό μου να διάβαζες ... πολύ χρήσιμο , ελπίζω να το δούμε και ολοκληρωμένο και θα σκεφτώ να κάνω και μια παρουσίαση του , αν δε σε ενοχλεί :)
Επίπεδο Γνώσεων: Linux: Μέτριο / Προγραμματισμός: Ναι / Αγγλικά:Καλά
Ubuntu 8.10 Intrepid Ibex
Intel Core2 6400 @ 2.13GHz , 3GB RAM , Nvidia 7600 GT , 2 x 120GB Western Digital hdd , 1x1TB Seagate hdd
chazisop
punkTUX
punkTUX
 
Δημοσιεύσεις: 160
Εγγραφή: 20 Νοέμ 2008, 04:19
Εκτύπωση

Re: Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό luckyb » 25 Φεβ 2009, 01:03

δουλεύει άψογα :)
Πολύ καλό και πολύ έξυπνο

Με τα αρχεία ini το φέρνει ο καθένας στα μέτρα του

Μπράβο ρε xqtr !!

σε τι γλώσσα το'γραψες ?
luckybackupkde-apps.org
Γνώσεις ⇛ Linux: Καλό ┃ Προγραμματισμός: Ναι ┃ Αγγλικά: Καλά
Λειτουργικό ⇛ Aptosid σε Dell M1530
Άβαταρ μέλους
luckyb
babeTUX
babeTUX
 
Δημοσιεύσεις: 84
Εγγραφή: 05 Ιαν 2009, 21:26
Τοποθεσία: Αθήνα
Εκτύπωση

Re: Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό bullgr » 25 Φεβ 2009, 01:14

Ακούγεται και φαίνεται πολύ ωραίο... Θα το δοκιμάσω μόλις βρω χρόνο...
Πάντως καλό είναι να το "σπρώξουμε", να βάλουμε ένα χεράκι και εμείς, μιας και πιστεύω ότι θα βοηθήσει πάρα πολύ τους νέους χρήστες, αλλά και θα διευκολύνει τους παλιούς στις διεργασίες τους...

Και πάλι συγχαρητήρια... Ωραία ιδέα...
ΕΠΙΤΡΕΠΕΤΑΙ ΝΑ ΠΕΣΕΙΣ, ΕΠΙΒΑΛΛΕΤΑΙ ΝΑ ΣΗΚΩΘΕΙΣ... HASTA SIEMPRE...
Άβαταρ μέλους
bullgr
Επίτιμο μέλος
Επίτιμο μέλος
 
Δημοσιεύσεις: 1853
Εγγραφή: 10 Μάιος 2008, 21:45
Εκτύπωση

Re: Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό medigeek » 25 Φεβ 2009, 04:11

Γιατί δεν το βάζεις στο http://www.sourceforge.net είτε στο launchpad.net ( https://launchpad.net/projects/+new-guided/ - https://code.launchpad.net/people/+me/+addbranch );

Δεν ξέρω αν προτίθεσαι να δώσεις τον κώδικα, αλλά νομίζω θα χρειαστεί να δώσεις το source για το προγραμματάκι στα παραπάνω.
Προσεκτικά διάλεξε το license που θες: http://www.freepascal.org/faq.html#general-license

FreePascal είναι, αν το δείχνουν σωστά τα strings:
Κώδικας: Επιλογή όλων
$ strings project1
[...]
FPC 2.3.1 [2009/02/21] for i386 - Linux


Απίθανη ιδέα παντως, ευγε! :mrgreen:
Κύπριος; Κόπιασε στο ubuntu-cy! ┃ Launchpad Debian Github
Οδηγός για νεοεισερχόμενους -- Αρχικές οδηγίες για αρχάριους χρήστες του Ubuntu

1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Πολύ καλό ┃ Αγγλικών: Πολύ καλό
2 Ubuntu 12.10 quantal 3.5.0-21-generic 64bit (en_US.UTF-8, GNOME cinnamon2d), Ubuntu 3.5.0-19-generic, Windows 7
3 Intel Core2 Duo CPU E6550 2.33GHz ‖ RAM 5970 MiB ‖ MSI MS-7235
4 nVidia G73 [GeForce 7300 GT] [10de:0393] {nvidia}
5 eth0: Realtek RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)
Άβαταρ μέλους
medigeek
Freedom
Freedom
 
Δημοσιεύσεις: 5023
Εγγραφή: 24 Μάιος 2008, 14:49
Τοποθεσία: Σερβία/Κύπρος
Launchpad: medigeek
IRC: savvas
Εκτύπωση

Re: Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό Dimitris » 25 Φεβ 2009, 11:31

Καλή δουλειά, αλλά για μας που έχουμε διαφορετική αρχιτεκτονική από τη δική σου δεν έχει; Aν είναι έργο ελεύθερο λογισμικό, υπό οποιαδήποτε άδεια, καλό είναι να ανεβάσεις τον κώδικα κάπου. Οι λύσεις που προτείνει παραπάνω ο medigeek είναι οι πιο συνηθισμένες. Απ'ότι φαίνεται το έγραψες σε μία compiled γλώσσα. Σε ποια; Γιατί σε μένα δεν τρέχει :D
Άβαταρ μέλους
Dimitris
saintTUX
saintTUX
 
Δημοσιεύσεις: 1357
Εγγραφή: 13 Μάιος 2008, 13:57
Τοποθεσία: Θεσσαλονίκη
Εκτύπωση

Re: Frontend προγραμμα για εκτελεση εντολων σε terminal...

Δημοσίευσηαπό medigeek » 25 Φεβ 2009, 14:40

Εμένα δουλεύει μια χαρά σε 64-bit:
Κώδικας: Επιλογή όλων

savvas@ubuntu:~/Desktop/console_help$ uname -a
Linux ubuntu 2.6.28-8-generic #25-Ubuntu SMP Tue Feb 24 01:50:03 UTC 2009 x86_64 GNU/Linux
savvas@ubuntu:~/Desktop/console_help$ ./project1 -h

#
Utility to help you fix some basic problems in Linux
Run it, and follow the menus

savvas@ubuntu:~/Desktop/console_help$ ./project1

Linux Rescue Utility v0.01 - 2009
________________________________________________________________________________

[ Main Menu ]

[1] System Info
Find usefull information about your system;
[2] Tools for Application Packages
Upgrade, clean and check your application packages.
[m] Open Midnight Commander
A file manager like the DOS, Norton Commander
[f] Open FTE Text Editor
A text editor like the DOS, Edit. Very nice.
[t] Tools
Install Some Usufull Tools
[n] Network Information
Cable and wirelless network information
[w] X11 Windows
Restart, restore X11 Windows settings
[x] Exit

Make your selection: x


Linux Rescue Utility v0.01 - 2009
________________________________________________________________________________

[ Exit Menu ]

[1] Logout
[2] Reboot
[3] Shutdown NOW!
[4] Scheduled Shutdown
[5] Exit to Console
[b] Back to Main Menu

Make your selection: 5
savvas@ubuntu:~/Desktop/console_help$

Κύπριος; Κόπιασε στο ubuntu-cy! ┃ Launchpad Debian Github
Οδηγός για νεοεισερχόμενους -- Αρχικές οδηγίες για αρχάριους χρήστες του Ubuntu

1 Γνώσεις Linux: Πολύ καλό ┃ Προγραμματισμού: Πολύ καλό ┃ Αγγλικών: Πολύ καλό
2 Ubuntu 12.10 quantal 3.5.0-21-generic 64bit (en_US.UTF-8, GNOME cinnamon2d), Ubuntu 3.5.0-19-generic, Windows 7
3 Intel Core2 Duo CPU E6550 2.33GHz ‖ RAM 5970 MiB ‖ MSI MS-7235
4 nVidia G73 [GeForce 7300 GT] [10de:0393] {nvidia}
5 eth0: Realtek RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)
Άβαταρ μέλους
medigeek
Freedom
Freedom
 
Δημοσιεύσεις: 5023
Εγγραφή: 24 Μάιος 2008, 14:49
Τοποθεσία: Σερβία/Κύπρος
Launchpad: medigeek
IRC: savvas
Εκτύπωση

Επόμενο

Επιστροφή στο Ανάπτυξη Λογισμικού / Αλγόριθμοι