# HG changeset patch # User Oleksandr Gavenko # Date 1237831007 -7200 # Node ID c40837b0c482cba5128db0e72831f056fba47fc6 # Parent 56d2ea852a2d8c04c7790abf161ca74ab5a8c374# Parent 2146aa2221c0a4831e4443202a3351ffe0448043 merge diff -r 2146aa2221c0 -r c40837b0c482 device.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/device.rst Mon Mar 23 19:56:47 2009 +0200 @@ -0,0 +1,21 @@ +-*- outline -*- + +* Info about PCI. + + $ lspci + $ lspci -vvv + $ lsusb + $ lsusb -vvv + $ scanpci + $ lshw + $ lspcidrake + +* String from BIOS. + + $ dd if=/dev/mem bs=64k skip=15 count=1 | strings + +* Info about video. + + $ xdpyinfo + $ glxinfo + $ xvinfo diff -r 2146aa2221c0 -r c40837b0c482 emacs.rst --- a/emacs.rst Mon Mar 02 21:04:37 2009 +0200 +++ b/emacs.rst Mon Mar 23 19:56:47 2009 +0200 @@ -1,6 +1,6 @@ -*- mode: outline -*- -* How debug? +* How debug ini file? When your InitFile has a bug, or when you load external files that cause errors, the bug is often hard to find, because the Emacs Lisp reader does not @@ -35,3 +35,10 @@ You can disable edebug on a function by evaluating the function again using ‘C-M-x’. + +* How debug func? + +Use M-x debug-on-entry and M-x cancel-debug-on-entry to control +which functions will enter the debugger when called. + +When next time that function called automatically loaded debug-mode. diff -r 2146aa2221c0 -r c40837b0c482 font.rst --- a/font.rst Mon Mar 02 21:04:37 2009 +0200 +++ b/font.rst Mon Mar 23 19:56:47 2009 +0200 @@ -20,3 +20,14 @@ If you in X run mc as $ xterm -fn "-misc-fixed-medium-r-*-*-18-*-*-*-*-*-iso10646-1" -geometry 120x42 -e mc -x + +* How configure font for X? + +** Debian. + +$ sudo aptitude install fontconfig-config +$ sudo dpkg-reconfigure fontconfig-config + +Font tuning method for screen: Native +Enable subpixel rendering for screen: Always (или Automatic) +Enable bitmapped fonts by default?: No diff -r 2146aa2221c0 -r c40837b0c482 printer.rst --- a/printer.rst Mon Mar 02 21:04:37 2009 +0200 +++ b/printer.rst Mon Mar 23 19:56:47 2009 +0200 @@ -1,6 +1,28 @@ --*- mode: outline -*- +-*- mode: outline; coding: utf-8 -*- + +* CUPS + +** What is CUPS? + +See + + http://www.cups.org/ + http://en.wikipedia.org/wiki/Common_Unix_Printing_System + +** How access to web interface of CUPS? -* Where find driver for HP printers? +Go to + + http://localhost:631 + +** Installing on GNU/Debian. + + $ sudo apt-get cupsys + $ sudo apt-get cupsys-client + +* HP printers. + +** Where find driver for HP printers? Go to @@ -8,7 +30,7 @@ and follow instructions. -* How about LJ 1020? +** How about LJ 1020? This printer is supported by the foo2zjs free software printer driver. @@ -20,20 +42,53 @@ cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0 -* What is CUPS? +* brother printers. + +** Работают ли принтеры brother под Linux x86_32/x86_64. -See +Да. + +** Как настроить принтер. + +Следует: - http://www.cups.org/ - http://en.wikipedia.org/wiki/Common_Unix_Printing_System + * установить поддержку печати в Unix CUPS + * установить, если потребуеться, драйвер принтера + * добавить принтер + +Мануал производителя находиться по адресу: -* How access to web interface of CUPS? + http://solutions.brother.com/linux/en_us/instruction_prn1a.html + +*** GNU/Debian x86_32. -Go to +Инсталируем 2 пакета, полученых с сайта производителя: - http://localhost:631 + $ sudo dpkg -i brhl2070nlpr-2.0.1-1.i386.deb + $ sudo dpkg -i cupswrapperHL2070N-2.0.1-2.i386.deb +*** GNU/Debian x86_64. +Инсталируем 2 пакета, полученых с сайта производителя (да, игнорируем что они +предназначены для i386): + + $ sudo dpkg -i --force-all --force-architecture brhl2070nlpr-2.0.1-1.i386.deb + $ sudo dpkg -i --force-all --force-architecture cupswrapperHL2070N-2.0.1-2.i386.deb + +** Добавляем принтер (на примере HL 2070NR) в CUPS. +Пакет cupswrapper добавляет принтер, нам осталось его сконфигурировать (при +изменении настроек может затребуеться аутентификация, в качестве user/password +используем root/): + * на странице http://127.0.0.1:631/ выбираем принтер + * меню "Modify Printer" + * меню "LPD/LPR Host or Printer for Device" + * адрес lpd://192.168.1.102/binary_p1 + * выбрать производителя из списка (Brother) + * выбрать модель (HL 2070NR не было, выбрал HL 2060N) + * установить этот принтер по умолчанию - "Set As Default" + * добавить пользователей, которые имеют право на печать - "Set Allowed User" + +Пробуем напечатать пробную страницу. diff -r 2146aa2221c0 -r c40837b0c482 python.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python.rst Mon Mar 23 19:56:47 2009 +0200 @@ -0,0 +1,7 @@ +-*- outline -*- + +* Licence and history of Python. + +See + + http://docs.python.org/dev/license.htm diff -r 2146aa2221c0 -r c40837b0c482 time-estimation.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/time-estimation.rst Mon Mar 23 19:56:47 2009 +0200 @@ -0,0 +1,7 @@ +-*- outline -*- + +* Which soft use? + + $ sudo apt-get install karma + +