LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-18-2007, 11:00 PM   #1
toasty_ghosty
Member
 
Registered: Aug 2007
Posts: 69

Rep: Reputation: 15
a quick easy quesion..


I am trying to modify /etc/X11/xorg.conf How would I bring that up to actually be able to modify it? It doesn't seem to want to do it for me.
 
Old 09-18-2007, 11:20 PM   #2
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Usually, unless you know what you are doing, I would suggest use either xorgcfg, xorgconfig or xorgsetup to modify the file. If you know exactly what to change, you can use any text editor and edit the file accordingly.
 
Old 09-18-2007, 11:23 PM   #3
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
root@AB60R:~# cd /etc/X11
root@AB60R:/etc/X11# lsg xorg
xorg.conf
xorg.conf-fbdev
xorg.conf-vesa
xorg.conf.acbackup
xorg.conf.backup
xorg.conf~
root@AB60R:/etc/X11# cp xorg.conf /root/xorg.conf.orig
root@AB60R:/etc/X11# vim xorg.conf
---

That's the vim user's way.

Another way: Do you use KDE?

If so, on menu,

> system > more applications > file manager - Super user mode

Then (in such file manager) enter the /etc/X11 directory, find xorg.conf

right click xorg.conf then with left mouse button click on "open with", choose kate (an editor).

Yet other ways exist, perhaps pico or other editors if the above two do not suit your fancy.

It kind of depends on you -- what your experience level is, what desktop you use (or are you in run level 3) if so then vi or vim or whatever else editor avails without the X server running.

Don't forget to backup first (the cp command listed above makes a backup).

--
Alan.
 
Old 09-18-2007, 11:27 PM   #4
toasty_ghosty
Member
 
Registered: Aug 2007
Posts: 69

Original Poster
Rep: Reputation: 15
I'm actually trying to make the fonts better in firefox by using better Font Scaling. If you guys know a good way to do this just say so. I'm following these directions:

Better Font Scaling

Now its' time to set your font resolution and screen dimensions.

Execute startx -- -dpi 96, fire up a terminal and type in xdpyinfo | grep dimensions. You'll see something like:
dimensions: 1024x768 pixels (274x203 millimeters)

Immediately edit “/etc/X11/xorg.conf”. In your Monitor section, add—
DisplaySize 274 203

—replacing 274 and 203 with the values that xdpyinfo actually gave you.

Now X will set your font resolution to the desired dpi (96, in this case) and scale your fonts appropriately. If you're using MythTV then you'll need a DisplaySize that sets your font resolution to 100dpi, not 96dpi.

If you need more, have a look at Mozilla Font Size / DPI Issues on Unix.

This usually isn't necessary with NVidia cards. If you have one, the information is contained in the “Dots per Inch” appendex of the driver's README file.

Next, in your xorg.conf's FontPaths section, change
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"

to
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled/"

The reason is that the unscaled bitmap fonts in these directories look better than scaled ones.



By the way, I'm using XFCE.
 
Old 09-18-2007, 11:38 PM   #5
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Oh, you should have told us you are looking for editing your desktop fonts....

I thought we should edit /etc/fonts/fonts.conf or ~/.fonts.conf? But I think editing xorg.conf should be fine as well.

Anyway, I seldom do anything with my fonts, it looks good enough for my desktop (I am using Dropline GNOME). But I guess, our taste will ultimately be different.
 
Old 09-18-2007, 11:38 PM   #6
SilentSam
Member
 
Registered: Aug 2007
Location: Ottawa
Distribution: Arch Linux/Kubuntu/OpenSUSE
Posts: 300

Rep: Reputation: 37
I usually just use nano, making sure to back up the original file.

cd /etc/X11
cp xorg.conf xorg.conf.orig
nano xorg.conf
 
Old 09-19-2007, 12:14 AM   #7
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
Sounds good to me (your mentioned method). After all, Slackware caters to us hands on type of people. Learn by doing.

(Slackware 12.0)

al@AB60R:~$ xdpyinfo | grep dimensions
dimensions: 1152x864 pixels (292x219 millimeters)
al@AB60R:~$ xdpyinfo | grep resolution
resolution: 100x100 dots per inch

alias xs='startx -- -dpi 139'

That's how I start X and it gives me the listed 100x100

96 didn't do anything for me. So I began experimenting then locked it in at 139 (it works, what can I say).

I'm using the Redhat Liberation fonts. I enabled the byte code interpreter.

I used to use MS Core fonts. But Liberation does it for me -- I've not found a need to add MS Core fonts.

The above xdpyinfo plus the next quick and hunky is how I did it for me. And it does fine for me. Not endorsed for others though due to quick and hunky (use at your own risk).

In /usr/share/fonts I renamed TTF to old_TTF

As below, made a TTF sym link to liberation_ttf

Then ran the needed font commands which I now don't remember them but they are all over the www when search google/linux/ for fonts

al@AB60R:~$ cd /usr/share/fonts
al@AB60R:/usr/share/fonts$ ls
100dpi/ OTF/ TTF@ cyrillic/ liberation_ttf/ old_TTF/ util/
75dpi/ Speedo/ Type1/ encodings/ misc/ override/
al@AB60R:/usr/share/fonts$ ls -la TTF
lrwxrwxrwx 1 root root 14 2007-08-22 23:20 TTF -> liberation_ttf/
al@AB60R:/usr/share/fonts$ cd liberation_ttf
al@AB60R:/usr/share/fonts/liberation_ttf$ ls
LiberationMono-Bold.ttf LiberationSans-Bold.ttf LiberationSerif-Bold.ttf fonts.dir
LiberationMono-BoldItalic.ttf LiberationSans-BoldItalic.ttf LiberationSerif-BoldItalic.ttf fonts.scale
LiberationMono-Italic.ttf LiberationSans-Italic.ttf LiberationSerif-Italic.ttf
LiberationMono-Regular.ttf LiberationSans-Regular.ttf LiberationSerif-Regular.ttf
al@AB60R:/usr/share/fonts/liberation_ttf$

--
Alan.
 
  


Reply



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
quick easy question AmphetaminePhreak Linux - Newbie 4 07-26-2006 08:47 PM
quick sed quesion DBabo Linux - Software 1 07-24-2005 01:11 PM
quick easy SQL qn cadj Programming 1 08-19-2004 07:15 AM
2 quick and easy questions Nicksan Linux - General 3 06-30-2003 11:41 PM
Quick and easy answer please Jimbo Mahoney Linux - General 4 11-20-2001 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:35 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
Open Source Consulting | Domain Registration