Всем привет
подскажите как узнать версию X сервера.
Условия:
1. не используя X -version
2. не используя Xorg -version
3. X не запущен (и запускать его нельзя)
4. Файла /var/log/Xorg.0.log нет (в связи с условием 3)
Решено: версия X (CentOS / RedHat / fedora)
Модератор: Модераторы разделов
- Stauffenberg
- Сообщения: 2042
- Статус: ☮ PEACE ☮
- ОС: открытая и свободная
Решено: версия X
Labor omnia vincit
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
Re: Решено: версия X
пакетным менеджером посмотреть версию пакета?
but in the darkness, behind your smile, you scream... © Dio
Спасибо сказали:
- Stauffenberg
- Сообщения: 2042
- Статус: ☮ PEACE ☮
- ОС: открытая и свободная
Re: Решено: версия X
Код: Выделить всё
rpm -ql xorg-x11-server-Xorg
/usr/bin/X
/usr/bin/Xorg
/usr/bin/cvt
/usr/bin/gtf
/usr/lib/xorg
/usr/lib/xorg/modules
/usr/lib/xorg/modules/drivers
/usr/lib/xorg/modules/extensions
/usr/lib/xorg/modules/extensions/libdbe.so
/usr/lib/xorg/modules/extensions/libdri.so
/usr/lib/xorg/modules/extensions/libextmod.so
/usr/lib/xorg/modules/extensions/libglx.so
/usr/lib/xorg/modules/fonts
/usr/lib/xorg/modules/fonts/libfreetype.so
/usr/lib/xorg/modules/input
/usr/lib/xorg/modules/libexa.so
/usr/lib/xorg/modules/libfb.so
/usr/lib/xorg/modules/libint10.so
/usr/lib/xorg/modules/libshadow.so
/usr/lib/xorg/modules/libshadowfb.so
/usr/lib/xorg/modules/libvbe.so
/usr/lib/xorg/modules/libvgahw.so
/usr/lib/xorg/modules/libwfb.so
/usr/lib/xorg/modules/libxaa.so
/usr/lib/xorg/modules/libxf8_16bpp.so
/usr/lib/xorg/modules/linux
/usr/lib/xorg/modules/linux/libfbdevhw.so
/usr/lib/xorg/modules/multimedia
/usr/lib/xorg/modules/multimedia/bt829_drv.so
/usr/lib/xorg/modules/multimedia/fi1236_drv.so
/usr/lib/xorg/modules/multimedia/msp3430_drv.so
/usr/lib/xorg/modules/multimedia/tda8425_drv.so
/usr/lib/xorg/modules/multimedia/tda9850_drv.so
/usr/lib/xorg/modules/multimedia/tda9885_drv.so
/usr/lib/xorg/modules/multimedia/uda1380_drv.so
/usr/share/man/man1/Xorg.1.gz
/usr/share/man/man1/cvt.1.gz
/usr/share/man/man1/gtf.1.gz
/usr/share/man/man4/exa.4.gz
/usr/share/man/man4/fbdevhw.4.gz
/usr/share/man/man5/xorg.conf.5.gz
/usr/share/xorg
/usr/share/xorg/extramodes
/usr/share/xorg/vesamodes
Код: Выделить всё
less /usr/share/man/man1/Xorg.1.gz | grep "Version" | cut -d ' ' -f 23
1.5.2
Действительно... все на много проще..... пора идти домой
Labor omnia vincit
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
Re: Решено: версия X
Stauffenberg писал(а): ↑13.03.2012 20:58Что-то типа rpm -qa xorg-x11-server-Xorg?
Да, но не всегда название пакета содержит версию X.
пакетный менеджер всегда знает версию пакета.
rpm -qi xorg-x11-server-Xorg
but in the darkness, behind your smile, you scream... © Dio
- Stauffenberg
- Сообщения: 2042
- Статус: ☮ PEACE ☮
- ОС: открытая и свободная
Re: Решено: версия X
broom писал(а): ↑13.03.2012 21:03Stauffenberg писал(а): ↑13.03.2012 20:58Что-то типа rpm -qa xorg-x11-server-Xorg?
Да, но не всегда название пакета содержит версию X.
пакетный менеджер всегда знает версию пакета.
rpm -qi xorg-x11-server-Xorg
Нет, я имел в виду, что версия пакета может не совпадать с версией X... но я ошибался
Labor omnia vincit
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)