LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-05-2004, 04:31 PM   #1
fabre
Member
 
Registered: Aug 2003
Location: Vancouver
Distribution: Debian Sid Amd64
Posts: 87

Rep: Reputation: 15
Ark su permission


I am trying to install Azureus, so I installed the j2re rpm and now I want to extract the tar.bz2 file to /usr/lib/azureus but ark says it doesn't have permission.

Is it possible to extract thet from ark or must I use the console if so what's extract and path command?
 
Old 06-05-2004, 04:37 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Command is:
su
enter root password
extract as normal.

Users don't have rights to that directory.
 
Old 06-05-2004, 04:42 PM   #3
Error1312
Member
 
Registered: Feb 2004
Location: Belgium
Distribution: Ubuntu 10.04 Lucid Lynx
Posts: 140

Rep: Reputation: 15
There are two solutions for your problem:

1: you can graphically log in as root (type 'root' as username and at password your usual
password)
Now you should be able to do it with Ark.
(be very carefully with what you do when you are logged in as root, you can easily mess up
your system)

2: Start a terminal. Type 'su' -> enter your password (you won't see it).
go to the folder with the tar.bz2 file in it (with the 'cd' command. for example:
cd /home/myname)

type 'dir' or 'ls' to see a list of files in the current folder. If you see the file you want to extract
you're good.

Now to extract: type 'tar -xvjf nameofthefile.tar.bz2

When it's done, you should see a new folder with the name of the file in the place where you
extracted it. In that folder are the extracted files.
 
Old 06-05-2004, 05:44 PM   #4
fabre
Member
 
Registered: Aug 2003
Location: Vancouver
Distribution: Debian Sid Amd64
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Error1312
There are two solutions for your problem:

1: you can graphically log in as root (type 'root' as username and at password your usual
password)
Now you should be able to do it with Ark.
(be very carefully with what you do when you are logged in as root, you can easily mess up
your system)

2: Start a terminal. Type 'su' -> enter your password (you won't see it).
go to the folder with the tar.bz2 file in it (with the 'cd' command. for example:
cd /home/myname)

type 'dir' or 'ls' to see a list of files in the current folder. If you see the file you want to extract
you're good.

Now to extract: type 'tar -xvjf nameofthefile.tar.bz2

When it's done, you should see a new folder with the name of the file in the place where you
extracted it. In that folder are the extracted files.
1. How do I graphically login as root? when I logout and log back in, the username is already selected and i can't change it.

2. now the tar file is in documents so if I tar -xvjf nameofthefile.tar.bz2 it will create a folder there but I need it to be in /usr/lib/ (is that the right place to install software btw)

Only had mdk for a couple of days now so i only did rpm installation until now.
 
Old 06-06-2004, 03:28 AM   #5
Error1312
Member
 
Registered: Feb 2004
Location: Belgium
Distribution: Ubuntu 10.04 Lucid Lynx
Posts: 140

Rep: Reputation: 15
It's strange that you can't change your username when you log in graphically. I haven't seen this before.

However, the second method should do fine. To install in /usr/lib you should copy the tar.bz2 file to that folder.
Again, open a terminal, log in as root, go to the folder where you have your file at the moment (probably /home/myname/Documents, like you've said) and type:

cp nameofthefile.tar.bz2 /usr/lib

Now you go to the folder /usr/lib and extract it there. The folder will now be created in /usr/lib

If it is the right place to install software, I don't know. Mostly I just keep my software in /home/myname. Sometimes it works, sometimes it doesn't, but if it doesn't I think it has more to do with me than with that folder.
 
Old 06-06-2004, 07:15 AM   #6
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
a couple of things.............

when you extract any zipped file (tar, bz2, etc) if you want to unpack it to a particular directory, you can just use the --directory=(/path) switch. for example, if you want to extract to /usr/lib, you'd do this (from terminal as root)

tar -xvjf nameofpackage.tar.bz2 --directory=/usr/lib

it will then unpack it to /usr/lib. it's important to remember to be root to do that because normal users won't have write access to that directory.

to change your graphical login to show root as an option, go to KDE Kontrol Center->system->login manager, use the "administrator mode" button so you can make changes, then check out the "users" & "convenience" tabs to change login settings. click "apply" after changes have been made, then log out of KDE & restart it to see changes.

i'll give the perfunctory warning here, i guess................. while it's ok to have a root login option, you should really try to get used to the other ways of using root powers. using a terminal, typing su then the password & then using command line for various things. for instance, if you su to root in terminal & type konqueror (hit enter) konqueror file manager will open in superuser mode, giving you access to modify/delete/add any file or directory anywhere. also, getting acquainted with this method of root usage does away with the bothersome trouble of constantly having to logout/login to a root GUI.

otis
 
Old 06-06-2004, 08:34 AM   #7
Error1312
Member
 
Registered: Feb 2004
Location: Belgium
Distribution: Ubuntu 10.04 Lucid Lynx
Posts: 140

Rep: Reputation: 15
Thanks for telling this Otish. It's indeed much easier than my way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 3 U3 AS and Ark tongar Red Hat 1 08-02-2005 06:53 AM
Yoper and ark dual boot but ark wont boot?? wrat Linux - Newbie 0 01-31-2005 08:03 AM
ark paul62 Linux - Software 3 08-22-2004 12:39 AM
Ark AGilley007 Linux - Distributions 1 07-15-2004 12:56 AM
ark error tyccea Linux - Software 1 10-11-2003 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration