Victoria Garfield's Spring 2015 Opus
HPC FUNDAMENTALS AND C/C++ LAB
My name is Victoria. Some call me Tori.
My computer knows me as the legendoftori, so…
I like Pokemon and The Legend of Zelda (but mostly Pokemon).
The end.
This week, we opened up the computer and took a crash course in hardware. We installed more memory, replaced video cards, and added a new harddrive.
Upon making sure all components were available we booted the system to make sure it worked.
Originally when starting the computer, it had the Windows OS as the initial bootup settings. To bypass, when Dell pops up you have to strike the F2 key to enter the BIOS. However, any attempt to make changes to the BIOS proves to be futile because the root password was unavailable.
To bypass the password, the jumper (a small blue clip-looking piece) needed to be removed from the motherboard. Once removed, starting up the computer proves to show the password was cleared.
From there, striking F2 again to take you back to the BIOS, you can change the startup settings where we chose to boot from network.
First day of “Lab”, the class went over basics of using the Linux system including basic commands such as
Other instruction included opening a text editing program (I use vim) using the .c extension (the tradition extention for c files).
The C program preprocessor will always be:
#include <stdio.h>
Hello, World!
#include <stdio.h> int main() { fprintf(stdout, "Hello, world!\n"); return(0); }
Playing with broken code:
lab46:~/cprog$ gcc -o broken1 broken1.c broken1.c: In function 'main': broken1.c:4:18: error: 'Hello' undeclared (first use in this function) fprintf(stdout, Hello, world!\n"); ^ broken1.c:4:18: note: each undeclared identifier is reported only once for each function it appears in broken1.c:4:25: error: 'world' undeclared (first use in this function) fprintf(stdout, Hello, world!\n"); ^ broken1.c:4:30: error: expected ')' before '!' token fprintf(stdout, Hello, world!\n"); ^ broken1.c:4:30: error: stray '\' in program broken1.c:4:33: warning: missing terminating " character fprintf(stdout, Hello, world!\n"); ^ broken1.c:4:30: error: missing terminating " character fprintf(stdout, Hello, world!\n"); ^ broken1.c:6:1: error: expected ';' before '}' token }
Exponential Program Creation.
Remount by creating your LFS variable under root and mount:
root@legendoftori:~# export LFS=/mnt/lfs root@legendoftori:~# echo $LFS /mnt/lfs root@legendoftori:~# mount -v -t ext4 /dev/sda3 $LFS
If shut down for any reason, be sure to remount, and enter chroot environment. See instruction on 6.2.2. Mounting and Populating /dev && 6.2.3. Mounting Virtual Kernel File Systems
chroot "$LFS" /tools/bin/env -i \ HOME=/root \ TERM="$TERM" \ PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ /tools/bin/bash --login +h
I missed class Tuesday this week, but am in here Wednesday.. As I was trying to get intltool prepared for “make”, there was a configure error for XML::Parser. I am going back to XML::Parser and going back through to steps. UPDATE:: didn't fix the issue. To Google I go. I am going to try to recompile perl now. UPDATE:: Going through Perl didn't fix the issue either.
Playing catch up, note to go over each of these topics:
root@ws5:/#mount ws0:/home /mnt
root@ws5:/#umount /mnt