Post

Berkeley-Sysadmin_DeCal - Lab2a

Berkeley-Sysadmin_DeCal - Lab2a

作者学习的版本为spring 2021,但近年的作业内容基本一致

Exercise 2: Troubleshooting

Intro

Got the error message when try to install ocfspy package:

1
2
3
4
5
6
7
8
dpkg: dependency problems prevent configuration of ocfspy:
 ocfspy depends on ocfdocs; however:
  Package ocfdocs is not installed.

dpkg: error processing package ocfspy (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ocfspy

It tells that the ocfspy package depends on ocfdocks package

Solution

  1. Run ls command and find ocfdocs.c

  2. Compile it using gcc
  3. pakaging it using fpm
  4. install ocfdocs package first and then install ocfspy
  5. Run ocfspy and the password is Sinkhole

Answer to question

If /usr/share is added into PATH, hellopenguin can still be accessed from any directory but this is not recommended.

Exercise 3: Spelunking

  1. I chose tree package
  2. Dependency is found in contol file, in line “Depends: “
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Package: tree
Version: 2.0.2-1
Architecture: amd64
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Florian Ernst <[email protected]>
Installed-Size: 113
Depends: libc6 (>= 2.34)
Section: utils
Priority: optional
Homepage: http://mama.indstate.edu/users/ice/tree/
Description: displays an indented directory tree, in color
 Tree is a recursive directory listing command that produces a depth indented
 listing of files, which is colorized ala dircolors if the LS_COLORS environment
 variable is set and output is to tty.
  1. The tree command is a standalone utility that displays the directory structure of a path or disk in a terminal. It does not require complex dependencies, additional system configuration files, or libraries that might necessitate further directories outside of /usr/bin for the executable and /usr/share for documentation and man pages.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.
├── control
├── debian-binary
├── md5sums
└── usr
    ├── bin
    │   └── tree
    └── share
        ├── doc
        │   └── tree
        │       ├── changelog.Debian.gz
        │       ├── copyright
        │       ├── README.gz
        │       └── TODO
        └── man
            ├── fr
            │   └── man1
            │       └── tree.1.gz
            └── man1
                └── tree.1.gz
  1. I found that the package includes man pages for different languages, the /usr/share/man/fr stands for French, interesting.
This post is licensed under CC BY 4.0 by the author.