160 likes | 312 Views
linux and related thing. Project 2 background. Linux -old time. "Born" in early 1990s. Younger than me but may be older than you guys. Linus wrote the very first version, 0.01. Linus is still in charge, but thousand developers are contributing.
E N D
linux and related thing Project 2 background
Linux -old time • "Born" in early 1990s. Younger than me but may be older than you guys. • Linus wrote the very first version, 0.01. • Linus is still in charge, but thousand developers are contributing.
http://en.wikipedia.org/wiki/The_Cathedral_and_the_Bazaar • http://en.wikipedia.org/wiki/Tanenbaum%E2%80%93Torvalds_debate
Linux -now • The newest verison is 3.16.3. • Get updates almost every week. • It is the core part, kernel, of the system. A real linux system normally has much nore.
Linux -source code • Where to get linux source code • https://www.kernel.org/ • How to read linux source code • http://lxr.linux.no/linux
Linux -usage • /bin /run • /root /sbin • /cdrom /selinux • /dev /srv • /etc /sys • /home /tmp • /lib /usr • /lib64 /var • /media initrd.img • /opt /root • /proc /lost+found
Linux -compile • (1) make menuconfig • (2) make (may also need make mrproper) • (3) make modules_install • (4) make install • (5) reboot • Now you have your own verison of linux • http://www.youtube.com/watch?v=vZaA2mRT5eg • Demo
Hints • wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.x.y.tar.gz • tar zxvf FileName.tar.gz • sudo apt-get install libncurses5-dev • make menuconfig
Kernel compiling • In project 2, you will be modifying the kernel. • Means you need to compile it once you change it • Steps • Download --Done • Configure --To be done • Build --Your job • Install --Your job
Kernel compiling • Tips • lspci • list hardware in your machine • If you are not sure, include it • make oldconfig • Use the old configuration file • If you don't have one, get one first and name it .config
grub • Used for multi-operating systems load. • When you install linux with window or Mac OS X, grub is installed and used automatically so you can choose which one to use.
You can manually change the grub file. • BE CAREFUL!
Virtual Machine • Another way to use Linux(free) along with Windows and Mac OS X • VMware, VirtualBox(free)