Easy Slackware

  • View
    25

  • Download
    6

Embed Size (px)

Text of Easy Slackware

1

SlackwareI - Slackware linux , " Red Hat Red Hat, Slackware linux" " " . Slackware , , . , Slackware, , bsolute, , , Slackware . WM (DM) , . KDE, Gnome, XFC, LXDE, . , , . . , gentoo , , , , , , , . , . IceWM, openbox Enlightenment . WM , WM (Enlightenment DE, , ), fvwm , , , , . IceWM , , , , Openbox , , WM. Enlightenment E16 IceWM, , , IceWM, , . Enlightenment E17 , IceWM. Enlightenment "" , . WM - .

2

, WM(DM), KDE Slackware, , , , Slackware, . Slackware, , . Slackware , , . , ,

3

II - (Nvidia www.nvidia.com/object/unix.html www.nvidia.ru/Download/Find.aspx?lang=ru) font terminus repository.slacky.eu/slackware-*.*/system/terminus-font/4.30/terminus-font4.30-noarch-1bj.txz - - -ftp.yandex.ru/slackware/slackware-*.*-iso/slackware-*.*install-dvd.iso (ISO c ), * Slackware. - dvd - ( 19 /) liveCD gparted. - ext3, . , , , . 19 . - DVD ( bios CD)- ( - Enter,

) - Enter ( ) - root ( , fdisk )- setup - "ADDSWAP option" ,

- () - fstab - SOURCE - DVD (CD),

- SELECT - E-GNU Emacs, KDE, KDEI-Language support KDE, T-TeX, TCL, Y-Classic text-based BSD games - expert mode - cups ( )

4

- mysql - clisp ( ), gcc-fortran,gcc-gnat, ( ), ruby- pycups ( ), system-configuration-ptinter ( )

httpd ( ), php , proftpd, samba ( ), sendmail, vsftpd - - mplayer ( samba , ), audacious ( , .), sane ( ), seamonkey ( ), thunar-volman, xfce ( gnome), xsane - - - , ( , ) - utf-8 - - LILO - auto mode ( Slackware , , Windows, lilo MBR) - Cyr_a8x16 - , (ADSL - 198.162.1.2, 255.255.255.0, gateway 192.168.1.1, DNS ) - , ssh, bind, pcmcia ( ) . - root - exit - ctrl-alt-del - root - ( )installpkg terminus-font-4.30-noarch-1tm.txz

- /etc/X11/app-defaults/XTerm /root/XTerm XTerm*scrollBar: True XTerm*font: -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso10646-1 XTerm*geometry: 119x39+0+1

5

- startx (-, , :-) - , , netconfig, pppoe, etc

6

III - UTF-8

/etc/profile.d/lang.(c)sh.#!/bin/sh # en_US is the Slackware default locale: #export LANG=en_US # There is also support for UTF-8 locales, but be aware that # some programs are not yet able to handle UTF-8 and will fail # to run properly. In those cases, you can set LANG=C before # starting them. Still, I'd avoid UTF unless you actually need it. #export LANG=en_US.UTF-8 export LANG=ru_RU.UTF-8 # # # # # # One side effect of the newer locales is that the sort order is no longer according to ASCII values, so the sort order will change in many places. Since this isn't usually expected and can break scripts, we'll stick with traditional ASCII sorting. If you'd prefer the sort algorithm that goes with your $LANG setting, comment this out.

export LC_COLLATE=C # End of /etc/profile.d/lang.sh

/etc/rc.d/rc.keymap . " \" bash , , . xml- , " \" , , - , #!/bin/sh # Load the keyboard map. More maps are in #/usr/share/kbd/keymaps. if [ -x /usr/bin/loadkeys ]; then /usr/bin/loadkeys \ /usr/share/kbd/keymaps/i386/qwerty/ruwin_ct_sh-UTF-8.map.gz fi

.

7

- Ctrl-Shift cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi \ /etc/hal/fdi/policy/10-keymap.fdi

/etc/hal/fdi/policy/10-keymap.fdi. hal-setup-keymap base evdev us,ru ,winkeys terminate:ctrl_alt_bksp,grp:ctrl_shift_toggle,grp_led:scroll

slackware 13.1 /etc/X11/xorg.conf.d/90keyboard-layout.conf ( Ctrl-Shift).Section "InputClass"writeback Identifier "keyboard-all" MatchIsKeyboard "on" Driver "evdev" Option "XkbLayout" "us,ru" Option "XkbVariant" ",winkeys" Option "XkbOptions" "terminate:ctrl_alt_bksp,grp:ctrl_shift_toggle,grp_led:scroll" EndSection

CapsLock "terminate:ctrl_alt_bksp,grp:caps_toggle,grp_led:scroll"

/etc/rc.d/rc.font.unicode_start Cyr_a8x16 for i in 1 2 3 4 5 6;do echo -ne "\033%G" >/dev/tty$i done

8

- lilo

/etc/lilo.conf , append=" vt.default_utf8=0"

:append=" vt.default_utf8=1"

:/sbin/lilo -v

( , vt.default_utf8=1)- NTFS

/etc/fstab. /dev/sda* /mnt/sdb5 ntfs-3g locale=ru_RU.utf8,umask=000 1 0

( Xorg, ), . , www.linux.org.ru/wiki/en_Slackware_13_c_utf8, linuxforum.ru, unixforum.org, .

9

IV - Slackware - Slackware . ,

1 -

/var/log/packages, removepkg . installpkg . . , - . , , /var/log/removed-packages, "" , "" :-). DVD MANIFEST - , FILE_LIST - , PACKAGES.TXT - , DVD , www.slackware.org.uk/slackware/slackware-13.37/slackware. , , , , , , . PClinuxOS IceWM qt4 ( , IceWM qt, , ), googlearth. slackdeptrack darkstar.ist.utl.pt/slackware/addon/slacky/slackware13.0/utilities/slackdeptrack/0.1.3/ , , .

2 -

, DVD , . , . slacky.eu slackfind.net rlworkman.net/pkgs

10

connie.slackware.com/~alien/slackbuilds slackers.it www.teoxonline.com/utils/sse slak.homelinux.org www.z01.eu/slak www.teoxonline.com/utils/sse slakfinder.frattocchie.it/slak Slackware , , ( ) . zenwalk (packages.zenwalk.org/?v=current), ( ) salix absolute. . slapt-get gslapt, , . " Slackware" c . "", , . rpm rpm2tgz. rpm pkgs.org, . deb debian ( python, debain ). PackageConverter code.google.com/p/foxoman/wiki/PackageConverter, GUI alien, . - alien fakeroot co slackfind.net dpkg co slackbuilds.org. , , . slak.homelinux.org www.z01.eu/slak, , , www.debian.org/distrib/packages#search_packages, ubuntu, packages.ubuntu.com, . , , , . , , src source.

11

3 -

, , , , . slackbuilds - (make &&make install) - , . README, INSTALL , , . . worker-roxterm-juffed- , , . worker.tbz.- slackbuild

Slackbuild , . .SlackBuild /tmp ( , PKG= slackbuild). slackbuild - slackbuilds.org. , , slackbuilds.or, www.wuala.com/SergMarkov19/Slackbuilds. slackbuild , slackbuilds.org. slackbuild. , slackbuild, c c slackbuild, VERSION=. , slackbuild BUILD, , :-). slackbuild configure ( c ./configure --help ). slackbuilds.org , , ( ), VERSION ( ), . make &&make install , slackbuild , FAQ slackbuilds.org/faq . alien.slackbook.org/AST. - slapt-src, sourcery, sbopkg.

12

, . . source/, , src, source .-

, . freshmeat.net, sourceforge.net. , , , www.debian.org/distrib/packages packages.ubuntu.com/ru, , . , svn, git mercurial. , , youtube , . , , , :-) svn svn co ( checkout)

svn co -r

git git clone

mercurial hg clone -

, gcc . . . , linuxbase (tar, bz2, zlib ), (GTK, QT ), ("-O2 -march=i486 -mtune=i686"), .

13

python perl. ( , , :-), . x86 ( SSE). . autoconf ( configure) ~/.bashrc configure, configure ~/.bashrc. cmake ( CmakeLists.txt) /usr/share/cmake2.8/Modules/Compiler/GNU.cmake. qmake /usr/lib/qt/mkspecs/common/g++.conf. , configure cmake qmake. - ~/.bashrc ~/.bashrc# gcc export CHOST="i686-pc-linux-gnu" export CFLAGS="-O3 -march=native -mtune=native \ -fomit-frame-pointer -pipe -mmmx -m3dnow -falign-umps=1 \ -falign-labels=1" export CXXFLAGS="${CFLAGS}" export LDFLAGS="-Wl,-O1 -Wl,--as-needed"

: - O3 - - march=native mtune=native - (mtune , ) ( ) -march=i686 mtune=i686, . - mmmx (m3dnow, msse) - ( -march). cat /proc/cpuinfo. gcc.gnu.org/onlinedocs/gcc-4.4.4/gcc/i386-and-x86_002d64Options.html#i386-and-x86_002d64-Options. : -msse(1,2,3,4) sse, -mno-sse(1,2,3,4) - pipe - , . - fomit-frame-pointer - (frame pointer) , . , (frame pointer);

14

. . - falign* - ( PIII K6-2). - Wl,-O1 -Wl,--as-needed - ( ). -O3, , , , , . , -O3. C -ffast-math , , sql(lite) . - , :-) , , , , . , , , , . - LDFLAGS CFLAGS "-O2 -march=i486 -mtune=i686" -O3 -O2, LDFLAGS, -falign -fomitframe-pointer. , qt, gtk, zlib SLK