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.
hey, im working on my project atm.
I want to create a customised Linux virtual machine which contains
latest Linux kernel and necessary device drivers and test if the virtual machine, new kernel and drivers work.
1. Choose the program you're going to use for Virtualization (VBox and VMWare are two Pop Favorites)
2. Download an .iso of your favorite distro (Ubuntu, Debian, SuSE, etc)
3. Create a new VM and install it from your .iso
Verify that it works (that you can boot, connect to the network, see your virtual HD, either virtual or physical CD/DVD and physical USB's, for example)
4. Clarify exactly what you mean by "customize"
5. Install the kernel source and GCC.
Verify you can build and install a new kernel (from the base kernel source)
6. "Customize" the kernel (whatever you decided in Step 4 above).
That's one approach. I'm sure you can easily think of many others.
ok how do i boot up VMware with the installed linux OS on it? i have the latest 126.96.36.199 kernal. How then once VMware is booted configure the kernel, select necessary device drivers, and compile the
As I don't use VMWare I just guess that it's pretty much the same procedure as with all the other virtualization-solutions I have tried.
Download install-CD/-DVD of the distro of your choice.
Fire up VM, booting from the CD-/DVD-image.
Unpack your kernel, configure following one of the kernel-compilation-tutorials you can find all over the web (I've read there's at least one here, so looking for this might be useful too) and compile it and it's modules.
Install the modules, copy the compiled kernel to /boot and add an entry in the boot-manager to be able to start the system with your custom kernel.
Reboot, don't forget to choose your new kernel.
Also, what exactly do you want to do with the kernel? It seems to me that you simply want to run any distro in a VM and compile a custom kernel.
A few clarifications (assuming this is all new to you):
1. Reptiler is right: most virtualization programs work pretty much the same.
2. You install all of them on your "host operating system" (the real PC) just as you would any other program. In the case of VMWare, you want "VMWare Workstation".
3. Most virtualization programs let you create new VM's (from scratch: exac tly like starting with a blank PC and an unformatted hard drive); most virtualization programs let you treat .iso files as though they were real, bootable CD's.
So, like Reptiler said: you download the .iso of your choice, create a new VM in the virtualization solution of your choice, and let the new VM boot from CD (to run "setup").
That takes us to step 3) on both my and Reptiler's "todo list" for you. If you've got a distro installed and running, you've made progress! The next step is to "customize" it...
hi all, ok ive installed ubuntu on vmware. I have no put the image file on a disk, do i need to do this. At the minute i just opened vmware on vista, clicked new virtual machine and selected the ubuntu .iso file.
I am having trouble on what the next step is. I know about the terminal in ubuntu.
The next step is downloading the latest kernal (which i have downloaded) but how do i install this new kernal and compile it?
The question remains: Why do you think you need to have the latest kernel?
As you are obviously new to this (compiling a kernel) it is not so unlikely that you will miss out a few things which you may need in order to be able to start your system.
So, if you could tell us what your actual plan is, we may give some more specific advice.
Well, anyway, here the short instructions on how to compile a kernel:
Unpack the archive: tar -xjf linux-188.8.131.52.tar.bz2
Change into the kernel-tree: cd linux-184.108.40.206
Configure the kernel: make menuconfig
Take your time with this step. If unsure about an option, read it's help. If unsure about your hardware, use lspci to check what you have.
Compile the kernel: make
Install the modules: make modules_install
Copy the compiled kernel to /boot: cp arch/x86/boot/bzImage /boot
Adjust boot-loader configuration to allow selection of the new kernel on system-start.
Yes. Once you've got your new VM running you can think of it as a completely separate machine at that point. Everything you need to do on that machine you should do on *that* machine. So download the latest kernel, and follow the detailed instructions reptiler provided. Note that you will likely want to keep the existing kernel option as the default so that your system remains bootable while you figure out what kernel options you need. During bootup press Esc to select your new kernel that you configured in the bootloader conf.
@orla999: Reading your posts I am somehow reminded of a topic I have recently dealt with on a German forum.
You don't happen to be this guy, do you?
For those who don't understand German I would like to explain the similarities.
No specific information what is supposed to be achieved.
There the reason is "experimenting" with the kernel. No more detailed description could be gotten out of the user.
Here I didn't see any reasons for doing this yet.
The whole thing seems pointless in both cases. Sure, it's a good thing to know how to compile a kernel, but it seems that learning this is not the goal of either user, there or here.
So, forgive me if I am wrong about this, but the similarities practically scream at me here.
So, as said, providing a bit more information about the purpose of this practice might help both you and us. Us to understand what the hell you are trying to achieve, you by finally getting some real information aimed towards reaching your goal.
no i dont know him. to be honest with you i do not know the point in this excercise. As far as im aware i got to create a customised Linux virtual machine which consists of the latest Linux kernel and necessary device drivers and test if the virtual machine, new kernel and drivers work.
When you install the kernel instead of using the gentoo-sources as suggested use the vanilla-sources.
Optionally use Slackware instead of Gentoo (faster install) and grab the kernel sources from http://www.kernel.org
VM, latest kernel, bootable.
Grab a VMware appliance running either of the above already, install VMware workstation on your host OS, install the latest kernel from kernel.org in the appliance and:
VM, latest kernel, bootable.
I having problems unpacking the linux kernel. i downloaded it to the desktop and typed the following (does the same without sudo):
ubuntu@ubuntu:~$ sudo tar -xjf linux-220.127.116.11.tar.bz2
tar: linux-18.104.22.168.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
That usually means the file isn't there or you are not typing it correctly. Try using TAB autocompletion. Also, ~ means you are in the home directory, not the Desktop. You may want to change to the desktop or mv the file to your home directory. To change to the desktop:
And try again. This time type:
tar xvjf linuxTAB
Where TAB means you press the TAB key, and if the file exists (and is the only one named linux-something) then it will automatically complete the filename, then press enter.