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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I don't like the default screen resolution on my X screen – I use an old 14” monitor, and while it runs with a nice high resolution, text is microscopic.
I learned to change the resolution by running
<xrandr -s 800x600>
which is the resolution that looks best for me.
But (I thought), wouldn't it be nice to make this the default resolution?
To make a long story short, I managed to corrupt my <.xinitrc> file to the point where <startx> no longer works. At least I was doing it as a user, and not as root.
There are probably elegant ways to fix my screwup, but I am too dumb to find them. Instead, an ugly kludge: Create a new user, and copy the new user's file over the corrupted one. This restores the defaults.
So, <adduser castanea2> and do all the usual things of entering a password (same as <castanea>, since I have a small memory), etc. I checked, and sure enough, <castanea2> could run <startx>, complete with the microscopic text.
Now, copy the file. This has to be done as <root>. What you are looking for is </home/castanea2/.xinitrc>, which you will copy over </home/castanea/.xinitrc>.
So, my Dumb Questions of the Day:
1)Is there a better way to restore corrupted user configuration files (besides the obvious one that I forgot to do: make a copy of said file before puttering around with it – I thought “I'm just making a little change; I don't need to make a backup for something this simple...)?
2)Is there a way to change the default screen resolution?
All in all, good lessons for this newbie: Never Fiddle Around As Root, and Always Make Backups.
Last edited by Castanea_d.; 05-25-2007 at 02:40 PM.