Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review...

16

Transcript of Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review...

Page 1: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.
Page 2: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

Agenda1. Present weekly Power Point presentation2. Open source presentations3. Final exam review link available4. All lab assignments due by August 8, 2015.5. Final exam composition

True/False questions: 100 questions (1 point each)

Multiple choice questions: 25 questions (2 points each)

Essay questions: 10 questions (5 points each)

Page 3: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

Week Fourteen Student name: Mountaga Tall

Open source topic : GIMP

Student name: Michael Hambrecht

Open source topic : Stellarium

Student name: Jon Latshaw

Open source topic : FreeNAS

Student name: Jared Stamper

Open source topic : Kodi

Student name: Eric Queveado

Open source topic : OpenFiler

Page 4: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX Operating SystemThe dumpe2fs command prints the super

block and blocks group information for the file system present on a device. Lab Assignment 12-1 can be submitted using the dumpe2fs command. The dumpe2fs command must be used on Knoppix software because the Unix / Linux file system blocks.

Page 5: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX Operating SystemBlocks are used for two different purposes:

Most blocks store user data aka files (user data).

Some blocks in every file system store the file system's metadata. So what is

metadata?

In simple words Metadata describes the structure of the file system. Most common metadata structure the superblock, inode and directories.

Page 6: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX Operating SystemSuperblock:

Each file system is different and they have a type like ext2, ext3, and ext4 etc. Further each file system has size like 5 GB, 10 GB and status such as mount status. In short each file system has a superblock, which contains information about file system such as:

1. File system type

2. Size

3. Status

4. Information about other metadata structures

Page 7: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX Operating System

If the super-block is lost or damaged, you are in trouble (data loss) so Linux maintains multiple redundant copies of the superblock in every file system. This is very important in many emergency situations, for example you can use backup copies to restore damaged primary super block. Following command displays primary and backup superblock location on /dev/sda3:

# dumpe2fs /dev/hda3 | grep -i superblock

Page 8: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX Operating SystemThe primary superblock is resides on block group 0,The back up superblock is resides on block groups 1, 3, 5, 7, 9.

Page 9: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX-like Operating System

The cs.franklin.edu machine requires root permission to execute the dumpe2fs command.

tune2fs command is helpful to manipulate the file system parameters of a ext2fs, or ext3fs, or ext4fs type file system.

Page 10: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX-like Operating SystemWhat is a shared library?

Shared libraries are libraries that are loaded by programs when they start. When a shared library is installed properly, all programs that start afterwards automatically use the new shared library.

Page 11: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX-like Operating SystemShared libraries are much more flexible and sophisticated than mentioned in the previous slide, because the approach used by Linux permits you to:

• Update libraries and still support programs that want to use older, non-backward-compatible versions of those libraries;

• Override specific libraries or even specific functions in a library when executing a particular program.

• Do all this while programs are running using existing libraries.

Page 12: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX-like Operating System

Recognizing shared library names

Every shared library has a special name called the ``soname''. The soname has the prefix ``lib'', the name of the library. One important libraries is the C library (libc). Another common type library is the one associated with GUIs. These libraries are often referred to as widget sets, because they provide the on-screen widgets used by programs – buttons, scroll bars, and menu bars.

Page 13: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX-like Operating System

Shared libraries are stored somewhere in the file system.

The GNU standards recommend installing by default all libraries in /usr/local/lib when distributing source code (and all commands should go into /usr/local/bin).

Page 14: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX-like Operating SystemLocating shared library files

To Set the library path is to edit the /etc/ld.so.conf file. This file consists of a series of lines, each of which lists one directory in which shared library files may be found.

/etc>cat ld.so.conf

include ld.so.conf.d/*.conf

Page 15: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

UNIX Operating System

Page 16: Agenda 1. Present weekly Power Point presentation 2. Open source presentations 3. Final exam review link available 4. All lab assignments due by August.

Lab Assistance available by phone and/or email