:: Re: [DNG] Quick start guide to upra…
Top Pagina
Delete this message
Reply to this message
Auteur: janpenguin
Datum:  
Aan: dng
CC: dev1fanboy
Onderwerp: Re: [DNG] Quick start guide to uprading to Devuan and configuring minimalism
Hi,

I just finished installation Devuan 1.0 on my i386 laptop.
I logged most of the installation steps.

Create a bootable USB stick

I used Debian Wheezy installer because of few issues in Devuan Alpha
version.
In Debian installer, I chose Print server, Laptop, Standard system
utilities for the system.

In my case, hard disk is /dev/sda, USB stick is /dev/sdb.

$ sudo dd if=installer_file_name.iso of=/dev/sdb


/etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 7.9.0 _Wheezy_ - Official i386 NETINST
Binary-1 20
150905-13:15]/ wheezy main

#deb cdrom:[Debian GNU/Linux 7.9.0 _Wheezy_ - Official i386 NETINST
Binary-1 201
50905-13:15]/ wheezy main

deb http://ftp.lecl.net/debian/ wheezy main
deb-src http://ftp.lecl.net/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.lecl.net/debian/ wheezy-updates main
deb-src http://ftp.lecl.net/debian/ wheezy-updates main

Set up keyboard layout

In my case I set Colemak as default keyboard layout of the system.

# dpkg-reconfigure keyboard-configuration
# service keyboard-setup restart

Install sudo

# apt-get -y install sudo

modify /etc/sudoers file to get permission for the user

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
penguin ALL=(ALL:ALL) ALL

Download devuan-baseconf package
# wget
http://packages.devuan.org/devuan/pool/main/d/devuan-baseconf/devuan-baseconf_0.6.4%2bdevuan3_all.deb

$ sudo dpkg -i devuan-baseconf_0.6.4+devuan3_all.deb

$ sudo apt-get install devuan-keyring

$ sudo apt-get install vim

$ sudo apt-get install sysvinit-core

$ sudo apt-get install base-files

I use -d option that download all the packages first before
installation. In night time internet speed gets slow here.

penguin@dv1-laptop:/etc/apt$ sudo apt-get dist-upgrade -d
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
cpp-4.7 foomatic-filters gcc-4.7-base ghostscript-cups libcupsdriver1
libescpr1 libperl5.14 libsnmp15
The following NEW packages will be installed:
colord-data cpp-4.9 crda cups-browsed cups-core-drivers cups-daemon
cups-filters-core-drivers cups-server-common dconf-gsettings-backend
dconf-service dh-python dmeventd docutils-common docutils-doc
emacsen-common
ethtool firmware-linux-free fonts-dejavu-core gcc-4.9-base gnupg-agent
gnupg2 init init-system-helpers iproute2 irqbalance iw
libalgorithm-c3-perl
libarchive-extract-perl libasn1-8-heimdal libasound2-data libassuan0
libatm1
libaudit-common libaudit1 libauthen-sasl-perl libavahi-glib1
libbind9-90
libboost-iostreams1.55.0 libcap2-bin libcgi-fast-perl libcgi-pm-perl
libclass-c3-perl libclass-c3-xs-perl libcloog-isl4 libcolord2
libcolorhug2
libcpan-meta-perl libcurl3-gnutls libdata-optlist-perl
libdata-section-perl
libdb5.3 libdconf1 libdebconfclient0 libdns-export100 libdns100
libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libelf1 libestr0
libfcgi-perl libfdisk1 libffi6 libfontembed1 libfontenc1 libgcrypt20
libgd3
libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgnutls-deb0-28
libgnutls-openssl27 libgphoto2-6 libgphoto2-port10 libgraphite2-3
libgssapi3-heimdal libharfbuzz0b libhcrypto4-heimdal
libheimbase1-heimdal
libheimntlm0-heimdal libhogweed2 libhx509-5-heimdal libicu52
libintl-perl
libio-html-perl libirs-export91 libisc-export95 libisc95 libisccc90
libisccfg-export90 libisccfg90 libisl10 libjim0.75 libjpeg62-turbo
libjson-c2 libkrb5-26-heimdal libksba8 liblcms2-utils libldb1
libllvm3.5
liblog-message-perl liblog-message-simple-perl liblogging-stdlog0
liblognorm1 liblvm2cmd2.02 liblwres90 libmodule-build-perl
libmodule-pluggable-perl libmodule-signature-perl libmpc3 libmpdec2
libmro-compat-perl libnet-smtp-ssl-perl libnettle4 libntdb1 libnuma1
libopenjpeg5 libpackage-constants-perl libpam-cap libpango-1.0-0
libpangocairo-1.0-0 libpangoft2-1.0-0 libpangox-1.0-0
libpangoxft-1.0-0
libparams-util-perl libperl4-corelibs-perl libperl5.20
libpod-latex-perl
libpod-readme-perl libpoppler46 libprocps3 libpsl0 libpython-stdlib
libpython2.7 libpython2.7-minimal libpython2.7-stdlib
libpython3-stdlib
libpython3.4-minimal libpython3.4-stdlib libqpdf13
libregexp-common-perl
libroken18-heimdal librtmp1 libsasl2-modules-db libsigsegv2
libsmartcols1
libsmbclient libsnmp30 libsoftware-license-perl libssh2-1
libsub-exporter-perl libsub-install-perl libsystemd0 libtasn1-6
libtcl8.6
libterm-ui-perl libtevent0 libtext-soundex-perl libtext-template-perl
libtext-unidecode-perl libtiff5 libtk8.6 libtxc-dxtn-s2tc0 libudev1
libutempter0 libvpx1 libwebp5 libwebpdemux1 libwebpmux1 libwind0-heimdal
libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
libxcb-shape0 libxcb-sync1 libxml-libxml-perl
libxml-namespacesupport-perl
libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl
libxml-sax-perl libxshmfence1 libxss1 libxtables10 libxtst6 libxv1
libxxf86dga1 linux-image-3.16.0-4-686-pae openssh-sftp-server
pinentry-gtk2
printer-driver-brlaser printer-driver-dymo
printer-driver-foo2zjs-common
python-crypto python-defusedxml python-docutils python-ldb python-ntdb
python-pil python-pkg-resources python-pygments python-roman
python-samba
python-six python-talloc python-tdb python-wstools python3
python3-minimal
python3.4 python3.4-minimal qpdf rename rfkill samba-libs startpar tcl
tcl8.6 tk tk8.6 usb-modeswitch usb-modeswitch-data wireless-regdb
x11-utils
xbitmaps xdg-user-dirs xterm
The following packages have been kept back:
db5.1-util
The following packages will be upgraded:
acl acpi acpi-fakekey acpi-support acpi-support-base acpid anacron apt
apt-listchanges apt-utils aptitude aptitude-common at avahi-autoipd
avahi-daemon base-passwd bash bash-completion bc bind9-host bluetooth
bluez
bluez-cups bsd-mailx bsdmainutils bsdutils busybox bzip2
ca-certificates
colord console-setup console-setup-linux consolekit coreutils cpio cpp
cron
cups cups-bsd cups-client cups-common cups-filters cups-ppdc dash dbus
dc
debconf debconf-i18n debian-archive-keyring debian-faq debianutils
dictionaries-common diffutils discover discover-data dmidecode dmsetup
dnsutils doc-debian dpkg e2fslibs e2fsprogs eject exim4 exim4-base
exim4-config exim4-daemon-light file findutils fontconfig
fontconfig-config
fonts-droid fonts-freefont-ttf foomatic-db-compressed-ppds
foomatic-db-engine ftp geoip-database gettext-base ghostscript
gir1.2-glib-2.0 gnupg gpgv grep groff-base grub-common grub-pc
grub-pc-bin
grub2-common gzip hdparm hicolor-icon-theme hostname hplip hplip-data
ifupdown info initramfs-tools initscripts install-info
installation-report
iproute iptables iputils-ping isc-dhcp-client isc-dhcp-common
iso-codes kbd
keyboard-configuration klibc-utils kmod krb5-locales less libacl1
libapt-inst1.5 libapt-pkg4.12 libasound2 libasprintf0c2 libatk1.0-0
libatk1.0-data libattr1 libavahi-client3 libavahi-common-data
libavahi-common3 libavahi-core7 libblkid1 libbsd0 libbz2-1.0 libcairo2
libcap-ng0 libcap2 libck-connector0 libclass-isa-perl libcomerr2
libcups2
libcupscgi1 libcupsfilters1 libcupsimage2 libcupsmime1 libcupsppdc1
libcwidget3 libdaemon0 libdatrie1 libdbus-1-3 libdbus-glib-1-2
libdevmapper-event1.02.1 libdevmapper1.02.1 libdiscover2 libedit2
libept1.4.12 libevent-2.0-5 libexif12 libexpat1 libfontconfig1
libfreetype6
libfuse2 libgc1c2 libgcc1 libgdbm3 libgdk-pixbuf2.0-0
libgdk-pixbuf2.0-common libgeoip1 libgirepository-1.0-1 libglade2-0
libglib2.0-0 libglib2.0-data libgmp10 libgpg-error0 libgpgme11
libgphoto2-l10n libgpm2 libgs9 libgs9-common
libgstreamer-plugins-base0.10-0
libgstreamer0.10-0 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
libgudev-1.0-0
libgusb2 libgutenprint2 libhpmud0 libhtml-format-perl
libhtml-parser-perl
libhtml-tree-perl libhttp-cookies-perl libhttp-message-perl libice6
libidn11
libieee1284-3 libijs-0.35 libio-socket-ip-perl libio-socket-ssl-perl
libjasper1 libjbig0 libklibc libkmod2 liblcms2-2 libldap-2.4-2
liblocale-gettext-perl liblockfile-bin liblockfile1 libltdl7
liblwp-protocol-https-perl liblzma5 libmagic1 libmailtools-perl
libmount1
libmpfr4 libncurses5 libncursesw5 libnet-http-perl libnet-ssleay-perl
libnewt0.52 libnfnetlink0 libnfsidmap2 libnl-3-200 libnl-genl-3-200
libnss-mdns liborc-0.4-0 libp11-kit0 libpam-ck-connector
libpam-modules
libpam-modules-bin libpam-runtime libpam0g libpango1.0-0
libpaper-utils
libpaper1 libpci3 libpciaccess0 libpcre3 libpcsclite1 libpipeline1
libpixman-1-0 libpng12-0 libpolkit-agent-1-0 libpolkit-backend-1-0
libpolkit-gobject-1-0 libpopt0 libpth20 libreadline5 libreadline6
libsane
libsane-common libsane-extras libsane-extras-common libsane-hpaio
libsasl2-2
libsasl2-modules libselinux1 libsemanage-common libsemanage1
libsensors4
libsepol1 libsigc++-2.0-0c2a libslang2 libslp1 libsm6 libsnmp-base
libsocket-perl libsqlite3-0 libss2 libssl1.0.0 libstdc++6
libswitch-perl
libsystemd-login0 libtalloc2 libtdb1 libtext-charwidth-perl
libtext-iconv-perl libthai-data libthai0 libtimedate-perl libtinfo5
libtokyocabinet9 liburi-perl libusb-0.1-4 libusb-1.0-0 libustr-1.0-1
libuuid-perl libuuid1 libv4l-0 libv4lconvert0 libwbclient0 libwrap0
libwww-perl libx11-6 libx11-data libxapian22 libxau6 libxaw7
libxcb-render0
libxcb-shm0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
libxext6 libxfixes3 libxft2 libxi6 libxinerama1 libxml2 libxmu6
libxmuu1
libxpm4 libxrandr2 libxrender1 libxt6 libxxf86vm1 linux-image-686-pae
login
logrotate lsb-base lsb-release lvm2 m4 man-db manpages mime-support
mlocate
module-init-tools mount mscompress multiarch-support mutt nano
ncurses-base
ncurses-bin ncurses-term net-tools netbase netcat-traditional
openprinting-ppds openssh-client openssh-server openssl os-prober
passwd
patch pciutils perl perl-base perl-modules pm-utils policykit-1
poppler-data
poppler-utils popularity-contest powermgmt-base powertop
printer-driver-all
printer-driver-c2050 printer-driver-c2esp printer-driver-cjet
printer-driver-escpr printer-driver-foo2zjs printer-driver-gutenprint
printer-driver-hpcups printer-driver-hpijs printer-driver-m2300w
printer-driver-min12xxw printer-driver-pnm2ppa
printer-driver-postscript-hp
printer-driver-ptouch printer-driver-pxljr printer-driver-sag-gdi
printer-driver-splix procmail procps psmisc python python-apt
python-apt-common python-chardet python-dbus python-dbus-dev
python-debian
python-debianbts python-gi python-gobject-2 python-imaging
python-minimal
python-pexpect python-renderpm python-reportbug python-reportlab
python-reportlab-accel python-soappy python2.7 python2.7-minimal
radeontool
readline-common reportbug rpcbind rsyslog samba-common
samba-common-bin
sane-utils sed sensible-utils shared-mime-info smbclient ssl-cert sudo
sysv-rc sysvinit sysvinit-utils tar task-english task-laptop
task-print-server task-ssh-server tasksel tasksel-data tcpd texinfo
time
traceroute ttf-dejavu-core ttf-freefont ucf udev unzip usbutils
util-linux
util-linux-locales vbetool w3m wget whiptail whois wpasupplicant
x11-common
x11-xserver-utils xauth xkb-data xscreensaver xscreensaver-data
xz-utils
zlib1g
442 upgraded, 230 newly installed, 8 to remove and 1 not upgraded.
Need to get 258 MB of archives.
After this operation, 324 MB of additional disk space will be used.
Do you want to continue [Y/n]?

Fetched 258 MB in 1h 35min 29s (45.0 kB/s)
Download complete and in download only mode

$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade

I skipped the purging step.

$ sudo apt-get autoremove --purge

The following packages will be REMOVED:
bluez-alsa* bluez-gstreamer* hpijs* libasound2* libasound2-data*
libbind9-80* libcolord1* libdns88* libffi5* libgd2-xpm* libgphoto2-2*
libgphoto2-port0* libgssglue1* libgstreamer-plugins-base0.10-0*
libgstreamer0.10-0* libisc84* libisccc80* libisccfg82* liblcms1*
liblwres80*
libmpc2* libopenjpeg2* liborc-0.4-0* libpango1.0-0* libpoppler19*
libslp1*
libsystemd-login0* libtiff4* openssh-blacklist*
openssh-blacklist-extra*
python-fpconst* ttf-dejavu-core* ttf-freefont*
0 upgraded, 0 newly installed, 33 to remove and 1 not upgraded.
After this operation, 29.5 MB disk space will be freed.

Delete .deb package files

$ sudo apt-get autoclean
$ sudo apt-get clean

$ sudo reboot

Install Xorg system

penguin@dv1-laptop:~$ sudo apt-get install xorg xserver-xorg-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libegl1-mesa libegl1-mesa-drivers libepoxy0 libevdev2 libgbm1
libglu1-mesa
libmtdev1 libopenvg1-mesa libwayland-client0 libwayland-egl1-mesa
libwayland-server0 libxatracker2 libxcb-util0 libxcb-xfixes0 libxfont1
libxkbfile1 libxvmc1 x11-apps x11-session-utils x11-xkb-utils
xfonts-100dpi
xfonts-75dpi xfonts-base xfonts-encodings xfonts-scalable xfonts-utils
xinit
xorg-docs-core xserver-common xserver-xorg xserver-xorg-input-all
xserver-xorg-input-evdev xserver-xorg-input-mouse
xserver-xorg-input-synaptics xserver-xorg-input-vmmouse
xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-ati
xserver-xorg-video-cirrus xserver-xorg-video-fbdev
xserver-xorg-video-geode
xserver-xorg-video-intel xserver-xorg-video-mach64
xserver-xorg-video-mga
xserver-xorg-video-modesetting xserver-xorg-video-neomagic
xserver-xorg-video-nouveau xserver-xorg-video-openchrome
xserver-xorg-video-qxl xserver-xorg-video-r128
xserver-xorg-video-radeon
xserver-xorg-video-savage xserver-xorg-video-siliconmotion
xserver-xorg-video-sisusb xserver-xorg-video-tdfx
xserver-xorg-video-trident
xserver-xorg-video-vesa xserver-xorg-video-vmware
Suggested packages:
mesa-utils xfs xserver xorg-docs x11-xfs-utils
gpointing-device-settings
touchfreeze xinput firmware-linux
The following NEW packages will be installed:
libegl1-mesa libegl1-mesa-drivers libepoxy0 libevdev2 libgbm1
libglu1-mesa
libmtdev1 libopenvg1-mesa libwayland-client0 libwayland-egl1-mesa
libwayland-server0 libxatracker2 libxcb-util0 libxcb-xfixes0 libxfont1
libxkbfile1 libxvmc1 x11-apps x11-session-utils x11-xkb-utils
xfonts-100dpi
xfonts-75dpi xfonts-base xfonts-encodings xfonts-scalable xfonts-utils
xinit
xorg xorg-docs-core xserver-common xserver-xorg xserver-xorg-core
xserver-xorg-input-all xserver-xorg-input-evdev
xserver-xorg-input-mouse
xserver-xorg-input-synaptics xserver-xorg-input-vmmouse
xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-ati
xserver-xorg-video-cirrus xserver-xorg-video-fbdev
xserver-xorg-video-geode
xserver-xorg-video-intel xserver-xorg-video-mach64
xserver-xorg-video-mga
xserver-xorg-video-modesetting xserver-xorg-video-neomagic
xserver-xorg-video-nouveau xserver-xorg-video-openchrome
xserver-xorg-video-qxl xserver-xorg-video-r128
xserver-xorg-video-radeon
xserver-xorg-video-savage xserver-xorg-video-siliconmotion
xserver-xorg-video-sisusb xserver-xorg-video-tdfx
xserver-xorg-video-trident
xserver-xorg-video-vesa xserver-xorg-video-vmware
0 upgraded, 60 newly installed, 0 to remove and 1 not upgraded.
Need to get 31.2 MB of archives.

After this operation, 58.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y

Install fluxbox as window manger of Xorg

$ sudo apt-get install fluxbox

The system size is about 1.5G.

penguin@dv1-laptop:/$ df -h
Filesystem                    Size  Used Avail Use% Mounted on
/dev/dm-0                     314M  252M   42M  86% /
udev                           10M     0   10M   0% /dev
tmpfs                         100M  508K  100M   1% /run
tmpfs                         5.0M     0  5.0M   0% /run/lock
tmpfs                         200M     0  200M   0% /run/shm
/dev/sda1                     228M   44M  172M  21% /boot
/dev/mapper/dv1--laptop-home   42G   48M   39G   1% /home
/dev/mapper/dv1--laptop-tmp   360M  2.1M  335M   1% /tmp
/dev/mapper/dv1--laptop-usr   8.2G  979M  6.8G  13% /usr
/dev/mapper/dv1--laptop-var   2.7G  224M  2.4G   9% /var


penguin@dv1-laptop:/$ sudo du -sh
du: cannot access ‘./proc/5137/task/5137/fd/3’: No such file or 
directory
du: cannot access ‘./proc/5137/task/5137/fdinfo/3’: No such file or 
directory
du: cannot access ‘./proc/5137/fd/3’: No such file or directory
du: cannot access ‘./proc/5137/fdinfo/3’: No such file or directory
1.5G    .


Create /etc/apt.conf.d/01lean

APT::Install-Suggests “0”;
APT::Install-Recommends “0”;
APT::AutoRemove::SuggestsImportant “false”;
APT::AutoRemove::RecommendsImportant “false”;

$ sudo apt-get install ca-certificates isc-dhcp-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version.
ca-certificates set to manually installed.
isc-dhcp-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


Regards,
Hughe