Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openrc script for generate xorg.conf on a livecd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
casualx
n00b
n00b


Joined: 06 Feb 2012
Posts: 49
Location: rohrbach,switzerland

PostPosted: Fri Dec 21, 2012 12:51 pm    Post subject: openrc script for generate xorg.conf on a livecd Reply with quote

hello there
I created a gentoo based live cd from scratch for my study. im happy that all works so great..using gentoo for it and generally is just great for study and learn linux.
the problem I encountered is that udev, xorg and the binary nvidia-drivers not working without generating a xorg.conf.

Code:
X -configure
does do the job and then copy it to /etc/X11/xorg.conf works
so I think about create a init scrip for it

/etc/init.d/autoxorg

Code:

    #!/sbin/runscript
     
    description="generates xorg.conf for the livecd"
     
    depend()
    {
            #need localmount  xdm-setup
            after bootmisc consolefont modules netmount
            after readahead-list ypbind autofs openvpn gpm lircmd
            after quota keymaps
            before alsasound xdm
     
            need localmount xdm-setup
            use consolekit dbus xfs
    }
     
    start()
    {
            einfo "generating xorg.conf"
            X -configure
            mv /root/xorg.conf.new /etc/X11/xorg.conf
     
            eend 0
    }
     
    stop()
    {
            einfo "deleting xorg.conf"
            rm /etc/X11/xorg.conf
     
            eend 0
    }


when I login to console and run it manually by
Code:
/etc/init.d/autoxorg start
it works :)

so i did
Code:
rc-update add autoxorg
and reboot.
so far so good....
I can see the output of
Code:
X -configure
but it fails to create the xorg.conf.new in /root

is there anyway to fix this?

can someone give me some advice how to generate a xorg.conf file at startup?
how does other live dists do?

rhx in advance
_________________
MB:Asus Sabertooth Z77
CPU:Intel I7 3770K@3.9Ghz, 8mb cache
RAM: 4x4GB Kingston 1866Mhz
GPU:Nvidia 560ti @ 2048mb
SSD&HDD:Intel 330series 120gb & WD Caviar black 1TB, sata3 64mb
OPTICAL:SONY-BD-5300S-03
Corsair H100 Watercooling
OS:Gentoo
Back to top
View user's profile Send private message
casualx
n00b
n00b


Joined: 06 Feb 2012
Posts: 49
Location: rohrbach,switzerland

PostPosted: Fri Jan 11, 2013 8:49 am    Post subject: Reply with quote

:o
the solution is x11-misc/mkxf86config

I forgot to add this may help someone who has some problem
_________________
MB:Asus Sabertooth Z77
CPU:Intel I7 3770K@3.9Ghz, 8mb cache
RAM: 4x4GB Kingston 1866Mhz
GPU:Nvidia 560ti @ 2048mb
SSD&HDD:Intel 330series 120gb & WD Caviar black 1TB, sata3 64mb
OPTICAL:SONY-BD-5300S-03
Corsair H100 Watercooling
OS:Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum