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
Run
ls
command and findocfdocs.c
- Compile it using gcc
- pakaging it using fpm
- install ocfdocs package first and then install ocfspy
- Run
ocfspy
and the password isSinkhole
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
- I chose
tree
package - 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.
- 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
- 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.