Debian 8.5 y OpenBSD 6.0 (obsd) Part I
During the past week I was in a chat about the new version of "OBSD 6.0" and I had talk about "Debian 8.5", comparatives are next step.
I don't want to say "who is better, or fast, or nice, or....."
I prepared this post with the instalation process in both O.S. and post instalation process, smart people have to identify which is better.
(my personal opinion is Debian off course...)
The second part, post installation is here.
I Choose VirtualBox, last version and my ASUS TP300La notebook as the hardware. &4 bits in both VM Servers and ISOs. Trying to do the standard process in both.
The complete process is this:
1. Environments with both servers, same virtual configuration
1 cpu, 1 gb ram, disco near 12 gb, network bridged, sound/usb connected. (both standard options)
2. Installation.
The option to choose Graphic and Text install is a "+1",
with the graphic install you could check your video card/monitor too.
Debian could choose Graphic or Text install, (Text selected)
OBsd 6.0, just text install
3. Debian Select Keyboard and Location, timezone.
OBSD Select Keyboard
4. Install Part 2.
OBsd hostname, ethernet card, dhcp, ipv6.
Select services to startup, ssh, X server, Timezone.
Debian, name, password, user. (not network config yet).
5. Disk partition.
Simple way Whole disk / Entire Disk.
Debian all in one partition, EXT4 98%, Swap 2%
OBSD. 10 partitions (may be too much) or net, depending of the usage of the server.
for Real service bringing service to lots of users, this is great. For 1 user not too much.
6. Packages / APP.
OBSD, select HTTP to install them.
Debian, installing "base packages", kernel, some basic tools, and config them into disk, and later ask for Mirrors (repositories)
7. Select all packages from Standard Install, define PROXY and go.
OBSD, select all packages (default), near 1 minute to install all of them (7) using cd0 (local cd)
Debian, select Mirror, define proxy. Less than 1 min. to download packages info.
Select GUI, services and "blends", I choose XFCE (a bit larger/heavy than others), ssh. (d7c)
More than 5 minutes to download and install 1047 packages (basic, + xfce + services), timing related to speed of access to internet.
Install GRUB (1 second)
8. OBSD reboot and start it.
9. Running
OBSD less than 1 minute and running in GUI. Type user/pass and graph terminal (o9b).
2nd reboot, same time... I guess the first boot was really fast and no special differences between 1th and 2nd boot.
Debian, reboot, startup. With XFCE4, login. XFCE4 running (d9b)
10. Updating
************************************
OBSD, useradd -b /home/dac -m dac (create a new user)
not sure what's the error, but the pkg_check failed. (o10)
pkg_add mc (failed too).
export PKG_PATH=http://ftp2.eu.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -p)/
pkg_add mc (error, I can't install it)
The PKG_ADD is similar to "APT/APT_GET" in debian
the Ports folder is similar to "Rolling release" where an APP is downloaded (source), and compiled in each server.
Installing "screen" utility
# pkg_add screen
quirks-2.241 signed on 2016-07-26T16:56:10Z
Ambiguous: choose package for screen
a 0:
1: screen-4.0.3p6
2: screen-4.0.3p6-shm
Your choice: 1
screen-4.0.3p6: ok
# pkg_add mc
quirks-2.241 signed on 2016-07-26T16:56:10Z
Error from http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/packages/amd64/mc-4.8.16p0.tgz
ftp: ftp2.eu.openbsd.org: no address associated with name
Can't find CONTENTS from http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/packages/amd64/mc-4.8.16p0.tgz
--- mc-4.8.16p0 -------------------
Can't install mc-4.8.16p0: bad package
I FOUND THE ERROR
I had to add this lines in /root/.profile file to define REPO online and THE PROXY.
export PKG_PATH=http://ftp2.eu.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -p)/
export http_proxy="http://192.168.1.2:8080"
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
export ftp_proxy=$http_proxy
export FTP_PROXY=$http_proxy
After this,
pkg_add install mc
quirks-2.241 signed on 2016-07-26T16:56:10Z
Can't find install
mc-4.8.16p0:libffi-3.2.1p2: ok
mc-4.8.16p0:python-2.7.12: ok
mc-4.8.16p0:glib2-2.48.1: ok
mc-4.8.16p0:png-1.6.23: ok
mc-4.8.16p0:oniguruma-5.9.6: ok
mc-4.8.16p0:libslang-2.2.4p2: ok
mc-4.8.16p0:libssh2-1.7.0: ok
mc-4.8.16p0:gdiff-3.3p0: ok
mc-4.8.16p0:unzip-6.0p9: ok
mc-4.8.16p0: ok
Look in /usr/local/share/doc/pkg-readmes for extra documentation.
--- +python-2.7.12 -------------------
If you want to use this package as your default system python, as root
create symbolic links like so (overwriting any previous default):
ln -sf /usr/local/bin/python2.7 /usr/local/bin/python
ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3
ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config
ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc
I installed "PORTS" too.
wget http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/ports.tar.gz
Untar it into /usr/ports (141 mb used)
# pkg_add install xfce
quirks-2.241 signed on 2016-07-26T16:56:10Z
Can't find install
Error from http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/packages/amd64/xfce-4.12p3.tgz
ftp: ftp2.eu.openbsd.org: no address associated with name
Can't find CONTENTS from http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/packages/amd64/xfce-4.12p3.tgz
--- xfce-4.12p3 -------------------
Can't install xfce-4.12p3: bad package
************************************
Debian, apt update, apt upgrade, apt dist-upgrade (the standard way to update server) (d10).
apt install screen
apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
byobu | screenie | iselect
The following NEW packages will be installed:
screen
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 586 kB of archives.
After this operation, 1004 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian stretch/main amd64 screen amd64 4.4.0-4 [586 kB]
Fetched 586 kB in 9s (64.3 kB/s)
Selecting previously unselected package screen.
(Reading database ... 84818 files and directories currently installed.)
Preparing to unpack .../screen_4.4.0-4_amd64.deb ...
Unpacking screen (4.4.0-4) ...
Processing triggers for systemd (231-4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up screen (4.4.0-4) ...
Processing triggers for systemd (231-4) ...
apt-get install mc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
mc-data
Suggested packages:
arj catdvi | texlive-binaries dbview djvulibre-bin genisoimage gv imagemagick
links | w3m | lynx odt2txt poppler-utils python-boto python-tz zip
The following NEW packages will be installed:
mc mc-data
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1776 kB of archives.
After this operation, 7112 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.us.debian.org/debian stretch/main amd64 mc-data all 3:4.8.17-1 [1265 kB]
Get:2 http://ftp.us.debian.org/debian stretch/main amd64 mc amd64 3:4.8.17-1 [511 kB]
Fetched 1776 kB in 6s (259 kB/s)
Selecting previously unselected package mc-data.
(Reading database ... 84878 files and directories currently installed.)
Preparing to unpack .../0-mc-data_3%3a4.8.17-1_all.deb ...
Unpacking mc-data (3:4.8.17-1) ...
Selecting previously unselected package mc.
Preparing to unpack .../1-mc_3%3a4.8.17-1_amd64.deb ...
Unpacking mc (3:4.8.17-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Setting up mc-data (3:4.8.17-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up mc (3:4.8.17-1) ...
update-alternatives: using /usr/bin/mcview to provide /usr/bin/view (view) in auto mode
In Debian to compare instalation process to OBSD, I think in download linux-sources
and "compile" tools and install from Source. (gcc, make, others)
apt-get install linux-sources
11. Resources Used.
Make sense to invest hours to use 50 mb less in something ?
Our notebooks/servers have 4/8/64gb ram..... and Teras in disks.
Debian. (d11)
Running with basic/network/standards tools
Firefox, Libreoffice, Gimp, Ristretto & VLC.
Disk space used 3gb
Memory near 190 mb used (swap free), less than 0.3% CPU usage.
Service running (ssh 22)
Filesystem Size Used Avail Use% Mounted on
udev 513M 0 513M 0% /dev
tmpfs 105M 3.5M 102M 4% /run
/dev/sda1 12G 3.0G 8.0G 28% /
tmpfs 523M 70k 523M 1% /dev/shm
tmpfs 5.3M 4.1k 5.3M 1% /run/lock
tmpfs 523M 0 523M 0% /sys/fs/cgroup
tmpfs 105M 4.1k 105M 1% /run/user/115
tmpfs 105M 8.2k 105M 1% /run/user/1000
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 192.168.10.168:22 192.168.10.156:34968 ESTABLISHED
tcp6 0 0 :::22 :::* LISTEN
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:57911 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp6 0 0 :::5353 :::*
udp6 0 0 :::60036 :::*
raw6 0 0 :::58 :::* 7
OpenBsd 6, running, only basic tools installed and no GUI tools (o11)
600 mb on disk, 54 mb used (with FVWM GUI)
Filesystem Size Used Avail Capacity Mounted on
/dev/wd0a 530M 42.1M 461M 8% /
/dev/wd0k 4.5G 20.0K 4.3G 0% /home
/dev/wd0d 841M 20.0K 799M 0% /tmp
/dev/wd0f 1.3G 372M 900M 29% /usr
/dev/wd0g 776M 212M 525M 29% /usr/X11R6
/dev/wd0h 2.9G 5.2M 2.7G 0% /usr/local
/dev/wd0j 1.6G 2.0K 1.5G 0% /usr/obj
/dev/wd0i 1.2G 2.0K 1.1G 0% /usr/src
/dev/wd0e 1.2G 5.3M 1.2G 0% /var
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
ip 0 0 *.* *.* 17
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp 0 0 192.168.10.167.22 192.168.10.156.58616 ESTABLISHED
tcp 0 0 127.0.0.1.25 *.* LISTEN
tcp 0 0 *.22 *.* LISTEN
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp 0 0 192.168.10.167.25592 81.19.96.148.123
udp 0 0 192.168.10.167.14580 194.140.131.21.123
udp 0 0 192.168.10.167.34583 193.145.15.15.123
udp 0 0 *.514 *.*
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp6 0 0 *.22 *.* LISTEN
tcp6 0 0 fe80::1%lo0.25 *.* LISTEN
tcp6 0 0 ::1.25 *.* LISTEN
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp6 0 0 *.514 *.*
12. Service running on
DEBIAN.
PID TTY TIME CMD
1 ? 00:00:00 systemd
2 ? 00:00:00 kthreadd
3 ? 00:00:00 ksoftirqd/0
5 ? 00:00:00 kworker/0:0H
6 ? 00:00:00 kworker/u2:0
7 ? 00:00:00 rcu_sched
8 ? 00:00:00 rcu_bh
9 ? 00:00:00 migration/0
10 ? 00:00:00 watchdog/0
11 ? 00:00:00 cpuhp/0
12 ? 00:00:00 kdevtmpfs
13 ? 00:00:00 netns
14 ? 00:00:00 khungtaskd
15 ? 00:00:00 oom_reaper
16 ? 00:00:00 writeback
17 ? 00:00:00 kcompactd0
18 ? 00:00:00 ksmd
20 ? 00:00:00 khugepaged
21 ? 00:00:00 crypto
22 ? 00:00:00 kintegrityd
23 ? 00:00:00 bioset
24 ? 00:00:00 kblockd
25 ? 00:00:00 devfreq_wq
26 ? 00:00:00 watchdogd
27 ? 00:00:00 kswapd0
28 ? 00:00:00 vmstat
41 ? 00:00:00 kthrotld
42 ? 00:00:00 ipv6_addrconf
48 ? 00:00:00 deferwq
99 ? 00:00:00 ata_sff
144 ? 00:00:00 kpsmoused
166 ? 00:00:00 kworker/0:2
569 ? 00:00:00 scsi_eh_0
573 ? 00:00:00 scsi_tmf_0
577 ? 00:00:00 scsi_eh_1
578 ? 00:00:00 kworker/u2:3
579 ? 00:00:00 scsi_tmf_1
581 ? 00:00:00 scsi_eh_2
583 ? 00:00:00 scsi_tmf_2
642 ? 00:00:00 bioset
643 ? 00:00:00 bioset
674 ? 00:00:00 kworker/0:3
682 ? 00:00:00 kworker/0:1H
739 ? 00:00:00 jbd2/sda1-8
740 ? 00:00:00 ext4-rsv-conver
769 ? 00:00:00 systemd-journal
772 ? 00:00:00 kauditd
779 ? 00:00:00 systemd-udevd
1398 ? 00:00:00 systemd-timesyn
1403 ? 00:00:00 dbus-daemon
1422 ? 00:00:00 NetworkManager
1423 ? 00:00:00 rsyslogd
1425 ? 00:00:00 avahi-daemon
1427 ? 00:00:00 systemd-logind
1428 ? 00:00:00 ModemManager
1429 ? 00:00:00 cron
1430 ? 00:00:00 anacron
1438 ? 00:00:00 avahi-daemon
1478 ? 00:00:00 polkitd
1503 ? 00:00:00 sshd
1507 tty1 00:00:00 agetty
1514 ? 00:00:00 lightdm
1523 tty7 00:00:06 Xorg
1526 ? 00:00:00 dhclient
1575 ? 00:00:00 systemd
1576 ? 00:00:00 (sd-pam)
1633 ? 00:00:00 dbus-launch
1634 ? 00:00:00 dbus-daemon
1678 ? 00:00:00 lightdm
1683 ? 00:00:00 systemd
1684 ? 00:00:00 (sd-pam)
1690 ? 00:00:00 sh
1715 ? 00:00:00 dbus-launch
1716 ? 00:00:00 dbus-daemon
1732 ? 00:00:00 ssh-agent
1743 ? 00:00:00 xfce4-session
1745 ? 00:00:00 at-spi-bus-laun
1750 ? 00:00:00 dbus-daemon
1754 ? 00:00:00 at-spi2-registr
1756 ? 00:00:00 xfconfd
1762 ? 00:00:00 xfwm4
1766 ? 00:00:00 xfce4-panel
1768 ? 00:00:00 Thunar
1770 ? 00:00:00 xfdesktop
1771 ? 00:00:00 nm-applet
1777 ? 00:00:00 xfsettingsd
1778 ? 00:00:00 applet.py
1780 ? 00:00:00 gvfsd
1790 ? 00:00:00 light-locker
1794 ? 00:00:00 pulseaudio
1795 ? 00:00:00 rtkit-daemon
1801 ? 00:00:00 dconf-service
1805 ? 00:00:00 xfce4-power-man
1808 ? 00:00:00 polkit-gnome-au
1817 ? 00:00:00 xfce4-notifyd
1818 ? 00:00:00 upowerd
1845 ? 00:00:00 panel-6-systray
1846 ? 00:00:00 panel-2-actions
1850 ? 00:00:00 gvfs-udisks2-vo
1853 ? 00:00:00 udisksd
1864 ? 00:00:00 gvfsd-trash
1871 ? 00:00:00 gvfsd-metadata
1977 ? 00:00:00 packagekitd
2083 ? 00:00:00 xfce4-terminal
2087 ? 00:00:00 gnome-pty-helpe
2088 pts/0 00:00:00 bash
2093 pts/0 00:00:00 su
2094 pts/0 00:00:00 bash
2097 ? 00:00:00 kworker/0:0
2179 ? 00:00:00 sshd
2181 ? 00:00:00 sshd
2182 pts/1 00:00:00 bash
2191 pts/1 00:00:00 su
2192 pts/1 00:00:00 bash
2194 pts/1 00:00:00 ps
OBSD
PID TT STAT TIME COMMAND
1 ?? Is 0:01.00 /sbin/init
84152 ?? Is 0:00.00 dhclient: em0 [priv] (dhclient)
74648 ?? Isp 0:00.00 dhclient: em0 (dhclient)
42357 ?? Isp 0:00.00 syslogd: [priv] (syslogd)
2432 ?? Sp 0:00.01 /usr/sbin/syslogd
36845 ?? Is 0:00.00 pflogd: [priv] (pflogd)
83868 ?? Sp 0:00.01 pflogd: [running] -s 160 -i pflog0 -f /var/log/pflog
25347 ?? Ip 0:00.01 ntpd: dns engine (ntpd)
549 ?? S
13. Remote access SSH, not too different.
Debian
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Sep 2 11:39:49 2016 from 192.168.10.156
dac@d85:~$
OBSD
Last login: Fri Sep 2 11:43:13 2016
OpenBSD 6.0 (GENERIC) #2148: Tue Jul 26 12:55:20 MDT 2016
Welcome to OpenBSD: The pro-actively secure Unix-like operating system.
Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code. With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.
#
NEXT POST the final tunning with
OBSD and XFCE4, Firefox, space usage.
Debian tunning.
The second part, post installation is here.
Comentarios
Publicar un comentario