Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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.
every time when I login to my account in X in order to make scalable fonts available to XFig. Where shall I put this command so that it is done automatically every time when I login through GDM? Is it possible to do this for all users at the time of booting? How?
If you use Gnome you could run that command when you login to a gnome session. If you run gnome-session-properties and click the Startup Programs tab then click Add and put xset fp rehash in the Startup Command box, that command will be run every time you login to Gnome. I used to use this to run xset s 0 to stop the screen going blank after ten minutes, but then I descovered that if I put
Option "BlankTime" "0"
in the serverflags section of /etc/XF86Config it did the same thing.
But why do you need to run xset fp rehash? I'm not saying you're wrong, I'm just curious to know. According to man xset, "The rehash argument resets the font path to its current value, causing the server to reread the font databases in the current font path. This is generally only used when adding new fonts to a font directory (after running mkfontdir to recreate the font database)." You may find that if you alter your font path or reconfigure something in /etc/fonts/fonts.conf it may be simpler
I want to run XFig. XFig looks for scalable ghostscript Type1 fonts in /usr/lib/X11/fonts/Type1 directory. But in Slackware 10, these fonts are installed in /usr/share/ghostscript/fonts directory. So, I copied the required *.pfb files from this directory to /usr/lib/X11/fonts/Type1 directory. Then, I updated fonts.dir and fonts.scale. After this, if I execute xset fp rehash the fonts are available in XFig. But strangely next time when I login, XFig does not locate the fonts unless I execute xset fp rehash again. I do not know why.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.