Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Trouble with Open flow tutorial-xterm display error and not in the sudoers file error

I am trying to do this open flow tutorial and I am completely new to networking and systems. I am a college student and I need help with this. I have finished a part of the tutorial (http://www.openflow.org/wk/index.php/OpenFlow_Tutorial) and I am able to get the "ssh -X mininet@ipaddress" command working. If i type xterm next, it is giving me a display is not set error but when I open the terminal again and just type xterm without typing the ssh -X thing, it is opening a new window for xterm. I am confused. Is that what it is supposed to do? The next part of the tutorial asks me to type "sudo mn --topo single,3 --mac --switch ovsk --controller remote" in my ssh terminal and this is what happened when i tried it.



Last login: Fri May 17 19:34:53 on ttys003

mobile-172-16-103-167:~ SHREYA20$ ssh -X mininet@192.168.56.1

Password:

X11 forwarding request failed on channel 0

Last login: Fri May 17 19:35:19 2013 from 192.168.56.1

mobile-172-16-103-167:~ mininet$ ssh -Y mininet@192.168.56.1

Password:

Last login: Fri May 17 23:46:27 2013 from 192.168.56.1

mobile-172-16-103-167:~ mininet$ sudo mn --topo single,3 --mac --switch ovsk --controller remote



WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.



To proceed, enter your password, or type Ctrl-C to abort.



Password:

mininet is not in the sudoers file. This incident will be reported.

mobile-172-16-103-167:~ mininet$


I need to finish this tutorial soon and I need help with this. Any help would be greatly appreciated. Thank you!

MacBook Pro, OS X Mountain Lion (10.8.2)

Posted on May 17, 2013 9:56 PM

Reply
8 replies

May 18, 2013 7:15 AM in response to etresoft

Sorry, completely off-topic, but (I guess) due to low point count, I'm not allowed to add a comment to your "Setting up a local web server on Lion and Mountain Lion" user tip.


It'd be cool if you could edit your user tip to add a step. After you modify your httpd.conf file, you need to restart Apache to get the edit to take:


$ sudo apachectl restart


Thanks for the great user tip!


Mark


[I now return you to your regularly scheduled discussion.]

May 18, 2013 9:27 AM in response to etresoft

I changed the mininet to adminstrator and restarted my laptop. xterm display error is shown when i type xterm from the ssh terminal but it works when i type it in the normal terminal. also, when i used the sudo command, this is what happened:


mobile-172-16-103-167:~ mininet$ suo mn --topo single,3 --mac --switch ovsk --controller remote

-bash: suo: command not found

mobile-172-16-103-167:~ mininet$ sudo mn --topo single,3 --mac --switch ovsk --controller remote



WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.



To proceed, enter your password, or type Ctrl-C to abort.



Password:

sudo: mn: command not found

mobile-172-16-103-167:~ mininet$


nothing has changed. Please help

May 18, 2013 10:27 AM in response to Mark Petereit

Mark Petereit wrote:


Sorry, completely off-topic, but (I guess) due to low point count, I'm not allowed to add a comment to your "Setting up a local web server on Lion and Mountain Lion" user tip.


It'd be cool if you could edit your user tip to add a step. After you modify your httpd.conf file, you need to restart Apache to get the edit to take:


$ sudo apachectl restart


Thanks for the great user tip!

Thanks for the tip for the tip. Technically, at that stage in the process, the Apache server shouldn't be running at all. It is later than I have the part to actually start the server for the first time.


However, that is an excellent point in case people want to keep hacking. I have updated the Tip.

May 18, 2013 10:33 AM in response to shja

The "mn" program isn't in your path. I am unaware of what that tutorial is trying to do. You will have to track down wherever it installed "mn" and refer to it with the full path. Otherwise, you may have to add it to your path.


I didn't look through that tutorial very much. They seem to have omitted the actual installation of mininet. Oops.

Trouble with Open flow tutorial-xterm display error and not in the sudoers file error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.