Skip to content

Instantly share code, notes, and snippets.

@thaarok
Created December 9, 2013 22:00
Show Gist options
  • Save thaarok/7881771 to your computer and use it in GitHub Desktop.
Save thaarok/7881771 to your computer and use it in GitHub Desktop.
LVM:
parted /dev/sda print
pvcreate /dev/sda1
vgcreate imladris /dev/sda1
lvcreate --contiguous y --name root --size 40G imladris
parted /dev/sda set 1 boot on
---------------------------------------------------------------------
mount /dev/sda1 /mnt/disk1/
cdebootstrap --arch=amd64 stable /mnt/disk1/ http://ftp.cz.debian.org/debian/
mount /dev /mnt/disk1/dev/ -o bind
mount -t proc none /mnt/disk1/proc
chroot /mnt/disk1/ /bin/bash
---------------------------------------------------------------------
ls /proc
ls /dev
export LC_ALL=C
export LOCALE=C
export TERM=screen
# balíčky:
nano /etc/apt/sources.list
aptitude update && aptitude && aptitude clean
dpkg --add-architecture i386
# lokalizace:
aptitude install locales console-setup
dpkg-reconfigure locales
dpkg-reconfigure console-setup
dpkg-reconfigure keyboard-configuration
nano /etc/default/rcS
dpkg-reconfigure tzdata
# usnadnění práce:
aptitude install bash-completion less gpm
aptitude install ntp parted htop mc links2 screen
aptitude install usbutils pciutils lshw
. /etc/bash_completion
# lvm:
aptitude install lvm2
# jádro a připojené oddíly:
aptitude install linux-image-686-pae linux-image-amd64 grub2 memtest86+
ls -l /dev/disk/by-uuid/
nano /etc/fstab
# jméno počítače:
nano /etc/hostname
hostname
# užitečné balíky:
aptitude install alsa-base alsa-utils
aptitude install unar
aptitude install n2n nmap ssh
aptitude install yakuake
tasksel install standard
# nastavení, na které nezapomenout:
passwd
##########
# zmatek:
#update-initramfs -h
#update-initramfs -u -k all
select-default-wordlist
cat /etc/fstab
vi /etc/fstab
dhclient eth0
cat /etc/hosts
nano -w .bashrc
nano -w /etc/bash.bashrc
aptitude install wpasupplicant
nano /etc/default/rcS
cat /proc/cpuinfo
sysctl -a|less
less /etc/bash.bashrc
aptitude install xserver-xorg xserver-xorg-input-all
man adduser
man useradd
useradd erumoico
passwd erumoico
users
mkdir /home/erumoico
man chmod
ls /home/
usermod -d /home/erumoico erumoico
aptitude install kdm
aptitude install kde-full
aptitude install alsamixer
aptitude install knetworkmanager
aptitude install kopete
aptitude install kde-i18n-cs
/etc/init.d/kdm restart
alsamixer
aptitude install iproute
aptitude install tspc
aptitude clean
aptitude update && aptitude safe-upgrade && aptitude clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment