Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to move font files (.ttf and .otf) from the download folder to a folder Inkscape can find them in. I tried dragging and dropping them in Dolphin but I don't have permission! So tried in the terminal:
Code:
~$ mv ~/downloads/fonts/*.*tf /usr/share/fonts
mv: cannot stat `/home/bryan/downloads/fonts/*.*tf': No such file or directory
As far as I can tell the directories exist. Any tips?
If you can't drop and drop with Dolphin, the mv shouldn't work either. Since you say you don't have permission, then try the mv with sudo. Try 'sudo mv ~/downloads...'.
I am still pretty new, but have gotten used to a few good tools.
What I would do in your case is to open mc (midnight commander)
as root, and let it move them. Obviously, root can do anything, right?
The question remains, why were you denied access? Were the files
built with the wrong owner? If you need to, mc can change owner and group.
Hmm.. maybe the access you were denied was to /usr/shar/fonts ?
(I could not tell from your post if the problem was source or target)
In that case mc as root will get the files where you want them.
Thanks for the super fast replies. It looks like I can't paste the files into the /usr/share/fonts directory.
Kubuntu doesn't let you log in as root and I only know how to switch in the console. Even when I do, it still gives me the same error.
~$ sudo mv ~/downloads/fonts/*.ttf /usr/share/fonts
[sudo] password for bryan:
mv: cannot stat `/home/bryan/downloads/fonts/*.ttf': No such file or directory
Starting to get frustrating - I'm working on something I need to get done tonight and off to the printers in the morning...
I managed to reproduce your error. It happens when you try to move the font files that have already been moved to /usr/share/fonts - hence the No such file or directory error
I managed to reproduce your error. It happens when you try to move the font files that have already been moved to /usr/share/fonts - hence the No such file or directory error
Try doing:
Code:
$ls /usr/share/fonts
And verify whether the files are there or not.
Thanks for going to all this effort to help. here's the result - works fine:
I have simulated your problem on my Ubuntu Lucid VM and your command with sudo works perfectly:
Code:
$sudo mv ~/downloads/fonts/*.*tf /usr/share/fonts
Here is the result:
Code:
~$ ls -la /home/bryan/downloads/fonts
ls: cannot access /home/bryan/downloads/fonts: No such file or directory
bryan@OfficeE8400:~$ id
uid=1000(bryan) gid=1000(bryan) groups=0(root),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),27(sudo),46(plugdev),103(syslog),105(lpadmin),115(admin),116(sambashare),1000(bryan)
~$ ls -la /home/bryan/downloads/fonts
ls: cannot access /home/bryan/downloads/fonts: No such file or directory
Here's your problem right here. The first argument in your mv command is the source files/directories to move(in your case /home/bryan/downloads/fonts/*.*tf).
Now based on the above ls command - you see that your source directory/files don't exist.
Do you know where on the filesystem your font files are located?
Here's your problem right here. The first argument in your mv command is the source files/directories to move(in your case /home/bryan/downloads/fonts/*.*tf).
Now based on the above ls command - you see that your source directory/files don't exist.
Do you know where on the filesystem your font files are located?
I understand what you are saying but I don't understand why its says it doesn't exist:
And it just occurred to me - the command line is case sensitive... I wish I had realised that at midnight last night before I wasted everyone's time...
As you rightly say; Linux is case sensitive. Remember its not just the terminal; in general; Linux is case sensitive.
Did altering the case of the Downloads do the trick? A convention I generally try to follow to prevent case issues; is to name directories in all lower case; unless there's a specific reason not to do so.
As you rightly say; Linux is case sensitive. Remember its not just the terminal; in general; Linux is case sensitive.
Did altering the case of the Downloads do the trick? A convention I generally try to follow to prevent case issues; is to name directories in all lower case; unless there's a specific reason not to do so.
The 'Downloads' directory is named like that by Kubuntu. I notice a few directories are. I think I might have created the 'Fonts' directory and made it worse! Altering the case did fix it - I transferred the files and they seem to work. Although one had a .otf rather than .ttf extension which Inkscape doesn't seem to recognise.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.