Find the answer to your Linux question:
Results 1 to 3 of 3
Have a problem in executing this script on Backtrack 4: Code: chmod +x firefox /root/Desktop/firefox/firefox I wrote this script in Kate (my default editor) and saved it as firefox.sh. When ...
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    3

    Script not executing in Backtrack 4

    Have a problem in executing this script on Backtrack 4:

    Code:
    chmod +x firefox
    /root/Desktop/firefox/firefox
    I wrote this script in Kate (my default editor) and saved it as firefox.sh. When I click on it, instead of it executing, Kate opens up and displays the script.

    How do I make it executable?

    Thanks in advance

  2. #2
    Linux Guru
    Join Date
    May 2011
    Posts
    1,842
    Backtrack is Ubuntu-based, right? So you are in a GNOME desktop environment? What does your script look like? If a desktop shortcut, it needs to be in a certain format, e.g., here's a sample file, called /home/user/Desktop/firefox.desktop (note the ".desktop" extension):
    Code:
    [Desktop Entry]
    Version=1.0
    Encoding=UTF-8
    Name=Firefox Web Browser
    GenericName=Web Browser
    Comment=Browse the Web
    Exec=firefox
    Icon=firefox.png
    Terminal=false
    Type=Application
    MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
    X-Desktop-File-Install-Version=0.9
    Categories=Network;Application;X-Fedora;
    Name[en_US]=Firefox

  3. #3
    Just Joined!
    Join Date
    Jul 2011
    Posts
    3
    Its working now. I didnt do anything but its working. Strange!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...