Page 1 of 12 1234567891011 ... LastLast
Results 1 to 10 of 118

Thread: Linux help needed - make fun of the N00b

  1. #1
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2

    Linux help needed - make fun of the N00b

    In my search for solutions to replace my car PC with my iPhone, I'm in need of some Linux assistance.

    One of the issues with the iPhone is that you can't easily interact with external devices -particularly USB devices such as Fusion Brain, OBDII, XM Direct.

    However, the iPhone can easily connect to a WiFi router and theoretically, if you have some type of device (usually a full blown computer), you can control these devices via a javascript web page if a server is running on the computer.

    I didn't want to use a full computer but I do have to 'cheat' a little, so I decided to use a Sheeva plug - an embedded Linux system that has a USB port, an ethernet port and an SDIO port.


    It arrived yesterday along with lots of really cryptic information about how to make it boot and stuff. I wondered, however, whether it might not already have the basic Debian Linux burned in the flash memory (512mb) already, so I don't have to load it up.

    I tried pinging it and it responded.

    Then I tried to telnet into it but the connection was refused.

    What is the best way to 'see' inside this system? It is entirely possible that I have to build and load a distro for it -which I can painfully figure out. I just want to make sure one isn't already on there.

    I'm just a little lost here and need some guidance forward. Once I get it running Linux (maybe Linux ICE?), I'll need advice on what I need to do to get a web server up and running (Apache? Is there one already built into Linux? Feel free to taunt me). After that, I'll look at communicating with some USB devices like the Fusion Brain or the OBDII ELM cables.

    P.S. - While I'm using a Mac, I do have VM Ware so I can set up a Linux virtual machine to talk to the plug. It also comes with a Windows Host package that lets you connect to the JTAG port and diagnose the computer.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  2. #2
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718
    I've set up a few Apache servers on Debian at home before so I might be able to help with this. If the device is already set up with Debian then it hopefully already has the necessary packages on it but possible not. Hopefully it at least has SSH so if you have it hooked to a router, you can log onto the router and get the local IP of the device. Then you can open a terminal in another computer connected on the same router (does the iPhone do SSH?) and just log onto it by running "SSH xxx.xxx.xxx.xxx". The local IP will probably be something like 10.0.0.2.

    Once you've done that, you can run any updates you want from there and install Apache. The commands to install something in Debian is "sudo apt-get install XXXXX" for whichever package you want so you can run "sudo apt-get install apache2" and then "sudo apt-get install php5" or you can install them all at once like "sudo apt-get install apache2 php5 mysql" and let it go. The problem here is you'll need the root (sudo) password for the device which is only specified when Linux is first installed. But if you can log onto the device and access its files, I'll tell you how to hack it to change the password.

    If there isn't already a version of Linux on it, you might want to look at Damn Small Linux or Puppy Linux, they're both built to run on less than 100 megs of RAM and take up very little disk space.

    Good luck.
    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

  3. #3
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    Thanks! The internal IP on the router is 192.168.1.11.

    It asked me for a password when I did SSH. That seems to indicate to me that it already has the OS loaded on it. I need to root through the docs for the release to find out what that password might be.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  4. #4
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    Okay, I found out from the wiki here that is comes with Ubuntu 9.04 already installed.

    Edit: BAM! I'm in! I ssh'd into it as root. The wiki gave the password.

    It appears to run the Jaunty Jackelope -some variant of Ubuntu. I'm editing a couple of scripts and fixing a few bugs they advise to fix in the system, and also updating the distro.

    Okay....now what? :-)
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  5. #5
    Constant Bitrate
    Join Date
    Apr 2008
    Posts
    198
    this may help http://www.computingplugs.com/index....and_first_boot
    says the username and password are:
    username: root
    password: nosoup4u

    this too may be helpful
    http://www.computingplugs.com/index.php/Main_Page

  6. #6
    Maximum Bitrate Crinos's Avatar
    Join Date
    Mar 2009
    Location
    Kristiansand, Norway
    Posts
    489
    thought these things had web gui to do everything with.
    even upload new files and such alike.

  7. #7
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718
    Quote Originally Posted by Bugbyte View Post
    Okay, I found out from the wiki here that is comes with Ubuntu 9.04 already installed.

    Edit: BAM! I'm in! I ssh'd into it as root. The wiki gave the password.

    It appears to run the Jaunty Jackelope -some variant of Ubuntu. I'm editing a couple of scripts and fixing a few bugs they advise to fix in the system, and also updating the distro.

    Okay....now what? :-)
    Jaunty Jackalope is the name of the distribution:
    7.04 = Feisty Fawn
    7.10 = Gutsy Gibbon
    8.04 = Hardy Heron
    8.10 = Intrepid Ibex
    9.04 = Jaunty Jackalope
    9.10 = Karmic Koala (in development)

    If I remember correctly the command, run "sudo /etc/init.d/apache2 start" after SSH into it to start Apache. If Apache is not installed it'll give you an error, then follow this guide. If you don't understand it, I can run you through it.
    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

  8. #8
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    Very cool. Apache 2 wasn't installed, but I installed it. That was pretty easy. Then I started the web server. Got something that said "could not reliably determine the server's fully qualified domain name, using xx.xx.xxx.x (it's IP address) for server name."

    I presume that's because I haven't set up a name for the server yet. Then I logged into the address of the I.P. using http: and got a page that said "IT WORKS!"

    Okay, so that means I now have a webserver, php scripting and mySQL running on the plugtop, right?
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  9. #9
    Variable Bitrate red_parchel's Avatar
    Join Date
    Jul 2006
    Location
    Boston, Ma
    Posts
    280
    awesome to see your plug came in!

    sounds like you've got a nice little LAMP [Linux Apache mysql PHP]there.
    a Note: most debian systems are designed [and it's good practice for all *nix distros] to be used as a non root user, this MAY be different on the plug but i doubt it, so you'd ssh in as bugbyte@ip address then when you need to run commands that require root privileges you prefix the command with 'sudo' and then enter your password, example
    Code:
    sudo touch /root/newfile
    would create a new file in the /root/ directory with the permissions of root. I hope I explained that so some of it makes sense

    you've tested apache [ i'm pretty sure the "could not reliably determine ..." message is really no big deal for what you're doing but you should be able to fix that easy if you want I think this is the site i used way back]

    test to mysql restart mysql:
    1)
    Code:
     sudo /etc/init.d/mysql restart
    if it restarts you're good!
    if not make sure it actually installed

    might want to make sure you have a password set for the root user in mysql [not that you'll have too attacks on the "iBugPlug"]

    test php:
    umm i'm not great at php but if you create a test.php file
    Code:
    sudo nano -w /var/www/htdocs/test.php
    inside of it add
    PHP Code:
    < ?php phpinfo() ?> 
    then save it [ctrl+o ctrl+x] then open up your webbrowser and browse over to your plug http://192.168.1.11/test.php if a page with a bunch of text about php comes up you're all set on php!

    next I'd say plug in one of your usb devices and see if it's recognized!
    1) ssh in run
    Code:
    tail -f /var/log/messages
    2) plug in device
    3) look at output
    4) check dmesg
    Code:
    dmesg
    or
    Code:
    dmesg|tail -n 30
    as dmesg can output a LOT

    if it's recognized then it's time to find some applications or hack away to make it do what you want!

    if it's not then it's time to figure out why, odds are you'll need to add support into the kernel. [which is not as scary as a) it sounds b) some people make it out to be]

    good luck!
    MobileThree: in car - Zotac Atom/ION - linuxICE 2.0.2

    --worklog--

  10. #10
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    have you tried vncing into it?

Page 1 of 12 1234567891011 ... LastLast

Similar Threads

  1. New Frontend for Windows and Linux
    By gbr in forum Other Cool Front Ends
    Replies: 68
    Last Post: 01-21-2009, 08:55 PM
  2. What is needed to make a mac run in a car?
    By purplebluengree in forum MacCar
    Replies: 1
    Last Post: 03-11-2005, 01:05 AM
  3. Possible EPIA distro for Linux, Can we make one?
    By adamis in forum Software & Software Development
    Replies: 15
    Last Post: 02-23-2005, 05:50 PM
  4. Those running Linux from CF, how to make bootable?
    By eugenen in forum Software & Software Development
    Replies: 1
    Last Post: 11-10-2003, 12:18 AM
  5. mp3/ogg player for Linux?
    By mpfreeze in forum Software & Software Development
    Replies: 5
    Last Post: 12-16-2002, 09:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •