make a dos boot partition ‘o’ i think
1: +60G (use ‘a’ to make bootable) 2: +170G 3: +8 Swap
set type with t
. 83 = linux, 82 = swap. 1,2 are linux, 3 is swap.
genfstab -U /mnt >> /mnt/etc/fstab
- add archlinuxfr repo to /etc/pacman.conf
[archlinuxfr]
Server = http://repo.archlinux.fr/$arch
pacman -Syy
pacman -S iw wpa_supplicant dialog grub xorg awesome emacs pacman -S xorg-xinit xterm xf86-video-intel chromium zsh sudo pacman -S rxvt-unicode base-devel git unzip autocutsel net-tools pkgfile ifplugd slim
openssh ttf-dejavu alsa-utils conky firefox jdk8_openjdk clojure vlc cups cups-pdf nodejs npm maven the_silver_searcher
yaourt need signatures…
- yaourt
datomic
- grub-install –target=i386-pc /dev/sda
- grub-mkconfig -o /boot/grub/grub.cfg
- exit; umount /mnt; reboot
remove USB boot media
- systemctl enable netctl-auto@wlp1s0.service
- reboot
wifi-menu -o
- reboot
useradd -m -G wheel -s /bin/zsh fenton
- visudo, uncomment wheel no passwd
- edit /home/fenton/xinitrc
exec awesome
login as fenton and press 0 for a default .zshrc file
edit /etc/slim.conf so auto login the fenton user
- systemctl enable slim
/etc/default/grub
then regenerate grub config with:
(1) Copy
~/.ssh/id_rsa ~/.ssh/id_rsa.pub
into home folder of new machine. Then while in home folder of new machine do:
mkdir .ssh
chmod 700 .ssh
mv id_rsa* .ssh
cd .ssh
cat id_rsa.pub > authorized_keys
chmod 600 authorized_keys
now you should be able to ssh into the new machine from the old one.
ssh fenton@new-machine-ip
it shouldn’t prompt for a password.
╭─fenton@archlinux ~ ‹master*› ╰─➤ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 167.7G 0 disk ├─sda1 8:1 0 150G 0 part / └─sda2 8:2 0 17.7G 0 part sdc 8:32 1 14.9G 0 disk └─sdc1 8:33 1 14.9G 0 part ╭─fenton@archlinux ~ ‹master*› ╰─➤ sudo mount /dev/sdc1 usb ╭─fenton@archlinux ~ ‹master*› ╰─➤ cp -a .ssh usb ╭─fenton@archlinux ~ ‹master*› ╰─➤ cd usb ╭─fenton@archlinux ~/usb ╰─➤ git clone ~ 128 ↵ Cloning into 'fenton'... done. ╭─fenton@archlinux ~/usb ╰─➤ cd .. ╭─fenton@archlinux ~ ‹master*› ╰─➤ sudo umount usb
mount usb install media on old computer cp -a .ssh usb
sudo mount /dev/sd?1 usb
where ? above is whatever you get back from lsblk
command.
Install oh-my-zsh
cp -a usb/.ssh . chmod -R 644 .ssh/* cd .ssh chmod 600 authorized_keys id_rsa git clone git@github.com:ftravers/arch-home.git cp -a arch-home/* . cd ~/usb cp -a fenton/* ~ mv .zshrc .zshrc-bak ln -s .zshrc-lenovo .zshrc
Once computer is connected do:
git config --global user.email "fenton.travers@gmail.com" git config --global user.name "Fenton Travers" git clone git@github.com:ftravers/home-dir.git cd home-dir cp * .* ..
Fire up emacs and see that it downloads and installs all the packages it needs.
Pick which .Xresources to use.
ln -s .Xresources-* .Xresources
sudo pacman -S xcape autocutsel conky rxvt-unicode ntp pkgfile
Link one of the .zshrc-* files
ln -s .zshrc-dell .zshrc
sudo timedatectl set-timezone America/Vancouver
sudo vi /etc/locale.gen uncomment:
en_US ISO-8859-1 en_US.UTF-8 UTF-8
AS ROOT DO:
╭─fenton@archlinux ~ ‹master*› ╰─➤ cat > /etc/locale.conf LANG=en_US.UTF-8
# sudo locale-gen
to have a nice terminal prompt follow:
https://powerline.readthedocs.io/en/latest/installation/linux.html#fonts-installation
download, unzip, drop in /bin
Below might be all you have to do
yaourt brother-hll2340dw
Ensure cups is installed.
sudo systemctl enable org.cups.cupsd.service
Go to admin and add printer:
http://localhost:631
The above should be sufficient…i got it to work i think without downloading the rpm’s below…, but i may have installed the rpm’s months ago…dunno.
The below may or may not help at all.
sudo pacman -S rpmextract
download lpr and cups hll2320d rpm wrapped drivers from brothers website
╭─fenton@archlinux ~/Downloads ‹master*› ╰─➤ cd / ╭─fenton@archlinux / ╰─➤ sudo rpmextract.sh hll2320dcupswrapper-3.2.0-1.i386.rpm ╭─fenton@archlinux / ╰─➤ sudo rpmextract.sh hll2320dlpr-3.2.0-1.i386.rpm
╭─fenton@archlinux ~/docs-DIR/data/brother-printer-drivers ‹master*› ╰─➤ pwd /home/fenton/docs-DIR/data/brother-printer-drivers ╭─fenton@archlinux ~/docs-DIR/data/brother-printer-drivers ‹master*› ╰─➤ ls hll2320dcupswrapper-3.2.0-1.i386.rpm hll2320dlpr-3.2.0-1.i386.rpm
sudo systemctl enable org.cups.cupsd.service
in order to release libraries into clojars need to have dirs:
~/.gnupg and ~/.lein
Check you have the right link in
/home/fenton/.config/awesome/rc.lua
Ensure the following line is actually pointing to something:
awful.util.spawn_with_shell("conky -c ~/.conky/left")
/home/fenton/.config/awesome/rc.lua
awful.key({ }, "#122",
-- function (c) awful.util.spawn_with_shell("amixer -D pulse sset Master 10%-") end,
function (c) awful.util.spawn_with_shell("pactl set-sink-volume -10%") end,
Download the Debian package from the manufacturer’s website
http://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=ds620_all
and install it via
sudo dpkg --force-depends -i libsane-dsseries_1.0.5-1_yourArchitecture.deb
Prior to using a sane frontend, load module sg.
sudo modprobe sg
╭─fenton@dell ~/Downloads ‹master*› ╰─$ scanimage -L device `dsseries:usb:0x04F9:0x60E0' is a BROTHER DS-620 sheetfed scanner ╭─fenton@dell ~/Downloads ‹master*› ╰─$ scanimage --format=png --output-file test.png --progress ╭─fenton@dell ~/Downloads ‹master*› ╰─$ feh test.png