Page 1 of 7 123 ... LastLast
Results 1 to 10 of 62

Thread: Terminal Enhancements

  1. #1
    Join Date
    May 2010
    Location
    Here
    Beans
    1,297
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Terminal Enhancements

    Notice to all readers reading this:
    All of this talk was concerning Terminal Enhancements 0.1a.
    0.2 was created on the same day that the last post (the post before this one) was posted. (2010-07-06, proof: https://launchpad.net/terminal-enhan...ble/0.2-stable)
    Terminal Enhancements >= 2.2.1 has all of these problems mentioned here fixed.



    News
    Version 2.0 has been released!
    With many Aliases and Easter Eggs!
    Download it today!

    About

    I love using the terminal, but sometimes it is very frustrating having typed a lot, but the I receive an error message:
    Code:
    DriverforOpenGL.sh
    DriverforOpenGL.sh, command not found
    or:
    Code:
    ./DriverforOpenGL.sh
    DriverforOpenGL.sh, Permission denied.
    So I made a script that fixes one of the two, and is highly customizable.
    The current version is 2.0

    Features
    Featured in 2.0, it has a many useful aliases, and some easter eggs!

    Versions
    Enhancements.tar.gz: 2.0
    Installer: 2.0
    Web Installer: 2.0

    Installation
    To install, download it from https://launchpad.net/terminal-enhancements
    Recommended installation:
    Download webinstall.sh, and type in a terminal (Applications->Accessories->Terminal) window:
    Code:
    sudo ./webinstall.sh
    Another way of installing it:
    First download the enhancements.tar.gz archive.
    Then download install.sh, and type in a terminal (Applications->Accessories->Terminal) window:
    Code:
    sudo ./install.sh
    You installed it!

    For any problems, ideas or anything else, please reply to this thread!
    Last edited by lkjoel; September 21st, 2010 at 11:10 PM. Reason: Added Notice

  2. #2
    Join Date
    Dec 2009
    Beans
    Hidden!

    Re: Terminal Enhancements

    ...what does this do?

  3. #3
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Terminal Enhancements

    Quote Originally Posted by lkjoel View Post
    About
    I love using the terminal, but sometimes it is very frustrating having typed a lot, but the I receive an error message:
    Code:
    DriverforOpenGL.sh
    DriverforOpenGL.sh, command not found
    or:
    Code:
    ./DriverforOpenGL.sh
    DriverforOpenGL.sh, Permission denied.
    So I made a script that fixes one of the two, and is highly customizable.
    The current version is 0.1b

    Installation
    To install, type this in a terminal window:
    Code:
    gedit ~/.enhancedterminal.sh
    In the gedit window, type:
    Save it, then close.
    Still in the Terminal type:
    Code:
    gedit ~/.bashrc
    You will see a lot of text pop up.
    At the end, type:
    Code:
    chmod +x ~/.enhancedterminal.sh
    ~/.enhancedterminal.sh
    You installed it!

    For any problems, ideas or anything else, please reply to this thread!
    You could skip most of that and just add
    Code:
    PATH=$PATH:./
    to the end of your ~/.bashrc

  4. #4
    Join Date
    Apr 2007
    Location
    NorCal
    Beans
    1,149
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Terminal Enhancements

    ...

    All this does is add the current directory to $PATH, and then try to simulate a bash prompt by printing the current directory and reading/executing commands.

    A much, much smarter and easier way to do this is just add

    Code:
    export PATH=$PATH:.
    to the end of your ~/.bashrc
    Posting code? Use the [code] or [php] tags.
    I don't care, I'm still free. You can't take the sky from me.

  5. #5
    Join Date
    Feb 2009
    Location
    null
    Beans
    113
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Terminal Enhancements

    Thanx
    May the source be with you...! 8)

  6. #6
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,186
    Distro
    Kubuntu

    Re: Terminal Enhancements

    I agree; augmenting the PATH variable from within the .bashrc is all that is needed. Some may argue though, that appending the "." to the path may introduce a security risk.

    As for the other issue the OP was having, it was merely a file permission problem. It appears as if the script lacked the ability to be executed. That is easily solved with:
    Code:
    chmod 744 DriverforOpenGL.sh

  7. #7
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Terminal Enhancements

    Quote Originally Posted by dwhitney67 View Post
    I agree; augmenting the PATH variable from within the .bashrc is all that is needed. Some may argue though, that appending the "." to the path may introduce a security risk.
    It's not a matter of argument: it does introduce a security risk. What's arguable is whether or not this security risk outweighs the added convenience.
    「明後日の夕方には帰ってるからね。」


  8. #8
    Join Date
    Mar 2009
    Beans
    927
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Terminal Enhancements

    Nice code, but you could simply add this to your .bashrc:
    Code:
    quit() { exit; }
    PATH="$PATH:."

  9. #9
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Terminal Enhancements

    And now I bet you're wondering what that empty file named "5" is doing in your homedir...

    Quote Originally Posted by lkjoel View Post
    Code:
    #!/bin/bash
    ...
    while [ x > 5 ]
    ...

  10. #10
    Join Date
    Jul 2009
    Beans
    59

    Re: Terminal Enhancements

    Code:
    ./DriverforOpenGL.sh
    DriverforOpenGL.sh, Permission denied.

    This can simply be fixed with the !! << double shabang when youve done that. Type
    Code:
    Macintosh:etc stephenjackson$ mkdir /etc/hello
    mkdir: /etc/hello: Permission denied
    Macintosh:etc stephenjackson$ sudo !!
    sudo mkdir /etc/hello
    Password:
    Macintosh:etc stephenjackson$ 
    and it retrieves your last command and executes it with the sudo at the beginning.

    NOTE: Im not being condescending I was just pointing out what I use. I find its great you are taking the time to learn a little shell scripting I hope my tip is of use to you or anyone else who may not have seen this before.
    Last edited by xsinsx; July 5th, 2010 at 05:01 AM.
    Code:
     SELECT * FROM users WHERE clue > 0;
      0 rows returned

Page 1 of 7 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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