You are not logged in.

#1 2008-02-23 23:25:18

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

X.org autoconfigure for Live-CD system made with larch

I made a Live-DVD for playing NWN, however it used the X.org config file I used for making it, so if I use it in other PC rather than mine, X won't work until I reconfigure X.org.

Any suggestions for making it able to autoconfigure X.org at startup without any user interaction?

Thanks in advance


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#2 2008-02-24 02:05:17

stingray
Member
From: Lima, Peru SA
Registered: 2006-03-24
Posts: 188

Re: X.org autoconfigure for Live-CD system made with larch

Try installing all drivers in one run, the xorg-input-drivers and xorg-video-drivers are available. Then try running without an xorg.conf.  Won't work for all systems, but should work for a bunch.

Just an idea, I'm sure others know better ways...

Offline

#3 2008-02-24 20:04:09

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: X.org autoconfigure for Live-CD system made with larch

stingray wrote:

Try installing all drivers in one run, the xorg-input-drivers and xorg-video-drivers are available. Then try running without an xorg.conf.  Won't work for all systems, but should work for a bunch.

Just an idea, I'm sure others know better ways...

Thanks for that, I will try it for the first alpha smile

Hope someone suggest something more powerful, however...


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#4 2008-02-24 21:10:00

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: X.org autoconfigure for Live-CD system made with larch

I made this nice script for autodetection including a manual fallback system, but its in spanish:

#!/bin/bash
#
#Script de Autoconfiguracion de X.org para Arch Linux
# LTSmash (c) 2008 - lord.ltsmash </at/> gmail </dot/> com
#Estas legalmente autorizado para distribuir este software y usarlo como quieras mientras que mantengas este mensaje de copyright

case $1 in
--help)
echo 'Este es un script de autoconfiguracion para Xorg creado para su uso con NWN-Live y otros sistemas Live-CD basados en Arch Linux, el cual esta hecho para ser ejecutado automaticamente y si no funciona como es debido tiene algunos sistemas fallback que deben ser activados por el usuario usando las opciones...'
echo 'Uso:'
echo 'mkxorgconf <parametro>'
echo
echo 'El script mkxorgconf solamente acepta un parametro a la vez'
echo 'Las opciones disponibles son -hwd (Esta opcion hace una configuracion sin ayuda del usuario) y -xconf (esta opcion ejecuta un programa el cual requiere conocimientos del hardware de la maquina y por lo tanto no es automatico).'
echo 'La opcion recomendada es -hwd'
exit 0;;
-hwd)
hwd -xa
mv /etc/X11/XF86Config-4 /etc/X11/xorg.conf
echo 'Configuracion creada con exito, desea editarla (S/n)?:'
read input1
    case $input1 in
    S)
    echo 'Editando con nano...'
    nano /etc/X11/xorg.conf
    echo 'Ahora ejecute "startx"'
    exit 0;;
    *)
    echo 'Finalizando, ahora ejecute "startx"'
    exit 0;;
    esac;;
-xconf)
xorgconfig
echo 'Desea editar manualmente su xorg.conf? (S/n)'
read input1
    case $input1 in
    S)
    echo 'Editando con nano...'
    nano /etc/X11/xorg.conf
    echo 'Ahora ejecute "startx"'
    exit 0;;
    *)
    echo 'Finalizando, ahora ejecute "startx"'
    exit 0;;
    esac;;
*)
echo 'Opcion invalida, use el parametro --help para ayuda, abortando...'
exit 1;;
esac

#Metodo automatico (FaunOS)
Xorg -configure &> /dev/null
mv /xorg.conf.new /etc/X11/xorg.conf &> /dev/null

Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

Board footer

Powered by FluxBB