-Install grml to harddisk:
-
-# grml2hd
-
-Notice: You can pre-select the partition for the partition selector
-and mbr dialogs inside grml2hd using:
-# grml2hd /dev/hda1 -mbr /dev/hda
-
-See: man grml2hd + http://grml.org/grml2hd/
-
-Tags: grml2hd, installation
---
-Install grml on software RAID level 1:
-
-Create /dev/md0 (and some more /dev/md* devices) first of all:
-# cd /dev && MAKEDEV dev
-
-Create RAID:
-# mdadm --create --verbose /dev/md0 --level=raid1 \
- --raid-devices=2 /dev/hda1 /dev/hdc1
-
-Finally install grml on it:
-# SWRAID='mbr-only' grml2hd /dev/md0 -mbr /dev/md0
-
-See: man grml2hd + http://grml.org/grml2hd/
-
-Tags: grml2hd, installation, mdadm, raid
---
-Install grml in non interactive mode with grml2hd:
-
-Adjust configuration as needed:
-# vim /etc/grml2hd/config
-
-Then execute:
-
-# GRML2HD_NONINTERACTIVE=yes grml2hd
-
-or run:
-
-# grml2hd -i
-
-Use with care and only if you really know what you are doing!
-
-See: man grml2hd + http://grml.org/grml2hd/
-
-Tags: grml2hd, installation
---
Configure network:
# grml-network
Tags: mutt
--
-Configure mutt-ng / muttng:
-
-% grml-muttng
-
-Tags: muttng
---
-Set up Inode-PPTP connection:
-
-# grml-pptp-inode
-or
-# grml-pptp-xdsl-students
-
-Tags: pptp, inode, xdsl
---
-Set up VPN / WLAN connection at TUG (TU Graz):
-
-Set ESSID and request for ip-address via DHCP:
-# iwconfig $DEVICE essid tug
-# dhclient $DEVICE
-
-Now run the main script:
-# grml-vpnc-tugraz
-
-After running the script an init script is available:
-
-# /etc/init.d/vpnctug [start|stop]
-
-Tags: tug
---
-Set up PPTP connection at VCG (Virtual Campus Graz):
-
-# grml-pptp-vcgraz
-
-Tags: pptp, vcg
---
-Set up VPN:
-
-# grml-vpn <options>
-
-Usage example:
-
-# grml-vpn -k 2005 add 1000 192.168.20.1 192.168.20.2
-
-See: man grml-vpn
-
-Tags: grml, vpn, network
---
Use encrypted files / partitions:
# grml-crypt <options>
Usage examples:
% grml-x fluxbox
-% grml-x -mode '1024x768' wmii
-% grml-x -nosync wm-ng
+% grml-x -mode '1024x768' fluxbox
+% grml-x -nosync
Tags: grml-x, x11, xorg, graphic
--
Tags: info, grml, grml-info, documentation
--
-Mount ntfs partition (read-write):
+Mount NTFS partition (read-write):
-# modprobe fuse
-# ntfsmount /dev/hda1 /mnt/hda1
+# mount.ntfs-3g /dev/sda1 /mnt/sda1
Tags: ntfs, mount
--
Tags: delete, secure, wipe, shred
--
-Use grml on Samsung X20 laptop:
-
-# apt-get install grml-samsung-x20
-
-See: http://www.michael-prokop.at/computer/samsung_x20.html
---
Development information regarding grml:
- http://grml.supersized.org/
+ http://blog.grml.org/
Tags: blog, grml, developmnet
--
-Contact grml team:
+Contact Grml team:
#grml on irc.freenode.org - http://grml.org/irc/
http://grml.org/contact/
http://grml.org/donations/
-Tags: grml, dontations
+Tags: grml, donation
--
Commercial support / system administration / adjusted live-cds:
% mplayer /path/to/movie
-Tags: movie
+Tags: movie, mplayer
--
Use webcam with mplayer:
% mplayer tv:// -tv driver=v4l:width=352:height=288:outfmt=yv12:device=/dev/video0
-Tags: webcam
+Tags: webcam, mplayer
--
Powerful network discovery tool:
% grep --color=auto ...
% hgrep ...
-Tags: grep, color, highlighte
+Tags: grep, color, highlight
--
Extract matches when grepping:
% say 'ghroummel'
% xsay # when running X and text selected via mouse
--
-Adjust a grml harddisk (grml2hd) installation:
-
-# grml2hd-utils
-
-Tags: grml2hd, configuration, installation
---
Get information on movie files:
% tcprobe -i file.avi
# loadkeys i386/qwertz/de-latin1-nodeadkeys.kmap.gz # console
% setxkbmap de # X11
-Tags: languae, keyboard, configuration
+Tags: language, keyboard, configuration
--
Switch setting of caps-control key (switch between ctrl + shift) on keyboard:
Tags: ssh, ssh key, public key, ssh-copy-id, ssh-keygen
--
-Update /etc/fstab entries:
-
-# grml-rebuildfstab
-
-See "man grml-rebuildfstab" for more details about
-generation of /etc/fstab (including stuff like
-fs LABELs / UUIDs,...).
---
Fetch and potentially change SCSI device parameters:
# sdparm /dev/sda
See http://www.gentoo.org/doc/en/altinstall.xml
--
-Install (plain) Debian (sarge release) via grml:
-
-Assuming you want to install Debian to sda1:
-
-mkfs.ext3 /dev/sda1 # make an ext3 filesystem on /dev/sda1
-mount -o rw,suid,dev /dev/sda1 /mnt/test # now mount the new partition
-debootstrap sarge /mnt/test ftp://ftp.tugraz.at/mirror/debian # get main packages from a debian-mirror
-chroot /mnt/test /bin/bash # let's chroot into the new system
-mount -t devpts none /dev/pts # ...otherwise running base-config might fail ("Terminated" or "openpty failed")
-mount -t proc none /proc # make sure we also have a mounted /proc
-base-config # now configure some main settings
-vi /etc/mkinitrd/mkinitrd.conf # adjust $ROOT (to /dev/sda1) for your new partition, autodetection will fail in chroot
-cd /dev ; ./MAKEDEV generic # make sure we have all necessary devices for lilo
-apt-get install lilo linux-image-2.6.12-1-386 # install lilo and a kernel which fits your needs
-cp /usr/share/doc/lilo/examples/conf.sample /etc/lilo.conf # let's use a template
-vi /etc/lilo.conf && lilo # adjust the file for your needs and run lilo afterwards
-umount /proc ; umount /dev/pts # we do not need them any more
-exit # now leave chroot
-cp /etc/hosts /etc/fstab /mnt/test/etc/ # you might want to take the existing files...
-cp /etc/network/interfaces /mnt/test/etc/network/ # ...from the running grml system for your new system
-umount /mnt/test && reboot # unmount partition and reboot...
-
-See also: http://www.debian.org/releases/stable/i386/apcs04.html.en
-Avoid all of the above steps - use grml-debootstrap(8) instead!
-
-Tags: manual, installation, debian, debootstrap
---
-Install (plain) Debian (etch release) via grml
-
-Assuming you want to install Debian to sda1:
-
-mkfs.ext3 /dev/sda1 # make an ext3 filesystem on /dev/sda1
-mount -o rw,suid,dev /dev/sda1 /mnt/test # now mount the new partition
-debootstrap etch /mnt/test ftp://ftp.tugraz.at/mirror/debian # get main packages from a debian-mirror
-chroot /mnt/test /bin/bash # let's chroot into the new system
-mount -t proc none /proc # make sure we have a mounted /proc
-apt-get install locales console-data # install locales
-dpkg-reconfigure locales console-data # adjust locales to your needs
-apt-get install vim most zsh screen less initrd-tools file grub \
- usbutils pciutils bzip2 sysfsutils dhcp3-client resolvconf \
- strace lsof w3m # install useful software
-apt-get install linux-headers-2.6-686 linux-image-686 # install current kernel
-
-echo "127.0.0.1 localhost" > /etc/hosts # adjust /etc/hosts and network:
-cat >> /etc/network/interfaces << EOF
-iface lo inet loopback
-iface eth0 inet dhcp
-auto lo
-auto eth0
-EOF
-
-ln -sf /usr/share/zoneinfo/Europe/Vienna /etc/localtime # adjust timezone and /etc/fstab:
-cat >> /etc/fstab << EOF
-sysfs /sys sysfs auto 0 0
-proc /proc proc defaults 0 0
-/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
-/dev/sda2 none swap sw 0 0
-/dev/cdrom /mnt/cdrom0 iso9660 ro,user,noauto 0 0
-EOF
-passwd # set password of user root
-
-mkdir /boot/grub # setup grub
-cp /usr/share/doc/grub/examples/menu.lst /boot/grub
-cat >> /boot/grub/menu.lst << EOF
-title Debian Etch, kernel 2.6.18-3-686 (on /dev/sda1)
-root (hd0,0)
-kernel /boot/vmlinuz-2.6.18-3-686 root=/dev/sda1 ro
-initrd /boot/initrd.img-2.6.18-3-686
-EOF
-vim /boot/grub/menu.lst # adjust grub configuration to your needs
-cd /dev && MAKEDEV generic # create default devices
-cp -i /usr/lib/grub/i386-pc/* /boot/grub/ # copy stage-files to /boot/grub/
-grub install # now install grub, run in grub-cmdline following commands:
-> root (hd0,0)
-> setup (hd0)
-> quit
-umount -a # unmount all filesystems in chroot and finally:
-exit # exit the chroot and:
-reboot
-
-If you want to use lilo instead of grub take a look at
-/usr/share/doc/lilo/examples/conf.sample or use the following template:
-
-cat > /etc/lilo.conf << EOF
-# This allows booting from any partition on disks with more than 1024 cylinders.
-lba32
-
-# Specifies the boot device
-boot=/dev/sda1
-
-# Specifies the device that should be mounted as root.
-root=/dev/sda1
-
-# use Debian on software raid:
-# raid-extra-boot=mbr-only
-
-install=text
-# prompt
-timeout=1
-map=/boot/map
-vga=normal
-
-image=/boot/vmlinuz-2.6.18-grml
- label="2.6.18-grml"
- #append="...."
- read-only
- initrd=/boot/initrd.img-2.6.18-grml
-EOF
-
-See also: http://www.debian.org/releases/stable/i386/apcs04.html.en
-Avoid all of the above steps - use grml-debootstrap(8) instead!
-
-Tags: manual, installation, debian, debootstrap, howto
---
Convert files from Unicode / UTF-8 to ISO:
% iconv -c -f utf8 -t iso-8859-15 < utffile > isofile
cfdisk /dev/hda # create a partition with type 8e (lvm)
pvcreate /dev/hda2 # create a physical volume
-vgcreate resize_me /dev/hda2 # create volume group
-lvcreate -n resize_me -L100 resize_me # create a logical volume
-mkfs.ext3 /dev/resize_me/resize_me # now create a new filesystem
-mount /dev/resize_me/resize_me /mnt/test # mount the new fs for demonstrating online resizing
+vgcreate vg0 /dev/hda2 # create volume group
+lvcreate -n resize_me -L1G vg0 # create a logical volume
+mkfs.ext3 /dev/mapper/vg0-resize_me # now create a new filesystem
+mount /dev/mapper/vg0-resize_me /mnt/test # mount the new fs for demonstrating online resizing
df -h # check the size of the partition
-lvextend -L+100M /dev/resize_me/resize_me # let's extend the logical volume
-resize2fs /dev/resize_me/resize_me # and finally resize the filesystem
+lvextend -L+2G /dev/mapper/vg0-resize_me # let's extend the logical volume
+resize2fs -p /dev/mapper/vg0-resize_me # and finally resize the filesystem
df -h # recheck the size of the partition
This also works for Software-RAID. Demo:
deb http://localhost:9999/debian unstable main contrib non-free
use approx in grml-debootstrap like:
-% grml-debootstrap -r lenny -t /dev/sda1 -m http://127.0.0.1:9999/debian
+% grml-debootstrap -r squeeze -t /dev/sda1 -m http://127.0.0.1:9999/debian
--
Simple webserver with python:
or
wget http://tokland.googlecode.com/svn/trunk/archlinux/arch-bootstrap.sh
--
+Export blockdevices via AoE (ATA over Ethernet):
+
+% vblade -m 11:22:33:44:55:66 160 2 eth0 /dev/sdb1
+
+Allow the host with the mac address 11:22:33:44:55:66 to access /dev/sdb1
+via eth0, using the shelf and slot numbers 160 and 2. These numbers are
+arbitrary but should be unique within the network.
+
+A word of warning: AoE is prone to all kind of nasty ethernet attacks,
+especially arp spoofing. Do not use in hostile networks.
+
+Tags: aoe, blockdevice, export, server
+--
+Access blockdevices via AoE (ATA over Ethernet):
+
+% sudo aoe-discover
+
+and the device should show up under /dev/etherd/. If your shelf and
+slot numbers re 160 and 2 the device will be /dev/etherd/e160.2
+
+A word of warning: AoE is prone to all kind of nasty ethernet attacks,
+especially arp spoofing. Do not use in hostile networks.
+
+Tags: aoe, blockdevice, export, client
+--