LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2008, 09:13 AM   #1
hulk321
Member
 
Registered: Jul 2007
Posts: 137

Rep: Reputation: 15
Question CLI - How do i open vedio file with real player which is located in root directory?


path is
/root/limewire/saved

if i try to open it graphically, it doesnt give me permission. how can i open the limewire directory either graphically or by using cli?
 
Old 12-01-2008, 09:17 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 87
You need root permissions or at least, sudo permissions. Do you have them?
 
Old 12-01-2008, 09:41 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Use the Root user to copy or Move the file into your user directory, after the file is moved, Change the ownership of the file to your user ( chown), then open it with your application.


Personally, I would relocate the limewire directory to another user/location, and not run it as root to begin with.
 
Old 12-01-2008, 10:05 AM   #4
jkzfixme
Member
 
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 329
Blog Entries: 21

Rep: Reputation: 52
I have to agree with farslayer here , running limewire is bad enough , running it as root is a horrible idea. copy that dir over to a user dir and save yourself the security risk

Regards
JKZfixme
 
Old 12-01-2008, 10:30 AM   #5
hulk321
Member
 
Registered: Jul 2007
Posts: 137

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by farslayer View Post
Use the Root user to copy or Move the file into your user directory, after the file is moved, Change the ownership of the file to your user ( chown), then open it with your application.


Personally, I would relocate the limewire directory to another user/location, and not run it as root to begin with.
What are the commands for copying, cutting, pasting and moving the file or folders?
 
Old 12-01-2008, 01:14 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
~$ mkdir /home/username/limewire
~$ mkdir /home/username/limewire/saved
~$ su -
password:
~# cp /root/limewire/saved/* /home/username/limewire/saved/
~# chown -R username:username /home/username/limewire/saved/

Verify everything exists in the new directory..
~# ls /home/username/limewire/saved/

then remove the limewire folders in roots home folder..

~# pwd
/root/
~# cd ./limewire/saved
~# rm *
~# cd ..
~# rmdir saved
~# cd ..
~# rmdir limewire
~# exit
~$

repeat the appropriate steps for any other directories in/under limewire


You would need to reconfigure limewire to use the new director[y/ies] you created in your user directory. I don't use limewire so I couldn't tell you how to reconfigure it.





alternately you could remove all the limewire stuff under root using the single rm -rf /root/limewire command, but if you mistype that command it could have more severe repercussions to your system.. for instance rm -rf / would attempt to delete every file on your system, including the operating system itself, and would have the ability and rights to do so so I opted for the long form of deletion for you (6 steps instead of 1) in the directions above...
 
Old 12-01-2008, 01:45 PM   #7
gerben12
LQ Newbie
 
Registered: Oct 2007
Distribution: SuSE, Redhat, Debian
Posts: 25

Rep: Reputation: 15
Or maybe another trick:

If you have multiple partitions, say one data partition try:

mkdir /DATA/LimeWire/Saved
mkdir /DATA/LimeWire/Incomplete
mkdir /DATA/LimeWire/Shared

and then

ln -s /DATA/LimeWire/Saved $HOME/LimeWire/Saved

and the same for the other dirs
Do this for every user using Limewire

Bad thing is of course that any other users can see what you are downloading but it will make sure all your files go in one place.
 
  


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
Installing Real Player plugin--Mozilla component directory? apachedude Linux - Software 3 03-03-2007 01:38 PM
Real Player Cannot open the audio device Error windle Linux - Software 2 01-23-2007 02:13 PM
Real Player 10 not player my .rm file! epod69 Linux - Software 1 04-20-2005 03:07 AM
Embed Real Player...I am not ROOT jssk Linux - Newbie 5 12-09-2004 04:08 AM
Real player for mozilla only plays in root can564 Linux - Newbie 3 05-21-2004 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:10 AM.

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