Debian fresh install

Backup

FireFox favorites
Firefox addins unpaywall addblock plus

Copy directories that aren’t syncd:

config files ~/.xxxxx
~/.thunderbird
~/.ssh keys and directory
~/.gnupg
~/.keystorefiles
~/.password-store
~/.electrum
~/.electrum-ltc

Reconfigure ~/syncd/Calibre Library

Bitcoin wallets
~/syncd/ directory
backup mail contacts
Electrum tags

Prep a USB

1
2
3
4
5
$cat /proc/partitions   ;;to see partitions MUST SELECT CORRECT ONE!!!
# tee </dev/zero /dev/sdb1 ;;to erase all
# mkfs.ext2 /dev/sdb1
# chown -R mbc:mbc /media/usb0
$ cp -R ./owncloud/ /media/usb0

Fresh Debian Install

sudo blkid -o list -c /dev/null to see what USB is called
sudo fdisk -l to see name of USB

for XPS (amd64)
root@dc7700s:/home/mbc/Downloads# dd if=debian-8.6.0-amd64-xfce-CD-1.iso of=/dev/sdb

(!not /dev/sdb1)

amd uses the same wifi driver firmware-iwlwifi_0.43_all.deb in blue usb stick “Drivers”
Do not start the install with the wifi driver usb plugged in.
Do not wait for the prompt to plug in wifi driver USB.
Plug in the wifi driver USB once the install has started (but before prompt) otherwise the install will choke.
With the USB in place, the wifi drivers will be found and installed without a prompt.

Selecting encrypted hard drive will start a >10 hour random write to disk which you
can cancel out of and continue install

Select “Guided – use entire disk and set up LVM”; this is for the xfce window manager installation
Partition all files in one partition

UPGRADE to the latest packages

sudo nano /etc/apt/sources.list

comment out the line referring to a cd

deb http://http.debian.net/debian/ wheezy main contrib non-free
deb http://ftp.us.debian.org/debian/ sid main #for electrum (sid is always the unstable release and maybe shouldn’t be included)

#apt-get update && apt-get dist-upgrade

—–”upgrade is used to install the newest versions of all packages currently installed on the system
—–dist-upgrade, in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages”

Install packages of interest

sudo apt-get install conkeror icedove emacs ess guile-2.0 calibre yapet xrandr electrum evince sudo
flahplugin-nonfree chromium rsync referencer nodejs

separately must deal with guile-ncurses litecoin namecoin

configure browser favorites, yapet, mail, electrum seed, conkeror with instapaper, evince,

Copy over ~/.gnupg, ~/.ssh ~/.mutt

Custom configuration

PDFs are opened by default with GIMP; to change:
/usr/share/applications/gimp.desktop
remove from the last line the reference to pdf files

Add a user with no password:
#adduser guest

There is a hack to do this which works. Replace the user’s /etc/shadow password entry with this string…
$1$VNMbpxGH$sew7cnwH9ixU.x27UbFNn.
…e.g…
anon1:$1$VNMbpxGH$sew7cnwH9ixU.x27UbFNn.:14284:0:99999:7:::

yapet

config file is ~/.yapet
password file is ~/syncd/.pw.pet

load=~/syncd/.pw.pet

chown mbc /home/mbc/owncloud/.pw.pet
chmod 0600 /home/mbc/owncloud/.pw.pet

for Manjaro there is a bug in cfg.h, must edit

diff -uNr yapet-1.0.orig/yapet/cfg.h yapet-1.0/yapet/cfg.h
--- yapet-1.0.orig/yapet/cfg.h 2014-02-23 10:18:41.000000000 -0700
+++ yapet-1.0/yapet/cfg.h 2016-04-14 07:06:49.665672169 -0700
@@ -163,7 +163,7 @@
locked = false;
}

- void is_locked() const {
+ bool is_locked() const {
return locked;
}

https://bugs.guengel.ch/attachment.cgi?id=20&action=edit

must run makepkg
go into yapet-1.0/yapet/cfg.h edit line 167
go into src and ./config then make then make install
if you keep doing mkpkg, you will overwrite the edited cfg.h

Flash player

download from adobe and unpack
cp -r usr/* /usr
some files will conflict with dirs but doesn’t seem to matter

~/.mozilla/plugins/libflashplayer.so is where it goes, may need to make the plugins directory

#apt-get install flashplugin-nonfree

to upgrade
#update-flashplugin-nonfree –install

On chromium - Stretch

deb http://www.deb-multimedia.org stretch main non-free
to /etc/apt/sources.list, then

apt-get update
apt-get install deb-multimedia-keyring
apt-get install flashplayer-chromium

Boot into root prompt

wait for Grub to load, then press e to edit Debian’s entry. After the line with /vmlinuz… add the following:

–add rw init=/bin/bash

add at the end of the line - it is a switch
And press F10 to boot. Debian will load as a shell with root permissions,

to cure the “A start job is running for Create Volatile Files and Directories”

1
2
3
rm -rf /tmp
mkdir /tmp
chmod 1777 /tmp

Stop beep when cursor reaches limit

in /etc/modprobe.d/blacklist.conf

blacklist pcspkr
blacklist snd_pcsp

Bluetooth

$ systemctl status bluetooth

aptitude install blueman

USB with windows

edit fstab so automount mounts as FAT

/dev/sdb1 /media/usb0 vfat rw,user,umask=000,utf8,flush,noauto 0 0

The “user” and “noauto” will allow the user to mount the device automatically when inserted.

The “umask=000” will allow read / write access to everyone.

When you’re done, save fstab, exit gedit, and back in the Terminal type:
sudo mount -a

Printing

aptitude update
aptitude install cups cups-client

/etc/init.d/cups start

sudo usermod -a -G lpadmin pl

Now you can add a printer by going to http://localhost:631/

Use the CUPS driver when queried for LaserJet 4L

Selecting []Print Server in the initial setup may have installed all this

Firefox

https://support.mozilla.org/en-US/questions/1026743

To fix download problem:

Stop Firefox from telling the web server that you will accept compressed files? Here’s how:

(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(2) In the search box above the list, type or paste enco and pause while the list is filtered

(3) Double-click the network.http.accept-encoding preference ( gzip, deflate is the value)

(A) If it has the default value (line is not bolded), delete all of the text and click OK.

(B) If it has a customized value, copy the current value to a safe place for potential later use, then delete all of the text and click OK.

When you visit the site again, Firefox should omit the usual headers saying that it accepted gzip/deflate encoded responses. Any difference?

Share