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 have recently switched from Mandrake 9.0 to slackware9.1. first here are the specs on my pc:
256 mb of ram
1.3 ghz celeron
Now, I have two hard drives in my pc. One of the hhds had linux mandrake and the other one had windows 2000. I dont want to replace windows 2000, i just want to write over mandrake with slackware. But I dont know where how to install LILO. On mandrake the MBR was on the linux hhd. But now that is gone and I cant get into windows with a boot disk. I dont know if i worded that good enouch so if anyone needs more info let me. know.
My second problem was that i did install slackware successuflly. it loaded fine but it went to a command prompt after it was done loading. and i logged in as root and i dont know how to get into the desktop (gnome or kde). It asked me if wanted to set one as default in the setup but it wouldnt let me pick one. there were X's next to all of the selections. If anyone has any solutions to my problems, i would be most grateful.
Slackware, bless it, defaults to runlevel 3. If you want X, do 'xwmconfig' and cursor-down to the manager you want and hit enter. Then do 'startx'. If you (why, why?) must have a default GUI, edit inittab and change the line about default runlevel from 3 to 4.
On the other 'hhd' doesn't exist and I'm confused about the whole situation. Copy /etc/fstab and post it here first of all. And the output of 'fdisk -l' maybe. But I think you might be saying you had two drives, one with Mandrake and one with Windows and you installed LILO to the MBR on the same drive as Mandrake - the same drive you overwrote with Slack. So just reinstall LILO in Slack as you did Mandrake. Maybe the easiest way would to do 'pkgtool' and select 'setup' and select 'liloconfig'. Tell it what OSes you have where and that you want to install LILO to wherever it was before - the MBR of the Slack drive, I guess. I *am* guessing here, but that sounds like what you want.
Originally posted by garr0323 it loaded fine but it went to a command prompt after it was done loading. and i logged in as root and i dont know how to get into the desktop (gnome or kde).
In everyday use, you shouldn't work behind your system as root. A normal user works fine (even better), and you, or a virus, can't harm your system. Type "adduser <name>", and the user account will be set-up for you.
You won't experience any problems with configurations, and installed programs that don't work for some reason. (like missing registry keys). Linux is build differently, and designed to be multi-user, and secure. The KDE desktop even prompts for your root-password if you want to change system-wide configurations. Other program configurations are just overruled by the configuration in your personal-directory (/home/yourname)
Running programs as root is insecure, because the program has a "license to kill" your entire system (even flash your bios, etc..). Dragging a /dev/ folder to another location is a little too easy too, but makes your system entirely unusable...!
I've started to notice how many new users use 'root' for everything, and this is clearly getting my attention But honestly, If I didn't have seen UNIX at school before, or known someone to point me these 'little basics', I would have made the same 'mistakes' too.
Maybe this is a good idea for a F.A.Q., or a sticky topic? Most people seam to think that you need to run your system as root, because an limited account is not workable. ... This is true of an Windows XP btw, so everyone is "administrator" at their XP workstations. (go figure)
Well, it's primarily that Linux has to have root, new users first login as root, and a lot of installation and configuration requires root privileges. So creating a user account is a whole separate process and, indeed, nothing really works as user initially. So I think a lot of new users get rooted in bad habits. *g* But if you just adduser right off the bat and su a lot to get things fixed, once things are fixed you can have a very workable and still (I hope) reasonably secure box for normal use. So then you get in the habit of never logging on as root and rarely su'ing. As far as it being a sticky or a FAQ, every distro README or similar docs and every Linux book and most every help website explains it and people mention it on posting boards all the time. If people want to run as root after that, I don't suppose much will stop them.
But coming from a permissionless DOS/Win environment or crippled NT environment (me), it can take some getting used to and seem like a real pain. A typo in the ballpark of an 'rm -rf' or getting cracked is more of a pain though.
And Garrett, don't feel like this is pointed at you. It's perfectly acceptable (but unnecessary) to set up a nice environment for root and login that way if you need to do a lot of rootwork and doesn't mean you're doing anything wrong. Just talking generally about some new users in general and saying if you *were* doing everything as root, you shouldn't.
Thanks for helping out. I did the xwmconfig and startx. Then it started to go into a graphical mode and I saw differnent colored vertical lines on the screen. Then the computer froze. I am really confused. Thanks for the help.
This forum has really been a lot of help. I have been to other linux help sites and they usually never respond. Thanks for responding.
I'm not sure what could cause your problem, but I've noticed how your screen could mix up if you use invalid screen resolutions. If I'm correct, your screen just freezes, and the image is a little mixed up or something?
You could try to start X with a lower screen size. (resolution) XFree tries to use the highest available screen-size, and that's set to 1280x1024 by default. Your card might not support it. I think "that's all"
changing the display resolution
* Open a root console, and edit /etc/X11/XF86Config. You'll find a lot of comments/hints in that file (lines starting with a "#").
* The XF86Config file contains sections describing your input devices, monitors, graphical adapters, and finally, the combination of these devices; the "screen" and "serverlayout" sections.
* here is a sample screen section (from my config). The identifier can be referred to by other sections, and "display" sub sections describe the available modes. XFree will use the highest mode possible. If you remove certain modes there, and re-start your X server, you'll get a lower screen resolution.
Here are some ways to trace your problems:
* run "startx 2>&1 | tee output.log". This will display and log all messages and error messages to the file output.log
If you return to the console, type "less output.log to see the problems that XFree might have had during startup.
* browse the XFree log: less /var/log/XFree86.0.log
* to display the warnings and error messages from the log only: grep -E "\((WW|EE)\)" /var/log/XFree86.0.log
it will help you understand your problem, and find a solution.
If I have problems with my graphical desktop, I open 2 consoles: one root console to edit XF86Config, and a second one to log-in as normal user, and run "X", or "startx". You can use Ctrl+Alt+Fx to change to other consoles, and Ctrl+Alt+Backspace to terminate your X server.
Once you have X and the KDE running, you can configure your display from the KDE Control center too... That was at least, my first amazing linux experience; my screen just worked, and I could set the resolution. (because I always read horror ststories about messing monitor-modelines, but this is history) I hope you don't mind playing a little with the configuration first, because it didn't work at once
* The tools xf86cfg and xf86config can be helpful too, you can use these to re-generate your /etc/X11/XF86Config.
FYI: about the flashing lights: if your keyboard lights are all flashing, you have a kernel panic. (ie your kernel got stuck, and stopped completely) This should never happen, but just in case... I've asked you about it As long as your system doens't have a kernel panic, all processes, programs, networking etc.. are running! (even if your display is locked up; your keyboard isn't) You could even login remotely, and fix the problem
thanks for still helping me. I tried the /etc/x11/xf86fconfig and it didnt work. it said permission denied and i was logged into root. Anyway, I looked at what errors i was given on the output.log files. one of the errors i came across was this:
(WW) Open APM failed (/dev/apm_bios) (No such device)
I dont know exactly what this means. But maybe someone does. When I "startx" it goes to a kind of colored screen. There are purple lines and there is absolutley no image to even be made out. Thanks.
Originally posted by garr0323 thanks for still helping me. I tried the /etc/x11/xf86fconfig and it didnt work. it said permission denied and i was logged into root.
How did you try to edit this file, or did you just type "/etc/X11/XF86Config"? It won't allow you to execute the file, because it isn't marked as executable, so you'll get a "permission denied". Type "pico /etc/X11/XF86Config", or use "nano ...", "emacs ...", or "vim ...". They are editors you can use to modify the file.
Originally posted by garr0323
Anyway, I looked at what errors i was given on the output.log files. one of the errors i came across was this:
(WW) Open APM failed (/dev/apm_bios) (No such device)
The APM bios thing is quite harmless (as far as I know) APM and ACPI are power management features of your BIOS. If your system has ACPI, it will be used in favor of APM.
What other error messages did you get?
Try to edit the XF86Config file, and startx again. Make a copy first, so you can restore it is you mess things up; for example: "cp /etc/X11/XF86Config ~"
If I type "mount /mnt/hd/winxp", the partition will be mounted with the other parameters from fstab. The user-id, group-id, and umask denies other users to browse the file system, except the "root (0)", and my "xpusers (304)" group members. NTFS access control lists are not honered by Linux (everyone could see all files), so that's why I've limited the access to a special group. By default, the permissions only allow the root user to browse the files.
The "auto" option causes the file system to be mounted at system boot, and "ro" is set to make the file system readonly; ntfs cannot be written correctly by the linux 2.4.x kernels.