LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2005, 07:51 PM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
How to run MP3 file thru Terminal in K.D.E or Terminal


How to run MP3 file thru Terminal in K.D.E or Terminal?

I'm having this problem because I want to run a mp3 file in root folder but cannot access since I'm not as root in K.D.E, but in terminal I just type su - then I log as root.


any solution?

thanks alot anyways! you guys are pwnage :]
 
Old 08-04-2005, 07:55 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
from the command line

Code:
$ mpg321 filename.mp3
or if you have mplayer

Code:
$ mplayer filename.mp3
number of players to play files from KDE

noatun immediately comes to mind...however, I don't use KDE and can't tell you the others...I personally like BMP or XMMS

Tux,
 
Old 08-04-2005, 08:08 PM   #3
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by tuxrules
from the command line

Code:
$ mpg321 filename.mp3
or if you have mplayer

Code:
$ mplayer filename.mp3
number of players to play files from KDE

noatun immediately comes to mind...however, I don't use KDE and can't tell you the others...I personally like BMP or XMMS

Tux,
didn't work :S
 
Old 08-04-2005, 08:14 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
The problem isn't the player, it is permissions. If the mp3 you want to play is in the root folder, then you should simply move it. Open a terminal, and then su to root.

Code:
su
cd /root
mv *.mp3 /home/(regular user name)/
chown (regular user name):(regular user name) /home/(regular user name)/*.mp3
Obviously you should replace (regular user name) with whatever your actual user name is. Once that is done, the file will be owned by you, and in a location you have access to, then you can play it with whatever you like to use.

Peace,
JimBass
 
Old 08-04-2005, 08:21 PM   #5
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by JimBass
The problem isn't the player, it is permissions. If the mp3 you want to play is in the root folder, then you should simply move it. Open a terminal, and then su to root.

Code:
su
cd /root
mv *.mp3 /home/(regular user name)/
chown (regular user name):(regular user name) /home/(regular user name)/*.mp3
Obviously you should replace (regular user name) with whatever your actual user name is. Once that is done, the file will be owned by you, and in a location you have access to, then you can play it with whatever you like to use.

Peace,
JimBass
Thanks thanks thank!! you pwn!! ;]
 
Old 08-04-2005, 09:49 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
No problem man. A year ago I was in your shoes. Just keep doing what you did, ask about what you can't do, and learn!


Peace,
JimBass
 
  


Reply



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
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 08:36 AM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
ftp a terminal and get file at my terminal suchi_s Programming 1 02-02-2005 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:01 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
Open Source Consulting | Domain Registration