KernelNewbies
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Kernel Hacking

  • Frontpage

  • Kernel Hacking

  • Kernel Documentation

  • Kernel Glossary

  • FAQ

  • Found a bug?

  • Kernel Changelog

  • Upstream Merge Guide

Projects

  • KernelJanitors

  • KernelMentors

  • KernelProjects

Community

  • Why a community?

  • Regional Kernelnewbies

  • Personal Pages

  • Upcoming Events

References

  • Mailing Lists

  • Related Sites

  • Programming Links

Wiki

  • Recent Changes

  • Site Editors

  • Side Bar

  • Tips for Editors

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents
Revision 9 as of 2013-04-27 14:43:46
KernelNewbies:
  • OutreachyfirstpatchAlt

Option 1: Running the VMPlayer Image in Linux

Option 2: Developing on a native Linux platform

These instructions assume you're running a varient of Ubuntu (like 12.04 LTS).

Install some packages

First, open a terminal. Click the ubuntu logo at the top left corner and type "terminal". Click the terminal screen icon.

  • Tip: You may want to pin the terminal app for easy access. Do that by hitting the Windows logo key, moving your mouse over the terminal icon on the left vertical menu, right clicking, and chosing "Lock to Launcher". You can make the menu go away by hitting the escape key.

Next, run this command:

sudo apt-get install vim libncurses5-dev gcc make git exuberant-ctags

Setup your Linux kernel code repository

Once that finishes, run these two commands:

mkdir -p git/kernels
cd git/kernels
  • Tip: mkdir creates directories, and cd changes the current working directory to a different directory. You can learn more about any command by reading the manual pages. Simply prefixing the command with the word "man", e.g. man mkdir.

Then use the revision control system called [http://git-scm.com/ git] to clone Linus Torvalds' repository:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

That's going to take a while. Why don't you read up on [http://lwn.net/Kernel/LDD3/ Linux Device Drivers] in the meantime?

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01