LinuxQuestions.org
Visit Jeremy's Blog.
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 02-21-2006, 09:58 AM   #1
sbaguz
LQ Newbie
 
Registered: Jul 2003
Location: Italy
Distribution: SuSE 10.1; Puppy Linux; Slax; Red Hat 9
Posts: 19

Rep: Reputation: 0
Question 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?

Thanks in advance

Last edited by sbaguz; 02-21-2006 at 10:28 AM.
 
Old 02-21-2006, 10:45 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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.
 
Old 02-21-2006, 11:25 AM   #3
sbaguz
LQ Newbie
 
Registered: Jul 2003
Location: Italy
Distribution: SuSE 10.1; Puppy Linux; Slax; Red Hat 9
Posts: 19

Original Poster
Rep: Reputation: 0
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...


 
Old 02-21-2006, 11:52 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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?
 
Old 02-21-2006, 12:09 PM   #5
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
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?
 
Old 02-21-2006, 12:42 PM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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
 
Old 02-22-2006, 04:52 AM   #7
sbaguz
LQ Newbie
 
Registered: Jul 2003
Location: Italy
Distribution: SuSE 10.1; Puppy Linux; Slax; Red Hat 9
Posts: 19

Original Poster
Rep: Reputation: 0
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 as I am or is there an actual problem?

Thanks to all.
 
Old 02-22-2006, 06:02 AM   #8
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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
userasswd@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.

Last edited by timmeke; 02-22-2006 at 06:05 AM.
 
  


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
Synchronizing local and remote files jrdioko Linux - Software 10 11-15-2005 02:13 PM
apt-get on local files CloudBuilder Ubuntu 4 09-06-2005 05:07 PM
KDE 3.4 local files problem Pipedream Linux - Newbie 2 04-11-2005 01:35 PM
axyftp doesn't view local files gunnix Linux - Software 2 03-22-2005 09:25 PM
Remote files in local program statmobile Linux - Software 1 11-17-2003 08:37 PM


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

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