[Tutorial] Setting up Pegaswitch and Preparing for Homebrew

Discussion in 'Switch - Hacking & Homebrew' started by iAqua, Nov 14, 2017.

  1. Xyphoseos

    Xyphoseos Hack or no games

    Member
    1,021
    87
    Jun 29, 2016
    France
    Rivière
    I always have the port 53 issue
     
  2. pLaYeR^^

    pLaYeR^^ GBAtemp Fan

    Member
    441
    44
    Sep 18, 2014
    Austria
    Screenshot 2017-11-19 um 11.48.17.png I followed the guide here but something strange happens when I try to start....
     
  3. veekay

    veekay GBAtemp Regular

    Member
    104
    18
    Jan 30, 2008
    United States
    For everyone with the dns issue just use this as the command.

    sudo node start.js --disable-curses --logfile debug.txt --host 192.xxx.xxx.xxx

    Of course replace the IP address with whatever your machine is.

    I had this same issue and saw this from one of the pegaswitch threads
     
    pLaYeR^^ likes this.
  4. Xyphoseos

    Xyphoseos Hack or no games

    Member
    1,021
    87
    Jun 29, 2016
    France
    Rivière
    Add this line in nano ~/.bashrc
    and change
    alias pegaswitch='cd ~/pegaswitch; sudo node start.js'
    to
    alias pegaswitch='cd ~/pegaswitch; sudo node start.js --disable-curses --logfile debug.txt --host 192.xxx.xxx.xxx'

    ???
     
  5. FunThomas

    FunThomas GBAtemp Fan

    Member
    444
    87
    Jan 10, 2016
    Gambia, The
    it would be nice if in the section 3 there would be some more steps which are needed to setup VM

    like using bridge mode in virtual box or if there are preferred images like ubuntu 16 ...?

    the other steps are described extensive but this step is described with nearly nothing, no traps you could get into if you dont have setup a VM for Pegaswitch before
     
  6. pLaYeR^^

    pLaYeR^^ GBAtemp Fan

    Member
    441
    44
    Sep 18, 2014
    Austria
    Still get an error: There was an issue setting up DNS: bind EADDRNOTAVAIL MYIPADRESS
     
  7. pLaYeR^^

    pLaYeR^^ GBAtemp Fan

    Member
    441
    44
    Sep 18, 2014
    Austria
    Code:
    COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    dnsmasq 10954 nobody    5u  IPv4  55264      0t0  TCP ubuntu:domain (LISTEN)
    Always listen to port 53 and when I kill it, it starts again...
     
  8. x0x0

    x0x0 Member

    Newcomer
    13
    4
    Nov 15, 2017
    Poland
    try this
    service network-manager stop
    killall dnsmasq
    npm start

    worked for me.
     
    pLaYeR^^ likes this.
  9. pLaYeR^^

    pLaYeR^^ GBAtemp Fan

    Member
    441
    44
    Sep 18, 2014
    Austria
    Thx now it works :) But is there any solution to not always need to do this after reboot?
     
  10. yardie

    yardie GBAtemp Fan

    Member
    456
    399
    Mar 27, 2016
    United States
    Permanent fix for the port 53 issue

    sudo nano /etc/NetworkManager/NetworkManager.conf
    (if error, install gksu)

    Comment out the line
    dns=dnsmasq
    So it looks like:
    #dns=dnsmasq

    Save (usually ctrl-s), reboot.
     
    pLaYeR^^ likes this.
  11. x0x0

    x0x0 Member

    Newcomer
    13
    4
    Nov 15, 2017
    Poland
    Just save state machine with running pegaswitch :P
     
  12. pLaYeR^^

    pLaYeR^^ GBAtemp Fan

    Member
    441
    44
    Sep 18, 2014
    Austria
    That works!!! I also tried to set the port of dnsmasq to 0 but I still got an error. Finally it works now :)

    — Posts automatically merged - Please don't double post! —

    If my switch use the IP as DNS which is shown in the terminal, is there any possibility that my switch has an internet connection and search for system updates?
     
  13. Foundforgood89

    Foundforgood89 Newbie

    Newcomer
    1
    0
    Nov 19, 2017
    United States
    Hi. I'm having trouble doing this. I think my device should be on 3.0.0, but it always says an update is ready. My WiFi is currently disabled and has been for months, but it must have updated at least 1 update after 3.0.0 before I could. I tried shutting down, pressing and holding + and - and booting back up- no difference. Tried rebooting while keeping + - held the whole time-no difference. Regular reboot, shutdown restart, nothing seems to get rid of it. Any suggestions? I don't even know how to confirm my current version with that "update is ready" msg there
     
  14. Agent Moose

    Agent Moose GBAtemp Fan

    Member
    335
    83
    Dec 6, 2014
    United States
    Do I specifically have to run the start.js file for it to work correctly, or can I just create my own local server and host the files from there and then connect that way? (Like with other consoles, such as Wii U or PS3)
     
  15. Arck

    Arck GBAtemp Advanced Fan

    Member
    798
    389
    Mar 13, 2016
  16. merlin555

    merlin555 GBAtemp Regular

    Member
    131
    22
    Oct 27, 2014
    Germany
    No Internet?!
    Check the Internet.

    Try:
    dnsmasq restart

    OR:

    Remove the line "dns=dnsmascq" from /etc/NetworkManager/NetworkManager.conf
    then RESTART Ubuntu
     
    Last edited by merlin555, Nov 20, 2017
  17. yardie

    yardie GBAtemp Fan

    Member
    456
    399
    Mar 27, 2016
    United States
  18. Arck

    Arck GBAtemp Advanced Fan

    Member
    798
    389
    Mar 13, 2016
    I had internet and removed this line so it wasn't the problem.

    I removed the pegaswitch folder and re-cloned it.
    My nodejs installation was broken when I did install npm, correctly reinstalling nodejs fixed it.

    Thanks.
     
  19. merlin555

    merlin555 GBAtemp Regular

    Member
    131
    22
    Oct 27, 2014
    Germany
    I have two SWITCH.
    The last two days was the "old" SWITCH v4.0.1 in the docking station with LAN connected.
    I have tested the PEGASWITCH.
    Today, i wanted play a game, but the SWITCH has a Black Screen.
    Its ON, and the POWER Option, i see a display screen, Volume and the click from Joycons hear.
    I cant switch the console off.
    Black Screen.

    And now ?
     
  20. merlin555

    merlin555 GBAtemp Regular

    Member
    131
    22
    Oct 27, 2014
    Germany
    Solved! :-)

    Hold 15 sec. the Power button.