oio11: (Default)
[personal profile] oio11

Linux: Настройка Xorg X11 Window System

by Vivek Gite on May 13, 2010 · 3 comments от Vivek Gite 13 мая 2010 · 3 комментария

M y xorg.conf file is missing as I deleted accidentally for some reason. М у файла xorg.conf отсутствует как я удалил случайно по некоторым причинам. Now, Xorg try to probe my hardware on every startup. Теперь, Xorg пытаются зонд моего оборудования на каждом запуске. How do I configure Xorg under Debian or any Linux distro / operating systems? Как настроить Xorg под Debian или любого дистрибутива Linux / операционные системы?

The latest X server versions are designed to work out-of-the-box, with no need to manually edit Xorg's configuration files. Последние версии X сервера предназначены для работы вне коробки, без необходимости вручную редактировать файлы конфигурации Xorg's. However, you can use the following generic steps to edit or create xorg.conf file. Однако, вы можете использовать следующие общие шаги, чтобы изменить или создать файл xorg.conf.

Stop X Windows Manager Остановить X Windows Manager

First, you need to shutdown X and its manager. Во-первых, вам нужно выключить X и его менеджер. The simplest way to do is login to a console as root and type the following commands to stop kdm or gdm: Простейший способ сделать это Войти в консоль как корень и введите следующие команды, чтобы остановить KDM или GDM: # /etc/init.d/kdm stop <-- stop KDE windows manager # /etc/init.d/gdm stop <-- stop Gnome windows manager # /etc/init.d/xdm stop <-- stop x windows manager

How Do I Configure X? Как настроить X?

You can type any one of the following command: Вы можете ввести любой из следующих команд: # dpkg-reconfigure xserver-xorg The above is Debian / Ubuntu Linux specific command. Выше, Debian / Ubuntu Linux команда. The generic command for Linux and UNIX is as follows to configure X: Общие команды для Linux и UNIX это следующим образом, чтобы настроить X: # cd /etc/X11/ && Xorg -configure Now, just follow on screen instructions to configure Xorg. Теперь, просто следуйте инструкциям на экране для настройки Xorg. You can configure Video (mostly auto detected), keyboard and so on. Вы можете настроить видео (в основном автоматически обнаружены), клавиатура и так далее.

Testing new config Тестирование новой конфигурации

The above command will create a new Xorg conf file. Эта команда создаст новый файл Xorg конф. You can test with the following command: Вы можете проверить с помощью следующей команды: # X -config -retro /root/xorg.conf.new # X -config -retro /etc/X11/xorg.conf If everything looks good, try startx to start up your X server (swtich to another virtual console (Ctrl + Alt + F2) and type the following command): Если все выглядит хорошо, попробуйте startx, чтобы запустить свой X-сервер (Swtich на другую виртуальную консоль (Ctrl + Alt + F2) и введите следующую команду): $ startx

Fine Tuning Xorg Тонкая настройка Xorg

You can edit /etc/X11/xorg.conf to make changes such as setting a new driver, adding fonts path, video resolution and so on. Вы можете отредактировать файл / etc/X11/xorg.conf, чтобы сделать изменения, такие как установка нового драйвера, добавляя шрифты путь, разрешение видео и так далее. # cp /etc/X11/xorg.conf /etc/X11/xorg.conf.working # vi /etc/X11/xorg.conf In this example, set video size to 1440x900: В этом примере, установите размер видео до 1440x900:

 Section "Screen" Раздел "Экран"
  Identifier "Default Screen" Identifier "Default Screen"
  Device "RadeonHD 4550" Устройство "RadeonHD 4550"
  Monitor "Generic Monitor" Монитор "Generic Monitor"
  DefaultDepth 24 DefaultDepth 24
  SubSection "Display" Подраздел "Дисплей"
    Depth 24 Глубина 24
    Modes "1440x900" Режимы "1440x900"
  EndSubSection EndSubSection
EndSection EndSection
Save and close the file. Сохраните и закройте файл. You need to restart or reload X to see changes. Вы должны перезагрузить или перезагрузить X, чтобы увидеть изменения.

Xorg log file Xorg файл журнала

You can see error or warning log file for troubleshooting purpose at the following location: Вы можете видеть ошибки или предупреждения файл журнала для устранения неполадок цели по следующему адресу:
  • /var/log/Xorg.?.log / VAR / Журнал / Xorg.?. Журнала
Use the tail or grep command to view log file: Используйте хвост или GREP команду для просмотра файла журнала:
 tail -f /var/log/Xorg .2 .log Хвост-F / VAR / Журнал / Xorg .2. журнала
grep 'something' /var/log/Xorg .2 .log "GREP" что-то / VAR / Журнал / Xorg .2. Журнала 

Recommend readings: Рекомендовать показания:

Featured Articles: Избранные статьи:

http://www.cyberciti.biz/faq/howto-linux-configure-xorg-x11/

(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

October 2025

S M T W T F S
   1234
567891011
12131415161718
19202122 232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 3rd, 2026 11:43 pm
Powered by Dreamwidth Studios