Setup Linux environment

Discussion in 'Supercard SDK' started by dking024, Dec 17, 2010.

Dec 17, 2010

Setup Linux environment by dking024 at 10:07 AM (7,074 Views / 0 Likes) 18 replies

  1. dking024
    OP

    Newcomer dking024 Newbie

    Joined:
    Dec 17, 2010
    Messages:
    2
    Country:
    China
    DSTWO SDK require GCC compiler support, many program developers may be working on Windows. In fortunately, CYGWIN and VM(Virtual Machine) technology can do this. CYGWIN employ some special DLL to enable Linux program run on Windows, it require fewer disk space and memory space, but the compability may be not the best. VM techonology can create a VM under windows, then install the Linux OS on the VM. This method cost more disk space and memory space, but it gives good compability on Linux program. The VMware and VirtualBox can do this, VirtualBox is open source project.
    Here, we setup the Linux environment by VirtualBox and Ubuntu. more information about VirtualBox, please refer to http://www.virtualbox.org, more information about Ubuntu, please refer to http://www.ubuntu.com.
    1. Downloading the latest windows version of Virtualbox from http://www.virtualbox.org. Downloading the latest 32-bit version of Ubuntu form http://www.ubuntu.com.
    2. Install Virtualbox.
    3. Creat a VM by Virtualbox. Before commence, you'd better be sure there is a logic disk using NTFS file system, and the free disk space are 8 GB or more. FAT32 also is OK, but it can't creat a file bigger than 4 GB. Following are detailed step:
    [​IMG]

    [​IMG]

    download (142 KB)
    27-9-2010 12:01
    When Virtualbox started, it looks as picture-1, click [New] to start creating VM process
    [​IMG]

    [​IMG]

    download (104.55 KB)
    27-9-2010 12:06
    Virtual Machine Wizard started, click [Next]
    [​IMG]

    [​IMG]

    download (129.11 KB)
    27-9-2010 12:08
    In the name table, enter the name of the VM. Operating System select LINUX, Version select UBUNTU, click [Next]
    [​IMG]

    [​IMG]

    download (92.92 KB)
    27-9-2010 12:12
    Selecte Memory size. Note, select a proper value accroding the physical memory size of the PC, when VM started, the VirtualBox will allocat the
    memory, and Windows can't use any more until VM shutd own.
    [​IMG]

    [​IMG]

    download (142.43 KB)
    27-9-2010 12:19
    Select Boot Hard Disk and Creat new hard disk, click [Next], it will pop up the Creat New Virtual Disk Wizard.
    [​IMG]

    [​IMG]

    download (98.85 KB)
    27-9-2010 12:22
    Click [Next]
    [​IMG]

    [​IMG]

    download (133.96 KB)
    27-9-2010 12:24
    Select Fixed-size storage recomended, this will get better perfomence for VM.
    [​IMG]

    [​IMG]

    download (124.48 KB)
    Picture-8
    27-9-2010 12:29
    The default storage address of the VM disk file are on the administrator's doucment files, advise moving to other place.
    [​IMG]

    [​IMG]

    download (92.53 KB)
    27-9-2010 15:41
    Click [Finish], waiting the progress finish.
    4. Install Ubuntu on VM. After VM created, snapshot as Picture-10
    [​IMG]

    [​IMG]

    download (174.53 KB)
    27-9-2010 15:55
    Click [Settings], to load the Ubuntu image file to virtual disc driver.
    [​IMG]

    [​IMG]

    download (129.27 KB)
    27-9-2010 15:59
    Select storage, IDE Controller, In Attributes item, CD/DVD device, add the address of Ubuntu's image file
    [​IMG]

    [​IMG]

    download (138.65 KB)
    Picture-13
    27-9-2010 16:08
    [​IMG]

    [​IMG]

    download (82.28 KB)
    27-9-2010 16:07
    OK, the image file loaded now. next, start VM, the VM will boot from virtual disc driver, the following thing are installing Ubuntu as install an OS on a bare PC. After Ubuntu installed, then shut down , and remove Ubuntu image file from virtual disc driver, the process similar to load a image file.
    5. Additional thing, installing VM tools to enhance VM performence. Load VBoxGuestAdditions.iso image file to VM's virtual disc driver before start Ubuntu, the file in VirtualBox's installation directory.
    Fisrt update Ubuntu:
    sudo apt-get update
    sudo apt-get upgrade
    Note, You'd better select a faster software sources first, or else the process will cost several hours or more. The path is System/Administration/Software Sources:Ubuntu Software/Download from/Others...
    Second, install GCC tools, then DKMS:
    sudo apt-get install build-essential
    sudo apt-get install dkms
    then, reboot Ubuntu in order to activate the updates.
    Third, change to the directory where the CD-ROM drive is mounted and execute as root:
    sudo sh ./VBoxLinuxAdditions-x86.run
    OK, the Linux environment are ready.
     
  2. Crystal the Glaceon

    Member Crystal the Glaceon GBAtemp Inkling™ Squishies~

    Joined:
    Sep 13, 2009
    Messages:
    14,728
    Location:
    Inkopolis
    Country:
    Antarctica
    Could someone make a video of how to set this up or even how to really use it?
     
  3. Overlord Nadrian

    Banned Overlord Nadrian Banned

    Joined:
    Jul 28, 2008
    Messages:
    6,671
    Location:
    Riviera
    Country:
    Belgium
    Unless you're serious about helping development (which I very strongly doubt), why do you even bother visiting this section, let alone make a post that could just as well be written by someone who just signed up (as in, you ask a totally pointless question)? gcc is completely useless if you're not going to compile anything.

    @OP: whoa. What's the point? Why not just install Ubuntu instead of running it through a RAM hog? It's much easier and makes quite a bit more sense.
     
  4. hackotedelaplaqu

    Member hackotedelaplaqu GBAtemp Advanced Fan

    Joined:
    Jan 10, 2009
    Messages:
    533
    Country:
    France
    At least it works. Posting from VirtualBox-Ubuntu.
    It didn't work with windows7 Virtual PC.

    It's slower than a simple install but some people doesn't like partitioning their disks (I'm not one of those but I can understand)
     
  5. Crystal the Glaceon

    Member Crystal the Glaceon GBAtemp Inkling™ Squishies~

    Joined:
    Sep 13, 2009
    Messages:
    14,728
    Location:
    Inkopolis
    Country:
    Antarctica
    One I am interested in both trying to help out as well as learning how to create applications for the supercard two, also take the stick out your ass for once and realise that not everyone in the world has the space age clairvoyant mind to suddenly understand everything like you do.
     
  6. Overlord Nadrian

    Banned Overlord Nadrian Banned

    Joined:
    Jul 28, 2008
    Messages:
    6,671
    Location:
    Riviera
    Country:
    Belgium
    I thought you were the gay person in here... ([​IMG])

    But seriously, you first need to learn how to program before even considering installing this. Sure, if you want to compile your programs while you're learning, this is useful, but it's not necessary.

    Oh well.
     
  7. The Pi

    Member The Pi Lurker

    Joined:
    Mar 18, 2010
    Messages:
    1,638
    Location:
    Scotland
    Country:
    United Kingdom
    Wow, bitching already.

    @Nade: for linux newbs it's easier to start running it in Virtualbox and get used to how it works before you do a proper install. I know this first hand (It's what I did before I used linux properly) otherwise it would be a simple ubuntu install guide that could be copy-pasted from ubuntu.com.

    Not all coders like linux you know.

    Also Virtual PC is a piece of crap for running any thing other than windows and even at that, Virtualbox is still better.
     
  8. sebastiaan4489

    Newcomer sebastiaan4489 Member

    Joined:
    Aug 21, 2009
    Messages:
    20
    Country:
    Netherlands
    mod - please deleate
     
  9. YayMii

    Member YayMii hi

    Joined:
    Jun 24, 2009
    Messages:
    4,881
    Location:
    that place
    Country:
    Canada
    I think that a Linux-Windows dualboot is better than just using a virtual PC.
     
  10. Crystal the Glaceon

    Member Crystal the Glaceon GBAtemp Inkling™ Squishies~

    Joined:
    Sep 13, 2009
    Messages:
    14,728
    Location:
    Inkopolis
    Country:
    Antarctica
    I know some basics since I am teaching myself everything with no help, a video of some basic program would be nice since I don't have anything to start off from.
    At least a little help would be really nice.
     
  11. GH0ST

    Member GH0ST Your Hero is a Ghost

    Joined:
    Dec 17, 2006
    Messages:
    924
    Location:
    I was here... before...
    Country:
    France
    You can found some free pre-built virtualbox images for several open-source operating systems.

    You can build a dual boot system with windows and ubuntu it is easier for a first step I guess...
     
  12. Crystal the Glaceon

    Member Crystal the Glaceon GBAtemp Inkling™ Squishies~

    Joined:
    Sep 13, 2009
    Messages:
    14,728
    Location:
    Inkopolis
    Country:
    Antarctica
    I am a Linux users, step one was completed years ago
     
  13. GH0ST

    Member GH0ST Your Hero is a Ghost

    Joined:
    Dec 17, 2006
    Messages:
    924
    Location:
    I was here... before...
    Country:
    France
    Nevermind forgive me ...

    Warning: Spoilers inside!
     
  14. Overlord Nadrian

    Banned Overlord Nadrian Banned

    Joined:
    Jul 28, 2008
    Messages:
    6,671
    Location:
    Riviera
    Country:
    Belgium
    >you're a Linux user(s)
    >you want a tutorial on how to VirtualBox a Linux distro.

    Alright. Makes sense to me.






    Except not.
     
  15. Crystal the Glaceon

    Member Crystal the Glaceon GBAtemp Inkling™ Squishies~

    Joined:
    Sep 13, 2009
    Messages:
    14,728
    Location:
    Inkopolis
    Country:
    Antarctica
    I want a video on how to set it up the SDK on Linux itself.
    I already know how to set up Linux on VirtualBox.
     
  16. Sheimi

    Member Sheimi A cute Vixen!

    Joined:
    Oct 22, 2009
    Messages:
    1,866
    Location:
    Tachikawa
    Country:
    Japan
    I guess you cannot do this on Windows XP then
     
  17. Mazor

    Member Mazor Z80 master arch

    Joined:
    Feb 14, 2008
    Messages:
    547
    Country:
    Sweden
    And how exactly did you come to this conclusion?

    If you actually looked at the guide in the OP, you would have seen that it was done on Windows XP.
     
  18. Sheimi

    Member Sheimi A cute Vixen!

    Joined:
    Oct 22, 2009
    Messages:
    1,866
    Location:
    Tachikawa
    Country:
    Japan
    Setting it up now
     
  19. technomooney

    Newcomer technomooney Member

    Joined:
    Jul 9, 2011
    Messages:
    22
    Location:
    Minneapolis, Minnesoda
    Country:
    United States
    i would like the same... i am a linux user... ive even hacked my neighbor's wep encripted wifi with backtrack on the first time i used that distro [​IMG] ... but that is besides the point

    also couldn't we use an IDE [​IMG] (like NetBeans) [​IMG] to actually edit the source and then test/debug/compile it?
     

Share This Page