Re: Which mailing list?
I'm running FreeBSD 7.1-PRERELEASE and I want to keep track on when it's updated so that I can upgrade. I'm on the freebsd-announce list but I'm not sure if it's the right list to follow for this purpose. /Leslie you will be surprised how often the code is getting modified and becomes instantly available for updating over cvs and svn routines. sending notifications to [EMAIL PROTECTED] in my opinion would be nice but speaking in terms of data management very inappropriate since it is already there available for you in updated applications change log as well as planned in the todo list bundled with the source code. if there is something missing that only you could have expected i think it doesnt worth a while discussing it with someone who isnt actually doing it ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: shipping
I have 18 students that are going to Belize City, Belize in January to volunteer in the schools. We have been going there for the past few years. We have collected 24 computers and a few printers that we want to ship from western New York to Belize in order to set up computer labs in the two schools that we work in. Do you know of any resources or do you have resources that could help us get the computers shipped to them. I contacted a few shipping companies and the price quotes that I was getting were beyond what we could even consider. We would appreciate any help, assistance or directions that you could provide. 1. 24 computer cases with a few printers = 2 big carton boxes 2. 24 CRT (old and big) computer screens = 4 big carton boxes 3. Packaging - boxes http://www.uline.com/Product/ProductDetail.aspx?model=S-4480ref=412 [$87.60] - pallets http://www.uline.com/BL_8202/Economy-Plastic-Pallets [$198.00] 4. 1 dollar insurance [$30.00] 5. Residental pick-up service from 14063 Fredonia [$409] SUB-TOTAL: $2991 ($1790 lcd screens) in 30 days (may become 60-90 days) $0 import charge (receiving side pays) TOTAL: $2991 (screws included) ALTERNATIVES: Find 24 students who want to volunteer in central america, pay for food, accomodation. Must own and willing to sacrifice a laptop in the name of charity. Please. Nash http://iqgloballogistics.com/estimate/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Server - Linux Compat
When I was young, many many moons ago, and I installed FreeBSD 4.4 for the first time, I enabled linux compatability ... Each build since, I have enabled it ... So not I am at the point of asking myself why? All I run is webservers and namesrvers, you know, Bind, Apache, Mysql, vmpop3d, PHP, Exim and shh...not to mention a few utils, ipa, ipfw etc. Does anyone have any compelling reason I should continue to enable linux compatability? Are there any pitfalls (Security, Performance) in doing so? -Grant if there is no warning in the comments i think its harmless nobody knows when you are going to need a linux binary to run lsof maybe? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Uplading file via Lighttpd - system hangs
It looks like the freebsd-sendfile is broken. I had the same problems the last days and now I know the source of the problem. Have a look on this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=125592 Yeah, I looked into this, but I do not see why this has anything to do with sendfile in FreeBSD. When you upload a file, you (the server) don't *send* anything, you *read*, so sendfile(2) shouldn't even come into play. Why this magically starts working when changing the write backend, is a mystery, but most likely the answer lies in PHP. If you can, use a different upload script for testing, one that is not done via PHP, but plain CGI. There should be some available on the net. -- Mel im in a serious doubt that a write() family function could have possibly stop something from responding when login is still accepting read() buffer please dont tell me that a userland process can possibly halt everything unless there is a serious harware malfunction. i think this particular case needs solid debugging and investigation. nash ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Segmentation fault when free
can someone please explain to me what happens to the allocated memory called within a function assigned to its local pointer after this function ends Ok - let's see if I get this right: - the allocated memory - called within a function - assigned to a local pointer Any malloc'ed memory is application global accessible. Assigning a pointer to a variable doesn't allocate memory (the compiler and runtime libraries already setup storage for the variable, at declaration time). So, I have no idea what you mean with the called within a function part. -- Mel thanks for making it even more clear to me. actually what i meant was this: void function(void){ char *p; p = malloc(1); } int main(void){ while (1){ function(); /* in the end of this function function() * the memory is still allocated * even when the only pointer who knows its address * does not longer exist * which is why we have to free() the memory * during the application runtime * to avoid it from growing to ridiculous size */ } } but even if you kill -SEGV `pgrep this` (Segmentation fault (core dumped) the memory is getting freed anyway (presumably by the glorious kernel). which you can see dynamicly by typing top in the console. in other words segmentation fault when free() is not a scary thing here. it is a matter of style and the way to find own errors. or maybe reading warnings if you compile with the flags -ansi -pedantic oh and by the way: char * function(void) { char buffer[100]; return buffer; } that is an easier approach because you get warned on passing an address to a local variable ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Audio Production
i have experienced a delay when i was recording voice and sort of laying it on a track. but removing a few miliseconds off the beginning didnt make a big trouble for me and thats when i have discovered this phenomenom but thought it was rather because my sound card is old. is this any close to something that you mean? it is related, but what you mentiioned is a slightly different area in computer audio than what i mean with respect to kernels. An old card is likely to produce greater delays under any setup, but that is more a factor of its capabilities and quality of its parts than just purely because it is old. If you were using JACK (linux) or ASIO (windows) the delay could be minimized to some extent, but no miracles there, and that is about the most you can do. i'm only at entry level on audio engineering, but in a nutshell here is an overview to explain your delay, (latency) and my kernel related question. first of all, computers are always prone to latencies, or delays, because of the time it takes the cpu to process the audio data, read/write from disks, convert between audio signals and digital data, etc, etc. All take up cycles and valuable milliseconds. when playing normal music like mp3s in itunes and such, you wouldn't notice any delay because the data is simply read from disk and output thru speackers as they come, though technically there would be a short period between the time the data was read off disk and then heard out the speakers. in audio production that slight delay, or latency, is everything, especially when you have multi-track recording and syncing with external gear. (latencies range from under 10ms to over 100ms) Latency would be more noticeable, say when recording, and would sound like an echo if you were talking into a mic and listening thru headphones or speakers, on an average setup at least. roughly becase of the time needed to process the signal. Also, If you were to use a midi controller/keyboard connected via midi to play a software instrument, you would notice a delay between the time you hit a key on the keyboard and when you actually heard the sound. The key press transmittes midi data to the software instrument, the software triggers the desired sound immediately, but there is that slight delay to create the sound and push it out the speakers. Audio interfaces can have a latency around 5ms, which is very good, yet may still be faintly noticable, and that also depends on the power of the pc and the actual load ( number of tracks, effects, instruments playing), and latency is still a *phenomenon* and something you *have to live with* in computer audio production; as opposed to hardware gear like samplers, drum machines, synths, etc. and short of buying a $10K protools soundcard. a _hobbyist_ audio interface can be decent with latencies under 20ms. In application, multi-track recording programa like Cubase, Logic, Ardour, Ableton, Cakewalk etc, do fairly well (with a good setup) when all material is confined within the computer and not communicating with the outside world. When you are recording say a vocalist, chances are you're playing back all the other tracks (drums, bass, etc) at the same time for the vocalist to listen and sing to, plus possible playing back the vocalist with added effects likde reverb; a mixture of delays going in, and the same amount going out. Simillarly, if you had one or more audio tracks, (playing back audio recordings or samples off hard disk), and had any midi track there being sent to external hardware like a drum machine ,to play drum parts from there, or a hardware synth playing a bass or pad track, then the practice is to compensate for latency by having the midi track play or transmit with a 5ms delay, to give the computer that little time to process the audio, and so the whole mix would sound in sync (since midi to external gear to sound heard would be instant). 5ms for a sytem with 5ms latency, 20ms would require 20, 100 would require 100, etc. There is a lot more to computer audio production, but basically the efforts are always, or mainly, to reduce that latency as much as possible. Better audio interfaces not only have better components and AD/DA converters, they are also intented to take as much load off the cpu as possible, and handle what they can themselves. Also, the more power a computer has never eliminates latency or delay completely, it just generally means you can play more tracks at once and use low latencies more comfortable without dropouts, glitches, clicks and pops. ( Latency is more or less adjustable by configuring the audio buffer size and the number of said buffers to find the best setting on your system. That is, you stop at the lowest setting that works without glitches and gaps in the
Re: looking for a disk partition (slice) editor
Ah, but I do. My current problem is a case in point. I have a drive that I'm not currently using, but that has stuff on it I don't want to lose (e.g., the images of another system). I want to set it up for use. I do not want to shut everything down just so that I can set it up for use. Right now the nine or ten partitions on it include three or four (I don't remember right now) FreeBSD slices. (The FreeBSD slices are further subdivided into FreeBSD partitions, but that is irrelevant because I intend to wipe out their contents anyway.) With the exception of the partitions holding backup images of another system, nothing is arranged on that drive the way I want it arranged now, so I need to be able to rearrange it without disturbing everything else currently running on the system. There are other situations, too, that arise from time to time that I would like to be able to deal with and not have to shut down FreeBSD to do that. Anyway, back to my original question for anyone who can help: does anyone know of a disk partition editor that will allow me to manipulate the logical partitions, as well as the primary partitions, and that runs under FreeBSD? Perhaps, if there's some *good* reason why we *shouldn't* want to mess with slices while the system is running, someone can explain why. For instance -- even if I only have one HDD in the system -- we could assume a setup like this: slice / partition /etc/ partition /usr/ partition /var/ partition /usr/home/ slice C:/ slice for MS Windows primary partition Why, for the love of Gob and all that's Wholly, shouldn't I be able to wipe out my MS Windows primary partition, create a BSD slice, and use the extra space for /usr/local/share/ if I suddenly find I need the space? I, too, would like to know if a partition/slice tool such as what Scott seeks exists. In fact, it would be nice to discover such a tool that not only handles partitions/slices, but also logical/BSD partitions. -- im not sure but i think i have managed to shrink something with this http://www.gnu.org/software/parted/download.shtml please do read the documentation and disclaimer beforehand ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: xorg gfx card: amd64+xvideo+decent 2d performance
I've been trying to find anything that fits the bill. My only requirements are: * That it works with amd64 (on FreeBSD, obviously). * That it supports Xvideo. * That it has decent 2D performance. * That it works with wide screen resolutions (so I guess basically modern hardware + modern driver). Unfortunately, the 'nv' driver has significant performance issues so nVidia cards are out. I love what ATI is doing with the radeonhd driver, but no Xvideo yet. what i really want to tell u is that a modern x server runs quiet smooth with x1650 series. I'm experiencing a little slow down when opening windows but when it draws it draws fast. Videos? Well played! it feels like almost the edge between the good and the evil. it is not so expensive and i think it should be available used, agp thats what u want! p.s. slow drivers? seriously? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Segmentation fault when free
I checked again, up to the this problematic free(), functions return newly allocated strings properly: char *f( ) { char *newstr = NULL; : newstr = (char *) malloc(p - sp + 1); if (newstr == NULL) return NULL; : return newstr; } Can a yet not executed wrong free() elsewhere cause a problem of this nature? Best regards Unga i'm sorry i just dont really cant see a problem with free() can you please explain it in a more simple way? it really starts to exceed my screen height #include stdio.h #include stdlib.h #include string.h char *a; char *b; char *c; char *abd = Hi, im a string 1\0; char *bbd = Hey, im a string 2\0; char *f(char *d){ char *newstr = NULL; char *p, *sp; sp = malloc(strlen (d)); memcpy(sp, d, strlen(d)); p = strchr(sp, 44); newstr = (char *) malloc(p - sp + 1); if (newstr == NULL){ newstr = malloc(1); *newstr = '\0'; return newstr; /* you really dont want to return NULL to strlen() */ } *p = '\0'; memcpy(newstr, sp, sizeof(char) * (p - sp)); return newstr; } char *f1(void){ char *ab; ab = f(abd); printf(f1(): %s\n, ab); return ab; } char *f2(void){ char *bb; bb = f(bbd); printf(f2(): %s\n, bb); return bb; } int main(void) { while (1) { a = f1(); /* malloc and send a string */ b = f2(); /* malloc and send a string */ c = (char *) malloc(strlen(a) + strlen(b) + 1); c[0] = '\0'; strcat(c, a); strcat(c, b); printf(main(): %s\n, c); free(a); free(b); free(c); } } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Segmentation fault when free
actually what i think someone should really tell you is that maybe you should take a look at the free() manual which is available here http://www.freebsd.org/cgi/man.cgi?query=freeapropos=0sektion=0manpath=FreeBSD+7.0-RELEASEformat=html or you can try to run `man free` in the console. there is a good explanation on diagnostic and debugging malloc related problems can someone please explain to me what happens to the allocated memory called within a function assigned to its local pointer after this function ends ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Audio Production
m cassar schrieb: Does anyone here use freebsd for serious audio/video production work? or know if there is some kind of community? Didn't try it, but http://ardour.org/ looks like what you are looking for. See http://www.freshports.org/audio/ardour/ -- Timm thanks but this wasn't exactly what i was asking about in the original post. ardour *is* in ports, as with most other good open-source audio applications ( and propbably the best program out there - though i'm new) but what i was looking for is related to custom/optimizted kernels either known as low-latency or real-time kernels in linux; to help reduce recording latencies, audio dropouts, etc. like studio 64 rt-kernel on ubuntu, planet ccrma on fedora. what i was trying to find out is whether there is such projects on freebsd, or more importantly, if freebsd kernel had the potential to be similarly optimized. (not that i myself have any expertise, [hence my question]) on the other hand, if you are interested in audio programs, ardour is good, hydrogen is good and fun. not to mention easy. i have experienced a delay when i was recording voice and sort of laying it on a track. but removing a few miliseconds off the beginning didnt make a big trouble for me and thats when i have discovered this phenomenom but thought it was rather because my sound card is old. is this any close to something that you mean? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: brain-fault: core dump.
A few days ago I dl'd the OOo-2.4.1 and now need some clues how to install the tarball. I tried #pkg_add -rv [OOo-tarball] it failed. ...So is there some quick fix? tia, gary http://view.samurajdata.se/ http://porting.openoffice.org/freebsd/#howto ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: buildworld error with 7.1 BETA
make -j 4 buildworld gives after a while the following gzip -cn /usr/src/usr.sbin/zic/zdump/../zdump.8 zdump.8.gz cc -O2 -fno-strict-aliasing -pipe -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS -DHAVE_LONG_DOUBLE -DTZDIR=\/usr/share/zoneinfo\ -Demkdir=mkdir -I/usr/src/usr.sbin/zic/zdump/.. -I/usr/src/usr.sbin/zic/zdump/../../../lib/libc/stdtime -o zdump zdump.o ialloc.o scheck.o === usr.sbin/zzz (all) gzip -cn /usr/src/usr.sbin/zzz/zzz.8 zzz.8.gz 1 error *** Error code 2 1 error *** Error code 2 1 error Suggestions? /Leslie i could almost see this coming. seems pretty much like hardware. just try to run make one more time. not cleaning anything just type the same make command after fail without extra activity. if it fails again check if you have filled your disks up and you might want to `ls /usr/src/usr.sbin/zzz/zzz.8` to see if its really there ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: buildworld error with 7.1 BETA
just try to run make one more time. not cleaning anything just type the same make command after fail without extra activity. if it fails again check if you have filled your disks up and you might want to `ls /usr/src/usr.sbin/zzz/zzz.8` to see if its really there It fails again! Disks are not full and the file is there. no its less likely to be a hardware error. there are cases when it breaks into an error and then after you restart the whole procedure it goes fine and breaks somewhere closer to finish. i think you can try to update the source code once again. maybe the fix is coming. or you can try to run make in /usr/src/usr.sbin/zzz/ to make sure there is no errors or you can try to run make in /usr/src/etc/ which should be the next bus stop in the building world proccess. hope someone else knows (probably from [EMAIL PROTECTED]) nash original message: -- make -j 4 buildworld gives after a while the following gzip -cn /usr/src/usr.sbin/zic/zdump/../zdump.8 zdump.8.gz cc -O2 -fno-strict-aliasing -pipe -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS -DHAVE_LONG_DOUBLE -DTZDIR=\/usr/share/zoneinfo\ -Demkdir=mkdir -I/usr/src/usr.sbin/zic/zdump/.. -I/usr/src/usr.sbin/zic/zdump/../../../lib/libc/stdtime -o zdump zdump.o ialloc.o scheck.o === usr.sbin/zzz (all) gzip -cn /usr/src/usr.sbin/zzz/zzz.8 zzz.8.gz 1 error *** Error code 2 1 error *** Error code 2 1 error Suggestions? /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Segmentation fault when free
--- On Fri, 9/19/08, Unga [EMAIL PROTECTED] wrote: From: Unga [EMAIL PROTECTED] Subject: Segmentation fault when free To: freebsd-questions@freebsd.org Date: Friday, September 19, 2008, 9:17 AM Hi all I'm running FreeBSD 7 on i386. I have a C program compiled with gcc 4.2.1 20070719. Logically my program is: char *a; char *b; char *c; while (cond) { a = f1(); /* malloc() and send a string */ b = f2(); /* malloc() and send a string */ c = (char *) malloc(strlen(a) + strlen(b) + 1); c[0] = '\0'; strcat(c, a); strcat(c, b); free(a); free(b); } When it executes free(b), my program exits with Segmentation fault: 11. The free(a) executes well. The problem is with free(b). Even swap free(b) first and free(a) next, it still crashes at free(b). If I comment out free() lines, further down the program, first few characters of one string get dropped when executes a completely unrelated line. How could I bit more narrow down the problem? Many thanks in advance. Kind regards Unga im affraid i didnt implement your request correctly but the program below did not crash my server under root in 60 seconds #include stdio.h #include stdlib.h #include string.h char *a; char *b; char *c; char *abd = Hi, im a string 1\0; char *bbd = Hey, im a string 2\0; char *f1(void){ char *ab; ab = malloc(strlen (abd)); memcpy(ab, abd, strlen(abd)); printf(f1(): %s\n, ab); return ab; } char *f2(void){ char *bb; bb = malloc(strlen (bbd)); memcpy(bb, bbd, strlen(bbd)); printf(f1(): %s\n, bb); return bb; } int main(void) { while (1) { a = f1(); /* malloc() and send a string */ b = f2(); /* malloc() and send a string */ c = (char *) malloc(strlen(a) + strlen(b) + 1); c[0] = '\0'; strcat(c, a); strcat(c, b); free(a); free(b); } } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: two nics each with dsl and the third for LAN and am not able to get any milage out of one dsl.
I just inherited a second dsl line and don't have a server to connect it too so I have it connected to a third nic that I have in the Dell that has the first dsl connection and the LAN. I have been running pf on the two nics with nat and squid in transparent proxy mode without any issues. My problem is that I haven't come up with a way to really take advantage of the new dsl to reduce traffic on the first. I'm not even dreaming of load balancing just sharing some of the load. I had thought about trying to get squid to use the second connection but my feeble attempts at redirecting it haven't made much sense nor have they worked. Most of our traffic is outgoing rather than incoming, if that helps. I'm sure someone else must have a similar setup and are doing better than I. Anything is better than nothing. Basically, I think and hope that I am just drowning in a glass of water. Thanks for any suggestions. ed it all well depends on how many wires you need to make your boss happy. if you feel like u can be replaced with a router maybe you should start making half-way websites rather than doing 2 way internet connections. but there is a shoe for every foot. i actually admire the creativity of the pf coders. i hope you have at least 2 gateways. please don't drown. http://www.openbsd.org/faq/pf/pools.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NTP on 7.1 BETA amd64 odd behaviour
- If I comment out the ntpd_flags=-c /etc/ntp.conf -p /var/run/ntpd.pid line. ntp starts without any error. Should I accept this or is something wrong? Thanks /Leslie Looks like it wants only one parameter as a flag in rc.conf.local You can try to change it to just ntpd_flags=-p /var/run/ntpd.pid If you look through the code in /etc/rc.d/ntpd file it might become more clear to you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Vinum for hard disk drive balanced load sharing configuration example RAID-5
Dear Listmates, Is it possible to configure vinum for balancing the mileage between two and three non-volatile storage devices of a different size I have read the manual thoroughly and noticed that the are certain restrictions applied to the hard drive sizes in the proposed RAID5 data handling implementation A fact of use of the plexes as structural entinties make me wonder why would the size of an actual hard drive make a difference to the actual i/o layer when plexes are even and the subdisks sizes are even why not just i/o consequently Can someone please provide me with a working example of a RAID5 configuration Sincerely Nash ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NTP on 7.1 BETA amd64 odd behaviour
thanks for the new /etc/rc.d/ntpd ... rc_flags=-c ${ntpd_config} ${ntpd_flags} ... what we can learn from it is that on 7.1 BETA your rc.conf.local file should look like this ntpd_config=/etc/ntpd.conf ntpd_flags=-p /var/run/ntpd.pid hope that explains Nash ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Firefox won't start
--- On Thu, 9/18/08, Joe Tseng [EMAIL PROTECTED] wrote: From: Joe Tseng [EMAIL PROTECTED] Subject: Firefox won't start To: freebsd-questions@freebsd.org Date: Thursday, September 18, 2008, 12:21 PM I recently did a ports update and after a bit of effort I got firefox3 to compile with no errors. But now when I either select Firefox from the menu or start it from a terminal window nothing happens. Firefox does not start and there's no indication of any problems. When I use ps to see if it's hung I see nothing. Ideas? tia, - Joe i just cant remember if this one is a linux port. in that case you'd need to kldload linux and try again ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: IPFW: Blocking me out. How to debug?
I don't think that below shall ever replace this: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html --- #1. i suggest you should really consider moving check-state earlier so legitimate packets get in asap. #2. its never too late to start using tables #/sbin/ipfw table 1 flush #/sbin/ipfw table 1 add 0.0.0.0/8 #/sbin/ipfw table 1 add 1.0.0.0/8 #/sbin/ipfw table 1 add 2.0.0.0/8 #/sbin/ipfw table 1 add 10.0.0.0/8 #/sbin/ipfw table 1 add 127.0.0.0/8 #/sbin/ipfw table 1 add 169.254.0.0/16 #/sbin/ipfw table 1 add 192.0.2.0/24 #/sbin/ipfw table 1 add 192.168.0.0/16 #/sbin/ipfw table 1 add 172.16.0.0/12 #/sbin/ipfw table 1 add 192.88.99.0/24 #/sbin/ipfw table 1 add 198.18.0.0/15 #/sbin/ipfw table 1 add 224.0.0.0/3 #/sbin/ipfw table 1 add 240.0.0.0/4 add allow all from any to any via lo0 #3. all the hosts above are listed in a single rule: add deny ip from any to any not antispoof in add check-state add deny log all from table\(1\) to any in add deny log all from any to table\(1\) out #no comments below add allow tcp from any to me in established add allow tcp from me to any out established add deny log ip from any to any frag add count icmp from any to any icmptypes 8 in add allow icmp from any to any icmptypes 0,8,3,11 add allow udp from any to any 33434-34458 in add allow udp from any 33434-34458 to any out add allow udp from me to any 53 out keep-state add allow udp from any to me 53 in keep-state add allow tcp from any to me ssh setup add allow tcp from me to any ssh setup add allow tcp from any to me http setup add allow tcp from me to any http setup add allow tcp from any to me https setup add allow tcp from me to any https setup add allow tcp from any to me dst-port 8443 in setup add allow tcp from any to me pop3 in setup add allow tcp from any to me pop3s in setup add allow tcp from any to me smtp in setup add allow tcp from me to any smtp out setup add allow tcp from any to me smtps in setup add allow tcp from me to any smtps out setup add allow tcp from any to me imap in setup add allow tcp from any to me imaps in setup add allow tcp from any to me ftp in setup add allow tcp from me to any ftp out setup add allow tcp from any to me ftp\-data in setup add allow tcp from any ftp\-data to me setup out add allow tcp from any to me 49152-65535 in setup add allow tcp from any to me ftps in setup add allow tcp from me to any ftps out setup add allow udp from me ntp to 128.252.19.1 ntp out add allow udp from 128.252.19.1 ntp to me ntp in add allow tcp from me to any out setup uid root add allow tcp from me to 64.131.90.31 dst-port 5224 out setup add deny log udp from any to me in add deny log udp from any to me out add deny log udp from me to any in add deny log udp from me to any out add deny log tcp from any to me in add deny log tcp from any to me out add deny log tcp from me to any in add deny log tcp from me to any out add deny log all from any to any Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Resolution too high with 7-RC1, nVidia, xorg
Dear Xn Nooby, Im not sure if there is such a tool to edit xorg.conf file and limit the maximum resolution. In gnome desktop there is a graphical tool to switch resolution (System - Preferences - Screen Resolution) To make things obvious you will have to take a look at your xorg.conf file Please do change dir to its parent folder (cd /etx/X11/) and run cat xorg.conf | tr -s \n | grep -v # that should make your xorg.conf look simple and clear. There is a sample output below. It is a working xorg.conf Take a look at the section Screen It has Identifier, Device, Monitor, DefaultDepth options and 3 Subsections named Display for each depth where the screen resolution modes are listed: 1024 x 7 6 8 - 800 x 600 640x480 Hint: One of the following key sequence switches modes on a running server. CTRL+ALT+KP_- or CTRL+ALT+KP_+ KP_-, KP_+ (those are keypad minus or keypad plus, or gray -/+) Sincerely, Nash Section Module SubSection extmod EndSubSection Loadtype1 Loadfreetype EndSection Section Files RgbPath /usr/X11R6/lib/X11/rgb FontPath /usr/X11R6/lib/X11/fonts/misc/ FontPath /usr/X11R6/lib/X11/fonts/TTF/ FontPath /usr/X11R6/lib/X11/fonts/Type1/ FontPath /usr/X11R6/lib/X11/fonts/75dpi/ FontPath /usr/X11R6/lib/X11/fonts/100dpi/ FontPath /usr/X11R6/lib/X11/fonts/local/ EndSection Section ServerFlags Option AllowMouseOpenFail False EndSection Section InputDevice Identifier Keyboard1 Driver kbd Option AutoRepeat 500 30 Option XkbRules xorg Option XkbModel pc105 Option XkbLayout us EndSection Section InputDevice Identifier Mouse1 Driver mouse Option Device /dev/ums1 Option ZAxisMapping 4 5 6 7 EndSection Section Monitor Identifier Philips105B HorizSync 31.5 - 57.0 VertRefresh 50-100 EndSection Section Device Identifier Standard VGA VendorName Unknown BoardName Unknown Driver vga EndSection Section Device Identifier S3G IGP PRO Driver vesa EndSection Section Screen Identifier Screen 1 Device S3G IGP PRO Monitor Philips105B DefaultDepth 24 Subsection Display Depth 8 Modes 1024x768 800x600 640x480 ViewPort0 0 EndSubsection Subsection Display Depth 16 Modes 1024x768 800x600 640x480 ViewPort0 0 EndSubsection Subsection Display Depth 24 Modes 1024x768 800x600 640x480 ViewPort0 0 EndSubsection EndSection Section ServerLayout Identifier Simple Layout Screen Screen 1 InputDevice Mouse1 CorePointer InputDevice Keyboard1 CoreKeyboard EndSection - Original Message From: Xn Nooby [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Tuesday, January 1, 2008 2:01:47 PM Subject: Resolution too high with 7-RC1, nVidia, xorg I am having trouble getting X to use a screen resolution that is less than the maximum. When I edit my xorg.conf to add a DefaultDepth and a Mode of 1024x768, it still comes up at 1280x1024. I did not create any modeline entries yet, since I'm not sure how to do that. My GUI (icewm) works, but browsing the web creates enormous eye-strain from the high-resolution letters. My hardware is a Dell Inspiron 530 Desktop with an nVidia Card. It comes with SATA CD's, so I have to install with FreeBSD 7-RC1. I started by running xorg -configure, and used the xorg.conf that it generated. I looked at /var/log/Xorg.0.log, and it had many entries from probing my hardware. It appears there is some kind of dynamic configuration going on, but I know its using the xorg.conf, because it got an error when I changed the adapter entry from nv to vga. I actually had a similar problem on Ubuntu, and they had some xorg-reconfigure program that would let you use less than maximum values. I was wondering if FreeBSD had something similar. The DefaultDepth 24 and Modes 1024x786 entries are from the online FreeBSD Handbook, I believe I followed the Handbook instructions properly. Am I missing something obvious? From using Linux, I was expecting the Modes values to work. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]