Announcement

Collapse
No announcement yet.

First Car PC, Gentoo Attempt..

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • First Car PC, Gentoo Attempt..

    Just wanted to stop in and say hello. I've been considering doing a car pc for a while now, and finally started the project.

    The car:
    2004 350z Touring model. Bose w/o Navigation. The plan is to use the 2003 cubby, with a 7" touch screen.

    The hardware:
    Athlon XP x64 5600+(2.9ghz dual)
    1-4 Gig Ram(have 4 gigs..)
    250 SATA laptop drive
    USB GPS - prolific chipset


    OS:
    Gentoo Stage 3 Install(Well maybe).
    genkernel kernal
    Fluxbox and/or Slim window/desktop manager?
    Pandora Radio via Adobe Air
    Navit -- Maybe, kinda working
    python interface/mp3 player/weather -- Using pymedia's module

    I use SLES and ubuntu on a daily basis. I -thought- I had become decent at linux. Gentoo is, well, a humbling experience.

    The gentoo install was pretty easy, and the more I used portage the more I liked it. However, I couldn't get X to work right on my first install. I emerged, xorg-server, xdm, fluxbox and slim. If I rebooted, it would come up and go to a black screen, and X working pretty hard for several minutes. After 5-10 minutes randomly i'd get a login screen. I added fluxbox to my xinitrc, and specified fluxbox as my XSESSION parameter in rc.conf. I also put slim in my xdm.conf . Fluxbox wouldn't start automatically, I finally fixed that by adding fluxbox to slim.conf (I think?). However, I still have a long delay before X starts, and it seems to randomly die..even tho 'X' is still running.

    Looking in my xorg.log I saw 'unknown module' radeon, which made me think my ati drivers were incorrect and causing the long delays in X loading, and slow performance. However, if I tried to install ati-drivers, I got an error saying >=xorg-server-1.7.0 was blocking ati drivers ? I couldn't get past this.

    Things I did manage to get working:
    pymedia module for python
    navit -- I had to manually touch the usb device for my prolific /dev/ttyUSB0
    Pandora --- I use Pandora currently on my iphone connected to my radio. I love it, and this is part of my plan for my car PC. After installing adobe air, and grabbing the pandora.air this worked very well.



    My first attempt was on an old spare IDE drive, i've decided to start fresh with the drive i'll be using. I'm not looking to be spoon fed, but i've exhausted my googling abilities and can not figure out my issue with my ATI Radeon onboard video. It's an Radeon 3200 series onboard video. I thought maybe it was a make.conf issue, so I added video card = Radeon to it, and re-emerged xorg, xdm, flux, and slim. I've been tempted to just install gnome or kde and see if that fixes it, but that seems like alot of bloat that I don't need for this project.


    I've learned alot this weekend playing with Gentoo, but it's been pretty painful... USE Flags are something else..

    My -goal- is to write my own interface in python. I'd like to integrate weather information on the main screen, have Music, GPS and Web abilities. I plan to call a 3rd party app for GPS(Navit or something). For Music, i'll write an mp3 player in python to handle this(pymedia module). As well launch Pandora.. I don't think I need a full blown gnome/kde environment to do this, but having a 5-10 minute delay in X starting is unacceptable.

  • #2
    have you looked at linuxICE yet? Even if you plan on writing your own interface, LinuxICE already has a slim boot and the window manager down. It may save you some work.

    cheers,
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

    Comment


    • #3
      Actually I have, and very impressed with it.

      I originally picked gentoo since I was considering using a Wyse v90, with a Via Nehemiah CPU. I thought Gentoo be a solid lean OS to use for this.

      After deciding to go with the ahtlon, I thought gentoo be a good challenge and learning experience.

      I actually got X working properly last night. xdm and fluxbox.

      I am going to install nghost and see how it works, I started on the install last night. I woke up to an error on the libnghost, something about config.c or configure.c was expected. I'll work on it tonight, I noticed the wiki said it was 'unfinished', but that was the only gentoo instructions I found.

      I really like ubuntu, it's my environment I use at work. However, gentoo has grown on me. Really enjoyed portage, and the more I learn the more I like it.

      Assuming I can get nghost running, there is a good chance i'll end up using that. Which is part of the linuxice project if I understand correct? Most users tend to use ubuntu as the base though?

      Comment


      • #4
        Originally posted by jmorgan6 View Post
        Actually I have, and very impressed with it.

        I originally picked gentoo since I was considering using a Wyse v90, with a Via Nehemiah CPU. I thought Gentoo be a solid lean OS to use for this.

        After deciding to go with the ahtlon, I thought gentoo be a good challenge and learning experience.

        I actually got X working properly last night. xdm and fluxbox.

        I am going to install nghost and see how it works, I started on the install last night. I woke up to an error on the libnghost, something about config.c or configure.c was expected. I'll work on it tonight, I noticed the wiki said it was 'unfinished', but that was the only gentoo instructions I found.

        I really like ubuntu, it's my environment I use at work. However, gentoo has grown on me. Really enjoyed portage, and the more I learn the more I like it.

        Assuming I can get nghost running, there is a good chance i'll end up using that. Which is part of the linuxice project if I understand correct? Most users tend to use ubuntu as the base though?
        There are a few developers/users that use gentoo + nghost. But yeah, most people i think either use LinuxICE or use Ubuntu + nghost.

        the latest svn of libnghost is still in development. If you want a stable version check out revision 2024 of libnghost/nghost, which is the latest stable in LinuxICE as well.
        Former author of LinuxICE, nghost, nobdy.
        Current author of Automotive Message Broker (AMB).
        Works on Tizen IVI. Does not represent anyone or anything but himself.

        Comment


        • #5
          I will try that tonight, Not sure which version I have been trying.

          I tried following the wiki, and using the two ebuilds. libnghost fails everytime on aclocal. aclocal.out says it needs either configure.h or configure.in. I couldn't find any information about that and an libnghost install. I am using automake-1.11, so I tried installing version 1.10.. Same issue.

          I then tried using the ubuntu tar's, ./configure, make and make install. libnghost installed without an issue, though it did fail to find phono, hdradio, gui3, sample, and another plugin.. but finished normally. Afterwards I had a nscan-cmd and nghost-cmd in my /usr/local/bin directories. If I try to ./configure nghost it fails saying nghostcore isn't present. I don't know if perhaps my pkg_config_path is incorrect, do you know where it's checking for nghostcore?

          I actually created an account on your forum and was going to post this question there. do you think I'll have better help there? Still waiting on my authentication e-mail hah..

          I searched your forum, and google, and the only information i found regarding gentoo and nghost is the small section on the wiki that says 'not complete'. I'd like to become more involved in the gentoo side of this project, as the more I look at nghost the more I like it. I think my time would be better spent on nghost then doing it 'my own way'.

          Thanks Kev

          Comment


          • #6
            Kev, stupid question. But where do I find revision 2024? The only one I found is 2087?

            https://nghost.svn.sourceforge.net/s...ost/libnghost/

            Comment


            • #7
              I have installed nghost on my gentoo based carputer a few times, and every time tripzero [FKA Kev000] has been a great help, i'm too lazy to do it now but i believe if you search at either MP3car or the linuxice forums you might find some of the trip ups i had that tripzero helped me through. also the IRC channel was good, and if you decide to go with NavIT for your gps solution their IRC channel was VERY helpful when i was trying to understand how it worked.

              I like portage as well, glad to see yet another gentoo user on the forums.

              GL
              -Red
              MobileThree: in car - Zotac Atom/ION - linuxICE 2.0.2
              --worklog--

              Comment


              • #8
                Originally posted by red_parchel View Post
                I have installed nghost on my gentoo based carputer a few times, and every time tripzero [FKA Kev000] has been a great help, i'm too lazy to do it now but i believe if you search at either MP3car or the linuxice forums you might find some of the trip ups i had that tripzero helped me through. also the IRC channel was good, and if you decide to go with NavIT for your gps solution their IRC channel was VERY helpful when i was trying to understand how it worked.

                I like portage as well, glad to see yet another gentoo user on the forums.

                GL
                -Red
                Actually when I searched the forums, I found alot of your post because of your signature=) I considered sending you a PM a few times, since you are one of the few I saw advertising gentoo + nghost.

                Work + Girl cuts into my time quite a bit, I haven't spent very much time in the evenings on it this week. I plan to put in another geek weekend of sitting on my couch playing with gentoo. My goal is to get nghost installed.

                I'll do some more searching, but I am actually still waiting on my activation e-mail for linuxice forums. I've re-requested it a few times, it's not made it to my inbox, spam or any other filter. Kinda odd.

                Can you point me in the right direction, were you able to use an ebuild or did you have to compile it from source? That way i'll quit wasting my time with one of the two=)

                Comment


                • #9
                  Originally posted by jmorgan6 View Post
                  Actually when I searched the forums, I found alot of your post because of your signature=) I considered sending you a PM a few times, since you are one of the few I saw advertising gentoo + nghost.

                  Work + Girl cuts into my time quite a bit, I haven't spent very much time in the evenings on it this week. I plan to put in another geek weekend of sitting on my couch playing with gentoo. My goal is to get nghost installed.

                  I'll do some more searching, but I am actually still waiting on my activation e-mail for linuxice forums. I've re-requested it a few times, it's not made it to my inbox, spam or any other filter. Kinda odd.

                  Can you point me in the right direction, were you able to use an ebuild or did you have to compile it from source? That way i'll quit wasting my time with one of the two=)
                  You've been activated on the linuxice forum. for some reason smtp isn't working.

                  You'll need to checkout that revision from svn:

                  see: http://wiki.openice.org/index.php?ti...Ghost#From_svn

                  just add a '-r' to the command:

                  Code:
                  svn checkout -r2024 [url]
                  Former author of LinuxICE, nghost, nobdy.
                  Current author of Automotive Message Broker (AMB).
                  Works on Tizen IVI. Does not represent anyone or anything but himself.

                  Comment


                  • #10
                    Awesome thanks Kev. Grabbing svn was actually the first time I had ever used the svn command.. I didn't even think to check the manual to see if that's how you selected revisions. I was expecting a completely different URL.

                    I will try this tonight, Hopefully that has been my issue. I assume 2087 is not considered stable?

                    Thank you for activating me on the forums.

                    Hopefully I can stop nagging, and start contributing soon.

                    Comment


                    • #11
                      Originally posted by jmorgan6 View Post
                      Awesome thanks Kev. Grabbing svn was actually the first time I had ever used the svn command.. I didn't even think to check the manual to see if that's how you selected revisions. I was expecting a completely different URL.

                      I will try this tonight, Hopefully that has been my issue. I assume 2087 is not considered stable?

                      Thank you for activating me on the forums.

                      Hopefully I can stop nagging, and start contributing soon.
                      yeah, anything after 2024 is questionable and may not even compile. The latest code does compile, but is broke while we make the changes for nGhost 2.6.
                      Former author of LinuxICE, nghost, nobdy.
                      Current author of Automotive Message Broker (AMB).
                      Works on Tizen IVI. Does not represent anyone or anything but himself.

                      Comment


                      • #12
                        nghost is offically installed on my gentoo box.

                        I ended up using revision 2024, however I think 2084 may of also worked.

                        I could not get an ebuild to work for me, libnghost would fail everytime on ac.local.. I wonder if this is because it was using the latest SVN, which does not have an autogen.sh file, so configure isn't being built??

                        As before libnghost compiled/installed fine, but nghost would fail saying 'can't find libnghost'... I searched the entire system and found the .pc file in /usr/local/lib/nghost/ ..

                        Gentoo looks for those files in /usr/lib/

                        Solved that, and everything installed fine.. I am getting some errors about missing fonts, but considering I only have xorg-server x11-server, and fluxbox installed.. that probably explains it.


                        nscan is giving an issue, I don't think it's connecting/opening port 6997 correctly.

                        I have my music in /home/jmorgan6/music, and specified that in the nghost.conf in /usr/local/etc/nghost/ . Even started nscan, then nghost does not result in music being displayed.

                        I see in stdout/err a
                        tried to connect to: (icepanel) localhost : 6999
                        tried to connect to: (nscan) localhost : 6997
                        04/30/2010 12:17:30 CDT:ERROR - EventSubscriber: subscribe() - 102:: Error time either is not found or is not a valid event
                        NProcess::start(): ERROR launching application: : nweather.py
                        nweather.py
                        04/30/2010 12:17:30 CDT:ERROR - nsocket.cpp:connectTo(177) - Error connecting to host(111) - Connection refused: icepanel


                        Just started looking, so hopefully it will be an easy fix.

                        Comment


                        • #13
                          Well, I managed to get this working on my gentoo box at home. I posted this on openice's forums, but also going to post it here.

                          I know when I was searching to do this I found very little help covering my issues, so hopefully this will help any future 'me(s)' out there.

                          "I have a fresh Gentoo install from stage3. I've installed Xorg, fluxbox and other apps. I am not using any kind of full blown desktop environment.

                          I could not make an ebuild work. It would fail on aclocal about missing config files.(emerge libnghost) The repository it used did not have an autogen, or config files so I don't know if that could of been the cause(first time trying to use an ebuild like that).

                          Using revision 2024 I was able to autogen.sh && configure && make && sudo make install by doing the following:

                          Installing libnghost first, and verifying the dependencies were correct. I didn't have any errors from configure/make/install on the libnghost svn.

                          I received my first error on nghost when running ./configure. It could not find 'nghostcore' . The pkg-config command was failing. After bashing my head against the keyboard for a while (I went down the path of whether automake was the wrong version.. so yea..) I finally discovered everything was installed with '/usr/local/' prefix instead of just '/usr/'. I copied all the contents of /usr/local/lib (and subdirectories) to /usr/lib/ .

                          nghost succesfully installed. Because of the above, I had a few other annoyances.

                          files in:
                          /usr/local/etc/ that should of been in /etc/ and /etc/init.d
                          /usr/local/bin that i'd rather have in /usr/bin

                          possible bugs not dependent to gentoo?
                          1.) The config file (/usr/local/etc/nghost/nghost.conf) shows the skins directory to be '/usr/share/nghost', which in reality that directory is empty and the skins are actually in /usr/local/share/nghost/.
                          2.) nscan did not have executable by root permissions, even after copying it to /etc/init.d I was unable to add it using rc-update until changing permissions.

                          After limping along and getting a pretty much functional nghost.. I thought i'd uninstall and install using --prefix=/usr to get things where i'd rather have them. This did not work, libnghost compiled right, and nghost did as well. (the lib files were in /usr/lib from libnghost this time). But when I tried to run nghost I got an error saying it couldn't find the config file in /usr/local/etc/nghost/, but in reality it was in /usr/etc/nghost (I'd of expected it to just be in /etc...)

                          I copied it over to see if that was the only issue, but when running again it failed when not finding a bunch of lib files. At this point I uninstalled, and reinstalled using the method described above.

                          I am still having an issue with nscan I believe, it's not updating music. I have music in ~/music which contains 3 mp3s, then 3 directories with more sub directories of music(An Artist, then 3 diff CD's of their music, then the mp3s).

                          Last night I only had 3 songs in ~/music, and it would not display them in nghost. If I ran nscan manually it did seem to find them in the logs. Out of fustration I added another folder 'music' and put them in there incase it wouldn't find songs in the first directory. So the songs were in ~/music/music . Still nothing. I went to bed disappointed, but woke up this morning to find the songs being displayed in nghost ? I then copied the other files I mentioned above(Artist/cd/songs). nghost has yet to display them, i've restarted and nscan is definitely started prior to nghost. Still nothing. How long does it take? Do I have to create a table for nghost in mysql manually or will it? the password information is setup(well actually a user without a password, so i left the password field blank.)


                          Hopefully this post will help fellow gentoo users get this great front end installed. If anyone knows how to properly install it in /usr/ please let me know, i'd much rather have it that way(config files in /etc/ or better yet, /etc/conf.d/, libs in /usr/lib/, etc).
                          "

                          Couple additional updates, nscan started working for me. I am not sure if this was just 'luck' or a result of what I did. I -thought- at some point I found a config file for nscan(not the nghost.conf or nscan.conf) that had settings for the init.d script about what log level, etc to use. In my efforts to find it again, I discovered a init script, and config file in the svn I checked out under 'gentoo'. The init script was slightly different then what was installed, and the conf file said 'to be in /etc/conf.d/' so I moved it over*was not already there), and moved the init script. nscan has worked since, and honestly i've been afraid to backtrack anything i've done and break it again If that is what fixed it, then that's another gentoo issue with the install.

                          Overall it's working very nice, i've added several albums and they showed up pretty much instantly.

                          I don't know if this is ideal, but I am using /etc/conf.d/local.start for everything.

                          I started 'Xorg', then fluxbox, then nghost. I have nscan being started by adding it with 'rc-update add nscan default' . This combination is working well for me. Fluxbox's task bar is removed, and the only reason I have it is for navit. Without it, I have no way to close navit.

                          I still have alot of work to do on Navit, it launches, and gpsd connects to my usb GPS.. but I've yet to get it to display anything usable. I haven't spent time on it.

                          My next goal is to add pandora to nghost. I haven't done any reading, but I assume those extra program(or could even change the current buttons?), can be changed to call a script. I won't be using hdradio, so it be nice to have that run 'pandora.sh' for me instead.

                          Comment


                          • #14
                            Glad you got it working. Are you also having nghost start up via /etc/init.d? They should be run as the same user if the db is in ~.
                            Former author of LinuxICE, nghost, nobdy.
                            Current author of Automotive Message Broker (AMB).
                            Works on Tizen IVI. Does not represent anyone or anything but himself.

                            Comment


                            • #15
                              Yes, I don't know if others distros have something similar(Never used it before), but gentoo has /etc/init.d/local which basically does whatever is in /etc/conf.d/local.start and /etc/init.d/local.stop .

                              My local.start looks something like

                              Xorg &>/dev/null &
                              sleep 3
                              startfluxbox &>/dev/null &
                              sleep 1
                              alsactl restore &
                              nghost &>/dev/null &


                              Which /etc/init.d/local is added to the default startup. I may move nscan over to this as well, to prevent /etc/init.d/local from being ran prior to /etc/init.d/nscan ever..

                              I don't know if the sleeps in there we really required, but I figured better safe then sorry. Now that I have everything working, I plan to tweak it. I think I am going to add a wrapper script to start nghost, and call that from init.d/local .

                              nghost.sh
                              #!/bin/sh

                              while [ 1 ]; do
                              isRunning=`ps aux | grep nscan | grep -v grep`
                              if [ "$isRunning" == "" ]; then
                              /usr/local/bin/nscan &>/dev/null &
                              else
                              /usr/local/bin/nghost &>/dev/null &
                              break
                              fi
                              done



                              I noticed you can start nscan several times, is that intentional? I will probably make a wrapper for that as well, to prevent that from happening. I've noticed if you start a second one with debugging right after killing one, it fails to connect to the port. so I don't think having multiple nscan's actually has an issue with nghost, but it's extra processes that aren't doing anything productive?

                              It's pretty awesome overall, still playing with it. Currently using the 'BlackSea' skin. Is there any skins that have buttons for volume instead of the slider? I don't have my touch screen yet, but i'd think button up/down be easier then a slider.

                              Let me know what I can do to help with the project.

                              Comment

                              Working...
                              X