It appears you have not registered with our community. To register please click here ...

Author Topic: How can I install something on Linux  (Read 2532 times)

bobbaz

  • Newbie
  • *
  • Posts: 12
  • Karma: +10/-0
    • View Profile
    • Email
How can I install something on Linux
« on: September 14, 2005, 10:02:07 AM »
I\'m starting to use more and more Linux and I\'m (windows user!   :D ) not really used to install something on Linux.
I\'d like to install ActivePython on my Linux server but when I try to run install.sh it says that there is no program \'install.sh\'. Is this a error I can repair somehow?

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
How can I install something on Linux
« Reply #1 on: September 14, 2005, 11:21:49 AM »
You will need to navigate to that location of the specific install.sh file or use the entire path in the command.  For example, if you have downloaded a program in /root/downloads/program1 and you enter shell and shell says  #root  then you are not in the correct dir yet.  You would need to enter:
Code: [Select]
cd /root/downloads/program1
(change directory command) then if that is indeed the location of the install.sh file then enter:
Code: [Select]
install.sh

Alternatively, you could enter the entire command from ANY location like this:
Code: [Select]
/root/downloads/program1 install.sh

For other common SHELL commands see here.
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

bobbaz

  • Newbie
  • *
  • Posts: 12
  • Karma: +10/-0
    • View Profile
    • Email
How can I install something on Linux
« Reply #2 on: September 16, 2005, 10:27:48 AM »
Hi,
thanks for your answer. My problem is that I don\'t have access to the root-directory. I tried to write ls /root to enter in the directory but I got \'Permission denied\'. I don\'t know how to go in the root....

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
How can I install something on Linux
« Reply #3 on: September 16, 2005, 10:34:18 AM »
Actually the command would be "cd /root"
Still get the permission denied error?
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

bunnyrage

  • Newbie
  • *
  • Posts: 15
  • Karma: +10/-0
    • View Profile
    • Email
How can I install something on Linux
« Reply #4 on: September 29, 2005, 03:26:41 PM »
first off, do you own the root account??

second, you cant install anything unless you log on as root

third if you are root, and access is denied, change the folder permissions
Kris Rosario
unixgeek@mail.com

adb22791

  • Former Moderator
  • Full Member
  • ***
  • Posts: 149
  • Karma: +10/-0
    • ICQ Messenger - 226098809
    • View Profile
    • Email
How can I install something on Linux
« Reply #5 on: September 29, 2005, 03:37:40 PM »
And if you are "su-ing" to root try this command:

Code: [Select]

su -l root
-Alex

bunnyrage

  • Newbie
  • *
  • Posts: 15
  • Karma: +10/-0
    • View Profile
    • Email
How can I install something on Linux
« Reply #6 on: September 29, 2005, 04:40:12 PM »
if you are new, try CentOS or fedora
and use RPMs

you just double click and they install them self
Kris Rosario
unixgeek@mail.com

sargek

  • Newbie
  • *
  • Posts: 28
  • Karma: +10/-0
    • View Profile
    • Email
Root
« Reply #7 on: October 02, 2005, 10:42:18 AM »
Quote from: bunnyrage
first off, do you own the root account??

second, you cant install anything unless you log on as root

third if you are root, and access is denied, change the folder permissions


Just a friendly note: you should never log in as root, you should always su to root as your normal user. Windows is where it is today with virii and spyware because the normal use is root... ;)

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
How can I install something on Linux
« Reply #8 on: October 02, 2005, 10:48:33 AM »
Quote from: sargek
you should always su to root as your normal user. Windows is where it is today with virii and spyware because the normal use is root... ;)

Good point sarkek.  I usually don\'t SU, but I know I should.  I guess sometimes I get too lazy about that.  Most newbies aren\'t going to know what you mean by SU\'ing to root.  I know it is easy, but maybe someone can post a how-to on that?
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

sargek

  • Newbie
  • *
  • Posts: 28
  • Karma: +10/-0
    • View Profile
    • Email
Root
« Reply #9 on: October 02, 2005, 11:24:31 AM »
Quote from: dynaweb
Good point sarkek.  I usually don\'t SU, but I know I should.  I guess sometimes I get too lazy about that.  Most newbies aren\'t going to know what you mean by SU\'ing to root.  I know it is easy, but maybe someone can post a how-to on that?


Su\'ing (switch user, super user) basically allows you to run as another user from "inside" another logged in session. If you are logged in as your normal user (please tell me you are not running as root!), you can open a terminal and type this:
"su" (without the quotes), hit the enter key, then type the root password for your system. From this terminal, you may now run commands as root.

You must always be careful when running as root, because you have complete control over your system, and can accidentally delete things, or break something.

Running with root privileges this way kind of minimizes the danger your system is exposed to, because the entire session is not run as the root user.

Ubuntu throws a wrench in the works by using the "sudo" command. To open a root session in Ubuntu, open a terminal then type "sudo" (without the quotes), followed by the command you wish to run as root. The system will then ask for a password, but it is YOUR password. Personally, I don\'t find this  very secure, but that\'s just my opinion. Doing it this way, there is only one password to be compromised, instead of two.

Anyway, that\'s a short blurb on "su". The security of GNU/Linux is much improved over that of Windows, simply by running as your normal user, and not as root. Windows is in the horrible security state it is in today, because the normal Windows user is the administrator. As a GNU/Linux user, you MUST always perform admin tasks by su\'ing to root, and if you stick to this rule, your system will be much happier!

adb22791

  • Former Moderator
  • Full Member
  • ***
  • Posts: 149
  • Karma: +10/-0
    • ICQ Messenger - 226098809
    • View Profile
    • Email
How can I install something on Linux
« Reply #10 on: October 02, 2005, 11:55:44 AM »
I posted another guide here . This guide covers "su-ing" and disabling direct root login through SSH. Enjoy!
-Alex

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1769 Views
Last post September 07, 2005, 10:28:03 AM
by dynaweb
4 Replies
1676 Views
Last post October 07, 2005, 04:24:13 PM
by linboogy
0 Replies
453 Views
Last post December 13, 2005, 02:31:17 PM
by Linux News
0 Replies
3698 Views
Last post March 25, 2006, 10:27:56 AM
by dynaweb
1 Replies
2232 Views
Last post September 16, 2008, 04:33:16 PM
by dynaweb