LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to run MP3 file thru Terminal in K.D.E or Terminal (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-mp3-file-thru-terminal-in-k-d-e-or-terminal-350080/)

itz2000 08-04-2005 07:51 PM

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 :]

tuxrules 08-04-2005 07:55 PM

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,

itz2000 08-04-2005 08:08 PM

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

JimBass 08-04-2005 08:14 PM

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

itz2000 08-04-2005 08:21 PM

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!! ;]

JimBass 08-04-2005 09:49 PM

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


All times are GMT -5. The time now is 07:10 PM.