mirror of
https://github.com/darksaid98/ubuntu-server-setup.git
synced 2026-12-01 14:38:58 +00:00
Added setup cleanup functions
This commit is contained in:
1 parent
244e4db9d9
commit
0c80eb4811
11 files changed
+35
-1549
No files matched your search
+1
-1
@@ -2,4 +2,4 @@
|
||||
*.log
|
||||
.DS_Store
|
||||
!results/.gitkeep
|
||||
results/*
|
||||
/results/*
|
||||
@@ -12,6 +12,9 @@ function includeDependencies() {
|
||||
source "${current_dir}/setupLibrary.sh"
|
||||
}
|
||||
|
||||
current_dir=$(getCurrentDir)
|
||||
includeDependencies
|
||||
|
||||
function setupSwap() {
|
||||
createSwap
|
||||
mountSwap
|
||||
@@ -19,8 +22,11 @@ function setupSwap() {
|
||||
saveSwapSettings
|
||||
}
|
||||
|
||||
current_dir=$(getCurrentDir)
|
||||
includeDependencies
|
||||
function cleanup() {
|
||||
if [[ -f "/etc/sudoers.bak" ]]; then
|
||||
revertSudoers
|
||||
fi
|
||||
}
|
||||
|
||||
read -p "Enter the username of the new user account:" username
|
||||
read -s -p "Enter new UNIX password:" password
|
||||
@@ -33,9 +39,12 @@ if [[ "${password}" != "${password_confirmation}" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
trap cleanup EXIT SIGHUP SIGINT SIGTERM
|
||||
|
||||
addUserAccount "${username}" "${password}"
|
||||
|
||||
read -rp $'Paste in the public SSH key for the new user:\n' sshKey
|
||||
disableSudoPassword "${username}"
|
||||
addSSHKey "${username}" "${sshKey}"
|
||||
changeSSHConfig
|
||||
setupUfw
|
||||
@@ -43,4 +52,6 @@ setupSwap
|
||||
setTimezone "Asia/Singapore"
|
||||
configureNTP
|
||||
|
||||
sudo service ssh restart
|
||||
sudo service ssh restart
|
||||
|
||||
cleanup
|
||||
+18
-2
@@ -11,9 +11,9 @@ function addUserAccount() {
|
||||
local silent_mode=${3}
|
||||
|
||||
if [[ ${silent_mode} == "true" ]]; then
|
||||
sudo adduser --disabled-password --gecos '' ${username}
|
||||
sudo adduser --disabled-password --gecos '' "${username}"
|
||||
else
|
||||
sudo adduser --disabled-password ${username}
|
||||
sudo adduser --disabled-password "${username}"
|
||||
fi
|
||||
|
||||
echo "${username}:${password}" | sudo chpasswd
|
||||
@@ -119,4 +119,20 @@ function getPhysicalMemory() {
|
||||
else
|
||||
echo ${phymem}
|
||||
fi
|
||||
}
|
||||
|
||||
# Disables the sudo password prompt for a user account by editing /etc/sudoers
|
||||
# Arguments:
|
||||
# Account username
|
||||
function disableSudoPassword() {
|
||||
local username="${1}"
|
||||
|
||||
sudo cp /etc/sudoers /etc/sudoers.bak
|
||||
sudo bash -c "echo '${1} ALL=(ALL) NOPASSWD: ALL' | (EDITOR='tee -a' visudo)"
|
||||
}
|
||||
|
||||
# Reverts the original /etc/sudoers file before this script is ran
|
||||
function revertSudoers() {
|
||||
sudo cp /etc/sudoers.bak /etc/sudoers
|
||||
sudo rm -rf /etc/sudoers.bak
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
||||
# configures the configuration version (we support older styles for
|
||||
# backwards compatibility). Please don't change it unless you know what
|
||||
# you're doing.
|
||||
Vagrant.configure(2) do |config|
|
||||
# The most common configuration options are documented and commented below.
|
||||
# For a complete reference, please see the online documentation at
|
||||
# https://docs.vagrantup.com.
|
||||
|
||||
# Every Vagrant development environment requires a box. You can search for
|
||||
# boxes at https://atlas.hashicorp.com/search.
|
||||
config.vm.box = "ubuntu/precise32"
|
||||
|
||||
# Disable automatic box update checking. If you disable this, then
|
||||
# boxes will only be checked for updates when the user runs
|
||||
# `vagrant box outdated`. This is not recommended.
|
||||
config.vm.box_check_update = false
|
||||
|
||||
# Create a forwarded port mapping which allows access to a specific port
|
||||
# within the machine from a port on the host machine. In the example below,
|
||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
||||
|
||||
# Create a private network, which allows host-only access to the machine
|
||||
# using a specific IP.
|
||||
# config.vm.network "private_network", ip: "192.168.33.10"
|
||||
|
||||
# Create a public network, which generally matched to bridged network.
|
||||
# Bridged networks make the machine appear as another physical device on
|
||||
# your network.
|
||||
# config.vm.network "public_network"
|
||||
|
||||
# Share an additional folder to the guest VM. The first argument is
|
||||
# the path on the host to the actual folder. The second argument is
|
||||
# the path on the guest to mount the folder. And the optional third
|
||||
# argument is a set of non-required options.
|
||||
# config.vm.synced_folder "../data", "/vagrant_data"
|
||||
|
||||
# Provider-specific configuration so you can fine-tune various
|
||||
# backing providers for Vagrant. These expose provider-specific options.
|
||||
# Example for VirtualBox:
|
||||
#
|
||||
# config.vm.provider "virtualbox" do |vb|
|
||||
# # Display the VirtualBox GUI when booting the machine
|
||||
# vb.gui = true
|
||||
#
|
||||
# # Customize the amount of memory on the VM:
|
||||
# vb.memory = "1024"
|
||||
# end
|
||||
#
|
||||
# View the documentation for the provider you are using for more
|
||||
# information on available options.
|
||||
|
||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
||||
# such as FTP and Heroku are also available. See the documentation at
|
||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
||||
# config.push.define "atlas" do |push|
|
||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
||||
# end
|
||||
|
||||
# Enable provisioning with a shell script. Additional provisioners such as
|
||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
||||
# documentation for more information about their specific syntax and use.
|
||||
# config.vm.provision "shell", inline: <<-SHELL
|
||||
# sudo apt-get update
|
||||
# sudo apt-get install -y apache2
|
||||
# SHELL
|
||||
end
|
||||
@@ -1,71 +0,0 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
||||
# configures the configuration version (we support older styles for
|
||||
# backwards compatibility). Please don't change it unless you know what
|
||||
# you're doing.
|
||||
Vagrant.configure(2) do |config|
|
||||
# The most common configuration options are documented and commented below.
|
||||
# For a complete reference, please see the online documentation at
|
||||
# https://docs.vagrantup.com.
|
||||
|
||||
# Every Vagrant development environment requires a box. You can search for
|
||||
# boxes at https://atlas.hashicorp.com/search.
|
||||
config.vm.box = "ubuntu/precise64"
|
||||
|
||||
# Disable automatic box update checking. If you disable this, then
|
||||
# boxes will only be checked for updates when the user runs
|
||||
# `vagrant box outdated`. This is not recommended.
|
||||
config.vm.box_check_update = false
|
||||
|
||||
# Create a forwarded port mapping which allows access to a specific port
|
||||
# within the machine from a port on the host machine. In the example below,
|
||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
||||
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
||||
|
||||
# Create a private network, which allows host-only access to the machine
|
||||
# using a specific IP.
|
||||
# config.vm.network "private_network", ip: "192.168.33.10"
|
||||
|
||||
# Create a public network, which generally matched to bridged network.
|
||||
# Bridged networks make the machine appear as another physical device on
|
||||
# your network.
|
||||
# config.vm.network "public_network"
|
||||
|
||||
# Share an additional folder to the guest VM. The first argument is
|
||||
# the path on the host to the actual folder. The second argument is
|
||||
# the path on the guest to mount the folder. And the optional third
|
||||
# argument is a set of non-required options.
|
||||
# config.vm.synced_folder "../data", "/vagrant_data"
|
||||
|
||||
# Provider-specific configuration so you can fine-tune various
|
||||
# backing providers for Vagrant. These expose provider-specific options.
|
||||
# Example for VirtualBox:
|
||||
#
|
||||
# config.vm.provider "virtualbox" do |vb|
|
||||
# # Display the VirtualBox GUI when booting the machine
|
||||
# vb.gui = true
|
||||
#
|
||||
# # Customize the amount of memory on the VM:
|
||||
# vb.memory = "1024"
|
||||
# end
|
||||
#
|
||||
# View the documentation for the provider you are using for more
|
||||
# information on available options.
|
||||
|
||||
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
||||
# such as FTP and Heroku are also available. See the documentation at
|
||||
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
||||
# config.push.define "atlas" do |push|
|
||||
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
||||
# end
|
||||
|
||||
# Enable provisioning with a shell script. Additional provisioners such as
|
||||
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
||||
# documentation for more information about their specific syntax and use.
|
||||
# config.vm.provision "shell", inline: <<-SHELL
|
||||
# sudo apt-get update
|
||||
# sudo apt-get install -y apache2
|
||||
# SHELL
|
||||
end
|
||||
@@ -1,200 +0,0 @@
|
||||
[H[2J
|
||||
unit-tests.sh:
|
||||
|
||||
Test Setup
|
||||
Adding user `testuser3' ...
|
||||
Adding new group `testuser3' (1002) ...
|
||||
Adding new user `testuser3' (1002) with group `testuser3' ...
|
||||
Creating home directory `/home/testuser3' ...
|
||||
Copying files from `/etc/skel' ...
|
||||
testuser3 ALL=(ALL) NOPASSWD: ALL
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBGTO0tsVejssuaYR5R3Y/i73SppJAhme1dH7W2c47d4gOqB4izP0+fRLfvbz/tnXFz4iOP/H6eCV05hqUhF+KYRxt9Y8tVMrpDZR2l75o6+xSbUOMu6xN+uVF0T9XzKcxmzTmnV7Na5up3QM3DoSRYX/EP3utr2+zAqpJIfKPLdA74w7g56oYWI9blpnpzxkEd3edVJOivUkpZ4JoenWManvIaSdMTJXMy3MtlQhva+j9CgguyVbUkdzK9KKEuah+pFZvaugtebsU+bllPTB0nlXGIJk98Ie9ZtxuY3nCKneB+KjKiXrAvXUPCI9mWkYS/1rggpFmu3HbXBnWSUdf [email protected]
|
||||
Rules updated
|
||||
Rules updated (v6)
|
||||
Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup
|
||||
Setting up swapspace version 1, size = 2097148 KiB
|
||||
no label, UUID=9e4e48f2-9cb6-4532-b8ac-494cb51acc71
|
||||
vm.swappiness = 10
|
||||
vm.vfs_cache_pressure = 50
|
||||
vm.swappiness = 60
|
||||
vm.vfs_cache_pressure = 100
|
||||
America/New_York
|
||||
|
||||
Current default time zone: 'America/New_York'
|
||||
Local time is now: Tue Nov 29 06:56:17 EST 2016.
|
||||
Universal Time is now: Tue Nov 29 11:56:17 UTC 2016.
|
||||
|
||||
Etc/UTC
|
||||
|
||||
Current default time zone: 'Etc/UTC'
|
||||
Local time is now: Tue Nov 29 11:56:17 UTC 2016.
|
||||
Universal Time is now: Tue Nov 29 11:56:17 UTC 2016.
|
||||
|
||||
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
|
||||
Hit http://archive.ubuntu.com precise Release.gpg
|
||||
Get:2 http://security.ubuntu.com precise-security Release [55.5 kB]
|
||||
Get:3 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
|
||||
Hit http://archive.ubuntu.com precise-backports Release.gpg
|
||||
Hit http://archive.ubuntu.com precise Release
|
||||
Get:4 http://archive.ubuntu.com precise-updates Release [55.4 kB]
|
||||
Get:5 http://security.ubuntu.com precise-security/main Sources [146 kB]
|
||||
Get:6 http://security.ubuntu.com precise-security/universe Sources [53.7 kB]
|
||||
Hit http://archive.ubuntu.com precise-backports Release
|
||||
Get:7 http://security.ubuntu.com precise-security/main i386 Packages [722 kB]
|
||||
Get:8 http://archive.ubuntu.com precise/main Sources [934 kB]
|
||||
Get:9 http://security.ubuntu.com precise-security/universe i386 Packages [147 kB]
|
||||
Get:10 http://security.ubuntu.com precise-security/main TranslationIndex [208 B]
|
||||
Get:11 http://security.ubuntu.com precise-security/universe TranslationIndex [205 B]
|
||||
Get:12 http://security.ubuntu.com precise-security/main Translation-en [266 kB]
|
||||
Get:13 http://archive.ubuntu.com precise/restricted Sources [5,470 B]
|
||||
Get:14 http://archive.ubuntu.com precise/universe Sources [5,019 kB]
|
||||
Get:15 http://security.ubuntu.com precise-security/universe Translation-en [89.0 kB]
|
||||
Get:16 http://archive.ubuntu.com precise/multiverse Sources [155 kB]
|
||||
Hit http://archive.ubuntu.com precise/main i386 Packages
|
||||
Hit http://archive.ubuntu.com precise/restricted i386 Packages
|
||||
Hit http://archive.ubuntu.com precise/universe i386 Packages
|
||||
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
|
||||
Hit http://archive.ubuntu.com precise/main TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise/universe TranslationIndex
|
||||
Get:17 http://archive.ubuntu.com precise-updates/main Sources [499 kB]
|
||||
Get:18 http://archive.ubuntu.com precise-updates/restricted Sources [8,840 B]
|
||||
Get:19 http://archive.ubuntu.com precise-updates/universe Sources [132 kB]
|
||||
Get:20 http://archive.ubuntu.com precise-updates/multiverse Sources [10.5 kB]
|
||||
Get:21 http://archive.ubuntu.com precise-updates/main i386 Packages [1,103 kB]
|
||||
Get:22 http://archive.ubuntu.com precise-updates/restricted i386 Packages [15.4 kB]
|
||||
Get:23 http://archive.ubuntu.com precise-updates/universe i386 Packages [292 kB]
|
||||
Get:24 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [17.3 kB]
|
||||
Get:25 http://archive.ubuntu.com precise-updates/main TranslationIndex [208 B]
|
||||
Get:26 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [202 B]
|
||||
Get:27 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [202 B]
|
||||
Get:28 http://archive.ubuntu.com precise-updates/universe TranslationIndex [205 B]
|
||||
Get:29 http://archive.ubuntu.com precise-backports/main Sources [5,922 B]
|
||||
Get:30 http://archive.ubuntu.com precise-backports/restricted Sources [28 B]
|
||||
Get:31 http://archive.ubuntu.com precise-backports/universe Sources [44.2 kB]
|
||||
Get:32 http://archive.ubuntu.com precise-backports/multiverse Sources [5,750 B]
|
||||
Hit http://archive.ubuntu.com precise-backports/main i386 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise/main Translation-en
|
||||
Hit http://archive.ubuntu.com precise/multiverse Translation-en
|
||||
Hit http://archive.ubuntu.com precise/restricted Translation-en
|
||||
Hit http://archive.ubuntu.com precise/universe Translation-en
|
||||
Get:33 http://archive.ubuntu.com precise-updates/main Translation-en [428 kB]
|
||||
Get:34 http://archive.ubuntu.com precise-updates/multiverse Translation-en [10.1 kB]
|
||||
Get:35 http://archive.ubuntu.com precise-updates/restricted Translation-en [3,682 B]
|
||||
Get:36 http://archive.ubuntu.com precise-updates/universe Translation-en [170 kB]
|
||||
Hit http://archive.ubuntu.com precise-backports/main Translation-en
|
||||
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
|
||||
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
|
||||
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
|
||||
Fetched 10.4 MB in 18s (549 kB/s)
|
||||
Reading package lists...
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following packages were automatically installed and are no longer required:
|
||||
libxfixes3 xserver-common xserver-xorg-core libxfont1 xfonts-base
|
||||
libxcomposite1 libfontenc1 xfonts-utils libgl1-mesa-dri libxdamage1
|
||||
x11-xkb-utils xfonts-encodings libxrandr2 libxkbfile1 libllvm3.0
|
||||
Use 'apt-get autoremove' to remove them.
|
||||
The following extra packages will be installed:
|
||||
libopts25
|
||||
Suggested packages:
|
||||
ntp-doc
|
||||
The following NEW packages will be installed:
|
||||
libopts25 ntp
|
||||
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
|
||||
Need to get 658 kB of archives.
|
||||
After this operation, 1,629 kB of additional disk space will be used.
|
||||
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main libopts25 i386 1:5.12-0.1ubuntu1 [58.4 kB]
|
||||
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main ntp i386 1:4.2.6.p3+dfsg-1ubuntu3.11 [600 kB]
|
||||
Fetched 658 kB in 2s (284 kB/s)
|
||||
Selecting previously unselected package libopts25.
|
||||
(Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 66634 files and directories currently installed.)
|
||||
Unpacking libopts25 (from .../libopts25_1%3a5.12-0.1ubuntu1_i386.deb) ...
|
||||
Selecting previously unselected package ntp.
|
||||
Unpacking ntp (from .../ntp_1%3a4.2.6.p3+dfsg-1ubuntu3.11_i386.deb) ...
|
||||
Processing triggers for man-db ...
|
||||
Processing triggers for ureadahead ...
|
||||
Setting up libopts25 (1:5.12-0.1ubuntu1) ...
|
||||
Setting up ntp (1:4.2.6.p3+dfsg-1ubuntu3.11) ...
|
||||
* Starting NTP server ntpd [252G ␍[246G[ OK ]
|
||||
Processing triggers for libc-bin ...
|
||||
ldconfig deferred processing now taking place
|
||||
unit-tests.sh: line 88: timedatectl: command not found
|
||||
Line 88: testNTP: assertContains() failed. Expected "" to contain "NTP synchronized: yes"..
|
||||
Test Teardown
|
||||
Removing user `testuser3' from group `sudo' ...
|
||||
Done.
|
||||
Looking for files to backup/remove ...
|
||||
Removing files ...
|
||||
Removing user `testuser3' ...
|
||||
Warning: group `testuser3' has no more members.
|
||||
Done.
|
||||
Rule deleted
|
||||
Rule deleted (v6)
|
||||
Firewall stopped and disabled on system startup
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following packages will be REMOVED:
|
||||
libfontenc1* libgl1-mesa-dri* libllvm3.0* libopts25* libxcomposite1*
|
||||
libxdamage1* libxfixes3* libxfont1* libxkbfile1* libxrandr2* ntp*
|
||||
x11-xkb-utils* xfonts-base* xfonts-encodings* xfonts-utils* xserver-common*
|
||||
xserver-xorg-core*
|
||||
0 upgraded, 0 newly installed, 17 to remove and 4 not upgraded.
|
||||
After this operation, 54.9 MB disk space will be freed.
|
||||
(Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 66679 files and directories currently installed.)
|
||||
Removing xserver-xorg-core ...
|
||||
Purging configuration files for xserver-xorg-core ...
|
||||
rm: cannot remove `/var/log/Xorg.*.log': No such file or directory
|
||||
rm: cannot remove `/var/log/Xorg.*.log.old': No such file or directory
|
||||
Removing xfonts-base ...
|
||||
Purging configuration files for xfonts-base ...
|
||||
warning: /usr/share/fonts/X11/misc does not exist or is not a directory
|
||||
warning: /usr/share/fonts/X11/misc does not exist or is not a directory
|
||||
Removing xfonts-utils ...
|
||||
Purging configuration files for xfonts-utils ...
|
||||
Removing libxfont1 ...
|
||||
Purging configuration files for libxfont1 ...
|
||||
Removing libfontenc1 ...
|
||||
Purging configuration files for libfontenc1 ...
|
||||
Removing libgl1-mesa-dri ...
|
||||
Removing libllvm3.0 ...
|
||||
Purging configuration files for libllvm3.0 ...
|
||||
Removing ntp ...
|
||||
* Stopping NTP server ntpd [252G ␍[246G[ OK ]
|
||||
Purging configuration files for ntp ...
|
||||
Removing libopts25 ...
|
||||
Purging configuration files for libopts25 ...
|
||||
Removing libxcomposite1 ...
|
||||
Purging configuration files for libxcomposite1 ...
|
||||
Removing libxdamage1 ...
|
||||
Purging configuration files for libxdamage1 ...
|
||||
Removing libxfixes3 ...
|
||||
Purging configuration files for libxfixes3 ...
|
||||
Removing xserver-common ...
|
||||
Removing x11-xkb-utils ...
|
||||
Removing libxkbfile1 ...
|
||||
Purging configuration files for libxkbfile1 ...
|
||||
Removing libxrandr2 ...
|
||||
Purging configuration files for libxrandr2 ...
|
||||
Removing xfonts-encodings ...
|
||||
Processing triggers for man-db ...
|
||||
Processing triggers for fontconfig ...
|
||||
Processing triggers for libc-bin ...
|
||||
ldconfig deferred processing now taking place
|
||||
Processing triggers for ureadahead ...
|
||||
|
||||
|
||||
RESULTS: 12 tests passed. 1 tests failed. 13 tests total.
|
||||
Execution completed in 30 second(s)...
|
||||
|
||||
Unit Tests failed.
|
||||
@@ -1,214 +0,0 @@
|
||||
[H[2J
|
||||
unit-tests.sh:
|
||||
|
||||
Test Setup
|
||||
Adding user `testuser3' ...
|
||||
Adding new group `testuser3' (1002) ...
|
||||
Adding new user `testuser3' (1002) with group `testuser3' ...
|
||||
Creating home directory `/home/testuser3' ...
|
||||
Copying files from `/etc/skel' ...
|
||||
testuser3 ALL=(ALL) NOPASSWD: ALL
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBGTO0tsVejssuaYR5R3Y/i73SppJAhme1dH7W2c47d4gOqB4izP0+fRLfvbz/tnXFz4iOP/H6eCV05hqUhF+KYRxt9Y8tVMrpDZR2l75o6+xSbUOMu6xN+uVF0T9XzKcxmzTmnV7Na5up3QM3DoSRYX/EP3utr2+zAqpJIfKPLdA74w7g56oYWI9blpnpzxkEd3edVJOivUkpZ4JoenWManvIaSdMTJXMy3MtlQhva+j9CgguyVbUkdzK9KKEuah+pFZvaugtebsU+bllPTB0nlXGIJk98Ie9ZtxuY3nCKneB+KjKiXrAvXUPCI9mWkYS/1rggpFmu3HbXBnWSUdf [email protected]
|
||||
Rules updated
|
||||
Rules updated (v6)
|
||||
Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup
|
||||
Setting up swapspace version 1, size = 2097148 KiB
|
||||
no label, UUID=08d44c74-226f-45cd-bbf5-38655c1548db
|
||||
vm.swappiness = 10
|
||||
vm.vfs_cache_pressure = 50
|
||||
vm.swappiness = 60
|
||||
vm.vfs_cache_pressure = 100
|
||||
America/New_York
|
||||
|
||||
Current default time zone: 'America/New_York'
|
||||
Local time is now: Tue Nov 29 07:00:42 EST 2016.
|
||||
Universal Time is now: Tue Nov 29 12:00:42 UTC 2016.
|
||||
|
||||
Etc/UTC
|
||||
|
||||
Current default time zone: 'Etc/UTC'
|
||||
Local time is now: Tue Nov 29 12:00:43 UTC 2016.
|
||||
Universal Time is now: Tue Nov 29 12:00:43 UTC 2016.
|
||||
|
||||
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
|
||||
Hit http://archive.ubuntu.com precise Release.gpg
|
||||
Get:2 http://security.ubuntu.com precise-security Release [55.5 kB]
|
||||
Get:3 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
|
||||
Hit http://archive.ubuntu.com precise-backports Release.gpg
|
||||
Hit http://archive.ubuntu.com precise Release
|
||||
Get:4 http://archive.ubuntu.com precise-updates Release [55.4 kB]
|
||||
Get:5 http://security.ubuntu.com precise-security/main Sources [146 kB]
|
||||
Get:6 http://security.ubuntu.com precise-security/universe Sources [53.7 kB]
|
||||
Hit http://archive.ubuntu.com precise-backports Release
|
||||
Get:7 http://security.ubuntu.com precise-security/main amd64 Packages [650 kB]
|
||||
Get:8 http://archive.ubuntu.com precise/main Sources [934 kB]
|
||||
Get:9 http://security.ubuntu.com precise-security/universe amd64 Packages [139 kB]
|
||||
Get:10 http://security.ubuntu.com precise-security/main i386 Packages [722 kB]
|
||||
Get:11 http://security.ubuntu.com precise-security/universe i386 Packages [147 kB]
|
||||
Get:12 http://archive.ubuntu.com precise/restricted Sources [5,470 B]
|
||||
Get:13 http://security.ubuntu.com precise-security/main TranslationIndex [208 B]
|
||||
Get:14 http://archive.ubuntu.com precise/universe Sources [5,019 kB]
|
||||
Get:15 http://security.ubuntu.com precise-security/universe TranslationIndex [205 B]
|
||||
Get:16 http://security.ubuntu.com precise-security/main Translation-en [266 kB]
|
||||
Get:17 http://security.ubuntu.com precise-security/universe Translation-en [89.0 kB]
|
||||
Get:18 http://archive.ubuntu.com precise/multiverse Sources [155 kB]
|
||||
Hit http://archive.ubuntu.com precise/main amd64 Packages
|
||||
Hit http://archive.ubuntu.com precise/restricted amd64 Packages
|
||||
Hit http://archive.ubuntu.com precise/universe amd64 Packages
|
||||
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
|
||||
Hit http://archive.ubuntu.com precise/main i386 Packages
|
||||
Hit http://archive.ubuntu.com precise/restricted i386 Packages
|
||||
Hit http://archive.ubuntu.com precise/universe i386 Packages
|
||||
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
|
||||
Hit http://archive.ubuntu.com precise/main TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise/universe TranslationIndex
|
||||
Get:19 http://archive.ubuntu.com precise-updates/main Sources [499 kB]
|
||||
Get:20 http://archive.ubuntu.com precise-updates/restricted Sources [8,840 B]
|
||||
Get:21 http://archive.ubuntu.com precise-updates/universe Sources [132 kB]
|
||||
Get:22 http://archive.ubuntu.com precise-updates/multiverse Sources [10.5 kB]
|
||||
Get:23 http://archive.ubuntu.com precise-updates/main amd64 Packages [1,032 kB]
|
||||
Get:24 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [15.4 kB]
|
||||
Get:25 http://archive.ubuntu.com precise-updates/universe amd64 Packages [283 kB]
|
||||
Get:26 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [17.1 kB]
|
||||
Get:27 http://archive.ubuntu.com precise-updates/main i386 Packages [1,103 kB]
|
||||
Get:28 http://archive.ubuntu.com precise-updates/restricted i386 Packages [15.4 kB]
|
||||
Get:29 http://archive.ubuntu.com precise-updates/universe i386 Packages [292 kB]
|
||||
Get:30 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [17.3 kB]
|
||||
Get:31 http://archive.ubuntu.com precise-updates/main TranslationIndex [208 B]
|
||||
Get:32 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [202 B]
|
||||
Get:33 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [202 B]
|
||||
Get:34 http://archive.ubuntu.com precise-updates/universe TranslationIndex [205 B]
|
||||
Get:35 http://archive.ubuntu.com precise-backports/main Sources [5,922 B]
|
||||
Get:36 http://archive.ubuntu.com precise-backports/restricted Sources [28 B]
|
||||
Get:37 http://archive.ubuntu.com precise-backports/universe Sources [44.2 kB]
|
||||
Get:38 http://archive.ubuntu.com precise-backports/multiverse Sources [5,750 B]
|
||||
Hit http://archive.ubuntu.com precise-backports/main amd64 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/restricted amd64 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/universe amd64 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/multiverse amd64 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/main i386 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages
|
||||
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
|
||||
Hit http://archive.ubuntu.com precise/main Translation-en
|
||||
Hit http://archive.ubuntu.com precise/multiverse Translation-en
|
||||
Hit http://archive.ubuntu.com precise/restricted Translation-en
|
||||
Hit http://archive.ubuntu.com precise/universe Translation-en
|
||||
Get:39 http://archive.ubuntu.com precise-updates/main Translation-en [428 kB]
|
||||
Get:40 http://archive.ubuntu.com precise-updates/multiverse Translation-en [10.1 kB]
|
||||
Get:41 http://archive.ubuntu.com precise-updates/restricted Translation-en [3,682 B]
|
||||
Get:42 http://archive.ubuntu.com precise-updates/universe Translation-en [170 kB]
|
||||
Hit http://archive.ubuntu.com precise-backports/main Translation-en
|
||||
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
|
||||
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
|
||||
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
|
||||
Fetched 12.5 MB in 18s (678 kB/s)
|
||||
Reading package lists...
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following packages were automatically installed and are no longer required:
|
||||
libxfixes3 libxcomposite1 xfonts-encodings x11-xkb-utils xserver-xorg-core
|
||||
xserver-common libgl1-mesa-dri xfonts-utils libxfont1 xfonts-base
|
||||
libfontenc1 libxdamage1 libxrandr2 libxkbfile1 libllvm3.0
|
||||
Use 'apt-get autoremove' to remove them.
|
||||
The following extra packages will be installed:
|
||||
libopts25
|
||||
Suggested packages:
|
||||
ntp-doc
|
||||
The following NEW packages will be installed:
|
||||
libopts25 ntp
|
||||
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
|
||||
Need to get 676 kB of archives.
|
||||
After this operation, 1,714 kB of additional disk space will be used.
|
||||
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main libopts25 amd64 1:5.12-0.1ubuntu1 [59.9 kB]
|
||||
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main ntp amd64 1:4.2.6.p3+dfsg-1ubuntu3.11 [617 kB]
|
||||
Fetched 676 kB in 1s (406 kB/s)
|
||||
Selecting previously unselected package libopts25.
|
||||
(Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 65970 files and directories currently installed.)
|
||||
Unpacking libopts25 (from .../libopts25_1%3a5.12-0.1ubuntu1_amd64.deb) ...
|
||||
Selecting previously unselected package ntp.
|
||||
Unpacking ntp (from .../ntp_1%3a4.2.6.p3+dfsg-1ubuntu3.11_amd64.deb) ...
|
||||
Processing triggers for man-db ...
|
||||
Processing triggers for ureadahead ...
|
||||
Setting up libopts25 (1:5.12-0.1ubuntu1) ...
|
||||
Setting up ntp (1:4.2.6.p3+dfsg-1ubuntu3.11) ...
|
||||
* Starting NTP server ntpd [252G ␍[246G[ OK ]
|
||||
Processing triggers for libc-bin ...
|
||||
ldconfig deferred processing now taking place
|
||||
unit-tests.sh: line 88: timedatectl: command not found
|
||||
Line 88: testNTP: assertContains() failed. Expected "" to contain "NTP synchronized: yes"..
|
||||
Test Teardown
|
||||
Removing user `testuser3' from group `sudo' ...
|
||||
Done.
|
||||
Looking for files to backup/remove ...
|
||||
Removing files ...
|
||||
Removing user `testuser3' ...
|
||||
Warning: group `testuser3' has no more members.
|
||||
Done.
|
||||
Rule deleted
|
||||
Rule deleted (v6)
|
||||
Firewall stopped and disabled on system startup
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following packages will be REMOVED:
|
||||
libfontenc1* libgl1-mesa-dri* libllvm3.0* libopts25* libxcomposite1*
|
||||
libxdamage1* libxfixes3* libxfont1* libxkbfile1* libxrandr2* ntp*
|
||||
x11-xkb-utils* xfonts-base* xfonts-encodings* xfonts-utils* xserver-common*
|
||||
xserver-xorg-core*
|
||||
0 upgraded, 0 newly installed, 17 to remove and 4 not upgraded.
|
||||
After this operation, 57.0 MB disk space will be freed.
|
||||
(Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 66015 files and directories currently installed.)
|
||||
Removing xserver-xorg-core ...
|
||||
Purging configuration files for xserver-xorg-core ...
|
||||
rm: cannot remove `/var/log/Xorg.*.log': No such file or directory
|
||||
rm: cannot remove `/var/log/Xorg.*.log.old': No such file or directory
|
||||
Removing xfonts-base ...
|
||||
Purging configuration files for xfonts-base ...
|
||||
warning: /usr/share/fonts/X11/misc does not exist or is not a directory
|
||||
warning: /usr/share/fonts/X11/misc does not exist or is not a directory
|
||||
Removing xfonts-utils ...
|
||||
Purging configuration files for xfonts-utils ...
|
||||
Removing libxfont1 ...
|
||||
Purging configuration files for libxfont1 ...
|
||||
Removing libfontenc1 ...
|
||||
Purging configuration files for libfontenc1 ...
|
||||
Removing libgl1-mesa-dri ...
|
||||
Removing libllvm3.0 ...
|
||||
Purging configuration files for libllvm3.0 ...
|
||||
Removing ntp ...
|
||||
* Stopping NTP server ntpd [252G ␍[246G[ OK ]
|
||||
Purging configuration files for ntp ...
|
||||
Removing libopts25 ...
|
||||
Purging configuration files for libopts25 ...
|
||||
Removing libxcomposite1 ...
|
||||
Purging configuration files for libxcomposite1 ...
|
||||
Removing libxdamage1 ...
|
||||
Purging configuration files for libxdamage1 ...
|
||||
Removing libxfixes3 ...
|
||||
Purging configuration files for libxfixes3 ...
|
||||
Removing xserver-common ...
|
||||
Removing x11-xkb-utils ...
|
||||
Removing libxkbfile1 ...
|
||||
Purging configuration files for libxkbfile1 ...
|
||||
Removing libxrandr2 ...
|
||||
Purging configuration files for libxrandr2 ...
|
||||
Removing xfonts-encodings ...
|
||||
Processing triggers for man-db ...
|
||||
Processing triggers for fontconfig ...
|
||||
Processing triggers for libc-bin ...
|
||||
ldconfig deferred processing now taking place
|
||||
Processing triggers for ureadahead ...
|
||||
|
||||
|
||||
RESULTS: 12 tests passed. 1 tests failed. 13 tests total.
|
||||
Execution completed in 33 second(s)...
|
||||
|
||||
Unit Tests failed.
|
||||
@@ -1,425 +0,0 @@
|
||||
[H[2J
|
||||
unit-tests.sh:
|
||||
|
||||
Test Setup
|
||||
Adding user `testuser3' ...
|
||||
Adding new group `testuser3' (1002) ...
|
||||
Adding new user `testuser3' (1002) with group `testuser3' ...
|
||||
Creating home directory `/home/testuser3' ...
|
||||
Copying files from `/etc/skel' ...
|
||||
testuser3 ALL=(ALL) NOPASSWD: ALL
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBGTO0tsVejssuaYR5R3Y/i73SppJAhme1dH7W2c47d4gOqB4izP0+fRLfvbz/tnXFz4iOP/H6eCV05hqUhF+KYRxt9Y8tVMrpDZR2l75o6+xSbUOMu6xN+uVF0T9XzKcxmzTmnV7Na5up3QM3DoSRYX/EP3utr2+zAqpJIfKPLdA74w7g56oYWI9blpnpzxkEd3edVJOivUkpZ4JoenWManvIaSdMTJXMy3MtlQhva+j9CgguyVbUkdzK9KKEuah+pFZvaugtebsU+bllPTB0nlXGIJk98Ie9ZtxuY3nCKneB+KjKiXrAvXUPCI9mWkYS/1rggpFmu3HbXBnWSUdf [email protected]
|
||||
Rules updated
|
||||
Rules updated (v6)
|
||||
Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup
|
||||
Setting up swapspace version 1, size = 2097148 KiB
|
||||
no label, UUID=4ebb94cc-075f-41c4-a49a-ab492a555a32
|
||||
vm.swappiness = 10
|
||||
vm.vfs_cache_pressure = 50
|
||||
vm.swappiness = 60
|
||||
vm.vfs_cache_pressure = 100
|
||||
America/New_York
|
||||
|
||||
Current default time zone: 'America/New_York'
|
||||
Local time is now: Tue Nov 29 07:05:33 EST 2016.
|
||||
Universal Time is now: Tue Nov 29 12:05:33 UTC 2016.
|
||||
|
||||
Etc/UTC
|
||||
|
||||
Current default time zone: 'Etc/UTC'
|
||||
Local time is now: Tue Nov 29 12:05:33 UTC 2016.
|
||||
Universal Time is now: Tue Nov 29 12:05:33 UTC 2016.
|
||||
|
||||
Ign http://archive.ubuntu.com trusty InRelease
|
||||
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
|
||||
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
|
||||
Get:3 http://security.ubuntu.com trusty-security/main Sources [123 kB]
|
||||
Hit http://archive.ubuntu.com trusty-backports InRelease
|
||||
Hit http://archive.ubuntu.com trusty Release.gpg
|
||||
Get:4 http://security.ubuntu.com trusty-security/universe Sources [45.8 kB]
|
||||
Get:5 http://archive.ubuntu.com trusty-updates/main Sources [386 kB]
|
||||
Get:6 http://security.ubuntu.com trusty-security/main i386 Packages [516 kB]
|
||||
Get:7 http://security.ubuntu.com trusty-security/universe i386 Packages [145 kB]
|
||||
Get:8 http://archive.ubuntu.com trusty-updates/restricted Sources [5,888 B]
|
||||
Get:9 http://security.ubuntu.com trusty-security/main Translation-en [304 kB]
|
||||
Get:10 http://archive.ubuntu.com trusty-updates/universe Sources [169 kB]
|
||||
Get:11 http://archive.ubuntu.com trusty-updates/multiverse Sources [7,522 B]
|
||||
Get:12 http://security.ubuntu.com trusty-security/universe Translation-en [85.3 kB]
|
||||
Get:13 http://archive.ubuntu.com trusty-updates/main i386 Packages [881 kB]
|
||||
Get:14 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [16.2 kB]
|
||||
Get:15 http://archive.ubuntu.com trusty-updates/universe i386 Packages [390 kB]
|
||||
Get:16 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [14.5 kB]
|
||||
Get:17 http://archive.ubuntu.com trusty-updates/main Translation-en [446 kB]
|
||||
Get:18 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7,340 B]
|
||||
Get:19 http://archive.ubuntu.com trusty-updates/restricted Translation-en [3,842 B]
|
||||
Get:20 http://archive.ubuntu.com trusty-updates/universe Translation-en [206 kB]
|
||||
Get:21 http://archive.ubuntu.com trusty-backports/main Sources [9,632 B]
|
||||
Get:22 http://archive.ubuntu.com trusty-backports/restricted Sources [28 B]
|
||||
Get:23 http://archive.ubuntu.com trusty-backports/universe Sources [35.2 kB]
|
||||
Get:24 http://archive.ubuntu.com trusty-backports/multiverse Sources [1,898 B]
|
||||
Hit http://archive.ubuntu.com trusty-backports/main i386 Packages
|
||||
Hit http://archive.ubuntu.com trusty-backports/restricted i386 Packages
|
||||
Hit http://archive.ubuntu.com trusty-backports/universe i386 Packages
|
||||
Hit http://archive.ubuntu.com trusty-backports/multiverse i386 Packages
|
||||
Hit http://archive.ubuntu.com trusty-backports/main Translation-en
|
||||
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en
|
||||
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en
|
||||
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en
|
||||
Hit http://archive.ubuntu.com trusty Release
|
||||
Get:25 http://archive.ubuntu.com trusty/main Sources [1,064 kB]
|
||||
Get:26 http://archive.ubuntu.com trusty/restricted Sources [5,433 B]
|
||||
Get:27 http://archive.ubuntu.com trusty/universe Sources [6,399 kB]
|
||||
Get:28 http://archive.ubuntu.com trusty/multiverse Sources [174 kB]
|
||||
Hit http://archive.ubuntu.com trusty/main i386 Packages
|
||||
Hit http://archive.ubuntu.com trusty/restricted i386 Packages
|
||||
Hit http://archive.ubuntu.com trusty/universe i386 Packages
|
||||
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
|
||||
Hit http://archive.ubuntu.com trusty/main Translation-en
|
||||
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
|
||||
Hit http://archive.ubuntu.com trusty/restricted Translation-en
|
||||
Hit http://archive.ubuntu.com trusty/universe Translation-en
|
||||
Ign http://archive.ubuntu.com trusty/main Translation-en_US
|
||||
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
|
||||
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
|
||||
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
|
||||
Fetched 11.6 MB in 15s (756 kB/s)
|
||||
Reading package lists...
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following packages were automatically installed and are no longer required:
|
||||
acl at-spi2-core colord dconf-gsettings-backend dconf-service fontconfig
|
||||
fontconfig-config fonts-dejavu-core hicolor-icon-theme libasound2
|
||||
libasound2-data libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0
|
||||
libavahi-client3 libavahi-common-data libavahi-common3 libcairo-gobject2
|
||||
libcairo2 libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra0 libcolord1
|
||||
libcolorhug1 libcups2 libdatrie1 libdconf1 libdrm-intel1 libdrm-nouveau2
|
||||
libdrm-radeon1 libexif12 libfontconfig1 libfontenc1 libgd3
|
||||
libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx
|
||||
libglapi-mesa libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgraphite2-3
|
||||
libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libgusb2
|
||||
libharfbuzz0b libice6 libieee1284-3 libjasper1 libjbig0 libjpeg-turbo8
|
||||
libjpeg8 liblcms2-2 libllvm3.4 libltdl7 libnotify-bin libnotify4 libogg0
|
||||
libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0
|
||||
libpixman-1-0 libsane libsane-common libsm6 libtdb1 libthai-data libthai0
|
||||
libtiff5 libtxc-dxtn-s2tc0 libv4l-0 libv4lconvert0 libvorbis0a
|
||||
libvorbisfile3 libvpx1 libwayland-client0 libwayland-cursor0 libx11-xcb1
|
||||
libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
|
||||
libxcb-render0 libxcb-shm0 libxcb-sync1 libxcomposite1 libxcursor1
|
||||
libxdamage1 libxfixes3 libxfont1 libxi6 libxinerama1 libxkbcommon0
|
||||
libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6
|
||||
libxtst6 libxxf86vm1 notification-daemon sound-theme-freedesktop x11-common
|
||||
x11-xkb-utils xfonts-base xfonts-encodings xfonts-utils xserver-common
|
||||
xserver-xorg-core
|
||||
Use 'apt-get autoremove' to remove them.
|
||||
The following extra packages will be installed:
|
||||
libopts25
|
||||
Suggested packages:
|
||||
ntp-doc
|
||||
The following NEW packages will be installed:
|
||||
libopts25 ntp
|
||||
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
|
||||
Need to get 456 kB of archives.
|
||||
After this operation, 1,608 kB of additional disk space will be used.
|
||||
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libopts25 i386 1:5.18-2ubuntu2 [53.9 kB]
|
||||
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ntp i386 1:4.2.6.p5+dfsg-3ubuntu2.14.04.10 [402 kB]
|
||||
Fetched 456 kB in 2s (221 kB/s)
|
||||
Selecting previously unselected package libopts25:i386.
|
||||
(Reading database ... 62828 files and directories currently installed.)
|
||||
Preparing to unpack .../libopts25_1%3a5.18-2ubuntu2_i386.deb ...
|
||||
Unpacking libopts25:i386 (1:5.18-2ubuntu2) ...
|
||||
Selecting previously unselected package ntp.
|
||||
Preparing to unpack .../ntp_1%3a4.2.6.p5+dfsg-3ubuntu2.14.04.10_i386.deb ...
|
||||
Unpacking ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.10) ...
|
||||
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
|
||||
Processing triggers for ureadahead (0.100.0-16) ...
|
||||
Setting up libopts25:i386 (1:5.18-2ubuntu2) ...
|
||||
Setting up ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.10) ...
|
||||
* Starting NTP server ntpd
|
||||
...done.
|
||||
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
|
||||
Processing triggers for ureadahead (0.100.0-16) ...
|
||||
Test Teardown
|
||||
Removing user `testuser3' from group `sudo' ...
|
||||
Done.
|
||||
Looking for files to backup/remove ...
|
||||
Removing files ...
|
||||
Removing user `testuser3' ...
|
||||
Warning: group `testuser3' has no more members.
|
||||
Done.
|
||||
Rule deleted
|
||||
Rule deleted (v6)
|
||||
Firewall stopped and disabled on system startup
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following packages will be REMOVED:
|
||||
acl* at-spi2-core* colord* dconf-gsettings-backend* dconf-service*
|
||||
fontconfig* fontconfig-config* fonts-dejavu-core* hicolor-icon-theme*
|
||||
libasound2* libasound2-data* libatk-bridge2.0-0* libatk1.0-0*
|
||||
libatk1.0-data* libatspi2.0-0* libavahi-client3* libavahi-common-data*
|
||||
libavahi-common3* libcairo-gobject2* libcairo2* libcanberra-gtk3-0*
|
||||
libcanberra-gtk3-module* libcanberra0* libcolord1* libcolorhug1* libcups2*
|
||||
libdatrie1* libdconf1* libdrm-intel1* libdrm-nouveau2* libdrm-radeon1*
|
||||
libexif12* libfontconfig1* libfontenc1* libgd3* libgdk-pixbuf2.0-0*
|
||||
libgdk-pixbuf2.0-common* libgl1-mesa-dri* libgl1-mesa-glx* libglapi-mesa*
|
||||
libgphoto2-6* libgphoto2-l10n* libgphoto2-port10* libgraphite2-3*
|
||||
libgtk-3-0* libgtk-3-bin* libgtk-3-common* libgudev-1.0-0* libgusb2*
|
||||
libharfbuzz0b* libice6* libieee1284-3* libjasper1* libjbig0* libjpeg-turbo8*
|
||||
libjpeg8* liblcms2-2* libllvm3.4* libltdl7* libnotify-bin* libnotify4*
|
||||
libogg0* libopts25* libpango-1.0-0* libpangocairo-1.0-0* libpangoft2-1.0-0*
|
||||
libpciaccess0* libpixman-1-0* libsane* libsane-common* libsm6* libtdb1*
|
||||
libthai-data* libthai0* libtiff5* libtxc-dxtn-s2tc0* libv4l-0*
|
||||
libv4lconvert0* libvorbis0a* libvorbisfile3* libvpx1* libwayland-client0*
|
||||
libwayland-cursor0* libx11-xcb1* libxaw7* libxcb-dri2-0* libxcb-dri3-0*
|
||||
libxcb-glx0* libxcb-present0* libxcb-render0* libxcb-shm0* libxcb-sync1*
|
||||
libxcomposite1* libxcursor1* libxdamage1* libxfixes3* libxfont1* libxi6*
|
||||
libxinerama1* libxkbcommon0* libxkbfile1* libxmu6* libxpm4* libxrandr2*
|
||||
libxrender1* libxshmfence1* libxt6* libxtst6* libxxf86vm1*
|
||||
notification-daemon* ntp* sound-theme-freedesktop* x11-common*
|
||||
x11-xkb-utils* xfonts-base* xfonts-encodings* xfonts-utils* xserver-common*
|
||||
xserver-xorg-core*
|
||||
0 upgraded, 0 newly installed, 119 to remove and 4 not upgraded.
|
||||
After this operation, 131 MB disk space will be freed.
|
||||
(Reading database ... 62871 files and directories currently installed.)
|
||||
Removing colord (1.0.6-1) ...
|
||||
Purging configuration files for colord (1.0.6-1) ...
|
||||
Removing libsane:i386 (1.0.23-3ubuntu3.1) ...
|
||||
Purging configuration files for libsane:i386 (1.0.23-3ubuntu3.1) ...
|
||||
Removing directory /etc/sane.d/ ...
|
||||
Removing acl (2.2.52-1) ...
|
||||
Removing at-spi2-core (2.10.2.is.2.10.1-0ubuntu1) ...
|
||||
Purging configuration files for at-spi2-core (2.10.2.is.2.10.1-0ubuntu1) ...
|
||||
Removing libgtk-3-bin (3.10.8-0ubuntu1.6) ...
|
||||
Removing 'diversion of /usr/sbin/update-icon-caches to /usr/sbin/update-icon-caches.gtk2 by libgtk-3-bin'
|
||||
Removing 'diversion of /usr/share/man/man8/update-icon-caches.8.gz to /usr/share/man/man8/update-icon-caches.gtk2.8.gz by libgtk-3-bin'
|
||||
Purging configuration files for libgtk-3-bin (3.10.8-0ubuntu1.6) ...
|
||||
Removing notification-daemon (0.7.6-1) ...
|
||||
Purging configuration files for notification-daemon (0.7.6-1) ...
|
||||
Removing libgphoto2-6:i386 (2.5.3.1-1ubuntu2.2) ...
|
||||
Purging configuration files for libgphoto2-6:i386 (2.5.3.1-1ubuntu2.2) ...
|
||||
Removing libgd3:i386 (2.1.0-3ubuntu0.5) ...
|
||||
Purging configuration files for libgd3:i386 (2.1.0-3ubuntu0.5) ...
|
||||
Removing hicolor-icon-theme (0.13-1) ...
|
||||
Removing libcanberra-gtk3-module:i386 (0.30-0ubuntu3) ...
|
||||
Removing libcanberra-gtk3-0:i386 (0.30-0ubuntu3) ...
|
||||
Purging configuration files for libcanberra-gtk3-0:i386 (0.30-0ubuntu3) ...
|
||||
Removing libcanberra0:i386 (0.30-0ubuntu3) ...
|
||||
Purging configuration files for libcanberra0:i386 (0.30-0ubuntu3) ...
|
||||
Removing libasound2:i386 (1.0.27.2-3ubuntu7) ...
|
||||
Purging configuration files for libasound2:i386 (1.0.27.2-3ubuntu7) ...
|
||||
Removing libasound2-data (1.0.27.2-3ubuntu7) ...
|
||||
Removing libcolorhug1:i386 (1.0.6-1) ...
|
||||
Purging configuration files for libcolorhug1:i386 (1.0.6-1) ...
|
||||
Removing libgl1-mesa-dri:i386 (10.1.3-0ubuntu0.6) ...
|
||||
Purging configuration files for libgl1-mesa-dri:i386 (10.1.3-0ubuntu0.6) ...
|
||||
Removing libdrm-intel1:i386 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libdrm-intel1:i386 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Removing libdrm-nouveau2:i386 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libdrm-nouveau2:i386 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Removing libdrm-radeon1:i386 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libdrm-radeon1:i386 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Removing libexif12:i386 (0.6.21-1ubuntu1) ...
|
||||
Purging configuration files for libexif12:i386 (0.6.21-1ubuntu1) ...
|
||||
Removing xserver-xorg-core (2:1.15.1-0ubuntu2.7) ...
|
||||
Purging configuration files for xserver-xorg-core (2:1.15.1-0ubuntu2.7) ...
|
||||
rm: cannot remove ‘/var/log/Xorg.*.log’: No such file or directory
|
||||
rm: cannot remove ‘/var/log/Xorg.*.log.old’: No such file or directory
|
||||
Removing xfonts-base (1:1.0.3) ...
|
||||
Purging configuration files for xfonts-base (1:1.0.3) ...
|
||||
warning: /usr/share/fonts/X11/misc does not exist or is not a directory
|
||||
warning: /usr/share/fonts/X11/misc does not exist or is not a directory
|
||||
Removing xfonts-utils (1:7.7+1) ...
|
||||
Purging configuration files for xfonts-utils (1:7.7+1) ...
|
||||
Removing libxfont1:i386 (1:1.4.7-1ubuntu0.2) ...
|
||||
Purging configuration files for libxfont1:i386 (1:1.4.7-1ubuntu0.2) ...
|
||||
Removing libfontenc1:i386 (1:1.1.2-1) ...
|
||||
Purging configuration files for libfontenc1:i386 (1:1.1.2-1) ...
|
||||
Removing libnotify-bin (0.7.6-1ubuntu3) ...
|
||||
Removing libnotify4:i386 (0.7.6-1ubuntu3) ...
|
||||
Purging configuration files for libnotify4:i386 (0.7.6-1ubuntu3) ...
|
||||
Removing libgl1-mesa-glx:i386 (10.1.3-0ubuntu0.6) ...
|
||||
Purging configuration files for libgl1-mesa-glx:i386 (10.1.3-0ubuntu0.6) ...
|
||||
Removing libglapi-mesa:i386 (10.1.3-0ubuntu0.6) ...
|
||||
Purging configuration files for libglapi-mesa:i386 (10.1.3-0ubuntu0.6) ...
|
||||
Removing libgphoto2-l10n (2.5.3.1-1ubuntu2.2) ...
|
||||
Removing libgphoto2-port10:i386 (2.5.3.1-1ubuntu2.2) ...
|
||||
Purging configuration files for libgphoto2-port10:i386 (2.5.3.1-1ubuntu2.2) ...
|
||||
Removing libgusb2:i386 (0.1.6-5) ...
|
||||
Purging configuration files for libgusb2:i386 (0.1.6-5) ...
|
||||
Removing libgudev-1.0-0:i386 (1:204-5ubuntu20.19) ...
|
||||
Purging configuration files for libgudev-1.0-0:i386 (1:204-5ubuntu20.19) ...
|
||||
Removing xserver-common (2:1.15.1-0ubuntu2.7) ...
|
||||
Removing x11-xkb-utils (7.7+1) ...
|
||||
Removing libxaw7:i386 (2:1.0.12-1) ...
|
||||
Purging configuration files for libxaw7:i386 (2:1.0.12-1) ...
|
||||
Removing libxmu6:i386 (2:1.1.1-1) ...
|
||||
Purging configuration files for libxmu6:i386 (2:1.1.1-1) ...
|
||||
Removing libxt6:i386 (1:1.1.4-1) ...
|
||||
Purging configuration files for libxt6:i386 (1:1.1.4-1) ...
|
||||
Removing libsm6:i386 (2:1.2.1-2) ...
|
||||
Purging configuration files for libsm6:i386 (2:1.2.1-2) ...
|
||||
Removing libice6:i386 (2:1.0.8-2) ...
|
||||
Purging configuration files for libice6:i386 (2:1.0.8-2) ...
|
||||
Removing libieee1284-3:i386 (0.2.11-12) ...
|
||||
Purging configuration files for libieee1284-3:i386 (0.2.11-12) ...
|
||||
Removing libv4l-0:i386 (1.0.1-1) ...
|
||||
Purging configuration files for libv4l-0:i386 (1.0.1-1) ...
|
||||
Removing libv4lconvert0:i386 (1.0.1-1) ...
|
||||
Purging configuration files for libv4lconvert0:i386 (1.0.1-1) ...
|
||||
Removing libllvm3.4:i386 (1:3.4-1ubuntu3) ...
|
||||
Purging configuration files for libllvm3.4:i386 (1:3.4-1ubuntu3) ...
|
||||
Removing libltdl7:i386 (2.4.2-1.7ubuntu1) ...
|
||||
Purging configuration files for libltdl7:i386 (2.4.2-1.7ubuntu1) ...
|
||||
Removing libvorbisfile3:i386 (1.3.2-1.3ubuntu1) ...
|
||||
Purging configuration files for libvorbisfile3:i386 (1.3.2-1.3ubuntu1) ...
|
||||
Removing libvorbis0a:i386 (1.3.2-1.3ubuntu1) ...
|
||||
Purging configuration files for libvorbis0a:i386 (1.3.2-1.3ubuntu1) ...
|
||||
Removing libogg0:i386 (1.3.1-1ubuntu1) ...
|
||||
Purging configuration files for libogg0:i386 (1.3.1-1ubuntu1) ...
|
||||
Removing ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.10) ...
|
||||
* Stopping NTP server ntpd
|
||||
...done.
|
||||
Purging configuration files for ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.10) ...
|
||||
Removing libopts25:i386 (1:5.18-2ubuntu2) ...
|
||||
Purging configuration files for libopts25:i386 (1:5.18-2ubuntu2) ...
|
||||
Removing libpciaccess0:i386 (0.13.2-1) ...
|
||||
Purging configuration files for libpciaccess0:i386 (0.13.2-1) ...
|
||||
Removing libsane-common (1.0.23-3ubuntu3.1) ...
|
||||
Removing libtdb1:i386 (1.3.8-0ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libtdb1:i386 (1.3.8-0ubuntu0.14.04.1) ...
|
||||
Removing libtxc-dxtn-s2tc0:i386 (0~git20131104-1.1) ...
|
||||
Purging configuration files for libtxc-dxtn-s2tc0:i386 (0~git20131104-1.1) ...
|
||||
Removing libvpx1:i386 (1.3.0-2) ...
|
||||
Purging configuration files for libvpx1:i386 (1.3.0-2) ...
|
||||
Removing libx11-xcb1:i386 (2:1.6.2-1ubuntu2) ...
|
||||
Purging configuration files for libx11-xcb1:i386 (2:1.6.2-1ubuntu2) ...
|
||||
Removing libxcb-dri2-0:i386 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-dri2-0:i386 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-dri3-0:i386 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-dri3-0:i386 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-glx0:i386 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-glx0:i386 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-present0:i386 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-present0:i386 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-sync1:i386 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-sync1:i386 (1.10-2ubuntu1) ...
|
||||
Removing libxkbfile1:i386 (1:1.0.8-1) ...
|
||||
Purging configuration files for libxkbfile1:i386 (1:1.0.8-1) ...
|
||||
Removing libxpm4:i386 (1:3.5.10-1) ...
|
||||
Purging configuration files for libxpm4:i386 (1:3.5.10-1) ...
|
||||
Removing libxshmfence1:i386 (1.1-2) ...
|
||||
Purging configuration files for libxshmfence1:i386 (1.1-2) ...
|
||||
Removing libxtst6:i386 (2:1.2.2-1) ...
|
||||
Purging configuration files for libxtst6:i386 (2:1.2.2-1) ...
|
||||
Removing libxxf86vm1:i386 (1:1.1.3-1) ...
|
||||
Purging configuration files for libxxf86vm1:i386 (1:1.1.3-1) ...
|
||||
Removing sound-theme-freedesktop (0.8-1) ...
|
||||
Removing xfonts-encodings (1:1.0.4-1ubuntu1) ...
|
||||
Removing x11-common (1:7.7+1ubuntu8.1) ...
|
||||
Purging configuration files for x11-common (1:7.7+1ubuntu8.1) ...
|
||||
Removing libgtk-3-0:i386 (3.10.8-0ubuntu1.6) ...
|
||||
Purging configuration files for libgtk-3-0:i386 (3.10.8-0ubuntu1.6) ...
|
||||
Removing libgtk-3-common (3.10.8-0ubuntu1.6) ...
|
||||
Purging configuration files for libgtk-3-common (3.10.8-0ubuntu1.6) ...
|
||||
Removing dconf-gsettings-backend:i386 (0.20.0-1) ...
|
||||
Removing dconf-service (0.20.0-1) ...
|
||||
Removing libpangocairo-1.0-0:i386 (1.36.3-1ubuntu1.1) ...
|
||||
Purging configuration files for libpangocairo-1.0-0:i386 (1.36.3-1ubuntu1.1) ...
|
||||
Removing libpangoft2-1.0-0:i386 (1.36.3-1ubuntu1.1) ...
|
||||
Purging configuration files for libpangoft2-1.0-0:i386 (1.36.3-1ubuntu1.1) ...
|
||||
Removing libpango-1.0-0:i386 (1.36.3-1ubuntu1.1) ...
|
||||
Purging configuration files for libpango-1.0-0:i386 (1.36.3-1ubuntu1.1) ...
|
||||
Removing fontconfig (2.11.0-0ubuntu4.2) ...
|
||||
Purging configuration files for fontconfig (2.11.0-0ubuntu4.2) ...
|
||||
Removing libatk-bridge2.0-0:i386 (2.10.2-2ubuntu1) ...
|
||||
Purging configuration files for libatk-bridge2.0-0:i386 (2.10.2-2ubuntu1) ...
|
||||
Removing libatk1.0-0:i386 (2.10.0-2ubuntu2) ...
|
||||
Purging configuration files for libatk1.0-0:i386 (2.10.0-2ubuntu2) ...
|
||||
Removing libatk1.0-data (2.10.0-2ubuntu2) ...
|
||||
Removing libatspi2.0-0:i386 (2.10.2.is.2.10.1-0ubuntu1) ...
|
||||
Purging configuration files for libatspi2.0-0:i386 (2.10.2.is.2.10.1-0ubuntu1) ...
|
||||
Removing libcups2:i386 (1.7.2-0ubuntu1.7) ...
|
||||
Purging configuration files for libcups2:i386 (1.7.2-0ubuntu1.7) ...
|
||||
Removing libavahi-client3:i386 (0.6.31-4ubuntu1.1) ...
|
||||
Purging configuration files for libavahi-client3:i386 (0.6.31-4ubuntu1.1) ...
|
||||
Removing libavahi-common3:i386 (0.6.31-4ubuntu1.1) ...
|
||||
Purging configuration files for libavahi-common3:i386 (0.6.31-4ubuntu1.1) ...
|
||||
Removing libavahi-common-data:i386 (0.6.31-4ubuntu1.1) ...
|
||||
Removing libcairo-gobject2:i386 (1.13.0~20140204-0ubuntu1.1) ...
|
||||
Purging configuration files for libcairo-gobject2:i386 (1.13.0~20140204-0ubuntu1.1) ...
|
||||
Removing libcairo2:i386 (1.13.0~20140204-0ubuntu1.1) ...
|
||||
Purging configuration files for libcairo2:i386 (1.13.0~20140204-0ubuntu1.1) ...
|
||||
Removing libcolord1:i386 (1.0.6-1) ...
|
||||
Purging configuration files for libcolord1:i386 (1.0.6-1) ...
|
||||
Removing libthai0:i386 (0.1.20-3) ...
|
||||
Purging configuration files for libthai0:i386 (0.1.20-3) ...
|
||||
Removing libdatrie1:i386 (0.2.8-1) ...
|
||||
Purging configuration files for libdatrie1:i386 (0.2.8-1) ...
|
||||
Removing libdconf1:i386 (0.20.0-1) ...
|
||||
Purging configuration files for libdconf1:i386 (0.20.0-1) ...
|
||||
Removing libgdk-pixbuf2.0-0:i386 (2.30.7-0ubuntu1.6) ...
|
||||
Purging configuration files for libgdk-pixbuf2.0-0:i386 (2.30.7-0ubuntu1.6) ...
|
||||
Removing libgdk-pixbuf2.0-common (2.30.7-0ubuntu1.6) ...
|
||||
Removing libharfbuzz0b:i386 (0.9.27-1ubuntu1.1) ...
|
||||
Purging configuration files for libharfbuzz0b:i386 (0.9.27-1ubuntu1.1) ...
|
||||
Removing libgraphite2-3:i386 (1.3.6-1ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libgraphite2-3:i386 (1.3.6-1ubuntu0.14.04.1) ...
|
||||
Removing libjasper1:i386 (1.900.1-14ubuntu3.3) ...
|
||||
Purging configuration files for libjasper1:i386 (1.900.1-14ubuntu3.3) ...
|
||||
Removing libtiff5:i386 (4.0.3-7ubuntu0.4) ...
|
||||
Purging configuration files for libtiff5:i386 (4.0.3-7ubuntu0.4) ...
|
||||
Removing libjbig0:i386 (2.0-2ubuntu4.1) ...
|
||||
Purging configuration files for libjbig0:i386 (2.0-2ubuntu4.1) ...
|
||||
Removing libjpeg8:i386 (8c-2ubuntu8) ...
|
||||
Removing libjpeg-turbo8:i386 (1.3.0-0ubuntu2) ...
|
||||
Purging configuration files for libjpeg-turbo8:i386 (1.3.0-0ubuntu2) ...
|
||||
Removing liblcms2-2:i386 (2.5-0ubuntu4.1) ...
|
||||
Purging configuration files for liblcms2-2:i386 (2.5-0ubuntu4.1) ...
|
||||
Removing libpixman-1-0:i386 (0.30.2-2ubuntu1.1) ...
|
||||
Purging configuration files for libpixman-1-0:i386 (0.30.2-2ubuntu1.1) ...
|
||||
Removing libthai-data (0.1.20-3) ...
|
||||
Removing libwayland-cursor0:i386 (1.4.0-1ubuntu1) ...
|
||||
Purging configuration files for libwayland-cursor0:i386 (1.4.0-1ubuntu1) ...
|
||||
Removing libwayland-client0:i386 (1.4.0-1ubuntu1) ...
|
||||
Purging configuration files for libwayland-client0:i386 (1.4.0-1ubuntu1) ...
|
||||
Removing libxcb-render0:i386 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-render0:i386 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-shm0:i386 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-shm0:i386 (1.10-2ubuntu1) ...
|
||||
Removing libxcomposite1:i386 (1:0.4.4-1) ...
|
||||
Purging configuration files for libxcomposite1:i386 (1:0.4.4-1) ...
|
||||
Removing libxcursor1:i386 (1:1.1.14-1) ...
|
||||
Purging configuration files for libxcursor1:i386 (1:1.1.14-1) ...
|
||||
Removing libxdamage1:i386 (1:1.1.4-1ubuntu1) ...
|
||||
Purging configuration files for libxdamage1:i386 (1:1.1.4-1ubuntu1) ...
|
||||
Removing libxfixes3:i386 (1:5.0.1-1ubuntu1.1) ...
|
||||
Purging configuration files for libxfixes3:i386 (1:5.0.1-1ubuntu1.1) ...
|
||||
Removing libxi6:i386 (2:1.7.1.901-1ubuntu1.1) ...
|
||||
Purging configuration files for libxi6:i386 (2:1.7.1.901-1ubuntu1.1) ...
|
||||
Removing libxinerama1:i386 (2:1.1.3-1) ...
|
||||
Purging configuration files for libxinerama1:i386 (2:1.1.3-1) ...
|
||||
Removing libxkbcommon0:i386 (0.4.1-0ubuntu1) ...
|
||||
Purging configuration files for libxkbcommon0:i386 (0.4.1-0ubuntu1) ...
|
||||
Removing libxrandr2:i386 (2:1.5.0-1~trusty1) ...
|
||||
Purging configuration files for libxrandr2:i386 (2:1.5.0-1~trusty1) ...
|
||||
Removing libxrender1:i386 (1:0.9.8-1build0.14.04.1) ...
|
||||
Purging configuration files for libxrender1:i386 (1:0.9.8-1build0.14.04.1) ...
|
||||
Removing libfontconfig1:i386 (2.11.0-0ubuntu4.2) ...
|
||||
Purging configuration files for libfontconfig1:i386 (2.11.0-0ubuntu4.2) ...
|
||||
Removing fontconfig-config (2.11.0-0ubuntu4.2) ...
|
||||
Purging configuration files for fontconfig-config (2.11.0-0ubuntu4.2) ...
|
||||
Removing fonts-dejavu-core (2.34-1ubuntu1) ...
|
||||
Purging configuration files for fonts-dejavu-core (2.34-1ubuntu1) ...
|
||||
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
|
||||
Processing triggers for libglib2.0-0:i386 (2.40.2-0ubuntu1) ...
|
||||
No schema files found: removed existing output file.
|
||||
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
|
||||
Processing triggers for mime-support (3.54ubuntu1.1) ...
|
||||
Processing triggers for udev (204-5ubuntu20.19) ...
|
||||
All unit tests passed.
|
||||
|
||||
|
||||
RESULTS: 13 tests passed. 0 tests failed. 13 tests total.
|
||||
Execution completed in 28 second(s)...
|
||||
|
||||
@@ -1,425 +0,0 @@
|
||||
[H[2J
|
||||
unit-tests.sh:
|
||||
|
||||
Test Setup
|
||||
Adding user `testuser3' ...
|
||||
Adding new group `testuser3' (1002) ...
|
||||
Adding new user `testuser3' (1002) with group `testuser3' ...
|
||||
Creating home directory `/home/testuser3' ...
|
||||
Copying files from `/etc/skel' ...
|
||||
testuser3 ALL=(ALL) NOPASSWD: ALL
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBGTO0tsVejssuaYR5R3Y/i73SppJAhme1dH7W2c47d4gOqB4izP0+fRLfvbz/tnXFz4iOP/H6eCV05hqUhF+KYRxt9Y8tVMrpDZR2l75o6+xSbUOMu6xN+uVF0T9XzKcxmzTmnV7Na5up3QM3DoSRYX/EP3utr2+zAqpJIfKPLdA74w7g56oYWI9blpnpzxkEd3edVJOivUkpZ4JoenWManvIaSdMTJXMy3MtlQhva+j9CgguyVbUkdzK9KKEuah+pFZvaugtebsU+bllPTB0nlXGIJk98Ie9ZtxuY3nCKneB+KjKiXrAvXUPCI9mWkYS/1rggpFmu3HbXBnWSUdf [email protected]
|
||||
Rules updated
|
||||
Rules updated (v6)
|
||||
Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup
|
||||
Setting up swapspace version 1, size = 2097148 KiB
|
||||
no label, UUID=95127798-574c-4393-8162-6dcfa2971ae7
|
||||
vm.swappiness = 10
|
||||
vm.vfs_cache_pressure = 50
|
||||
vm.swappiness = 60
|
||||
vm.vfs_cache_pressure = 100
|
||||
America/New_York
|
||||
|
||||
Current default time zone: 'America/New_York'
|
||||
Local time is now: Tue Nov 29 07:08:20 EST 2016.
|
||||
Universal Time is now: Tue Nov 29 12:08:20 UTC 2016.
|
||||
|
||||
Etc/UTC
|
||||
|
||||
Current default time zone: 'Etc/UTC'
|
||||
Local time is now: Tue Nov 29 12:08:21 UTC 2016.
|
||||
Universal Time is now: Tue Nov 29 12:08:21 UTC 2016.
|
||||
|
||||
Ign http://archive.ubuntu.com trusty InRelease
|
||||
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
|
||||
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
|
||||
Get:3 http://archive.ubuntu.com trusty-backports InRelease [65.9 kB]
|
||||
Get:4 http://security.ubuntu.com trusty-security/main Sources [123 kB]
|
||||
Hit http://archive.ubuntu.com trusty Release.gpg
|
||||
Get:5 http://archive.ubuntu.com trusty-updates/main Sources [386 kB]
|
||||
Get:6 http://security.ubuntu.com trusty-security/universe Sources [45.8 kB]
|
||||
Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [557 kB]
|
||||
Get:8 http://archive.ubuntu.com trusty-updates/restricted Sources [5,888 B]
|
||||
Get:9 http://archive.ubuntu.com trusty-updates/universe Sources [169 kB]
|
||||
Get:10 http://archive.ubuntu.com trusty-updates/multiverse Sources [7,522 B]
|
||||
Get:11 http://archive.ubuntu.com trusty-updates/main amd64 Packages [922 kB]
|
||||
Get:12 http://security.ubuntu.com trusty-security/universe amd64 Packages [145 kB]
|
||||
Get:13 http://security.ubuntu.com trusty-security/main Translation-en [304 kB]
|
||||
Get:14 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [16.4 kB]
|
||||
Get:15 http://security.ubuntu.com trusty-security/universe Translation-en [85.3 kB]
|
||||
Get:16 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [389 kB]
|
||||
Get:17 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.0 kB]
|
||||
Get:18 http://archive.ubuntu.com trusty-updates/main Translation-en [446 kB]
|
||||
Get:19 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7,340 B]
|
||||
Get:20 http://archive.ubuntu.com trusty-updates/restricted Translation-en [3,842 B]
|
||||
Get:21 http://archive.ubuntu.com trusty-updates/universe Translation-en [206 kB]
|
||||
Get:22 http://archive.ubuntu.com trusty-backports/main Sources [9,632 B]
|
||||
Get:23 http://archive.ubuntu.com trusty-backports/restricted Sources [28 B]
|
||||
Get:24 http://archive.ubuntu.com trusty-backports/universe Sources [35.2 kB]
|
||||
Get:25 http://archive.ubuntu.com trusty-backports/multiverse Sources [1,898 B]
|
||||
Get:26 http://archive.ubuntu.com trusty-backports/main amd64 Packages [13.3 kB]
|
||||
Get:27 http://archive.ubuntu.com trusty-backports/restricted amd64 Packages [28 B]
|
||||
Get:28 http://archive.ubuntu.com trusty-backports/universe amd64 Packages [43.2 kB]
|
||||
Get:29 http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1,571 B]
|
||||
Get:30 http://archive.ubuntu.com trusty-backports/main Translation-en [7,493 B]
|
||||
Get:31 http://archive.ubuntu.com trusty-backports/multiverse Translation-en [1,215 B]
|
||||
Get:32 http://archive.ubuntu.com trusty-backports/restricted Translation-en [28 B]
|
||||
Get:33 http://archive.ubuntu.com trusty-backports/universe Translation-en [36.8 kB]
|
||||
Hit http://archive.ubuntu.com trusty Release
|
||||
Get:34 http://archive.ubuntu.com trusty/main Sources [1,064 kB]
|
||||
Get:35 http://archive.ubuntu.com trusty/restricted Sources [5,433 B]
|
||||
Get:36 http://archive.ubuntu.com trusty/universe Sources [6,399 kB]
|
||||
Get:37 http://archive.ubuntu.com trusty/multiverse Sources [174 kB]
|
||||
Hit http://archive.ubuntu.com trusty/main amd64 Packages
|
||||
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
|
||||
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
|
||||
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
|
||||
Hit http://archive.ubuntu.com trusty/main Translation-en
|
||||
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
|
||||
Hit http://archive.ubuntu.com trusty/restricted Translation-en
|
||||
Hit http://archive.ubuntu.com trusty/universe Translation-en
|
||||
Ign http://archive.ubuntu.com trusty/main Translation-en_US
|
||||
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
|
||||
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
|
||||
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
|
||||
Fetched 11.8 MB in 14s (806 kB/s)
|
||||
Reading package lists...
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following packages were automatically installed and are no longer required:
|
||||
acl at-spi2-core colord dconf-gsettings-backend dconf-service fontconfig
|
||||
fontconfig-config fonts-dejavu-core hicolor-icon-theme libasound2
|
||||
libasound2-data libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0
|
||||
libavahi-client3 libavahi-common-data libavahi-common3 libcairo-gobject2
|
||||
libcairo2 libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra0 libcolord1
|
||||
libcolorhug1 libcups2 libdatrie1 libdconf1 libdrm-intel1 libdrm-nouveau2
|
||||
libdrm-radeon1 libexif12 libfontconfig1 libfontenc1 libgd3
|
||||
libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx
|
||||
libglapi-mesa libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgraphite2-3
|
||||
libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libgusb2
|
||||
libharfbuzz0b libice6 libieee1284-3 libjasper1 libjbig0 libjpeg-turbo8
|
||||
libjpeg8 liblcms2-2 libllvm3.4 libltdl7 libnotify-bin libnotify4 libogg0
|
||||
libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0
|
||||
libpixman-1-0 libsane libsane-common libsm6 libtdb1 libthai-data libthai0
|
||||
libtiff5 libtxc-dxtn-s2tc0 libv4l-0 libv4lconvert0 libvorbis0a
|
||||
libvorbisfile3 libvpx1 libwayland-client0 libwayland-cursor0 libx11-xcb1
|
||||
libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
|
||||
libxcb-render0 libxcb-shm0 libxcb-sync1 libxcomposite1 libxcursor1
|
||||
libxdamage1 libxfixes3 libxfont1 libxi6 libxinerama1 libxkbcommon0
|
||||
libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6
|
||||
libxtst6 libxxf86vm1 notification-daemon sound-theme-freedesktop x11-common
|
||||
x11-xkb-utils xfonts-base xfonts-encodings xfonts-utils xserver-common
|
||||
xserver-xorg-core
|
||||
Use 'apt-get autoremove' to remove them.
|
||||
The following extra packages will be installed:
|
||||
libopts25
|
||||
Suggested packages:
|
||||
ntp-doc
|
||||
The following NEW packages will be installed:
|
||||
libopts25 ntp
|
||||
0 upgraded, 2 newly installed, 0 to remove and 73 not upgraded.
|
||||
Need to get 477 kB of archives.
|
||||
After this operation, 1,682 kB of additional disk space will be used.
|
||||
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libopts25 amd64 1:5.18-2ubuntu2 [55.3 kB]
|
||||
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ntp amd64 1:4.2.6.p5+dfsg-3ubuntu2.14.04.10 [421 kB]
|
||||
Fetched 477 kB in 2s (236 kB/s)
|
||||
Selecting previously unselected package libopts25:amd64.
|
||||
(Reading database ... 62719 files and directories currently installed.)
|
||||
Preparing to unpack .../libopts25_1%3a5.18-2ubuntu2_amd64.deb ...
|
||||
Unpacking libopts25:amd64 (1:5.18-2ubuntu2) ...
|
||||
Selecting previously unselected package ntp.
|
||||
Preparing to unpack .../ntp_1%3a4.2.6.p5+dfsg-3ubuntu2.14.04.10_amd64.deb ...
|
||||
Unpacking ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.10) ...
|
||||
Processing triggers for ureadahead (0.100.0-16) ...
|
||||
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
|
||||
Setting up libopts25:amd64 (1:5.18-2ubuntu2) ...
|
||||
Setting up ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.10) ...
|
||||
* Starting NTP server ntpd
|
||||
...done.
|
||||
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
|
||||
Processing triggers for ureadahead (0.100.0-16) ...
|
||||
Test Teardown
|
||||
Removing user `testuser3' from group `sudo' ...
|
||||
Done.
|
||||
Looking for files to backup/remove ...
|
||||
Removing files ...
|
||||
Removing user `testuser3' ...
|
||||
Warning: group `testuser3' has no more members.
|
||||
Done.
|
||||
Rule deleted
|
||||
Rule deleted (v6)
|
||||
Firewall stopped and disabled on system startup
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following packages will be REMOVED:
|
||||
acl* at-spi2-core* colord* dconf-gsettings-backend* dconf-service*
|
||||
fontconfig* fontconfig-config* fonts-dejavu-core* hicolor-icon-theme*
|
||||
libasound2* libasound2-data* libatk-bridge2.0-0* libatk1.0-0*
|
||||
libatk1.0-data* libatspi2.0-0* libavahi-client3* libavahi-common-data*
|
||||
libavahi-common3* libcairo-gobject2* libcairo2* libcanberra-gtk3-0*
|
||||
libcanberra-gtk3-module* libcanberra0* libcolord1* libcolorhug1* libcups2*
|
||||
libdatrie1* libdconf1* libdrm-intel1* libdrm-nouveau2* libdrm-radeon1*
|
||||
libexif12* libfontconfig1* libfontenc1* libgd3* libgdk-pixbuf2.0-0*
|
||||
libgdk-pixbuf2.0-common* libgl1-mesa-dri* libgl1-mesa-glx* libglapi-mesa*
|
||||
libgphoto2-6* libgphoto2-l10n* libgphoto2-port10* libgraphite2-3*
|
||||
libgtk-3-0* libgtk-3-bin* libgtk-3-common* libgudev-1.0-0* libgusb2*
|
||||
libharfbuzz0b* libice6* libieee1284-3* libjasper1* libjbig0* libjpeg-turbo8*
|
||||
libjpeg8* liblcms2-2* libllvm3.4* libltdl7* libnotify-bin* libnotify4*
|
||||
libogg0* libopts25* libpango-1.0-0* libpangocairo-1.0-0* libpangoft2-1.0-0*
|
||||
libpciaccess0* libpixman-1-0* libsane* libsane-common* libsm6* libtdb1*
|
||||
libthai-data* libthai0* libtiff5* libtxc-dxtn-s2tc0* libv4l-0*
|
||||
libv4lconvert0* libvorbis0a* libvorbisfile3* libvpx1* libwayland-client0*
|
||||
libwayland-cursor0* libx11-xcb1* libxaw7* libxcb-dri2-0* libxcb-dri3-0*
|
||||
libxcb-glx0* libxcb-present0* libxcb-render0* libxcb-shm0* libxcb-sync1*
|
||||
libxcomposite1* libxcursor1* libxdamage1* libxfixes3* libxfont1* libxi6*
|
||||
libxinerama1* libxkbcommon0* libxkbfile1* libxmu6* libxpm4* libxrandr2*
|
||||
libxrender1* libxshmfence1* libxt6* libxtst6* libxxf86vm1*
|
||||
notification-daemon* ntp* sound-theme-freedesktop* x11-common*
|
||||
x11-xkb-utils* xfonts-base* xfonts-encodings* xfonts-utils* xserver-common*
|
||||
xserver-xorg-core*
|
||||
0 upgraded, 0 newly installed, 119 to remove and 66 not upgraded.
|
||||
After this operation, 131 MB disk space will be freed.
|
||||
(Reading database ... 62762 files and directories currently installed.)
|
||||
Removing colord (1.0.6-1) ...
|
||||
Purging configuration files for colord (1.0.6-1) ...
|
||||
Removing libsane:amd64 (1.0.23-3ubuntu3.1) ...
|
||||
Purging configuration files for libsane:amd64 (1.0.23-3ubuntu3.1) ...
|
||||
Removing directory /etc/sane.d/ ...
|
||||
Removing acl (2.2.52-1) ...
|
||||
Removing at-spi2-core (2.10.2.is.2.10.1-0ubuntu1) ...
|
||||
Purging configuration files for at-spi2-core (2.10.2.is.2.10.1-0ubuntu1) ...
|
||||
Removing libgtk-3-bin (3.10.8-0ubuntu1.6) ...
|
||||
Removing 'diversion of /usr/sbin/update-icon-caches to /usr/sbin/update-icon-caches.gtk2 by libgtk-3-bin'
|
||||
Removing 'diversion of /usr/share/man/man8/update-icon-caches.8.gz to /usr/share/man/man8/update-icon-caches.gtk2.8.gz by libgtk-3-bin'
|
||||
Purging configuration files for libgtk-3-bin (3.10.8-0ubuntu1.6) ...
|
||||
Removing notification-daemon (0.7.6-1) ...
|
||||
Purging configuration files for notification-daemon (0.7.6-1) ...
|
||||
Removing libgphoto2-6:amd64 (2.5.3.1-1ubuntu2.2) ...
|
||||
Purging configuration files for libgphoto2-6:amd64 (2.5.3.1-1ubuntu2.2) ...
|
||||
Removing libgd3:amd64 (2.1.0-3ubuntu0.2) ...
|
||||
Purging configuration files for libgd3:amd64 (2.1.0-3ubuntu0.2) ...
|
||||
Removing hicolor-icon-theme (0.13-1) ...
|
||||
Removing libcanberra-gtk3-module:amd64 (0.30-0ubuntu3) ...
|
||||
Removing libcanberra-gtk3-0:amd64 (0.30-0ubuntu3) ...
|
||||
Purging configuration files for libcanberra-gtk3-0:amd64 (0.30-0ubuntu3) ...
|
||||
Removing libcanberra0:amd64 (0.30-0ubuntu3) ...
|
||||
Purging configuration files for libcanberra0:amd64 (0.30-0ubuntu3) ...
|
||||
Removing libasound2:amd64 (1.0.27.2-3ubuntu7) ...
|
||||
Purging configuration files for libasound2:amd64 (1.0.27.2-3ubuntu7) ...
|
||||
Removing libasound2-data (1.0.27.2-3ubuntu7) ...
|
||||
Removing libcolorhug1:amd64 (1.0.6-1) ...
|
||||
Purging configuration files for libcolorhug1:amd64 (1.0.6-1) ...
|
||||
Removing libgl1-mesa-dri:amd64 (10.1.3-0ubuntu0.6) ...
|
||||
Purging configuration files for libgl1-mesa-dri:amd64 (10.1.3-0ubuntu0.6) ...
|
||||
Removing libdrm-intel1:amd64 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libdrm-intel1:amd64 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Removing libdrm-nouveau2:amd64 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libdrm-nouveau2:amd64 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Removing libdrm-radeon1:amd64 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libdrm-radeon1:amd64 (2.4.67-1ubuntu0.14.04.1) ...
|
||||
Removing libexif12:amd64 (0.6.21-1ubuntu1) ...
|
||||
Purging configuration files for libexif12:amd64 (0.6.21-1ubuntu1) ...
|
||||
Removing xserver-xorg-core (2:1.15.1-0ubuntu2.7) ...
|
||||
Purging configuration files for xserver-xorg-core (2:1.15.1-0ubuntu2.7) ...
|
||||
rm: cannot remove ‘/var/log/Xorg.*.log’: No such file or directory
|
||||
rm: cannot remove ‘/var/log/Xorg.*.log.old’: No such file or directory
|
||||
Removing xfonts-base (1:1.0.3) ...
|
||||
Purging configuration files for xfonts-base (1:1.0.3) ...
|
||||
warning: /usr/share/fonts/X11/misc does not exist or is not a directory
|
||||
warning: /usr/share/fonts/X11/misc does not exist or is not a directory
|
||||
Removing xfonts-utils (1:7.7+1) ...
|
||||
Purging configuration files for xfonts-utils (1:7.7+1) ...
|
||||
Removing libxfont1:amd64 (1:1.4.7-1ubuntu0.2) ...
|
||||
Purging configuration files for libxfont1:amd64 (1:1.4.7-1ubuntu0.2) ...
|
||||
Removing libfontenc1:amd64 (1:1.1.2-1) ...
|
||||
Purging configuration files for libfontenc1:amd64 (1:1.1.2-1) ...
|
||||
Removing libnotify-bin (0.7.6-1ubuntu3) ...
|
||||
Removing libnotify4:amd64 (0.7.6-1ubuntu3) ...
|
||||
Purging configuration files for libnotify4:amd64 (0.7.6-1ubuntu3) ...
|
||||
Removing libgl1-mesa-glx:amd64 (10.1.3-0ubuntu0.6) ...
|
||||
Purging configuration files for libgl1-mesa-glx:amd64 (10.1.3-0ubuntu0.6) ...
|
||||
Removing libglapi-mesa:amd64 (10.1.3-0ubuntu0.6) ...
|
||||
Purging configuration files for libglapi-mesa:amd64 (10.1.3-0ubuntu0.6) ...
|
||||
Removing libgphoto2-l10n (2.5.3.1-1ubuntu2.2) ...
|
||||
Removing libgphoto2-port10:amd64 (2.5.3.1-1ubuntu2.2) ...
|
||||
Purging configuration files for libgphoto2-port10:amd64 (2.5.3.1-1ubuntu2.2) ...
|
||||
Removing libgusb2:amd64 (0.1.6-5) ...
|
||||
Purging configuration files for libgusb2:amd64 (0.1.6-5) ...
|
||||
Removing libgudev-1.0-0:amd64 (1:204-5ubuntu20.19) ...
|
||||
Purging configuration files for libgudev-1.0-0:amd64 (1:204-5ubuntu20.19) ...
|
||||
Removing xserver-common (2:1.15.1-0ubuntu2.7) ...
|
||||
Removing x11-xkb-utils (7.7+1) ...
|
||||
Removing libxaw7:amd64 (2:1.0.12-1) ...
|
||||
Purging configuration files for libxaw7:amd64 (2:1.0.12-1) ...
|
||||
Removing libxmu6:amd64 (2:1.1.1-1) ...
|
||||
Purging configuration files for libxmu6:amd64 (2:1.1.1-1) ...
|
||||
Removing libxt6:amd64 (1:1.1.4-1) ...
|
||||
Purging configuration files for libxt6:amd64 (1:1.1.4-1) ...
|
||||
Removing libsm6:amd64 (2:1.2.1-2) ...
|
||||
Purging configuration files for libsm6:amd64 (2:1.2.1-2) ...
|
||||
Removing libice6:amd64 (2:1.0.8-2) ...
|
||||
Purging configuration files for libice6:amd64 (2:1.0.8-2) ...
|
||||
Removing libieee1284-3:amd64 (0.2.11-12) ...
|
||||
Purging configuration files for libieee1284-3:amd64 (0.2.11-12) ...
|
||||
Removing libv4l-0:amd64 (1.0.1-1) ...
|
||||
Purging configuration files for libv4l-0:amd64 (1.0.1-1) ...
|
||||
Removing libv4lconvert0:amd64 (1.0.1-1) ...
|
||||
Purging configuration files for libv4lconvert0:amd64 (1.0.1-1) ...
|
||||
Removing libllvm3.4:amd64 (1:3.4-1ubuntu3) ...
|
||||
Purging configuration files for libllvm3.4:amd64 (1:3.4-1ubuntu3) ...
|
||||
Removing libltdl7:amd64 (2.4.2-1.7ubuntu1) ...
|
||||
Purging configuration files for libltdl7:amd64 (2.4.2-1.7ubuntu1) ...
|
||||
Removing libvorbisfile3:amd64 (1.3.2-1.3ubuntu1) ...
|
||||
Purging configuration files for libvorbisfile3:amd64 (1.3.2-1.3ubuntu1) ...
|
||||
Removing libvorbis0a:amd64 (1.3.2-1.3ubuntu1) ...
|
||||
Purging configuration files for libvorbis0a:amd64 (1.3.2-1.3ubuntu1) ...
|
||||
Removing libogg0:amd64 (1.3.1-1ubuntu1) ...
|
||||
Purging configuration files for libogg0:amd64 (1.3.1-1ubuntu1) ...
|
||||
Removing ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.10) ...
|
||||
* Stopping NTP server ntpd
|
||||
...done.
|
||||
Purging configuration files for ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.10) ...
|
||||
Removing libopts25:amd64 (1:5.18-2ubuntu2) ...
|
||||
Purging configuration files for libopts25:amd64 (1:5.18-2ubuntu2) ...
|
||||
Removing libpciaccess0:amd64 (0.13.2-1) ...
|
||||
Purging configuration files for libpciaccess0:amd64 (0.13.2-1) ...
|
||||
Removing libsane-common (1.0.23-3ubuntu3.1) ...
|
||||
Removing libtdb1:amd64 (1.3.8-0ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libtdb1:amd64 (1.3.8-0ubuntu0.14.04.1) ...
|
||||
Removing libtxc-dxtn-s2tc0:amd64 (0~git20131104-1.1) ...
|
||||
Purging configuration files for libtxc-dxtn-s2tc0:amd64 (0~git20131104-1.1) ...
|
||||
Removing libvpx1:amd64 (1.3.0-2) ...
|
||||
Purging configuration files for libvpx1:amd64 (1.3.0-2) ...
|
||||
Removing libx11-xcb1:amd64 (2:1.6.2-1ubuntu2) ...
|
||||
Purging configuration files for libx11-xcb1:amd64 (2:1.6.2-1ubuntu2) ...
|
||||
Removing libxcb-dri2-0:amd64 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-dri2-0:amd64 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-dri3-0:amd64 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-dri3-0:amd64 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-glx0:amd64 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-glx0:amd64 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-present0:amd64 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-present0:amd64 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-sync1:amd64 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-sync1:amd64 (1.10-2ubuntu1) ...
|
||||
Removing libxkbfile1:amd64 (1:1.0.8-1) ...
|
||||
Purging configuration files for libxkbfile1:amd64 (1:1.0.8-1) ...
|
||||
Removing libxpm4:amd64 (1:3.5.10-1) ...
|
||||
Purging configuration files for libxpm4:amd64 (1:3.5.10-1) ...
|
||||
Removing libxshmfence1:amd64 (1.1-2) ...
|
||||
Purging configuration files for libxshmfence1:amd64 (1.1-2) ...
|
||||
Removing libxtst6:amd64 (2:1.2.2-1) ...
|
||||
Purging configuration files for libxtst6:amd64 (2:1.2.2-1) ...
|
||||
Removing libxxf86vm1:amd64 (1:1.1.3-1) ...
|
||||
Purging configuration files for libxxf86vm1:amd64 (1:1.1.3-1) ...
|
||||
Removing sound-theme-freedesktop (0.8-1) ...
|
||||
Removing xfonts-encodings (1:1.0.4-1ubuntu1) ...
|
||||
Removing x11-common (1:7.7+1ubuntu8.1) ...
|
||||
Purging configuration files for x11-common (1:7.7+1ubuntu8.1) ...
|
||||
Removing libgtk-3-0:amd64 (3.10.8-0ubuntu1.6) ...
|
||||
Purging configuration files for libgtk-3-0:amd64 (3.10.8-0ubuntu1.6) ...
|
||||
Removing libgtk-3-common (3.10.8-0ubuntu1.6) ...
|
||||
Purging configuration files for libgtk-3-common (3.10.8-0ubuntu1.6) ...
|
||||
Removing dconf-gsettings-backend:amd64 (0.20.0-1) ...
|
||||
Removing dconf-service (0.20.0-1) ...
|
||||
Removing libpangocairo-1.0-0:amd64 (1.36.3-1ubuntu1.1) ...
|
||||
Purging configuration files for libpangocairo-1.0-0:amd64 (1.36.3-1ubuntu1.1) ...
|
||||
Removing libpangoft2-1.0-0:amd64 (1.36.3-1ubuntu1.1) ...
|
||||
Purging configuration files for libpangoft2-1.0-0:amd64 (1.36.3-1ubuntu1.1) ...
|
||||
Removing libpango-1.0-0:amd64 (1.36.3-1ubuntu1.1) ...
|
||||
Purging configuration files for libpango-1.0-0:amd64 (1.36.3-1ubuntu1.1) ...
|
||||
Removing fontconfig (2.11.0-0ubuntu4.1) ...
|
||||
Purging configuration files for fontconfig (2.11.0-0ubuntu4.1) ...
|
||||
Removing libcairo-gobject2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
|
||||
Purging configuration files for libcairo-gobject2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
|
||||
Removing libcairo2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
|
||||
Purging configuration files for libcairo2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
|
||||
Removing libfontconfig1:amd64 (2.11.0-0ubuntu4.1) ...
|
||||
Purging configuration files for libfontconfig1:amd64 (2.11.0-0ubuntu4.1) ...
|
||||
Removing fontconfig-config (2.11.0-0ubuntu4.1) ...
|
||||
Purging configuration files for fontconfig-config (2.11.0-0ubuntu4.1) ...
|
||||
Removing fonts-dejavu-core (2.34-1ubuntu1) ...
|
||||
Purging configuration files for fonts-dejavu-core (2.34-1ubuntu1) ...
|
||||
Removing libatk-bridge2.0-0:amd64 (2.10.2-2ubuntu1) ...
|
||||
Purging configuration files for libatk-bridge2.0-0:amd64 (2.10.2-2ubuntu1) ...
|
||||
Removing libatk1.0-0:amd64 (2.10.0-2ubuntu2) ...
|
||||
Purging configuration files for libatk1.0-0:amd64 (2.10.0-2ubuntu2) ...
|
||||
Removing libatk1.0-data (2.10.0-2ubuntu2) ...
|
||||
Removing libatspi2.0-0:amd64 (2.10.2.is.2.10.1-0ubuntu1) ...
|
||||
Purging configuration files for libatspi2.0-0:amd64 (2.10.2.is.2.10.1-0ubuntu1) ...
|
||||
Removing libcups2:amd64 (1.7.2-0ubuntu1.7) ...
|
||||
Purging configuration files for libcups2:amd64 (1.7.2-0ubuntu1.7) ...
|
||||
Removing libavahi-client3:amd64 (0.6.31-4ubuntu1.1) ...
|
||||
Purging configuration files for libavahi-client3:amd64 (0.6.31-4ubuntu1.1) ...
|
||||
Removing libavahi-common3:amd64 (0.6.31-4ubuntu1.1) ...
|
||||
Purging configuration files for libavahi-common3:amd64 (0.6.31-4ubuntu1.1) ...
|
||||
Removing libavahi-common-data:amd64 (0.6.31-4ubuntu1.1) ...
|
||||
Removing libcolord1:amd64 (1.0.6-1) ...
|
||||
Purging configuration files for libcolord1:amd64 (1.0.6-1) ...
|
||||
Removing libthai0:amd64 (0.1.20-3) ...
|
||||
Purging configuration files for libthai0:amd64 (0.1.20-3) ...
|
||||
Removing libdatrie1:amd64 (0.2.8-1) ...
|
||||
Purging configuration files for libdatrie1:amd64 (0.2.8-1) ...
|
||||
Removing libdconf1:amd64 (0.20.0-1) ...
|
||||
Purging configuration files for libdconf1:amd64 (0.20.0-1) ...
|
||||
Removing libgdk-pixbuf2.0-0:amd64 (2.30.7-0ubuntu1.2) ...
|
||||
Purging configuration files for libgdk-pixbuf2.0-0:amd64 (2.30.7-0ubuntu1.2) ...
|
||||
Removing libgdk-pixbuf2.0-common (2.30.7-0ubuntu1.2) ...
|
||||
Removing libharfbuzz0b:amd64 (0.9.27-1ubuntu1) ...
|
||||
Purging configuration files for libharfbuzz0b:amd64 (0.9.27-1ubuntu1) ...
|
||||
Removing libgraphite2-3:amd64 (1.3.6-1ubuntu0.14.04.1) ...
|
||||
Purging configuration files for libgraphite2-3:amd64 (1.3.6-1ubuntu0.14.04.1) ...
|
||||
Removing libjasper1:amd64 (1.900.1-14ubuntu3.3) ...
|
||||
Purging configuration files for libjasper1:amd64 (1.900.1-14ubuntu3.3) ...
|
||||
Removing libtiff5:amd64 (4.0.3-7ubuntu0.4) ...
|
||||
Purging configuration files for libtiff5:amd64 (4.0.3-7ubuntu0.4) ...
|
||||
Removing libjbig0:amd64 (2.0-2ubuntu4.1) ...
|
||||
Purging configuration files for libjbig0:amd64 (2.0-2ubuntu4.1) ...
|
||||
Removing libjpeg8:amd64 (8c-2ubuntu8) ...
|
||||
Removing libjpeg-turbo8:amd64 (1.3.0-0ubuntu2) ...
|
||||
Purging configuration files for libjpeg-turbo8:amd64 (1.3.0-0ubuntu2) ...
|
||||
Removing liblcms2-2:amd64 (2.5-0ubuntu4.1) ...
|
||||
Purging configuration files for liblcms2-2:amd64 (2.5-0ubuntu4.1) ...
|
||||
Removing libpixman-1-0:amd64 (0.30.2-2ubuntu1.1) ...
|
||||
Purging configuration files for libpixman-1-0:amd64 (0.30.2-2ubuntu1.1) ...
|
||||
Removing libthai-data (0.1.20-3) ...
|
||||
Removing libwayland-cursor0:amd64 (1.4.0-1ubuntu1) ...
|
||||
Purging configuration files for libwayland-cursor0:amd64 (1.4.0-1ubuntu1) ...
|
||||
Removing libwayland-client0:amd64 (1.4.0-1ubuntu1) ...
|
||||
Purging configuration files for libwayland-client0:amd64 (1.4.0-1ubuntu1) ...
|
||||
Removing libxcb-render0:amd64 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-render0:amd64 (1.10-2ubuntu1) ...
|
||||
Removing libxcb-shm0:amd64 (1.10-2ubuntu1) ...
|
||||
Purging configuration files for libxcb-shm0:amd64 (1.10-2ubuntu1) ...
|
||||
Removing libxcomposite1:amd64 (1:0.4.4-1) ...
|
||||
Purging configuration files for libxcomposite1:amd64 (1:0.4.4-1) ...
|
||||
Removing libxcursor1:amd64 (1:1.1.14-1) ...
|
||||
Purging configuration files for libxcursor1:amd64 (1:1.1.14-1) ...
|
||||
Removing libxdamage1:amd64 (1:1.1.4-1ubuntu1) ...
|
||||
Purging configuration files for libxdamage1:amd64 (1:1.1.4-1ubuntu1) ...
|
||||
Removing libxfixes3:amd64 (1:5.0.1-1ubuntu1.1) ...
|
||||
Purging configuration files for libxfixes3:amd64 (1:5.0.1-1ubuntu1.1) ...
|
||||
Removing libxi6:amd64 (2:1.7.1.901-1ubuntu1.1) ...
|
||||
Purging configuration files for libxi6:amd64 (2:1.7.1.901-1ubuntu1.1) ...
|
||||
Removing libxinerama1:amd64 (2:1.1.3-1) ...
|
||||
Purging configuration files for libxinerama1:amd64 (2:1.1.3-1) ...
|
||||
Removing libxkbcommon0:amd64 (0.4.1-0ubuntu1) ...
|
||||
Purging configuration files for libxkbcommon0:amd64 (0.4.1-0ubuntu1) ...
|
||||
Removing libxrandr2:amd64 (2:1.5.0-1~trusty1) ...
|
||||
Purging configuration files for libxrandr2:amd64 (2:1.5.0-1~trusty1) ...
|
||||
Removing libxrender1:amd64 (1:0.9.8-1build0.14.04.1) ...
|
||||
Purging configuration files for libxrender1:amd64 (1:0.9.8-1build0.14.04.1) ...
|
||||
Processing triggers for libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
|
||||
No schema files found: removed existing output file.
|
||||
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
|
||||
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
|
||||
Processing triggers for mime-support (3.54ubuntu1.1) ...
|
||||
Processing triggers for udev (204-5ubuntu20.19) ...
|
||||
All unit tests passed.
|
||||
|
||||
|
||||
RESULTS: 13 tests passed. 0 tests failed. 13 tests total.
|
||||
Execution completed in 28 second(s)...
|
||||
|
||||
@@ -1,125 +0,0 @@
|
||||
[3;J[H[2J
|
||||
unit-tests.sh:
|
||||
|
||||
Test Setup
|
||||
Adding user `testuser3' ...
|
||||
Adding new group `testuser3' (1001) ...
|
||||
Adding new user `testuser3' (1001) with group `testuser3' ...
|
||||
Creating home directory `/home/testuser3' ...
|
||||
Copying files from `/etc/skel' ...
|
||||
testuser3 ALL=(ALL) NOPASSWD: ALL
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBGTO0tsVejssuaYR5R3Y/i73SppJAhme1dH7W2c47d4gOqB4izP0+fRLfvbz/tnXFz4iOP/H6eCV05hqUhF+KYRxt9Y8tVMrpDZR2l75o6+xSbUOMu6xN+uVF0T9XzKcxmzTmnV7Na5up3QM3DoSRYX/EP3utr2+zAqpJIfKPLdA74w7g56oYWI9blpnpzxkEd3edVJOivUkpZ4JoenWManvIaSdMTJXMy3MtlQhva+j9CgguyVbUkdzK9KKEuah+pFZvaugtebsU+bllPTB0nlXGIJk98Ie9ZtxuY3nCKneB+KjKiXrAvXUPCI9mWkYS/1rggpFmu3HbXBnWSUdf [email protected]
|
||||
Rules updated
|
||||
Rules updated (v6)
|
||||
Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup
|
||||
Setting up swapspace version 1, size = 2 GiB (2147479552 bytes)
|
||||
no label, UUID=bd261c68-4e54-474c-b02d-1c71d421a833
|
||||
vm.swappiness = 10
|
||||
vm.vfs_cache_pressure = 50
|
||||
vm.swappiness = 60
|
||||
vm.vfs_cache_pressure = 100
|
||||
America/New_York
|
||||
|
||||
Current default time zone: 'America/New_York'
|
||||
Local time is now: Tue Nov 29 06:34:51 EST 2016.
|
||||
Universal Time is now: Tue Nov 29 11:34:51 UTC 2016.
|
||||
|
||||
Etc/UTC
|
||||
|
||||
Current default time zone: 'Etc/UTC'
|
||||
Local time is now: Tue Nov 29 11:34:51 UTC 2016.
|
||||
Universal Time is now: Tue Nov 29 11:34:51 UTC 2016.
|
||||
|
||||
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
|
||||
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
|
||||
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
|
||||
Get:4 http://security.ubuntu.com/ubuntu xenial-security/main Sources [50.2 kB]
|
||||
Get:5 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [1,804 B]
|
||||
Get:6 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [14.4 kB]
|
||||
Get:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
|
||||
Get:8 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [728 B]
|
||||
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [179 kB]
|
||||
Get:10 http://archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
|
||||
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [72.3 kB]
|
||||
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [64.0 kB]
|
||||
Get:13 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [34.4 kB]
|
||||
Get:14 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
|
||||
Get:15 http://archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
|
||||
Get:16 http://archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
|
||||
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [207 kB]
|
||||
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [1,804 B]
|
||||
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [110 kB]
|
||||
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [3,648 B]
|
||||
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [427 kB]
|
||||
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [165 kB]
|
||||
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [366 kB]
|
||||
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [132 kB]
|
||||
Get:25 http://archive.ubuntu.com/ubuntu xenial-backports/main Sources [3,180 B]
|
||||
Get:26 http://archive.ubuntu.com/ubuntu xenial-backports/universe Sources [1,868 B]
|
||||
Get:27 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4,392 B]
|
||||
Get:28 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3,104 B]
|
||||
Get:29 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [2,412 B]
|
||||
Get:30 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [1,216 B]
|
||||
Fetched 10.9 MB in 9s (1,198 kB/s)
|
||||
Reading package lists...
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following additional packages will be installed:
|
||||
libopts25
|
||||
Suggested packages:
|
||||
ntp-doc
|
||||
The following NEW packages will be installed:
|
||||
libopts25 ntp
|
||||
0 upgraded, 2 newly installed, 0 to remove and 15 not upgraded.
|
||||
Need to get 577 kB of archives.
|
||||
After this operation, 1,791 kB of additional disk space will be used.
|
||||
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libopts25 amd64 1:5.18.7-3 [57.8 kB]
|
||||
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ntp amd64 1:4.2.8p4+dfsg-3ubuntu5.3 [520 kB]
|
||||
Fetched 577 kB in 2s (283 kB/s)
|
||||
Selecting previously unselected package libopts25:amd64.
|
||||
(Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 57661 files and directories currently installed.)
|
||||
Preparing to unpack .../libopts25_1%3a5.18.7-3_amd64.deb ...
|
||||
Unpacking libopts25:amd64 (1:5.18.7-3) ...
|
||||
Selecting previously unselected package ntp.
|
||||
Preparing to unpack .../ntp_1%3a4.2.8p4+dfsg-3ubuntu5.3_amd64.deb ...
|
||||
Unpacking ntp (1:4.2.8p4+dfsg-3ubuntu5.3) ...
|
||||
Processing triggers for libc-bin (2.23-0ubuntu4) ...
|
||||
Processing triggers for systemd (229-4ubuntu12) ...
|
||||
Processing triggers for ureadahead (0.100.0-19) ...
|
||||
Processing triggers for man-db (2.7.5-1) ...
|
||||
Setting up libopts25:amd64 (1:5.18.7-3) ...
|
||||
Setting up ntp (1:4.2.8p4+dfsg-3ubuntu5.3) ...
|
||||
Processing triggers for libc-bin (2.23-0ubuntu4) ...
|
||||
Processing triggers for systemd (229-4ubuntu12) ...
|
||||
Processing triggers for ureadahead (0.100.0-19) ...
|
||||
Test Teardown
|
||||
Removing user `testuser3' from group `sudo' ...
|
||||
Done.
|
||||
Looking for files to backup/remove ...
|
||||
Removing files ...
|
||||
Removing user `testuser3' ...
|
||||
Warning: group `testuser3' has no more members.
|
||||
Done.
|
||||
Rule deleted
|
||||
Rule deleted (v6)
|
||||
Firewall stopped and disabled on system startup
|
||||
Reading package lists...
|
||||
Building dependency tree...
|
||||
Reading state information...
|
||||
The following packages will be REMOVED:
|
||||
libopts25* ntp*
|
||||
0 upgraded, 0 newly installed, 2 to remove and 15 not upgraded.
|
||||
After this operation, 1,791 kB disk space will be freed.
|
||||
(Reading database ... ␍(Reading database ... 5%␍(Reading database ... 10%␍(Reading database ... 15%␍(Reading database ... 20%␍(Reading database ... 25%␍(Reading database ... 30%␍(Reading database ... 35%␍(Reading database ... 40%␍(Reading database ... 45%␍(Reading database ... 50%␍(Reading database ... 55%␍(Reading database ... 60%␍(Reading database ... 65%␍(Reading database ... 70%␍(Reading database ... 75%␍(Reading database ... 80%␍(Reading database ... 85%␍(Reading database ... 90%␍(Reading database ... 95%␍(Reading database ... 100%␍(Reading database ... 57723 files and directories currently installed.)
|
||||
Removing ntp (1:4.2.8p4+dfsg-3ubuntu5.3) ...
|
||||
Purging configuration files for ntp (1:4.2.8p4+dfsg-3ubuntu5.3) ...
|
||||
Removing libopts25:amd64 (1:5.18.7-3) ...
|
||||
Processing triggers for man-db (2.7.5-1) ...
|
||||
Processing triggers for libc-bin (2.23-0ubuntu4) ...
|
||||
All unit tests passed.
|
||||
|
||||
|
||||
RESULTS: 13 tests passed. 0 tests failed. 13 tests total.
|
||||
Execution completed in 21 second(s)...
|
||||
|
||||
+2
-12
@@ -10,7 +10,7 @@ current_dir=$(getCurrentDir)
|
||||
source "${current_dir}/lib/BashScriptTestingLibrary.shl"
|
||||
source "${current_dir}/../setupLibrary.sh"
|
||||
|
||||
test_user_account=testuser3
|
||||
test_user_account=testuser
|
||||
test_account_password="123%pass_321"
|
||||
|
||||
### Unit Tests ###
|
||||
@@ -31,7 +31,7 @@ function testIfUserIsSudo() {
|
||||
}
|
||||
|
||||
function testAddingOfSSHKey() {
|
||||
disableSudoPassword
|
||||
disableSudoPassword "${test_user_account}"
|
||||
|
||||
local dummy_key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBGTO0tsVejssuaYR5R3Y/i73SppJAhme1dH7W2c47d4gOqB4izP0+fRLfvbz/tnXFz4iOP/H6eCV05hqUhF+KYRxt9Y8tVMrpDZR2l75o6+xSbUOMu6xN+uVF0T9XzKcxmzTmnV7Na5up3QM3DoSRYX/EP3utr2+zAqpJIfKPLdA74w7g56oYWI9blpnpzxkEd3edVJOivUkpZ4JoenWManvIaSdMTJXMy3MtlQhva+j9CgguyVbUkdzK9KKEuah+pFZvaugtebsU+bllPTB0nlXGIJk98Ie9ZtxuY3nCKneB+KjKiXrAvXUPCI9mWkYS/1rggpFmu3HbXBnWSUdf [email protected]"
|
||||
addSSHKey "${test_user_account}" "${dummy_key}"
|
||||
@@ -107,16 +107,6 @@ function deleteTestUser() {
|
||||
sudo deluser -f --remove-home ${test_user_account}
|
||||
}
|
||||
|
||||
function revertSudoers() {
|
||||
sudo cp /etc/sudoers.bak /etc/sudoers
|
||||
sudo rm -rf /etc/sudoers.bak
|
||||
}
|
||||
|
||||
function disableSudoPassword() {
|
||||
sudo cp /etc/sudoers /etc/sudoers.bak
|
||||
sudo bash -c "echo '${test_user_account} ALL=(ALL) NOPASSWD: ALL' | (EDITOR='tee -a' visudo)"
|
||||
}
|
||||
|
||||
function revertSSHConfig() {
|
||||
sudo cp /etc/ssh/sshd_config.old /etc/ssh/sshd_config
|
||||
sudo rm -rf /etc/ssh/sshd_config.old
|
||||
|
||||
Reference in new issue
Block a user