This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kickoff application launcher wont launch terminal apps

Tags: None
(comma "," separated)
rogerrabbitsclone
Registered Member
Posts
7
Karma
0
OS
hello there KDE forums,

the problem im having is pretty much summed up in the subject line.

I'm running Fedora 16 with the default KDE version that came with it.

When I add a new item to kickoff application launcher ("KDE start menu"), I enter a name and the command in the appropriate areas, then hit save. It will show up in the menu when I go to look for it, but when i click it to launch it starts the bouncing sprocket, then after about 30 seconds that disappears and nothing happens.

I have checked to make sure the the programs run from terminal and they do.

The programs in question are the Fedora Security Spin tools. I used the following script (which was designed for Gnome) to install them, but like i said, they run just fine in terminal. at the end of the script it runs:

Code: Select all
yum -q -y install security-menus


which adds the submenus, commands and descriptions. in each command it will have something similar to:
Code: Select all
gnome-terminal -e "sh -c 'program-name; bash'"

which i would just replace with the name of the program.


any ideas?
can kickoff only launch applications with GUIs?
is there a different method for creating terminal apps?

any help would be greatly appreciated.



Code: Select all
#! /bin/bash

# script to add ALL tools (plus metasploit) from Fedora's Security Spin
# by Grant Stone (May 21st, 2011)
# http://terminallyuncreative.they.org
# grantstoned@gmail.com

yesno()
{
   while true; do
      read -p "${1} (y/n): " -n1 response ; echo
      case "$response" in
         [yY]) return 0 ;;
         [nN]) return 1 ;;
         *) echo ;
      esac
   done
}

if [ "$UID" != "0" ]; then
   echo -e "\nRe-running as root..."
   exec su -c $0
fi

echo

if yesno "This script will install the tools from the Fedora Security Spin.
Is this what you want?"
then
   cat <<EOF

Great! Let's get started!
You can choose 'yes' or 'no' for EVERY category of tools,
so you can choose to install only the categories you want.
The complete list (if you'd like to see) is located at:
https://fedorahosted.org/security-spin/wiki/availableApps

EOF
clear
else
   echo -e "\nMaybe you've mistakenly run the wrong script?\nThis script only adds the security/pentest\ntools from the Fedora Security Spin.\n"
   exit 1
fi

if yesno "Would you like to install the Reconnaissance tools?"
then
   yum -q install argus dnsenum sniff etherape ettercap ettercap-gtk firewall hping3 hunt iftop iptraf lynis nbtscan nc nc6 ncrack net-snmp netsniff-ng ngrep nmap nmap-frontend openvas-client openvas-scanner p0f packETH pcapdiff scanssh scapy sing socat ssldump sslscan tcpdump tcpjunk tcpxtract unicornscan wireshark-gnome xprobe2 yersinia && echo -e "\n...Success!\n" || echo -e "\n...Failed!\n"
   sleep 1
else
   echo -e "\n...Okay, Reconnaissance tools skipped!\n"
   sleep 1
fi
clear

if yesno "Would you like to install the Forensics tools?"
then
   yum -q install afftools dc3dd ddrescue examiner firstaidkit foremost gparted hexedit ntfs-3g ntfsprogs prelude-lml scanmem sectool-gui sleuthkit srm testdisk unhide && echo -e "\n...Success!\n" || echo -e "\n...Failed!\n"
   sleep 1
else
   echo -e "\n...Okay, Forensics tools skipped!\n"
   sleep 1
fi
clear

if yesno "Would you like to install the Web Application Testing tools?"
then
   yum -q install httping lbd nikto ratproxy skipfish && echo -e "\n...Success!\n" || echo -e "\n...Failed!\n"
   sleep 1
else
   echo -e "\n...Okay, Web Application Testing tools skipped!\n"
   sleep 1
fi
clear

if yesno "Would you like to install the Wireless tools?"
then
   yum -q install aircrack-ng airsnort kismet wavemon weplab && echo -e "\n...Success!\n" || echo -e "\n...Failed!\n"
   sleep 1
else
   echo -e "\n...Okay, Wireless tools skipped!\n"
   sleep 1
fi
clear

if yesno "Would you like to install the Code Analysis tools?"
then
   yum -q install flawfinder pscan rats splint && echo -e "\n...Success!\n" || echo -e "\n...Failed!\n"
   sleep 1
else
   echo -e "\n...Okay, Code Analysis tools skipped!\n"
   sleep 1
fi
clear

if yesno "Would you like to install the Intrusion Detection tools?"
then
   yum -q install aide chkrootkit honeyd labrea nebula pads rkhunter && echo -e "\n...Success!\n" || echo -e "\n...Failed!\n"
   sleep 1
else
   echo -e "\n...Okay, Intrusion Detection tools skipped!\n"
   sleep 1
fi
clear

if yesno "Would you like to install the Password tools?"
then
   yum -q install john medusa ophcrack && echo -e "\n...Success!\n" || echo -e "\n...Failed!\n"
   sleep 1
else
   echo -e "\n...Okay, Password tools skipped!\n"
   sleep 1
fi
clear

# for metasploit, change links if not latest
if yesno "(Optional) Would you like to add Metasploit to your arsenal?"
then
   yum -q -y install wget && wget http://updates.metasploit.com/data/releases/framework-3.7.1-linux-full.run >/dev/null 2>&1
   ./framework* >/dev/null 2>&1
   rm -rf framework*
   echo -e "\n...Done!\n"
   sleep 1
else
   echo -e "\n...Okay, Metasploit skipped!\n"
   sleep 1
fi
clear

echo -e "Checking for 'rkhunter' to configure...\n"
sleep 1
rpm -q rkhunter
if [ "$rkhunter" != "0" ]
then
   rkhunter --propud && echo -e "\n...Success!\n" || echo -e "\n...Failed!"      # sets up db for rkhunter's baseline
fi
clear

echo -e "Installing the menu so things are findable...\n"
yum -q -y install security-menus
echo -e "\nEverything is done! Happy auditing! :)\n"

exit 0
rogerrabbitsclone
Registered Member
Posts
7
Karma
0
OS
and maybe i should mention that i have tried checking the box "run in terminal". some of the things ive put in the command box are:
konsole && programname

program (run in terminal checked) terminal commands: -h or --help

konsole with programname in terminal commands
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
Seems odd that it does not get automagically included in the start menu. You may want to try inserting the full path. I also remember something called ksycoca which parses and regenerates the KDE menu but am not sure whether 4.x still uses it (embarrassing, I know...).

Last but not least, have you tried logging out and back in again in between?


Debian testing
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
It works fine here. Try this:
1. Create a new menu item in kmenuedit.
2. Enter a name and the command
Code: Select all
vim

3. In Advanced, check "Run in terminal".
4. Try to run it.

What happens?

If you command exists directly, you can either specify the terminal option --noclose (in the textbox below "Run in terminal"), or if you want to use the terminal afterwards, set Command as your_command; bash. (Note that I don't know if the latter is a good idea, but I just tried it and it seems to work as intended.)


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
rogerrabbitsclone
Registered Member
Posts
7
Karma
0
OS
toad wrote:Seems odd that it does not get automagically included in the start menu.

the script does put it in there, but its for gnome, so none of the commands work.
toad wrote:You may want to try inserting the full path.

this occured to me, but this did not work either.


Hans wrote:It works fine here. Try this:
1. Create a new menu item in kmenuedit.
2. Enter a name and the command
Code: Select all
vim

3. In Advanced, check "Run in terminal".
4. Try to run it.

What happens?

If you command exists directly, you can either specify the terminal option --noclose (in the textbox below "Run in terminal"), or if you want to use the terminal afterwards, set Command as your_command; bash. (Note that I don't know if the latter is a good idea, but I just tried it and it seems to work as intended.)

it opened konsole, but in red text gave me an error:
Warning: could not find 'vim', starting '/bin/bash' instead. please check your profile settings.
rogerrabbitsclone
Registered Member
Posts
7
Karma
0
OS
at the end of the script, it installs "security-menus". i found that package, does this look right? im not familiar enough with the menu structure to tell if this all looks right.

https://admin.fedoraproject.org/pkgdb/b ... c16/noarch
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
OK, I guess that's because you don't have vim installed. :) Try it with the command/script you want to run.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
rogerrabbitsclone
Registered Member
Posts
7
Karma
0
OS
Hans wrote:OK, I guess that's because you don't have vim installed. :) Try it with the command/script you want to run.

i love you. "--noclose" in the terminal options is what did it.


thank you all!


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]