Ubuntu VM with Pegaswitch Libtransistor and RetroArch PreConfigured

Discussion in 'Switch - Hacking & Homebrew' started by yardie, Nov 19, 2017.

  1. yardie
    OP

    yardie GBAtemp Maniac

    Member
    1,070
    1,113
    Mar 27, 2016
    United States
    This is a virtual machine with Libtransistor, Pegaswitch and Retroarch SNES9x2010 configured. All you need to do is put the roms in and compile retro arch snes
    Login Credentials
    Username: unix
    Password: 1111

    Changelog:
    recreated 64bit vm with working libtransistor and pegaswitch 100% working


    How to Create SNES RetroArch NRO with Roms
    Code:
    #!/bin/bash
    # Download your SNES roms and place them in RetroArch/fs/
    # Rename all your roms with lowercase characters with no space for example supermarioworld.smc
    
    # Go back to the RetroArch folder, right click and open terminal in the RetroArch folder then type # each command one by one, pressing enter between each commands
    
    make -f Makefile.switch clean
    
    # Press Enter
    
    make LLVM_POSTFIX=-5.0 -f Makefile.switch LIBTRANSISTOR_HOME=/home/unix/libtransistor
    
    # Press Enter
    
    # A file called retroarch_switch.nro will be created in the same folder, copy it to a location of # your choice and run with pegaswitch.
    
    How to Run The NRO You Created in Pegaswitch
    Code:
    #!/bin/bash
    # Copy the nro file you created to your home folder
    # Open terminal and launch Pegaswitch by typing
    
    pegaswitch
    
    # Open another terminal and type
    
    ncat -klp 2991
    
    # get your switch connected to Pegaswitch by setting the DNS address in your switch to the IP in pegaswitch (the ip of your VM)
    
    # in Pegaswitch terminal window type
    
    runnro ./nros/ace.nro
    
    # Open another terminal window and type (note that xxx is your Switch ip address)
    
    ncat xxx.xxx.xxx.xxx 2991 < retroarch_switch.nro
    
    Then your homebrew should load
    
    
    How to Rebuild libtransistor, RetroArch and the Snes9x2010 file from scratch on any Linux machine

    Code:
    New scripts updated to include NES, GBA emulators
    Easily select the option you want to start building. Remember to put your roms in the RetroArch/fs folder before running the buildretro script
    
    The first script (buildenv.sh):
    [LIST]
    [*]removes and rebuilds libtransistor, snes9x, vba-next and fceumm from their github sources
    [*]creates fs directory
    [/LIST]
    The second script buildretro.sh):
    [LIST]
    [*]make-cleans the retroarch folder
    [*]prompts you to select which emulator you want to build for
    [*]copies the respective libretro_switch.a to the RetroArch folder and builds the emulator .nro file
    [/LIST]
    



    How to download someone else's version of source code

    Code:
    People can use git to download whatever fork of retroarch they want
    
    All you have to do is
    
    go to your home folder then
    
    git clone https://github.com/vgmoose/RetroArch.git RetroArch_vgmoose
    
    it will create a folder called RetroArch_vgmoose
    
    copy the libretro_switch.a file from the original RetroArch folder into the RetroArch_vgmoose folder
    
    create a folder called fs in RetroArch_vgmoose folder and put your rom in there
    
    then run these commands after opening up terminal in the RetroArch_vgmoose folder
    
    make -f Makefile.switch clean
    make LLVM_POSTFIX=-5.0 -f Makefile.switch LIBTRANSISTOR_HOME=/home/unix/libtransistor
    
    then youll get your nro file from the vgmoose fork
    Capture.PNG
     

    Attached Files:

    Last edited by yardie, Jan 14, 2018
  2. SkulllKid

    SkulllKid Advanced Member

    Newcomer
    56
    6
    Apr 10, 2015
    United States
    Cool, so you just have to update switch to 3.0 and set the dns to 192.168.1.19 and that's it?
     
  3. yardie
    OP

    yardie GBAtemp Maniac

    Member
    1,070
    1,113
    Mar 27, 2016
    United States
    set it to whatever dns pegaswitch shows you
    your ip will be different
     
  4. DocAmes1980

    DocAmes1980 GBAtemp Advanced Fan

    Member
    558
    360
    Oct 31, 2016
    United States
    Thank you. Very helpful.
     
  5. merlin555

    merlin555 GBAtemp Regular

    Member
    138
    22
    Oct 27, 2014
    Germany
    I have problem to loading it.
    Error:
    VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).

    Can you attach the Pegaswitch Directory (zipped) & .bashrc, please ?

    Thanks!
     
  6. subcon959

    subcon959 teh retro

    Member
    891
    546
    Dec 24, 2008
    The error is telling you to enable virtualisation in your bios.
     
  7. merlin555

    merlin555 GBAtemp Regular

    Member
    138
    22
    Oct 27, 2014
    Germany
    It works now, thanks!
     
  8. wiired24

    wiired24 GBAtemp Advanced Fan

    Member
    995
    745
    Sep 3, 2013
    United States
    Dev_Home
    This will help a lot of people. Kudos for doing this OP
     
  9. SuinkaiVS

    SuinkaiVS Member

    Newcomer
    48
    14
    Apr 3, 2017
    Inside Hombrew
    error loading :(

    (VERR_TAR_UNEXPECTED_EOS)
    VBOX_E_IPRT_ERROR (0x80BB0005)
     
    Last edited by SuinkaiVS, Nov 20, 2017
  10. yardie
    OP

    yardie GBAtemp Maniac

    Member
    1,070
    1,113
    Mar 27, 2016
    United States
    id try to reinstall virtualbox and redownload the hd image to another location on the pc and try again
    What OS are you running
     
  11. SuinkaiVS

    SuinkaiVS Member

    Newcomer
    48
    14
    Apr 3, 2017
    Inside Hombrew
    i've downloaded the file two times, i'm reinstalling Virtualbox now
    i'm running Windows 10

    EDIT: well, it was the version. Updated and working, thanks for the help :P
     
    Last edited by SuinkaiVS, Nov 20, 2017
  12. Syren1

    Syren1 Newbie

    Newcomer
    1
    0
    Nov 20, 2017
    France
    Hi guys,

    Is it possible to create a docker container ?

    Tkx
     
  13. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    6,266
    1,017
    Nov 6, 2002
    Portugal
    Proud to be Portuguese but I am in USA.
    I will wait for someone to release fully one so we can be ready for homebrew right away. For this is only a beginning.
     
  14. yardie
    OP

    yardie GBAtemp Maniac

    Member
    1,070
    1,113
    Mar 27, 2016
    United States
    why dont you do the rest yourself?
     
    Masterwin likes this.
  15. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    6,266
    1,017
    Nov 6, 2002
    Portugal
    Proud to be Portuguese but I am in USA.
    Nah. Dont want to abuse it. Until they release fully and readily.
     
  16. yardie
    OP

    yardie GBAtemp Maniac

    Member
    1,070
    1,113
    Mar 27, 2016
    United States
    I really don't understand what you're trying to say. But ok.
     
  17. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    6,266
    1,017
    Nov 6, 2002
    Portugal
    Proud to be Portuguese but I am in USA.
    Ok. :glare:
     
  18. Greg956

    Greg956 Advanced Member

    Newcomer
    70
    17
    Dec 18, 2017
    Russia
    How to extend OS hdd with some memory, 5 gb is too small, after installing several programs for switch homebrew, it is full. I resized to 30 gb, but Gparted doesnt allow to put additional memory to Ubuntu part. How to do this?
     
  19. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    13,150
    5,887
    Mar 17, 2010
    Norway
    Alola
    You should be able to do it from a live CD. Mount the ISO in VirtualBox and boot into it on the VM.
     
  20. yardie
    OP

    yardie GBAtemp Maniac

    Member
    1,070
    1,113
    Mar 27, 2016
    United States
    uploading an updated build with 120gb hdd space