Find the answer to your Linux question:
Results 1 to 7 of 7
Hello everyone, I have been trying to create a SD-Card with Ubuntu 9.10 and add up some other programs. That has to be all done in my laptop. However, I ...
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    38

    apt-get in my laptop to install in a SD-Card with Linux

    Hello everyone,
    I have been trying to create a SD-Card with Ubuntu 9.10 and add up some other programs. That has to be all done in my laptop.

    However, I got into a point that I could not go further. Normally, I would start my Linux SD-card on a board and type the following lines:
    Code:
    $sudo apt-get install liblapack-dev
    $sudo apt-get install libf2c2-dev
    Is there any way that could be done from my laptop once the SD card is connected to it?

    Thanks in advance,
    Frederico

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,946
    Not sure what you are trying to do here. Are you running Ubuntu 9.10 Off of your SD card instead of internal Hardrive? If so. How did you make the card. Is it a Unetbootin SD card with Ubuntu as a live session?

    Or

    Are you trying to download libraries using apt-get and are trying to download them to a sd card to transfer libraries to another computer running Ubuntu 9.10?

    If so. You have to download the debs from Ubuntus site repository and point download to the sd card that is mounted
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  3. #3
    Just Joined!
    Join Date
    May 2011
    Posts
    38
    Hello rokytnji,
    I have Linux in my Laptop and I have made my 9.10 Karmic SD-card using the following website:
    HTML Code:
    http://elinux.org/BeagleBoardUbuntuKarmic
    Right after creating the new SD-Card, it is still umounted and I would like to download and install these 2 mentioned libraries in it using apt-get install if possible.
    Thanks for your attention!

  4. #4
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,946
    Wow. Neato. A Beagle Board.

    it is still umounted
    Wondering if you followed the steps in

    Code:
    RootStock
    on that link you provided as far as editing fstab. Is your Beagle board sd formatted as ext2 file system. If so you need to

    Note change the above "ext3" to "ext2" if the root filesystem is ext2
    in /etc/fstab

    Also

    Before trying to install any new packages like the libraries you want. You will need to do a

    Code:
    sudo apt-get update
    first also before you run those commands.
    I have no experience with Beagle boards. I've heard of them but have never owned one. So not much experience/help with one. Sorry.

    You can mount that sd card on your laptop with a

    Code:
    sudo fdisk -l
    first to find the card id as /dev/sd(whatever)

    then mount it via

    Code:
    sudo mount /dev/sd(whatever)
    Then instead of using apt-get. Download the libs from Ubuntus site/repository for Ubuntu Karmic and put them in your home folder on the sd card and put it in your beagle board and open file manager in beagle board and open terminal in folder where libs are now stored and

    Code:
    sudo dpkg -i liblapack-dev
    Then do the same for the other lib also. Hope I am making sense.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  5. #5
    Just Joined!
    Join Date
    Jun 2004
    Location
    Halesowen, West Midlands, UK
    Posts
    71
    Quote Originally Posted by freddyglima View Post
    Hello rokytnji,
    I have Linux in my Laptop and I have made my 9.10 Karmic SD-card using the following website:
    HTML Code:
    http://elinux.org/BeagleBoardUbuntuKarmic
    Right after creating the new SD-Card, it is still umounted and I would like to download and install these 2 mentioned libraries in it using apt-get install if possible.
    Thanks for your attention!
    Whoa! You cannot use a PC to install ARM packages with apt-get.

    You can boot the SD card on the ARM platform and use apt-get to install additional ARM packages when it's up and the network is up or you can dowload the .deb packages to the PC, copy them to the SD card and use "dpkg -i <package>.deb to install them on the ARM once it's up and running.

    You use the PC to get a pre-built bootable ARM system on to the SD card using a tar.gz file, tar and gzip don't care, if it's a .tar.gz file it can extract it.
    The mk_sdcard.sh (I think that is the name) is a shell script that does all the magic so you won't have to type in all the individual commands to get the SD card built.

  6. #6
    Just Joined!
    Join Date
    May 2011
    Posts
    38
    Wondering if you followed the steps in
    Code:
    RootStock
    I have followed the steps in the Demo Image.

    Before trying to install any new packages like the libraries you want. You will need to do a
    Code:
    sudo apt-get update
    That is correct! Normally, I do an update and an upgrade before installing the libraries.

    Then instead of using apt-get. Download the libs from Ubuntus site/repository for Ubuntu Karmic and put them in your home folder on the sd card and put it in your beagle board and open file manager in beagle board and open terminal in folder where libs are now stored and
    Code:
    sudo dpkg -i liblapack-dev
    I have not tried your suggestion but I will take a look later.

    Whoa! You cannot use a PC to install ARM packages with apt-get.
    That was exactly my doubt. I was not sure if I could do that.

    You can boot the SD card on the ARM platform and use apt-get to install additional ARM packages when it's up and the network is up or you can dowload the .deb packages to the PC, copy them to the SD card and use "dpkg -i <package>.deb to install them on the ARM once it's up and running.
    This was actually my second option to solve my problem.


    What I have done as a solution was:
    I used the setup script from the website mentioned. I have written command lines on the script to copy the necessary files (autologin, autostart, ip settings, etc). Once I start my beagleboard with Linux, I have added a shell script which should be executed to finish the installation. This file runs basically:

    Code:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install liblapack-dev
    sudo apt-get install libf2c2-dev
    It works but I wanted to do it all from my laptop.
    Thanks for you help and attention.
    Frederico

  7. #7
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,946
    Thanks for replying back and glad you found a solution of sorts.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

Posting Permissions

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