User Tools

Site Tools



Just my notes for fresh debian installations. Till now i always start from beginning again what packages are needed to compile mplayer etc. This is desktop-based.

# boot a knoppix, grml or other debian-based livecd. Must have debootstrap onboard.
fdisk /dev/sda       # create partitions, at least one for / and one for swap.
cat /proc/partitions # see if partitions come up, if not execute 'partprobe' or reboot
mkfs.ext4 /dev/sda1  # create filesystem

mkdir /new
# mount fresh partition
mount /dev/sda1 /new
cd /new

# create fresh debian with arch amd64
debootstrap --arch=amd64 sid /mnt/tmp
echo 'proc /proc proc defaults 0 0' >etc/fstab
echo 'sysfs none sysfs defaults 0 0' >>etc/fstab
echo '/dev/sda1 / ext4 relatime,errors=remount-ro 0 1'  >>etc/fstab
mount -t proc none /new/proc
mount -t sysfs none sys/
mount -t devtmpfs none dev
chroot /new /bin/bash

apt-get update
apt-get dist-upgrade
echo 'latern' >/etc/hostname
echo ' latern localhost' >/etc/hosts
echo "alias ll='ls -al'" >>/etc/profile
echo "export EDITOR=vi" >>/etc/profile

apt-get install locales console-data screen
apt-cache search linux-image                # what linux-images are there?
apt-get install linux-image-amd64
echo '(hd0) /dev/sda' >/boot/grub/
grub-install /dev/sda

apt-get install ssh                         # ensure basic access to the system via network

reboot # boot fresh system
passwd # set root-pw
vi /etc/network/interfaces # setup networking
/etc/init.d/network restart

apt-get install wmaker wmaker-data x11-apps # install windowmaker and some suggestions
apt-get install xdm xfonts-75dpi xfonts-base xfonts-efont-unicode \
   xfonts-scalable xfstt xinit xserver-xorg mesa-utils xutils xserver-xorg-core
# now x is configured, windowmaker comes up after executing 'startx' or run from xdm

apt-get install firefox-esr gkrellm xterm lsof less strace sudo
# add user for working, visudo to extend permissions
# add user to groups audio and video

apt-get install mpg123 alsa-oss alsa-tools alsa-utils libasound2-plugins binfmt-support
apt-get install mplayer

# japanese input
apt-get install ibus ibus-anthy ibus-kkc ibus-qt4 libqt5gui5

# japanese fonts
apt-get install emacs-intl-fonts xpdf fonts-ipafont \
  xfonts-100dpi-transcoded xfonts-75dpi-transcoded ttf-baekmuk \
  unifont xfonts-baekmuk xfonts-intl-asian xfonts-intl-chinese \
  xfonts-intl-chinese-big xfonts-intl-japanese \
  xfonts-intl-japanese-big xfonts-marumoji xfonts-shinonome \
  xfonts-intl-asian xfonts-intl-european xfonts-intl-phonetic \
  ttf-freefont xfonts-ayu xfonts-efont-unicode xfonts-mplus \
  gsfonts-x11 dvi2ps-fontdata-three xfonts-kaname
software/debianinstall.txt ยท Last modified: 2019/12/26 19:11 by chris