Помощь · Поиск · Пользователи · Календарь
Полная версия этой страницы: Э-э-эх... Боюсь я консоли
Форум BiT-Team > Системы > Всё о Никсах
DanGer
Приветствую. Как-то давно тут не было новых тем. Наверное, это не есть хорошо. Попробуем создать нечто новенькое...

...Сижу я как-то на работе. Сижу, никого не трогаю. Решил глянуть, что же мне в "асю" пришло (клиент аси gaim всегда расположен на 8-ом рабочем столе)? И вижу... что у кое-кого нет настроения, но ему позарез нужен KDE под свежепоставленной FreeBSD 5.4. Ну чтож, не могу же я бросить друзей в беде. Посему попытаюсь (по своему опыту) описать, как все это проделать с минимальным гимором в максимально короткие сроки. Ну чтож, приступим.
Пошагово описывать установку системы я не буду, благо все в картинках освящено тут. Для базы этого вполне (даже с избытком) хватает для наших целей. В дальнейшем, если интерес не пропадет, то уже сами разберетесь что к чему.

Итак, что мы имеем? Свежепоставленную систему (допустим, набор minimal - base и kernels) и... все. Это что касается программной части. В реале что? О! целых 2 диска с FreeBSD! Уже обнадеживает smile.gif.
Вставляем диск 1 в привод cd-rom-а (система должна быть уже запущена), набираем под суперпользователем (то же самое, что и root. Переход на него командой su с последующим вводом пароля root) команду sysinstall и попадаем в уже знакомый конфигуратор. На этот раз идем не в Custom (или, что вы там выбирали, когда ставили), а в Configure.
Distributions - здесь находятся те же пункты, что и при выборочной установке - предкомпилированные пакеты программ. Здесь нам надо поставить "галочку" на пункте X.Org. Далее выходим выше и нажимаем ентер на Packages. Так как мы ставим все с дисков, выбираем
Код
CD/DVD       Install from a FreeBSD CD/DVD
.
И тогда откроется следующее меню - наборы пакетов по категоримя. Недолго пробежавшись по списку находим заветные 3 буквы - KDE. Зайдя туда, мы можем наблюдать список доступных для установки пакетов. Что выбрать - дело ваше. Экспериментируйте. Отметив то, что вам нужно выходите до тех пор, пока не увидите в нижней чатси поля "псевдо-кнопку" Install. собственно, его "нажатие" инициирует установку выбранных пакетов.

Ну чтож. все, что необходимо для запуска Х-ов у нас имеется. Теперь осталось только зайти под пользователем и создать маленький конфигурационный файл для Иксов - .xinitrc

Код
echo "startkde" >> .xinitrc


Должен заметить, что во время "совершения" этого "обряда", вы должны находиться в домашней директории пользователся. Например: /home/user. Далее можно сразу же протестировать, что же у нас получилось:

Код
startx


По плану кеды должны запуститься с невысоким разрешением, примерно 800х600. Это не так страшно, ведь "Центр управления KDE" умеет управлять видеорежимами.

Вот мы и поставили почти без командной строки KDE поверх Xorg на FreeBSD. Надеюсь, меня хватит на вот такие мелкие обзоры "на заказ" smile.gif. Потому что надо ликбезом заниматься, товарищи! :qn_boss:
0xffa500
Мегареспект за отзывчивость. НА самом деле у меня очень много вопросов. Я даже не знаю с чего начать ))). Но за то что написал уже спасибо!
DanGer
Если есть вопросы, можете ложить сюда. Как говорится, на будущее. И если впердь забудете что-либо, можете заглянув сюда все наверстать. Постараюсь ответить на все.
DanGer
Все как-то некогда да негкогда было... Нет, все по порядку. У меня лежала крыска Microsoft IntelliMouse ® Explorer 4.0A USB/PS2 Compatible. И вот решил недавно подключить ее на машину, где у меня фря стоит. Гимора на одно место захотел, называется smile.gif. Но чертенок не дурак (6.2-RELEASE), этого грызуна свободно пустила в систему, даже через USB-порт ))))
Все хорошо, полная идиллия. Но на этой мышке есть еще дополнительных 2 кнопки. Не зная, как самому все настроить, полез я в инет и нашел один пост на bsdportal.ru по настройке X-ов. Его я и предлагаю вам, если возникнут проблемы с Иксами.

Постоянная ссылка на пост: http://www.bsdportal.ru/viewtopic.php?t=13...8948e92118deae0

Цитата
использование xorgconfig с последующей ручной правкой /etc/X11/xorg.conf - самый простой, удобный и действенный метод!

# xorgconfig
...
Эта программа создаст конфигурационный файл xorg.conf
на основе вашего выбора из меню.
... тра-та-та...
Нажмите Enter для продолжения или ctrl-c для выхода
... <enter>

1. Выбор мыши и протокола: если у нас настроен и
застартован moused демон - выбираем "2. SysMouse"

Код
First specify a mouse protocol type. Choose one from the following list:

1. Auto
2. SysMouse
3. MouseSystems
4. PS/2
5. Microsoft
6. Busmouse
7. AceCad
8. GlidePoint
9. IntelliMouse
10. Logitech
11. MMHitTab
12. MMSeries
13. MouseMan
14. ThinkingMouse

The recommended protocol is Auto. If you have a very old mouse
or don't want OS support or auto detection, and you have a two-button
or three-button serial mouse, it is most likely of type Microsoft.

Enter a protocol number: 2


в другом виртуальном терминале можем посмотреть,
например (это только пример):

Код
# ps axuww | grep moused
root     817  0,0  0,0  1260    64  ??  Ss    6апр07   2:23,18 /usr/sbin/moused -p /dev/psm0 -t auto
#



В случае использования SysMouse, Xorg будет работать с мышкой не напрямую, а через системный демон
moused, в ином случае можно выбрать Auto и
потом вручную поправить соответствующую секцию
xorg.conf:

Код
Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "SysMouse"
    Option "Device"      "/dev/sysmouse"
...
...
EndSection


выше видим что исправить нужно будет Option "Protocol" и Option "Device" - если мы будем
напрямую работать с мышкой через драйвер самого Xorg, а не moused. Понятно что в последнем случае нам нельзя
запускать moused.
Итого, НЕЛЬЗЯ настраивать работу Xorg напрямую с мышкой, если у нас работает moused.
Либо через moused, либо кладем демон moused и тогда
настраиваем работу X11 напрямую с мышкой через свой
драйвер.

Код
Please answer the following question with either 'y' or 'n'.
Do you want to enable Emulate3Buttons?


Выше предлагается эмуляция третьей клавиши для
2'ух-кнопочной мышки, если у нас 3'х кнопочная - ответ
'n', если двух - ответ 'y' и одновременное нажатие двух
кнопок будет эмулировать работу третьей кнопки.

Код
Please answer the following question with either 'y' or 'n'.
Do you want to enable Emulate3Buttons? n


Now give the full device name that the mouse is connected to, for example
/dev/tty00. Just pressing enter will use the default, /dev/sysmouse.

Mouse device: /dev/sysmouse


так как мы используем в качестве интерфейса демон moused, то в качестве устройства мышь - /dev/sysmouse
виртуальное устройство для связи Xorg с демоном moused.

Код
Please select one of the following keyboard types that is the better
description of your keyboard. If nothing really matches,
choose "Generic 104-key PC"

  1  Generic 101-key PC                              
  2  Generic 102-key (Intl) PC                        
  3  Generic 104-key PC                              
  4  Generic 105-key (Intl) PC                        
  5  Dell 101-key PC                                  
  6  Everex STEPnote                                  
  7  Keytronic FlexPro                                
  8  Microsoft Natural                                
  9  Northgate OmniKey 101                            
10  Winbook Model XP5                                
11  Japanese 106-key                                
12  PC-98xx Series                                  
13  Brazilian ABNT2                                  
14  Acer AirKey V                                    
15  ACPI Standard                                    
16  Azona RF2300 wireless Internet Keyboard          

Enter a number to choose the keyboard.

Press enter for the next page


Выше нам предлагают выбрать тип клавиатуры, и внизу
написано Press enter for the next page - нажмите <enter> для просмотра меню на следующей странице.
Вы можете посмотреть какая у вас клавиатура и сделать выбор, ошибаться можно сколько угодно, всегда можно
затем отредактировать конфигурационный файл /etc/X11/xorg.conf.

Например выбираем: 4 Generic 105-key (Intl) PC
Секция в xorg.conf:

Код
Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"

    Option "AutoRepeat" "500 30"

#--lavr
    Option "LeftAlt"            "Meta"
    Option "RightAlt"           "Meta"
    Option "ScrollLock"         "Compose"
    Option "RightCtl"           "Control"

    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "us,ru"
    Option "XkbOptions"  "grp:caps_toggle"

EndSection


выше у меня настроен переключатель на клавишу Caps_Lock
- Option "XkbOptions" "grp:caps_toggle"

Далее нам предложат выбрать страну, не заморачивайтесь,
это будет как указано выше Option "XkbLayout" "us,ru"

Код
  1  U.S. English                                    
  2  U.S. English w/ ISO9995-3                        
  3  U.S. English w/ deadkeys                        
  4  Albanian                                        
  5  Arabic                                          
  6  Armenian                                        
  7  Azerbaijani                                      
  8  Belarusian                                      
  9  Belgian                                          
10  Bengali                                          
11  Bosnian                                          
12  Brazilian                                        
13  Bulgarian                                        
14  Burmese                                          
15  Canadian                                        
16  French Canadian                                  
17  Croatian                                        
18  Croatian (US)                                    

Enter a number to choose the country.
Press enter for the next page


И снова для пролистывания меню нажать <enter>, тупо
жму "1" и поправлю дальше руками в /etc/X11/xorg.conf

Код
Please enter a variant name for 'us' layout. Or just press enter
for default variant


Просят указать layout - тупо <enter>

Код
Please answer the following question with either 'y' or 'n'.
Do you want to select additional XKB options (group switcher,
group indicator, etc.)?



Спрашивают будем ли настраивать опции XKB драйвера,
переключатели и индикаторы - нет, настроим руками в
/etc/X11/xorg.conf, см.выше

Код
Now we want to set the specifications of the monitor. The two critical
parameters are the vertical refresh rate, which is the rate at which the
the whole screen is refreshed, and most importantly the horizontal sync rate,
which is the rate at which scanlines are displayed.

The valid range for horizontal sync and vertical sync should be documented
in the manual of your monitor.

Press enter to continue, or ctrl-c to abort.


Теперь нам говорят о том что мы будем настраивать секцию для монитора, нажимаем <enter>

Код
You must indicate the horizontal sync range of your monitor. You can either
select one of the predefined ranges below that correspond to industry-
standard monitor types, or give a specific range.

It is VERY IMPORTANT that you do not specify a monitor type with a horizontal
sync range that is beyond the capabilities of your monitor. If in doubt,
choose a conservative setting.

    hsync in kHz; monitor type with characteristic modes
1  31.5; Standard VGA, 640x480 @ 60 Hz
2  31.5 - 35.1; Super VGA, 800x600 @ 56 Hz
3  31.5, 35.5; 8514 Compatible, 1024x768 @ 87 Hz interlaced (no 800x600)
4  31.5, 35.15, 35.5; Super VGA, 1024x768 @ 87 Hz interlaced, 800x600 @ 56 Hz
5  31.5 - 37.9; Extended Super VGA, 800x600 @ 60 Hz, 640x480 @ 72 Hz
6  31.5 - 48.5; Non-Interlaced SVGA, 1024x768 @ 60 Hz, 800x600 @ 72 Hz
7  31.5 - 57.0; High Frequency SVGA, 1024x768 @ 70 Hz
8  31.5 - 64.3; Monitor that can do 1280x1024 @ 60 Hz
9  31.5 - 79.0; Monitor that can do 1280x1024 @ 74 Hz
10  31.5 - 82.0; Monitor that can do 1280x1024 @ 76 Hz
11  Enter your own horizontal sync range

Enter your choice (1-11):


меню из 11'ти вариантов, если нам НЕподходит, выбираем 11 и задаем свои, для нашего монитора:

Код
Enter your choice (1-11): 11

Please enter the horizontal sync range of your monitor, in the format used
in the table of monitor types above. You can either specify one or more
continuous ranges (e.g. 15-25, 30-50), or one or more fixed sync frequencies.

Horizontal sync range: 30-70

You must indicate the vertical sync range of your monitor. You can either
select one of the predefined ranges below that correspond to industry-
standard monitor types, or give a specific range. For interlaced modes,
the number that counts is the high one (e.g. 87 Hz rather than 43 Hz).

1  50-70
2  50-90
3  50-100
4  40-150
5  Enter your own vertical sync range

Enter your choice:   5



задали свою горизонтальную развертку и выбираем "5"
для задания своей вертикальной развертки:

Код
Vertical sync range: 50-160

You must now enter a few identification/description strings, namely an
identifier, a vendor name, and a model name. Just pressing enter will fill
in default names.



Теперь нас просят описать модель, исключительно для себя:

Код
The strings are free-form, spaces are allowed.
Enter an identifier for your monitor definition: SyncMaster 793DF



и вот мы подошли к выбору драйвера для видео-карты:

Код
Now we must configure video card specific settings. At this point you can
choose to make a selection out of a database of video card definitions.
Because there can be variation in Ramdacs and clock generators even
between cards of the same model, it is not sensible to blindly copy
the settings (e.g. a Device section). For this reason, after you make a
selection, you will still be asked about the components of the card, with
the settings from the chosen database entry presented as a strong hint.

The database entries include information about the chipset, what driver to
run, the Ramdac and ClockChip, and comments that will be included in the
Device section. However, a lot of definitions only hint about what driver
to run (based on the chipset the card uses) and are untested.

If you can't find your card in the database, there's nothing to worry about.
You should only choose a database entry that is exactly the same model as
your card; choosing one that looks similar is just a bad idea (e.g. a
GemStone Snail 64 may be as different from a GemStone Snail 64+ in terms of
hardware as can be).

Do you want to look at the card database? y



Выше нас спрашивают - Хотите найти свою карту в БД видео-карт? Хотим, иначе будет использоваться механизм
автонастройки как Xorg -configure.
Иногда он полезен, но не всегда, итак выбираем карту из базы, и тут важна не модель, а ДРАЙВЕР, у меня
на данный момент Nvidia GeForce MX400:

Код
  0  * Generic VESA compatible                         -
  1  * Generic VGA compatible                          -
  2  * Unsupported VGA compatible                      -
  3  ** 3DLabs, TI (generic)               [glint]     -
  4  ** 3Dfx (generic)                     [tdfx]      -
  5  ** ATI (generic)                      [ati]       -
  6  ** ATI Radeon (generic)               [radeon]    -
  7  ** ATI Rage 128 based (generic)       [r128]      -
  8  ** Alliance Pro Motion (generic)      [apm]       -
  9  ** Ark Logic (generic)                [ark]       -
10  ** Chips and Technologies (generic)   [chips]     -
11  ** Cirrus Logic (generic)             [cirrus]    -
12  ** Cyrix MediaGX (generic)            [cyrix]     -
13  ** DEC TGA (generic)                  [tga]       -
14  ** Intel i740 (generic)               [i740]      -
15  ** Intel i810 (generic)               [i810]      -
16  ** Linux framebuffer (generic)        [fbdev]     -
17  ** Matrox Graphics (generic)          [mga]       -

Enter a number to choose the corresponding card definition.
Press enter for the next page, q to continue configuration.


Как обычно нажмите <enter> для продолжения списка, жму <enter> и нахожу:

Код
18  ** NVIDIA (generic)                   [nv]        -


больше мне ничего не надо, главное что драйвер для всех
nVidia моделей [nv], жму 18:

Код
18

Your selected card definition:

Identifier: ** NVIDIA (generic)                   [nv]
Chipset:    -
Driver:     nv

Press enter to continue, or ctrl-c to abort.



жму <enter>

Код
Now you must give information about your video card. This will be used for
the "Device" section of your video card in xorg.conf.

It is probably a good idea to use the same approximate amount as that detected
by the server you intend to use. If you encounter problems that are due to the
used server not supporting the amount memory you have, specify the maximum
amount supported by the server.

How much video memory do you have on your video card:

1  256K
2  512K
3  1024K
4  2048K
5  4096K
6  8192K
7  16384K
8  32768K
9  65536K
10  131072K
11  262144K
12  Other

Enter your choice: 11


Выше предлагают выбрать кол-во памяти у нашей видео или
задать свое значение - пункт 12. Выбрали или задали.

Код
You must now enter a few identification/description strings, namely an
identifier, a vendor name, and a model name. Just pressing enter will fill
in default names (possibly from a card definition).

Your card definition is ** NVIDIA (generic)                   [nv].

The strings are free-form, spaces are allowed.
Enter an identifier for your video card definition:



Опять предлагают для себя, для справки задать модель,
ввожу Nvidia GeForce MX400 <enter>

Код
For each depth, a list of modes (resolutions) is defined. The default
resolution that the server will start-up with will be the first listed
mode that can be supported by the monitor and card.
Currently it is set to:

"1280x1024" "1024x768" "800x600" "640x480" for 8-bit
"1280x1024" "1024x768" "800x600" "640x480" for 16-bit
"1280x1024" "1024x768" "800x600" "640x480" for 24-bit

Modes that cannot be supported due to monitor or clock constraints will
be automatically skipped by the server.

1  Change the modes for 8-bit (256 colors)
2  Change the modes for 16-bit (32K/64K colors)
3  Change the modes for 24-bit (24-bit color)
4  The modes are OK, continue.

Enter your choice:


Выше нам сообщают что Xorg и драйвер могут работать в
трех режимах: 8bit/256 цветов, 16bit/64K цветов и 24bit/тру-колор и указывают что по умолчанию для них
установлены следующие режимы разрешения:

Код
"1280x1024" "1024x768" "800x600" "640x480" for 8-bit
"1280x1024" "1024x768" "800x600" "640x480" for 16-bit
"1280x1024" "1024x768" "800x600" "640x480" for 24-bit



по порядку 1280x1024, затем 1024x768, затем 800x600 и
640x480 - в X'ах мы можем переключаться в них сочетанием
клавиш: удерживая "Ctrl-Alt" и нажимая клавиши "+" - вперед
по списку или "-" назад для смены разрешения, по кругу.

Обычно я изменяю под себя, например:

Код
Enter your choice: 1

Select modes from the following list:

1  "640x400"
2  "640x480"
3  "800x600"
4  "1024x768"
5  "1280x1024"
6  "320x200"
7  "320x240"
8  "400x300"
9  "1152x864"
a  "1600x1200"
b  "1800x1400"
c  "512x384"
d  "1400x1050"

Please type the digits corresponding to the modes that you want to select.
For example, 432 selects "1024x768" "800x600" "640x480", with a
default mode of 1024x768.


Ниже задаю свою последовательность:

Код
Which modes? 59432


нажимаю <enter>

Код
You can have a virtual screen (desktop), which is screen area that is larger
than the physical screen and which is panned by moving the mouse to the edge
of the screen. If you don't want virtual desktop at a certain resolution,
you cannot have modes listed that are larger. Each color depth can have a
differently-sized virtual screen

Please answer the following question with either 'y' or 'n'.
Do you want a virtual screen that is larger than the physical screen? n



Выше спрашивают, хотите чтобы виртуальный экран был больше физического - НЕ ХОЧУ, действие распространяется на максимальное разрешение:

Код
For each depth, a list of modes (resolutions) is defined. The default
resolution that the server will start-up with will be the first listed
mode that can be supported by the monitor and card.
Currently it is set to:

"1280x1024" "1152x864" "1024x768" "800x600" "640x480" for 8-bit
"1280x1024" "1024x768" "800x600" "640x480" for 16-bit
"1280x1024" "1024x768" "800x600" "640x480" for 24-bit

Modes that cannot be supported due to monitor or clock constraints will
be automatically skipped by the server.

1  Change the modes for 8-bit (256 colors)
2  Change the modes for 16-bit (32K/64K colors)
3  Change the modes for 24-bit (24-bit color)
4  The modes are OK, continue.

Enter your choice:



и так для каждого 8bit, 16, 24bit:

Код
For each depth, a list of modes (resolutions) is defined. The default
resolution that the server will start-up with will be the first listed
mode that can be supported by the monitor and card.
Currently it is set to:

"1280x1024" "1152x864" "1024x768" "800x600" "640x480" for 8-bit
"1280x1024" "1152x864" "1024x768" "800x600" "640x480" for 16-bit
"1280x1024" "1152x864" "1024x768" "800x600" "640x480" for 24-bit

Modes that cannot be supported due to monitor or clock constraints will
be automatically skipped by the server.

1  Change the modes for 8-bit (256 colors)
2  Change the modes for 16-bit (32K/64K colors)
3  Change the modes for 24-bit (24-bit color)
4  The modes are OK, continue.

Enter your choice: 4



теперь "4" - Ok

Ниже нам предложат выбрать ОСНОВНОЙ рабочий режим - default, в котором
будут загружаться X'ы, какой вам нравится 16bit или 24bit:

Код
Please specify which color depth you want to use by default:

  1  1 bit (monochrome)                              
  2  4 bits (16 colors)                              
  3  8 bits (256 colors)                              
  4  16 bits (65536 colors)                          
  5  24 bits (16 million colors)                      

Enter a number to choose the default depth.

5


Все, получаем паредложение сохранить настройки в xorg.conf!

Код
I am going to write the xorg.conf file now. Make sure you don't accidently
overwrite a previously configured one.

Do you want it written to the current directory as 'xorg.conf'?


Ну и далее правим-рихтуем xorg.conf под себя: доводим
секции mouse, keyboard, fonts и тд и тп - все расписано
в man'ах и документации.

Если у нас nVidia - то мы можем пойти дальше и установить
драйвер из портов с дальнейшей настройкой как описано
в документации порта:

/usr/ports/x11/nvidia-driver - драйвер от nVidia
/usr/ports/x11/nvidia-settings - управляющая панель для драйвера

/usr/ports/x11/nvidia-xconfig - управление конфигурацией драйвера
/usr/ports/sysutils/nvclock - статус и оверклокинг

Полезные утилиты:

- gtf - calculate VESA GTF mode lines
- xvidtune - устаревшая

ну еще есть калькуляторы для настройки Modeline

Все понятно? Или еще что-то дописать? Пример xorg.conf?
Методы запуска X11 и настройки?

справка: Xorg(1), xorgconfig(1), xorgcfg(1), xorg.conf(5), xset(1), xkbprint(1), setxkbmap(1), X(7), Xsecurity(7)

запуск:

- xinit(1) (через startx(1)
или
- xdm(1)

Выше команды для man и секции.


Автор поста
Цитата
lavr
Зарегистрирован: 03 Сен 2004
Сообщения: 759

Спасибо ему за развернутую инструкцию по настройке иксов.
DanGer
И все таки, консоль не так страшна, как многие думают. Ведь не зря же люди придумали консольные браузеры: lynx, links, elinks; im-клиенты: centericq, licq, micq, и еще
много подобных им; плеер, с поддержкой видеографики в консоли, взять хотя бы тот же самый mplayer.
Вот сейчас эти строки я пишу сидя в консоли, смотря клип на тему игры "Final Fantasy X" и серфя инет в брузере links.
Но, все это лирика. Так, для размышлений smile.gif
Dmitry L.
Цитата(DanGer @ 30.05.2007, 17:57) *
<br />I vse taki, konsol' ne tak strashna, kak mnogie dumayut. Ved' ne zrya zhe lyudi pridumali konsol'nye brauzery: lynx, links, elinks; im-klienty: centericq, licq, micq, i esche<br />mnogo podobnyh im; pleer, s podderzhkoj videografiki v konsoli, vzyat' hotya by tot zhe samyj mplayer.<br />Vot sejchas `eti stroki ya pishu sidya v konsoli, smotrya klip na temu igry &quot;Final Fantasy X&quot; i serfya inet v bruzere links.<br />No, vse `eto lirika. Tak, dlya razmyshlenij <img src="http://www.1.bitteam.z8.ru/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br />
<br /><br /><br />
Xm...A kak ti smotrish video v konsoli? YA gde-to videl skrin...
ЗЫ - mplayer-то я знаю, а я видел прямо в окне консоли...
===
Cмотри-ка, скомпили с поддержкой графики и JS...
Просто берём самые последние сорцы links
И Собираем таким образом
Код
$ ./configure --enable-graphics --enable-javascript

И дальше
Код
links -g www.bit-team.com



Cмотреть
DanGer
Видео в консоли? Легко!

Для начала надо включить поддержку графики в консоли. В линуксах для этого есть framebuffer. Не спрашивайте меня, с чем это едят! Этого я не знаю. Не пользовался, но подозреваю, что этот самый фреймбуффер работает при отображении рисунков во время установки современных линуксов (в самом начале загрузки).
Для того, чтобы консоль была графической во FreeBSD надо перекомпилировать ядро с опциями
Код
Options VESA
Options SC_PIXEL_MODE
Device sc


После перегрузки можно проверить так:
Код
vidcontrol -i mode
vidcontrol -i mode VESA_800x600 foreground


Если сработало, то можно смело запускать mplayer:
Код
mplayer -vo cvidix -x 800 -y 600 ./movie/video.avi


P.S. Если немного не понятно, прошу глянуть http://www.lissyara.su/?id=1126.
DanGer
Здравствуйте все!
Буквально сегодня собрал патч из разных мест для поддержки UTF-8 браузером Links 2.2 в терминале MacOS X 10.6. Это не оригинальный патч, а всего лишь сборная солянка из патчей от FreeBSD Ports и Gentoo Linux. При накладывании их на оригинальные исходники браузер не компилится. Пришлось немного пройтись "шкуркой". Сейчас есть только одна проблема: в "окне" опций терминала рядом с "галочкой" должен быть лейбл UTF-8 I/O, но его нет. Отображается просто пустая галочка.
DanGer
Исправил патч. Теперь все работает!
Напоминаю, надо накладывать именно на версию 2.2.
Русская версия IP.Board © 2001-2012 IPS, Inc.