Журнал лабораторных работ

Содержание

Журнал

Вторник (03/29/16)

/dev/pts/0
10:18:04
$sudo arp
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.10.1             ether   6c:62:6d:7a:c2:cc   C                     eth0
10:18:16
$apd-cache
bash: apd-cache: command not found
10:21:27
$apt-cache
apt 1.0.9.8.2 for amd64 compiled on Sep 15 2015 21:44:33
Usage: apt-cache [options] command
       apt-cache [options] showpkg pkg1 [pkg2 ...]
       apt-cache [options] showsrc pkg1 [pkg2 ...]
apt-cache is a low-level tool used to query information
from APT's binary cache files
Commands:
   gencaches - Build both the package and source cache
   showpkg - Show some general information for a single package
   showsrc - Show source records
...
   policy - Show policy settings
Options:
  -h   This help text.
  -p=? The package cache.
  -s=? The source cache.
  -q   Disable progress indicator.
  -i   Show only important deps for the unmet command.
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-cache(8) and apt.conf(5) manual pages for more information.
10:21:32
$apt-cache search dhcp
ahcpd - Ad-Hoc Configuration Protocol
autodns-dhcp - Automatic DNS updates for DHCP
avahi-autoipd - Avahi IPv4LL network address configuration daemon
backuppc - high-performance, enterprise-grade system for backing up PCs
batctl - B.A.T.M.A.N. advanced control and management tool
bootp - server for the bootp protocol with DHCP support
busybox - Tiny utilities for small and embedded systems
udhcpc - Provides the busybox DHCP client implementation
udhcpd - Provides the busybox DHCP server implementation
connman - Intel Connection Manager daemon
...
pxe - free PXE daemon
python-pydhcplib - Python DHCP client/server library
python-pypureomapi - ISC DHCP OMAPI protocol implementation in Python
python-reconfigure - simple config file management library
resolvconf - name server information handler
whereami - Automatically reconfigure your (laptop) system for a new location
wide-dhcpv6-client - DHCPv6 client for automatic IPv6 hosts configuration
wide-dhcpv6-relay - DHCPv6 relay for automatic IPv6 hosts configuration
wide-dhcpv6-server - DHCPv6 server for automatic IPv6 hosts configuration
yersinia - Network vulnerabilities check software
10:21:50
$sudo apt-get install isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  isc-dhcp-server-ldap
The following NEW packages will be installed:
  isc-dhcp-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 381 kB of archives.
After this operation, 864 kB of additional disk space will be used.
...
(Reading database ... 146846 files and directories currently installed.)
Preparing to unpack .../isc-dhcp-server_4.3.1-6+deb8u2_amd64.deb ...
Unpacking isc-dhcp-server (4.3.1-6+deb8u2) ...
Processing triggers for systemd (215-17+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up isc-dhcp-server (4.3.1-6+deb8u2) ...
Generating /etc/default/isc-dhcp-server...
Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
Processing triggers for systemd (215-17+deb8u3) ...
10:23:33
$apt-cache search bash-comp
bash - GNU Bourne Again SHell
bash-completion - programmable completion for the bash shell
python-optcomplete - provide bash-completion for Python programs
10:23:38
$apt-get install bash-completion
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
10:23:52
$sudo apt-get install bash-completion
Reading package lists... Done
Building dependency tree
Reading state information... Done
bash-completion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
10:24:03
$sudo apt-get install bash
bash             bashburn         bash-doc
bash-builtins    bash-completion  bash-static
10:24:03
$sudo apt-get install bash
bash             bashburn         bash-doc
bash-builtins    bash-completion  bash-static
10:24:03
$sudo apt-get install dhcp
dhcpcd5      dhcpcd-gtk   dhcp-helper  dhcp-probe
dhcpcd-dbus  dhcpdump     dhcping      dhcpy6d
10:24:03
$sudo apt-get install dhcp
dhcpcd5      dhcpcd-gtk   dhcp-helper  dhcp-probe
dhcpcd-dbus  dhcpdump     dhcping      dhcpy6d
10:24:03
$sudo apt-get install isc
isc-dhcp-client       isc-dhcp-dev          isc-dhcp-server-dbg
isc-dhcp-client-dbg   isc-dhcp-relay        isc-dhcp-server-ldap
isc-dhcp-common       isc-dhcp-relay-dbg    iscsitarget
isc-dhcp-dbg          isc-dhcp-server       iscsitarget-dkms
10:24:03