Lexmark Z23 USB Printer
Hello, I am trying to get my FreeBSD 4.7 Stable system working with my Z23 Lexmark printer. I enabled support for USB printers in the kernel and was able to rebuild and install with no problem. dmesg correctly reports the existence of the device. However, I am sort of stuck at this point. I am not really sure what I should do next, the handbook does not explicitly reference USB printers. If anyone could point me in the right direction I would appreciate it. It would be nice to get this working since it is such a cheap printer. The alternative would be for me to install the printer on my WindowsXP box (really my girlfriends machine) and print across the network. Regards, Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
NVIDIA Drivers Forum
Hello, Is this the correct forum to ask questions about the new NVIDIA drivers or has a specific group been created for this? Regards, Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
recovering vi editor sessions????
Hello, Recently I have noticed some strange behavior when booting up my FreeBSD 4.7 stable system. At the very end of the boot sequence I get the following message: recovering vi editor sessions: After a few moments the sytem suddely informs me that sendmail cannot resolve its hostname. I hit Ctrl-C and the system completes the boot sequence in a normal fashion. I tried searching the mailing list archives but there does not appear to be any sort of reference to this type of behavior. I looked through the scripts in /usr/local/etc/rc.d for any reference to this sort of thing and I found nothing. Strangely enough, I do not have sendmail enabled on my system, in fact, I specifically inform the system not to build sendmail when I do a buildworld. Any help in this matter would be appreciated. The rest of the system (after the boot sequence) does not appear to be comprised. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: recovering vi editor sessions????
I understand the sendmail error message, what i don't understand is that it seems to be preceeded by the recovering vi editor sessions message. No, I specifically disabled sendmail in rc.conf as well. Weston On Tuesday 29 October 2002 08:27 am, Toomas Aas wrote: Hi! Recently I have noticed some strange behavior when booting up my FreeBSD 4.7 stable system. At the very end of the boot sequence I get the following message: recovering vi editor sessions: After a few moments the sytem suddely informs me that sendmail cannot resolve its hostname. I hit Ctrl-C and the system completes the boot sequence in a normal fashion. I tried searching the mailing list archives but there does not appear to be any sort of reference to this type of behavior. I looked through the scripts in /usr/local/etc/rc.d for any reference to this sort of thing and I found nothing. Strangely enough, I do not have sendmail enabled on my system, in fact, I specifically inform the system not to build sendmail when I do a buildworld. Well, somehow sendmail still manages to (attempt to) get loaded. If you don't update sendmail during buildworld then it may be the version that got installed when you first installed FreeBSD. Is there a sendmail_enable line in /etc/rc.conf? What the error message tries to tell you is that your IP address cannot be resolved to DNS name. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: recovering vi editor sessions????
Ok, I reviewed rc.conf and the appropriate flag was inded set. However, I removed all other delta references to sendmail. The behavior still exits. The specific error message is the classic: Unable to qualify my own domain name (jerusalem)... This continues for awhile until sendmail finally decides ot use the short name and then boots. I really don't get it. Are there any other network daemons that require the use of sendmail to operate properly? Regards, Weston On Tuesday 29 October 2002 09:35 am, DaleCo Help Desk wrote: - Original Message - From: Weston M. Price [EMAIL PROTECTED] To: Toomas Aas [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 8:08 AM Subject: Re: recovering vi editor sessions I understand the sendmail error message, what i don't understand is that it seems to be preceeded by the recovering vi editor sessions message. No, I specifically disabled sendmail in rc.conf as well. Weston So you're wanting to 'rid yourself' of the vi-recover message(s)? Kevin Kinsey DaleCo, S.P. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: recovering vi editor sessions????
Thanks to Kevin for this I delete all the contents of vi.recover and now everything is fine. I don't quite understand when sendmail was coming up unless one of the vi files was a mail message Thanks again guys. Weston On Tuesday 29 October 2002 10:04 am, Weston M. Price wrote: Ok, I reviewed rc.conf and the appropriate flag was inded set. However, I removed all other delta references to sendmail. The behavior still exits. The specific error message is the classic: Unable to qualify my own domain name (jerusalem)... This continues for awhile until sendmail finally decides ot use the short name and then boots. I really don't get it. Are there any other network daemons that require the use of sendmail to operate properly? Regards, Weston On Tuesday 29 October 2002 09:35 am, DaleCo Help Desk wrote: - Original Message - From: Weston M. Price [EMAIL PROTECTED] To: Toomas Aas [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 8:08 AM Subject: Re: recovering vi editor sessions I understand the sendmail error message, what i don't understand is that it seems to be preceeded by the recovering vi editor sessions message. No, I specifically disabled sendmail in rc.conf as well. Weston So you're wanting to 'rid yourself' of the vi-recover message(s)? Kevin Kinsey DaleCo, S.P. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How UNIX was built?
You could also take a look at the first chapter of the The Design of the Unix Operating System by Bach. This chapter has a pretty decent section on the history of Unix. Weston On Friday 11 October 2002 02:44 pm, Ricardo Dimov wrote: Hi There, Is there some doc with Unix architecture/design? Is there some doc comparing BSD-UNIX with Windows Server? Thanks in advance Ricardo Dimov [EMAIL PROTECTED] fone: +55 (19) 3287 4718 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Native JDK 1.3.1 Linux JDK 1.3.1 vs JDK 1.4.1 inconsistencies
Hello, As some of you on this list know, I have been tinkering with a variety of JDK's on FreeBSD in large part to get the Eclipse Platform running with any sort of consistency. Over the course of a couple of weeks I have found the following issues with each of the JDK's: Native FreeBSD JDK 1.3.1 Under Eclipse, the native build of the 1.3.1 JDK refuses to allow the user to commit a Java project to the file system. When the user attempts to create a new project, the IDE responds with an error message that states that the .project file (the metadata file used by Eclipse to track project changes) is read only. This is the ONLY JDK where this problem is manifest. Further, when using this JDK none of the local filesystems appear in the file browser dialogs. In fact, as far as Eclipse is concerned the local file system does not appear to exist at all. Linux-SUN JDK 1.3.1 This is the only IDE I have been able to get to work with Eclipse with any sort of consistency. The above problem does not exist and you can actually open the help brower, perform automatic software updates over the web, etc. Also, certain plugins that I have added to the environment (JBoss, Weblogic integration work fine). Linux-Sun JDK 1.4.1 This one is the most problematic and inconsistent of the bunch. While the read only problem does not exist, any access of the help system, software management etc brings the IDE to a crashing halt. Similarly, this JDK is dog slow. Certain actions with the above JDK's can be performed in half the time. Also, while the above JDK's only start one instance of the VM to run eclipse, the 1.4.1 JDK causes no less than 10-12 instances of the VM to start. Also, JBoss 3.0.0 crashes upon startup when using this JDK. I have seen similar types of behavior with a variety of Java based applications on FreeBSD. Most notably is JEdit when used in conjunction with the native JDK. JEdit crashes due to file system errors. Needless to say this is a bewildering set of problems. I have a notion that the behavior with the native JDK has something to do with the Java security policy. At the very least the evident discrepancies across the aforementioned JDK's definitely give one cause for concern. One other issue that I just don't understand is with the Linux compatibility libraries. On both the native FreeBSD and 1.4.1 JDK Eclipse specifically needs either the LD_LIBRARY_PATH variable to be set, or ldconfig -m /compat/linux/lib to be run to start at all. However, with the Linux-Sun JDK 1.3.1 this is NOT NECESSARY. I just don't get it? I am not really sure if this is the right forum to post this message, it may very be more appropriate for the ports list. Any advice on these issues would be appreciated. I was also wondering if there was a specific mailing list dedicated to Java running on FreeBSD? This might be a good idea in order to reduce traffic on questions. I am running 4.7 with the Linux 7.1_1 base. Regards, Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Java IDE -- Finally some success under FreeBSD
Hello, For the Java developers that are interested, I was able to download and install JBuilder community edition from Borland. It runs fine under the native JDK 1.3 for FreeBSD. However, it dies under both linux JDK emulations. Regards, Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /etc/malloc.conf? java FreeBSD expertise?
Could you be more specific regarding the Java application. First off, what version of the JDK(s) are you using? What type of application is it? Please provide a few more details. Regards, Weston On Thursday 10 October 2002 04:04 am, paul beard wrote: Two questions, perhaps I should break them out. First off, why, when I use truss(1) to look at what a program is doing, does it look for /etc/malloc.conf? Never finds it, carries on anyway. Second, some friends of mine have a java application that runs under the Leading Brand, Solaris and Linux, but I can't get anywhere with it in FreeBSD. The most recent version dumped core when a non-root user runs it. Root gets to see it spawn half a dozen processes and suck up all the CPU, to no practical purpose. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Please help me
Actually I believe it is an acronym for the set of key commands that was required to affect a regular expression search in vi. Weston On Thursday 10 October 2002 03:08 am, Toby Irvine wrote: I have one question for you. I have been looking to find out what the command/utility grep actually means or stands for. I have searched the net and keep finding the same answer, which I have been told is wrong. Could you please help me out and let me know. Someone told me that only an old school unix person would be able to tell me. Please help? Thank you, _ Send and receive Hotmail on your mobile device: http://mobile.msn.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /etc/malloc.conf? java FreeBSD expertise?
In earlier versions on FreeBSD I assume. I have noticed a number of instabilities on 1.4.1 on FreeBSD. Have you tried using the native JDK? Weston On Thursday 10 October 2002 04:47 am, paul beard wrote: Weston M. Price wrote: Could you be more specific regarding the Java application. First off, what version of the JDK(s) are you using? What type of application is it? Please provide a few more details. Yes, of course. java version 1.4.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21) Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode) The application consists of a webcrawler, a parsing engine and a database, similar to a search engine. In earlier versions of the JDK and the application, it ran well enough to display an admin UI: this version fails to get that far. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /etc/malloc.conf? java FreeBSD expertise?
Yeah, that could be the issue. The native JDK is at /usr/ports/java/jdk13 You will have to download the linux binary for the JDK to build on FreeBSD, however, after the JDK build procedure is completed the linux binary can go away. If you cd to the above directory and run make install clean The build script will point you to the correct location as to where to download the file. As a point of curiosity, I have indeed noticed numerous inconsistencies and problems across all JDK's for FreeBSD. However, the native JDK 1.3 has proven to be the best among those offered. Regards, Weston On Thursday 10 October 2002 05:02 am, paul beard wrote: Weston M. Price wrote: In earlier versions on FreeBSD I assume. No, in earlier JDKs. I have noticed a number of instabilities on 1.4.1 on FreeBSD. Have you tried using the native JDK? I didn't realize there was one: I was using the 1.4.1 version in ports. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /etc/malloc.conf? java FreeBSD expertise?
But wait, why does the application require 1.4? What in the code dictates use of the 1.4 JDK? Weston On Thursday 10 October 2002 05:15 am, paul beard wrote: Weston M. Price wrote: Yeah, that could be the issue. The native JDK is at /usr/ports/java/jdk13 well, the application requires 1.4. Looks like I'm SOL for now. Thanks for the help. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Linux JDK 1.3 necessary to compile JDK 1.3.1 source from Sun?
You can indeed just use the Linux JDK, or even better, you can install the port of the 1.4.1 jdk to get the latest and greatest JDK. However BE FORWARNED THERE ARE PROBLEMS WITH JAVA ON FREEBSD WITH ANY JDK THAT YOU USE. If you want to use an IDE other than emacs you may have some problems.I found this aspect of FreeBSD maddening almost to the point of murderWorse than this, most people on the FreeBSD questions list (or at least the one's that I see posting regularly) are not Java developers. The FreeBSD port of the JDK is incredibly fast because it is a native binary. With the Linux port you always are executing through an emulation library. However, since you are just starting out it really shouldn't make much of a difference. I would suggest install the JDK1.4.1 port. You can find this in /usr/ports/java/linux-sun-jdk14 You will still have to download the binary file from Sun's site, put doing a make all install clean in the aforementioned directory will tell you where to get the file. Regards, Weston On Monday 07 October 2002 08:37 pm, Mark Haney wrote: I'm learning Java, and would like to set up a Java development environment on FreeBSD. In the article Java and Jakarta Tomcat on FreeBSD http://www.freebsd.org/doc/en_US.ISO8859-1/articles/java-tomcat/index.html as well as one other article I came across, the instructions say to first install the Linux JDK. Then, build the JDK 1.3.1 source from SUN after downloading the patchset from http://www.eyesbeyond.com/freebsddom/java/jdk13.html Why is it necessary to install the Linux JDK before building the JDK from source and the patchset? Can I just use the Linux JDK? Can I build from source and the patchset without first installing the Linux version? Thanks for any help, Mark To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: JDK13
Actually, for binaries aka java, javac the soft link should work just fine. The CLASSPATH variable only comes into play when actually executing class files within the JVM, thus, the variable really has nothing to do with binary execution. Many Java applications require the JAVA_HOME variable to be set to run properly. I don't know what shell you use but for the Korn shell you would put this in your .profile JAVA_HOME=/path/to/where/you/installed/the/jdk. export JAVA_HOME. Regards, Weston On Wednesday 02 October 2002 06:03 pm, Matt Smith wrote: either add /usr/local/jdk1.3.1/bin/ to your PATH, or simply make soft-links (or hard links, at your preference): ln -s /usr/local/jdk1.3.1/bin/java /usr/local/bin/java HOWEVER, I believe (from my minimal Java experience) that the Java utilities will look for CLASS_PATHs and other java Stuff relative to location of java binaries. Executing via link from another location (like /usr/local/bin) may cause issues. But again, my Java experience is minimal, and I may be waaay off. Perhaps someone on this list can clarify? -Matt On Wed, 2002-10-02 at 13:29, MET wrote: Is there any way that I could make java and javac global commands like other programs? So that way I can be in any folder and type java and have it execute the file through the VM? ~ Matthew P.S. I'm picky but thanks a lot -Original Message- From: Matt Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 1:19 PM To: MET Cc: [EMAIL PROTECTED] Subject: Re: JDK13 try: /usr/local/jdk1.3.1/bin/java and /usr/local/jdk1.3.1/bin/javac -Matt On Wed, 2002-10-02 at 13:15, MET wrote: So I installed the JDK13 and would like to start coding. However, java and javac commands seem to do nothing. Do I have to make them alias's to the programs (didn't actually check if they're installed) or something else? Ideas? ~ Matthew To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Character Devices vs. Block Devices
Hello, A quick ls of my dev directory revealed that each one of my hard drives is considered a character device by the system. Example: crw-r- 2 root operator 116, 0x00010002 Aug 19 16:09 /dev/ad0 crw-r- 2 root operator 116, 0 Aug 19 16:09 /dev/ad0a crw-r- 2 root operator 116, 1 Aug 19 16:09 /dev/ad0b crw-r- 2 root operator 116, 2 Aug 19 16:09 /dev/ad0c crw-r- 2 root operator 116, 3 Aug 19 16:09 /dev/ad0d crw-r- 2 root operator 116, 4 Aug 19 16:09 /dev/ad0e crw-r- 2 root operator 116, 5 Aug 19 16:09 /dev/ad0f crw-r- 2 root operator 116, 6 Aug 19 16:09 /dev/ad0g crw-r- 2 root operator 116, 7 Aug 19 16:09 /dev/ad0h What I am confused about, aren't hard drives treated as block devices on most systems? What am I missing? Regards, Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Character Devices vs. Block Devices
So, given this, I am assuming that hard drives are treated as raw devices exclusively? That is, no intermediate buffers are maintained between the user process and the device: From The Design and Implementation of the 4.4 BSD operating system: The character interface does not copy the user data into a kernel buffer before putting then on an I/O queue. Rather, it arranges to have the I/O done directly to or from the address space of the process. Is this valid on FreeBSD? Regard, Weston On Tuesday 01 October 2002 03:19 pm, Weston M. Price wrote: Hello, A quick ls of my dev directory revealed that each one of my hard drives is considered a character device by the system. Example: crw-r- 2 root operator 116, 0x00010002 Aug 19 16:09 /dev/ad0 crw-r- 2 root operator 116, 0 Aug 19 16:09 /dev/ad0a crw-r- 2 root operator 116, 1 Aug 19 16:09 /dev/ad0b crw-r- 2 root operator 116, 2 Aug 19 16:09 /dev/ad0c crw-r- 2 root operator 116, 3 Aug 19 16:09 /dev/ad0d crw-r- 2 root operator 116, 4 Aug 19 16:09 /dev/ad0e crw-r- 2 root operator 116, 5 Aug 19 16:09 /dev/ad0f crw-r- 2 root operator 116, 6 Aug 19 16:09 /dev/ad0g crw-r- 2 root operator 116, 7 Aug 19 16:09 /dev/ad0h What I am confused about, aren't hard drives treated as block devices on most systems? What am I missing? Regards, Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: NEdit dead outta nowhere
YESSS..finally someone else with the same problem I have been having. Though I have not been having the problem with NEdit, I have this problem with all Java related IDE's (JEdit, Eclipse, Forte etc). Solidarity you know. Weston On Monday 30 September 2002 06:44 am, Michael Collette wrote: Normally I'm using NEdit a LOT. It's my primary editor for darn near everything I do under FreeBSD. Just this evening NEdit decided to die on me with the error messages listed below. So far I've attempted the removal of NEdit's config files. I've forced a reinstall of open-motif, gettext and NEdit in the hopes that something may have needed to be recompiled, as was the case when open-motif was recently updated. The only thing I can think of that was a serious change to my system was a recent make world on STABLE the other night. I honestly don't recall if I'd tried to use NEdit since then, as I've been mucking around with lots of offline stuff and trying out some other editors. All of my core apps are up to date with cvs as of this evening. My uname info... 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #0: Wed Sep 11 20:53:48 PDT 2002 Does anyone know what any of the following means?? Should I get in and rebuild world again from a fresh cvsup? Errors when launching NEdit from a command line... === = translation table syntax error: Unknown keysym name: osfActivate ... found while parsing ':KeyosfActivate: ManagerParentActivate()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfBeginLine ... found while parsing ':KeyosfBeginLine: ManagerGadgetTraverseHome()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfActivate ... found while parsing ':KeyosfActivate: ManagerParentActivate()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfHelp ... found while parsing ':KeyosfHelp: ManagerGadgetHelp()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfActivate ... found while parsing ':KeyosfActivate: PrimitiveParentActivate()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfHelp ... found while parsing ':KeyosfHelp: Help()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfActivate ... found while parsing ':KeyosfActivate: PrimitiveParentActivate()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfCancel ... found while parsing ':KeyosfCancel: MenuEscape()' String to TranslationTable conversion encountered errors Cannot convert string FONTLIST to type FontStruct translation table syntax error: Unknown keysym name: osfActivate ... found while parsing ':KeyosfActivate: PrimitiveParentActivate()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfSelect ... found while parsing ':KeyosfSelect: ArmAndActivate()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfPrimaryPaste ... found while parsing ':m KeyosfPrimaryPaste:cut-primary()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfSelect ... found while parsing ':KeyosfSelect: ManagerGadgetSelect()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfSelect ... found while parsing ':KeyosfSelect: MenuBarGadgetSelect()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfActivate ... found while parsing ':KeyosfActivate: ManagerParentActivate()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfHelp ... found while parsing ':KeyosfHelp: MenuHelp()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfSelect ... found while parsing ':KeyosfSelect: KeySelect()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfSelect ... found while parsing ':KeyosfSelect: KeySelect()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name: osfCancel ... found while parsing 'KeyosfCancel: MenuEscape()' String to TranslationTable conversion encountered errors translation table syntax error: Unknown keysym name:
Re: Gaim - KDE
Hello, It's fairly straightforward. Just cd to /usr/ports/net/gaim make all install clean This will build the gaim client. After that you can either start it from a terminal, or set it up on the KDE launcer. Regards, Weston On Sunday 29 September 2002 08:44 am, MET wrote: How do I install Gaim from the ports for a KDE desktop? ~ Matthew To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Books (OT)
If you are really interested in C++, I would recommed Stanley Lipman's C++ Primer as a place to start. Also, for more advanced examples,idioms, etc... I would definitely recommend Scott Meyers books as well as anything by Jim Coplien and Lipmans Inside the C++ Object Model. Regards, Weston On Thursday 26 September 2002 02:32 pm, Frank Heitmann wrote: Hi. I have used FreeBSD for about 6-7 weeks now (great system; I have to admit that I like UNIX much more than Windows) and now that I got a little better with the system in general I wanted to start to program for it, so that I will hopefully be able to help. But as I read through some code I noticed that my C/C++ needs some refreshment and improvement (especially OOP) first. (I haven't really programmed for a year or so, because I first started to study Physics, before I realized that Computer Science (or Informatik here in Germany) is what interests me much more. Before that I have programmed a lot for Windows.) The books I have looked at are: C How To Program C++ How To Program (both from Prentice Hall/Deitel) and: C Programming Language (KR) C++ Programming Language (Stroustrup) The two from Deitel look very good to me (I like the summary and exercises at the end of each chapter and I like the whole layout). The last two also seemed to be very good, but I believe they are more useful as a reference than for learning?! Maybe someone has them on his/her bookshelf and can give a comment? Oh, and sorry for being off-topic, but these mailinglists have rapidily become my only connection to the outside world :) P.S. I have just seen in the handbook that there is a book The Design and Implementation of the 4.4BSD Unix Operating System. Is it useful in connection with the Developers Handbook to understand kernel internals? (Hey, I am at least not absolutly off-topic now :) Cheers, Frank To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Unusual output from dmesg
Hello, I was doing some checking today and found the following as a result of running dmesg: config di sn0 No such device: sn0 Invalid command or syntax. Type `?' for help. config di lnc0 No such device: lnc0 Invalid command or syntax. Type `?' for help. config di ie0 No such device: ie0 Invalid command or syntax. Type `?' for help. config di fe0 No such device: fe0 Invalid command or syntax. Type `?' for help. config di bt0 No such device: bt0 Invalid command or syntax. Type `?' for help. config di aic0 No such device: aic0 Invalid command or syntax. Type `?' for help. config di aha0 No such device: aha0 Invalid command or syntax. Type `?' for help. config di adv0 No such device: adv0 Invalid command or syntax. Type `?' for help. config q Can anyone tell me what is going on here? Thanks. Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Strange Behavior with ALL Java based GUI applications
Hello, I am having an awful time with any sort of Java application that requires a graphical user interface. I am using the native JVM 1.3.1 provided in the ports collection. If I try to run ANY of the following applications: RealPlayer Eclipse JEdit Forte etc. I get errors such as Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing 'KeyosfActivate:ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfBeginLine Warning: ... found while parsing 'KeyosfBeginLine:ManagerGadgetTraverseHome()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing 'KeyosfActivate:ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing 'KeyosfActivate:DrawingAreaInput() ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfUp Warning: ... found while parsing 'KeyosfUp:DrawingAreaInput() ManagerGadgetTraverseUp()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing 'KeyosfSelect:ManagerGadgetSelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfSelect Warning: ... found while parsing 'KeyosfSelect:MenuBarGadgetSelect()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing 'KeyosfActivate:ManagerParentActivate()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfHelp Warning: ... found while parsing 'KeyosfHelp:MenuHelp()' Warning: String to TranslationTable conversion encountered errors Warning: translation table syntax error: Unknown keysym name: osfActivate Warning: ... found while parsing 'KeyosfActivate:PrimitiveParentActivate()' Warning: String to TranslationTable conversion encountered errors The result is that the keyboard becomes completely unusable. This is consistent across ALL Java applications that have some for of GUI other than the deployment tool that comes with the J2EE SDK. I have tried these applications with both the JDK 1.3.1 and the linux-sun 1.4.1 port. I really have no idea what this is happening. Any assistance would be greatly apprecitated. My system info is I am running 4.7 PRE-RELEASE. Thanks. Weston --- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: FreeBSD vs. Linux || Possibly wrong list
Hello, One of the major caveats to the FreeBSD--Linux compatibility is Java applications. This may just be in my case, but I am having absolutely no luck getting a lot of Java based applications to work on FreeBSD that work just fine on Solaris and Linux. Also, multimedia stuff is also problematic. So, if you are a serious Java developer and like using an IDE other than Emacs I would seriously consider before moving to FreeBSD on the desktop. Regards, Weston On Tuesday 24 September 2002 07:03 pm, Jud wrote: -Original Message- From: Erik Trulsson [EMAIL PROTECTED] To: MET [EMAIL PROTECTED] Date: Tue, 24 Sep 2002 20:37:50 +0200 Subject: Re: FreeBSD vs. Linux || Possibly wrong list On Tue, Sep 24, 2002 at 02:24:48PM -0400, MET wrote: [snip] 2) Since FreeBSD offers its 'Linux Compatibility' - will that allow me to use programs that were written on and for a Red Hat version of Linux? With the exceptions of device drivers and things like that, yes. FreeBSD is what I know and love, but now I'm starting to use it as a desktop (KDE 3 / XFree86 4.2) and I just want to make sure that I'm not missing out on people's applications (home based) that seem to only be written for Linux. Most Linux applications should run fine on FreeBSD. Some exceptions undoubtedly exist but those are indeed exceptions rather than the rule. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Just a quick caveat to the generally true statement that Erik makes - (1) If an app hasn't been ported, that may mean there are difficulties getting it to run under FreeBSD. For instance, I'd love to try Valgrind, Kylix and VMWare 3, but I'm guessing their absence from ports means no one's been able to get them working right on FreeBSD yet. (2) I generally find it's best to use the port where one exists - the port has been done by someone who knows a lot more than I do about FreeBSD and the ported app. OTOH, once in a while there's a nice app that no one's gotten around to porting yet - e.g., the Psi Jabber client, before Jonathan Chen was nice enough to do the honors. Or a port will be packaged as part of the GNOME or KDE environments, and I'd prefer to use it without all the baggage; this was true of the Rox-filer file manager, but (happily) no longer. Jud To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: IMHO odd behaviour with jdk-1.3.1p7 and galeon-1.2.6
I absolutely agree. In fact, I have seen wretched behavior from ALL Java applications on FreeBSDthis included using native JDK 1.3.1 and the Linux-Sun port of 1.4.1. For example: JEdit will just not runthe JVM chokes after a few moments of execution. Eclipse (the IDE) just will not work with any sort of regularity Forte dies after a few moments of execution with the same type of errors as JEdit. Basically ANYTHING with a GUI does not work Weston On Monday 23 September 2002 06:18 pm, Esa Karkkainen wrote: Hi all I finally managed to compile jdk-1.3.1p7 and decided to use it with Galeon. I checked java checkbox in Galeon's Settings menu, quit Galeon and started Galeon from command line. Galeon died with following messages: % galeon ** CRITICAL **: file mozilla.cpp: line 134 (gboolean mozilla_preference_set(const char *, const char *)): assertion `new_value != NULL' failed. INTERNAL ERROR on Browser End: Expected a version 5! Version = 0 System error?:: No such file or directory % I managed to fix, ie Galeon starts ok and I can browse non Java websites, the problem I had rather crudely: # cd /usr/local/jdk1.3.1/jre/plugin/i386/ns600 # ls -l total 2656 -rwxr-xr-x 1 root wheel 316234 Sep 23 20:15 libjavaplugin_oji.so* -rwxr-xr-x 1 root wheel 2358425 Sep 23 20:17 libjavaplugin_oji_g.so* # mv libjavaplugin_oji.so libjavaplugin_oji.so.5 # ls -l total 2656 -rwxr-xr-x 1 root wheel 316234 Sep 23 20:15 libjavaplugin_oji.so.5* -rwxr-xr-x 1 root wheel 2358425 Sep 23 20:17 libjavaplugin_oji_g.so* # ln -s libjavaplugin_oji.so.5 libjavaplugin_oji.so # ls -l total 2656 lrwxr-xr-x 1 root wheel 22 Sep 23 20:32 libjavaplugin_oji.so@ - libjavaplugin_oji.so.5 -rwxr-xr-x 1 root wheel 316234 Sep 23 20:15 libjavaplugin_oji.so.5* -rwxr-xr-x 1 root wheel 2358425 Sep 23 20:17 libjavaplugin_oji_g.so* # So then I tried running some of the demos included with JDK. None of the demos work, all they do is open a window stating: This page contains information of a type (application/x-java-vm) that can be only viewed with the approppriate Plug-in. And about:plugins shows only Default Plugin (ie libnullplugin.so). To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Upgrade
Randy, I recently switched to FreeBSD about three weeks ago and I went through the same thing. Now, this is what I did, so it might not be entirely applicable but some of it might help. I installed the minimum amount of software to get the system up and running. The installation procedure actually has an option for this. After that I started looking through the ports collection to see what I really wanted on th system. The ports and packages collection is explained in the handbook. If you don't have a printed copy, it is also on the website. The reason I did the minimum install was so I could learn to use ports and packages and build a system as I went along. To upgrade the operating system itself is surprisingly simple. The basic idea is a) install CVSup (there is tons of stuff about CVSUp in the handbook) b) pull down the latest source tree (stable is probably what you want, this will get you up to 4.7-PRERELEASE. c) build the OS following the instructions in the handbook d) build a custom kernel to suit your hardware and preferences e) install the new kernel f) test the new kernel g) install the new source build There are other ways to do this as well most notably CTM. However, if you have a decent Internet connection I would go with the above plan. Like I said I would STRONGLY, STRONGLY recommend reading the handbook before doing anything. Of course, this list is an excellent resource for questions. I would also recommend subscribing to some of the other lists, most notably the [EMAIL PROTECTED] This list has excellent information regarding the current state of the code. I will say that I am pleased with the system so far. FreeBSD is much more flexible than Linux and better organized. Regards, Weston On Saturday 21 September 2002 03:45 am, Randy Oong wrote: Hi, I''ve bought your FreeBSD(4.5) sometime ago, and only started installation about last week and discover from the web that there is 4.6.2. Please do enlighten on how shall I upgrade, and how shall I do security patches. Thanks, Randy. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
CDROM drive(s) suddenly gone
Hello, I recently built a new kernel to incorporate sound on my machine. Everything seemed to come off without a hitch, no problems whatsoever. I followed the handbook and added a line to my custom kernel. device pcm I purposely left out options PNPBIOS just to make sure everything went all right to begin with After this I made sure to check everything to make sure all my system functionality remained intactagain, there appeared to be no problems. This evening I went to mount one of my cdrom drives and the machine kept giving me a problem saying cd9660: /dev/acd0c : Invalid Argument I checked /etc/fstab and the entry for both /cdrom and /cdrom1 remained the same as before, they are as follows: /dev/acd0c /cdrom cd9660 ro,noauto 0 0 /dev/acd1c /cdrom1 cd9660 ro,noauto 0 0 however, when I took a look a dmesg I found the following: dmesg | egrep acd acd0: CDROM LTN486S at ata1-master PIO4 acd1: CD-RW HL-DT-ST CD-RW GCE-8240B at ata1-slave PIO4 To tell the truth, really have no idea how this happened. Does anyone have any ideas, and more importantly, how do I get the cdrom(s) back? I am running FreeBSD 4.7-PRERELEASE. Thanks for anyhelp anyone can give me. Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: CDROM drive(s) suddenly gone
Well, mount /dev/acd0a does not work. Howerver, I did put in a data disk and it mounted fine with the command mount /cdrom. However, a music CD will not work. Is there some sort of special setting(s) I need to configure to mount music CD's? Thanks again. Weston On Wednesday 18 September 2002 04:03 am, Anish Mistry wrote: On Tuesday 17 September 2002 06:04 pm, Weston M. Price wrote: Hello, I recently built a new kernel to incorporate sound on my machine. Everything seemed to come off without a hitch, no problems whatsoever. I followed the handbook and added a line to my custom kernel. device pcm I purposely left out options PNPBIOS just to make sure everything went all right to begin with After this I made sure to check everything to make sure all my system functionality remained intactagain, there appeared to be no problems. This evening I went to mount one of my cdrom drives and the machine kept giving me a problem saying cd9660: /dev/acd0c : Invalid Argument Try mounting /dev/acd0a. I ran into this problem a while ago. I checked /etc/fstab and the entry for both /cdrom and /cdrom1 remained the same as before, they are as follows: /dev/acd0c /cdrom cd9660 ro,noauto 0 0 /dev/acd1c /cdrom1 cd9660 ro,noauto 0 0 however, when I took a look a dmesg I found the following: dmesg | egrep acd acd0: CDROM LTN486S at ata1-master PIO4 acd1: CD-RW HL-DT-ST CD-RW GCE-8240B at ata1-slave PIO4 To tell the truth, really have no idea how this happened. Does anyone have any ideas, and more importantly, how do I get the cdrom(s) back? I am running FreeBSD 4.7-PRERELEASE. Thanks for anyhelp anyone can give me. Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: CDROM drive(s) suddenly gone
And even weirderwhen I do put in a data cdit is mounted as /dev/acd0c which according to dmesg doesn't even existsyet it is in the /dev directory structure. Weston On Wednesday 18 September 2002 04:03 am, Anish Mistry wrote: On Tuesday 17 September 2002 06:04 pm, Weston M. Price wrote: Hello, I recently built a new kernel to incorporate sound on my machine. Everything seemed to come off without a hitch, no problems whatsoever. I followed the handbook and added a line to my custom kernel. device pcm I purposely left out options PNPBIOS just to make sure everything went all right to begin with After this I made sure to check everything to make sure all my system functionality remained intactagain, there appeared to be no problems. This evening I went to mount one of my cdrom drives and the machine kept giving me a problem saying cd9660: /dev/acd0c : Invalid Argument Try mounting /dev/acd0a. I ran into this problem a while ago. I checked /etc/fstab and the entry for both /cdrom and /cdrom1 remained the same as before, they are as follows: /dev/acd0c /cdrom cd9660 ro,noauto 0 0 /dev/acd1c /cdrom1 cd9660 ro,noauto 0 0 however, when I took a look a dmesg I found the following: dmesg | egrep acd acd0: CDROM LTN486S at ata1-master PIO4 acd1: CD-RW HL-DT-ST CD-RW GCE-8240B at ata1-slave PIO4 To tell the truth, really have no idea how this happened. Does anyone have any ideas, and more importantly, how do I get the cdrom(s) back? I am running FreeBSD 4.7-PRERELEASE. Thanks for anyhelp anyone can give me. Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: CDROM drive(s) suddenly gone
No, I literally just got the data cd to work. Howerver, at this point music CD's will not mount. Weston On Wednesday 18 September 2002 04:41 am, Bob Johnson wrote: On Tuesday 17 September 2002 08:10 pm, Weston M. Price appears to have written: And even weirderwhen I do put in a data cdit is mounted as /dev/acd0c which according to dmesg doesn't even existsyet it is in the /dev directory structure. the c in acd0c says it is the c partition on acd0. By default, the c partition is the entire disk. So yes, if acd0 exists, acd0c exists. And just because it is in /dev, doesn't mean it actually exists. It just means that if it did exist, you would have a way to refer to it. But you are confusing me. I thought you couldn't mount your CDs? Are you having problems with data CDs, or only music CDs? Weston On Wednesday 18 September 2002 04:03 am, Anish Mistry wrote: On Tuesday 17 September 2002 06:04 pm, Weston M. Price wrote: Hello, I recently built a new kernel to incorporate sound on my machine. Everything seemed to come off without a hitch, no problems whatsoever. I followed the handbook and added a line to my custom kernel. device pcm I purposely left out options PNPBIOS just to make sure everything went all right to begin with After this I made sure to check everything to make sure all my system functionality remained intactagain, there appeared to be no problems. This evening I went to mount one of my cdrom drives and the machine kept giving me a problem saying cd9660: /dev/acd0c : Invalid Argument Maybe something you changed had an effect on your device definitions. Try cd /dev sh ./MAKEDEV all to rebuild all of your devices. Try mounting /dev/acd0a. I ran into this problem a while ago. I checked /etc/fstab and the entry for both /cdrom and /cdrom1 remained the same as before, they are as follows: /dev/acd0c /cdrom cd9660 ro,noauto 0 0 /dev/acd1c /cdrom1 cd9660 ro,noauto 0 0 the /etc/fstab entry won't change unless you change it. It doesn't get updated automatically. I assume the mangled lines are caused by an email problem? however, when I took a look a dmesg I found the following: dmesg | egrep acd acd0: CDROM LTN486S at ata1-master PIO4 acd1: CD-RW HL-DT-ST CD-RW GCE-8240B at ata1-slave PIO4 To tell the truth, really have no idea how this happened. Does anyone have What are you saying happened? This looks normal to me. You have two CD drives. Your CDROM gets mounted as /cdrom, and your CD-RW gets mounted as /cdrom1 any ideas, and more importantly, how do I get the cdrom(s) back? I am running FreeBSD 4.7-PRERELEASE. Thanks for anyhelp anyone can give me. Start by rebuilding your devices, as above.If you can mount a data CD as root, then try it as a normal user. If that works, then as far as I know, how you mount a music CD depends on what program you are using to play the music. It might be expecting a link that isn't there, e.g. /dev/cdrom may need to point to /dev/acd0 - Bob Weston To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: CDROM drive(s) suddenly gone
Excellentmusic cd's work fine. My confusion on the subject sorry. Thanks for the help everyone Weston On Wednesday 18 September 2002 04:47 am, Greg Lane wrote: And even weirderwhen I do put in a data cdit is mounted as /dev/acd0c which according to dmesg doesn't even existsyet it is in the /dev directory structure. This is the way it is supposed to work. The device in dmesg will be acd0, while it will be referred to when mounting (as in your fstab) as /dev/acd0c. In a similar fashion, you will notice that your disk drives are detected (if IDE) as ad0, ad1 etc in dmesg, although in /etc/fstab they are listed by partition as /dev/ad0s1a etc when they are being mounted. The additional letter refers to the partition. For the cdrom, the letter c refers to the whole disk. Your initial confusion seems to be due to the fact that you were trying to mount a music cd. This is not what you do, you play music cd's. You can use a variety of things to do this, from the basic, cdcontrol (see the man page), to the graphical interface variety, e.g. xcdplayer in the ports. If you want to extract the music off the CD as a .wav file, you don't mount the cd, you use a ripping tool, like cdda2wav (from the cdrtools port). Hope that makes more sense. Cheers, Greg To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message