| 607 | === Results of testing step 3: 2012-11-21 === |
| 608 | |
| 609 | * Here's the netstat invocation to get all the IPv4/IPv6 listeners: |
| 610 | {{{ |
| 611 | foam,[~],07:56(0)$ sudo netstat -lnp46 |
| 612 | Active Internet connections (only servers) |
| 613 | Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name |
| 614 | tcp 0 0 0.0.0.0:3626 0.0.0.0:* LISTEN 31388/nginx |
| 615 | tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 31388/nginx |
| 616 | tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 471/sshd |
| 617 | tcp6 0 0 :::22 :::* LISTEN 471/sshd |
| 618 | udp 0 0 10.4.1.2:123 0.0.0.0:* 17929/ntpd |
| 619 | udp 0 0 155.98.34.6:123 0.0.0.0:* 17929/ntpd |
| 620 | udp 0 0 127.0.0.1:123 0.0.0.0:* 17929/ntpd |
| 621 | udp 0 0 0.0.0.0:123 0.0.0.0:* 17929/ntpd |
| 622 | udp6 0 0 fe80::216:3eff:fef0:123 :::* 17929/ntpd |
| 623 | udp6 0 0 ::1:123 :::* 17929/ntpd |
| 624 | udp6 0 0 fe80::216:3eff:fef0:123 :::* 17929/ntpd |
| 625 | udp6 0 0 :::123 :::* 17929/ntpd |
| 626 | }}} |
| 627 | * Looking up the full paths for those listeners: |
| 628 | {{{ |
| 629 | foam,[~],07:57(0)$ sudo ls -l /proc/{31388,471,17929}/exe |
| 630 | lrwxrwxrwx 1 root root 0 Nov 21 07:59 /proc/17929/exe -> /usr/sbin/ntpd |
| 631 | lrwxrwxrwx 1 root root 0 Nov 21 07:59 /proc/31388/exe -> /usr/sbin/nginx |
| 632 | lrwxrwxrwx 1 root root 0 May 31 16:17 /proc/471/exe -> /usr/sbin/sshd |
| 633 | }}} |
| 634 | * Find out what package each listener is from: |
| 635 | {{{ |
| 636 | foam,[~],07:59(0)$ dpkg -S /usr/sbin/sshd |
| 637 | openssh-server: /usr/sbin/sshd |
| 638 | foam,[~],08:00(0)$ dpkg -S /usr/sbin/ntpd |
| 639 | ntp: /usr/sbin/ntpd |
| 640 | foam,[~],08:01(0)$ dpkg -S /usr/sbin/nginx |
| 641 | nginx-full: /usr/sbin/nginx |
| 642 | }}} |
| 643 | * Get information about each package: |
| 644 | {{{ |
| 645 | foam,[~],08:03(0)$ dpkg -s openssh-server ntp nginx-full | egrep "^Package:|^Status:|^Maintainer:|^Version:|^$" |
| 646 | Package: openssh-server |
| 647 | Status: install ok installed |
| 648 | Maintainer: Colin Watson <cjwatson@ubuntu.com> |
| 649 | Version: 1:5.9p1-5ubuntu1 |
| 650 | |
| 651 | Package: ntp |
| 652 | Status: install ok installed |
| 653 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
| 654 | Version: 1:4.2.6.p3+dfsg-1ubuntu3 |
| 655 | |
| 656 | Package: nginx-full |
| 657 | Status: install ok installed |
| 658 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
| 659 | Version: 1.1.19-1 |
| 660 | }}} |
| 661 | * Download source packages and briefly verify that something was downloaded: |
| 662 | {{{ |
| 663 | foam,[~],08:04(0)$ mkdir tmp |
| 664 | foam,[~],08:04(0)$ cd tmp/ |
| 665 | |
| 666 | foam,[~/tmp],08:04(0)$ apt-get --download-only source openssh-server=1:5.9p1-5ubuntu1 |
| 667 | Reading package lists... Done |
| 668 | Building dependency tree |
| 669 | Reading state information... Done |
| 670 | Picking 'openssh' as source package instead of 'openssh-server' |
| 671 | NOTICE: 'openssh' packaging is maintained in the 'Bzr' version control system at: |
| 672 | http://anonscm.debian.org/bzr/pkg-ssh/openssh/trunk |
| 673 | Please use: |
| 674 | bzr branch http://anonscm.debian.org/bzr/pkg-ssh/openssh/trunk |
| 675 | to retrieve the latest (possibly unreleased) updates to the package. |
| 676 | Need to get 1,363 kB of source archives. |
| 677 | Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main openssh 1:5.9p1-5ubuntu1 (dsc) [2,651 B] |
| 678 | Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main openssh 1:5.9p1-5ubuntu1 (tar) [1,110 kB] |
| 679 | Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main openssh 1:5.9p1-5ubuntu1 (diff) [251 kB] |
| 680 | Fetched 1,363 kB in 0s (1,551 kB/s) |
| 681 | Download complete and in download only mode |
| 682 | |
| 683 | foam,[~/tmp],08:04(0)$ apt-get --download-only source ntp=1:4.2.6.p3+dfsg-1ubuntu3 |
| 684 | Reading package lists... Done |
| 685 | Building dependency tree |
| 686 | Reading state information... Done |
| 687 | |
| 688 | NOTICE: 'ntp' packaging is maintained in the 'Svn' version control system at: |
| 689 | svn://svn.debian.org/pkg-ntp/ntp/trunk/ |
| 690 | Need to get 4,745 kB of source archives. |
| 691 | Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main ntp 1:4.2.6.p3+dfsg-1ubuntu3 (dsc) [2,344 B] |
| 692 | Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main ntp 1:4.2.6.p3+dfsg-1ubuntu3 (tar) [4,177 kB] |
| 693 | Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main ntp 1:4.2.6.p3+dfsg-1ubuntu3 (diff) [565 kB] |
| 694 | Fetched 4,745 kB in 1s (2,990 kB/s) |
| 695 | Download complete and in download only mode |
| 696 | |
| 697 | foam,[~/tmp],08:05(0)$ apt-get --download-only source nginx-full=1.1.19-1 |
| 698 | Reading package lists... Done |
| 699 | Building dependency tree |
| 700 | Reading state information... Done |
| 701 | Picking 'nginx' as source package instead of 'nginx-full' |
| 702 | NOTICE: 'nginx' packaging is maintained in the 'Svn' version control system at: |
| 703 | svn://svn.debian.org/svn/collab-maint/deb-maint/nginx/trunk |
| 704 | Need to get 1,353 kB of source archives. |
| 705 | Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe nginx 1.1.19-1 (dsc) [2,041 B] |
| 706 | Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/universe nginx 1.1.19-1 (tar) [716 kB] |
| 707 | 0% [2 nginx 0 B/716 kB 0%] |
| 708 | Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/universe nginx 1.1.19-1 (diff) [635 kB] |
| 709 | Fetched 1,353 kB in 0s (1,602 kB/s) |
| 710 | Download complete and in download only mode |
| 711 | |
| 712 | foam,[~/tmp],08:05(0)$ ls -l |
| 713 | total 7304 |
| 714 | -rw-r--r-- 1 chaos chaos 634913 Apr 14 2012 nginx_1.1.19-1.debian.tar.gz |
| 715 | -rw-r--r-- 1 chaos chaos 2041 Apr 14 2012 nginx_1.1.19-1.dsc |
| 716 | -rw-r--r-- 1 chaos chaos 715741 Apr 14 2012 nginx_1.1.19.orig.tar.gz |
| 717 | -rw-r--r-- 1 chaos chaos 565496 Mar 6 2012 ntp_4.2.6.p3+dfsg-1ubuntu3.debian.tar.gz |
| 718 | -rw-r--r-- 1 chaos chaos 2344 Mar 6 2012 ntp_4.2.6.p3+dfsg-1ubuntu3.dsc |
| 719 | -rw-r--r-- 1 chaos chaos 4176683 Oct 26 2011 ntp_4.2.6.p3+dfsg.orig.tar.gz |
| 720 | -rw-r--r-- 1 chaos chaos 250819 Apr 2 2012 openssh_5.9p1-5ubuntu1.debian.tar.gz |
| 721 | -rw-r--r-- 1 chaos chaos 2651 Apr 2 2012 openssh_5.9p1-5ubuntu1.dsc |
| 722 | -rw-r--r-- 1 chaos chaos 1110014 Oct 17 2011 openssh_5.9p1.orig.tar.gz |
| 723 | }}} |
| 724 | |