LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   You can only use local files??? (https://www.linuxquestions.org/questions/linux-newbie-8/you-can-only-use-local-files-417974/)

sbaguz 02-21-2006 08:58 AM

You can only use local files???
 
Very often, when I'm trying for example to select a picture to use as application icon or I'm adding a chess engine to my UI I can't do it (even in root mode) and I get a message like "You can only use local files" (or similar, I'm translating...): what does it mean? How can I avoid this? :scratch:

Thanks in advance

timmeke 02-21-2006 09:45 AM

Are you trying to use files taken from a mounted network drive? It can be that this isn't allowed for application icons, for instance. Think about what would happen if your network were suddenly down. What kind of icon do you expect to get then?

In any case, I suppose you could copy the icons (typically very small files) to some standard directory on your local hard disk and use those files instead of the files from the network.

sbaguz 02-21-2006 10:25 AM

Thanks for your fast answer, but no, I'm trying to load pictures from a folder of my harddisk... That's the weird thing!
I know that if I copy every file I need in my home everything works fine, but this can't be the only solution: I told tou about icons as an example, the chess engines are a second one and it is quite illogical to copy some binaries in my home folder...


:confused:

ethics 02-21-2006 10:52 AM

from the same HDD as your / or another one that is mounted?? maybe for same reasons mentioned above, can't you just copy the icons to something like ~/.custom_icons?

scuzzman 02-21-2006 11:09 AM

Quote:

Originally Posted by ethics
from the same HDD as your / or another one that is mounted?? maybe for same reasons mentioned above, can't you just copy the icons to something like ~/.custom_icons?

You can pull songs from a mounted secondary drive just fine - my entire /home is on a second disk.
Is this a mounted drive, or just a directory on the same partition? Also, can you `ls -l' the files?

ethics 02-21-2006 11:42 AM

Quote:

Originally Posted by scuzzman
You can pull songs from a mounted secondary drive just fine - my entire /home is on a second disk.
Is this a mounted drive, or just a directory on the same partition? Also, can you `ls -l' the files?

Yes you can pull songs and files and all sorts from a mounted drive, but the icons are fairly important to a system i would imagine (a right pain if it cant find them) and so maybe it insists they reside locally.

If you mean system sounds, then i'll shutup :)

sbaguz 02-22-2006 03:52 AM

This morning I've found a solution for my problem, but the strange behaviour is still to explain (only to me perhaps).
To answer to your question: I was talking about just a directory on the same partition, not an external hard disk or a network folder.
So, today I discovered that if I try to select a file (icon, binary or everything else) with (I think) every program, I get the "you can only select local files..." message if I use the media:/hda2/usr/bin path for example, while everything goes right if I use the direct /usr/bin path... Is that something evident and only a fault by a stupid :newbie: as I am or is there an actual problem?

Thanks to all.

timmeke 02-22-2006 05:02 AM

When you're accessing local files, you don't use full URLs normally.
URLs look something like this:
proto://computer.domain/path/to/what/you/want
where "proto" is the network protocol to use, like http for website, ftp for FTP sites or file for files on the computer's own disks.

In some cases, like remote copy (rcp), you need to use a syntax like:
computer:/path/to/what/you/want

In other cases, like ssh, you can use:
user@computer:/path/
or even
user:passwd@computer:/path/ (altough having cleartext passwords isn't recommended for security).

Quote:

media:/hda2/usr/bin
Seems to refer to a remote computer called "media". If there is such a computer, you can't use it's files (they're not "local files" as the error says), unless you mount it's disk on your computer (via a file sharing protocol like NFS, SMB (ie Samba) or CIFS (Windows)).
However, "/hda2" in the path seems to indicate it's a local disk.
If "media" is the name of the computer you're working on, I'd recommend leaving off the "media:" for simplicity.

Also, you don't need the /hda2 either. You can access the disk via it's mount points, wherever they are.
The files /etc/fstab and /etc/mtab will explain you what disks are mounted.


All times are GMT -5. The time now is 04:18 AM.