Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

[Guidelines]

[1] Compare the sum in the git of the student and the sum of the actual disk image.

cmds: (MAC terminal)

cd ~/Library/Containers/com.utmapp.UTM/Data/Documents/ft_linux.utm/Data/ shasum < E75FCCD4-040B-4017-A469-7CF204C47D1F.qcow2

[Basics]

[Linux Kernel]

[2] Is the kernel a linux one ?

sudo mount /dev/vda4 /mnt/lfs sudo mount --bind /dev /mnt/lfs/dev sudo mount -t proc proc /mnt/lfs/proc sudo mount -t sysfs sysfs /mnt/lfs/sys sudo chroot /mnt/lfs /bin/bash --login uname -s should display linux

[Linux Version]

[3] Is the Linux kernel version >= 4.0?

strings /boot/vmlinuz-6.16.1-cduffaut | grep "Linux version" | head -1

[4] Check that the source code located in /usr/src/linux- matches akernel version => 4.0

ls -la /usr/src/linux-6.16.1/ | grep "linux-"

[5] Check the kernel version in the logs (It should include the student's login)

exit # Exit chroot exit # Exit sudo exit # Disconnect SSH ssh cduffaut@192.168.64.8 sudo reboot Select: "Linux From Scratch 6.16.1 - cduffaut" Show the logs in the VM terminal (debog) -> "[ 0.000000] Linux version 6.16.1-cduffaut (root@linux) (gcc (GCC) 15.2.0, GNU ld (GNU Binutils) 2.45) #6 SMP PREEMPT"

[Partitions]

[6] Is there at least 3partitions no the system ?

action:

Go back in the SSH terminal

cmds:

sudo su - mount /dev/vda4 /mnt/lfs mount /dev/vda2 /mnt/lfs/boot mount --bind /dev /mnt/lfs/dev mount -t proc proc /mnt/lfs/proc mount -t sysfs sysfs /mnt/lfs/sys chroot /mnt/lfs /bin/bash --login lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT | grep vda cat /etc/fstab

[Kernel Module loader]

[7] I there a module loader on the system ? (udev)

cmds:

udevadm --version udev = Programme qui gère automatiquement les périphériques (USB, disques, etc.) udevadm = L'outil en ligne de commande pour contrôler udev

[Bootloader]

[8] I there a bootloader ? (GRUB)

cmd:

grub-install --version

[9] Check the kernel binary name in /boot. Must be something like vmlinuz-<linux_version>.<student_login>

cmd:

ls -l /boot/vmlinuz*

[Daemon manager]

[10] Is there a daemon manager ? (SysV, SystemD, ...)

cmd:

ls -l /sbin/init SysVinit = Système de gestion des services (démarre les services au boot) /sbin/init = Le programme principal (PID 1)

[Editor]

[11] Test if an editor is present on the system.

cmd:

vim --version

[The interweb]

[12] Internet working ?(Net module + curl)

cmd:

Net module (Prouver qu'un module réseau est chargé)

lsmod | grep virtio_net La carte réseau virtuelle utilise le driver virtio-net

Curl

curl -I http://google.com

[13] Script .sh

cmds

sudo su - export LFS=/mnt/lfs mount /dev/vda4 /mnt/lfs mount /dev/vda2 /mnt/lfs/boot

Chroot

mount --bind /dev $LFS/dev mount -t proc proc $LFS/proc mount -t sysfs sysfs $LFS/sys mount -t tmpfs tmpfs $LFS/run

chroot "$LFS" /bin/bash

bash /root/ft_linux_basic.sh bash /root/ft_linux_others.sh

[14] SCREEN INSTALLATION

Screen is already installed

screen --version

Uninstall properly

rm -v /usr/bin/screen* rm -v /usr/share/man/man1/screen.1 rm -rfv /usr/share/screen

Check to be sure

screen --version # command not found

re-install screen...

cd /sources/screen-4.9.1 make install

final check

screen --version

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors