[<<] [<] Page 1 of 2 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Cheat sheet
From: Nik Clayton ####@####.#### Date: 10 Apr 2001 09:48:07 -0000 Message-Id: <20010410104524.A1196@canyon.nothing-going-on.org> Folks, One of the things I've been thinking about writing for FreeBSD has been a 'cheat sheet' for Linux users migrating to FreeBSD (no flames please, it happens, and I dare say that users migrate the other way as well). Anyway, my initial thoughts on this were that it'd look something like this: NFS To configure a host as an NFS server: RedHat Linux: Do foo, bar, baz. Debian Linux: Do bar, baz, foo. FreeBSD: Add 'nfs_server_enable="YES"' to /etc/rc.conf To configure the list of exported filesystems: Linux: Edit /etc/mumble, see mumble(5) for details. FreeBSD: Edit /etc/exports, see exports(5) for details. and so on and so forth. Very short, simple answers, with pointers to more information as necessary. Then it occured to me that this is no longer a cheat sheet for FreeBSD users -- it's a generally useful cheat sheet, at least as useful to Linux users as it is to FreeBSD folk (and there's no reason why we couldn't add something like Solaris in to the mix as well, to say nothing of NetBSD, OpenBSD, and Darwin). I don't have the time to do this all by myself, so I'm looking for volunteers on the Linux side who could help me flesh out the structure a bit, and also add content for whatever their preferred distribution is. Any interest? N -- FreeBSD: The Power to Serve http://www.freebsd.org/ FreeBSD Documentation Project http://www.freebsd.org/docproj/ --- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 --- --> --> |
<type 'exceptions.IOError'> | Python 2.5.2: /usr/bin/python Fri May 17 12:13:05 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/opt/ezmlm-browse-0.20/<string> in |
/opt/ezmlm-browse-0.20/main.py in main() |
424 |
425 if path is not None: |
426 main_path(path) |
427 else: |
428 main_form() |
global main_form = <function main_form at 0x8e55c6c> |
/opt/ezmlm-browse-0.20/main.py in main_form() |
378 except ImportError: |
379 die(ctxt, "Invalid command") |
380 module.do(ctxt) |
381 |
382 def main(): |
module = <module 'commands.showthread' from '/opt/ezmlm-browse-0.20/commands/showthread.pyc'>, module.do = <function do at 0x8e5f844>, global ctxt = {'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'} |
/opt/ezmlm-browse-0.20/commands/showthread.py in do(ctxt={'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}) |
9 ctxt.update(ezmlm.thread(ctxt[THREADID])) |
10 header(ctxt, 'Thread: ' + ctxt[SUBJECT], 'showthread') |
11 do_list(ctxt, 'msgs', ctxt[MSGSPERPAGE], ctxt[MESSAGES], |
12 lambda:sub_showmsg(ctxt, ctxt[MSGNUM])) |
13 footer(ctxt) |
global sub_showmsg = <function sub_showmsg at 0x8e551ec>, ctxt = {'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, global MSGNUM = 'msgnum' |
/opt/ezmlm-browse-0.20/globalfns.py in do_list(ctxt={'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, name='msgs', perpage=10, values=[{'author': u'Nik Clayton', 'authorid': 'mlbciphoaejhkejnbcfe', 'date': '10 Apr 2001 09:48:07 -0000', 'month': 200104, 'msgnum': 565, 'subject': u'Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986896087.0}, {'author': u'Gary Lawrence Murphy', 'authorid': 'klaegkfekohjoapifodb', 'date': '10 Apr 2001 14:36:51 -0000', 'month': 200104, 'msgnum': 566, 'subject': u'Re: Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986913411.0}, {'author': u'Randy Kramer', 'authorid': 'onjgeailchjkigohmmpa', 'date': '10 Apr 2001 17:01:47 -0000', 'month': 200104, 'msgnum': 567, 'subject': u'Re: Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986922107.0}, {'author': u'Gary Lawrence Murphy', 'authorid': 'klaegkfekohjoapifodb', 'date': '10 Apr 2001 17:15:14 -0000', 'month': 200104, 'msgnum': 568, 'subject': u'Re: Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986922914.0}, {'author': u'Martin WHEELER', 'authorid': 'kbpdbbmeddmahbikkfbi', 'date': '10 Apr 2001 19:14:15 -0000', 'month': 200104, 'msgnum': 569, 'subject': u'Re: Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986930055.0}, {'author': u'Randy Kramer', 'authorid': 'onjgeailchjkigohmmpa', 'date': '10 Apr 2001 19:22:32 -0000', 'month': 200104, 'msgnum': 570, 'subject': u'Re: Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986930552.0}, {'author': u'Randy Kramer', 'authorid': 'onjgeailchjkigohmmpa', 'date': '10 Apr 2001 19:27:22 -0000', 'month': 200104, 'msgnum': 571, 'subject': u'Re: Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986930842.0}, {'author': u'Gary Lawrence Murphy', 'authorid': 'klaegkfekohjoapifodb', 'date': '10 Apr 2001 19:47:28 -0000', 'month': 200104, 'msgnum': 572, 'subject': u'Re: Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986932048.0}, {'author': u'Randy Kramer', 'authorid': 'onjgeailchjkigohmmpa', 'date': '10 Apr 2001 20:15:00 -0000', 'month': 200104, 'msgnum': 573, 'subject': u'Re: Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986933700.0}, {'author': u'Randy Kramer', 'authorid': 'onjgeailchjkigohmmpa', 'date': '10 Apr 2001 20:55:00 -0000', 'month': 200104, 'msgnum': 574, 'subject': u'Re: Cheat sheet', 'threadid': 'fehigmfclnfhdjgonmee', 'timestamp': 986936100.0}], peritem=<function <lambda> at 0x8e5f9cc>) |
128 write(template % ctxt) |
129 if peritem: |
130 peritem() |
131 ctxt[ROW] += 1 |
132 |
peritem = <function <lambda> at 0x8e5f9cc> |
/opt/ezmlm-browse-0.20/commands/showthread.py in |
9 ctxt.update(ezmlm.thread(ctxt[THREADID])) |
10 header(ctxt, 'Thread: ' + ctxt[SUBJECT], 'showthread') |
11 do_list(ctxt, 'msgs', ctxt[MSGSPERPAGE], ctxt[MESSAGES], |
12 lambda:sub_showmsg(ctxt, ctxt[MSGNUM])) |
13 footer(ctxt) |
global sub_showmsg = <function sub_showmsg at 0x8e551ec>, ctxt = {'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, global MSGNUM = 'msgnum' |
/opt/ezmlm-browse-0.20/globalfns.py in sub_showmsg(ctxt={'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, msgnum=565) |
229 format_timestamp(ctxt, ctxt) |
230 write(html('msg-header') % ctxt) |
231 rec_showpart(ctxt, msg, 0) |
232 write(html('msg-footer') % ctxt) |
233 ctxt.pop() |
global rec_showpart = <function rec_showpart at 0x8e551b4>, ctxt = {'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, msg = <email.message.Message instance at 0x8eb3e8c> |
/opt/ezmlm-browse-0.20/globalfns.py in rec_showpart(ctxt={'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part=<email.message.Message instance at 0x8eb3e8c>, partnum=1) |
205 else: |
206 for p in part.get_payload(): |
207 partnum = rec_showpart(ctxt, p, partnum+1) |
208 else: |
209 write(html('msg-sep') % ctxt) |
partnum = 1, global rec_showpart = <function rec_showpart at 0x8e551b4>, ctxt = {'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, p = <email.message.Message instance at 0x8eb3f4c> |
/opt/ezmlm-browse-0.20/globalfns.py in rec_showpart(ctxt={'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part=<email.message.Message instance at 0x8eb3f4c>, partnum=2) |
208 else: |
209 write(html('msg-sep') % ctxt) |
210 sub_showpart(ctxt, part) |
211 return partnum |
212 |
global sub_showpart = <function sub_showpart at 0x8e55144>, ctxt = {'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part = <email.message.Message instance at 0x8eb3f4c> |
/opt/ezmlm-browse-0.20/globalfns.py in sub_showpart(ctxt={'row': 0, 'cmd': 'showthread', 'charset': 'utf-...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part=<email.message.Message instance at 0x8eb3f4c>) |
164 type = ctxt[TYPE] = part.get_content_type() |
165 ctxt[FILENAME] = part.get_filename() |
166 template = html('msg-' + type.replace('/', '-')) |
167 if not template: |
168 template = html('msg-' + type[:type.find('/')]) |
global template = <function template at 0x8e4de9c>, global html = <function html at 0x8e4ded4>, type = 'application/pgp-signature', type.replace = <built-in method replace of str object at 0x8eb9e20> |
/opt/ezmlm-browse-0.20/globalfns.py in html(name='msg-application-pgp-signature') |
40 |
41 def html(name): |
42 return template(name + '.html') |
43 |
44 def xml(name): |
global template = <function template at 0x8e4de9c>, name = 'msg-application-pgp-signature' |
/opt/ezmlm-browse-0.20/globalfns.py in template(filename='msg-application-pgp-signature.html') |
31 except IOError: |
32 if not _template_zipfile: |
33 _template_zipfile = zipfile.ZipFile(sys.argv[0]) |
34 try: |
35 f = _template_zipfile.open(n).read() |
global _template_zipfile = None, global zipfile = <module 'zipfile' from '/usr/lib/python2.5/zipfile.pyc'>, zipfile.ZipFile = <class zipfile.ZipFile at 0x8de6a7c>, global sys = <module 'sys' (built-in)>, sys.argv = ['-c', '/opt/ezmlm-browse-0.20'] |
/usr/lib/python2.5/zipfile.py in __init__(self=<zipfile.ZipFile instance at 0x8e61b8c>, file='-c', mode='r', compression=0, allowZip64=False) |
337 self.filename = file |
338 modeDict = {'r' : 'rb', 'w': 'wb', 'a' : 'r+b'} |
339 self.fp = open(file, modeDict[mode]) |
340 else: |
341 self._filePassed = 1 |
self = <zipfile.ZipFile instance at 0x8e61b8c>, self.fp = None, builtin open = <built-in function open>, file = '-c', modeDict = {'a': 'r+b', 'r': 'rb', 'w': 'wb'}, mode = 'r' |
<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '-c'
args =
(2, 'No such file or directory')
errno =
2
filename =
'-c'
message =
''
strerror =
'No such file or directory'