Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: root file system

  1. #1
    Join Date
    May 2010
    Beans
    13

    Question root file system

    How to specify the install path and install files in the root file system?

  2. #2
    Join Date
    Apr 2010
    Location
    Denver, Colorado
    Beans
    802
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: root file system

    I'd have to recommend against installing files to the root filesystem unless you know exactly what your doing. Why not just change the permissions on the files?
    KDE SC 4.4

  3. #3
    Join Date
    Feb 2007
    Location
    North East, USA
    Beans
    689
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: root file system

    Quote Originally Posted by Orions View Post
    How to specify the install path and install files in the root file system?
    Is there a reason why you would want to do this?

    Honestly I would not recommend doing this on any operating system, especially Linux. If an application is expecting to be in one part of your operating system but you force it to another and it is not written to account for this you can cause problems.

    Linux has an additional complication with how the security model and permissions are designed.

  4. #4
    Join Date
    May 2010
    Beans
    13

    Re: root file system

    Quote Originally Posted by -humanaut- View Post
    I'd have to recommend against installing files to the root filesystem unless you know exactly what your doing. Why not just change the permissions on the files?

    http://ubuntuforums.org/showthread.php?t=1493098

    This is why I need to install in root. At least i think so, because when I didn't change install patch (used default) some errors ocured in terminal screen and software didn't worked.

  5. #5
    Join Date
    Sep 2007
    Location
    Ontario, Canada
    Beans
    Hidden!

    Re: root file system

    what you are REALLY needing is to be superuser, if I am understanding this correctly.

    In ubuntu The root account is disabled as per the Ubuntu security model. This is a good thing because you can use sudo, gksu, or gksudo to temporarily elevate yourself to "root"

    You should never really need to install anything in the "root directory"

    If you're installing from a package, using sudo will ensure it goes into /usr like its supposed to, or even /opt if that's how it's packaged.

    If you are compiling from source, you should use the --prefix option and point it to /usr/local like this:

    Code:
    ./configure --prefix=/usr/local
    You really dont NEED to do this but it is a super easy way to keep installed packages and your localy compiled programs seperate.. Basically easier to manage

    further, once you configure your souce you need to make and then install it.

    Code:
    make
    sudo make install
    in this example, you configured and compiled the program as a normal user and then used sudo to "become root" and install it into /usr/local

    Also, make sure you have the build tools you need installed.
    Last edited by exodus_; May 26th, 2010 at 06:03 PM. Reason: clarity

  6. #6
    Join Date
    Dec 2008
    Location
    Rochester, NY, USA
    Beans
    70
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: root file system

    Why is it not advisable to log in as root.

    When i log in as user, one of my NTFS partition doesn't get detected. So for the past one year, i've been logging in as root. Things are working alright for me.

  7. #7
    Join Date
    Sep 2007
    Location
    Ontario, Canada
    Beans
    Hidden!

    Re: root file system

    Quote Originally Posted by banerjeerupak View Post
    Why is it not advisable to log in as root.
    Because the root account can be dangerous. One single slip of the hand while root and POOF! your ENTIRE system is trashed. This is just one reason. Read my link above to find out more.

    Also, if you are having issues with an NTFS partition there are much safer and better weays to get it to work while logged in normally

  8. #8
    Join Date
    May 2010
    Beans
    13

    Re: root file system

    Quote Originally Posted by exodus_ View Post
    Also, make sure you have the build tools you need installed.
    What are those? (sorry, I'm total newbie in ubuntu)

  9. #9
    Join Date
    May 2010
    Beans
    13

    Re: root file system

    And why could those errors apear?

    Please input the absolute path for install[/usr/local/Mobile_Partner]: /aspire6
    Local path is: /usr/local/Mobile_Partner
    Installing Mobile Partner...chmod: cannot access `/usr/local/Mobile_Partner/config': No such file or directory
    cp: cannot stat `./config/fontconfig/fontconfig.properties': No such file or directory
    cp: cannot stat `./config/fontconfig/fontconfig.SuSE.properties': No such file or directory
    [ done ]
    Installing Driver...
    /usr/local/Mobile_Partner/driver/ndis_driver
    The current system can not support ndis feature
    ADDRUNLEVEL=/etc/rc3.d
    `/etc/rc3.d/S99runhwactivator' -> `/etc/init.d/runhwactivator'
    `/etc/rc3.d/K10runhwactivator' -> `/etc/init.d/runhwactivator'
    ADDRUNLEVEL=/etc/rc2.d
    `/etc/rc2.d/S99runhwactivator' -> `/etc/init.d/runhwactivator'
    `/etc/rc2.d/K10runhwactivator' -> `/etc/init.d/runhwactivator'
    ADDRUNLEVEL=/etc/rc4.d
    `/etc/rc4.d/S99runhwactivator' -> `/etc/init.d/runhwactivator'
    `/etc/rc4.d/K10runhwactivator' -> `/etc/init.d/runhwactivator'
    ADDRUNLEVEL=/etc/rc5.d
    `/etc/rc5.d/S99runhwactivator' -> `/etc/init.d/runhwactivator'
    `/etc/rc5.d/K10runhwactivator' -> `/etc/init.d/runhwactivator'
    ./driver/install: line 114: chkconfig: command not found
    cp: cannot create regular file `/etc/acpi/suspend.d/': Is a directory
    chmod: cannot access `/etc/acpi/suspend.d/010-huawei-suspend.sh': No such file or directory
    Finished, press any key to exit

    Also I'm not able to start installed aplication. Theare is no shortcut in desktop, ok vith that, but why I can't launch application from installed files? Some of the files is marked with kind a lock emblem.

  10. #10
    Join Date
    Feb 2007
    Location
    North East, USA
    Beans
    689
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: root file system

    Quote Originally Posted by Orions View Post
    What are those? (sorry, I'm total newbie in ubuntu)
    To start, click on the Applications menu at the top. At the bottom is the Ubuntu Software Center. Check here first for any software you want to install. Compiling should be a last resort (Unless you are doing it to learn, install a bleeding edge applications, or personal preference) as you will not get updates automatically.

    You can ignore my first response as I thought you wanted to install applications in /, the Root of the file system and not as Root (ie, Sudo).

Page 1 of 2 12 LastLast

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
  •