see below.

On Mon, May 7, 2012 at 1:01 AM, Johan Grönqvist
<johan.gronqv...@gmail.com>wrote:

> 2012-05-07 04:16, Kjetil brinchmann Halvorsen skrev:
>
>
>>    Do you use anything that may affect sage's ability to open ports?
>>
>>
>>   My problem with answering is that I don't really know anything about
>> "ports" . I guess that has something to do with networking,
>> but nbothing more! Any hints about books/papers/netplaces to read to
>> learn about "ports"?
>>
>>
> This problem is probably beyond me, but someone else might answer, and you
> have the other thread going on the same problem. I do not expect that the
> text below will solve your problem, but perhaps it helps you understand the
> error message better:
>
>
> My (possibly incorrect) intuition about ports:
>
> We have networking and we need a way to organize the programs that want to
> connect to the network. Let's imagine that the network card has 2^16
> different "connection points" that the programs can connect to, and let's
> call them ports. When a program connects to another (on the same or a
> different machine), it needs to communicate with a port, and the responding
> program needs to "listen" to that port. As an example, my web server
> listens to incoming requests from others, and it does so on port 80. Thus
> if you want to see on of the web pages it serves, you send a request to
> that computer, and send it to port 80 on that computer. This also works for
> local networking, it does not matter if the request to port 80 came from
> the outside or from another program running on the same machine.
>
> The sage notebook runs in a web server, and you connect to it locally (or
> remotely if the notebook is configured to respond to requests from other
> machines, which it is probably not, for security purposes.
>
> You can see some info about open ports by running "netstat -t -p". My sage
> notebook runs on port 8000.
>

Here is my output from sudo netstat -t -p

kjetil@kjetil:~$ sudo netstat -t -p
[sudo] password for kjetil:
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address
State       PID/Program name
tcp        0      0 kjetil:38929            mia04s04-in-f9.1e:https
ESTABLISHED 4994/firefox-bin
tcp        0      0 kjetil:38531            ec2-75-101-130-133:http
TIME_WAIT   -
tcp        0      0 kjetil:36936            mia05s08-in-f11.1:https
ESTABLISHED 4994/firefox-bin
tcp        0      0 kjetil:45665            mia04s04-in-f3.1e:https
TIME_WAIT   -
tcp        0      0 kjetil:53141            yh-in-f105.1e100.:https
ESTABLISHED 4994/firefox-bin
tcp        0      0 kjetil:35941            mia04s04-in-f21.1:https
ESTABLISHED 4994/firefox-bin
tcp        0      0 kjetil:46639            pc-178-224-45-190:https
ESTABLISHED 4881/skype
tcp        0      0 kjetil:48800            mia04s04-in-f5.1e:https
TIME_WAIT   -
tcp        0      0 kjetil:38928            mia04s04-in-f9.1e:https
ESTABLISHED 4994/firefox-bin
tcp        0      0 kjetil:53132            yh-in-f105.1e100.:https
TIME_WAIT   -
tcp        0      0 kjetil:57393            157.55.235.148:https
ESTABLISHED 4881/skype
tcp        0      0 kjetil:38530            ec2-75-101-130-133:http
TIME_WAIT   -
tcp        0      0 kjetil:44755            pc-78-210-83-200.:https
ESTABLISHED 4881/skype
tcp        0      0 kjetil:52682            TGV.ANYCAST-FO.CHI:http
ESTABLISHED 4994/firefox-bin
tcp        0      0 kjetil:45666            mia04s04-in-f3.1e:https
TIME_WAIT   -
tcp        0      0 kjetil:35912            mia04s04-in-f21.1:https
ESTABLISHED 4994/firefox-bin
kjetil@kjetil:~$


Kjetil




>
>
> One example output line of the netstat command is
>
> tcp 0 0 johan-laptop.loca:36666 87.117.201.130:ircd     ESTABLISHED
> 28025/xchat-gnome
>
> Saying that I have a tcp port open (there are two kinds, tcp and udp and
> sage uses tcp), from my local machine, port 36666 to 87.117.201.130 port
> ircd (I assume this indicated the standard port for an irc client) and the
> port was opened by the program xchat-gnome.
>
> The wikipedia page is at <http://en.wikipedia.org/wiki/**
> Port_%28computer_networking%29<http://en.wikipedia.org/wiki/Port_%28computer_networking%29>
> **>
>
>
>
>  kjetil@kjetil:~/sage/sage-5.0.**rc0$ ./sage --ipython
>> WARNING: Configuration file ipythonrc not found. Ignoring request.
>> ------------------------------**------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/kjetil/sage/sage-5.0.**rc0/local/lib/python2.7/site-**
>> packages/IPython/ConfigLoader.**py",
>> line 66, in load
>>     fname = filefind(fname,incpath)
>>   File
>> "/home/kjetil/sage/sage-5.0.**rc0/local/lib/python2.7/site-**
>> packages/IPython/genutils.py",
>> line 554, in filefind
>> ' not found in current or supplied directories:' + `alt_dirs`
>> IOError: File'ipythonrc' not found in current or supplied
>> directories:u'/home/kjetil/.**ipython'
>>
>> WARNING: Problems loading configuration file 'ipythonrc'
>> Starting with default -bare bones- configuration.
>> ------------------------------**------------------------------**
>> ---------------
>> ImportError                               Traceback (most recent call
>> last)
>>
>> /home/kjetil/sage/sage-5.0.**rc0/local/lib/python2.7/site-**
>> packages/IPython/ipmaker.pyc
>> in force_import(modname, force_reload)
>>      61         reload(sys.modules[modname])
>>      62     else:
>> ---> 63         __import__(modname)
>>      64
>>      65
>>
>> ImportError: Bad magic number in /home/kjetil/.ipython/ipy_**
>> user_conf.pyc
>> WARNING: /home/kjetil/.ipython/ipy_**user_conf.py does not exist, please
>> run %upgrade!
>> WARNING: Loading of ipy_user_conf failed.
>>
>> Python 2.7.2 (default, May  3 2012, 22:40:27)
>> Type "copyright", "credits" or "license" for more information.
>>
>> IPython 0.10.2 -- An enhanced Interactive Python.
>> ?         -> Introduction and overview of IPython's features.
>> %quickref -> Quick reference.
>> help      -> Python's own help system.
>> object?   -> Details about 'object'. ?object also works, ?? prints more.
>>
>> In [1]: 3**33
>>
>> Out[1]: 5559060566555523
>>
>> In [2]:
>>
>>
> From what Keshav said, this appears rather harmless for the functionality,
> but a bit annoying. You get a warning, but the thing tested actually works.
>
> As all tests pass for my wheezy, let me know if there is anything I can do
> to see where we differ. I do have ipython 0.12 (which is 0.11 or newer, and
> I do not get the error.
>
> root@johan-laptop:/home/johan# aptitude show ipython
> Paket: ipython
> Tillstånd: installerat
> Automatiskt installerade: nej
> Version: 0.12-1
>
>
>
> Regards
>
> Johan
>
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to sage-support+unsubscribe@**
> googlegroups.com <sage-support%2bunsubscr...@googlegroups.com>
> For more options, visit this group at http://groups.google.com/**
> group/sage-support <http://groups.google.com/group/sage-support>
> URL: http://www.sagemath.org
>



-- 
"If you want a picture of the future - imagine a boot stamping on the human
face - forever."

George Orwell (1984)

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to