X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml_tips;h=25d448c3fc4d00841bf711df8788550a222a03f7;hb=a79b328eec35dd3dd30e6d04385be81dda918b6b;hp=a19b87e372f1fe5b354564fa7936e730123bcdb3;hpb=e5351c50544ebb5f6fdb51ddeba55a0ffeac6253;p=grml-tips.git diff --git a/grml_tips b/grml_tips index a19b87e..25d448c 100644 --- a/grml_tips +++ b/grml_tips @@ -1,50 +1,3 @@ -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 @@ -101,53 +54,6 @@ Configure mutt: 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 - -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 @@ -219,8 +125,8 @@ Start X window system (XFree86 / Xorg / X.org): 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 -- @@ -281,10 +187,9 @@ Online documentation: 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 -- @@ -334,19 +239,13 @@ Also take a look at shred(1), sfill(1) and http://dban.sourceforge.net/ 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/ @@ -363,7 +262,7 @@ Help us - donate! http://grml.org/donations/ -Tags: grml, dontations +Tags: grml, donation -- Commercial support / system administration / adjusted live-cds: @@ -416,13 +315,13 @@ Play movie: % 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: @@ -503,7 +402,7 @@ Grep with highlighting: % grep --color=auto ... % hgrep ... -Tags: grep, color, highlighte +Tags: grep, color, highlight -- Extract matches when grepping: @@ -516,12 +415,6 @@ Output text as sound: % 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 @@ -769,14 +662,6 @@ or 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 @@ -1120,120 +1005,6 @@ Install Gentoo using grml: 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 @@ -3416,7 +3187,7 @@ eg. 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: