Home
Name Modified Size Downloads / Week Status
Totals: 167 Items   86.6 MB 2,217
download 2011-07-25 4444 weekly downloads
mad 2011-07-25 0
nmonchart30.tar 2016-09-22 747.5 kB 8181 weekly downloads
nweb25.c 2016-07-24 7.6 kB 1414 weekly downloads
nweb24_extra.zip 2016-07-23 11.9 kB 1111 weekly downloads
nweb24_README.txt 2016-07-23 9.4 kB 11 weekly downloads
nweb_AIX6_POWER 2016-07-23 18.1 kB 22 weekly downloads
nweb24_Ubuntu_RaspberryPi3_ARM 2016-07-23 13.6 kB 33 weekly downloads
nweb24.c 2016-07-23 7.6 kB 11 weekly downloads
nmonchart29.tar 2016-07-21 747.5 kB 1010 weekly downloads
nmonchart28.tar 2016-07-06 645.1 kB 22 weekly downloads
topaschart_v7.tar 2016-07-01 1.3 MB 33 weekly downloads
topaschart_v7.zip 2016-07-01 259.2 kB 11 weekly downloads
topaschart5.zip 2016-06-08 259.3 kB 11 weekly downloads
topaschart5.tar 2016-06-08 1.3 MB 11 weekly downloads
nmon16f_power_mpginc.tar.gz 2016-05-24 2.3 MB 1212 weekly downloads
nmon16f_power_mr_nmon.tar.gz 2016-05-19 1.2 MB 220220 weekly downloads
lmon16f.c 2016-05-19 271.1 kB 366366 weekly downloads
nmon16e_mr_nmon.tar.gz 2016-04-25 2.2 MB 3030 weekly downloads
nmon16e_mpginc.tar.gz 2016-04-25 3.5 MB 179179 weekly downloads
nmon16e_power_powerkvm31 2016-04-21 459.6 kB 11 weekly downloads
nmon16e_power_rhel65 2016-04-19 405.7 kB 99 weekly downloads
nmon16e_power_rhel70BE 2016-04-19 460.6 kB 44 weekly downloads
nmon16e_power_rhel71LE 2016-04-19 459.6 kB 1515 weekly downloads
nmon16e_power_sles12 2016-04-19 446.5 kB 11 weekly downloads
nmon16e_power_sles113 2016-04-19 418.4 kB 77 weekly downloads
nmon16e_power_ubuntu14 2016-04-19 550.4 kB 55 weekly downloads
nmon16e_x86_rhel65 2016-04-12 347.5 kB 188188 weekly downloads
nmon16e_x86_rhel71 2016-04-12 391.7 kB 5959 weekly downloads
nmon16e_x86_rhel72 2016-04-12 402.1 kB 119119 weekly downloads
nmon16e_x86_sles12 2016-04-12 394.6 kB 1212 weekly downloads
nmon16e_x86_sles113 2016-04-12 345.5 kB 4444 weekly downloads
nmon16e_x86_ubuntu1510 2016-04-12 481.8 kB 1919 weekly downloads
makefile 2016-04-12 7.4 kB 6666 weekly downloads
nmon16e_arm_ubuntu1510 2016-04-09 383.1 kB 33 weekly downloads
lmon16e.c 2016-04-07 265.4 kB 33 weekly downloads
nmon16d_power_rhel72LE_gpu 2016-03-11 462.8 kB 44 weekly downloads
nmon16d_powerkvm31 2016-03-11 456.6 kB 22 weekly downloads
nmonchart27.tar 2016-03-03 645.1 kB 11 weekly downloads
nmonchart25.tar 2016-02-12 634.9 kB 11 weekly downloads
nmon15d_power.tar.gz 2016-02-12 825.6 kB 11 weekly downloads
nmon15e_mpginc.tar.gz 2016-02-12 6.7 MB 11 weekly downloads
nmon15g_power.tar.gz 2016-02-12 896.4 kB 22 weekly downloads
nmon16b_arm.tar.gz 2016-02-12 291.7 kB 11 weekly downloads
nmon16d_mainframe.tar.gz 2016-02-12 336.4 kB 11 weekly downloads
nmon16b_arm_raspian 2016-02-12 275.2 kB 11 weekly downloads
nmon16b_arm_ubuntu1510 2016-02-12 382.8 kB 11 weekly downloads
nmon16a.tar.gz 2016-02-12 1.3 MB 11 weekly downloads
nmon_mainframe_sles112 2016-02-12 486.6 kB 33 weekly downloads
nmon_mainframe_rhel71 2016-02-12 427.1 kB 11 weekly downloads
nmon16c_POWER.tar.gz 2016-02-12 2.0 MB 1010 weekly downloads
nmon16d_x86.tar.gz 2016-02-12 9.3 MB 119119 weekly downloads
lmon16d.c 2016-01-29 263.2 kB 11 weekly downloads
nmon16c_mainframe_sles112_rhel71 2016-01-26 486.5 kB 11 weekly downloads
nmonchart24.tar 2016-01-15 634.9 kB 11 weekly downloads
lmon16c.c 2016-01-15 262.5 kB 11 weekly downloads
lmon16b.c 2016-01-07 256.0 kB 11 weekly downloads
lmon16a.c 2016-01-01 251.8 kB 22 weekly downloads
nmon15h_mainframe_sles112 2015-12-10 443.5 kB 22 weekly downloads
topaschart4.zip 2015-12-01 259.2 kB 11 weekly downloads
topaschart4.tar 2015-12-01 1.3 MB 11 weekly downloads
nmonchart23.tar 2015-12-01 624.6 kB 11 weekly downloads
topaschart3.zip 2015-11-25 518.1 kB 11 weekly downloads
topaschart3.tar 2015-11-25 1.3 MB 11 weekly downloads
lmon15h.c 2015-08-11 211.7 kB 11 weekly downloads
lmon15g.c 2015-07-13 211.5 kB 11 weekly downloads
lmon15f.c 2015-07-09 207.3 kB 11 weekly downloads
nmonchart22_a_phys.jpg 2015-05-08 35.4 kB 11 weekly downloads
sampleC.html 2015-05-08 92.5 kB 11 weekly downloads
nmonchart22.tar 2015-05-08 624.6 kB 22 weekly downloads
lmon15e.c 2015-05-03 205.4 kB 22 weekly downloads
lmon15d.c 2015-04-13 204.7 kB 11 weekly downloads
nmon15c_steal.jpg 2015-04-13 131.9 kB 22 weekly downloads
lmon15c.c 2015-04-13 204.4 kB 11 weekly downloads
lmon15b.c 2015-03-18 203.0 kB 11 weekly downloads
lmon15a_README.txt 2015-02-23 2.8 kB 11 weekly downloads
lmon15a.c 2015-02-23 202.7 kB 11 weekly downloads
mint17.tar.gz 2015-02-23 252.4 kB 11 weekly downloads
centos7.tar.gz 2015-02-23 115.3 kB 2020 weekly downloads
nmon_linux_14i_newer_Linux_versions.tar.gz 2014-09-29 1.9 MB 44 weekly downloads
nmon_linux_14i.tar.gz 2013-10-22 4.5 MB 8080 weekly downloads
nmon_14i_x86_ubuntu134 2013-08-01 358.3 kB 22 weekly downloads
nmon_14i_power_sles112 2013-08-01 285.1 kB 11 weekly downloads
lmon14i.c 2013-08-01 201.9 kB 1111 weekly downloads
lmon14h.c 2013-07-03 195.2 kB 33 weekly downloads
nmon_pi.zip 2012-06-02 92.7 kB 33 weekly downloads
nmon_mainframe_32_rhel4 2012-02-14 313.0 kB 22 weekly downloads
nmon_mainframe_64_rhel4 2012-02-14 236.5 kB 11 weekly downloads
nmon_x86_64_rhel6 2012-02-14 222.4 kB 2020 weekly downloads
nmon_x86_rhel6 2012-02-14 194.6 kB 11 weekly downloads
nmon_x86_mint12 2012-02-14 239.3 kB 11 weekly downloads
nmon_x86_64_fedora16 2012-02-14 278.1 kB 11 weekly downloads
nmon_x86_fedora16 2012-02-14 243.9 kB 11 weekly downloads
nmon_x86_64_mint12 2012-02-14 282.6 kB 11 weekly downloads
nmon_power_64_rhel6 2012-02-14 267.1 kB 11 weekly downloads
nmon_power_64_rhel62 2012-02-14 267.1 kB 22 weekly downloads
nmon_x86_64_centos6 2012-02-14 222.5 kB 4646 weekly downloads
nmon_x86_centos6 2012-02-14 194.6 kB 11 weekly downloads
nmon_x86_64_debian60 2012-02-14 217.2 kB 33 weekly downloads
nmon_x86_debian60 2012-02-14 185.2 kB 11 weekly downloads
nmon_x86_64_ubuntu1104 2012-02-14 285.4 kB 11 weekly downloads
nmon_x86_ubuntu1104 2012-02-14 243.8 kB 11 weekly downloads
nmon_x86_knoppix4 2012-02-14 188.7 kB 11 weekly downloads
nmon_x86_knoppix5 2012-02-14 188.7 kB 22 weekly downloads
nmon_x86_knoppix6 2012-02-14 185.2 kB 11 weekly downloads
nmon_x86_64_rhel45 2012-02-14 218.1 kB 33 weekly downloads
nmon_x86_rhel52 2012-02-14 184.3 kB 44 weekly downloads
nmon_x86_fedoracore4 2012-02-14 167.3 kB 11 weekly downloads
nmon_linux_more_14g.tar.gz 2012-02-14 2.2 MB 2323 weekly downloads
nmon_power_32_ubuntu1004 2011-07-25 250.5 kB 11 weekly downloads
nmon_linux_14g.tar.gz 2011-07-25 4.1 MB 5555 weekly downloads
nmon_power_64_rhel5 2011-07-25 276.9 kB 22 weekly downloads
nmon_linux_power_64 2011-07-25 276.9 kB 11 weekly downloads
nmon_power_32_sles11 2011-07-25 246.7 kB 11 weekly downloads
nmon_power_32_rhel5 2011-07-25 240.9 kB 11 weekly downloads
nmon_power_64_sles11 2011-07-25 280.6 kB 11 weekly downloads
nmon_x86_rhel5 2011-07-25 184.3 kB 44 weekly downloads
nmon_x86_64_rhel5 2011-07-25 220.3 kB 1616 weekly downloads
nmon_x86_64_rhel54 2011-07-25 220.3 kB 88 weekly downloads
nmon_x86_rhel54 2011-07-25 184.3 kB 11 weekly downloads
nmon_x86_64_rhel4 2011-07-25 218.1 kB 22 weekly downloads
nmon_linux_mainframe_64 2011-07-25 260.1 kB 11 weekly downloads
nmon_linux_mainframe_32 2011-07-25 196.3 kB 11 weekly downloads
nmon_mainframe_64_rhel5 2011-07-25 260.1 kB 11 weekly downloads
nmon_mainframe_64_rhel53 2011-07-25 260.1 kB 11 weekly downloads
nmon_mainframe_32_rhel53 2011-07-25 196.3 kB 11 weekly downloads
nmon_mainframe_32_rhel52 2011-07-25 196.3 kB 11 weekly downloads
nmon_mainframe_64_rhel52 2011-07-25 260.1 kB 11 weekly downloads
nmon_ia64_sles10 2011-07-25 372.1 kB 11 weekly downloads
nmon_x86_64_debian50 2011-07-25 232.7 kB 22 weekly downloads
nmon_linux_x86_64 2011-07-25 232.7 kB 3535 weekly downloads
nmon_x86_ubuntu1004 2011-07-25 209.7 kB 11 weekly downloads
nmon_x86_ubuntu910 2011-07-25 210.4 kB 11 weekly downloads
nmon_x86_ubuntu810 2011-07-25 206.0 kB 11 weekly downloads
nmon_x86_sles11 2011-07-25 190.1 kB 11 weekly downloads
nmon_x86_opensuse11 2011-07-25 212.5 kB 11 weekly downloads
nmon_x86_fedora15 2011-07-25 201.9 kB 11 weekly downloads
nmon_x86_fedora14 2011-07-25 202.7 kB 11 weekly downloads
nmon_x86_debian50 2011-07-25 188.7 kB 11 weekly downloads
nmon_linux_x86 2011-07-25 188.7 kB 33 weekly downloads
nmon_x86_64_ubuntu1004 2011-07-25 252.6 kB 11 weekly downloads
nmon_x86_64_ubuntu910 2011-07-25 253.2 kB 11 weekly downloads
nmon_x86_64_ubuntu810 2011-07-25 254.2 kB 11 weekly downloads
nmon_x86_64_sles11 2011-07-25 239.5 kB 11 weekly downloads
nmon_x86_64_opensuse11 2011-07-25 244.4 kB 11 weekly downloads
nmon_x86_64_fedora15 2011-07-25 227.0 kB 11 weekly downloads
nmon_x86_64_fedora14 2011-07-25 228.0 kB 11 weekly downloads
nmon_ia64_rhel4 2011-07-25 372.1 kB 11 weekly downloads
nmon_mainframe_64_rhel55 2011-07-25 260.1 kB 33 weekly downloads
nmon_mainframe_32_rhel55 2011-07-25 196.3 kB 11 weekly downloads
nmon_mainframe_32_rhel5 2011-07-25 196.3 kB 11 weekly downloads
nmon_linux_power_32 2011-07-25 116.0 kB 11 weekly downloads
nmon_power_rhel55_14g.zip 2011-06-04 98.3 kB 66 weekly downloads
nmon_power_sles11_14g.zip 2011-06-04 102.0 kB 11 weekly downloads
lmon14g.c 2011-06-04 188.4 kB 33 weekly downloads
lmon14f.c 2011-01-02 187.6 kB 11 weekly downloads
lmon14e.c 2010-12-14 187.6 kB 33 weekly downloads
lmon14d.c 2010-11-17 187.6 kB 33 weekly downloads
lmon14c.c 2010-11-17 187.6 kB 11 weekly downloads
lmon14a.c 2010-08-10 185.9 kB 22 weekly downloads
lmon13g.c 2010-03-18 160.4 kB 5555 weekly downloads
lmon13d.c 2010-02-23 159.3 kB 11 weekly downloads
lmon12f.c 2009-11-16 154.5 kB 11 weekly downloads
lmon12e.c 2009-11-16 152.2 kB 11 weekly downloads
lmon12d.zip 2009-09-20 40.2 kB 11 weekly downloads
lmon12d.c 2009-09-20 153.1 kB 11 weekly downloads
Documentation.txt 2009-09-20 262 Bytes 5757 weekly downloads
nweb README for version 24 1) Website move due to it be oddly dropped with no warning 2) Due to feedback chdir() was changed to chroot() This massively increases security as clever URL trickiery can never get a non-home directory file sent to the browser. 3) Please note this code is to illustrate the algorythm of a webserver in a minimum number of lines of code - it is not ment to be absolutely perfect C code. nweb README for version 23 1) Bug fixed - was duplicating errors in the nweb.log file - thanks to Kieran Grant for stopping this and pointing out the fix. 2) Added support for favicon.ico - if nothing elase this will stop annoying errors in the log file. Most browsers on first encountering a webpage also ask for this file. The name mean favourite icon - Wikipedia has more on this. It is a tiny Bit Map image (normally called .bmp and BMP editors can be used to create one - I used Windows Paint) I uses a very simple 16x16 pixels and 256 colour to keep the size and complexity down. To add support I added .ico file extension to the allowed extensions data structure and the sample favicon.ico file. This is then displyed by the browser at the little graphic next to the URL. The one I made looks like this withe blue background. +---+ |n | |Web| +---+ 3) As 1) removed a few lines, I managed to add 2) and still stay at 200 lines. The code: nweb23.c -- the source code version 23 client.c -- sample client end source code nweb executable files for: AIX 6.1 TL7 fnd AIX 7 TL1 POWER Ubuntu 12.4 for x86_64 Intel/AMD 64 bit Ubuntu 12.4 for x86_32 Intel/AMD 32 bit Fedora 17 Linux for x86_64 Intel/AMD 64 bit OpenSUSE 12.1 for x86_64 Intel/AMD 64 bit Red Hat RHEL 6.3 for x86_64 Intel/AMD 64 bit SUSE SLES 11 for x86_64 Intel/AMD 64 bit Debian Squeeze for ARM on Raspberry Pi Minimum test website index.html -- test very bascis web page nigel.jpg -- test image file favicon.ico -- the favourite icon bit map file ----------------- nweb README for version 22 The nweb download file includes: nweb24_README.txt -- this file This file contains lots of hints & tips on compiling and running the nweb code nweb22.c ======== The 22 is the version number. nweb stands for Nigel's Web server but I some times call it a nano web server (i.e. very small). This nweb is a web server that will respond to simple web browser requests for static files. This version is exactly 200 lines long. I started with a target 100 lines and it worked fine too but then added comments, file type checks, security checks, sensible directory checks and logging. To compile this you need a basic C compiler use: cc nweb22.c -o nweb If you want it to run faster you could include optimisation: cc -O2 nweb22.c -o nweb Then to run it as root for the test files: 1) Place the index.html file and nigel.jpg in to a sensible directory Note: not any system directories like / or /tmp A director in /home would be a good idea - below we use /home/nigel/web 2) Make these files readable chmod ugo+r /home/nigel/web 3) Decide the port number Port number 80 is the web server default and assumed by web browsers. you might have to be the root user to use that port number. If the machine is already running a web server then it will probably be using port 80 so you can't us 80. I test using port 8181 but you have to make up your mind. 4) Start the nweb server: /home/nigel/bin/nweb 80 /home/nigel/web or if using 8181 /home/nigel/bin/nweb 8181 /home/nigel/web If the program and files are all in /home/nigel/all You could use: cd /home/nigel/all rm -f nweb.log ./nweb 80 . ps -ef | grep nweb tail -f nweb.log See below for explanations for the rm, ps and tail 5) Note that any suitable files in the directory 2nd argument above could be served by the nmon web server - so don't have anything secret in that directory! 6) Use a browser to test it if using port 80 on a machine hostname of abc123.com browser to: http://abc123.com/index.html If using port 8181 http://abc123.com:8181/index.html 7) Running nweb as a regualr user You can run nweb as a regular user on some operating systems but not all. I find using sudo works on some: sudo /home/nigel/bin/nweb 80 /home/nigel/web If you try and the log file reports socect connections errors worth trying the 8181 port or higher numbers. This is because lower port numbers are reserved for root user use. 8) VERY IMPORTANT nweb will behave like a daemon process, so it disconnects from the users command shell, goes into the back ground, closes input and output I/O & protects itself from you logging off. It will look like it stopped, when it is in fact still running in the background - check with ps -ef | grep nweb Also note you will not see errors or warnings messages - they go in the log file. Look in the nweb.log file for problems starting up or browsers connecting and requesting pages with: cat nweb.log or: tail -f nweb.log I find it good to remove the nweb.log before I start nweb or it is easy to get confused with previous error messages in the log. 9) As nweb runs as a daemon process it will try to run forever and not conntected to your user or terminal session. Logging out will not effect it. To stop nweb you have to stop it by a KILL signal. Find the nweb process with: ps -ef | grep nweb Then use: kill -9 PID to stop the nweb process. 10) nweb.log Log file - what to look for Good example Here is an edited down sample nweb.log file. Note the first line = "starting" looks good as there is no following error. ---- INFO: nweb starting:8181:8913126 INFO: request:GET /index.html HTTP/1.1 [[1KB of deleted request stuff here]]:2 INFO: SEND:index.html:2 INFO: Header:HTTP/1.1 200 OK Server: nweb/21.0 Content-Length: 239 Connection: close Content-Type: text/html INFO: request:GET /nigel.jpg HTTP/1.1 [[1KB of deleted request stuff here]]:3 INFO: SEND:nigel.jpg:3 INFO: Header:HTTP/1.1 200 OK Server: nweb/21.0 Content-Length: 10184 Connection: close Content-Type: image/jpg ---- Bad example A failure to start due to the port number is not aallowed or in use looks like: INFO: nweb starting:80:8323296 ERROR: system call:bind Errno=13 exiting pid=8323296 ---- client.c ======== This client.c program is designed to fake being a web browser. It sends the expected requests to the web server over a network socket connection and displays the results as text rather than graphically displaying the results. In the code you will have to change the two lines as below to match your web server or nweb server. /* YOU WILL HAVE TO CHANGE THESE TWO LINES TO MATCH YOUR CONFIG */ #define PORT 8181 /* Port number as an integer - web server default is 80 */ #define IP_ADDRESS "192.168.0.8" /* IP Address as a string */ The default is to request the /index.html from the web server. If you want to request another file then change the GET line as below: char *command = "GET /index.html HTTP/1.0 \r\n\r\n" ; To, for example: char *command = "GET /nigel.jpg HTTP/1.0 \r\n\r\n" ; Then compile the program with: cc client.c -o client I save the output in to a file as putting a non-test file like .jpg to the terminal screen can cause chaos: client >output Then edit the output file: vi output In real life, the interaction of web browser and web server can be much more complex. 1) The web browser can tell the web server about its name, version and capabilities. 2) The web server can send complex file types line JavaScript or Java programs or other active components. 3) They can maintain a longer connection over the socket for efficiency. 4) Below is an example of my Firefox brower requesting an index.html file. I have added newline characters to make it readable - it is 1300 bytes long! I have no idea what most of it is about. You will have to read the The World Wide Web Consortium (W3C) at http://www.w3.org for all the details. GET /index.html HTTP/1.1**Host: myserver.home.com:80**User-Agent: Mozilla/5.0 (W indows; U; Windows NT 5.1; en-GB; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28 (.NET CLR 3.5.30729)**Ac cept: image/png,image/*;q=0.8,*/*;q=0.5**Accept-Language: en-gb,en;q=0.5**Accept-Encoding: gzip,defla te**Accept-Charset: ISO-8859-1,utf-8; q=0.7,*;q=0.7**Keep-Alive: 115**Connection: keep-alive**Referer: http://myserver.uk.home.com:8181/index.html**Cookie: __utma=101107545.1790272076.1316019590.13289002 55.1328908680.164; __utmz=101107545.1328566199.157.46.utmcsr=t.co|utmccn=(referral)|utmcmd=referral| u tmcct=/iTJx4DO1; UnicaNIODID=ZBr8gm79vIG-XKeoGGb; W3SSO_ACCESS=abc.home.com; ISP=70fdfc95 d93011d783e4de784ea97766-70fdfc95d93011d783e4de784ea97766-f67749a8b899e8ceed7e940b8c4bf189; Prof ile=2000121913394303111032836125|EN|866|866.BDF|en-GB; __unam=693fb60-1337f162b72-11770d11-5; WLS_ intra_USERID=nigel@hotmail.com; ipcInfo=cc%3Duk%3Blc%3Den%3Bac%3Dall; iwm1p=214617669; bprememberme=nigel@ hotmail.com; EPSPROFILE=EE2355DFE16AE020BE6C62FCB6BF5602; DWPERM=Xa.2/Xb.Xzso3-U35t8RWKvqBreGaQMgsP_RG Fl1124oIt-L-OPJIdSautkBN0D4NUp9JLlpUqPqB6CWOo-pgrJwhxNvvSfPAajgetaA2MOYwHfQPXPTRG9zwOMMR57EHQtXhOy5Om yzanyZthvVClm6uxvbwh0isEQ2Mm_9g2l7NjcA3RJdjuLaB3qlljOmyVuhDjBkgdNEb3PgYcCpbiu1FUzXrhPalhgsbAj7NBkaY88 Yyg/Xc./Xd./Xf./Xg.1696801 I hope this has been instructive, thanks, Nigel Griffiths
Source: nweb24_README.txt, updated 2016-07-23

Thanks for helping keep SourceForge clean.

Screenshot instructions:
Windows
Mac
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies
X

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks