Академический Документы
Профессиональный Документы
Культура Документы
I -
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 E18 ,
IceWM. Enlightenment "
" ,
. WM
.
, WM(DM), KDE Slackware,
, , ,
Slackware,
.
Slackware 14.1,
Slackware, ,
. Slackware
, Slackware,
. ,
sergmarkov.livejournal.com/tag/
%20Slackware linuxforum.ru Slackware Linux..
,
, .
II -
(Nvidia www.nvidia.com/object/unix.html
www.nvidia.ru/Download/Find.aspx?lang=ru)
-ftp.yandex.ru/slackware/slackware*.*iso/slackware*.*
installdvd.iso (ISO c ), * Slackware.
ISO mirrors.slackware.com/slackwareiso
dvd
( 19 /)
liveCD gparted.
ext3 ext4. Xfs jfs
,
, . Reiser3
ext4 ext3, ,
reiser4 , C
,
. Btrfs ext,
,
. ext3 ext4. , ext4
, ext3.
ext4,
,
ext3. ,
,
,
. 19 .
DVD ( bios
CD). ,
,
boot Enter
Enter 1 to select keyboard map .
Enter, .
Slackware login: root
root@slackware : setup
"ADDSWAP option" ,
.
, ,
.
Select linux installation partitions
expert . ,
.
, terse,
, c full,
. Expert ,
,
, .
Make USB flash boot , No
Install Lilo . Expert ,
, lilo Skip
Mouse configuration .
, , .
GPM
Configure network . C ADSL
198.162.1.2, 255.255.255.0, gateway 192.168.1.1, DNS
Confirm startup services to run .
.
Console font configuration , Cyr_a8x16,
.
Hardware clock No
Timezone configuration
(fluxbox)
Warning no root password detected root
exit
ctrlaltdel
root
adduser
, /etc/sudoers . ,
, /etc /boot,
.
startx (, , :). fluxbox.
, xwmconfig fluxbox.
/etc/X11/appdefaults/XTerm /root/XTerm,
, ,
alth mc.
XTerm*font: -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso10646-1
XTerm*scrollBar: True
XTerm*geometry: 119x39+0+17
! Alt - h mc
XTerm*eightBitInput: false
XTerm*metaSendsEscape: true
, ,
netconfig, pppoe, etc
. :
/etc/slackpkg/mirrors (
)
slackpkg update
slackpkg install-new
slackpkg upgrade-all
, , ,
Expert
.
slackwiki.com/Minimal_System
III -
lilo
/etc/lilo.conf ,
append=" vt.default_utf8=0"
:
append=" vt.default_utf8=1"
:
/sbin/lilo -v
( , vt.default_utf8=1)
UTF-8
/etc/profile.d/lang.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.font.
setfont Cyr_a8x16
for i in 1 2 3 4 5 6;do
echo -ne "\033%G" >/dev/tty$i
done
/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
, /usr/share/kbd/keymaps/i386/qwerty/*
UTF8.map.gz.
/etc/rc.d/rc.font /etc/rc.d/rc.keymap .
-
/etc/X11/xorg.conf.d/90keyboardlayout.conf
( CtrlShift).
Section "InputClass"
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"
- NTFS
/etc/fstab.
(
Xorg, ),
. ,
www.linux.org.ru/wiki/en_Slackware_13_c_utf8, linuxforum.ru,
unixforum.org,
.
IV - Slackware -
Slackware ,
.
1 -
/var/log/packages,
removepkg <>.
, ,
, removepkg <> | grep
WARNING, ,
.
installpkg <//>,
upgradepkg --install-new <//>. upgradepkg
<//>. upgradepkg --reinstall
<//>.
DVD pkgtool,
,
,
, .
slackpkg.
slackpkg slackpkg+(slakfinder.org/slackpkg+.html),
,
multilib . , ,
help ,
. man slackpkg.conf
slackpkg /etc/slackpkg,
slackpkg+ /etc/slackpkg/slackpkgplus.conf.
alien.slackbook.org/blog/introducingslackpkganextensiontoslackpkgfor3rd
partyrepositories.
slacky.eu slackyd www.slacky.eu/~dani/slackyd,
, .
,
.. :)
slackroll
rg3.github.io/slackroll.
.
,
.
, , /var/log/removedpackages,
"" , "
" :).
DVD
MANIFEST , FILE_LIST ,
PACKAGES.TXT , DVD ,
www.slackware.org.uk/slackware/slackware14.0/slackware.
CHANGES_AND_HINTS.TXT
,
, , ,
,
, .
PClinuxOS IceWM qt4 (
, IceWM
qt, , ), googlearth.
,
, .
2 -
,
DVD
, .
,
.
slacky.eu
slakfinder.org
rlworkman.net/pkgs
connie.slackware.com/~alien/slackbuilds
slackers.it
Slackware ,
, (
) .
zenwalk (packages.zenwalk.org/?v=current).
.
slaptget gslapt,
,
. " Slackware"
c
. "",
, .
slaptget
gslapt
software.jaos.org/#slaptupdateservice
rpm
rpm2tgz. rpm pkgs.org,
. deb debian (
python, debain
).
PackageConverter
3 -
, ,
,
, .
. slackbuilds
(make &&make install) ,
.
README, INSTALL
,
, .
.
workerroxtermjuffed , ,
. worker.tbz.
A.
, .
freshmeat.net, sourceforge.net.
, ,
,
www.debian.org/distrib/packages packages.ubuntu.com/ru,
,
.
, ,
, git
github.com.
, svn, git
mercurial. ,
, youtube
,
.
,
,
, :)
svn
svn co ( checkout) <URL svn>
svn co -r < > <URL svn>
git
git clone <URL git>
mercurial
hg clone < URL mercurial>
, ,
,
, ,
.
,
, ,
. ,
:), proga patch
.
ArchLinux Ubuntu
(Debian),
ArchLinux Debian (Ubuntu).
, , ,
.
B. slackbuild
Slackbuild ,
.
.SlackBuild /tmp ( ,
PKG= slackbuild).
slackbuild slackbuilds.org.
, ,
slackbuilds.or,
www.wuala.com/SergMarkov19/Slackbuilds. slackbuild ,
slackbuilds.org. slackbuild.
, slackbuild,
slackbuild,
VERSION=. ,
slackbuild BUILD, ,
:).
slackbuild configure
( ./configure help ).
(
)
OUTPUT=$(pwd) TMP=$(pwd) ./some.SlackBuild
.
, ~/.bashrc,
export OUTPUT="/usr/local/packages"
export PKGTYPE="txz"
sudo,
, makepkg /sbin/makepkg
, , /sbin
PATH , :
export PATH=$PATH:/usr/share/texmf/bin:/usr/sbin:/sbin
slackbuilds.org ,
,
( ), VERSION
( ),
.
make &&make install
, slackbuild , FAQ slackbuilds.org/faq
.
alien.slackbook.org/AST.
ArchLinux www.archlinux.org/packages,
slaptsrc, sourcery,
sbopkg.
,
. ,
, ,
. . sbopkg.
sbopkg.org/queues.php. ( *.sqf)
/var/lib/sbopkg/qu. Sbopkg git master branch
slackbuilds.org, .
pastebin.com/jRPYQsVL.
,
.
source/, , src, source
.
C.
,
.
: KDE
IceWM openbox, krusader KDE
worker xlib, worker ,
python ,
, ,
, , ,
.
.
, ,
, .
,
.
. ,
, gcc :) , gcc
4.8 gcc4.7.1 skackware 14.
, source ,
D.
, ,
,
.
.
.
make , ,
./configure .
,
, ,
.
- , configure
configure.
./configure --help
( :)
./configure
,
,
[]\.
prefix=/usr/local, /usr
/opt/, /usr/local ,
. prelink, (
13.37) withpic,
./configure help.
,
.
,
,
, .
./configure Makefile
, ,
configure.
,
.
#!/bin/bash
#
renice 19 $$ > /dev/null
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/usr \
--libdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
# gcc
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe \
-mmmx -m3dnow -falign-jumps=1 -falign-labels=1 -fPIC" \
CXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe \
-mmmx -m3dnow -falign-jumps=1 -falign-labels=1 -fPIC" \
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
# gcc,
#
# CFLAGS="-O2 -march=i486 -mtune=i686" \
# CXXFLAGS="-O2 -march=i486 -mtune=i686"
- , cmake
CMakeLists.txt. cmake README
INSTALL.
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=/usr/lib \
-DMAN_INSTALL_DIR=/usr/man \
-DSYSCONF_INSTALL_DIR=/etc \
-DINCLUDE_INSTALL_DIR=/usr/include \
-DCMAKE_C_FLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer \
-pipe -mmmx -m3dnow -falign-jumps=1 -falign-labels=1" \
-DCMAKE_CXX_FLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer \
-pipe -mmmx -m3dnow -falign-jumps=1 -falign-labels=1"
build cmake,
README install,
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=/usr/lib \
-DMAN_INSTALL_DIR=/usr/man \
-DSYSCONF_INSTALL_DIR=/etc \
-DINCLUDE_INSTALL_DIR=/usr/include \
-DCMAKE_C_FLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer \
-pipe -mmmx -m3dnow -falign-jumps=1 -falign-labels=1" \
-DCMAKE_CXX_FLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer \
-pipe -mmmx -m3dnow -falign-jumps=1 -falign-labels=1"
cmake ,
,
DBUILD_foo=OFF, foo ,
. ,
cmake .
ccmake ..
, ,
. cmakegui.
cmake i.
cmake
www.cmake.org/Wiki/CMake_Useful_Variables
- , qmake
*.pro.
qmake README INSTALL,
*.pro, *.pri, *.qrc.
qmake .pro \
QMAKE_CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer \
-pipe -mmmx -m3dnow -falign-jumps=1 -falign-labels=1" \
QMAKE_CXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer \
-pipe -mmmx -m3dnow -falign-jumps=1 -falign-labels=1"
cmake qt
project.org/doc/qt4.8/qmakevariablereference.html
- , waf
, ,
waf.
waf. waf
README INSTALL. :
./waf configure \
--prefix=/usr \
--mandir=/usr/man
,
autogen.sh,
git. configure. .
, Makefile,
, .
Makefile, configure.ac, Makefile.am, Makefile.in,
autoreconf -fiv (autoreconf -v install)
:
aclocal
autoheader
automake --add-missing --copy
#libtoolize --automake
autoconf
E.
, gcc
. .
. , linuxbase (tar,
bz2, zlib ..), (GTK ), python perl
("O2 march=i486
mtune=i686"), .
(
, ,
:),
. x86
( SSE).
. autoconf ( configure)
~/.bashrc configure, configure
~/.bashrc. cmake (
CmakeLists.txt)
/usr/share/cmake
2.8/Modules/Compiler/GNU.cmake. qmake
/usr/lib/qt/mkspecs/common/g++.conf
,
: bash
,
cmake, cmake, bash
.
- .bashrc
~/.bashrc
# gcc
export CHOST="i686-pc-linux-gnu"
export CFLAGS="-O3 -march=native -mtune=native \
-fomit-frame-pointer -pipe -mmmx -m3dnow -falign-jumps=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)
.
cat /proc/cpuinfo.
gcc.gnu.org/onlinedocs/gcc4.7.2/gcc/i386and
x86_002d64Options.html#i386andx86_002d64Options.
: msse(1,2,3,4) sse, mnosse(1,2,3,4)
pipe
, .
fomitframepointer (frame pointer)
, .
,
(frame pointer); .
.
falign* (
PIII K62).
Wl,O1 Wl,asneeded
( ).
O3, ,
, , , .
,
O3.
C ffastmath ,
,
sql(lite) .
, :) , ,
, ,
.
,
, , ,
.
LDFLAGS CFLAGS
"O2 march=i486 mtune=i686". ,
O3 O2,
LDFLAGS, falign fomit
framepointer.
, PATCH LDFLAGS.
,
, segmentation
fault.
, qt, gtk, zlib ..
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LDFLAGS
bash . ~/.bashrc,
. , root .
configuremakemake install
Makefile, configure.
( ,
mplayer , ,
configure
CFLAGS="-O3 -march=native -mtune=native -pipe \
-fomit-frame-pointer -mmmx -m3dnow -falign-jumps=1 \
-falign-labels=1" \
CXXFLAGS="-O3 -march=native -mtune=native -pipe \
-fomit-frame-pointer -mmmx -m3dnow -falign-jumps=1 \
-falign-labels=1" \
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
, ,
CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffersize=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffersize=4 -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
fstackprotector
~/.bashrc make
&&make install, slackbuild
, /root/.bashrc,
slackbuild ,
.
,
.bashrc. ,
,
.
- configure
configure
#!/bin/bash
#
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/usr \
--libdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer \
-pipe -mmmx -m3dnow -falign-jumps=1 -falign-labels=1" \
( " \"
"set" )
/usr/share/cmake-2.8/Modules/Compiler/GNU.cmake
# Initial configuration flags.
set(CMAKE_${lang}_FLAGS_INIT "")
set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g")
set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_$
{lang}_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER>
<DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
if(NOT APPLE)
- qmake
/usr/lib/qt/mkspecs/common/gccbase.conf (CFLAGS
)
QMAKE_CFLAGS
+= -pipe
QMAKE_CFLAGS_RELEASE
slackbuild ( )
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
( ) x86 ( ,
~/.bashrc)
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O3 -march=native -mtune=native -pipe \
-fomit-frame-pointer -mmmx -m3dnow -falign-jumps=1 \
-falign-labels=1"
LIBDIRSUFFIX=""
,
CFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \
LDFLAGS="$SLKLDFLAGS" \
export CFLAGS="$SLKCFLAGS"
export CFLAGS="$SLKCFLAGS"
export LDFLAGS="$SLKLDFLAGS"
, " \"
"sed"
#!/bin/bash
# slackbuikds.org
#
cp $1 $1.orig
sed -i 's/ SLKCFLAGS="-O2 -march=i486 -mtune=i686"/ SLKCFLAGS="-O3 -march=native
-mtune=native -fomit-frame-pointer -pipe -mmmx -m3dnow -falign-jumps=1 -falignlabels=1"/g' $1
sed -i 's/ SLKCFLAGS="-O2 -march=i686 -mtune=i686"/ SLKCFLAGS="-O3 -march=native
-mtune=native -fomit-frame-pointer -pipe -mmmx -m3dnow -falign-jumps=1 -falignlabels=1"/g' $1
sed -i 's/ SLKCFLAGS="-O2"/ SLKCFLAGS="-O3 -march=native -mtune=native -fomit-frame-
configure export
cmake
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- slackbuild qmake
configure export
qmake
qmake \
QMAKE_CFLAGS="$SLKCFLAGS" \
QMAKE_CXXFLAGS="$SLKCFLAGS"
- prelink
prelink,
. prelink
CFLAGS SLKCFLAGS "fPIC" /
configure withpic.
F.
- autotools cmake
. .
( )
make
make install DESTDIR=/tmp/packages-temp
cd /tmp/packages-temp
makepkg /tmp/packages.tgz ( makepkg /tmp/packages.txz)
cd ..
rm -rf /tmp/packages-temp
packages.txz .txz.
, Makefile DESTDIR,
, Makefile ,
,
/usr . (
:)
Install Makefile ,
, .
Makefile.
Install
-install -d $(PREFIX)/bin/
-install -d $(DESTDIR)/$(PREFIX)/bin/
makepkg slacktrack, ..
make install
cd /tmp/5
makepkg /tmp/.tgz ( makepkg /tmp/.txz)
slacktrack dvd.
slacktrack ,
,
, ,
.
. .
, /usr/bin/slacktrack
EXCLUDE_LIST="/dev/shm|/dev/shm/|/dev/shm$|/var/run/|/var/run$|/etc/dhcpc/|/etc/dhcpc
$|/var/cache/|/var/cache$|/media$|/media/|/srv$|/srv/|/selinux$|/selinux/|/var/lib/rpm|/var/li
b/rpm$|/var/yp$|/var/yp/|/sys$|/sys/|/initrd$|/initrd/|/dev/input$|/dev/input/|/dev/.udev/|/de
v/.udev$|/dev/vc$|/dev/vc/|/dev/console|/dev/pts$|/dev/pts/|/dev/ptmx|/dev/tty|/var/log|/et
c/mtab|/etc/resolv.conf|/etc/ld.so.cache|/tmp|/root|/proc|/var/tmp|/var/run/utmp"
EXCLUDE_LIST="/dev|/dev/|/dev$|/var/run/|/var/run$|/etc/dhcpc/|/etc/dhcpc$|/var/cache/|/
var/cache$|/media$|/media/|/srv$|/srv/|/selinux$|/selinux/|/var/lib/rpm|/var/lib/rpm$|/var/yp
$|/var/yp/|/sys$|/sys/|/initrd$|/initrd/|/dev/input$|/dev/input/|/dev/.udev/|/dev/.udev$|/dev/
vc$|/dev/vc/|/dev/console|/dev/pts$|/dev/pts/|/dev/ptmx|/dev/tty|/var/log|/etc/mtab|/etc/re
solv.conf|/etc/ld.so.cache|/tmp|/root|/proc|/var/tmp|/var/run/utmp"
, /dev ,
, .
,
#!/bin/sh
#
ARCH=${ARCH:-i686}
# ,
CWD=$(pwd)
name=$(basename $(pwd))
TMP=${TMP:-/tmp/compile-am}
PKG=$TMP/package-$name
OUTPUT=${OUTPUT:-/tmp}
#
rm -rf $PKG
rm -rf /tmp/compile-am
#
#
SLKCFLAGS="-O3 -march=native -mtune=native \
-fomit-frame-pointer -pipe -mmmx -m3dnow -falign-jumps=1 \
-falign-labels=1"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#
#SLKCFLAGS="-O2 -march=i486 -mtune=i686"
CFLAGS="$SLKCFLAGS"
CXXFLAGS="$SLKCFLAGS"
# nice -n 19 make,
# make
#
# nice -n 19
nice -n 19 make || exit 1
make install DESTDIR=$PKG || exit 1
# strip
find $PKG | xargs file | grep -e "executable" \
-e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
#
if [ -d $PKG/usr/man ]; then
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
for i in $(find $PKG/usr/man -type l -name "*.?") ; \
do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
fi
# doinst.sh
mkdir -p $PKG/install
cat /opt/scripts/doinst.sh > $PKG/install/doinst.sh
# makepkg
cd $PKG
/sbin/makepkg -l y -c n $CWD/$name.txz
# slacktrack
# slacktrack -mzSp $CWD/$PRGNAM-$VERSION-$ARCH-$BUILD-$TAG.tgz \
# make install
#cp /tmp/$PRGNAM-$VERSION-$ARCH-$BUILD-$TAG.tgz \
#$CWD/$PRGNAM-#$VERSION-$ARCH-$BUILD-$TAG.tgz
#rm -rf /tmp/$PRGNAM-$VERSION-$ARCH-$BUILD-$TAG.tgz
echo ""
echo "" "$name.txz" " "
makepkg,
slacktrack
.
- qmake
( )
make
make install INSTALL_ROOT=/tmp/packages-temp
cd /tmp/packages-temp
makepkg /tmp/packages.tgz ( makepkg /tmp/packages.txz)
cd ..
rm -rf /tmp/packages-temp
packages.txz .txz.
,
#!/bin/sh
#
ARCH=${ARCH:-i686}
# ,
CWD=$(pwd)
name=$(basename $(pwd))
TMP=${TMP:-/tmp/compile-am}
PKG=$TMP/package-$name
OUTPUT=${OUTPUT:-/tmp}
#
rm -rf $PKG
rm -rf /tmp/compile-am
#
#
SLKCFLAGS="-O3 -march=native -mtune=native \
-fomit-frame-pointer -pipe -mmmx -m3dnow -falign-jumps=1 \
-falign-labels=1"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#
#SLKCFLAGS="-O2 -march=i486 -mtune=i686"
CFLAGS="$SLKCFLAGS"
CXXFLAGS="$SLKCFLAGS"
# nice -n 19 make,
# make
#
# nice -n 19
nice -n 19 make || exit 1
make INSTALL_ROOT=$PKG install || exit 1
# strip
find $PKG | xargs file | grep -e "executable" \
-e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
#
if [ -d $PKG/usr/man ]; then
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
for i in $(find $PKG/usr/man -type l -name "*.?") ; \
do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
fi
# doinst.sh
mkdir -p $PKG/install
cat /opt/scripts/doinst.sh > $PKG/install/doinst.sh
# makepkg
cd $PKG
/sbin/makepkg -l y -c n $CWD/$name.txz
# slacktrack
# slacktrack -mzSp $CWD/$PRGNAM-$VERSION-$ARCH-$BUILD-$TAG.tgz \
# make install
#cp /tmp/$PRGNAM-$VERSION-$ARCH-$BUILD-$TAG.tgz \
#$CWD/$PRGNAM-#$VERSION-$ARCH-$BUILD-$TAG.tgz
#rm -rf /tmp/$PRGNAM-$VERSION-$ARCH-$BUILD-$TAG.tgz
echo ""
echo "" "$name.txz" " "
- waf
:
./waf build
./waf install destdir=/tmp/packages-temp
cd /tmp/packages-temp
/sbin/makepkg -l y -c n packages.txz
rm -rf /tmp/packages-temp
packages .
- python
python, .
INSTALL / README
,
, package.txz .txz.
#!/bin/bash
#
# build-python-packages
# C (python)
#
renice 19 $$ > /dev/null
CWD=$(pwd)
name=$(basename $(pwd))
#name=basename $(pwd)
rm -rf /tmp/temp-packages19
mkdir /tmp/temp-packages19
mkdir -p /tmp/python-package19
#
# setup.py install.py;'
#
python ./setup.py build
#
#python ./install.py build
#
python setup.py install --root=/tmp/python-package19
#
#python install.py install --root=/tmp/python-package19
#
cd /tmp/python-package19
mv usr/share/man usr/man
mv usr/share/doc usr/doc
/sbin/makepkg -l y -c n $CWD/$name.txz
rm -rf /tmp/python-package19
echo "" "$name.txz" " "
echo
search -v <package>
install -v <package>
uninstall -v -y <package>
freeze -v
list -v
show -v <package>
- perl
, perl,
CPAN.
perl ,
:
#!/bin/bash
# nice -n 19 make,
# make
# nice -n 19
renice 19 $$ > /dev/null
#
ARCH=${ARCH:-i686}
# ,
CWD=$(pwd)
name=$(basename $(pwd))
TMP=${TMP:-/tmp/compile-am}
PKG=$TMP/package-$name
OUTPUT=${OUTPUT:-/tmp}
#
rm -rf $PKG
rm -rf /tmp/compile-am
#
SLKCFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx -m3dnow \
-falign-jumps=1 -falign-labels=1 -fPIC"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
# SLKCFLAGS
# SLKCFLAGS="-O2 -march=i486 -mtune=i686"
CFLAGS="$SLKCFLAGS"
CXXFLAGS="$SLKCFLAGS"
perl Makefile.PL
nice -n 19 make || exit 1
make install DESTDIR=$PKG || exit 1
mv $PKG/usr/share/man $PKG/usr/man
# strip
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
#
if [ -d $PKG/usr/man ]; then
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
fi
# doinst.sh
mkdir -p $PKG/install
cat /opt/scripts/doinst.sh > $PKG/install/doinst.sh
# c makepkg
cd $PKG
/sbin/makepkg -l y -c n $CWD/$name.txz
echo ""
, ,
perl
perl-CPANPLUS-Dist-Slackware slacbuilds.org
.
cpanp. man cpanp,
man .
:
a AUTHOR ...
m MODULE ...
f MODULE ...
# search by author(s)
# search by module(s)
# list all releases of a module
i MODULE ...
t MODULE ...
u MODULE ...
d MODULE ...
l MODULE ...
r MODULE ...
c MODULE ...
z MODULE ...
# install module(s)
# test module(s)
# uninstall module(s)
# download module(s)
# display detailed information about module(s)
# display README files of module(s)
# check for module report(s) from cpan-testers
# extract module(s) and open command prompt in it
i MODULE ,
.
/usr/bin/gzip -> /bin/gzip.
cpan2dist (
/tmp)
cpan2dist --verbose --format CPANPLUS::Dist::Slackware :
/tmp,
, .
perl, no
blabla/ablabl blabla::ablabl,
www.cpan.org. CPAN
cpanp, perl cpanp -m MODULE.
perl
CPAN. , , man cpanp.
.
Perl ,
. :
perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
CPAN
(, Term::ReadKey Term::ReadLine::GNU) ,
doinst.sh,
,
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
preserve_perms() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ -e $OLD ]; then
cp -a $OLD ${NEW}.incoming
cat $NEW > ${NEW}.incoming
mv ${NEW}.incoming $NEW
fi
config $NEW
}
schema_install() {
SCHEMA="$1"
GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
chroot . gconftool-2 --makefile-install-rule \
/etc/gconf/schemas/$SCHEMA \
1>/dev/null
}
schema_install blah.schemas
preserve_perms etc/rc.d/rc.INIT.new
config etc/configfile.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
,
/etc schemas ,
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
,
make clean ,
, (
:)
,
/sbin/makepkg -l y -c n /tmp/packages.txz, packages.txz
.txz
,
,
#!/bin/sh
export PATH=\
`pwd`:\
$PATH
export LD_LIBRARY_PATH=\
`pwd`:\
$LD_LIBRARY_PATH
./program_name
4 - ArchLinux
ArchLinux
PKGBUILD,
SlackBuild .
ArchLinux (
),
,
.
:
, ,
.
, ,
, .
PKGBUILD abs (Arch Build System)
git
git clone git://projects.archlinux.org/svntogit/packages.git
PKGBUILD
aur
aur.archlinux.org/packages.php ().
PKGBUILD makepkg
pacman. pacman
, , ,
makepkg
updpkgsums pacman. , ,
bash,
.
https://www.archlinux.org/packages pacman
.
usr/bin/makepkg: (#
) (
, )
makepkg *.la, .
:
# if [[ $(check_option libtool) = "n" ]]; then
# msg2 "$(gettext "Removing "%s" files...")" "libtool"
# find . ! -type d -name "*.la" -exec rm -f -- '{}' \;
# fi
makepkg pacman .
:
# check for PACMAN if we need it
# if (( ! INFAKEROOT && ( ! NODEPS || DEP_BIN || RMDEPS || INSTALL ) )); then
# if [[ -z $PACMAN_PATH ]]; then
# error "$(gettext "Cannot find the %s binary required for dependency operations.")"
"$PACMAN"
# ret=1
# fi
#fi
run_pacman()
. :
if (( ! ASROOT )) && [[ ! $1 = -@(T|Qq) ]]; then
if type -p sudo >/dev/null; then
cmd=(sudo "${cmd[@]}")
else
cmd=(su root -c "$(printf '%q ' "${cmd[@]}")")
fi
fi
# "${cmd[@]}"
}
usr/bin/updpkgsums,
newsums=$(makepkg -g -p "$buildfile") && rm -f "$buildfile" &&
/etc/makepkg.conf
:)
pacmanslackware,
pacman :
#!/bin/sh
mkdir -p /tmp/pacman-slackware/etc /tmp/pacman-slackware/usr/bin \
/tmp/pacman-slackware/usr/share /tmp/pacman-slackware/usr/man \
/tmp/pacman-slackware/sbin
cp -a etc/makepkg.conf /tmp/pacman-slackware/etc
cp -a usr/bin/makepkg /tmp/pacman-slackware/sbin/makepkg-arch
cp -a usr/bin/updpkgsums /tmp/pacman-slackware/usr/bin/updpkgsums
cp -ar usr/share/man /tmp/pacman-slackware/usr
pacman pacmanslackware.txz
.
pacmanmirrorlist
https://www.archlinux.org/packages/core/any/pacmanmirrorlist
( pacman.d /etc).
/etc/ pacman.d/mirrorlist ,
Server = http://mirrors.liquidweb.com/archlinux/$repo/os/$arch.
abs abs.
PKGBUILD
abs
c
www.archlinux.org/packages/extra/i686/abs
(projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/abs).
PKGBUILD , root
PKGBUILD abs (
PKGBUILD).
#!/bin/bash
#
CWD=$(pwd)
#
# qmake-qt4 qmake
sed -i 's|qmake-qt4 |qmake |g' PKGBUILD
#
# ( PKGBUILD)
namepkg=$(sed -n '/^pkgname=/p' $CWD/PKGBUILD | sed 's/pkgname=//') > /dev/null
version=$(sed -n '/^pkgver=/p' $CWD/PKGBUILD | sed 's/pkgver=//') > /dev/null
#
# ArchLinux
/sbin/makepkg-arch --asroot || exit 1
# Slackware
rm -rf pkg-slack
mkdir -p pkg-slack/install
find *tar.xz | while read i; do tar --xz -xf $i -C pkg-slack; done
sed -n -e '/post_install() {[[:space:]]*$/,/^[[:space:]]*}[[:space:]]*$/p' .INSTALL | sed -e
'1d;$d' -e 's/[[:space:]]*//' > pkg-slack/install/doinst.sh
cd pkg-slack
rm -rf .INSTALL > /dev/null
sed n e '/post_install() .
, pkg ,
.MTREE, .PKGINFO, .INSTALL
/sbin/makepkg -l y -c n /tmp/packages-temp.txz
/tmp packagestemp.txz.
,
,
, ,
.INSTALL.
/etc/abs.conf abs
abs .
abs abs.
PKGBUILD,
, , , /tmp
, .
, depends,
makedepends, optdepends PKGBUILD. Depends ,
, makedepends
, optdepends
.
, .
,
. ,
.
,
, aur. ,
, ,
PKGBUILD pkgver, md5sums (sha256sums)
updpkgsums pacmanslackware
PKGBUILD ,
www.archlinux.org/packages, aur
aur.archlinux.org/packages. ,
( pdf)
, , PKGBUILD,
qmakeqt4 qmake.
ccache /etc/makepkg.conf
ccache BUILDENV=(fakeroot !distcc color
ccache check !sign).
abs aur,
, wiki.archlinux.org.
( ),
( :).
,
, ,
, ,
,
,
.
.
, .
/var/log/packages/
, regexxer.
webkit,
qt4, webkitqt5 qt4.
webkit qt4,
.
,
DVD ,
. abs aur
, .
5 - Debian (Ubuntu)
Debian (Ubuntu) ,
. ,
ArchLinux, Debian(Ubuntu)
.
, ,
, dpkg co slackbuilds.org
( fakeroot).
www.debian.org/distrib/packages.ru.html#search_packages,
packages.ubuntu.com.
.dsc, .orig.tar.bz2, .debian.tar.bz2,
root dpkg-source -x .dsc.
.
, .
6 - rpm-base
rpmbase
opensuse
(download.opensuse.org/repositories) fedora ,
.
rpmbase
rpm2tgz, Slackware,
.
*.src.rpm,
:
/root/rpmbuild
rpm --force -Uhv .src.rpm
/root/rpmbuild/SPECS
rpmbuild --nodeps -bp .spec
spec
rpm. AltLinux, ,
rpm Slackware
.
/root/rpmbuild/BUILD/
7 - ccache
,
ache
.
, ,
. ccache
git .
,
. , ccache 1
.
slackware 14.1 ccache
. ,
, ,
ccache ccache ,
.
8 -
,
gc, ,
,
,
(
+).
. ,
:)
:
-O3 -march=native -mtune=native -pipe -mmmx -m3dnow \
-falign-jumps=1 -falign-labels=1 \
-fprofile-dir=/tmp/prof/proga -fprofile-generate \
-fprofile-arcs -fprofile-values
/tmp/prof/proga
-O3 -march=native -mtune=native -pipe -mmmx -m3dnow \
-falign-jumps=1 -falign-labels=1 \
-fprofile-dir=/tmp/prof/proga -fprofile-use \
-fbranch-probabilities -fvpt -funroll-loops -fpeel-loops -ftracer
, fprofileuse
.
9 -
,
( ) ,
. ,
() , ,
.
, evince
GTK3, GTK2 (GTK Slackware
14.1, ).
GTK3 /opt/system/gtk3.1.2,
GTK2,
, ./configure help
GTK2. ,
prefix /usr, /opt
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/opt/system/gtk-3.1.2 \
--enable-xinput \
--enable-xkb \
--disable-introspection \
CFLAGS="-O2 -march=i486 -mtune=i686" \
CXXFLAGS="-O2 -march=i486 -mtune=i686"
, ,
. GTK3, ,
updatedb ; locate *.pc | grep gtk.
GTK3 ,
/etc/ld.so.conf, GTK3,
/usr/local/lib
/usr/i486-slackware-linux/lib
/usr/lib/seamonkey
/usr/lib/qt/lib
/opt/e17/lib
/usr/lib/xulrunner
/opt/system/gtk-3.1.2/lib
ldconfig, .
GTK3 ,
configure , evince
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH: \
/opt/system/gtk-3.1.2/lib/pkgconfig/
evince ,
/usr, , /usr/local /opt,
.
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH: \
/opt/system/gtk-3.1.2/lib/pkgconfig/ \
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/usr/local \
--disable-scrollkeeper \
--disable-nautilus \
CFLAGS="-O3 -march=native -mtune=native \
-fomit-frame-pointer -pipe -mmmx -m3dnow \
-falign-jumps=1 -falign-labels=1" \
CXXFLAGS="-O3 -march=native -mtune=native \
-fomit-frame-pointer -pipe -mmmx -m3dnow \
-falign-jumps=1 -falign-labels=1"
.
evince3 .
GTK3 . /root/.bashrc
/home/user/.bashrc
export XDG_DATA_DIRS=/usr/share:/usr/local/share:\
/opt/system/gtk-3.1.2/share
export XDG_SHARED_DIR=/usr/share:/usr/local/share:\
/opt/system/gtk-3.1.2/share
~/.bashrc
GTK3,
org.gtk.Settings.FileChooser.gschema.xml
glib-compile-schemas /opt/system/gtk-3.1.2/share/glib-2.0/schemas/*
evince3 , ,
:) ,
, ,
, .
worker,
worker.
worker roxterm
juffed worker.tbz.
, worker roxterm juffed
.
10 -
.
. ,
, .
,
.
Makefile (
) (
)
, .
A.
.
, .
,
. , webkit,
webkit qt,
, .
configure.in(configure), cmakelist.txt
webkit.
, ,
/var/log/packages, , ,
.
.
, ,
, .
configure.in(configure),
CmakeList.txt
, , , ,
19.5,
19.4.
.
, ,
,
.
,
B.
.
, , slackfinder.org.
.
,
l .
,
, .
/usr/lib/X11/config/site.def
,
,
. , , .
.
LDFLAGS =
,
. :
LIBS+="-lm" \
./configure \
..
l , 'm' lib
,
, , ,
:
: posix_openpt [-Werror=implicit-functiondeclaration]
,
(CFLAGS, CXXFLAGS )
-Wno-implicit-function-declaration
./configure CFLAGS="Wnoimplicitfunctiondeclaration"
.
makepkg
/sbin/makepkg makepkg,
root sudo /sbin/makepkg
, PATH.
makepkg
/sbin/makepkg
V -
.
, , ..
. ,
, .
1 -
, ,
,
.
. ,
,
, ,
.
.
www.unixlab.org/posts/kernelv3
,
, ,
,
,
. nvidia
, packages.ubuntu.com.
, ,
nvidia :)
aur ArchLinux.
.
, .
BFS ( ), BFQ
( ), TuxOnIce (hibernate).
. ck1
( BFS ), pf ( BFS, BFQ,
TuxOnIce, ), zen (
), liquorix liquorix.net .
,
BFS, BFQ, ck1 , pf
, zen ,
.
, BFS
BFQ liquorix, pf.
BFS ck.kolivas.org/patches
BFQ algo.ing.unimo.it/people/paolo/disk_sched/patches.
, .
.
,
,
, .
,
,
. 3.10.17 ,
. ,
www.kernel.org/pub/linux/kernel.
, kernel
source*.
/usr/src /usr/src/linux*.**.**
/usr/src/linux, /usr/src/linux.
kernel.org, DVD,
kernelsource* DVD ../install/doinst.sh ,
.
,
,
.
,
:)
:
/boot, /lib/modules /etc/lilo.conf.
, /boot, /lib
/etc/lilo.conf, lilo v .
, ,
liveCD, /boot, /lib/modules
/etc/lilo.conf, DVD Slackware,
,
sda1 , rdinit= .
lilo -v. chroot liveCD ,
DVD .
, .
A.
,
.
, patch -p1 -i , BFS,
BFQ /usr/src/linux.
/usr/src/linux/.config /proc/config.gz (
config .config :)
make oldconfig.
BFQ. BFQ .
Enter .
make nconfig
, ,
.
,
. ,
,
, .
make bzImage
make modules
lilo.conf ( )
# Linux bootable partition config begins
image = /boot/vmlinuz.old
root = /dev/sda*
label = Slackold
# Partitions should be mounted read-only for checking
read-only
vmlinuz.old , lilo
,
.
make modules_install
make install
,
B.
, .
,
.
, A,
make oldconfig.
make localmodconfig,
.
A.
C.
, ,
. ,
.
, B,
make localmodconfig,
.
make localyesconfig
B
D.
General setup
Memtest ,
Processor family
Generic x86 support ,
Preemption Model (Preemptible Kernel LowLatency Desktop
Enable X86 board specific fixups for reboot ,
CS5530A and CS5536 chipsets and the RDC R321x SoC
Networking options
The IPv6 protocol ,
Network packet filtering framework ,
Amateur Radio support
Device Drivers
Serial drivers ,
I2C support I2C Hardware Bus support
Hardware Monitoring suppor
Watchdog Timer Support WatchDog Timer Driver Core
Graphics support
Laptop Hybrid Graphics GPU switching support ,
Support for frame buffer devices NVIDIA
frame buffer,
Sound card support
Advanced Linux Sound Architecture
PCI sound devices
Accessibility support Console on braille device ,
Generic Dynamic Voltage and Frequency Scaling (DVFS) support
File systems
Quota support ,
DOS/FAT/NT Filesystems
Default codepage for FAT 866
Default iocharset for FAT utf8
Network File Systems
Native language support
Codepage 866 (Cyrillic/Russian),
Windows CP1251 (Bulgarian, Belarusian), ASCII (United States) ,
NLS ISO 88595 (Cyrillic), NLS KOI8R (Russian)
Kernel hacking
Virtualization ,
F6Save
.
,
,
, ( :),
, , .
#!/bin/sh
mkdir -p /tmp/kernel-package/boot
cd /tmp/kernel-package
cp /boot/vmlinuz ./boot/
cp /boot/System.map ./boot/
# **-** , .
#
# EXTRAVERSION /usr/src/linux/Makefile
cp /lib/modules/**-**/build/.config ./boot/config
mkdir -p /tmp/kernel-package/lib/modules
cp -a /lib/modules/**-** ./lib/modules/
makepkg -l y -c n /tmp/kernel-**-**-i686.txz
rm -rf /tmp/kernel-package
kernelnewbies.org,
.
2 - NVIDIA
dvd/extra/xf86videonouveaublacklist/xf86videonouveaublacklistnoarch
1.txz nouveau
/etc/modprobe.d/BLACKLISTnouveau.conf
# Do not load the kernel nouveau dri module, since it
# interferes with both
# the nv and binary nvidia drivers.
blacklist nouveau
CtrlAltBackSpace.
./Nvidia* . xorg.conf.
ATI :)
vdpau
GPU NVIDIA c slackbuilds.org
nvidia-settings, (
), xorg.conf.
- nvidia-xconfig --composite --no-logo --render-accel
/etc/X11/xorg.conf (
nvidia)
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildmeister@builder63) Tue Jul 13 13:32:36 PDT 2010
Section "ServerLayout"
Identifier
"Layout0"
Screen
0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
FontPath
FontPath
FontPath
FontPath
FontPath
FontPath
FontPath
FontPath
FontPath
FontPath
EndSection
"/usr/lib/X11/fonts/misc/:unscaled"
"/usr/lib/X11/fonts/100dpi/:unscaled"
"/usr/lib/X11/fonts/75dpi/:unscaled"
"/usr/lib/X11/fonts/misc/"
"/usr/lib/X11/fonts/Type1/"
"/usr/lib/X11/fonts/Speedo/"
"/usr/lib/X11/fonts/100dpi/"
"/usr/lib/X11/fonts/75dpi/"
"/usr/lib/X11/fonts/cyrillic/"
"/usr/lib/X11/fonts/TTF/"
Section "Module"
#Load "GLcore" #should be removed/commented out
Load
"dbe"
SubSection
"extmod"
Option
"omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load
"extmod"
Load
"type1"
Load
"freetype"
Load
"glx"
#Load "dri"
#should be removed/commented out
EndSection
Section "ServerFlags"
Option
"Xinerama" "0"
EndSection
Section "InputDevice"
# generated from default
Identifier
"Mouse0"
Driver
"mouse"
Option
"Protocol" "auto"
Option
"Device" "/dev/psaux"
Option
"Emulate3Buttons" "no"
Option
"ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier
"Keyboard0"
Driver
"kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier
"Monitor0"
VendorName
"Unknown"
ModelName
"Samsung SyncMaster"
HorizSync
30.0 - 81.0
VertRefresh
56.0 - 60.0
Option
"DPMS"
EndSection
Section "Device"
Identifier
"Videocard0"
Driver
"nvidia"
VendorName
"NVIDIA Corporation"
BoardName
"GeForce4 MX 440"
Option "AllowGLXWithComposite" "True"
Option
"RenderAccel" "True"
#
# Option
"DynamicTwinView" "False"
EndSection
Section "Screen"
Identifier
"Screen0"
Device
"Videocard0"
Monitor
"Monitor0"
DefaultDepth 16
Option
"metamodes" "1920x1080_60 +0+0; 1280x1024 +0+0; 1024x768 +0+0;
800x600 +0+0; 640x480 +0+0"
Option
"NoLogo" "True"
#
# BackingStore - ,
# ,
#
Option
"BackingStore" "True"
# TripleBuffer -
# .
# ,
#
# Option "TripleBuffer" "True"
# DamageEvents -
# ( MultiGPU)
~/.xinitrc.
cgit.freedesktop.org/~aplattner/nvidia
settings/tree/src/libXNVCtrl/NVCtrl.h?
id=b27db3d10d58b821e87fbe3f46166e02dc589855#n2797
nvidia
, ( help)
nouveau, mesa.
SLKCFLAGS SLKLDFLAGS ,
" " (
SSE).
3 - libjpeg-turbo
LIBDIRSUFFIX=""
fi
, , ( SLKCFLAGS SLKLDFLAGS
" ").
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O3 -march=native -mtune=native -pipe \
-mmmx -m3dnow -falign-jumps=1 -falign-labels=1"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O3 -march=native -mtune=native -pipe \
-mmmx -m3dnow -falign-jumps=1 -falign-labels=1"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O3 -march=native -mtune=native -pipe \
-mmmx -m3dnow -falign-jumps=1 -falign-labels=1"
LIBDIRSUFFIX=""
fi
SLKLDFLAGS="-Wl,-O1 -Wl,--as-needed"
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="$SLKLDFLAGS" \
PREFIX=${PREFIX:-/opt/$PRGNAM}
PREFIX=/usr
libjpeg, libjpegturbo,
libjpegturbo.
4 - cairo
.
ftp.osuosl.org/pub/slackware/slackware14.0/source/l/cairo
libjpegturbo .
,
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
else
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
, , ( SLKCFLAGS SLKLDFLAGS
" ").
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O3 -march=native -mtune=native -pipe \
-mmmx -m3dnow -falign-jumps=1 -falign-labels=1"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O3 -march=native -mtune=native -pipe \
-mmmx -m3dnow -falign-jumps=1 -falign-labels=1"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O3 -march=native -mtune=native -pipe \
-mmmx -m3dnow -falign-jumps=1 -falign-labels=1"
LIBDIRSUFFIX=""
fi
SLKLDFLAGS="-Wl,-O1 -Wl,--as-needed"
CFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \
LDFLAGS="$SLKLDFLAGS" \
5 - java
jre7 14 ,
jre7.
ftp.osuosl.org/pub/slackware/slackware14.1/extra/java.
java 7
, ,
java 6,
jre7. jre6 13.37
ftp.osuosl.org/pub/slackware/slackware13.37/source/l/jre.
jre, ,
jre , ,
.
6 -
( )
qt gdkpixbuf2.
Qscintilla,
sqlite,
, , .
VI -
. ,
.
/usr, /usr/local
.
linux ( ).
./configure, ,
. Slackbuild slackbuilds.org.
slackbuild ,
.
, slackbuilds.org (
), VERSION.
( ) ...
, .
( ).
, /usr/local/bin.
,
.
, ,
.
.
.
slackbuilds.org ,
vala, libgee, enca, ORBit2, lua.
1 - WM
IceWM - , slackbuilds.org
IceWM
, ,
.
xwmconfig, IceWM,
(CtrlAltBackSpace), startx icewm.
IceWM
github.com/bbidulock/icewm,
, .
, ,
, .
IceWM , ,
IceWM . .
IceWM
. .
idesk,
. Arch Linux, aur
ideskextras.
idesk , .
stuurmandesktop
SDE (Simple Desktop Environment).
, .
. Stuurmandesktop aur ArchLinux.
Openbox , slackbuilds.org
fusepython
sourceforge.net/projects/fuse/files/fusepython,
.
slackbuilds.org openbox (
slackbuilds.org), openboxthemes, obconf, obmenu.
obtheme xyne.archlinux.ca/projects/obtheme (
/usr/local/bin),
#!/usr/bin/env python2
#!/usr/bin/env python
menumaker co
slackbuilds.org. OBApps
co slackbuilds.org.
openbox , tint2, lxpanel, bmpanel2 co
slackbuilds.org, fbpanel aur ArchLinux. lxpanel lxmenudata menu
cache co slackbuilds.org. , slackbuilds.org.
,
lxpanelx.
, ,
,
,
. Lxpanelx
, IceWM
xcompmgr compton. Lxpanelx aur ArchLinux.
lxpanelx waterline SDE. Waterline
aur ArchLinux. waterline make
linux.org/projects/sde/waterline/2013/09/usermanual0.6.0ru.
SDE , stuurman,
PCManFM .
nitrogen feh
.
openbox
:
feh co slackbuilds.org. giblib co slackbuilds.org
~/.e16 ~/.enlightenment
e16menuedit - , e16doc E16,
ew16-themes , e16keyedit , epplets .
. ,
.
/etc/X11/xinit xinitrc.e16
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Start the window manager:
exec /usr/bin/e16
xwmconfig WM.
Enlightenment 17,18 DE
17 slackbuilds.org embryo, eina, eet, evas, ecore,
edje, e_dbus, efreet, eeze, enlightenment.
17 , slackbuilds.org 18.
, http://www.enlightenment.org/p.php?
p=download&l=en. EFL, Evas Generic
Loaders, Emotion Generic Players, Elementary, Enlightenment (other apps etc.)
~/.e ,
, " " :)
,
, WindowMaker fvwm,
. WM
, WM .
fvwm fvwmcrystal fvwmcrystal.sourceforge.net,
fvwm
.
xcompmgr X11.
,
(
),
xcompmgr , IceWm openbox.
xcompmgr
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/usr \
--libdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx -m3dnow
-falign-jumps=1 -falign-labels=1 -fPIC" \
CXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx -m3dnow
-falign-jumps=1 -falign-labels=1 -fPIC" \
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
ompton - , xcompmgr c
. github.com/chjj/compton.
, .
wmdrawer ,
. ,
.
slackbuilds.org.
slackbuilds.org
p7z
unrar
zip , UTF8,
www.opennet.ru/tips/info/2494.shtml.
:), , wine
7z, winrar.
worker
, ,
, ftp . ,
, .
:) , , TTF
.
, GUI, , .
, ,
, .
roxterm
juffed. worker.tbz.
slackbuilds.org. configure withdbus=no \
worker ,
.
devilspie
, ..
. slackbuilds.org.
devilspie frontend gdevilspie, ()
code.google.com/p/gdevilspie/downloads/list. pyxdg slackbuilds.org
pythonwnck. aur ArchLinux.
pythonwnck ftp://ftp.gnome.org/pub/GNOME/sources/gnome
pythondesktop/2.32/gnomepythondesktop2.32.0.tar.gz.
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/usr \
--libdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
--disable-gtk-doc \
--disable-applet \
--disable-gnomeprint \
--disable-gnomeprintui \
--disable-gtksourceview \
--disable-totem_plparser \
--disable-gtop \
--disable-nautilusburn \
--disable-braseromedia \
--disable-braseroburn \
--disable-mediaprofiles \
--disable-gnomekeyring \
--disable-gnomedesktop \
--disable-bugbuddy \
--disable-evolution \
--disable-evolution_ecal \
--disable-evince \
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx -m3dnow
-falign-jumps=1 -falign-labels=1 -fPIC" \
CXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx -m3dnow
-falign-jumps=1 -falign-labels=1 -fPIC" \
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
explorerlike SpaceFM
sourceforge.net/projects/spacefm, PCManFM
. spacefm .
, disablesuperuser
checks. slackbuilds.org.
roxterm .
roxterm "" , "
" ,
worker,
slackbuilds.org.
lilyterm lilyterm.luna.com.tw,
roxterm
juffed -
,
,
. slackbuilds.org, .
: sourceforge.net/projects/juffed/files/Plugins/0.8.1,
qmake .
ne , vim emacs.
ne 1993 Amiga
.. "If you have the
resources and the patience to use emacs or the right mental twist to use vi then
probably ne is not for you. However, if you need an editor that (
)" ne.. :)
, , ( ),
, ,
.
worker. ne.dsi.unimi.it.
slackbuilds.org.
www.emerson.emory.edu/services/editors/ne/Top.html.
./version.pl
mkdir -p /tmp/ne-packages/usr
make PREFIX=/usr
make PREFIX=/tmp/ne-packages/usr install
cd /tmp/ne-packages
/sbin/makepkg -l y -c n -p /tmp/ne.tgz
ne , ,
( ,
www.amazon.com/clouddrive/?
downloadById=bd06004d8c5f41f8bdc988c9644cdab9&attachment=0
tilde
(os.ghalkes.nl/tilde.html) ,
. aur ArchLinux.
tea (teaeditor.sourceforge.net),
. "",
" (, ..)
, , , , ,
. , ,
,
.
, qtlinguist
, ,
, , (
, , )
rlvn.qrc.
,
.
tea33.1.0, rlvn.qrc
www.wuala.com/SergMarkov19/Guidepdf/tea33.1.0
classicmod.tar.bz2. origin tea, mod ,
tea.
geany slackbuilds.org,
,
.
qxmledit - XML ,
XML code.google.com/p/qxmledit. aur
ArchLinux. qmake. qxmledit
opt/qxmledit qxmledit.sh
#!/bin/sh
cd /opt/qxmledit
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/qxmledit
./QXmlEdit "$1"
xneur .
xneur.ru/downloads
xneur
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/usr \
--libdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
--with-sound=no \
--without-keylogger \
--without-xosd \
--without-libnotify \
--with-gtk=gtk2 \
--with-spell=aspell \
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx
-m3dnow -falign-jumps=1 -falignCXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx
-m3dnow -falign-jumps=1 -falig
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
gxneur, xneur. .
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/usr \
--libdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
--without-appindicator \
--without-gconf \
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx
-m3dnow -falign-jumps=1 -falign-labels=1 -fPIC" \
CXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx
-m3dnow -falign-jumps=1 -falign-labels=1 -fPIC" \
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
regexxer
.
libsigc++, glibmm, cairomm, pangomm, mmcommon, atkmm,
gtkmm, libglademm, gconfmm. slackbuilds.org.
, regexxer,
.
slackbuilds.org, ,
GTK3
.
docfetcher
. docfetcher.sourceforge.net/en/index.html
jre,
, jre ( tar.gz)
www.oracle.com/technetwork/java/javase/downloads/index.html,
,
,
,
ftp.osuosl.org/pub/slackware/slackware14.0/extra/java,
./java.SlackBuild ./jre-7*.tar.gz
java jre
, (exit) .
docfetcher
docfetcher <user>:user, <user>
.
recoll ,
, .
backend Xapian. recoll ,
Xapian
,
. C slackbuilds.org (
slackbuilds.org).
, , ,
.
wv rlworkman.net/pkgs/14.0/i486, antiword, catdoc, exiftool,
mutagen, pstotext, pychm, python2chardet slackbuilds.org rarfile
co
pypi.python.org/pypi/rarfile
unrtf slackbuilds.org, unrtf slackbuilds.org
www.lesbonscomptes.com/recoll/unrtf/unrtf0.22.2beta.tar.gz,
VERSION unrtf.
xapiancore slackbuilds.org. ,
ssl, , configure
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--disable-sse \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
--build=$ARCH-slackware-linux
recoll aspellru.
recoll
.
:
regexxer /
(html ) ;
docfetcher ,
recoll; recoll
, .
meld slackbuilds.org.
rarian slackbuilds.org.
diffuse
diffuse.sourceforge.net. ,
setup.py install.py.
slackbuilds.org
trashCaN .
www.richardneill.org/src/cn1.20.tar.bz2 www.ruo3.org/~rjn/src/cn1.20.tar.bz2
worker.
freedesktop /.trash, .. worker
sudo cn t /.trash f {A} cn /etc/sudoers.
trash-cli slackbuilds.org,
.
clipit - , parcellite,
.
, "",
clipit, , clipit
htop ,
.
xdotool slackbuilds.org.
sourceforge.net/projects/gtkclipit/files. slackbuilds.org
CopyQ - github.com/hluk/CopyQ,
, ,
, .
qmake. aur ArchLinux.
cairodock
, cairodock
clipper.
cairo-dock, cairo-dock-plugins - .
slackbuilds.org, ,
gnome
, gnome.
gnome . gtkglext
slackbuilds.org.
cairodock repository.slacky.eu/slackware13.1/desktop/cairo
dock/2.1.3_9/src
launchpad.net/cairodockcore/2.1/2.1.3/+download/cairodock2.1.3
9.tar.gz
34 src/cairodockkeybinder.h
#include <glib/gtypes.h> #include <glib.h>, gcc.
cairodockplugin repository.slacky.eu/slackware
13.1/desktop/cairodockplugins/2.1.3_9_2/src ( ).
,
slackbuilds.org , ,
3.2.1 cairodock
,
.
yeahlaunch www.bstern.org/yeahlaunch.
aur ArchLinux.
Avant Window Navigator,
, xcompmgr,
, xcompmgr awn .
slackbuilds.org (
).
, .
gdmap ( ).
xdiskusage xdiskusage.sourceforge.net. ,
.
gprename . gcc.
perlgtk2.SlackBuild, , make
test, #make test
siren
www.scarabeesoftware.net/en/siren.html. , ,
.
wxhexeditor HEX ( ,
wxPython, ).
wxPython .
isomaster ISO
bleachbit
gsmartcontrol SMART
gtk-chtheme GTK
lxappearance
wmctrl (
github.com/geekless/wmctrl/downloads,
.
numlockx NumLock
file-roller
luckybackup
davfs2 webdav
fsarchiver ( ntfs)
fsarchiver
qt4-fsarchiver sourceforge.net/projects/qt4fsarchiver. aur ArchLinux.
qmake
make all
/usr/local/bin /etc/sudoers.
www.wuala.com/SergMarkov19/Slackbuilds
Super Flexible File Synchronizer
, FTP, SSH, WebDAV, Amazon S3, Google
Drive www.superflexible.com/linux.htm
dropbox client dropbox. aur ArchLinux.
www.getdropbox.com/download?plat=lnx.x86
wuala client wuala.com. aur
ArchLinux. wuala.com/en/download/linux.
vilm,
worker.
,
. path, /usr/local/bin
.
vilm redchamp.net/vimv
juffed vi ,
parser.add_option('-e',
'--editor',
default='vi',
help = 'Use an alternative editor (e.g., pico).')
parser.add_option('-e',
'--editor',
default='juffed',
help = 'Use an alternative editor (e.g., pico).')
,
,
,
, , ,
.
.
hddtemp
hddtemp , ,
. hddtemp
, ,
packages.ubuntu.com.
hddtemp ( ,
). ,
,
#!/bin/bash
clear
for d in ls /mnt/sda9/Slackware/Compile/hddtemp-0.3-beta15/*; do
patch -p1 -i `basename "$d"`;
echo "-----------------------"
done
exit 0
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/usr \
--libdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
--with-db-path=/etc/hddtemp.db \
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer \
-pipe -mmmx -m3dnow -falign-jumps=1 -falign-labels=1" \
CXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer \
-pipe -mmmx -m3dnow -falign-jumps=1 -falign-labels=1" \
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
aur ArchLinux.
whdd .
whdd.org/getit
DiskScan - blog.disksurvey.org/proj/diskscan
make :)
psensor . aur ArchLinux, ,
.
wpitchoune.net/psensor/files
conky c slackbuilds.org. ,
, conky,
.
gkrellm. conky
,
. ,
, AUR Archlinux
AltLinux www.sisyphus.ru. Gkrellm ,
,
, ,
www.muhri.net/gkrellm.
conky ,
screenlets . ,
,
, screenlets .
.
wine - .
webcore-fonts MS co slackbuilds.org
webcorefonts
/etc/fonts/conf.d/60liberation.conf
(
/etc/fonts/conf.d) .
MS ,
/etc/fonts/conf.d
MS.
cabextract co slackbuilds.org
winetricks wine co
slackbuilds.org
wine co slackbuilds.org.
glogg ( 10 )
http://glogg.bonnefon.org/index.html
qmake. aur ArchLinux
github.com/megabaks/test/raw/master/distfiles/qtperf.tar.bz2 QT
code.google.com/p/qtperf QT
gtkperf.sourceforge.net GTK
qtcurve , slackbuilds.org.
, QtCurveKDE4,
cmake
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DQTC_STYLE_SUPPORT=true \
-Wno-dev \
-DQTC_QT_ONLY=true \
-DCMAKE_BUILD_TYPE=Release \
..
QtCurveGtk2.
,
, . perwindowlayoutd
aur ArchLinux,
,
redshiftgui ,
()
.
2 -
google chrome .
ftp.osuosl.org/pub/slackware/slackware14.0/extra/googlechrome
googlechromepamsolibs (
).
deb, google
chrome.SlackBuild ,
.
, slacky.eu chromium.
firefox FF
,
, , ,
flashplayerplugin co slackbuilds.org.
dillo , ,
,
.
fltk dillo co slacky.eu ( 13.37)
dwb webkit,
. abs (Community) ArchLinux.
claws-mail .
libetpan co slackbuilds.org
compface, webkitgtk, geoclue co slacky.eu
clawsmail co slackbuilds.org, palm,
onfigure
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-static=no \
--disable-ldap \
--disable-jpilot \
--disable-startup-notification \
--disable-dbus \
--disable-networkmanager-support \
--disable-spamassassin-plugin \
--disable-bogofilter-plugin \
--disable-dillo-viewer-plugin \
--disable-valgrind \
--disable-ipv6 \
--build=$ARCH-slackware-linux
clawsmailextraplugins co slackbuilds.org,
, ,
.
PLUGIN_LIST="acpi_notifier address_keeper archive att_remover attachwarner \
bsfilter_plugin clamd fancy fetchinfo-plugin geolocation_plugin \
gtkhtml2_viewer mailmbox newmail notification_plugin perl_plugin \
python_plugin rssyl spam_report tnef_parse vcalendar"
rlworkman.net/pkgs/14.0/i486.
clawsmail
clawsmailextraplugins
clawsmail, thunderbird,
, ftp://ftp.mozilla.org/pub/thunderbird/releases,
. Thunderbird
, ,
Additional Chat Protocols for
Thunderbird Facebook Tab.
www.tran.52.
Quite-rss RSS code.google.com/p/quiterss
liferia ,
.
qmake. slackbuilds.org.
filezilla FTP co slackbuilds.org.
LDFLAGS="-ldl -Wl,-O1 -Wl,--as-needed" \
wxhexeditor , wxPython co
slackbuilds.org.
qbittorrent utorrent co slackbuilds.org
qbittorrent ,
, 15
, 5 . ,
100, ,
transmission co slackbuilds.org.
libevent co slackbuilds.org.
./configure
--disable-static
qt
cd $TMP/$PRGNAM-$VERSION/qt
qmake \
QMAKE_CXXFLAGS+="$SLKCFLAGS" \
QMAKE_CFLAGS+="$SLKCFLAGS" \
qtr.pro
sed -i -e 's% -g % %g' Makefile
make
INSTALL_ROOT=$PKG/usr make install
cd -
d build-all
cmake.
vacuum jabber . www.vacuumim.org
uget co slackbuilds.org,
aria2, ,
.
aMule P2P co slacky.eu. libupnp co slacky.eu.
httraqt , httraqt.sourceforge.net/index_ru.html, ,
httrack. cmake.
gtorrentviewer ,
.
gtorrentviewer.sourceforge.net. src/main.c 43
#include <curl/types.h>
#include <curl/typecheck-gcc.h>
. aur ArchLinux.
w3m , , co slackbuilds.org.
gc co slackbuilds.org.
speedtestcli www.kossboss.com/linuxcliinternetconnectionspeed
tests.
3 -
linux
gimp. ,
sse, gegl, configure
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/gegl-$VERSION \
--enable-gtk-doc \
--disable-docs \
--enable-mmx \
--disable-sse \
--build=$ARCH-slackware-linux || exit 1
# Trust defaults:
# --enable-mmx \
# --disable-sse \
inkscape
co slacky.eu.
hotshots
ftp. slackbuilds.org.
screengrab - imageshack.us co
slackbuilds.org. screengrab.doomer.org/download
Jshot jshot.info c
imageshack.us ( /home
).
shutter .
hotshots
sourceforge.net/projects/hotshots
ftp, Jshot,
Qt. .
gcolor2 co slackbuilds.org.
gammapage gamma ,
ftp://ftp.yandex.ru/altlinux/Sisyphus/files/SRPMS/gammapage
0.5.1alt1.src.rpm ( ,
fileroller). aur ArchLinux.
dia yEd.
co
slackbuilds.org,
jar)
co
www.yworks.com/en/products_yed_applicationfeatures.html.
cd / XnViewMP
xnview.sh /usr/local/bin
worker. aur ArchLinux.
picasa, . ,
Corel AfterShot Pro for Linux,
Corel, ,
,
Corel .. :)
4 -
linux , , mplayer,
, . mplayer
DVD vdpau, c ,
ape samba.
, .
co
slackbuilds.org mplayercodecs, mac, libdvdcss, lame, faad2, libmp4v2, faac,
libvdpau. samba ( , ).
,
USE_PATENTS=${USE_PATENTS:-"NO"}
USE_PATENTS="YES"
mplayer.ext
, mplayer ,
, mplayer.ext mplayer ,
, .
mplayer2 mplayer c ,
mplayer.
mplayer2 python3, co
slackbuilds.org ( mplayer2 python3 ,
).
mplayer2 www.mplayer2.org, git
./init --shallow
make
mesa,
mplayer2 nvidia.
mplayer2 /usr/bin.
/
, /
Mplayer'a
,
mplayer.ext
sourceforge.net/projects/mplayerext
mplayer2 mplayer mplayer.ext
if ! which mplayer > /dev/null
then
die "Error! Mplayer not installed."
fi
mpv
github.com/mpv
player/mpv/blob/master/DOCS/man/en/changes.rst,
mplayer mplayer2
ffmpeg - , co
slacky.eu.
slacky.eu,
,
.
, , , ,
.
slacku.eu c
libass, openalsoft, openjpeg, orc, rtmpdump, twolame, x264, xvidcore.
configure ffmpeg
./configure --prefix=/usr \
--shlibdir=/usr/lib${LIBDIRSUFFIX} \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--build-suffix=${LIBDIRSUFFIX} \
--mandir=/usr/man \
--disable-static \
--enable-shared \
--enable-gnutls \
--enable-x11grab \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
--enable-postproc \
--enable-swscale \
--enable-avfilter \
--enable-pthreads \
--enable-bzlib \
--enable-libcdio \
--enable-libass \
--enable-libcaca \
--enable-libfaac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libtheora \
--enable-libtwolame \
--enable-libvorbis \
--enable-libx264 \
--enable-memalign-hack \
--enable-libxvid \
--enable-openal \
--enable-openssl \
--enable-zlib \
--disable-debug \
--arch=${ARCH} \
$([ "${ARCH}" == 'i686' ] && echo '--disable-ssse3' '--disable-amd3dnowext' )
smplayer mplayer ,
, youtube.com,.
slackbuilds.org.
Smplayer : smplayer
youtube
smtube.
smtube
smplayer
smplayer.sourceforge.net/downloads.php?tr_lang=ru
smtube ( smplayer). Makefle
PREFIX PREFIX=/usr,
make install DESTDIR makepkg.
smplayer co slackbuilds.org.
, smplayer umplayer, smplayer2, ,
,
.
. ../src/core.cpp void
Core::incBrightness(), void Core::decBrightness(), void Core::incContrast(), void
Core::decContrast(), void Core::incGamma(), void Core::decGamma(), void
Core::incHue(),
void
Core::decHue(),
void
Core::incSaturation(),
void
Core::decSaturation(),
set*(mset.*
+()
4);
gnome-mplayer - mplayer,
youtube.com firefox flashvideoreplacer, co
slackbuilds.org. xine.
xine-plugin gecko
xine, co www.xineproject.org/releases.
. mplayer .
fbreader , co slackbuilds.org.
liblinebreak co slackbuilds.org.
fbreader
UI=${UI:-qt4}
UI=${UI:-gtk}
patch -p1 < $CWD/fbreader_gcc45x.patch
, CoolReader, co slackbuilds.org
MyRuLib ,
,
, ,
, co slackbuilds.org. coolreader
(fbreader ),
COOLREADER="no"
.
mplayer, vlc xine c ,
. ,
, .
, .
, A
:) ,
,
.
, last.fm, ,
,
, .
guayadeque, c ,
, , , sqlite ,
, ape
.
. ,
, . Guayadeque
wxPython, , .
guayadeque .
sourceforge.net/projects/guayadeque/files/guayadeque
launchpad.net/~anonbeat/+archive/guayadeque/+sourcepub/2246901/+listing
archiveextra . pysetuptools, gstpython, libmpeg2, a52dec, gst
pluginsugly, gstffmpeg ( mac) slackbuilds.org.
./build , make install
DESTDIR makepkg. aur ArchLinux.
, svn,
, .
qmmp
co
slackbuilds.org. libmms slackbuilds.org, libmpcdec co slacky.eu.
Qmmp winamp,
foobar Qmmp Plugin Pack,
qmmp.ylsoftware.com/plugins_ru.php.
(simple) , qmmppluginpack.pri,
#Comment/uncomment this if you want to change plugins list
#CONFIG += MPG123_PLUGIN
#CONFIG += FFAP_PLUGIN
CONFIG += SIMPLE_UI_PLUGIN
,
foobnix www.foobnix.com,
, guzei.com,
, sky.fm xiph.org,
. simplejson co
slackbuilds.org ( , ).
github.com/coderholic/pyradio,
. ,
mplayer .
~/.mplayer/config.
#
af=equalizer=6:4:2:0:0:0:0:3:5:8
( ,
, ).
streamtuner2 foobnix stations.csv. aur
ArchLinux slackbuilds.org. pip install pyradio.
, mplayer player.py :
def _buildStartOpts(self, streamUrl, playList=False):
""" Builds the options to pass to subprocess."""
if playList:
opts = [self.PLAYER_CMD, "-cache", "128", "-quiet", "-playlist", streamUrl]
else:
opts = [self.PLAYER_CMD, "-cache", "128", "-quiet", streamUrl]
return opts
radiotray
, radiotray.sourceforge.net.
co slackbuilds.org.
streamtuner2 , ,
. streamripper co slackbuilds.org.
streamtuner2.sourceforge.net. aur ArchLinux.
Cython, lxml, pyquery co slackbuilds.org ( ,
, ).
streamtuner2
, , streamtunersetup,
,
#!/bin/bash
mkdir -p /tmp/streamnuner2 /tmp/streamnuner2/usr/bin \
/tmp/streamnuner2/usr/share \
/tmp/streamnuner2/usr/share/pixmap \
/tmp/streamnuner2/usr/share/streamtuner2
cp ./st2.py /tmp/streamnuner2/usr/bin/
cp ./streamtuner2.png /tmp/streamnuner2/usr/share/pixmap/
cp -r ./* /tmp/streamnuner2/usr/share/streamtuner2/
rm -rf /tmp/streamnuner2/usr/share/streamtuner2/st2.py
rm -rf /tmp/streamnuner2/usr/share/streamtuner2/streamtuner2.png
cd /tmp/streamnuner2/
/sbin/makepkg -l y -c n /tmp/streamtuner2.txz
rm -rf /tmp/streamnuner2
/tmp.
peyote . peyote.sourceforge.net.
. aur ArchLinux. pyinotify co
slackbuilds.org. peyote ,
mescaline && peyote
volup.sh
amixer set 'Master' 1+
killall notify-osd
notify-send " . : `amixer get 'Master' | grep 'Front Left:'|\ cut
-b23-25` 63"
feff .
dansoft.krasnokamensk.ru/more.html?id=1013
http://qtapps.org/content/show.php/Feff?
content=140298&PHPSESSID=5e0f8817dce26a9eb7650e499e1c42d7
qmake, make, PATH. aur
ArchLinux.
DVD ,
, .
,
,
, . cdcat
cdcat.sourceforge.net, slackbuilds.org, qt3
, ,
, .
libzen,libtar, libmediainfo c slackbuilds.org, lib7zip co
code.google.com/p/lib7zip. lib7zip p7zip
c slackbuilds.org lib7zip. lib7zip
./configure \
--build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu \
--prefix=/usr \
--libdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
P7ZIP_SOURCE_DIR="____p7zip" \
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx -m3dnow \
-falign-jumps=1 -falignCXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx -m3dnow \
-falign-jumps=1 -falig
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
cdcat,
src/cdcat.pro
distfiles.path =
/usr/local/share/cdcat
target.path +=
/usr/local/bin
translations.path += /usr/local/share/cdcat/translations
distfiles.path =
/usr/share/cdcat
target.path +=
/usr/bin
translations.path += /usr/share/cdcat/translations
5 -
libreOffice .
www.libreoffice.org/download.
rpm tgz rpm2tgz.
libre
alien.slackbook.org/blog.
help.libreoffice.org/Writer/Checking_Spelling_and_Grammar/ru.
openoffice ,
.
. ,
openoffice libre, ,
, pdf .
openoffice.
download.irs.ru/pub/openoffice, tar.gz,
rpm tgz rpm2tgz (rpm2tgz *.rpm), tgz
(installpkg *.tgz).
, gnumeric calc
OO , abiword
, ,
.
. Gnumeric abiword slackbuilds.org.
lyx :) slackbuilds.org,
tetex DVD. lyx tetex
~/.bashrc
export PATH=$PATH:/usr/share/texmf/bin
,
( :)
. .
,
,
,
,
. zim
, , .
.
keepnote
.
. o slackbuilds.org
mytetra
: , ( )
, .
webhamster.ru/site/page/index/articles/projectcode/105
slackbuilds.org.
notecase -
. (
, ,
,
:).
,
( ).
,
.
packages.ubuntu.com hddtemp, .
Makefile,
if [[ "$(TEST_SRCVIEW_VER)" < "2.4.1" ]]; then \
Makefile. aur ArchLinux, pro
.
, ,
. , TreeSheets
treesheets.com, , .
, ,
, qorganizer
qorganizer.sourceforge.net,
. aur ArchLinux.
vym xmind slackbuilds.org.
pdf, evince , , ,
qpdfview launchpad.net/qpdfview, slackbuilds.org aur ArchLinux.
,
. qmake,
qpdfview.pro.
poppler .
djvu evince, ,
djview4
djview4 slackbuilds.org ( windjvu
wine..:=)
,
kchmviewer-qt - chm, co slackbuilds.org.
xchm chm, kchmviewer
. slackbuilds.org
speedcrunch - slackbuilds.org.
stardict - stardict 14 , 13.37
download.salixos.org/i486/13.37/salix/xap/stardict3.0.2i4861gv.txz.
slackbuilds.org qstardict.
, (
), goldendict, ,
git. git
git clone git://github.com/goldendict/goldendict.git
6 -
,
barrage . Community ArchLinux.
lgames.sourceforge.net/index.php?project=Barrage
ltris , slackbuilds.org.
lbreakout2 , slackbuilds.org
sourceforge.net/projects/lgames/files/addons/lbreakout2
foobillardplus - .
sourceforge.net/projects/foobillard/files/FooBillardSources.
, wine
bridgepreferance.narod.ru/PrefPrograms.htm,
marriage
2007
,
www.marriage.ru/winmar/index.htm.
gambler online (, , ).
:). (java) www.gambler.ru/download
openarena , slackbuilds.org
packages.zenwalk.org/?b=/extra/games&zversion=current
dosbox c slackbuilds.org
, DOSBox
Game Launcher members.quicknet.nl/blankendaalr/dbgl,
SDL_sound c slackbuilds.org.
7 - KDE GNOME
kdelibs gnomelibs, .
, kdelibs ,
kdebaseapps, kdelibs, kdel10nru,
oxygenicons, kderuntime, polkitkdeagent, kdeworkspace, strigi,
,
slakfinder.org .
KDE /usr/bin/kdeinit WM.
gnome slackbuilds.org.
VII -
, adduser,
, logout,
.
1 -
DPI . DPI
, .
DPI
pxcalc.com
members.ping.de/~sven/dpi.html , DPI
xdpyinfo | grep -B2 resolution. , .
, DPI
. , ,
, .
~/.Xresources
Xft.dpi: DPI
...
.
:
xrdb -query -all
.
.
, , ,
,
font.conf.
, .
duganchen.ca/writings/slackware/fonts (
, ).
linuxquestions.org
www.linuxquestions.org/questions/slackware14/howtooptimizefontsin
slackware640468.
linuxquestions.org. C
archlinux
wiki.archlinux.org/index.php/Font_Configuration/
,
/var/cache/fontconfig,/etc/fonts,~/.fonts,~/.fontconfig,~/.fonts.conf,~/.config/font
manager,~/.config/Trolltech.conf,~/.config/fontgroups.xml,
. ,
, ,
KDE systemsettings,
, systemsettings
.
,
.
A. freetype.
bytecode interpreter ( )
Apple.
,
freetype, /freetype***/include/freetype/config/ftoption.h,
#define TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED
Apple .
LCD
,
zcat $CWD/freetype.subpixel.rendering.diff.gz | patch -p1 --verbose || exit 1
( freetype /freetype
***/include/freetype/config/ftoption.h
TT_CONFIG_OPTION_SUBPIXEL_HINTING
TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED)
( freetype, 14
)
zcat $CWD/freetype.illadvisederror.diff.gz | patch -p1 --verbose || exit 1
freetype.
freetype (
freetype) .
/etc/fonts/conf.avail
/etc/fonts/conf.d 10subpixel*.conf.
:),
. vrgb .
fccache f v.
:),
,
bytecode interpreter Apple,
, subpixel* /etc/fonts/conf.d,
(full) (hinting) (antialisang)
~/.fonts.conf (/root/.fonts.conf)
/etc/fonts/conf.avail /etc/fonts/conf.d.
freetype, ( **subpixel
/etc/fonts/conf.d), /etc/fonts/conf.avail/10antialias.conf (
, )
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
</match>
</fontconfig>>
10autohint.conf /etc/fonts/conf.d. ,
Liberastika, handbookpdcyr, serif
Georgia, Georgia
Times New Roman ( ,
), DejaVu Sans Mono
Terminus. , :).
wine Arial, Times New Roman MS Sans
Serif, .
~/.fonts.conf (/root/.fonts.conf)
<!--?xml version="1.0"?>-->
<!--DOCTYPE fontconfig SYSTEM "fonts.dtd">-->
<!-- ~/.fonts.conf for per-user font configuration -->
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Liberation Serif</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Liberastika</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
</prefer>
</alias>
</fontconfig>
~/.Xresources (/root/.Xresources) ( )
Xft.antialias: 1
Xft.autohint: 1
, ,
,
~/.composecache, .
. :
/etc/fonts/conf.d/60liberation.conf
default.theme IceWM *FontName*
,
TitleFontNameXft
=
Arial:size=14
IceWM,
default.theme IceWM *FontName*
TitleFontNameXft
=
Liberation Sans:size=14
IceWM,
/etc/fonts/conf.d/60liberation.conf
IceWM,
default.theme IceWM *FontName*
,
TitleFontNameXft
=
sansserif:size=14
IceWM,
IceWM .
, :)
B. ubuntu
freetype, fontconfig, libXft, cairo
sites.google.com/site/mostlyslack/cleartype
www.linuxquestions.org/questions/slackware14/howtooptimizefontsin
slackware640468/page23.html#post4793524
fonts.conf
/etc/fonts/conf.avail
/etc/fonts/conf.d 10subpixel*.conf.
/etc/fonts/conf.d/60liberation.conf Arial
.
D. infinality.
www.infinality.net/blog,
fonts.conf.
someslack.wordpress.com/infinality
onslackware. github.com/nihilismus/bob
infinalitybundle. suseana.ru/?p=576#more
576 posix.ru/?p=126. infinality
Infinality Style Changer gtkapps.org.
,
. ,
:)
freetype co bytecode interpreter subpixel rendering
, .
www.linuxquestions.org/questions/slackware14/howtooptimizefontsinslackware
640468.
freetype .
,
, .
, , paratype, , liberation
pscyr (www.tex.uniyar.ac.ru/package/fonts/pscyr). .
pscyr Type1, ~/.fonts
, pfb afm.
medium, , ,
. .
:
free.type.org.ua
www.thessalonica.org.ru/ru/fonts.html
connie.slackware.com/~alien/slackbuilds/msofficefonts
pier.botik.ru/~znamensk/ftp.vsu.ru/fontpacks/pscyr/
www.webtag.ru/fonts
www.dafont.com
ifont.ru
download.opensuse.org/repositories/M17N:/fonts/openSUSE_Factory/
noarch
ru.fonts2u.com
forum.rudtp.ru/threads/besplatnyekirillicheskieshrifty.46105
webfont.ru
, 13 ,
freetype Apple roboto Lucida
G. aur ArchLinux, ttfroboto ttfmacfonts.
, ,
,
,
/var/log/packages.
fonts.dir /usr/share/fonts/OTF(TTF)
( ).
mkfontdir mkfontscale, f-cache -frv
/usr/share/fonts.
,
. fixed, cursor, cursor.pcf,
Liberation, Microsoft Sans Serif, Arial, Tmes New Roman, Terminus
serif , handbookpscyr, DejaVu
Sans Mono , , misc
misc .
~/.fonts mkfontdir,
mkfontscale, f-cache -frv. ,
,
.
fccache, fc
cat, fclist, fcmatch, fcquery fcscan.
.
2 -
/etc/rc.d.
:)
stop,
""
, mc, worker.
start. ,
( *.conf /etc),
restart.
/etc/rc.d .
( ),
rc.4, rc.6, rc.K,
rc.M, rc.S (
), rc.alsa, rc.dnsmasq, rc.font, rc.fuse, rc.inet1,
rc.keymap, rc.loop, rc.messagebus, rc.modules*, rc.udev.
rc.mcelog rc.syslog
,
/etc/rc.d/rc.local_shutdown, ,
, /etc/rc.d/rc.local,
.
. .
3 -
,
/etc/rc.d/rc.modules*. hardinfo, Kernel Modules
/etc/modprobe.d/blacklist.conf
blacklist <>
IPV6 , ,
,
/etc/modprobe.d/blacklist.conf
blacklist ipv6
4 - prelink
,
. slackbuilds.org ( ).
/opt /etc/prelink.conf
-l /opt
/usr/doc/prelink20100106/prelinkall.
echo
.
.
( ) .
,
/etc/prelink.conf ,
-b /usr/bin/skype
,
, liveCD, ,
prelink LiveCD,
/etc/prelink.conf I (
)
-l /mnt/sda1/bin
prelinkundo prelink. (
) prelinkundo.
prelink. c, , .
, ,
,
.
5 - sudoers
/etc/sudoers ,
sudo .
WM, .
,
ed ALL=NOPASSWD: /usr/sbin/hddtemp,/usr/sbin/smartctl
ed ALL=NOPASSWD: /usr/bin/worker,/usr/bin/htop
ed - .
6 - bash
,
~/.bashrc,
.
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -r /etc/bashrc ]; then
. /etc/bashrc
fi
#
PS1='\[\033[1;34m\]\w\n\[\033[0;30m\]\u->'
# bash, shopt -p (shopt Shell Options)
shopt -s autocd cdspell checkjobs cmdhist dirspell globstar
# ls, bg, fg, exit
export HISTIGNORE="&:ls:[bf]g:exit"
# gcc
export CHOST="i686-pc-linux-gnu"
# C
export CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -mmmx
-m3dnow -falign-jumps=1 -falign-labels=1 -fPIC"
# Arch
#export CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC"
# gcc,
#export CFLAGS="-O2 -march=i486 -mtune=i686"
# gcc gtk
#export CFLAGS="-Os -march=i686 -mtune=i686 -fomit-frame-pointer -pipe -falignjumps=1 -falign-labels=1 -fPIC"
export CXXFLAGS="${CFLAGS}"
#
# C
export LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#
# Arch
#LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#
alias gdeman="apropos"
alias gde="slocate"
# c
alias tar='nice -n 19 tar'
alias gzip='nice -n 19 gzip'
alias bzip2='nice -n 19 bzip2'
alias xz='nice -n 19 xz'
alias zip='nice -n 19 zip'
alias unzip='nice -n 19 unzip'
alias removepkg='nice -n 19 removepkg'
alias installpkg='nice -n 19 installpkg'
alias
alias
alias
alias
alias
alias
/opt/scripts/makepkg-arch='nice -n 19 /opt/scripts/makepkg-arch'
/usr/sbin/makepkg-arch='nice -n 19 /usr/sbin/makepkg-arch'
cmake='nice -n 19 cmake'
qmake='nice -n 19 qmake'
ccache='nice -n 19 ccache'
make='nice -n 19 make'
# QT
export QT_GRAPHICSSYSTEM="raster"
# pango firefox
export MOZ_DISABLE_PANGO=1
#
export XEDITOR=/usr/bin/juffed
export EDITOR=tilde
export VISUAL=$EDITOR
export BROWSER=/usr/bin/qupzilla
#
export TERM=xterm
# java
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
#export _JAVA_OPTIONS='Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
export JAVA_FONTS=/usr/share/fonts/TTF
#
set completion-ignore-case on
# man, sudo, time, etc
complete -cf sudo
complete -cf man
complete -cf time
complete -cf mantxt
complete -cf killall
bash . ~/.bashrc,
. , root .
Up Down,
~/.inputrc
"\e[A": history-search-backward
"\e[B": history-search-forwavd
7 -
Linux ,
.
,
:)
. htop,
.
, ,
~/.bashrc alias ="nice n19 "
. n ,
n , n
, n .
~/.bashrc .
,
,
root.
,
,
.
8 -
.
/etc/fstab
/dev/sda* / ext3 defaults,noatime,nodiratime,barrier=0,commit=120,data=ordered 1 1
noatime,nodiratime
barrier
,
.
;
.
;
,
.
(barriers); , ,
, , ,
, .
, ,
, .
barrier=0,
commit
data=ordered .
writeback,
. UPS
( ,
:) writeback,
fstab .
LiveCD, ,
,
tune2fs -O has_journal -o journal_data_writeback /dev/sda*
fstab data=writeback
:)
,
,
.
SMART . /etc/rc.d/rc.M
,
# Start smartd, which monitors the status of S.M.A.R.T.
# compatible
# hard drives and reports any problems. Note some devices
# (which arent
# smart, I guess ;) will hang if probed by smartd, so its
#commented
# out
# by default.
if [ -x /usr/sbin/smartd ]; then
/usr/sbin/smartd
fi
, ,
.
5 % ( /
/var /tmp) linux c ext (!!)
tune2fs -m 0 /dev/sda*
5% ,
, ,
LiveCD
, , 1 %
tune2fs -m 1 /dev/sda*
9 -
,
, . /etc/sysctl.conf
vm.swappiness=20
, /etc/sysctl.conf
vm.vfs_cache_pressure = 1000
10 - Xorg
#FFFBEF
xfontsel*foreground:
#000000
xfontsel*font: -adobe-helvetica-*-r-*-*-17-*-*-*-*-*-*-*
!##
!## xpaint
!##
xpaint*background:
#FFFBEF
xpaint*foreground:
#000000
xpaint.toolbox.vport.box*background: #FFFBEF
xpaint.toolbox*font: -adobe-helvetica-*-r-*-*-17-*-*-*-*-*-*-*
Canvas*background:
#FFFBEF
Canvas*foreground:
#000000
Canvas.pane*background:
#FFFBEF
Canvas.pane*foreground:
#000000
Canvas.pane*font: -adobe-helvetica-*-r-*-*-17-*-*-*-*-*-*-*
.
editres.
11 -
GTK. ~/.icons.
~/.gtkrc2.0
//_ - ~/.icons( //!)
gtk-icon-theme-name="_"
gtk-icon-sizes="gtk-menu=24,24: //
gtk-button=24,24:
// ""
gtk-small-toolbar=32,32: //
gtk-large-toolbar=24,24:
gtk-dnd=32,32:
gtk-dialog=24,24" //
gtkrc ~/.themes/
/usr/share/themes/ .
12 - GTK
GTK , ,
~/.gtkrc2.0 (/root/.gtkrc2.0)
gtk-menu-popup-delay = 50
gtk-menu-popdown-delay = 50
gtk-menu-bar-popup-delay = 50
gtk-enable-animations = 0
gtk-timeout-expand = 10
GTK , ~/.gtkrc2.0
gtk-theme-name = "Human"
Human ~/.icons/Human
/usr/share/icons/Human
, ~/.gtkrc2.0,
www.gtk.org/api/2.6/gtk/GtkSettings.html
, GTK GTK ,
gtkchtheme
13 - Qt
Qt , raster.
~/.bashrc (/root/.bashrc)
export QT_GRAPHICSSYSTEM="raster"
QT
qtconfig.
[QT] ~/.config/Trolltech.conf, ,
qtconfig
GTK QT
/home /root, gtkchtheme qtconfig .
14 - qtcurve
( KDE GNOME)
systemsettings. GTK .
qtcurve,
KDE ~/.kde/share/config/kdeglobals
[Icons]
Theme=gnome
GTK ~/.themes/QtCurve/gtk2.0/gtkrc
gtk-menu-images = 1
gtk-fallback-icon-theme="gnome"
gnome ( ) /usr/share/icons
GTK qtcurve
systemsettings
~/.kde/share/config/kdeglobals (/root/.kde/share/config/kdeglobals),
[General]
XftHintStyle=hintfull
desktopFont=Liberastika,15,-1,5,50,0,0,0,0,0
fixed=DejaVu Sans Mono,14,-1,5,50,0,0,0,0,0
font=Liberastika,15,-1,5,50,0,0,0,0,0
menuFont=Liberastika,15,-1,5,50,0,0,0,0,0
shadeSortColumn=false
smallestReadableFont=Liberastika,15,-1,5,50,0,0,0,0,0
taskbarFont=Liberastika,15,-1,5,50,0,0,0,0,0
toolBarFont=Liberastika,15,-1,5,50,0,0,0,0,0
widgetStyle=plastique
..
[WM]
activeFont=Liberastika,15,-1,5,50,0,0,0,0,0
activeForeground=255,251,239
15 - NumLock
NumLock.
numlockx c slackbuilds.org,
WM /etc/X11/xinit/xinitrc.WM,
,
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
WM, IceWM
/home/user/.icewm/startup,
/usr/bin/numlockx &
,
. ~/.Xmodmap
keycode
keycode
keycode
keycode
keycode
keycode
keycode
keycode
keycode
keycode
keycode
79=7
80=8
81=9
83=4
84=5
85=6
87=1
88=2
89=3
90=0
91=period
keycode
keycode
keycode
keycode
keycode
108=Return
86=plus
82=minus
63=asterisk
112=slash
16 - WM
startx, ,
/etc/inittab
# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
17 -
,
, ,
. KDE gnome
, , ,
,
.
magnet c
, , ,
qupzilla,
magnet
qbittorrent eiskaltdcpp
/usr/bin/xdgopen, generic)
case "$DE" in
kde)
open_kde "$url"
;;
gnome)
open_gnome "$url"
;;
xfce)
open_xfce "$url"
;;
lxde)
open_lxde "$url"
;;
generic)
if (echo $url | grep '^magnet:?xt=urn:tree') then
eiskaltdcpp "$url"
elif (echo $url | grep '^magnet:?xt=urn:btih') then
qbittorrent "$url"
elif (echo $url | grep 'torrent$') then
qbittorrent "$url"
else
open_generic "$url"
fi;;
*)
exit_failure_operation_impossible "no method available for opening '$url'"
;;
esac
,
file:// worker.
/usr/bin/xdgopen open_generic() :
open_generic()
{
# pcmanfm only knows how to handle file:// urls and filepaths, it seems.
if (echo "$1" | grep -q '^file://' ||
! echo "$1" | egrep -q '^[a-zA-Z+\.\-]+:')
then
local file="$(echo "$1" | sed 's%^file://%%')"
# handle relative paths
if ! echo "$file" | grep -q '^/'; then
file="$(pwd)/$file"
fi
worker "$(pwd)"
fi
18 - zip
zip .
cp1251,
.
unzip -l archive.zip |enca
convmv
www.j3e.de/linux/convmv, /usr/local/bin.
,
$ ls -1 | head -1 | iconv -f CP1251 -t utf8
ls -1 | head -1 | xargs convmv -f CP1251 -t utf8 -r --notest
zip www.opennet.ru/tips/info/2494.shtml.
:),
, wine 7z, peazip,
winrar.
19 -
dnsmasq DNS
http://linuxru.org/man/spravkaponastroykednsmasqdnsmasqconf,
dnsmasq.conf .
/etc/dnsmasq.conf (
)
listen-address=127.0.0.1
/etc/resolv.conf
nameserver 127.0.0.1
"
dns", . firefox
0 network.dnsCacheExpiration
network.dnsCacheEntries about:config..
/etc/rc.d/rc.dnsmasq
/etc/rc.d/rc.dnsmasq start ( restart)
# Add domains which you want to force to an IP address here.
# The example below send any host in double-click.net to a local
# web-server.
address=/an.yandex.ru/127.0.0.1
address=/adfox.ru/127.0.0.1
address=/vk.com/127.0.0.1
address=/luxup.ru/127.0.0.1
address=/rambler.ru/127.0.0.1
address=/apis.google.com/127.0.0.1
address=/cdn.api.twitter.com/127.0.0.1
address=/feeds.delicious.com/127.0.0.1
address=/api.ak.facebook.com/127.0.0.1
address=/kontera.com/127.0.0.1
address=/googleadservices.com/127.0.0.1
address=/adriver.ru/127.0.0.1
address=/adru.net/127.0.0.1
address=/vkontakte.ru/127.0.0.1
address=/www.tns-counter.ru/127.0.0.1
address=/gravatar.com/127.0.0.1
address=/mc.yandex.ru/127.0.0.1
address=/google-analytics.com/127.0.0.1
address=/platform.twitter.com/127.0.0.1
address=/yadro.ru/127.0.0.1
address=/begun.ru/127.0.0.1
address=/googlesyndication.com/127.0.0.1
address=/redtram.com/127.0.0.1
address=/redtram.ru/127.0.0.1
address=/marketgid.com/127.0.0.1
address=/rl0.ru/127.0.0.1
address=/doubleclick.net/127.0.0.1
address=/novoteka.ru/127.0.0.1
address=/sj10.ru/127.0.0.1
address=/sj3.ru/127.0.0.1
address=/odnoklassniki.ru/127.0.0.1
address=/dt00.net/127.0.0.1
address=/24smi.org/127.0.0.1
address=/openx.org/127.0.0.1
127.0.0.1 adfox.ru,
.
,
netconfig, pppoe, etc
alsaconf, alsamixer ( ) alsactl store ( ). ,
alsamixer , master (1 2), PCM,
CD alsactl store ( ). .
200
40
xset r rate
slocate
slocate ,
c find.
, /etc/updatedb.conf,
PRUNEPATHS="/dev /proc /sys /tmp /usr/tmp /var/tmp /afs /net /media /mnt /home /root /opt"
PRUNEPATHS="/dev /proc /sys /tmp /usr/tmp /var/tmp /afs /net /media /mnt"
bash ,
. zsh ,
, , mksh.
/etc/shells,
/etc/passwd.
login shell .
optimization.hardlinux.ru
wiki.archlinux.org/index.php/Maximizing_Performance
.. , .
, , :).
LFS, , :),
LFS BLFS
www.linuxfromscratch.org ,
http://ruslinux.net/nlib.php?name=/MyLDP/BOOKS/LFSBOOK6.8ru/lfs6.8ru
index.html
http://ruslinux.net/nlib.php?name=/MyLDP/BOOKS/BLFSru/blfsruindex.html
VIII - (WM)
1 -
WM xwmconfig,
, WM, .
IceWM. IceWM
~/.xinitrc:
exec icewm-session
, X.Org, IceWM.
, udisks,
"exec icewmsession" :
exec ck-launch-session dbus-launch icewm-session
/etc/X11/xinit/xinitrc.
2 - IceWM
A.
, ,
,
.
~/.icewm.
, ~/.icewm
/usr/share/icewm, keys, menu, preferences, toolar winoptions.
IceWM, ,
docstore.mik.ua/manuals/ru/icewm/icewmru.html#toc6
quickcode.chat.ru/icewm/icewmru.html
mydebianblog.blogspot.com/2006/10/icewm.html.
avreg.net/howto_icewm.htm
konishchevdmitry.blogspot.com/2008/07/icewm.html
vectorlinux.osuosl.org/docs/vl50/vlfaq/icewm.htmt.
icewm.org,
, , :)
.
preferences.
,
. , preferences (
:) ( )
.
,
IceWM
# Menus track mouse even with no mouse buttons held (
# )
MenuMouseTracking=1 # 0/1
# Support win95 keyboard keys (Penguin/Meta/Win_L,R shows menu)
Win95Keys=1 # 0/1
# Support mouse wheel
UseMouseWheel=1 # 0/1
# Alt+Tab window switching
QuickSwitch=1 # 0/1
runonce
.
toolbar ( prog
)
prog "xterm" "xterm" xterm
prog "juffed - " "/usr/share/pixmaps/juffed.png" juffed
prog "Worker - " "/usr/share/pixmaps/WorkerIcon16.xpm" worker
prog "firefox" "/usr/lib/firefox-4.0b6/chrome/icons/default/default16.png" firefox
menu "" "folder" {
prog "Htop-root - " "/usr/share/pixmaps/htop.png" roxterm --tab
--tab-name=htop -e sudo htop
prog "umix - " "/usr/share/aumix/aumix.xpm" aumix
}
IceWM startup,
#!/bin/bash
killall icewmtray &
sleep 1
compton &
devilspie &
sleep 2
wmdrawer -c /home/ed/.wmdrawer/wmdrawerrc &
sleep 1
/opt/scripts/running-worker worker &
sleep 2
roxterm &
sleep 3
xdotool search --class ROXTerm windowminimize
copyq &
xneur &
sleep 3
perWindowLayoutD &
gkrellm &
lxpanelx &
exit
sleep .
icewm lxpanelx
, , lxpanelx
. sleep,
, killall icewmtray &,
lxpanelx ,
, ,
. startup .
icewm
, .
~/.icewm/winoptions.
winoptions
# This is an example for IceWM's window options file.
#
# Place your variants in /etc/icewm or in $HOME/.icewm
# since modifications to this file will be discarded when you
# (re)install icewm.
# IceWM lxpanelx wmdrawer
wmdrawer.dTitleBar: 0
wmdrawer.dBorder: 0
wmdrawer.layer: OnTop
wmdrawer.ignoreWinList: 1
Conky.Conky.ignoreWinList: 1
panel.lxpanelx.ignoreWinList: 1
# geometry
regexxer.geometry: +300+150
evince.geometry: 1100x1020+250+10
xterm.geometry: 1200x700+320+120
xterm.icon: xterm
rxvt.icon: xterm
nxterm.icon: xterm
AWTapp.icon: java
# workaround for XV window repositioning problems
xv.nonICCCMconfigureRequest: 1
XClock.ignoreNoFocusHint: 1
MainWindow.licq.allWorkspaces: 1
MainWindow.licq.ignoreQuickSwitch: 1
MainWindow.licq.ignoreWinList: 1
MainWindow.licq.layer: Below
, winoptions ,
.
window_class.window_name.window_role.option:
argument
window_class.window_name.option: argument window_class.window_role.option:
argument window_name.window_role.option: argument window_class.option:
argument window_name.option: argument window_role.option: argument.
xprop: class name
WM_CLASS = "name", "class", role WM_WINDOW_ROLE = "window role".
class, name role ,
the\.class.the\.name.option: argument.
xwininfo.
winoptions
icewm www.icewm.org/manual/icewm14.html#winoptions.
.
:
icon .
geometry . unix : [=][{xX}]
[{+-}{+-}].
:
workspace ( 0)
, :
layer:
Desktop . .
Below Normak.
Normal
OnTop .
Menu
tray:
Ignore .
Minimized , ,
Exclusive .
:
llWorkspaces 1,
ignoreWinList 1,
ignoreTaskBar 1,
ignoreQuickSwitch 1, Alt+Tab.
fMove 0, .
fResize 0, .
fClose I 0, .
fMinimize 0, .
fMaximize 0, .
fHide 0,
dTitleBar 0, .
dSysMenu - 0, .
dBorder 0, .
dClose 0, .
dMinimize 0,
dMaximize 0, .
dDepth
ignorePositionHint
doNotFocus
startFullscreen
startMinimized
startMaximized
startMaximizedVert
startMaximizedHorz
nonICCCMconfigureRequest
noFocusOnMap
~/.icewm/keys.
#
#
#
#
#
#
#
#
#
#
#
key "Shift+Space"
key "Ctrl+9"
key "Ctrl+0"
#key "Alt+Ctrl+9"
#key "Alt+Ctrl+0"
/usr/bin/xkill
amixer set 'Master' 1amixer set 'Master' 1+
amixer set 'PCM' 1amixer set 'PCM' 1+
WM WM Xnest xorg
xterm WM.
/tmp/.X20lock /tmp/.X11unix/X20.
B. IceWM
,
boxlook.org ( WinXP lxp.sourceforge.net),
, dropbox
wuala, , .
~/.icewm/themes/ ,
.
default.theme . ,
, default.theme,
. www.icewm.org/themes.
DesktopBackgroundImage="background.jpg"
# Font Specification
TitleFontNameXft
=
MenuFontNameXft
MinimizedWindowFontNameXft
ActiveButtonFontNameXft
NormalButtonFontNameXft
ToolButtonFontNameXft
NormalWorkspaceFontNameXft
ActiveWorkspaceFontNameXft
QuickSwitchFontNameXft
ListBoxFontNameXft
StatusFontNameXft
ToolTipFontNameXft
ActiveTaskBarFontNameXft
NormalTaskBarFontNameXft
ClockFontNameXft
=
InputFontNameXft
=
sans-serif:size=14:bold
=
sans-serif:size=14:bold
=
sans-serif:size=14
=
sans-serif:size=14:bold
=
sans-serif:size=14
=
sans-serif:size=14
=
sans-serif:size=14
=
sans-serif:size=14:bold
=
sans-serif:size=14
=
sans-serif:size=14
=
sans-serif:size=14
=
sans-serif:size=14
=
sans-serif:size=14:bold
=
sans-serif:size=14
sans-serif:size=14
sans-serif:size=14
.
IceWM icewm.tbz.
IceWM. ,
, ,
. ,
.
gradient,
. default.theme
Gradients="menubg.xpm taskbuttonactive.xpm menusel.xpm dialogbg.xpm
workspacebuttonactive.xpm taskbuttonbg.xpm taskbuttonminimized.xpm"
, ()
default.theme
. 4, . 4,8
, 1 , .
, default.theme
TitleBarHeight=26 .
,
,
, .
, pixmap flat,
default.theme Look= pixmap.
, ,
ledclock,
icons,
( ,
gmail ) mailbox,
fonts
(
default.theme) cursor. dframe* frame*,
default.theme. taskbar
desktop.xpm
icewm.xpm, taskbarbg.xpm
taskbuttonactive.xpm,
taskbuttonbg.xpm, taskbuttonminimized.xpm.
, ,
.
3 - openbox
, /etc/xdg/openbox
/home/user/.config/openbox. rc.xml
, . ,
. menu.xml
. ( )
, .
autostart .
.
, openbox obconf, obmenu, obtheme /
menumaker.
Lxpanel /home/user/.config/lxpanel/default.
/usr/share/lxpanel/profile/default. Tint 2
tint2conf. tint 2conf /sbin/killall5
/usr/bin/pidof.
openbox
wiki.debian.org/ru/Openbox wiki.archlinux.org/index.php/Openbox
urukrama.wordpress.com.
4 - E16
16 ,
, .
. .
~/.e16/fonts.xft.cfg,
font-default
"xft:Arial-14.5"
.
, ,
~/.e16/e_config0.0.cfg,
theme.use_theme_font_cfg = 0.
~/.e16/cached/cfg 16.
.
16keyedit.
~/.e16/bindings.cfg
Aclass BUTTONBINDINGS normal
MouseDown
A 1 wop * mo ptr
MouseDown
SA 1 wop = mo ptr
MouseDouble A 1 wop * shade
MouseDown
A 2 wop * sz ptr
MouseDouble A 2 wop * th available
MouseDown
A 3 menus show winops.menu
Aclass DESKBINDINGS normal
Tooltip Clicking your mouse on the desktop will perform
Tooltip the following actions
MouseDown
- 1 menus show file.menu
Tooltip Display User Menus
MouseDown
C 1 menus show enlightenment.menu
Tooltip Display Enlightenment Menu
MouseDown
4 1 menus show settings.menu
Tooltip Display Settings Menu
MouseDown
- 2 menus show windowlist
Tooltip Display Enlightenment Menu
MouseDown
A 2 menus show windowlist
Tooltip Display Task List Menu
MouseDown
C 2 menus show deskmenu
Tooltip Display Desktop Menu
MouseDown
S 2 menus show groupmenu
Tooltip Display Group Menu
MouseDown
- 3 menus show settings.menu
Tooltip Display Settings Menu
MouseDown
* 4 desk prev
Tooltip Go Back a Desktop
MouseDown
* 5 desk next
Tooltip Go Forward a Desktop
-
~/.e16/menus.
~/.e16/menus/file.menu. :
"User Menus"
"" "/home/ed/.e16/menus/icons/folder_16x16-blue.xpm" menu "menus_apps/internet.menu"
"" "/home/ed/.e16/menus/icons/folder_16x16-blue.xpm" menu "menus_apps/multimedia.menu"
~/.e16/menus_apps ~/.e16/icons.
~/.e16/Init(Start)(Stop)/startup.
. :
#!/bin/bash
numlockx &
tint2 &
sleep 1
devilspie &
sleep 2
mytetra &
sleep 2
stardict &
sleep 3
copyq &
xneur &
worker.sh &
sleep 1
roxterm &
sleep 5
conky &
sleep 1
xdotool search --class ROXTerm windowminimize
xdotool search --class Worker windowminimize
wmdrawer -c /home/ed/.wmdrawer/wmdrawerrc &
exit
16 ,
, 11,
~/.e16//cursors.cfg .
16 wiki.zenerves.net/index.php/E16_All
16
etherdoxproject.com. themes.effx.us/previews
5 - E17,18
,
,
sda00.blogspot.com radistelvin.blogspot.com/search/label/enlightenment
E17
ruslinux.net/nlib.php?name=/MyLDP/gui/E17/e17index.html
pclinuxos.su/index.php/vneshnivid/enlightenmente17
ruslinux.net/main.php?name=xwin.ko#6.4.,
.
E17
( ),
E17.
setxkbmap -option "grp:ctrl_shift_toggle,grp_led:scroll"
E17 e17stuff.org. 18
17.
6 -
,
( , )
compmg compton ( compton
xcompmgr ),
.
wiki.archlinux.org/index.php/Xcompmgr.
xorg.conf. Xcompmgr requires the following: Xorg must be
installed, configured and running. Composite must be enabled via graphics drivers,
AIGLX, or Xgl. Xcompmgr , , ,
.
Xcompmgr
,
.
compmg Section
"Device" xorg.conf
Option
Option
"RenderAccel" "true"
"AllowGLXWithComposite" "true"
xorg.conf
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER" "Enable"
EndSection
xcompmgr help man xcompmgr, compton.
xcompmgr -, .
IceWM /etc/X11/xinit/xinitrc.icewm
exec /usr/bin/icewm-session
/usr/bin/xcompmgr -c &
exec /usr/bin/icewm-session
xcompmgr (startup
IceWM), .
.
/usr/local/bin /
.
#!/bin/bash
#
# Start a composition manager.
# (xcompmgr in this case)
function comphelp () {
echo "Composition Manager:"
echo " (re)start: COMP"
echo " stop:
COMP -s"
echo " query:
COMP -q"
echo " returns 1 if composition manager is running, else 0"
exit
}
function checkcomp () {
( ps nc -C xcompmgr &>/dev/null ) && exit 1
exit 0
}
function stopcomp () {
( ps nc -C xcompmgr &>/dev/null ) && killall xcompmgr
}
function startcomp () {
stopcomp
# Example settings only. Replace with your own.
hsetroot -solid "#FFFBF0" &
xcompmgr -cC &
exit
}
case "$1x" in
"x") startcomp;;
"-qx") checkcomp;;
"-sx") stopcomp; exit;;
*) comphelp;;
esac
xcompmgr ,
,
. xcompmgr
.
IX -
worker
"C" . worker
roxterm juffed, worker
root user mode,
, worker.tbz .
.
, ,
.
worker, ttf
sansserif, ~/.fonts.conf.
' ' .
Worker ,
, ,
:)
gxneur (xneur)
,
.
, ,
,
yj.
,
~/.xneur/pattern ~/.xneur/dictionary
gxneur.
,
.
cairo-dock
,
"" " ".
icewm
, cairodock.
xcompmgr compton
cairodock openGL cairodock o.
, .
cairodock
, ,
#!/bin/bash
#
# ""
# , ""
#
APP=`basename $1`
FULLAPP="$*"
HOSTNAME=`hostname`
#
#
wmctrl -l -x | grep -i $APP | while read RUNNING
do
WINDOW=${RUNNING#*${HOSTNAME} }
wmctrl -a $WINDOW
exit 1
done
# ,
if [ $? -eq 0 ]
then
$FULLAPP
fi
worker juffed
#!/bin/bash
#
# ""
# , ""
# worker juffed
#
APP=`basename $1`
FULLAPP="$*"
HOSTNAME=`hostname`
#
#
wmctrl -l -x | grep -i $APP | while read RUNNING
do
WINDOW=${RUNNING#*${HOSTNAME} }
wmctrl -a $1
exit 1
done
# ,
if [ $? -eq 0 ]
then
$FULLAPP
fi
,
cairo
dock.
firefox
#!/bin/bash
#
# ""
# , ""
#
APP=`basename "Nightly"`
FULLAPP="firefox"
HOSTNAME=`hostname`
#
#
wmctrl -l -x | grep -i $APP | while read RUNNING
do
WINDOW=${RUNNING#*${HOSTNAME} }
wmctrl -a $WINDOW
exit 1
done
# ,
if [ $? -eq 0 ]
then
$FULLAPP
fi
cairodock.tbz.
.
wmdrawer
wmdrawer ~/.wmdrawer/wmdrawerrc.
wmdrawer ,
.
# Config file example for wmdrawer
[general]
# Dock's icon [optional]
dock_icon
logo-icewm-yellow-full.xpm
direction
0
icons_expand 0
transparency 1
btns_size
64
tooltips 0
show_on_hover 1
hide_on_out
1
hide_timeout 100
windowed_mode 1
[images_paths]
/usr/share/pixmaps
/usr/local/share/pixmaps/
/home/ed/.wmdrawer/pixmap
# A first column with 5 buttons
# Each button must be defined with this syntax:
# (tooltip) (image) (command)
[column]
(Syst) (Syst.xpm)
()
(Worker)
(worker.xpm) (/opt/scripts/running-worker worker)
(RoxTerm)
(roxterm.xpm)
(roxterm --tab -n mksh)
(Juffed) (juffed.xpm)
(/opt/scripts/running-one-program-sudo sudo juffed)
(Htop)
(preferences-desktop.xpm)
(roxterm --tab -n htop -e sudo htop)
(Clear) (edit-clear.xpm) (roxterm --tab -n clear-trash-cache-tmp -e sudo /opt/scripts/clear-cache-trash-tmp-other)
# A second column with 5 buttons
[column]
(Inet) (Inet.xpm)
()
(Qupzilla)
(qupzilla.xpm) (qupzilla)
(Quiterss)
(quiterss.xpm) (/opt/scripts/running-one-program nice -n 19 quiterss)
(Thunderbird)
(thunderbird.xpm)
(/opt/scripts/running-one-program thunderbird)
(qBitTorrent) (qbittorrent.xpm)
(qbittorrent)
(mplayer-flash)
(mplayer-flash.xpm)
(roxterm --tab -n youtube -e /opt/scripts/mplayer-flash5)
[column]
(Mult) (Mult.xpm)
()
(Guayadeque)
(guayadeque.xpm)
(guayadeque)
(FBReader)
(FBReader.xpm)
(/opt/scripts/running-one-program FBReader)
(SmTube)
(smtube.xpm)
(/opt/scripts/running-one-program smtube)
(PyRadio)
(preferences-desktop-text-to-speech.xpm)
(roxterm
--tab
-n
/opt/scripts/roxterm-command-in-new-tab pyradio)
pyradio
-e
[column]
(Other) (Other.xpm)
()
(cigarette) (cigarette2.xpm) (roxterm --tab -n -e mksh -c 'mcedit -S am_skins_blue.ini
/mnt/sda9/TEMP/LINUX//; mksh')
(ToDo)
(todo.xpm)
(sudo juffed /home/ed/TODO)
(Guide)
(mytetra.xpm)
(/opt/scripts/running-one-program mytetra)
( )(luckybackup.xpm)
(/opt/scripts/running-one-program-sudo
sudo
luckybackup)
gsmartcontrol
smartctl /usr/sbin/smartctl
luckybackup
"Snapshot to keep" ,
. .luckybackupsnaphots.
psensor
,
/usr/sbin/sensors-detect
conky
systemd.. :),
,
offset ,
, offset
goto.
conky ~/.conkyrc
# Conky, a system monitor, based on torsmo
#
#
#
update_interval 2.0
double_buffer yes
no_buffers yes
out_to_console no
out_to_stderr no
default_color yellow
#
# conky
#
alignment br
use_xft yes
xftfont DejaVu Sans Mono:size=12
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window yes
gap_x 0
gap_y 0
minimum_size 1850
#
#
#
#
TEXT
${goto 0}${hwmon 0 temp 1}C|${hddtemp /dev/sda}C${goto 1670} ${execi 1800
~/.conky/weather/weather.sh}${offset -5} C
${goto 0}$cpu%|$mem${offset -17}|$swap${goto 1680}${time %a%e %b}${offset 5}-$
{offset 5}${time %H:%M}
/etc/rc.d/rc.local
hddtemp -d /dev/sd*
lmsensors
sensorsdetect
wine
winecfg .
wine () www.winereviews.net/wine
reviews/tipsntricks/howtoenablefontantialiasinginwine.html (
files.polosatus.ru/winefontssmoothing.sh)
WINDOWS/Fonts
/home/user/.wine/drive_c/windows.
winetricks .
, worker
,
env WINEPREFIX="/home/ed/.wine" wine \
"C:\Program Files\Tracker Software\PDF-XChange Viewer\pdf-viewer\PDFXCview.exe" \
"$(winepath -w "$@")"
wine zenway.ru/page/winehowto
linuxsam.blogspot.ru/2008/07/wine.html
wine PlayOnLinux
slackbuilds.org.
www.linuxcenter.kz/page/ustanovkainastroikaplayonlinuxvlinux
google-chrome
/opt/google/chrome/googlechrome
cd /opt/google/chrome
/usr/local/bin.
, :),
, (
, ) html SingleFile SingleFile Core.
( :)
,
/etc/cron.daily/googlechrome.
/home/user/.config/googlechrome/Default/User StyleSheets/Custom.css
* { text-align: justify !important; }
* { line-height: 1.40 !important; }
* { font-family: Liberation Sans !important; }
*{
border-radius: 0 !important;
box-shadow: none !important;
}
css, :)
,
/home/user/.config/googlechrome/Default/Preferences ,
"webkit": {
"webprefs": {
"default_fixed_font_size": 21,
"default_font_size": 24,
"fixed_font_family": "Liberation Sans",
"minimum_font_size": 21,
"serif_font_family": "Liberation Sans"
}
firefox
, ( css)
/home/ed/.mozilla/firefox/*.default/chrome/userContent.css
* { text-align: justify !important; }
* { line-height: 1.25 !important; }
,
, /home/user/.mozilla/firefox/*.default/prefs.js
, ,
user_pref("font.minimum-size.x-cyrillic", 21);
user_pref("font.minimum-size.x-western", 21);
, ,
deepestsenderdeepestsender.mozdev.org.
flashvideoreplacer,
youtube.com xine, downloadhelper .
adblock, umht
:)
Nihtly Tester Tools,
.
firefox DNS dnsmasq
network.dnsCacheExpiration
network.dnsCacheEntries about:config..
firefox ( )
false network.standardurl.escapeutf8.
magnet
about:config network.protocolhandler.exposeall false,
magnet , ,
,
network.protocol
handler.exposeall true.
qupzilla
~/ed/.qupzilla/my.css
* { text-align: justify !important; }
* { line-height: 1.30 !important; }
* { font-family:Liberastika !important; }
*{
border-radius: 0 !important;
box-shadow: none !important;
}
qupzilla.
CSS3.
dillo
/home/user/.dillo/cookierc
DEFAULT ACCEPT.
dillo
(
:), /home/user/.dillo/style.css
body {background-color: white !important}
body {color: black !important}
:link {color: blue !important}
*{
font-family : LiberationSans ! important;
font-size : 20px ! important;
}
youtube.com mplayer
youtubedl slackbuilds.org
:
#!/bin/sh
x=$(xclip -o -sel c)
cookies_file=`mktemp /tmp/youtube-cookies.XXXXXX`
rm $cookies_file
url="`youtube-dl --cookies=$cookies_file -g --max-quality 18 $x`"
mplayer -cookies -cookies-file $cookies_file -cache 1024 $url
.
licq
login.icq.com.
libreoffice, juffed
,
libreoffice
/opt/libreoffice3.4/share/extensionsold
/opt/libreoffice3.4/share/extensions, /opt/libreoffice3.4/share/extensions
.
juffed ( usr/share/juffed/plugins).
:),
ooo2gd google docs ( ,
) extensions.services.openoffice.org/project/ooo2gd.
http://www.informatic.ru/librebeta.
, .
.
juffed (
) (*.conf,
*rc, *.ini, *.cfg, PKGBUILD).
clipit
, "Automatically paste selected item",
, "" ,
clipit,
, clipit
htop ,
.
FBReader - , serif,
handbookpscyr
pscyr
pier.botik.ru/~znamensk/ftp.vsu.ru/fontpacks/pscyr.
Baltica, .
mplayer
~/.mplayer/config
[default]
#
vo=xv,noslices
#vo=gl2
# ( )
ao=alsa,oss
#mixer-channel=Master
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#
# af=equalizer=6:4:2:0:0:0:0:3:5:8
#
af=extrastereo=2.00
#
framedrop=true
# (%)
autoq=100
#
cache=2048
#
subcp=cp1251
# loop ( deblocking) H.264.
lavdopts=skiploopfilter=nonref
# ,
idx=1
#
#use-filename-title=on
#
noautosub="yes"
nosub="yes"
# (s - , S - /
)
# .
vf=screenshot
###################################ed#################
######################
#
# A/V
.
#autosync=30
[gnome-mplayer]
vo=gl2
ao=alsa
alang=Russian,rus,ru
msglevel=all=5
slang=Russian,rus,ru
af=equalizer=6:4:2:0:0:0:0:3:5:8
~/.mplayer/input.conf.
.
1 contrast -1
2 contrast 1
3 brightness -1
4 brightness 1
5 hue -1
6 hue 1
7 saturation -1
8 saturation 1
9 volume -1
0 volume 1
= gamma 1
- gamma -1
# MOUSE_BTN0 osd_show_progression
MOUSE_BTN0 nothing
MOUSE_BTN1 pause
MOUSE_BTN2 vo_fullscreen
f vo_fullscreen
t vo_ontop
i osd_show_property_text "${filename}"
p osd_show_progression
a switch_audio
o osd
g frame_step
d frame_drop
# s screenshot 0
# m menu main
[ speed_mult 0.95
# scale playback speed
] speed_mult 1.05
{ speed_mult 0.5
} speed_mult 1.5
BS speed_set 1.0
v switch_vsync
/ audio_delay 0.100
# this changes audio/video sync
. audio_delay -0.100
# m use_master
RIGHT seek +5
LEFT seek -5
DOWN seek -60
UP seek +60
PGUP seek 600
PGDWN seek -600
.
d frame_drop
D step_property deinterlace
()
k=`echo $1|sed s/' '/'-'/g`
mv -T "$1" $k
# mplayer c
# unsharp=lc3*3:1.5.0.0.0 1.5,
# mplayer -af equalizer=6:4:2:0:0:0:0:3:5:8 -vf eq2,pp=l5,unsharp=lc3*3:1.5.0.0.0,hue $k
mplayer -vf eq2,pp=l5,unsharp=lc3*3:0.5.0.0.0,hue $k
KDE
, kdeinit4 WM.
c
,
.
.
,
, .
packages.tbz.
. (/bin, / boot,
/etc, /home, /lib, /opt, /root, /sbin, /usr, /var , )
,
.
X -
, , ,
, .
1 -
psensor,
hddtemp,
gsmartcontrol whdd.
SMART:
Raw_Read_Error_Rate .
,
. , Seagate, Samsung ( F1 )
Fujitsu 2,5 .
;
Spin_Up_Time . .
. ;
Start_Stop_Count / ;
Reallocated_Sector_Ct
.
;
Seek_Error_Rate .
;
Power_On_Hours .
.
, ,
;
Power_Cycle_Count / ;
Spin_Retry_Count .
;
Temperature_Celsius .
;
Reallocated_Event_Count ;
Offline_Uncorrectable .
2 -
bleachbit ,
IceWM
#! /bin/bash
bleachbit
sudo bleachbit
bleachbit /etc/sudoers.
bleachbit , bleachbit
,
, .. )
,
, . ,
, /etc/sudoers.
, , .
#!/bin/bash
#
# , google chrome, ,
/tmp
#
renice 19 $$ > /dev/null
echo " "
df -h /
echo ""
echo " "
rm -rf /.trash
mkdir /.trash
chown ed:users /.trash
echo " "
rm -rf /home/ed/.cache/google-chrome/*
echo " google-chrome "
rm -rf /home/ed/.mozilla/firefox/k3pcop68.default/Cache/*
echo " firefox "
rm -rf /tmp/SBo
rm -rf /tmp/compile-am
rm -rf /tmp/temp-packages19
echo " "
rm -rf /tmp/.avfs*
rm -rf /tmp/.com.google*
rm -rf /tmp/package*
rm -rf /tmp/qtsingleapp*
#/usr/sbin/tmpwatch -v --atime 1 /tmp
"/tmp "
""
" "
/
""
""
" "
""
# pagecache:
echo " "
sync
echo 1 | sudo tee -a /proc/sys/vm/drop_caches
# dentrie inode :
sync
echo 2 | sudo tee -a /proc/sys/vm/drop_caches
# pagecache, dentrie inode :
sync
echo 3 | sudo tee -a /proc/sys/vm/drop_caches
echo " "
echo " "
#
/sbin/swapoff /dev/sda5
/sbin/swapon /dev/sda5
echo " "
echo ""
echo " "
free -m
echo " "
IceWM (prog )
prog " , /tmp, " "/usr/share/pixmaps/xchat.png" roxterm
--tab --tab-name=clear-trash-cache-tmp -e sudo
/home
, , ,
bleachbit. .
,
/var/log/packages,
.
3 -
, ,
:)
, ,
, ,
, ,
.
, ,
.
/etc, /home, /root, /var
cron luckybackup snapshot (
). ,
/ .
(amazon cloud drive ).
partimage (partclone),
,. qt 4fsarchiver,
(/bin, / boot, /
etc, /home, /lib, /opt, /root,
/sbin,
/usr, /var , )
.
, .
lzo, 22.5 , .
, ,
, (dropbox, wuala,
google docs)
luckybackup () /
, .
, ,
().
,
. linux , dropbox.com,
wuala.com,spideroak.com, , google docs (drive),
SuperFlexibleSynchronizer superflexible.com,
. (help.yandex.ru/disk/?id=1124655#programs) webdav
Konqueror, Nautilus davfs2 c slackbuilds.org (
unihub.ru/resources/38).
davfs2 , gui_optimize=1
/etc/davfs2.conf.
davfs2 ,
fstab
,
/etc/rc.d/rc.local
(
/etc/rc.d/rc.local_shutdown) :
/etc/rc.d/rc.local
mount -t davfs https://webdav.yandex.ru /./
/etc/rc.d/rc.local_shutdown
umount /./
. Linux,
repo.yandex.ru/yandexdisk,
habrahabr.ru/company/yandex/blog/191446 .
web adrive.com (50 )
Amazon Cloude Drive amazon.com/clouddrive, .
SkyDrive,
habrahabr.ru/post/179213
4 -
, ,
.
, ,
.
.
.
,
u .
, ( , , :).
mc, telinit 1 .
/dev, /lost+found, /media, /mnt, /proc, /srv, /sys,
,
/media /mnt.
,
,
, tar.
( livecd).
mkdir /mnt/{old,new}
mount /dev/$OLD /mnt/old
mount /dev/$NEW /mnt/new
cd /mnt/old
tar cf - . | (cd /mnt/new; tar xvf -)
(old)
umount /mnt/old
mkfs.ext3 /dev/$OLD
mount /dev/$OLD /mnt/old
cd /mnt/new
tar cf - . | (cd /mnt/old; tar xvf -)
umount /mnt/new /mnt/old
reboot
5 -
, ( zim)
, zim
.
, ( )
echo " "
#
for d in ~/.icons/*; do gtk-update-icon-cache -f $d; done
#
for d in /usr/share/icons/*; do sudo gtk-update-icon-cache -f $d; done
#
fc-cache -fv
#/home/user/.fonts
fc-cache -fv /home/user/.fonts
echo " "
SQLite
SQLite ,
( ff, , )
#!/bin/bash
find ~/ -size +100k -type f -print0 | \
while read -d '' FILE; do
abs_file_name=$(readlink -f "$FILE")
headfile=`head -c 15 "$abs_file_name"`;
if [ "$headfile" = "SQLite format 3" ]; then
file_size_do=`du -b "$abs_file_name"|cut -f1`;
sqlite3 "$abs_file_name" "VACUUM; REINDEX;" > /dev/null 2>&1
file_size_posle=`du -b "$abs_file_name"|cut -f1`;
echo "$abs_file_name";
echo " $file_size_do";
echo " $file_size_posle";
echo -n " "
echo "scale=2; ($file_size_posle/$file_size_do)*100"|bc -l
fi
done
sleep 2
exit 0
(CtrlAltBackspace),
optimizsqlite.sh > ~/report-optimizsqlite.txt
~/reportoptimizsqlite.txt.
Slackware
www.slackware.com
docs.slackware.com/ru:start
slackworld.berlios.de/links.html
www.slackware.ru
www.slackguide.com
humanreadable.nfshost.com/sdeg/index.htm#toc
optimization.hardlinux.ru linux
docs.slackware.com/ru:start
.
, .
deepstyle.org.ua/indexx.php
forum.lafox.net/index.php?showforum=35
slackbuilds
slackbuilds.org
www.wuala.com/SergMarkov19/Slackbuilds ,
, slackbuilds.org
slacky.eu
connie.slackware.com/~alien/slackbuilds
rlworkman.net/pkgs
slackers.it
packages.zenwalk.org/?v=current
,
slakfinder.org
slak.homelinux.org
packages.slackware.com
packages.slackverse.org
www.z01.eu/slak
www.teoxonline.com/utils/sse
slakfinder.frattocchie.it/slak
pkgs.org
packages.ubuntu.com
docs.slackware.com/ru:start
slackbook.org ()
www.opennet.ru/docs/RUS/slackware ()
jack.kiev.ua/docs/slackbook ()
help.ubuntu.ru/wiki/
wiki.archlinux.org/index.php/Main_Page_()
ck.kolivas.org/patches
ckhack.blogspot.com
algo.ing.unimo.it/people/paolo/disk_sched/patches
pf.natalenko.name
git.zenkernel.org/zenstable
QtApps.org
GTKApps.org
KDEApps.org
KDEFiles.org
GnomeFiles.org
JavaApps.org
WineApps.org
CLIApps.org
QtProp.org
ServerApps.org
apps.ownCloud.com
linuxforum.ru
unixforum.org
www.slackware.ru
www.linuxquestions.org ()
alt.os.linux.slackware
themes.effx.us
E17Stuff.org
exchange.enlightenment.org
opendesktop.org
KDELook.org
GNOMELook.org
XfceLook.org
BoxLook.org A
BerylThemes.org
CompizThemes.org
www.iconarchive.com
EDELook.org
DebianArt.org
GentooArt.org
SUSEArt.org
UbuntuArt.org
KubuntuArt.org
LinuxMintArt.org
ArchStuff.org Art
FrugalwareArt.org
FedoraArt.org
MandrivaArt.org
VLCAddons.org
Icewm
www.box.net/shared/j87dcxouvy2g5cd1zi81
www.box.net/shared/1g1u4eguyemtucdm8n4h
www.box.net/shared/yycg8kr6tlsqmjl3axvh
www.box.net/shared/71r6sxvtp91v44kklxlu
www.box.net/shared/ot0co3pp4bhldpz71tgq
www.box.net/shared/t859tdjnak8omvv5z2jm
1920x1080
www.wuala.com/SergMarkov19/Guidefiles.
.
/remove
pdf .
( tar.bz2):
- worker.tbz worker roxterm juffed.
/etc/sudoers, ,
/etc/sudoers,
sudoers,
ed ALL=NOPASSWD:
user ALL=NOPASSWD:
user .
,
, /opt/scripts.
mksh,
bash,
mksh bash.
roxterm worker (
../.worker/config).
icewm.tbz IceWM
e16.tbz E16
- cairo-dock.tbz cairodock
- program.tbz .
packages.tbz , ,
sergmarkov1960@gmail.com ()