LinuxMCE Forums

General => Users => Topic started by: porkman on August 27, 2007, 01:20:28 AM

Title: Can't add media to MCE!!!
Post by: porkman on August 27, 2007, 01:20:28 AM
I must be missing something here because I can't add music or video files to the MCE computer.  I inserted a cd and it ripped it just find.  But I can't add any media to the public/data/audio folder.  I keep getting a access denied error. 
Title: Re: Can't add media to MCE!!!
Post by: AK83 on November 22, 2007, 11:43:48 AM
I have the same problem. I can't copy any files to the folders. Could someone help?
Thanks.
Title: Re: Can't add media to MCE!!!
Post by: totallymaxed on November 22, 2007, 12:39:39 PM
Quote from: porkman on August 27, 2007, 01:20:28 AM
I must be missing something here because I can't add music or video files to the MCE computer.  I inserted a cd and it ripped it just find.  But I can't add any media to the public/data/audio folder.  I keep getting a access denied error. 

You need to provide more details of what you are doing. I assume that you are trying to copy media from a desktop machine to your Core's /home/public/data/audio directory in which case you need to access the share from your desktop machine and use a valid username/password. A valid username/password would be one created when you installed the system (not the root user) ie an lmce 'User'

Hope this helps
Title: Re: Can't add media to MCE!!!
Post by: AK83 on November 22, 2007, 05:38:23 PM
Hi!

I tried to copy some files/folders from an USB-device (FAT) to /home/public/data/audio but didn't have access.
Using the Terminal (sudo cp -r ...) is no problem, but I can't copy & paste the stuff.

So I'm sitting at my Core (hybrid) trying to get my media onto it (not over the network).
Title: Re: Can't add media to MCE!!!
Post by: totallymaxed on November 22, 2007, 05:55:20 PM
Quote from: AK83 on November 22, 2007, 05:38:23 PM
Hi!

I tried to copy some files/folders from an USB-device (FAT) to /home/public/data/audio but didn't have access.
Using the Terminal (sudo cp -r ...) is no problem, but I can't copy & paste the stuff.

So I'm sitting at my Core (hybrid) trying to get my media onto it (not over the network).

So when you tried to copy from the USB drive to /home/public/data/audio you were doing that directly at your Core from the KDE desktop I assume then. If you can't copy from the usb device to /home/public/data/audio it must be a permissions problem. Make sure that you have adequate permissions to copy the files.

Title: Re: Can't add media to MCE!!!
Post by: Zaerc on November 22, 2007, 07:23:19 PM
I think that is a permission problem as well.  One solution might be to add the user you are normally logged in with to the "public" group.

To find out exactly which user you are logged in with (from a terminal: K > System > Konsole):

whoami


For the DVD installer this will likely be linuxmce, for the CD install it will probably be the user you created during the kubuntu install.

Then edit /etc/group (you can use any editor besides "kate" if you like):

sudo kate /etc/group


And change this line:
public:x:1002:mythtv,pluto_user1,pluto_user2,pluto_userX

To include the username you found earlier in the previous step, for example linuxmce:
public:x:1002:mythtv,pluto_user1,pluto_user2,pluto_userX,linuxmce

Now you should be allowed to copy files to the directories under /home/public/data/.
Title: Re: Can't add media to MCE!!!
Post by: AK83 on November 24, 2007, 02:37:55 PM
Yes, it was a permission problem. Thank you!

What also worked for me was open up Konqueror with administrative rights (kdesu konqueror). I can copy and paste the files. It works. But I always have strange error messages in the Terminal when opening up Konqueror as I described.

An example:

In the Terminal:
user: ~$ kdesu konqueror
Then Konqueror opens up the way I want but in the Terminal I get this:
X Error: BadDevice, invalid or uninitialized input device 180
   Major opcode: 150
   Minor opcode: 3
   Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 180
   Major opcode: 150
   Minor opcode: 3
   Resource id: 0x0
Failed to open device
kdesu (kdelibs): WARNING: No X authentication info set for display :0.0
kdesu (kdelibs): WARNING: No X authentication info set for display :0.0
kdesu (kdelibs): WARNING: No X authentication info set for display :0.0
X Error: BadDevice, invalid or uninitialized input device 180
   Major opcode: 150
   Minor opcode: 3
   Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 180
   Major opcode: 150
   Minor opcode: 3
   Resource id: 0x0
Failed to open device

Any ideas?
Title: Re: Can't add media to MCE!!!
Post by: Zaerc on November 24, 2007, 03:17:31 PM
Sure, try not running konqueror with administrative rights. ;)  It was obviously not intended to be run this way and you can seriously damage your system by accident if you do.

EDIT:

When copying it is also likely to create files owned by the administrator which will probably create further permission problems lateron.
Title: Re: Can't add media to MCE!!!
Post by: AK83 on November 26, 2007, 11:40:10 AM
Zaerc, thanks for your help!
This was what I was looking for. I changed /etc/group -> public:x:1002:... and now I'm able to copy and paste my media to all the "public folders".