Homebrew [Tutorial] Setting up Pegaswitch and Preparing for Homebrew

machinoman

Well-Known Member
Member
Joined
Feb 12, 2011
Messages
322
Trophies
0
XP
611
Country
United States
I've restarted my computer and it still says the same thing. I also closed out of skype and discord and still erroring.
could you run

sudo lsof -i tcp:53

and let me know what it says?

EDIT: better yet, whatever it tells you the PID is on that port, kill it

kill -QUIT <PID>
 
Last edited by machinoman,
  • Like
Reactions: gangnamstylelover

Agent Moose

Well-Known Member
Member
Joined
Dec 6, 2014
Messages
407
Trophies
0
Age
33
XP
552
Country
United States
could you run

sudo lsof -i tcp:53

and let me know what it says?

EDIT: better yet, whatever it tells you the PID is on that port, kill it

kill -QUIT <PID>
Oh boy, here's the error I get when I type in the "sudo lsof-i tcp:53"
Code:
Whale:~ AgentMoose$ sudo lsof -i tcp:53
lsof: unacceptable port specification in: -i tcp:53
lsof 4.89
 latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
 latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
 latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
 usage: [-?abhlnNoOPRtUvV] [+|-c c] [+|-d s] [+D D] [+|-f[cgG]]
 [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+|-M] [-o [o]] [-p s]
 [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
 
  • Like
Reactions: gangnamstylelover

aostang

Active Member
Newcomer
Joined
Mar 31, 2011
Messages
42
Trophies
0
XP
152
Country
United States
/home/xxxxxx/pegaswitch/start.js:24
let argv = yargs
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3

Any ideas? Everything fine up to this point. Ubuntu 16.04 LTS

EDIT: With additional information using --use_strict:

xxxxxx@Ubuntu:~/pegaswitch$ sudo node --use_strict start.js
/home/xxxxxx/pegaswitch/node_modules/blessed/lib/program.js:198
case '\200':
^^

SyntaxError: Octal literals are not allowed in strict mode.
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/xxxxxx/pegaswitch/node_modules/blessed/lib/blessed.js:15:37)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)

EDIT 2: The following commands get you past this (forces update of old nodejs):

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
 
Last edited by aostang,
  • Like
Reactions: gangnamstylelover

machinoman

Well-Known Member
Member
Joined
Feb 12, 2011
Messages
322
Trophies
0
XP
611
Country
United States
Oh boy, here's the error I get when I type in the "sudo lsof-i tcp:53"
Code:
Whale:~ AgentMoose$ sudo lsof -i tcp:53
lsof: unacceptable port specification in: -i tcp:53
lsof 4.89
 latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
 latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
 latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
 usage: [-?abhlnNoOPRtUvV] [+|-c c] [+|-d s] [+D D] [+|-f[cgG]]
 [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+|-M] [-o [o]] [-p s]
 [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
perhaps try this instead:

netstat -vanp tcp | grep 53
 
  • Like
Reactions: gangnamstylelover

aostang

Active Member
Newcomer
Joined
Mar 31, 2011
Messages
42
Trophies
0
XP
152
Country
United States
I came across the same error message too. I'll give it a rest till someone figures it out
Yep, same. This is an Ubuntu VM running in VMWare with a fairly barebones install except some packages to compile android kernels. I doubt I'm actually using the port for anything.

--------------------- MERGED ---------------------------

perhaps try this instead:

netstat -vanp tcp | grep 53

xxxxxx@Ubuntu:~/pegaswitch$ netstat -vanp tcp | grep 53
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN -
udp 0 0 0.0.0.0:5353 0.0.0.0:* -
udp 0 0 127.0.1.1:53 0.0.0.0:* -
...

Lots below that, but I'm sure nothing useful. What would actually be using port 53 on a barebones Ubuntu? This is after a cold boot.

EDIT:
Maybe an issue with the VMWare network adapter IP? I do have normal web connectivity in the VM.

EDIT 2:
Per post 12 and per previous edit, is this an issue with bridged network configuration in VMWare?

EDIT 3:
Same error with switching to bridged adapter in VMWare settings and cold booting. Standing down until devs speak up.

EDIT 4 :
4th time's the charm. If you run into this, issue the following commands:
gksu gedit /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.

Now it should work. Apparently recent Ubuntu installs use DNSMasq, which does indeed eat port 53. And yes, you need to use a bridged adapter both in VirtualBox and VMWare so you get the IP on your local network.
 
Last edited by aostang,

tekman

New Member
Newbie
Joined
Apr 3, 2015
Messages
3
Trophies
0
Age
39
XP
113
Country
United States
Section 1 - Upgrading Your Switch to 3.0.0
Skip this section if your switch is already on 3.0.0, if you're above 3.0.0 you cannot do this.

So just for 100% clarification, those of us who updated to firmwares beyond 3.0.0 are unable to use this exploit right? Dang, wish I would've followed the scene before updating all the time.
 
  • Like
Reactions: gangnamstylelover

guily6669

GbaTemp is my Drug
Member
Joined
Jun 3, 2013
Messages
2,333
Trophies
1
Age
34
Location
Doomed Island
XP
2,098
Country
United States
~Agent Moose, try restarting your router and don't connect any device. My router 4 example is a pile of crap and if a port was used, most of the times it locks that port even if nothing is using it, I have to restart router.
 
  • Like
Reactions: gangnamstylelover

gangnamstylelover

New Member
Newbie
Joined
Nov 15, 2017
Messages
1
Trophies
0
Age
28
XP
41
Country
United States
I bought a switch for the sole purpose of installing home brew like last weekend of and it's coming today will I still be able to install v 3.0 OS on it with pokenn tournament
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Maximumbeans @ Maximumbeans: butte