Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 47 guests online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Otherarrow Add CLI tools to Ubuntu App Menu
EH-Net
May 24, 2013, 07:49:53 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Add CLI tools to Ubuntu App Menu  (Read 5504 times)
0 Members and 1 Guest are viewing this topic.
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« on: March 20, 2008, 09:04:42 PM »

Alright, so I'm trying to figure out how I can create shortcuts in the Gnome application menu on Ubuntu to launch standard CLI tools (nmap, dig, anything else). I've found the 'edit menu' utility, but when I have it create a 'terminal application' link and then click it from the menu, I just get the terminal to flash for a split second and then close. I haven't had any luck searching for this on the web. Any suggestions?
Logged
Andrew Waite
Hero Member
*****
Offline Offline

Posts: 928



View Profile WWW
« Reply #1 on: March 22, 2008, 04:00:39 AM »

Bill,

I'm sure it's a nasty hack and someone will be able to provide a better solution. For the same issue I just set the command to pipe it's output through more/less/<chooseYourPoison>, that way the terminal should remain open waiting for interaction.

I've only tried this under KDE so your mileage may vary, but I'm assuming the principal should be the same.
Logged

BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #2 on: March 22, 2008, 10:02:05 AM »

Thanks for the idea, much appreciated.

I thought my issue may be a gnome limitation, so I've also downloaded and tried everything with KDE (kubuntu) as well, but experience the same problems.

I tried your idea out, and it did work to keep my terminal window open, but as soon as I was done cycling through the pages the terminal window closed. And that was only with KDE. With Gnome, I experienced the same original issue of the terminal opening then closing right away.

Another suggestion I found somewhere was to create a small script that calls the command/app within it. Same original issue.
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #3 on: March 22, 2008, 10:15:45 AM »

OK, so I decided to boot up BT to see how those guys have theirs setup. BT uses KDE, so I booted my Kubuntu VM back up.

I noticed that everything was 'command;sudo -s'. Sure enough, tried this on Kubuntu and it worked with no problem.

When I go back to Ubuntu and try the same, I receive "there was an error creating a child process for this terminal." Kind of weird since the command works fine from inside a terminal.

I tried switching it around.. "sudo nmap", but it just goes back to closing right away.

So it looks like KDE will work Smiley Getting closer at least, hopefully I'll figure out something with Gnome.
Logged
Andrew Waite
Hero Member
*****
Offline Offline

Posts: 928



View Profile WWW
« Reply #4 on: March 22, 2008, 11:38:56 AM »

I noticed that everything was 'command;sudo -s'. Sure enough, tried this on Kubuntu and it worked with no problem.

Knew there would be a neater way of doing it. I've left my linux machine at work as I'm meant to be in holiday mode for Easter weekend. Let me know if you have any more luck and I'll try a few things once I get mty hands on one of my linux boxes
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.069 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.