# HG changeset patch # User Oleksandr Gavenko # Date 1323116998 -7200 # Node ID dde32ede80c9bcf093d19bcbf9ebd1dfd57a47d6 # Parent c9db14f02d7a93a69bdb5ba6e7ba9bbeaea06f15# Parent 020a9bc396a038826c1cd1a54cadd3db665997d7 merged diff -r c9db14f02d7a -r dde32ede80c9 debian-isntall.rst --- a/debian-isntall.rst Mon Dec 05 00:57:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ --*- mode: outline; coding: utf-8; -*- - -* Installing Debian. - - * Download Debian iso CD/DVD image no. 1. - * Burn it to CD/DVD. - * Boot from this media. - * Follow instructions. - -* Configuring new system. - -** Installing additional packages. - -They need to install drivers, browsing file system, editing file etc. - - * menu - * emacs - * mc - * sudo - * gcc - * make - * linux-headers - * xserver - * xterm - * fvwm - -** Become sudouser. - - $ su - ... - $ emacs /etc/sudoers - ... - $ grep -v "^#" /etc/sudoers - Defaults env_reset - - root ALL=(ALL) ALL - user ALL=(ALL) ALL - $ ^D - -** Mount additional partitions. - -*** See existed partitions. - - $ sudo /sbin/sfdisk -l - ... - -*** Mounting needed partitions by hands. - - $ sudo mkdir /mnt/wininst - $ sudo mount -t ntfs -o ro /dev/sdb2 /mnt/wininst - -*** Automatic mounting partitions. - - $ sudo addgroup win - $ sudo addgroup user win - $ sudo emacs /etc/fstab - ... - $ cat /etc/fstab - # /etc/fstab: static file system information. - # - # - proc /proc proc defaults 0 0 - /dev/sdc1 / ext3 defaults,errors=remount-ro 0 1 - /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0 - - /dev/sdb1 /mnt/winsys ntfs ro,nls=utf8,gid=win,dmask=222,fmask=337 0 0 - /dev/sdb2 /mnt/wininst ntfs ro,nls=utf8,gid=win,dmask=222,fmask=337 0 0 - # /dev/sdb3 /mnt/winbin ntfs-3g rw,utf8,force,gid=win,dmask=002,fmask=113 - /dev/sdb3 /mnt/winbin ntfs rw,utf8,nls=utf8,gid=win,umask=000 0 0 - /dev/sdc2 /mnt/fat vfat rw,utf8,gid=win,dmask=222,fmask=337 0 0 - /dev/sda5 /mnt/music ntfs ro,nls=utf8,gid=win,dmask=222,fmask=337 0 0 - /dev/sdd1 /mnt/usb vfat rw,shortname=winnt,utf8,quiet,gid=win,dmask=002,fmask=111 0 0 - -*** diff -r c9db14f02d7a -r dde32ede80c9 debian.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian.rst Mon Dec 05 22:29:58 2011 +0200 @@ -0,0 +1,92 @@ +.. -*- coding: utf-8; -*- + +========= + Debian. +========= +.. contents:: + +Installing Debian. +================== + + * Download Debian iso CD/DVD image no. 1. + * Burn it to CD/DVD. + * Boot from this media. + * Follow instructions. + +Configuring new system. +======================= + +Installing additional packages. +------------------------------- + +They need to install drivers, browsing file system, editing file etc: + + * menu + * emacs + * mc + * sudo + * gcc + * make + * linux-headers + * xserver + * xterm + * fvwm + +Become sudouser. +---------------- +:: + + $ su + ... + $ emacs /etc/sudoers + ... + $ grep -v "^#" /etc/sudoers + Defaults env_reset + + root ALL=(ALL) ALL + user ALL=(ALL) ALL + $ ^D + +List existed partitions. +------------------------ +:: + + $ sudo /sbin/sfdisk -l + ... + +Mount additional partitions. +---------------------------- + +Partition mounting by hands:: + + $ sudo mkdir /mnt/wininst + $ sudo mount -t ntfs -o ro /dev/sdb2 /mnt/wininst + +Automatic partition mounting:: + + $ sudo addgroup win + $ sudo addgroup user win + $ sudo emacs /etc/fstab + ... + $ cat /etc/fstab + # /etc/fstab: static file system information. + # + /dev/sdc1 / ext3 defaults,errors=remount-ro 0 1 + /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0 + /dev/sdb1 /mnt/winsys ntfs ro,nls=utf8,gid=win,dmask=222,fmask=337 0 0 + /dev/sdb2 /mnt/wininst ntfs ro,nls=utf8,gid=win,dmask=222,fmask=337 0 0 + # /dev/sdb3 /mnt/winbin ntfs-3g rw,utf8,force,gid=win,dmask=002,fmask=113 0 0 + /dev/sdb3 /mnt/winbin ntfs rw,utf8,nls=utf8,gid=win,umask=000 0 0 + /dev/sdc2 /mnt/fat vfat rw,utf8,gid=win,dmask=222,fmask=337 0 0 + /dev/sda5 /mnt/music ntfs ro,nls=utf8,gid=win,dmask=222,fmask=337 0 0 + /dev/sdd1 /mnt/usb vfat rw,shortname=winnt,utf8,quiet,gid=win,dmask=002,fmask=111 0 0 + +Installing and configuting documentation. +========================================= + +Documentation packages end with ``-doc`` suffix. + +To browse all docs in HTML form install:: + + $ sudo apt-get install dhelp info2www man2html swish++ + diff -r c9db14f02d7a -r dde32ede80c9 net.rst --- a/net.rst Mon Dec 05 00:57:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ --*- mode: outline; coding: utf-8; -*- - -* Ukraine internet provider. - -** Utel. - -User - none, password - none, phone - '*99***1#' or '*99#'. - -** Peoplenet. - -User and password you get by sending SMS message to '920' number. Phone '#777'. - -* DNS to IP address. - - $ nslookup example.com - -* IP to DNS address. - - $ nslookup 192.168.1.1 - -* NetBIOS to IP address. - -By nbtstat.exe command from MS you can print NetBIOS name cache with -name-to-IP address mappings: - - $ nbtstat -c - -* List of NetBIOS name. - - $ nbtstat -r - -* List of open ports. - -** Windows. - - cmd> netstat # with DNS name resolution, TCP only - cmd> netstat -n # without name resolution, TCP only - cmd> netstat -a -n # TCP and UDP - cmd> netstat -s # show IP, ICMP, TCP, and UDP statistics. - -** Linux. - - $ netstat - -* Which processes open port? - -** Windows - - cmd> netstat -o # show PID - cmd> netstat -b # show also cmd name - cmd> netstat -b -v # show all modules (.exe and .dll) with full path - -* How disable IPv6? - -** Debian kernel 2.6/Ubuntu ("official" method)/Fedora Core. - -Comment in /etc/modprobe.d/aliases "alias net-pf-10 ipv6" and add alias -"net-pf-10 off", "alias ipv6 off": - - $ sudo emacs /etc/modprobe.d/aliases -... - $ cat /etc/modprobe.d/aliases -... -# alias net-pf-10 ipv6 -alias net-pf-10 off -alias ipv6 off -... - -Reboot or - - $ sudo update-modules - -Another way is adding to /etc/modprobe.d/blacklist.local lines - - blacklist ipv6 - -You can safely wipe out any IPv6 reference in "/etc/hosts" and -"/etc/network/interfaces". - -** RHEL4/Centos4. - -As for Debian, but "/etc/modprobe.d/aliases" has name "/etc/modprobe.conf". - -** KDE. - - $ cat /etc/environment -... -KDE_NO_IPV6=true -... - -** Firefox. - -See about:config page, set "network.dns.disableIPv6" to "true". - -* Windows. - -** Clear saved Windows networking passwords. - - cmd> rundll32.exe keymgr.dll, KRShowKeyMgr - cmd> control userpasswords2 # another way - -* Proxy auto-config. - - http://en.wikipedia.org/wiki/Proxy_auto-config -