Results 1 to 9 of 9

Thread: How do I use a file in the terminal?

  1. #1
    Join Date
    Jan 2008
    Beans
    115
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    How do I use a file in the terminal?

    I used cd to move to a directory (gnomenu) on my desktop, and I want to use the setup.py file, but when I type in setep.py it just tells me command not found. The reason I want to try to run it from the command is because when I do it by clicking on it nothing happens. Can anyone help?

    Thanks
    AMD Athlon 64 X2 6000 3.1 ghz
    8 gb DDR2 800 PC2 6400 RAM
    640 gb Western Digital Caviar
    650 Watt power supply, ATI Radeon HD 4850 X2

  2. #2
    Join Date
    Apr 2009
    Beans
    118

    Re: How do I use a file in the terminal?

    Have you tried 'sh setup.py'?

  3. #3
    Join Date
    Jun 2008
    Location
    Virginia, USA
    Beans
    56
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: How do I use a file in the terminal?

    Quote Originally Posted by psam3 View Post
    I used cd to move to a directory (gnomenu) on my desktop, and I want to use the setup.py file, but when I type in setep.py it just tells me command not found. The reason I want to try to run it from the command is because when I do it by clicking on it nothing happens. Can anyone help?

    Thanks
    I'm guessing you have a python package/module to install with setup.py. If you are in the directory with the setup.py file, you just run this script with python like this (Don't type the '%')
    Code:
    % python setup.py install
    To see the options from setup.py, type:
    Code:
    % python setup.py --help
    HTH.

  4. #4
    Join Date
    Jan 2008
    Beans
    115
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How do I use a file in the terminal?

    I tried the "python setup.py install" but I don't think it's working right, this is what happens


    Any idea what that means?

    Thanks
    AMD Athlon 64 X2 6000 3.1 ghz
    8 gb DDR2 800 PC2 6400 RAM
    640 gb Western Digital Caviar
    650 Watt power supply, ATI Radeon HD 4850 X2

  5. #5
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: How do I use a file in the terminal?

    I've developed the habit, since not memorizing my $PATH variable to precede filenames with ./ when doing something in the terminal; i.e.
    Code:
    python ./setup.py
    If you've a folder that you use frequently you can add it to your $PATH variable easy enough. This can be set in your /home/username/.bashrc file.
    Code:
    PATH=$PATH:PathToYourFolder  #PATH=$PATH:/home/myusername/Desktop/gnomenu
    export PATH
    Barrie
    Debian Stable
    FluxBox
    Mark Your Thread Solved

  6. #6
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: How do I use a file in the terminal?

    Quote Originally Posted by psam3 View Post
    I tried the "python setup.py install" but I don't think it's working right, this is what happens


    Any idea what that means?

    Thanks
    Did you run 'sudo make install' prior to running setup.py???

    Barrie
    Debian Stable
    FluxBox
    Mark Your Thread Solved

  7. #7
    Join Date
    Jan 2008
    Beans
    115
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How do I use a file in the terminal?

    Quote Originally Posted by Barriehie View Post
    Did you run 'sudo make install' prior to running setup.py???

    Barrie
    That worked thanks!
    AMD Athlon 64 X2 6000 3.1 ghz
    8 gb DDR2 800 PC2 6400 RAM
    640 gb Western Digital Caviar
    650 Watt power supply, ATI Radeon HD 4850 X2

  8. #8
    Join Date
    Sep 2007
    Location
    South Tampa, FL
    Beans
    14
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do I use a file in the terminal?

    Why not use the package from getdeb.net, or use the ppa from launchpad.net? Its easier then installing from source. But if you really want to install from source, the readme.txt file explains how to install and what dependencies you need in order for it to install.

  9. #9
    Join Date
    Jan 2008
    Beans
    115
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How do I use a file in the terminal?

    Quote Originally Posted by sylentdogg View Post
    Why not use the package from getdeb.net, or use the ppa from launchpad.net? Its easier then installing from source. But if you really want to install from source, the readme.txt file explains how to install and what dependencies you need in order for it to install.
    I didn't realize this stuff was available Oh well, it was a learning experience.
    AMD Athlon 64 X2 6000 3.1 ghz
    8 gb DDR2 800 PC2 6400 RAM
    640 gb Western Digital Caviar
    650 Watt power supply, ATI Radeon HD 4850 X2

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
  •