aspire: Upgraded to 20.04.

This commit is contained in:
Ole Tange 2020-06-15 00:49:38 +02:00
parent d1be2cce4f
commit f6236f3090
6 changed files with 134 additions and 19 deletions

59
aspire/SETUP Normal file
View file

@ -0,0 +1,59 @@
printer() {
Error code: SSL_ERROR_BAD_MAC_ALERT
https://superuser.com/questions/1280239/firefox-secure-connection-failed-ssl-error-bad-mac-alert
sudo dpkg -i xerox-phaser-6140_1.1-2_all.deb
http://localhost:631/admin
color+colordup
}
partition() {
Installed with ubuntu-live-server-20.04
/dev/ssd-p2 /boot ext4
/dev/ssd-p3 / LUKS+ext4
/dev/4tb-p4 /local LUKS+zfs
/dev/nmve ? (AFS/swap/tmp/vartmp)
}
timezone() {
sudo dpkg-reconfigure tzdata
}
autofs() {
cd /
sudo ln -s nfs/hpdisk/data .
}
vlc() {
wastebasket from tangetools
splitvideo from tangetools
hotkeys() {
faster (fine) +
slower (fine) -
}
}
firefox() {
Firefox Multi-Account Containers
Bitwarden
startpage
Privacy Badger
}
toner_reset() {
sudo apt install mono-runtime
keeprog
}
make_local() {
sudo cryptsetup -y -v luksFormat --sector-size 4096 \
--pbkdf-parallel 8 --pbkdf-memory 4000000 --pbkdf argon2id \
--iter-time 1000 /dev/sdc4
sudo cryptsetup config --priority prefer --key-slot 0 /dev/sdc4
sudo zpool create -o ashift=12 -O acltype=posixacl -O canmount=off \
-O compression=lz4 -O dnodesize=auto -O normalization=formD \
-O relatime=on -O xattr=sa localpool /dev/mapper/local
sudo zfs create -o mountpoint=/local localpool/local
}

Binary file not shown.

View file

@ -0,0 +1,38 @@
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/nfs -hosts
#
# Include /etc/auto.master.d/*.autofs
# To add an extra map using this mechanism you will need to add
# two configuration items - one /etc/auto.master.d/extra.autofs file
# (using the same line format as the auto.master file)
# and a separate mount map (e.g. /etc/auto.extra or an auto.extra NIS map)
# that is referred to by the extra.autofs file.
#
+dir:/etc/auto.master.d
#
# If you have fedfs set up and the related binaries, either
# built as part of autofs or installed from another package,
# uncomment this line to use the fedfs program map to access
# your fedfs mounts.
#/nfs4 /usr/sbin/fedfs-map-nfs4 nobind
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master

31
ubuntu-20.04/gui-packages Normal file
View file

@ -0,0 +1,31 @@
# Run as normal user
sudo apt-get update
sudo apt-get install -y ttf-mscorefonts-installer
# start med pakker, der er kræver interaktivitet
cat <<_EOF |grep -v '#'| sudo xargs -r -n 1 apt-get install -y
gnome-font-viewer
kubuntu-desktop
xemacs21
xemacs
libreoffice
firefox
torbrowser-launcher
vlc
iridium
xkbset
sox
#xfce4
#clusterssh
##wine
##wine-stable
chromium-browser
#xserver-xorg-input-synaptics
uswsusp
_EOF
sudo apt-file update &
# Install font for konsole
wget http://ole.tange.dk/linux/DroidSansMonoWide.ttf
gnome-font-viewer DroidSansMonoWide.ttf
sudo systemctl enable debug-shell.service

View file

@ -67,7 +67,7 @@ setup_zpool_for_root() {
--pbkdf-parallel 1 \
--pbkdf-memory 4000000 --pbkdf argon2id --iter-time 1000 \
${DISK}-part4
cryptsetup config --priority prefer --key-slot 0
cryptsetup config --priority prefer --key-slot 0 ${DISK}-part4
echo "$password" | cryptsetup luksOpen ${DISK}-part4 luks1
(echo "$password"; echo "$secretpassword") |
cryptsetup -y -v luksAddKey \

View file

@ -7,13 +7,11 @@ sudo perl -i.bak -pe 's/^%sudo.*/%sudo ALL=NOPASSWD: ALL/' /etc/sudoers
sudo perl -i.bak -pe 's/(\s+localhost)( lo)?\b/$1 lo/' /etc/hosts
sudo apt-get update
sudo apt-get install -y ttf-mscorefonts-installer
# start med pakker, der er kræver interaktivitet
cat <<_EOF |grep -v '#'| sudo xargs -r -n 1 apt-get install -y
postfix
encfs
cpuburn
gnome-font-viewer
#mdadm
tmux
aptitude
@ -22,8 +20,6 @@ openssh-server
ssh-server
emacs
emacs25-nox
xemacs21
xemacs
git
git-core
parallel
@ -63,29 +59,26 @@ psmisc
#owncloud-client
htop
net-tools
#uswsusp
#cifs-utils
#r-base-core
# Gui
libreoffice
vlc
iridium
xkbset
sox
#xfce4
#clusterssh
##wine
##wine-stable
pwgen
chromium-browser
# broadcom netcard
firmware-bnx2
firmware-b43-installer
net-tools
lvm2
#xserver-xorg-input-synaptics
uswsusp
gddrescue
zfsutils-linux
zstd
pixz
youtube-dl
_EOF
sudo apt-file update &
locale-gen en_US.UTF-8
@ -99,12 +92,6 @@ cd tangetools
make
sudo make install
# Install font for konsole
wget http://ole.tange.dk/linux/DroidSansMonoWide.ttf
gnome-font-viewer DroidSansMonoWide.ttf
sudo systemctl enable debug-shell.service
# parted
# resizepart
# pvs