startx vs startx -- :2 (font dimension is different!!)
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
startx vs startx -- :2 (font dimension is different!!)
Hi all!
Here I am with a question for you! I hope you can help me!
The problem is that when I launch the X server running:
startx -- :2
...all the system fonts are smaller than running X with just "startx". I prefer the dimensions of the fonts running startx -- :2, how can I do to have this font dimension also running startx? I think I should copy some configuration files, but I don't know which files and where to get them!
Did you experience this fact? I notice it using XFce, Kde, Gnome, Fluxbox etc etc so with all the desktop/window managers...
Sorry for my english, I hope you can understand my question!
Originally posted by quatsch weird... what happens with
startx -- :0
You could just make an alias, I guess,
alias startx='startx -- :2'
Don't know if this is good enough for you.
yes, also if I run
startx -- :0
the fonts are smaller, and I'd like to get this dimension also with the first X server..
I tried using the alias command, but it doesn't work!
don't you know if copying some XFree configuration files is enough?
hmmm. See, startx -- :0 does start the first X server, i.e. the -- :0 are simply the default options. That's why I find it really strange that it would make any difference whether you do just startx or something else like startx -- :1. And no, I don't know whether there is anything in the X config files that could explain this. Maybe someone else does.
Originally posted by quatsch hmmm. See, startx -- :0 does start the first X server, i.e. the -- :0 are simply the default options. That's why I find it really strange that it would make any difference whether you do just startx or something else like startx -- :1. And no, I don't know whether there is anything in the X config files that could explain this. Maybe someone else does.
really? running:
startx -- :0
has got exactly the same effect of running just:
startx
???
In this case is really strange! If I run startx -- :0 the font dimension is smaller... mhh... I don't know how is it possible !
and do you know why the alias command don't work with me?
yes I checked again: wiht startx -- :0 the font dimension is reduced! I like it a lot!
i tried again the alias command: if I write
alias startx="startx -- :0"
and then I write
alias
..I can see that the command was accepted (i can see: alias startx= startx -- :00), but if I restart XFree or if I restart the whole PC, the command is erased, why does it happen? is possible to save this command in an other way?
maybe I can put this command in a boot script, I'll trying doing so!
Oh, sorry. The alias command is only through a given shell session unless you put it in the ~/.bashrc. I put aliases I want up front of the .bashrc. I.e. you would put the line
alias start='startx -- :0'
as your first uncommented line.
And, yeah, my understanding is that 'startx' and 'startx -- :0' have exactly the same effect (unless, you somehow have different default options for startx from what is normal but I don't see why that would be so and I also don't really know how to change the defaults).
Originally posted by quatsch Oh, sorry. The alias command is only through a given shell session unless you put it in the ~/.bashrc. I put aliases I want up front of the .bashrc. I.e. you would put the line
alias start='startx -- :0'
as your first uncommented line.
And, yeah, my understanding is that 'startx' and 'startx -- :0' have exactly the same effect (unless, you somehow have different default options for startx from what is normal but I don't see why that would be so and I also don't really know how to change the defaults).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.