Показаны сообщения с ярлыком howto. Показать все сообщения
Показаны сообщения с ярлыком howto. Показать все сообщения

2008-09-18

SCO 5.0.7 on SATA CD-ROM

SCO OpenServer Release 5.0.7 Maintenance Pack 5 Release and Installation Notes
This affects the install process, which allows the selection of an ATAPI CD-ROM only on the primary or secondary controller. On some motherboards with SATA (serial ATA) ports, all of the SATA ports are on the enhanced controllers. To install from a SATA CD-ROM attached to such a system, the wd BTLD must be used. In addition, the CD-ROM must be plugged into one of the SATA ports on the first SATA controller. Furthermore, if the motherboard has a secondary controller, it must have no devices attached. This enables the SATA CD-ROM to appear as though it is attached to the secondary controller.

Read more...

2008-08-01

Перенаправления потоков

Redirection
** 1 = STDOUT 2 = STDERR **
command 2>filename redirects STDERROR
command >&2 redirect *to* STDERROR. ie echo hello >&2 sends hello to stderror
command >foo 2>&1 redirects STDOUT to foo and STDERROR to STDOUT (which in this case is foo)
>&- causes STDOUT to go nowhere (cyberspace)
<&- causes input to come from nowhere. ie there is no input

Всё время забываю что и куда писать

Read more...

2008-06-24

Настройка VLAN в Linux

VLANs on Linux
VLANs on Linux
March 11th, 2004 by Paul Frieden

An introduction to VLANs and VLAN trunking, how Linux interacts with VLANs and how you might use them in networks.


Read more...

2008-06-10

raid1 Replacing a disk

Planet Debian Administration
raid1 Replacing a disk

  • mdadm --detail /dev/md$ check which disk is alive
  • shutdown
  • replace crashed harddisk
  • boot machine
  • sfdisk -d /dev/sda | sfdisk /dev/sdb
  • mdadm --detail /dev/md0
  • check partitions
  • rebuild partitions with mdadm --add /dev/md0 /dev/sdb1
  • check for other raid partitions
  • check status with watch "cat /proc/mdstats"

After that it is finished I am ready for the next harddisk crash

Read more...

Будильник

Будильник из подручного *NIX-box’а | Flycat.Info | КОТорый летает сам по себе...
создаём скрипт wakeup.sh в домашнем каталоге:

#!/bin/bash

echo "Запускаемся..."

mpg123 /путь/к/хорошей/музыке/* &

for (( i = 1; i <= 100; i++ )) do
echo "Устанавливаем громкость в $i"
setmixer vol $i
echo "Ждём 10 секунд..."
sleep 10s
done

Простенько и со вкусом. Запускается плеер и каждые 10 секунд увеличивается громкость. Добавляем запись в ваш crontab:

0 11 * * * /home/foobar/wakeup.sh

если хотите побудку в 11 утра.

Есть развитие "Будильник из подручного *NIX-box’а"
#!/bin/bash

amarok > /dev/null 2>&1

setmixer vol 1

dcop amarok player play
MSG=`dcop amarok player nowPlaying`
echo “Играет: $MSG”

for ((a = 1; a = 1; i– )) do
clear
echo “Устанавливаем громкость в $i”
MSG=`dcop amarok player nowPlaying` && echo -en “Играет: \33[36m $MSG \33[0m ”

setmixer vol $i
sleep 0.2s
done
done
killall amarokapp

Read more...

2008-01-09

Идея прихода


Покупаем пару бутыльков хорошего вина, шаль и… готов подарок.
Read more...

2007-10-05

Развлечение для кота

ru_cats: Коту скучно!
Покупайте ему воздушные шарики.
Привязываете к ним шелестящие бумажки так, чтобы они (бумажки) от пола не выше метра поднимались.
Развлечение - надолго :) на весь день, пока вас нет


Read more...

2007-04-02

Печать из консоли

Re: =?koi8-r?b?8tXT08vB0SDQxd7B1NggyQ==?==?koi8-r?q?=DA?= Mutt

> Нет ли у кого фильтра, чтобы симпатично печатать русские письма из mutt-а.
> Чтобы она лишние заголовки выкидывала, ну и цепляла русские PS фонты.
> Что-нибудь в таком духе.

В .muttrc
set print_cmd="a2ps -2 --pretty-print=mail --strip-level=1"
a2ps надо руссифицировать...
  1. добавить в /usr/share/a2ps/fonts/ русские фонты Type1
  2. -//- /usr/share/a2ps/afm/ их метрики
  3. Запустить make_fonts_map.sh
  4. cp fonts.map.new fonts.map
  5. Вставить в /usr/share/a2ps/afm/encoding/koi8.edf названия используемых фонтов
Получается ну очень красиво :-}

Read more...