Re: reviving games/freebsd-games
On Mon, Oct 27, 2008 at 08:53:46PM +0100, clemens fischer wrote: > Some of the programs in games/freebsd-games, notably hack and larn, have > the following problem: Given the declarations: > > char *scrollname[] = { char *potionname[] = { > "\0enchant armor", "\0sleep", > "\0enchant weapon","\0healing", > ...... > "\0 " "\0 " >}; }; > > (in larn/data.c) the code continues to flag the availability of some > scroll or potion by writing into the first byte of the strings in these > arrays: > > for (i=0; i for (i=0; i > This leads to SIGSEGV crashes. I think this came about with the gcc-4xx > series of our compiler, but I'm not really sure. I verified that > scrollname and potionname reside in the writable .data segment. The > segv is reproducable. Does anybody know what is wrong with this code? > I assume i could arrange for the flagging to be done in a separate data > structure, but since the programs worked for years this way, I think > there should be an easier way. > > -c The DragonflyBSD games have many improvements/bugfixes ... I already ported it some time ago, I just need to finish and wrap up ... I'll do it this weekend. -- Martin Tournoij [EMAIL PROTECTED] http://www.daemonforums.org QOTD: Q: Why was Stonehenge abandoned? A: It wasn't IBM compatible. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: jail stop extracting iso file
On Sun, Aug 31, 2008 at 12:08:31AM +0300, tethys ocean wrote: > Hi all > > In server jail and squid is running on it as lots of another packet. i want > to extract iso image in this server. But i havent do it. > > #mdconfig -a -t vnode -f big_bcbcv.iso > #mdconfig: open(/dev/mdctl): No such file or directory > > #ls -l /dev/md* > #ls -ls /dev/mdctl > ls: /dev/mdctl: No such file or directory > > > i am not familiar with jail. only i can extract my iso file. İ suppose that > jail stop me, jail blocking me for access some source > > > is it true? > > 1-how can extract this iso file > 2-is jail stop me? or any other trouble about my mdctl? You can use tar to extract iso images, i.e.: # tar xvf image.iso You can also use mdconfig, but you must add a devfs rule to add md devices, i.e.: add path 'md*' mode 0660 See devfs(8) and devfs.rules(5) -- Martin Tournoij [EMAIL PROTECTED] http://www.daemonforums.org QOTD: Beware of a tall blond man with one black shoe. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Still, no-joy with kdm......
On Mon, Aug 18, 2008 at 04:43:23PM -0700, Gary Kline wrote: > > Guys, > > Im looking at the kdmrc file but don't see anything wrong. > Any ideas where to llook next? > > gary > > PS: what is the startup for exec'ing gnome?? I can't see anything wrong with your kdmrc file either ... In fact, I can't see your kdmrc file at all ... You should really post more information, at the very least: o What exactly you are trying to accomplish. o Your kdmrc file. o What exactly isn't working. o The error message, if any (full, copied exactly). o What you have already tried to solve the problem. o The version of software (FreeBSD, KDM, KDE, etc.). -- Martin Tournoij [EMAIL PROTECTED] http://www.daemonforums.org QOTD: "The jig's up, Elman." "Which jig?" -- Jeff Elman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Add CONFIGURE_ARGS option for port in make.conf
On Thu, Aug 07, 2008 at 10:04:23AM +0200, Matthias Kellermann wrote: > Hi list, > > I want to compile a port with an option that is not controllable through > the FreeBSD Makefile or with make config. > > The specific port is lang/php4 and the option I want to add is > --with-mime-magic (I know, php4 is old and not supported after 8.8.08 > and --with-mime-magic is deprecated, but thats another story...). > > So I added an option to make.conf(5): > > .if ${.CURDIR:M*/lang/php4} > CONFIGURE_ARGS+=--with-mime-magic > .endif > > Unfortonately, this does not work. > > When I add this option in the Makefile it works. The relevant part looks > like this: > > CONFIGURE_ARGS= --enable-versioning \ > --with-mime-magic \ > --enable-memory-limit \ > --with-layout=GNU \ > --with-config-file-scan-dir=${PREFIX}/etc/php \ > --disable-all \ > --program-prefix="" > > Any ideas whats wrong here? > > Regards, > Matthias /etc/make.conf is read first, from make(1): First of all, the initial list of specifications will be read from the system makefile, sys.mk, unless inhibited with the -r option. The standard sys.mk as shipped with FreeBSD also handles make.conf(5) So if the port uses VAR= instead of VAR+= (Or VAR?=) then settings in /etc/make.conf will have no effect. AFAIK there is no pretty workaround, you will need to edit the Makefile. For a more structual solution, ports should use CONFIGURE_ARGS+= instead of CONFIGURE_ARGS, or a a new variable can be added, where the user can set custom configure arguments (i.e. LOCAL_CONFIGURE_ARGS). -- Martin Tournoij [EMAIL PROTECTED] http://www.daemonforums.org QOTD: Do not overtax your powers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to compile a c file into out file?
On Thu, Jul 24, 2008 at 02:15:25PM +0800, EdwardKing wrote: > I compile a c file,like follows: > $gcc other1.obj other2.obj myfile.c > > Then it create a a.out file.my question is how to create a file named > myfile.out instead of name a.out? Use the -o parameter, ie: % cc -o file file.c -- Martin Tournoij [EMAIL PROTECTED] http://www.daemonforums.org QOTD: Captain Penny's Law: You can fool all of the people some of the time, and some of the people all of the time, but you Can't Fool Mom. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PR - Incorrect confirmation code
On Thu, Jul 10, 2008 at 11:17:01PM -0700, Unga wrote: > --- On Fri, 7/11/08, Martin Tournoij <[EMAIL PROTECTED]> wrote: > > > From: Martin Tournoij <[EMAIL PROTECTED]> > > Subject: Re: PR - Incorrect confirmation code > > To: freebsd-questions@freebsd.org > > Cc: [EMAIL PROTECTED] > > Date: Friday, July 11, 2008, 11:48 AM > > On Thu, Jul 10, 2008 at 08:35:38PM -0700, Unga wrote: > > > Hi > > > > > > I tried to submit a problem report over the web > > (http://www.freebsd.org/send-pr.html) but on submit gives > > following error: > > > > > > "Incorrect confirmation code > > > > > > You need to enter the correct code from the image > > displayed. Please return to the form and enter the code > > exactly as shown. Thank you." > > > > > > Its really "Thank you" from my part also, > > this Problem Report wasted lot of my time :( > > > > > > Regards > > > Unga > > > > That sucks :-( > > > > In some browsers (Opera for example) you can press back and > > whatever you typed > > in forms will still be there ... Not sure how this works > > with other browsers > > ... Guess it's to late for that now... > > > > Other then this, I would recommend to _ALWAYS_, on any > > site/forum, copy > > content to a file and/or the clipboard before submitting it > > in a webform. > > > > You may also want to try using send-pr(1) included in > > FreeBSD base, IMO it > > works a lot better than the webform anyway. > > > > The issue is app running for the submit PR form either buggy or it has a > very small time-out. It does not recognize the image code typed. There is a PR for this: http://www.freebsd.org/cgi/query-pr.cgi?pr=www/99305 August 2006 ... Doesn't seem to be very high priority. You may want to attempt to get the webmaster's attention by sending your previous email to [EMAIL PROTECTED] I would fix it myself but I'm not really familiar with perl (And even less familiar with using perl for webpages) and don't have the time to learn/get familiar... -- Martin Tournoij [EMAIL PROTECTED] http://www.daemonforums.org QOTD: A furore Normanorum libera nos, O Domine! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PR - Incorrect confirmation code
On Thu, Jul 10, 2008 at 08:35:38PM -0700, Unga wrote: > Hi > > I tried to submit a problem report over the web > (http://www.freebsd.org/send-pr.html) but on submit gives following error: > > "Incorrect confirmation code > > You need to enter the correct code from the image displayed. Please return to > the form and enter the code exactly as shown. Thank you." > > Its really "Thank you" from my part also, this Problem Report wasted lot of > my time :( > > Regards > Unga That sucks :-( In some browsers (Opera for example) you can press back and whatever you typed in forms will still be there ... Not sure how this works with other browsers ... Guess it's to late for that now... Other then this, I would recommend to _ALWAYS_, on any site/forum, copy content to a file and/or the clipboard before submitting it in a webform. You may also want to try using send-pr(1) included in FreeBSD base, IMO it works a lot better than the webform anyway. -- Martin Tournoij [EMAIL PROTECTED] http://www.daemonforums.org QOTD: It isn't easy being the parent of a six-year-old. However, it's a pretty small price to pay for having somebody around the house who understands computers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Frets on Fire from ports (short and sweet)
On Thu, Jun 19, 2008 at 05:15:23PM -0300, Gonzalo Nemmi wrote: > On Thursday 19 June 2008 16:07:48 Jona Joachim wrote: > > On 2008-06-19, Gonzalo Nemmi <[EMAIL PROTECTED]> wrote: > > > in short: has anybody been able to get it working from ports? > > > > > > [..snip..] > > If you try to build glewpy it tells you something about pyrex not > > generating the right code. I don't know if that problem actually comes from > > pyrex or from glewpy. If you use an old version of pyrex the port does seem to compile (I used the tag RELEASE_6_0_0, pyrex 0.7.4). A quick look at the Pyrex ChangeLog[1] reveals: " 0.8 - INCOMPATIBLE CHANGE: The type object of an external extension type is now imported at run time using the Python import mechanism. To make this possible, an 'extern' extension type declaration must DECLARE THE MODULE from which the extension type originates. See the new version of the "Extension Types" documentation for details. This change was made to eliminate the need for Pyrex to be told the C name of the type object, or for the Pyrex module to be linked against the object code providing the type object. You will have to update any existing external extension type declarations that you are using. I'm sorry about that, but it was too hard to support both the old and new ways." I'm not familiar with pyrex, so I'm not sure if this is the culprit ... But maybe this will help someone else... 1: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/CHANGES.txt -- Martin Tournoij [EMAIL PROTECTED] http://www.daemonforums.org QOTD: "Necessity is the mother of invention" is a silly proverb. "Necessity is the mother of futile dodges" is much nearer the truth. -- Alfred North Whitehead ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Filesystem full......
On Mon, Apr 21, 2008 at 05:44:43PM +0200, Leslie Jensen wrote: > > During "make installkernel KERNCONF=GENERIC" I get > > /: write failed, filesystem is full > install: /boot/kernel/wlan_tkip.ko.symbols: No space left on device > *** Error code 71 > > output of df -H gives > > Filesystem SizeUsed Avail Capacity Mounted on > /dev/ad0s1a260M259M-20M 108%/ > devfs 1.0k1.0k 0B 100%/dev > /dev/ad0s1g127G 30G 87G25%/home > /dev/ad0s1e260M 26M213M11%/tmp > /dev/ad0s1f 26G6.0G 18G25%/usr > /dev/ad0s1d260M209M 30M87%/var > /dev/ad4s1d387G119G237G33%/backup > linprocfs 4.1k4.1k 0B 100%/usr/compat/linux/proc > > It's a system I've had for a few years, and it has been upgreded a few > times before. > > My question is can I get around this or have I made my / slice to small? > > Thanks > > /Leslie 256M should be enough. You probably have some "junk" on the root filesystem, you may want to check /boot/kernel.old and /root You can use du -hxd1 to check the sizes of directories, and see which are taking up so much space. Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: UTF-8 in Opera/FreeBSD
On Wed 26 Dec 2007 00:12, Svein Halvor Halvorsen wrote: > Martin Tournoij wrote: > > The problem is that the font you're using doesn't support the > > character(s) you want to type. > > You'll have to change the font in the opera preferences dialog, I > > think the bitstream family supports most UTF-8 fonts. > > > > This site may be useful in testing: > > http://people.w3.org/rishida/scripts/uniview/ > > It doesn't seem to be a font problem. The letters in question (æøå) > are visible. I read pages in my own native language on a daily > basis, and have no problem viewing these letters. > However, if I either enter one of them in the search box built-in > Opera, or enter text into input fields on webpages, square boxes > appear instead of the letter entered. Also if I enter these letter > in eg. a blog comment, other people will read the squares. > > Svein Halvor It's a different setting, make sure that not only "web page normal text" but also the "text field single-line" font is set to a font which supports your Norwegian characters. Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: UTF-8 in Opera/FreeBSD
On Sun 23 Dec 2007 19:12, Svein Halvor Halvorsen wrote: > I'm switching to UTF-8, and everything seems to work flawlessly, > except for Opera. If I type one of the norwegian letters ��� into a > text input box all I get is a square box. If I type backspace over > it, it gets converted to a questionmark on the first stroke of > backspace, and deleted on the second. If I copy the square box into > another program, the propper letter is paced. The problem is that the font you're using doesn't support the character(s) you want to type. You'll have to change the font in the opera preferences dialog, I think the bitstream family supports most UTF-8 fonts. This site may be useful in testing: http://people.w3.org/rishida/scripts/uniview/ Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: defend from -> :() { :&:; } ;:
On Sun 21 Oct 2007 12:10, Danielisz Laszlo wrote: > Please do not try to execute this: :() { :&:; } ;: on your BSD machine. > I ask all who already tried it how to defend from this? Wow,, my machine just crashed :-/ Does in this work on other OS's as well (ie. GNU/Linux)? Or just (Free?)BSD? I really don't feel like crashing another machine right now... Only works in sh, not in csh. Anyway, this seems to be security/stability issue, maybe a PR is in order? Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /etc/fstab
On Sun 30 Sep 2007 19:09, Kuselan Sugumaran wrote: > Hi, > > What is the range of values in 5th and 6th column in /etc/fstab? > What is the meaning for each value? > > I��ve gone through man pages and lot of books. I couldn��t get the answer. > Can you help me? Thanks. > 0 - Do nothing 1 - dump/fsck first (Used for root filesystem) 2 - dump/fsck this filesystem See fstab(5) for a longer description. Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fatal: Recipient addresses must be specified on the command line or via the -t option
On Thu 13 Sep 2007 22:09, VeeJay wrote: > Hello there > > Could someone help me? I am really tired now spending 24 hours continously > makeing it work... > > I have installed Postfix on my 6.2 freebsd box. Now, whenever, I try to run > a php script to send mail out, this error is logged into /var/log/maillog > > *Sep 13 21:17:28 veejay postfix/sendmail[1396]: fatal: Recipient addresses > must be specified on the command line or via the -t option* > What is wrong there? Here is the php script. there is address: > > > $to = "[EMAIL PROTECTED]"; > $from = "[EMAIL PROTECTED]"; > $subject = "Hi!"; > $from_header = "From: $from"; > $contents = "this is email test\n\nDoes it work?"; > > if (mail($to, $subject, $contents, $from_header)) { > echo("Message successfully sent!"); > } else { > echo("Message delivery failed..."); > } > > -- > Thanks! > > BR / vj The script is fine, just tested it to be sure (lighttpd 1.4.18, php 5.2.3, postfix 2.4.5) Does postfix work at all? What hapens when you try to send mail with mail(1)? Can you attach you postfix and php configuration? Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: wxPython 2.8?
On Sun 09 Sep 2007 21:09, Luke Dean wrote: > > > On Mon, 10 Sep 2007, Martin Tournoij wrote: > > >On Sun 09 Sep 2007 15:09, Luke Dean wrote: > >> > >>I've got a Python app that seems to require wxPython 2.8. > >>The ports collection only has 2.6. > >>Do you think it would it be worthwhile for me to download the source and > >>attempt to compile it on my system or should I ask the port > >>maintainer? > > > >wxgtk 2.8 is in the ports collection(x11/toolkits/wxgtk28), you're > >probably using an outdated snapshot of the ports collection. > >See the FreeBSD handbook on how to update your ports collection: > >http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html > > I guess I don't understand the relationship between wxPython and wxgtk. > wxPython 2.6 builds with wxgtk 2.6 by default. If it works with wxgtk > 2.8, maybe that's what I need. I'll give it a shot. Thanks. Ignore my previous post, it was late and I thought you couldn't find wxgtk2.8, I kind of missed the wxPython part ... :/ My fault, I'm sorry. I've cc-ed this email to the maintainer of py-wxPython26, I will look into creating a port for py-wxPython28 later today. Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: wxPython 2.8?
On Sun 09 Sep 2007 15:09, Luke Dean wrote: > > I've got a Python app that seems to require wxPython 2.8. > The ports collection only has 2.6. > Do you think it would it be worthwhile for me to download the source and > attempt to compile it on my system or should I ask the port > maintainer? wxgtk 2.8 is in the ports collection(x11/toolkits/wxgtk28), you're probably using an outdated snapshot of the ports collection. See the FreeBSD handbook on how to update your ports collection: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DVD-RW drive
On Sun 09 Sep 2007 16:09, Predrag Punosevac wrote: > I have a very strange problem with my DVD-RW drive. Namely the drive is for > some reason recognized as read only > > acd0: DVDR at ata0-slave UDMA66 > > I am running FreeBSD 6.2 stable with generic kernel (I didn't compile nor > install my own kernel) > so the following lines are present in my GENERIC > > [pedja@ /usr/src/sys/i386/conf]$ more GENERIC > > # ATA and ATAPI devices > device ata > device atadisk # ATA disk drives > device ataraid # ATA RAID drives > device atapicd # ATAPI CDROM drives > device atapifd # ATAPI floppy drives > device atapist # ATAPI tape drives > options ATA_STATIC_ID # Static device numbering > # SCSI peripherals > device scbus # SCSI bus (required for SCSI) > device ch # SCSI media changers > device da # Direct Access (disks) > device sa # Sequential Access (tape etc) > device cd # CD > device pass# Passthrough device (direct SCSI access) > device ses # SCSI Environmental Services (and SAF-TE) > > > I also edited my load.conf file with > > hw.ata.ata_dma="1" > hw.ata.atapi_dma="1" > > > I altered the permissions devfs.conf and fstab file so that I can read and > write but that is not even important since I can not > write anything even from the command line > > I also get > > [pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/acd0 > /dev/acd0: unable to open: Inappropriate ioctl for device > [pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/cd0 > /dev/cd0: unable to open: Inappropriate ioctl for device > > Whole behavior is even more strange since the optical drive was working > flawlessly on PC-BSD 1.3 which is FreeBSD 6.1 stable. > > Any suggestions. > > Thank you so much You need to use ATAPICAM if you want to use ATA cd-writers, see the FreeBSD handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM A small addition to the handbook: You don't need to reboot your machine, the command: $ kldload atapicam Will load the module at runtime. Use /dev/cd0 instead of /dev/acd0 for all writing purposes. Maybe PCBSD does this automagiclly? Can't comment on that since I don't use PCBSD. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Getting the CPU frequency in C
On Mon 10 Sep 2007 00:09, Erik Trulsson wrote: > On Mon, Sep 10, 2007 at 12:04:45AM +0200, Martin Tournoij wrote: > > On Sun 09 Sep 2007 22:09, Erik Trulsson wrote: > > > On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote: > > > > I'm trying to get the CPU frequency in C: > > > > > > > > #include > > > > #include > > > > #include > > > > #include > > > > #include > > > > #include > > > > > > > > int main() > > > > { > > > > int mib[2]; > > > > size_t size; > > > > struct clockinfo clockrate; > > > > > > > > mib[0] = CTL_KERN; > > > > mib[1] = KERN_CLOCKRATE; > > > > size = sizeof clockrate; > > > > sysctl(mib, 2, &clockrate, &size, NULL, 0); > > > > > > > > fprintf(stdout, "hz: %i\n", clockrate.hz); > > > > fprintf(stdout, "tick: %i\n", clockrate.tick); > > > > fprintf(stdout, "spare: %i\n", clockrate.spare); > > > > fprintf(stdout, "stathz: %i\n", clockrate.stathz); > > > > fprintf(stdout, "profhz: %i\n", clockrate.profhz); > > > > > > > > return 0; > > > > } > > > > > > > > I tried to run this on two machines (one machine with hw.clockrate: > > > > 1378 and > > > > the other 797) and it outputs the same on both: > > > > hz: 1000 > > > > tick: 1000 > > > > spare: 0 > > > > stathz: 133 > > > > profhz: 666 > > > > > > > > The profhz value suggest the devil is at work :D although it's probably > > > > a some > > > > stupid mistake on my part :/ Can anyone help? > > > > > > None of the kern.clockrate entries has any particular relationship with > > > the > > > CPU clock frequency, so it is not unexpected that you would get the same > > > output from both machines. > > > > > > I think looking at hw.clockrate is the most portable you can get. > > > If your CPU is using Cool'n'Quiet or the Intel equivalent you can also > > > look at dev.cpu.N.freq for the current frequency. > > > > I got confused because they both have the same name ... do'h > > > > hw.clockrate doesn't seem to available through C(?), > > Of course it is. Using sysctlbyname(3) to access it works fine: > > #include > #include > #include > > int main() > { > size_t size; > int clockrate; > > size = sizeof clockrate; > sysctlbyname("hw.clockrate", &clockrate, &size, NULL, 0); > > fprintf(stdout, "hz: %i\n", clockrate); > return 0; > } > > > hw.clockrate does however only seem to exist on i386 and amd64 architectures > so if you are running on something else you will have to find some > alternative solution. (Parsing the dmesg(8) output?) > > > > > exec-ing sysctl > > hw.clockrate would work, but that's not very elegant... > > > > dev.cpu.0.freq doesn't seem to exists on my (Athlon) CPU, it > > does on my PIII CPU though. > > It partly depends on the CPU, and mostly on the BIOS if the cpufreq(4) > kernel module will be activated (assuming it has been loaded in the first > place of course.) Thought you could only fetch the sysctl values defined in sys/sysctl.h with sysctl()/sysctlbyname(), apparently not... Thank you for the help Erik and Mel! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Getting the CPU frequency in C
On Sun 09 Sep 2007 22:09, Erik Trulsson wrote: > On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote: > > I'm trying to get the CPU frequency in C: > > > > #include > > #include > > #include > > #include > > #include > > #include > > > > int main() > > { > > int mib[2]; > > size_t size; > > struct clockinfo clockrate; > > > > mib[0] = CTL_KERN; > > mib[1] = KERN_CLOCKRATE; > > size = sizeof clockrate; > > sysctl(mib, 2, &clockrate, &size, NULL, 0); > > > > fprintf(stdout, "hz: %i\n", clockrate.hz); > > fprintf(stdout, "tick: %i\n", clockrate.tick); > > fprintf(stdout, "spare: %i\n", clockrate.spare); > > fprintf(stdout, "stathz: %i\n", clockrate.stathz); > > fprintf(stdout, "profhz: %i\n", clockrate.profhz); > > > > return 0; > > } > > > > I tried to run this on two machines (one machine with hw.clockrate: 1378 and > > the other 797) and it outputs the same on both: > > hz: 1000 > > tick: 1000 > > spare: 0 > > stathz: 133 > > profhz: 666 > > > > The profhz value suggest the devil is at work :D although it's probably a > > some > > stupid mistake on my part :/ Can anyone help? > > None of the kern.clockrate entries has any particular relationship with the > CPU clock frequency, so it is not unexpected that you would get the same > output from both machines. > > I think looking at hw.clockrate is the most portable you can get. > If your CPU is using Cool'n'Quiet or the Intel equivalent you can also > look at dev.cpu.N.freq for the current frequency. I got confused because they both have the same name ... do'h hw.clockrate doesn't seem to available through C(?), exec-ing sysctl hw.clockrate would work, but that's not very elegant... dev.cpu.0.freq doesn't seem to exists on my (Athlon) CPU, it does on my PIII CPU though. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Getting the CPU frequency in C
I'm trying to get the CPU frequency in C: #include #include #include #include #include #include int main() { int mib[2]; size_t size; struct clockinfo clockrate; mib[0] = CTL_KERN; mib[1] = KERN_CLOCKRATE; size = sizeof clockrate; sysctl(mib, 2, &clockrate, &size, NULL, 0); fprintf(stdout, "hz: %i\n", clockrate.hz); fprintf(stdout, "tick: %i\n", clockrate.tick); fprintf(stdout, "spare: %i\n", clockrate.spare); fprintf(stdout, "stathz: %i\n", clockrate.stathz); fprintf(stdout, "profhz: %i\n", clockrate.profhz); return 0; } I tried to run this on two machines (one machine with hw.clockrate: 1378 and the other 797) and it outputs the same on both: hz: 1000 tick: 1000 spare: 0 stathz: 133 profhz: 666 The profhz value suggest the devil is at work :D although it's probably a some stupid mistake on my part :/ Can anyone help? Thanks, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: setting up xorg - mouse
> >>>>On Fri 07 Sep 2007 22:09, Computer Answers wrote: > >>>>Hi, > >>>>right now I am running freeBSD 6.2 RELEASE with xorg 6.9 and I am > >>>>unable to get xorg (icewm) to detect my mouse. > >>>>~comperr > >>>On 9/8/07, Martin Tournoij <[EMAIL PROTECTED]> wrote: > >>> > >>>Is moused running? And if it is, how is it configured? > >>>See the FreeBSD handbook and the moused manpage for details: > >>>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html#MOUSE > >>> > >>>Which brand/model mouse do you have? And how does the mouse connect to > >>>your PC (PS2 or USB)? > >>> > >>>What are your mouse settings in /etc/X11/xorg.conf > >>> > >>On Sun 09 Sep 2007 01:09, Computer Answers wrote: > >>sorry about the time delay: > >>um it is a generic PS2 mouse made by digiView > >>I tried running the xorg config wizard a few tmes choosing different > >>mouse types each time. None of them work. > >> > >>as for xorg.conf > >>Section "InputDevice" > >>Identifier "Mouse0" > >>Driver "mouse" > >>Option "Protocall" "Auto" > >>Option "Device" "/dev/sysmouse" > >> > >>(side point) if someone would tell me how to copy and paste with only > >>a keyboard that would be really nice > >Martin Tournoij wrote: > >Does the mouse work in the console ("DOS-screen")? > >xorg usually isn't the problem, it much more often moused which isn't > >running or badly configured. > >Try running: > >moused -t auto -p /dev/psm0 > >Before starting xorg, see the link I posted earlier. > On Sun 09 Sep 2007 22:09, Erich Dollansky wrote: > Hi, > > I have the same problem. If I leave the definitions for the mouse out, X > starts without problems and uses the mouse. As long as a mouse definition is > given in the configuration file, I cannot use the mouse. > > Erich > Note: Please put reply messages at the _bottom_, not at the top. Thank you. Erich, what is your mouse configuration? Also try and locate the problem in /var/log/Xorg.0.log This is a generic configuration: Section "InputDevice" Identifier "mouse" Driver "mouse" Option "Protocol" "Auto" Option "Device""/dev/sysmouse" Option "ZAxisMapping" "4 5" Option "Buttons" "5" EndSection You may need to change the "Indentifier" line, see your ServerLayout. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: setting up xorg - mouse
> > > On Fri 07 Sep 2007 22:09, Computer Answers wrote: > > > Hi, > > > right now I am running freeBSD 6.2 RELEASE with xorg 6.9 and I am > > > unable to get xorg (icewm) to detect my mouse. > > > ~comperr > > On 9/8/07, Martin Tournoij <[EMAIL PROTECTED]> wrote: > > > > Is moused running? And if it is, how is it configured? > > See the FreeBSD handbook and the moused manpage for details: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html#MOUSE > > > > Which brand/model mouse do you have? And how does the mouse connect to > > your PC (PS2 or USB)? > > > > What are your mouse settings in /etc/X11/xorg.conf > > > On Sun 09 Sep 2007 01:09, Computer Answers wrote: > sorry about the time delay: > um it is a generic PS2 mouse made by digiView > I tried running the xorg config wizard a few tmes choosing different > mouse types each time. None of them work. > > as for xorg.conf > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocall" "Auto" > Option "Device" "/dev/sysmouse" > > (side point) if someone would tell me how to copy and paste with only > a keyboard that would be really nice Does the mouse work in the console ("DOS-screen")? xorg usually isn't the problem, it much more often moused which isn't running or badly configured. Try running: moused -t auto -p /dev/psm0 Before starting xorg, see the link I posted earlier. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Recommendation for music library tools?
On Fri 07 Sep 2007 10:09, [EMAIL PROTECTED] wrote: > >I've been searching for a manager for my music library. I'm looking >for something that will maintain a database of mp3 tracks, allow me to >update the tags, rename the files and reorganize the file structure >based on the tags. Something like the library part of musicmatch or >mediamonkey. Don't care much about the player, there's tons of those >to pick from. I'm mostly looking for a good library manager. > >Thanks, >Joe. I use musicbrainz picard (audio/picard), it can automatically update your ID3 tags and move/rename files, works pretty good for me. Picard doesn't keep a database, I prefer to use a simple and consistent filesystem structure instead of a "complicated" database anyway. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: setting up xorg - mouse
On Fri 07 Sep 2007 22:09, Computer Answers wrote: > Hi, > right now I am running freeBSD 6.2 RELEASE with xorg 6.9 and I am > unable to get xorg (icewm) to detect my mouse. > ~comperr Is moused running? And if it is, how is it configured? See the FreeBSD handbook and the moused manpage for details: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html#MOUSE Which brand/model mouse do you have? And how does the mouse connect to your PC (PS2 or USB)? What are your mouse settings in /etc/X11/xorg.conf ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd-questions@freebsd.org
On Thu, August 23, 2007 07:19, Truong Minh Hanh - FPT Software wrote: > How can I upgrate source code to 7.0-CURRENT with cvsup? > Currently I'm using 6.2p5. > > Btw could anyone post here your cvsup-file to update your source code to > 7.0 CURRENT? > Tnx you very much > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > You may want to edit the host to a host near you. *default host=cvsup4.de.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix *default compress src-all ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mouse deamon problems.
On Thu 12 Jul 2007 00:07, Desmond Chapman wrote: > I am installing FreeBSD and it does not recognize the USB ports, the PS/2 > port, or even the mouse types: Intellimouse, Microsoft > Mouse, Generic/Auto. How do I go about enabling the mouse daemon? And yes, I > have tried the set up. It doesn't work. I have tried > Xorgcfg and Xorgconfig. They don't work. Note: the mouse protocols will work > for Linux distributions. You first have to start moused, the default xorg configuration will usually work after that. For a PS/2 mouse: moused -t auto -p /dev/psm0 For a USB mouse: moused -t auto -p /dev/ums0 You probably want to start moused automatically when FreeBSD boots, add this line to /etc/rc.conf: For a PS/2 mouse moused_enabled="yes" For a USB mouse moused_enabled="yes" moused_port="/dev/ums0" You may also want to take a look at the moused and/or ums manpages: man 8 moused man 4 ums ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: disaster recovery - did I do the right thing?
On Sat 05 May 2007 18:05, Garrett Cooper wrote: > Martin Tournoij wrote: > >On Sat 05 May 2007 17:05, Ray wrote: > >>Hello all, > >>I did something stupid the other day (sleep deprivation combined with a > >>"clever" hack were the main reasons), and I'm just curious if I did > >>the right thing afterwards. > >> > >>The mistake: > >>/usr/local/# rm -f * > >>note that root was running bash as a shell at the time, found in > >>/usr/local/bin or something. > >> > >>What I did was to start over, reinstall from scratch. > >>my question, was there an easier way? > >>thanks, > >>Ray > >You can use pkg_info -ga to check for missing files in your packages. > > For (t)csh: > alias rm "rm -i" > > For (ba)sh: > alias rm="rm -i" > > Now that you've learned :). > > Martin's suggestion is good though -- would have done that considering that > all that lived in /usr/local were ports. > > -Garrett The problem with this is that it will ask confirmation for every file it deleted. Which is gets pretty annoying after a while, also, if you delete a directory containing a 100 files, you will have to press 'y' a 100 times. This will probably lead to the habit of using 'rm -f', and/or simply pressing y all the time without actually looking at the confirmation message. In any case, it's not likely to prevent any such accidents. A better solution would be to write a script that would move files instead of deleting them. You should name this script to something else than rm, when you're working with a new or "foreign" system, you will expect rm to move files, instead of deleting them ... and we can all see another disaster coming there... Another hint would be the 'rmstar' option in tcsh, when set, tcsh will ask confirmation before executing 'rm *'. Note that aliasing 'cp' and 'mv' to 'cp -i' and 'mv -i' is an *extremely* wise idea, in the past I have often accidentally overwritten files that should not have been overwritten, leading to various problems. -- Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: disaster recovery - did I do the right thing?
On Sat 05 May 2007 17:05, Ray wrote: > Hello all, > I did something stupid the other day (sleep deprivation combined with > a "clever" hack were the main reasons), and I'm just curious if I did the > right thing afterwards. > > The mistake: > /usr/local/# rm -f * > note that root was running bash as a shell at the time, found > in /usr/local/bin or something. > > What I did was to start over, reinstall from scratch. > my question, was there an easier way? > thanks, > Ray You can use pkg_info -ga to check for missing files in your packages. -- Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: music-generator for FreeBSD?
On Tue 01 May 2007 21:05, ajm wrote: > On Mon, Apr 30, 2007 at 06:15:57PM -0700, Gary Kline wrote: > > On Tue, May 01, 2007 at 01:26:48AM +0200, Jona Joachim wrote: > > > On Mon, 30 Apr 2007 08:47:51 -0700 > > > Gary Kline <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > Guys, > > > > > > > > This is a bit off-topic, but maybe somebody out there can > > > > give me someclues. Bearing in mind that I know zip about music > > > > composition, is there a MIDI (or mp3 or other) toolkit that > > > > would generate short background slices of music? > > > > > > > > Say that I wanted some jazzy melody for several seconds. This > > > > application would generate it. Or a classical tune. Last > > > > night I found a possibly MIDI app for Windows; there were several that > > > > Google found that mentioned Linux but nothing panned out. > > > > > > > > Anybod know? > > > > > > Take a look at Pure Data (audio/pd in the ports). I just found out > > > about it. It doesn't really create jazz melodies but it such a great > > > synthesizer. It allows you to arrange objects graphically, like > > > oscillators and analog/digital converters and combine them to create > > > sounds. It's a real graphical programming language. > > > > > > > Ah,great... I'll give this puppy a try. I'm not opposed to > > learning yet-another-programming-language. Just that I'm > > thinking that at least *some*knowledhe of music theory is > > necessary. Maybe not! > > > > gary > > > > > Regards, > > > Jona > > > > > try the following...in the FreeBSD ports > audio/abcmidi > audio/timidity++ You may want to try audio/csound, I just came across it. The csound home page is http://www.csounds.com Note that the version in the ports tree is a bit outdated, but I'm updating it now... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't zip large files 2gb >
On Tue 01 May 2007 16:05, Kris Kennaway wrote: > On Tue, May 01, 2007 at 03:58:26PM -0400, David Banning wrote: > > I am attempting to zip large files that are 2GB - 3GB. > > > > uname -a; > > > > FreeBSD 3s1.com 4.11-STABLE FreeBSD 4.11-STABLE #7 > > > > I have tried gzip, bzip2 from the ports and rzip. > > OK, none of those are "zip" though :) They're completely different > algorithms. > > > All give no errors on zipping, but will not unzip, siting > > CRC errors. > > > > Is there a maximum file size for zipping? Is my system too old? > > Maybe a file or library that all zip programs depend on that is > > corrupt? > > Quite possible your system is too old, it works on modern versions of > FreeBSD at least with gzip and bzip2. > > Kris I can confirm that compressing large files works without problems on FreeBSD 6. A while ago I tested different archivers, and used gzip, bzip2, and 7-zip to compress and decompress some large files (3 to 4GB) Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount an iso image?
On Mon 23 Apr 2007 16:04, Paul Schmehl wrote: > --On Monday, April 23, 2007 21:46:38 +0100 Matthew Seaman <[EMAIL PROTECTED]> > wrote: > > >-BEGIN PGP SIGNED MESSAGE- > >Hash: SHA256 > > > >Paul Schmehl wrote: > > > >>Thanks. That's what I was looking for. I wasn't trying to create an > >>iso. I wanted to see what was inside one without burning a CD first. > >>That works perfectly. > >> > > > >You can just use tar(1) to read the contents of an iso nowadays, no > >need to mount anything: > > > >lack-of-gravitas:~/tmp:% tar -tvf 6.2-RELEASE-i386-disc1.iso | head -20 > >drwx-- 0 0 06144 Jan 12 13:47 . > >dr-xr-xr-x 2 0 06144 Jan 12 07:41 bin > >dr-xr-xr-x 5 0 04096 Jan 12 11:33 boot > >dr-xr-xr-x 2 0 02048 Jan 12 07:41 boot/defaults > >dr-xr-xr-x 2 0 0 61440 Jan 12 10:55 boot/kernel > >dr-xr-xr-x 2 0 02048 Jan 12 07:38 boot/modules > >dr-xr-xr-x 2 0 02048 Jan 12 07:38 dev > >dr-xr-xr-x 18 0 0 12288 Jan 12 07:42 etc > >dr-xr-xr-x 2 0 02048 Jan 12 07:38 etc/X11 > >dr-xr-xr-x 2 0 02048 Jan 12 07:42 etc/bluetooth > >dr-xr-xr-x 2 0 02048 Jan 12 07:42 etc/defaults > >dr-xr-xr-x 2 0 02048 Jan 12 07:42 etc/gnats > >dr-xr-xr-x 2 0 02048 Jan 12 07:42 etc/isdn > >dr-xr-xr-x 2 0 02048 Jan 12 07:42 etc/mail > >dr-xr-xr-x 2 0 02048 Jan 12 07:42 etc/mtree > >dr-xr-xr-x 2 0 02048 Jan 12 07:38 etc/ntp > >dr-xr-xr-x 2 0 04096 Jan 12 07:42 etc/pam.d > >dr-xr-xr-x 6 0 02048 Jan 12 07:38 etc/periodic > >dr-xr-xr-x 2 0 04096 Jan 12 07:42 etc/periodic/daily > >dr-xr-xr-x 2 0 02048 Jan 12 07:42 etc/periodic/monthly > > > >lack-of-gravitas:~/tmp:% tar --version > >bsdtar 1.2.53 - libarchive 1.2.53 > > > Good to know. However, I didn't want to just list the contents. I also > wanted to view some of the files' contents. Very useful hint! Thank you! The tar manpage makes no mention of this by the way, it should be updated... You can also extract stuff (although mounting is probably faster in most situations) tar xf Unreal\ Tournament.iso -C /usr/local/share/linux-ut/ --Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount an iso image?
On Mon 23 Apr 2007 20:04, RW wrote: > On Mon, 23 Apr 2007 21:18:55 +0200 > Martin Tournoij <[EMAIL PROTECTED]> wrote: > > > On Mon 23 Apr 2007 14:04, Paul Schmehl wrote: > > > Is it possible to mount an iso image? I'm not referring to a cd, > > > but a single file that has been created using mkisofs. If so, what > > > command would you use? mount_cd9660 wants a block device. Do I > > > need to use some sort of pseudo block device? > > > > > > Paul Schmehl ([EMAIL PROTECTED]) > > > Senior Information Security Analyst > > > The University of Texas at Dallas > > > http://www.utdallas.edu/ir/security/ > > > > To mount a iso image: > > mdconfig -at nvode -f MYIMAGE.ISO > > mount_cd9960 /dev/md0 /somewhere > > > > I notice no-one is recommending it be mounted read-only. Is it implicit > for cd9960, or can an iso be modified this way? cd9660 can only mount read-only: $ mount_cd9660 -o rw /dev/md0 /mnt/md0/ $ mount | grep cd9660 $ dev/md0 on /mnt/md0 (cd9660, local, read-only) Note that I made a typing error in my previous email, 'nvode' should be 'vnode' --Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount an iso image?
On Mon 23 Apr 2007 14:04, Paul Schmehl wrote: > Is it possible to mount an iso image? I'm not referring to a cd, but a > single file that has been created using mkisofs. If so, what command > would you use? mount_cd9660 wants a block device. Do I need to use some > sort of pseudo block device? > > Paul Schmehl ([EMAIL PROTECTED]) > Senior Information Security Analyst > The University of Texas at Dallas > http://www.utdallas.edu/ir/security/ To mount a iso image: mdconfig -at nvode -f MYIMAGE.ISO mount_cd9960 /dev/md0 /somewhere If you want to mount multiple ISO images then you will have to use md1, md2, ect. Don't forget to unmount and detach the memory disk: umount /somewhere mdconfig -ud 0 0 should be replaced with the appropiate device number Note that this will only mount standard iso images (iso9660, usually .iso or .bin), if you want to mount Nero/Alcohol/PowerISO/ect images then you must first convert them, iat is a great tool for doing this: Ports collection: sysutils/iat Website: http://iat.berlios.de/ -- Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fetchmail checksum mismatch error
On Wed 11 Apr 2007 18:04, Zbigniew Szalbot wrote: > Dear all, > > I tried updating fetchmail today from 6.3.6 to 6.3.8. I used portupgrade > to do it. However, I got an error message about checksum mismatch. > > I suspect it may have something to do with me stopping the upgrade process > because while downloading the files, the connection froze and there was no > progress for about 15 minutes or so. So I pressect CTRL-C on the command > line and tried again. Since then I have been getting checksum mismatch > warnings and I am not able to upgrade. > > What should I do now? Your advice is very much appreciated! > > Thank you! Remove the corrupted fetchmail file: rm -fr /usr/ports/distfiles/fetchmail* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tinybsd not recognizing /dev/acd0
On Tue 10 Apr 2007 10:04, Gobbledegeek wrote: > Hi > I build tinybsd from freebsd 6.2, copying sbin/mount_cd9660 and all > other sbin/mount_* files via the tinybsd.basefiles. > /dev/acd0 is listed correctly during startup in dmesg and /dev/acd0 > exisits as a device file. > > > However when I try to mount with > > mount -t cd9660 /dev/acd0 /mnt get a "/dev/acd0: no such file or > directory" error. > > Any ideas why? > > Please cc me as I'm not subscribed. > Do you have options CD9660 in your kernel configuration and/or a cd9660.ko kernel module in /boot/kernel? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Unistall KDE and Xorg
On Mon 09 Apr 2007 10:04, dbetts wrote: > Is there a simple way to uninstall KDE and Xorg, or do I have to use the > pkg_delete command for each one? > > Thanks > > -- > Darrell You can use pkg_delete xorg\* and pkg_delete kde\*. This will not remove some xorg dependencies (like fontconfig), you should also use pkg_info first (ie. pkg_info xorg\*) to make sure you won't be deleting anything unintended.. -- Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: saving kernel configuration file into the kernel itself
On Sat 31 Mar 2007 20:03, [EMAIL PROTECTED] wrote: > I remember that in FreeBSD 4 there was a way to include configuration file > in the kernel being compiled, but I could not remember what it was and I > could not find it in the handbook. Is there such feature in FreeBSD 6 ? >From /usr/src/sys/conf/NOTES : # This allows you to actually store this configuration file into # the kernel binary itself, where it may be later read by saying: #strings -n 3 /boot/kernel/kernel | sed -n 's/^___//p' > MYKERNEL # options INCLUDE_CONFIG_FILE # Include this file in kernel Also check out /usr/src/sys/i386/conf/NOTES Replace i386 with your arch. -- Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Opera Video Plugin?
On Mon, March 19, 2007 14:51, RW wrote: > > Is there a way to play video from Opera? > > I've tried both native and linux versions of the mplayer plugin with > the either versions of Opera, and I've tried GXine with native Opera, > all without success. > I prefer to use video bookmarklets, which allows you to download video's from youtube, google, ect. http://1024k.de/bookmarklets/video-bookmarklets.html Another option is plugger(www/plugger), it allows you to use mplayer to play video files inside opera. I personally don't like it, it's slow and not very stable... --Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Optimizationn questions?
On Thu, March 15, 2007 02:16, Gary Kline wrote: > > Two quick one for kernel and/or compiler wizards: first, is > a 400Mz processor considered a 586 (for my KERNELCONF file)? To check: dmesg | grep CPU Two examples (first one is a i686 and second one a i586) CPU: Intel Celeron (902.05-MHz 686-class CPU) CPU: AMD-K6(tm) 3D processor (300.68-MHz 586-class CPU) > Second, is it safe to do a buildworld with -O3? If there are > stability concerns, I'll go with the default when I rebuild my > 6.2 systems. from /usr/share/examples/etc/make.conf : # CFLAGS controls the compiler settings used when compiling C code. # Note that optimization settings other than -O and -O2 are not recommended # or supported for compiling the world or the kernel - please revert any # nonstandard optimization settings to "-O" or -O2 before submitting bug # reports without patches to the developers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: No matter what I try I can't get Nvidia 3d acceleration to work. Please help!
On Tue 13 Mar 2007 17:03, [EMAIL PROTECTED] wrote: > Pieter de Goeje wrote: > > > >Look here: > >http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html > >or the dutch version: > >http://www.freebsd.org/doc/nl_NL.ISO8859-1/books/handbook/kernelconfig.html > > > >Basically it comes down to this: > ># cd /usr/src/sys/i386/conf > ># cp GENERIC MYKERNEL > >edit MYKERNEL, delete 'device agp' > >or you could: grep -v agp GENERIC > MYKERNEL > ># cd /usr/src > ># make kernel KERNCONF=MYKERNEL > ># reboot > > > >Regards, > >Pieter de Goeje > > > > > Thank you for your extensive answer. I tried both your method and the method > described in the handbook*. I still get the same error message > though**. I have attached MYKERNEL, maybe you can take a look at it to see if > somethings wrong? Next time you build a kernel, you should change indent GENERIC to indent MYKERNEL This will avoid any confusion about which kernel you are using. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: No matter what I try I can't get Nvidia 3d acceleration to work. Please help!
On Mon, March 12, 2007 22:05, [EMAIL PROTECTED] wrote: > OK. The line "hw.nvidia.agp.status.status: disabled" looks very odd, so >> I had to ask. If you have also modified your xorg.conf according to the >> docs (or used nvidia-xconfig), this is baffling. Sorry I am unable to >> help. >> >> >>> P.S. >>> I also have ran ppracer. Results: >>> >>> *FreeBSD* >>> *110 fps* >>> >>> *Gentoo Linux* >>> *240 fps* >>> >> >> I did not get more than 35 fps, in 800x600 resolution... >> > Lol! I am a spoiled gamer used to run the latest games on the highest > setting (i.e. Armed Assault :-P ). I have used nvidia-xconfig and also > configured xorg.conf manually. Do you agree with my assessment that 3d > acceleration isn't working? Thanks for trying to help! Armed Assault..? Are you trying to run armed assault in wine? if so, then remember that wine support for FreeBSD is horrible at best... Anyway, I set hint.agp.0.disabled="1" and now hw.nvidia.agp.status.status is set to "enabled" (it was disabled before) glxgears results are the same, ~2300 FPS. In my experience, games on FreeBSD are always slow, my hardware isn't very fast (900MHz, 384MB RAM,Geforce FX5200) but on windows 2000 I'm able to play even fairly recent games (Such as the punisher, civ4). On FreeBSD, anything with more graphics than rogue will be anything from slow to unplayable, even though FreeBSD outperforms windows in almost every other way... Conclusion: Use windows for games, FreeBSD for serious stuff ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: No matter what I try I can't get Nvidia 3d acceleration to work. Please help!
hw.nvidia.agp.status.status: disabled means that the nvidia AGP driver isn't working, not that 3d acceleration isn't working. If you want to use the nvidia agp driver, then you should compile a kernel without device agp. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html On Mon 12 Mar 2007 13:03, [EMAIL PROTECTED] wrote: > Running glxinfo as user works: > > $ glxinfo | fgrep direct > direct rendering: Yes > > 3d acceleration still isn't working though :-( : > $ sysctl hw.nvidia.agp.status > hw.nvidia.agp.status.status: disabled > hw.nvidia.agp.status.driver: n/a (unused) > hw.nvidia.agp.status.rate: n/a (disabled) > hw.nvidia.agp.status.fw: n/a (disabled) > hw.nvidia.agp.status.sba: n/a (disabled) > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Travel important today; Internal Revenue men arrive tomorrow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get GENERIC file
On Sat, March 10, 2007 14:44, Michael Grant wrote: > I'm upgrading from 4.x to 5.5. I am at the step where I need to make > a generic 5.x kernel, but my GENERIC file is for 4.x. When I did a > 'make update' in /usr/src (which updated my source tree from cvspu), > it didn't suck over /usr/src/sys/i386/conf/GENERIC for 5.5. Where is > this or how do I generate it? I was surprised this didn't come over > when I sucked over 5.5 via cvsup. It raises question in my mind as to > what else it didn't suck over. > > Michael Grant > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" 5.5 GERNERIC config attached. Are you sure your GENERIC isn't updated? (compare it to my file) If it isn't, then I would suggest removing your entire source tree and fetching it again. Regards, Martin GENERIC Description: Binary data ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ffmpeg build fails
On Mon, February 26, 2007 16:00, Lowell Gilbert wrote: > Andriy Babiy <[EMAIL PROTECTED]> writes: > >> I found the header file in /usr/src/sys/sys directory. Actually, the >> content of the folders looks the same. I'm not sure why the file was >> missing in the /usr/include/sys. > > Note that this means your system is installed improperly; soundcard.h > should definitely be in /usr/include/sys. Now would be a good time to > do a periodic upgrade -- who knows what else you are missing... It could also be the sign of a failing hard drive. If you don't keep backups, then now would be a good time to start keeping them. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ffmpeg build fails
On Sun 25 Feb 2007 13:02, Andriy Babiy wrote: > Hi all. > > Is anyone else experiencing this problem? What can I do to avoid it? Thank > you very much in advance for advices. > > Andriy > > > S01060014bf5ee711# uname -a > FreeBSD S01060014bf5ee711 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb 22 > 00:43:46 PST 2007 root@:/usr/obj/usr/src/sys/KRNSTABLE amd64 > > == > gmake[1]: Entering directory > `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat' > cc -O3 -Wall -fPIC -DPIC -I/usr/local/include -I/usr/X11R6/include > -fomit-frame-pointer -fno-unit-at-a-time -I.. > -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1 > -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavcodec > -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE > -c -o > audio.o audio.c > audio.c:24:27: sys/soundcard.h: No such file or directory > audio.c: In function `audio_open': > audio.c:81: error: `SNDCTL_DSP_GETFMTS' undeclared (first use in this > function) > audio.c:81: error: (Each undeclared identifier is reported only once > audio.c:81: error: for each function it appears in.) > audio.c:92: error: `AFMT_S16_LE' undeclared (first use in this function) > audio.c:94: error: `AFMT_S16_BE' undeclared (first use in this function) > audio.c:113: error: `SNDCTL_DSP_SETFMT' undeclared (first use in this > function) > audio.c:120: error: `SNDCTL_DSP_STEREO' undeclared (first use in this > function) > audio.c:129: error: `SNDCTL_DSP_SPEED' undeclared (first use in this > function) > audio.c: In function `audio_read_packet': > audio.c:243: error: storage size of 'abufi' isn't known > audio.c:279: error: `SNDCTL_DSP_GETISPACE' undeclared (first use in this > function) > audio.c:243: warning: unused variable `abufi' > gmake[1]: *** [audio.o] Error 1 > gmake[1]: Leaving directory > `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat' > gmake: *** [lib] Error 2 > *** Error code 2 > > Stop in /usr/ports/multimedia/ffmpeg. ffmpeg can't find /usr/include/sys/soundcard.h Did you delete /usr/include? You can extract the 6.2 base tarball into annother directory (for example /usr/base) and then copy /usr/base/usr/include to /usr/include. Or you can copy the files from the freebsd source... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: umass problem
On Sun 18 Feb 2007 16:02, Lucas Holland wrote: > Hello everyone, > > I'm currently trying to get FreeBSD to install. When I boot from the CD, > however, and it goes through all of my hardware it stalls at umass0 > for a long time and then moves on to umass1, giving error messages for each > of them: > > umass0: CBI reset failed, TIMEOUT > umass1: CBI reset failed, TIMEOUT > umass0: CBI bulk-in stall clear failed, TIMEOUT > umass1: CBI bulk-in stall clear failed, TIMEOUT > umass0: CBI bulk-in stall clear failed, TIMEOUT > umass1: CBI bulk-in stall clear failed, TIMEOUT > umass0: CBI reset failed, TIMEOUT > > and so on... > > Any help would be appreciated, > > Regards > > Lucas Do you have any USB drives/camera's/scanners/ect plugged in? If so, then try removing them before booting. You can also try to disable USB in your BIOS. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can I Mount A Windoze Drive?
On Sun 18 Feb 2007 07:02, Drew Jenkins wrote: > For some reason, I can no longer mount the Windoze drive! The first time I > mounted it, I didn't even change the fstab! I just issued the command: > mount_ntfs /dev/ad0s1 /mnt/win > and it mounted! I copied off everything I thought I needed. But when I tried > to go back in, that didn't work. So I added the line suggested below to > /etc/fstab and I still can't mount it! Rebooting doesn't help. What am I > missing? > TIA, > Drew > > > - Original Message > From: Martin Tournoij <[EMAIL PROTECTED]> > To: freebsd-questions@freebsd.org > Cc: [EMAIL PROTECTED] > Sent: Saturday, February 17, 2007 3:10:22 AM > Subject: Re: Can I Mount A Windoze Drive? > > > On Sat 17 Feb 2007 13:02, Drew Jenkins wrote: > > Newbie question here. I just want to make sure I don't screw anything up. I > > have two hard drives in my box...one for Windoze, one for FBSD. Can I mount > > the former from FBSD and copy over files? Do I navigate it just like a FBSD > > disk..."cd", "cp", etc? > > TIA, > > Drew > > FreeBSD comes with a readonly ntfs driver. > > Assuming your windows partition is ad0s1 > mount_ntfs /dev/ad0s1 /mnt/win > > fstab entry: > /dev/ad0s1 /mnt/win ntfs ro,noauto 0 0 > > You can then copy stuff, for example: > cp /mnt/win/Documents\ and\ Settings/carpetsmoker/Desktop ~/ > > If you want read support, you might want to try ntfsprogs > (sysutils/ntfsprogs), which has some basic (EXPERIMENTAL!) read > support. Does mount give some kind error? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can I Mount A Windoze Drive?
On Sat 17 Feb 2007 13:02, Drew Jenkins wrote: > Newbie question here. I just want to make sure I don't screw anything up. I > have two hard drives in my box...one for Windoze, one for FBSD. Can I mount > the former from FBSD and copy over files? Do I navigate it just like a FBSD > disk..."cd", "cp", etc? > TIA, > Drew FreeBSD comes with a readonly ntfs driver. Assuming your windows partition is ad0s1 mount_ntfs /dev/ad0s1 /mnt/win fstab entry: /dev/ad0s1 /mnt/win ntfs ro,noauto 0 0 You can then copy stuff, for example: cp /mnt/win/Documents\ and\ Settings/carpetsmoker/Desktop ~/ If you want read support, you might want to try ntfsprogs (sysutils/ntfsprogs), which has some basic (EXPERIMENTAL!) read support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: export command not found?
On Sat 10 Feb 2007 13:02, Roger Olofsson wrote: > Dear Mailing List, > > 6.2-STABLE FreeBSD just made world. > > # export VARIABLE value > export: Command not found. > > > What happened to export? > > Grateful for any answer! > > Greetings from Sweden > > /Roger The default shell on FreeBSD is tcsh, which uses setenv, not export. You can install bash, ksh, ect. throught the ports collection or as a package. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: VMware equivalent?
On Mon, Feb 05, 2007 at 04:11:19PM -0800, Chris Maness wrote: > Is there an open source equivalent to vmware? > > -- > Chris Maness > (909) 223-9179 > http://www.chrismaness.com qemu is the best open-source virtual machine at the moment, bochs is also an alternative. You can find them in the ports collection: emulators/qemu emulators/bochs A short qemu guide: http://www.freebsdforums.org/forums/showthread.php?t=46399&highlight=qemu And some qemu performance tests: http://www.freebsdforums.org/forums/showthread.php?t=44204&highlight=qemu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: BBC debate "Battle of the operating systems"
On Fri, Jan 26, 2007 at 08:54:44PM +1300, Juha Saarinen wrote: > On 1/26/07, Grzegorz Pluta <[EMAIL PROTECTED]> wrote: > >People from the media doesnt know that FreeBSD Unix exists. > > Rubbish. I have known about the existence of FreeBSD (and other BSD > variants) for a great many years now. I agree, when I started looking into alternatives to windows (~3 years ago) I found more than enough information about *BSD, most of which was pretty good to, since FreeBSD was the first "alternative" I tried. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: The BBC survey....
On Fri, Jan 26, 2007 at 04:07:57AM -0200, Sergio Lenzi wrote: > Hello alll > > Even FreeBSD, or even any BSD (ok, OSX is BSD...) is mention in > the BBC survey, I notice that: OSX is _NOT_ FreeBSD. It has a different kernel (based on Mach 3) and only uses userland tools from FreeBSD, most of which are probably modified by the OSX team. It also adds a lot of stuff (GUI for example) > 1) They claim that 90% of the persons use windows, but in the > publish list, is just the contrary... only 2 ones use windows, > and like it, and one of them just for games It's probably more than 90%, the last study I saw (~2 years ago) said that 98% of the users used windows. Remember, a lot of users are completely unaware that there is a such a thing as an operating system. The people who reacted to the BBC article are computer nerds, and are not representative for the average computer user. Also, there is a _BIG_ difference in the desktop OS market and the server OS market > 2) The person that likes windows vista, likes it because he > can make a good backup to save things when he lost them, > this shows a common thing that happens when you use windows... (you > will lost something)... > so you need backups, winzips, winrars, avg, norton... and zilions > of useless things > that make your computer work better.. when in reality, all you need > is a good gnome 2.16 or > a kde 3.5.4... This can happen on FreeBSD to, the most common reason for loss of data is hard disk failure, which has nothing to do with windows. > 3) 90% of the persons use the computer to write documents, access > internet, and use email. > so the number or persons using Mac and Linux is rasing > 4) To use the vista, probably you will need an upgrade... (a good > graphics for directx10, > 64bit cpu, and 2 gb of memory...) here will cost 1000 dollars.. > 5) more than half of the persons were windows users and switched to OSX > or Linux Not a shocking fact, since DOS/Windows has has a monopoly on the desktop OS market for more than 15 years... > Here in my country (Brazil) I am selling notebooks with FreeBSD and > gnome 2.16 > to high executives. and is doing well.. so it shows that the success of > the computer > is in the easy of use and not in the features it has The more > important the person > in the company, the easy to use and less features must have the > computer. so > for me, gnome is the best choice. > > Sergio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help me pick a replacement graphics card?
On Sun, Jan 21, 2007 at 09:56:42PM -0600, Kirk Strauser wrote: > My aging GeForce MX 400 is dying and I want to replace it with something a > bit > more modern. My desktop is running FreeBSD 6.2 on a Asus A7V (Via chipset) > motherboard with a 1.4GHz Athlon. This is more of a hardward question than > software, although pointers to any FreeBSD-specific driver gotchas would be > appreciated. > > Basically, I want to run a few OpenGL apps (particular the "Second Life" > client, which works perfectly under Linux emulation), so I pretty much have > to use the "nvidia" driver and not the open "NV" driver. The old card's > performance was fine for my purposes, so almost much anything at all newer > should be OK. Therefore, I don't want to spend a lot of money on this. > However, I don't want to buy a card so old that NVidia will drop support for > it in the next driver upgrade, as they did with this current card. > > My motherboard has an AGP 4x slot that the "nvidia" driver wants to run in 2x > mode because it doesn't like the Via chipset. Now, it seems like there are > precious few AGP 4x cards available these days; most look like 8x. Are those > backward compatible all the way to 2x? Google returns plenty of > authoritative-sounding hits on both sides. > > Is there anything else I should be looking for? Any specific models you > might > recommend? > -- > Kirk Strauser It doesn't matter if you mainboard is 4X AGP and your card is 8X AGP, it's backward compatible. The cheapest card available in most stores today is the geforce FX5200 (128MB), so, any new card you buy today will do fine. This card will do fine for your current applications, but you may want to buy a better, more expensive one, because hardware requirements go up all the time (especially for games). It all depends on your budget... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: upgrading from 6.1 to 6.2 with custom kernel
On Sun, Jan 21, 2007 at 11:45:36AM -0500, Jeff Royle wrote: > Jonathan Horne wrote: > >On Saturday 20 January 2007 20:58, [EMAIL PROTECTED] wrote: > >>Terrific waste of bandwidth. > >*shrug* i dont see it that way. i see it as insurance that when i build > >kernels for 15 machines, > >they are all getting the cleanest sources possible, with absolutely nothing > >left over from a > >previous build. > > If you wish to sync 15 machines and plan on doing that a lot, it would > benefit you to setup a > private cvs mirror. > > You use 1 machine as your mirror, it syncs say once a day or week or hour > whatever off the main cvs > mirror sites. > > You then have your other machines sync off that. This would ensure all your > systems are kept in > line with the same src. > > This would save on bandwidth for both yourself and the mirror sites. > > Cheers, > > Jeff Another possible solution would be to export your /usr/src directory with NFS. I use this for my src and ports directory, and it works quite well, it's easy to setup, bandwidth friendly, and easy to maintain. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Remove extra packages and streamline 6.2
On Sat, Jan 20, 2007 at 09:15:34PM -0500, Joshua Lewis wrote: > Hello list, > > After many days of hard work, a lot of caffeine and not nearly enough sleep I > have a working > asterisk PBX for my home. > > I have it working on a PIII 800 with 512MB of RAM and two 5GB drives in a > Raid1 config. While this > system should suffice I would like to streamline the system a little. > > I installed a lot of unnecessary applications during sysisntall. Is there a > way to figure out what > software I don't need. I did a pkg_info | wc -l and found that I have 63 apps > installed. I know I > don't need a bunch of these but I am afraid to delete random packages. After > having a non working > phone for two weeks my wife would kill me if I messed it all up again. > > Any ways I know I don't need xorg any more. I installed it so I could use > gastman to try and get my > Asterisk config working faster. I never wound up using gastman so now I need > to remove it and xorg. > But there are a bunch of fonts and docs and things. > > Is it possible to remove any packages I have not used for X amount of days? > > Is there some way to figure out what apps I don't need installed anymore? > > Are there any other ways to streamline a system? > > I removed everything from rc.conf except the basics. Hostname, defualtrouter, > ifconfig, keyrate, > linux_enable, saver, sshd, asterisk. > > Here is what I have installed. > > [PKG_INFO SNIP] > > > Sincerely, > Joshua Lewis > [EMAIL PROTECTED] You can use stat to see when a file was last accessed, for example, on my system stat -x /usr/local/bin/7z show (among other things): Access: Mon Jan 15 00:34:11 2007 So, I last used 7z on jan 15th, at 00:34. I suppose you could write a script to automatically remove packages which haven't been used for a X amount of time, but I would not recommend doing this, because you might accidentally remove a package you don't want to remove. Examples would be dos2unix, antiword, 7zip, packges you might not use a lot, but sure come in handy at times! Also, it would require quite some work, probably more work than you'll save. Another hint may be this: pkg_info -adrR > PKGINFO This will generate a list of all your installed packages including dependency's and a description (from pkg-descr) Drop the -d flag if you don't want descriptions. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: startup script with non-root user
On Fri, Jan 19, 2007 at 05:30:00PM -0500, Don Munyak wrote: > Hello, > > I have an application I'd like to startup at boot, however, the script > needs to be started by a non-user account. > > If I put the startup script in /usr/local/etc/rc.d/hobbit.sh > > How do I get it to start using the user account 'hobbit' > > Thanks > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- But like the Good Book says... There's BIGGER DEALS to come! You can use su, a very simple example: script.sh: su carpetsmoker startup.sh startup.sh: echo "Hello, I am now running as user "carpetsmoker" set See the su man page for more information Hope this helps. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel color
On Fri, 19 Jan 2007 11:20:20 -, <[EMAIL PROTECTED]> wrote: hi all dear in FreeBSD project. in NetBSD user can add this line to kernel to change kernel BF and FG color: options WS_DEFAULT_FG=WSCOL_XXX options WS_DEFAULT_BG=WSCOL_XXXhow can use this trit in freebsd? ___ From /usr/src/sys/conf/NOTES: # The following options will let you change the default colors of syscons. options SC_NORM_ATTR=(FG_GREEN|BG_BLACK) options SC_NORM_REV_ATTR=(FG_YELLOW|BG_GREEN) options SC_KERNEL_CONS_ATTR=(FG_RED|BG_BLACK) options SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED) Take a look at /usr/src/sys/conf/NOTES and /usr/src/sys/YOURARCH/conf/NOTES for all kernel options. Hope this help. Regards. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Hide ports make options/config
On Fri, 19 Jan 2007 08:21:07 -, Charlie Hynson III <[EMAIL PROTECTED]> wrote: I am making myself an easy install sh shell script that configures my own basic setup on FreeBSD 6.2 Release. Wondering how I tell make when installing a port not to ask me make options/config (silent install). For all ports and or individual ports. Since I have my make options set in pkgtools config for sysutils/portupgrade. For example portupgrade -RN /usr/ports/lang/php4 Will ask me make options which I have already set. How do I hide the options. I tried searching a few places before asking with no luck. P.S. Thanks FreeBSD Team for another great release so far 6.2 Release is running really smooth on my P4 2.6 i386 system without any problems. By default FreeBSD 6.2 Release works with my re0 1000/baseTX Full Duplex LinkSys Gigabit NIC. Which really impresses me since I have to install a driver on windows 2003 server enterprise before the card works. Not FreeBSD!!! Thanks, Charlie -DBATCH For example: make install -DBATCH [OTHER SWITCHES] Hope this helps. Windows 2003 probably has the driver for your NIC, but can't find because your card is one revision higher, let's say Gigabit 123b, and windows only has a driver for Gigabit123a or something like that. Quite often (~90% of the time) this is the case on Windows 2000 and XP when it can't find a driver. One (or a few) revisions higher or lower doesn't matter for the driver. although I don't have any experience with Windows 2003, I think I can safely assume this is the case for windows 2003 to. You will have to select the driver manually. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: the flash 9 player....
In an interview, the main linux flash developer hinted that they will start working on flash for FreeBSD if enough requests are made. Sending an email to Adobe is worth the two minutes. For now, I use linux-opera with flash, which works pretty well. On Thu, 18 Jan 2007 18:27:45 +0100, Robert Huff <[EMAIL PROTECTED]> wrote: Another useful thing would be to write Adobe and (respectfully) request (maintained) native FreeBSD binaries. As this matter gets discussed regularly, check the archives for an address. (You should probably check ports@ and multimedia@ also.) This has only a small chance of producing the desired result; however, without such requests their interest in doing so will be zero. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: md5sum is missing, but not entirely
On Wed, 17 Jan 2007 06:29:57 -, <[EMAIL PROTECTED]> wrote: Both the executable and the manpage for md5sum seem to be missing from this 6.1-RELEASE system, making it difficult to check the downloaded 6.2-RELEASE and FreeSBIE ISOs. Isn't md5sum supposed to be part of the base? Meanwhile, "apropos md5" yields this line, among others gmd5sum(1), md5sum(1) - compute and check MD5 message digest but "man md5sum" says No manual entry for md5sum How did that line get into the apropos, when the corresponding manpage is (apparently) not installed? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" The command to calculate md5 sums is 'md5', not 'md5sum', and it is part of the base. On my system (6.2-RC2) apropos md5 | grep sum: md5(1), sha1(1), sha256(1), rmd160(1) - calculate a message-digest fingerprint (checksum) for a file. Not sure why apropos md5 shows md5sum and gmd5sum (g for gnu?), maybe it's from a port. I also suspect that gmd5sum is a link to md5sum or vice versa. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Web server requirements
On Sat, 19 Aug 2006 20:55:59 +0200, Dearment, Alaric J <[EMAIL PROTECTED]> wrote: I'm the on-line editor of expo, Ball State University's student-run magazine. We're reviving our Web site, and I've been thinking seriously about running it off a FreeBSD-based server. However, I'm not sure what kinds of system requirements I'll have. The school has roughly 20,000 students and the magazine comes out once a semester. If I were to guess, I'd say we'll be having 100 people on the server at once on busy days, most of whom will be on campus. In addition to articles, the server will probably offer a 10- to 15-minute video and/or podcast to go with the cover story. Also, the server will also be used as a mail server and file server, though file services will likely only be needed for a couple of days each semester and E-mail accounts will only be for staff to do things such as receive feedback on articles and so forth. What sorts of requirements would such a server need as far as processor, RAM and HD are concerned, assuming it would be running on FreeBSD? Would a machine with 512M of RAM, a 140G HD and 1.2GHz processor work? That will probably be enough. The Slackware site runs on a PIII 600 with 512MB RAM, http://www.slackware.org/about/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Opera spellcheck doesn't work (aspell does)
Spell checking in opera doesn't work, opera says that aspell isn't installed (it is). comandline aspell works fine. The weirdest thing is that the problem is present at both my workstations, the one at home and the one at work, one is running FreeBSD 6.0 and the other 6.1. Opera 8.5 spellcheck also didn't work, although I do remember that it worked at some time, although this was a long time ago. (I think that was with 5.4, not sure though) Is this a FreeBSD, opera or aspell problem? Look like it's FreeBSD. I posted this message at the opera forums, unfortunatly without any results... I've tried: removing and installing opera removing and installing aspell symlinking libaspell to /usr/X11R6/share/opera/plugins Looking for some configuration variable, can't find one in GUI, opera:config or in any of the config files. Removing my .opera Running opera as root (Desperate) Thank you for reading. Martin Tournoij Some system information uname -a: FreeBSD carpet 6.1-RELEASE-p1 FreeBSD 6.1-RELEASE-p1 #0: Mon Jul 24 20:56:44 UTC 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 opera:about: Version information Version 9.00 Build 344 Platform FreeBSD System i386, 6.1-RELEASE-p1 Qt library 3.3.6 Java Java Runtime Environment installed Browser identification Opera/9.00 (X11; FreeBSD 6 i386; U; en) Paths Preferences /home/carpetsmoker/.opera/opera6.ini Saved session /home/carpetsmoker/.opera/sessions/A.win Bookmarks /home/carpetsmoker/.opera/opera6.adr Opera directory /home/carpetsmoker/.opera/ Cache /home/carpetsmoker/.opera/cache4/ Mail directory /home/carpetsmoker/.opera/mail/ Plug-in path /usr/X11R6/share/opera/plugins /usr/X11R6/lib/browser_plugins User CSS directory /home/carpetsmoker/.opera/styles/user/ aspell --version @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.4) ldconfig -r | grep "aspell" 206:-laspell.16 => /usr/local/lib/libaspell.so.16 Installation method FreeBSD ports tree; www/opera and textproc/aspell for opera: make install -DWITH_ASPELL -DWITH_SHARED for aspell just make install ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: file restoration
On Wed, 16 Aug 2006 18:21:49 +0200, Mark Manzano <[EMAIL PROTECTED]> wrote: Hi, I am using freeBSD Unix and someone deleted a bunch of files from the hard drive. I know when you delete a file from unix, only the pointer or inode is deleted and not the actual file. From a software perspective, the information is probally gone. However on a hardware perspective I believe the data is still there. Are there any tools to retrieve the lost files? This is what I want to do: On the hardware level the hard drive is a physical storage device with little tiny "switches" that flip between 1's and 0's. Those switches stay set to whatever they were set at unless they are set to something else. What I want to attach the hard drive to another computer with a second hard drive in it (a blank one) and boot to a floppy disk. From there, a program or tool will scan all the switches ( 1s and 0s) to try to find patterns that indicate the presence of files. Then copy those files to the blank hard drive. Thank you. There are several commercial tools that can restore file on a UFS partition, I'm not aware of any free tools I used Stellar Phoenix (sucsesfully) a while ago after a windows crash destoyed my part of my UFS partition (grmbl!) http://www.stellarinfo.com/disk-recovery.htm#bsd Not cheap though, $355, I don't want to encourage illegal software use, but I managed to find a cracked version on the web... There are several others on the web, Use google. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
It most certainly is. If you are using vim, them you can set patchmode This will keep the original version of a file(for example rc.conf.org) :help patchmode will tell you more. This saved me quite a few times after I screwed up a configuration file and didn't remember how to get it back again... Martin Tournoij wrote: Martin, Snapshots really aren't that complicated, take a look at the handbook entry: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/snapshots.html Quite handy, didn't even know this existed for FBSD. Started using it right away, with the freebsd-snapshot port. Always good to have an extra backup against /etc changes that didn't work out THAT well afterall. :) /Robin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: new documents notification and approval
On Sat, 12 Aug 2006 19:11:25 +0200, Andrea Venturoli <[EMAIL PROTECTED]> wrote: Giorgos Keramidas wrote: Just get a full document management system, Like what? Any name? bye & Thanks av. Google: http://www.google.com/search?num=30&hs=dDJ&hl=en&lr=lang_nl%7Clang_en&safe=off&client=opera&rls=en&q=document+management+free&btnG=Search&lr=lang_nl%7Clang_en The best way to find out which suites your needs is to try them out... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
On Sat, 12 Aug 2006 18:29:20 +0200, Chad Leigh -- Shire.Net LLC <[EMAIL PROTECTED]> wrote: On Aug 12, 2006, at 7:26 AM, Martin Tournoij wrote: On Sat, 12 Aug 2006 12:13:49 +0200, Andreas Davour <[EMAIL PROTECTED]> wrote: On Sat, 12 Aug 2006, Daniel Gerzo wrote: Hello Chris, Saturday, August 12, 2006, 3:48:28 AM, you wrote: Lastly surely someone has implemented a trash folder mechanism for freebsd... what is it called so I can look up how to install it? maybe something like: mkdir ~/.trash alias rm 'mv -iv \!* ~/.trash/' You don't have a handy solution for the lack of file version numbering as well? That's something I'd love to see in ext4 or UFS3! /andreas Snapshots? Isn't a snapshot a filesystem wide thing? Sounds to complicated for file-level versioning without something on top of it like the new Apple Time Machine business I agree it would be nice to have file versioning in the FS like VMS does. Chad Yeah, snapshots are FS-wide. If you make one once a day it's almost the same as a FS VMS feature. You can have a total of 20 snapshots, so that's 20 days... Snapshots really aren't that complicated, take a look at the handbook entry: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/snapshots.html Basicly it's just: # mknap_ffs /usr 20060812 And you have a snapshot of /usr named 20060812 Also, there's a port which offers some usefull scripts sysutils/freebsd-snapshot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Undelete for UFS2?
On Sat, 12 Aug 2006 12:13:49 +0200, Andreas Davour <[EMAIL PROTECTED]> wrote: On Sat, 12 Aug 2006, Daniel Gerzo wrote: Hello Chris, Saturday, August 12, 2006, 3:48:28 AM, you wrote: Lastly surely someone has implemented a trash folder mechanism for freebsd... what is it called so I can look up how to install it? maybe something like: mkdir ~/.trash alias rm 'mv -iv \!* ~/.trash/' You don't have a handy solution for the lack of file version numbering as well? That's something I'd love to see in ext4 or UFS3! /andreas Snapshots? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"