Re: c++11 question: clang++ 3.3 future header not found
On Tue, 27 Aug 2013 15:22:49 +0800 (SGT) Quark wrote: % uname -a FreeBSD cobalt 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 % clang++ --version FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd9.2 Thread model: posix test program #include iostream #include future int main( int argc, char* argv[]) { auto f = std::async( [] () { std::cout Hello, World! std::endl; }); f.wait(); return 0; } error received is % clang++ -otest test.cc test.cc:2:10: fatal error: 'future' file not found #include future ^ 1 error generated. I guess clang is re-using system headers which belong to older gcc 4.2 I also have gcc48 installed, how can I make clang to refer gcc48 headers? There two C++ runtime libraries, the old gcc libstdc++ which is used by default and the new C++11 libc++. You can use the latter like this: clang++ -std=c++11 -stdlib=libc++ -otest test.cc signature.asc Description: PGP signature
Re: USB can't mount msdosfs drive
On 2013-06-05 18:33, Joseph Mays wrote: Joseph Mays: Tried several iterations, though it’s clearly a fat32 formatted USB drive. Shown below are the results of fdisk and the mount_msdosfs command. root@warehouse:/root # fdisk /dev/da2 *** Working on device /dev/da2 *** parameters extracted from in-core disklabel are: cylinders=1897 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1897 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 8064, size 30473088 (14879 Meg), flag 80 (active) beg: cyl 1/ head 0/ sector 1; end: cyl 706/ head 115/ sector 52 The data for partition 2 is: UNUSED The data for partition 3 is: UNUSED The data for partition 4 is: UNUSED root@warehouse:/root # mount_msdosfs /dev/da2s1 /usb2 mount_msdosfs: /dev/da2s1: Invalid argument One item of note – I did not notice this before, the but following messages are appearing in dmesg whenever I try to mount this device. Note that I have another msdosfs usb stick mounted in usb0, that mount worked fine first try. WARNING: mount of da2s1 denied due to unsupported optional features That's odd, because that warning comes from ext2fs not msdosfs. Do you use ext2fs anywhere? What version of FreeBSD is this? And is this just a standard installation or do you compile your own kernel? signature.asc Description: OpenPGP digital signature
Re: Where to get source for 10?
On 2013-06-01 02:47, Walter Hurry wrote: On Fri, 31 May 2013 19:27:36 -0400, Ayan George wrote: On 05/31/2013 07:23 PM, Walter Hurry wrote: For 9.1 I can checkout http://svn.freebsd.org/base/releng/9.1/ But where can I get the source for FreeBSD10? I assume it'd be the head branch: http://svn.freebsd.org/base/head/ Thanks. Consider using a mirror: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/svn-mirrors.html signature.asc Description: OpenPGP digital signature
Re: Clang cannot finds standard system lib libssl.a
On 2013-05-31 15:26, Eduardo Morras wrote: I'm trying to compile a single big file project written in C. It compiled fine, without problems in my develop machine (FreeBSD 9.1 STABLE, Clang3.2) but not on the server (FreeBSD 9.1 Release#0, Clang 3.1). The app uses openssl dtls and links to system ssl libs. Am I missing something? For compile I do: %clang gog_server.c -o gog_server -v -I /usr/include/openssl but I get a lot of undefined references to whole openssl lib functions, structs etc in Link phase: ... gog_server.c:(.text+0x9): undefined reference to `CRYPTO_num_locks' gog_server.c:(.text+0x50): undefined reference to `CRYPTO_num_locks' ... CRYPTO_num_locks is in libcrypto so try linking with that in addition to libssl. signature.asc Description: OpenPGP digital signature
Re: More than 32 CPUs under 8.4-P
On 2013-05-18 19:13, Dennis Glatting wrote: I have a 4x16=64 core server running FreeBSD 8.4-P but only two of the CPUs (2x16=32) are enabled. Enabling the other 32 isn't as simple as changing MAXCPU in param.h (apparently) and recompiling. What do I need to do to enable the other 32 cores? Try FreeBSD 9.x. MAXCPU is 64 there. signature.asc Description: OpenPGP digital signature
Re: sata/ata device permission for user
On 2013-04-15 07:49, Beeblebrox wrote: EDIT: I had already placed in /etc/devfs.conf this entry some time ago: # Allow members of group operator to mount cdrom own /dev/cd0 root:operator perm/dev/cd0 0660 Not allowing mount despite all of these adjustments (being tested with data cd and NOT audio cd), which is what I am unable to figure out. The user also needs access to the corresponding pass device which is shown by camcontrol devlist. He also needs access to /dev/xpt0 I think. signature.asc Description: OpenPGP digital signature
Re: How can I commit to FreeBSD current (10.0)
On 2013-04-15 10:00, Oded Shanoon wrote: Hi, I am working in a company called Mellanox. We would like to commit a driver code into the FreeBSD kernel. I have a few obvious questions regarding this issue: What is the process? Do I need a committer? How can I get a committer to review and push my code? When is the final date to commit code to FreeBSD 10.0? I would appreciate any help or guidance... Regards, Oded Shanoon Ofed-FreeBSD team Mellanox Technologies, Raanana Get in touch with vendor-relati...@freebsd.org signature.asc Description: OpenPGP digital signature
Re: pkg search k3b returns nothing
On 2013-04-02 10:35, Leslie Jensen wrote: I've just changed to pkg and thought that I would try out how it works. After copying the pkg.conf.sample to pkg.conf and doing pkg update Updating repository catalogue repo.txz100% 1836 1.8KB/s 1.8KB/s 00:00 I tried the command pkg search k3b and it returned with nothing. Is it so that not all ports are available as packages and that's why I don't get anything? http://www.freebsd.org/news/2012-compromise.html signature.asc Description: OpenPGP digital signature
Re: Installing Matlab
On 01-03-2013 23:55, Vijay Kaul wrote: On Fri, Mar 1, 2013 at 5:27 PM, Tijl Coosemans t...@coosemans.org wrote: On 01-03-2013 22:35, Vijay Kaul wrote: On Fri, Mar 1, 2013 at 3:27 PM, Tijl Coosemans t...@coosemans.org wrote: On 01-03-2013 21:07, Vijay Kaul wrote: On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans t...@coosemans.org wrote: On 15-02-2013 10:36, Tijl Coosemans wrote: On 14-02-2013 22:42, Vijay Kaul wrote: I was wondering if anyone has had any recent (or not-so-recent) experience installing Matlab on FreeBSD/PC-BSD? (Yes, I know about octave.) I'm not entirely new to *nix, but I'm novice enough that I can't seem to get this to work. Perhaps the shortest and simplest solution would be if Mathworks own installer would function, but that runs as a Java Web Start application, and I can't seem to get that working in Opera, Firefox, or Konqueror. The automatic rout having failed, I've downloaded the files manually, and I've tried to run the install script; however, it's failed as well. I found this site: http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html, which claims installation instructions for PC-BSD8.2 boiling down to: open up the shell scripts and take /bin/sh -- /compat/linux/bin/sh. Well, that seems to help a bit, but it also fails because the install script determines my architecture to be x68, while the downloads are for (what they call) a64. (My system is indeed a 64-bit system. Perhaps the above instructions were for an x86 system.) I feel like if I could modify the install script sufficiently, the install would work. My bash scripting is weak, though, and I worry about screwing up my system and/or the installation. There are only a few functions in there that are looking for architecture type, usually with the output from uname. I think fixing those would work...? Could anyone help me get past this point? Thanks in advance! And please, if there's any info I can provide that would be helpful, please just let me know. Output of uname -a: FreeBSD pcbsd-8517 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:45:16 UTC 2012 root@darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC amd64 The install script in question: http://pastebin.com/QkEH1vkF Try creating this link: ln -s ../usr/bin/expr /compat/linux/bin/expr Without this link Linux scripts run the FreeBSD expr which isn't fully compatible. And also, the Linux compatibility layer is 32bit so you need the x86 version of Matlab. Oh, I didn't realize that Linux on FBSD was 32 bit. Thanks for pointing that out. BTW, mathworks has stopped releasing new 32-bit versions of matlab for linux, but you can still get R2012a for 32-bit linux. Regarding the linking advice I have a /bin/expr and /compat/linux/usr/bin/expr. My naivety is showing, but if I did ~ ln -s /usr/bin/expr /compat/linux/usr/bin/expr That's not the same command as above. You're right. I didn't understand at first, but I think the command you suggested assumed that the working directory was /compat/linux/bin. don't I also need to edit my path so that the script would find my link before finding the built-in FBSD command? Currently, my path begins: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin: So I think the script would still use '/bin/expr'. Under Linux compat the order becomes: 1: /compat/linux/sbin/expr 2: /sbin/expr 3: /compat/linux/bin/expr - You need to create this as a link to 7 4: /bin/expr- FreeBSD expr 5: /compat/linux/usr/sbin/expr 6: /usr/sbin/expr 7: /compat/linux/usr/bin/expr - Linux expr 8: /usr/bin/expr ... I don't have #s 1, 2, 5, 6, or 8. I have created 3 as a link to 7. (And, of course, still have 4.) This does, indeed, clear up any errors from expr! Thanks!! snip The next issue is the java errors given. A brief linux install guide I was given instructed: ... (2) install Sun/Oracle java and plugin (32-bit) and you may actually need to use one or two versions back from the current version (depending on what's in the repositories anyway) I have, currently, installed the OpenJDK b27 PBI (recall I'm really on PC-BSD). Any tips or suggestions on where to find and how to install Oracle's Java? Why might I need an older version of Java? (Maybe they mean going back to JRE 6?) How would I know? (I ask about where to get Java, since Oracle claims only to support linux, and the handbook doesn't seem to have a section on it. I'm wondering if there's a right and wrong way to go here.) The Java exceptions I see are at http://pastebin.com/GJCnEXfR. I suspect the installer already contains java, so you don't have to install anything. Yes, the installer *does* in fact seem to contain a jre of its own, a point I had been confused about. The Linux version of java requires linprocfs though so make sure you have the following line in /etc/fstab
Re: Installing Matlab
On 01-03-2013 21:07, Vijay Kaul wrote: On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans t...@coosemans.org wrote: On 15-02-2013 10:36, Tijl Coosemans wrote: On 14-02-2013 22:42, Vijay Kaul wrote: I was wondering if anyone has had any recent (or not-so-recent) experience installing Matlab on FreeBSD/PC-BSD? (Yes, I know about octave.) I'm not entirely new to *nix, but I'm novice enough that I can't seem to get this to work. Perhaps the shortest and simplest solution would be if Mathworks own installer would function, but that runs as a Java Web Start application, and I can't seem to get that working in Opera, Firefox, or Konqueror. The automatic rout having failed, I've downloaded the files manually, and I've tried to run the install script; however, it's failed as well. I found this site: http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html, which claims installation instructions for PC-BSD8.2 boiling down to: open up the shell scripts and take /bin/sh -- /compat/linux/bin/sh. Well, that seems to help a bit, but it also fails because the install script determines my architecture to be x68, while the downloads are for (what they call) a64. (My system is indeed a 64-bit system. Perhaps the above instructions were for an x86 system.) I feel like if I could modify the install script sufficiently, the install would work. My bash scripting is weak, though, and I worry about screwing up my system and/or the installation. There are only a few functions in there that are looking for architecture type, usually with the output from uname. I think fixing those would work...? Could anyone help me get past this point? Thanks in advance! And please, if there's any info I can provide that would be helpful, please just let me know. Output of uname -a: FreeBSD pcbsd-8517 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:45:16 UTC 2012 root@darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC amd64 The install script in question: http://pastebin.com/QkEH1vkF Try creating this link: ln -s ../usr/bin/expr /compat/linux/bin/expr Without this link Linux scripts run the FreeBSD expr which isn't fully compatible. And also, the Linux compatibility layer is 32bit so you need the x86 version of Matlab. Oh, I didn't realize that Linux on FBSD was 32 bit. Thanks for pointing that out. BTW, mathworks has stopped releasing new 32-bit versions of matlab for linux, but you can still get R2012a for 32-bit linux. Regarding the linking advice I have a /bin/expr and /compat/linux/usr/bin/expr. My naivety is showing, but if I did ~ ln -s /usr/bin/expr /compat/linux/usr/bin/expr That's not the same command as above. don't I also need to edit my path so that the script would find my link before finding the built-in FBSD command? Currently, my path begins: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin: So I think the script would still use '/bin/expr'. Under Linux compat the order becomes: 1: /compat/linux/sbin/expr 2: /sbin/expr 3: /compat/linux/bin/expr - You need to create this as a link to 7 4: /bin/expr- FreeBSD expr 5: /compat/linux/usr/sbin/expr 6: /usr/sbin/expr 7: /compat/linux/usr/bin/expr - Linux expr 8: /usr/bin/expr ... The install of the 32-bit linux matlab does still throw the error: expr: illegal option -- r expr: usage: expr [-e] expression presumably because I need to use the linux version. (The install script itself is essentially identical to the last.) It also is throwing some Java exceptions, but maybe let's take this one error at a time! signature.asc Description: OpenPGP digital signature
Re: Installing Matlab
On 01-03-2013 22:35, Vijay Kaul wrote: On Fri, Mar 1, 2013 at 3:27 PM, Tijl Coosemans t...@coosemans.org wrote: On 01-03-2013 21:07, Vijay Kaul wrote: On Fri, Feb 15, 2013 at 11:40 AM, Tijl Coosemans t...@coosemans.org wrote: On 15-02-2013 10:36, Tijl Coosemans wrote: On 14-02-2013 22:42, Vijay Kaul wrote: I was wondering if anyone has had any recent (or not-so-recent) experience installing Matlab on FreeBSD/PC-BSD? (Yes, I know about octave.) I'm not entirely new to *nix, but I'm novice enough that I can't seem to get this to work. Perhaps the shortest and simplest solution would be if Mathworks own installer would function, but that runs as a Java Web Start application, and I can't seem to get that working in Opera, Firefox, or Konqueror. The automatic rout having failed, I've downloaded the files manually, and I've tried to run the install script; however, it's failed as well. I found this site: http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html, which claims installation instructions for PC-BSD8.2 boiling down to: open up the shell scripts and take /bin/sh -- /compat/linux/bin/sh. Well, that seems to help a bit, but it also fails because the install script determines my architecture to be x68, while the downloads are for (what they call) a64. (My system is indeed a 64-bit system. Perhaps the above instructions were for an x86 system.) I feel like if I could modify the install script sufficiently, the install would work. My bash scripting is weak, though, and I worry about screwing up my system and/or the installation. There are only a few functions in there that are looking for architecture type, usually with the output from uname. I think fixing those would work...? Could anyone help me get past this point? Thanks in advance! And please, if there's any info I can provide that would be helpful, please just let me know. Output of uname -a: FreeBSD pcbsd-8517 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:45:16 UTC 2012 root@darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC amd64 The install script in question: http://pastebin.com/QkEH1vkF Try creating this link: ln -s ../usr/bin/expr /compat/linux/bin/expr Without this link Linux scripts run the FreeBSD expr which isn't fully compatible. And also, the Linux compatibility layer is 32bit so you need the x86 version of Matlab. Oh, I didn't realize that Linux on FBSD was 32 bit. Thanks for pointing that out. BTW, mathworks has stopped releasing new 32-bit versions of matlab for linux, but you can still get R2012a for 32-bit linux. Regarding the linking advice I have a /bin/expr and /compat/linux/usr/bin/expr. My naivety is showing, but if I did ~ ln -s /usr/bin/expr /compat/linux/usr/bin/expr That's not the same command as above. You're right. I didn't understand at first, but I think the command you suggested assumed that the working directory was /compat/linux/bin. don't I also need to edit my path so that the script would find my link before finding the built-in FBSD command? Currently, my path begins: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin: So I think the script would still use '/bin/expr'. Under Linux compat the order becomes: 1: /compat/linux/sbin/expr 2: /sbin/expr 3: /compat/linux/bin/expr - You need to create this as a link to 7 4: /bin/expr- FreeBSD expr 5: /compat/linux/usr/sbin/expr 6: /usr/sbin/expr 7: /compat/linux/usr/bin/expr - Linux expr 8: /usr/bin/expr ... I don't have #s 1, 2, 5, 6, or 8. I have created 3 as a link to 7. (And, of course, still have 4.) This does, indeed, clear up any errors from expr! Thanks!! snip The next issue is the java errors given. A brief linux install guide I was given instructed: ... (2) install Sun/Oracle java and plugin (32-bit) and you may actually need to use one or two versions back from the current version (depending on what's in the repositories anyway) I have, currently, installed the OpenJDK b27 PBI (recall I'm really on PC-BSD). Any tips or suggestions on where to find and how to install Oracle's Java? Why might I need an older version of Java? (Maybe they mean going back to JRE 6?) How would I know? (I ask about where to get Java, since Oracle claims only to support linux, and the handbook doesn't seem to have a section on it. I'm wondering if there's a right and wrong way to go here.) The Java exceptions I see are at http://pastebin.com/GJCnEXfR. I suspect the installer already contains java, so you don't have to install anything. The Linux version of java requires linprocfs though so make sure you have the following line in /etc/fstab: linprocfs /compat/linux/proc linprocfs rw 0 0 Then mount linprocfs using: mount /compat/linux/proc The Java exception is caused by a link error though. Can you send the output of: objdump -p /tmp
Re: Installing Matlab
On 14-02-2013 22:42, Vijay Kaul wrote: I was wondering if anyone has had any recent (or not-so-recent) experience installing Matlab on FreeBSD/PC-BSD? (Yes, I know about octave.) I'm not entirely new to *nix, but I'm novice enough that I can't seem to get this to work. Perhaps the shortest and simplest solution would be if Mathworks own installer would function, but that runs as a Java Web Start application, and I can't seem to get that working in Opera, Firefox, or Konqueror. The automatic rout having failed, I've downloaded the files manually, and I've tried to run the install script; however, it's failed as well. I found this site: http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html, which claims installation instructions for PC-BSD8.2 boiling down to: open up the shell scripts and take /bin/sh -- /compat/linux/bin/sh. Well, that seems to help a bit, but it also fails because the install script determines my architecture to be x68, while the downloads are for (what they call) a64. (My system is indeed a 64-bit system. Perhaps the above instructions were for an x86 system.) I feel like if I could modify the install script sufficiently, the install would work. My bash scripting is weak, though, and I worry about screwing up my system and/or the installation. There are only a few functions in there that are looking for architecture type, usually with the output from uname. I think fixing those would work...? Could anyone help me get past this point? Thanks in advance! And please, if there's any info I can provide that would be helpful, please just let me know. Output of uname -a: FreeBSD pcbsd-8517 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:45:16 UTC 2012 root@darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC amd64 The install script in question: http://pastebin.com/QkEH1vkF Try creating this link: ln -s ../usr/bin/expr /compat/linux/bin/expr Without this link Linux scripts run the FreeBSD expr which isn't fully compatible. signature.asc Description: OpenPGP digital signature
Re: Installing Matlab
On 15-02-2013 10:36, Tijl Coosemans wrote: On 14-02-2013 22:42, Vijay Kaul wrote: I was wondering if anyone has had any recent (or not-so-recent) experience installing Matlab on FreeBSD/PC-BSD? (Yes, I know about octave.) I'm not entirely new to *nix, but I'm novice enough that I can't seem to get this to work. Perhaps the shortest and simplest solution would be if Mathworks own installer would function, but that runs as a Java Web Start application, and I can't seem to get that working in Opera, Firefox, or Konqueror. The automatic rout having failed, I've downloaded the files manually, and I've tried to run the install script; however, it's failed as well. I found this site: http://matrossi.blogspot.com/2011/08/installing-matlab-2011a-on-freebsd.html, which claims installation instructions for PC-BSD8.2 boiling down to: open up the shell scripts and take /bin/sh -- /compat/linux/bin/sh. Well, that seems to help a bit, but it also fails because the install script determines my architecture to be x68, while the downloads are for (what they call) a64. (My system is indeed a 64-bit system. Perhaps the above instructions were for an x86 system.) I feel like if I could modify the install script sufficiently, the install would work. My bash scripting is weak, though, and I worry about screwing up my system and/or the installation. There are only a few functions in there that are looking for architecture type, usually with the output from uname. I think fixing those would work...? Could anyone help me get past this point? Thanks in advance! And please, if there's any info I can provide that would be helpful, please just let me know. Output of uname -a: FreeBSD pcbsd-8517 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:45:16 UTC 2012 root@darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC amd64 The install script in question: http://pastebin.com/QkEH1vkF Try creating this link: ln -s ../usr/bin/expr /compat/linux/bin/expr Without this link Linux scripts run the FreeBSD expr which isn't fully compatible. And also, the Linux compatibility layer is 32bit so you need the x86 version of Matlab. signature.asc Description: OpenPGP digital signature
Re: 关于在Freebsd9.0-amd64安装VirtualBox虚拟机的问题
On 10-01-2013 05:56, *;sτóΡ〆~*~ξ wrote: ��请�导 ���骤� # portsnap fetch update # cd /usr/ports/emulators/virtualbox-ose # make install clean �路��认���OK� � pass -build programs pass -Libraries pass -DLLs pass -Programs Pass - install kmk:*** NoRULE to make target '/usr/src/sys/kern/bus_if.m',needed by '/usr/ports/emulators/virtualbox-ose/work/virtualbox-4.0.14_OSE/out/fre ebsd.amd64/release/obj/freebsdgeneratedkernelheaders/bus_if.h. Stop *** error code 2 Stop in /usr/ports/emulators/virtualbox-ose. *** Error code 1 Stop in /usr/ports/emulators/virtualbox-ose. ��# 请�� �请��谢� �人�对���太��谢谢� It needs the FreeBSD source code in /usr/src. signature.asc Description: OpenPGP digital signature
Re: What replaces csup?
On 18-09-2012 14:00, Michael Sierchio wrote: We are really behind the curve here. Git assumes (correctly) that disk space is inexpensive, much cheaper per byte than network bandwidth. By the time we adopt SVN completely, every serious project I know of will have moved from subversion to git. ;-) I have both a git and svn checkout of FreeBSD current and while git contains the full history it takes up less disk space (about 30%): 540M.git 759M.svn signature.asc Description: OpenPGP digital signature
Re: probably stupid questions about select() and FS_SET in a multithreaded environment [ select() failed (Bad file descriptor) ]
On Sunday 16 October 2011 18:18:39 Vikash Badal wrote: Greetings, Can some point me in the correction direction please. I have a treaded socket application that has a problem with select() returning -1. The select() and accept() is taken care of in one thread. The worker threads deal with client requests after the new client connection is pushed to queue. The logged error is : select() failed (Bad file descriptor) getdtablesize = 65536 Sysctls at the moment are: kern.maxfiles: 65536 kern.maxfilesperproc: 65536 code void client_accept(int listen_socket) { ... while ( loop ) { FD_ZERO(socket_set); FD_SET(listen_socket, socket_set); timeout.tv_sec = 1; timeout.tv_usec = 0; rcode = select(listen_socket + 1, socket_set, NULL, NULL, timeout); if ( rcode 0 ) { Log(DEBUG_0, ERROR: select() failed (%s) getdtablesize = %d, strerror(errno), getdtablesize()); loop = 0; sleep(30); fcloseall(); assert(1==0); } if ( rcode 0 ) { remotelen = sizeof(remote); client_sock = accept(listen_socket, . if (msgsock != -1 ) { // Allocate memory for request request = malloc(sizeof(struct requests)); // test for malloc etc ... // set request values ... // // Push request to a queue. } } } ... } void* tcpworker(void* arg) { // initialise stuff While ( loop ) { // pop request from queue If ( request != NULL ) { // deal with request free(request) } } } /code When the problem occurs, i have between 1000 and 1400 clients connected. Questions: 1. do i need to FD_CLR(client_sock,socket_set) before i push to a queue ? 2. do i need to FD_CLR(client_sock, socket_set) when this client request closes in the the tcpworker() function ? 3. would setting kern.maxfilesperproc and kern.maxfiles to higher values solve the problem or just take longer for the problem to re-appear. 4. should is replace select() with kqueue() as from google-ing it seems select() is not that great. The size of an fd_set is limited by FD_SETSIZE which is 1024 by default. So if you pass a descriptor larger than that to FD_SET() or select(), you have a buffer overflow and memory beyond the fd_set can become corrupted. You can define FD_SETSIZE to a larger value before including sys/select.h, but you should also verify if a descriptor is less than FD_SETSIZE before using it with select or any of the fd_set macros and return error if not. kqueue doesn't have this problem, but it's not as portable as select. signature.asc Description: This is a digitally signed message part.
Re: amarok doesn't support id3v2?
On Saturday 20 August 2011 22:31:18 Conrad J. Sabatier wrote: On Sat, 20 Aug 2011 12:10:01 -0500 Conrad J. Sabatier conr...@cox.net wrote: On Sat, 20 Aug 2011 10:22:28 +0200 Tijl Coosemans t...@coosemans.org wrote: I suspect taglib uses id3v2.4 whereas id3lib (used by id3v2 port) only supports id3v2.3. Ah, interesting. Hadn't considered such a possibility. Still, I'm puzzled. If I take a perfectly tagged file, modify it in any way inside amarok, and then try to view the tags again using the command line tool id3v2, all the id3v2 tags have been blown away. Is there that radical a change between the ID3 spec version 2.3 and 2.4 that the tags would be completely unrecognizable anymore by id3v2? I asked about this on the id3v2 mailing list, and apparently, it is quite likely that some of the newer tags/frames in 2.4 are tripping up the older id3v2 tool. Gonna do a little hex dumping, etc. to verify, but it sounds like the probable cause. Any replacement suggestions for id3v2? I've gotten used to using this thing in my little custom scripts. Obviously need something new here. There's audio/tagutil, but as a generic tag editor it's not as powerful as an editor specific for id3 tags. signature.asc Description: This is a digitally signed message part.
Re: amarok doesn't support id3v2?
On Wednesday 17 August 2011 07:49:13 Conrad J. Sabatier wrote: I made a rather startling discovery tonight while playing with amarok 1.4.10 and the id3v2 port. It seems that if I modify an MP3 files's id3 tags in amarok, it deletes any existing id3v2 tags, leaving only id3v1 tags on the file (as verified with the id3v2 command line tool). This just seems wrong to me. If I understand correctly, taglib, which is used by amarok, does support id3v2, so why isn't amarok taking advantage of this facility? I rebuilt and reinstalled amarok, just to see if it would make any difference, but I'm still seeing the same behavior. I also installed and tried the audio/juk port (also one the of KDE3 multimedia family of packages, and also using taglib), and am seeing the same thing there as well. No id3v2 tags, only id3v1. What's up with this? Anyone? I suspect taglib uses id3v2.4 whereas id3lib (used by id3v2 port) only supports id3v2.3. signature.asc Description: This is a digitally signed message part.
Re: Redirect sound of flash plugin?
On Friday 12 August 2011 17:15:04 Ross wrote: Is it possible to redirect sound of flash plugin? I am running firefox via ssh. Currently I successfully redirected sound of other applications using NAS. How can I do the same with flash? Maybe intercept sound some how. The flash plugin sound goes through libflashsupport, which is a small open source library that allows anyone to implement any sound backend. The libflashsupport currently installed by the flash plugin port (/compat/linux/usr/lib/libflashsupport.so) only supports OSS now. With any luck somebody has already implemented NAS support and all you have to do is replace this library. In case you want to implement it yourself, you can find the source code for our (slightly patched) libflashsupport at http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/127839 Note that the library has to be compiled as a Linux library, not a FreeBSD one. An alternative would be to experiment with libaudiooss, which allows capturing OSS output from any program and send it over NAS. This project looks abandoned though. signature.asc Description: This is a digitally signed message part.
Re: how to fix bad superblock
On Monday 18 July 2011 16:49:25 DA Forsyth wrote: After a hardrive let the smoke out last week, part of a 4 drive RAID array, I am now battling to get back into the array. I have replaced the bad drive and it has been rebuilt (Intel Matrix Raid on the motherboard). some partitions are ok but had lots of errors fsck fixed, others report ** /dev/ar0s1f BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE it then asks if it must look for alternates but claims 32 is not one and stops. All my partitions are UFS so why doesn't it look at block 160? You may want to ask your question on the freebsd-fs mailing list. signature.asc Description: This is a digitally signed message part.
Re: /usr/include/machine/endian.h:123: syntax error
On Thursday 16 December 2010 07:49:41 Dennis Glatting wrote: While compiling a port... btw uname -a FreeBSD btw 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #55: Sat Dec 11 22:48:59 PST 2010 r...@btw:/usr/src/sys/amd64/compile/BTW amd64 btw# portupgrade devel/libgdata snip GISCAN gdata/GData-0.0.gir /usr/include/machine/endian.h:123: syntax error, unexpected '{' in ' return (__extension__ ({ register __uint64_t __X = (_x); __asm (bswap %0 : +r (__X)); __X; }));' at '{' I couldn't reproduce this. Do you have any special CFLAGS perhaps? signature.asc Description: This is a digitally signed message part.
Re: binutils problem? WAS [Re: static linking error: ELF binary type 0 not known. Exec format error. Binary file not executable.]
On Monday 06 December 2010 16:16:30 Anton Shterenlikht wrote: On Mon, Dec 06, 2010 at 02:06:22PM +0100, Tijl Coosemans wrote: On Monday 29 November 2010 14:04:16 Anton Shterenlikht wrote: - Forwarded message from Marcel Moolenaar xcl...@mac.com - On Nov 10, 2010, at 5:32 AM, Anton Shterenlikht wrote: [ia64] ia64% file a.out a.out: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), statically linked, not stripped [amd64] amd64% file a.out a.out: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 9.0 (900023), not stripped The branding on ia64 is wrong. The executable is not marked as being a FreeBSD executable. It's declared as SYSV, whereas on amd64 it's properly declared as FreeBSD. This is a binutils problem. Anybody here can explain better what Marcel meant by binutils problem, and how to fix it? I've binutils-2.20.1_3 installed from devel/binutils. As a workaround you could manually brand the executable: brandelf -f 9 a.out this works fine. A fix has been committed to CURRENT, 8-STABLE and 7-STABLE. You should no longer have to brand executables manually. signature.asc Description: This is a digitally signed message part.
Re: binutils problem? WAS [Re: static linking error: ELF binary type 0 not known. Exec format error. Binary file not executable.]
On Monday 29 November 2010 14:04:16 Anton Shterenlikht wrote: - Forwarded message from Marcel Moolenaar xcl...@mac.com - On Nov 10, 2010, at 5:32 AM, Anton Shterenlikht wrote: [ia64] ia64% file a.out a.out: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), statically linked, not stripped [amd64] amd64% file a.out a.out: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 9.0 (900023), not stripped The branding on ia64 is wrong. The executable is not marked as being a FreeBSD executable. It's declared as SYSV, whereas on amd64 it's properly declared as FreeBSD. This is a binutils problem. Anybody here can explain better what Marcel meant by binutils problem, and how to fix it? I've binutils-2.20.1_3 installed from devel/binutils. As a workaround you could manually brand the executable: brandelf -f 9 a.out signature.asc Description: This is a digitally signed message part.
Re: linking against shared libraries not in default path
On Monday 29 November 2010 14:50:59 Anton Shterenlikht wrote: I compiled some numerical libraries under my home directory, including static and shared libs. The shared lib is % ls ./src/libslatec.so.1 ./src/libslatec.so.1 % Now I'd like to test shared libraries, so I do % gfortran45 -o test01.x test01.o qc6a.o -L./src/ -lslatec % ./test01.x /libexec/ld-elf.so.1: Shared object libslatec.so.1 not found, required by test01.x % How can I tell the executable to look for a shared library in a specific directory? I tried setting LIBRARY_PATH, but it didn't help. The name of the variable is LD_LIBRARY_PATH. It is described in the rtld(1) manpage. You can also add it to the executable using -R as in: % gfortran45 -o test01.x test01.o qc6a.o -L./src/ -Rfull path -lslatec signature.asc Description: This is a digitally signed message part.
Re: Why compositing gets disabled in KDE4?
On Saturday 28 August 2010 08:37:53 Yuri wrote: It worked before on the same system (~3 months ago). But after some updates of everything (kernel/nvidia driver/kde4) it gets disabled from kde4 startup. Pressing 'Resume Compositing' doesn't help. Message pops up that some application disabled compositing, press Alt-Shift-F12. But this doesn't help either. Any idea why this feature is broken? FreeBSD-8.1-STABLE amd64 nvidia-driver-195.36.15 GeForce 9400GT kde-4.4.5 You should post your /var/log/Xorg.0.log and /etc/X11/xorg.conf to the list. signature.asc Description: This is a digitally signed message part.
Re: Panic or deadlock with Intel graphics
On Thursday 26 August 2010 05:55:42 Rem P Roberti wrote: In an attempt to diagnose why my Thinkpad R51 completely locks up when trying to access X I have done the following. I built a debugging kernel, with KDB, DDB, WITNESS, INVARIANT*, AND DIAGNOSTIC in addition to *BREAK_TO_DEBUGGER. None of these things have yielded any progress in isolating the issue. Note that replacing the 'intel' driver with the 'vesa' driver in /etc/X11/xorg.conf does not cause the computer to hang. The problem appears to be specific to the intel driver. Also, I have been unable to get a crash report (which is what we were hoping to see in /var/crash) regardless of the debugging options built into the kernel. I have attached the output of 'uname -a', 'dmesg', and 'pciconf -lv' to this post. It could be related to DRI, so try to disable it in /etc/X11/xorg.conf: Section Module Disable dri Disable dri2 EndSection signature.asc Description: This is a digitally signed message part.
Re: Xorg Problems
Dear Sir/Madam, Your email was unable reach the intended person that you were sending it to. For more information on our business please click on the following link: [1]Click here for our website We look forward to your continued business in the future. Regards, Webmaster References 1. http://www.xpbargains.net/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Xorg Problems
On Sunday 22 August 2010 06:22:48 Fred Boatwright wrote: Eitan Adler wrote: The actual problem I am having is that startx produces only a completely black screen.  Xorg -config xorg.conf.new -retro  produces the expected grid and mouse pointer.  A .xinitrc file is supposed to start a window manager. Modern X.org installs don't show a default window manager (so a black screen is expected). What is the contents of your .xinitrc file? The .xinitrc file: xrdb xsetroot -solid gray xterm -geometry +0-100 xconsole -geometry -0+0 -fn 5x7 #exec olvwm #complained about a missing font exec fvwm I have also tried twm. This file was generated from an example in the Handbook. Check if you actually have those programs installed. If not, you need to install these ports: x11/xrdb, x11/xsetroot, x11/xterm, x11/xconsole, x11-wm/fvwm. signature.asc Description: This is a digitally signed message part.
Re: Xorg Problems
On Sunday 22 August 2010 06:22:48 Fred Boatwright wrote: The .xinitrc file: xrdb xsetroot -solid gray xterm -geometry +0-100 xconsole -geometry -0+0 -fn 5x7 #exec olvwm #complained about a missing font exec fvwm Is this file executable? signature.asc Description: This is a digitally signed message part.
Re: Documentation on how to build 32bit applications on amd64?
On Saturday 14 August 2010 00:57:43 Yuri wrote: Should I make a patch, or maybe further discuss on hack...@? There are patches for CURRENT here: http://lists.freebsd.org/pipermail/freebsd-arch/2010-July/010470.html signature.asc Description: This is a digitally signed message part.
Re: Is it safe to modify Wine's makefile to allow it to install on amd64?
On Saturday 26 June 2010 01:22:16 Caleb Stein wrote: Wine is configured to install only on i386, and I use amd64. I don't want to reinstall with i386, so I would like to know if it is safe to modify Wine's makefile and install it on amd64. If you want to run 32 bit Windows programs you should have a look at: http://wiki.freebsd.org/Wine#head-6963d527c173e57b1567e881305b544d33435b6d Support for 64 bit Windows programs has been added in Wine 1.2, but as far as I know, nobody has ported or even tested that on FreeBSD yet. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Is it safe to modify Wine's makefile to allow it to install on amd64?
On Saturday 26 June 2010 18:41:06 Caleb Stein wrote: On Sat, 26 Jun 2010 09:39:04 -0700, Tijl Coosemans wrote: On Saturday 26 June 2010 01:22:16 Caleb Stein wrote: Wine is configured to install only on i386, and I use amd64. I don't want to reinstall with i386, so I would like to know if it is safe to modify Wine's makefile and install it on amd64. If you want to run 32 bit Windows programs you should have a look at: http://wiki.freebsd.org/Wine#head-6963d527c173e57b1567e881305b544d33435b6d Support for 64 bit Windows programs has been added in Wine 1.2, but as far as I know, nobody has ported or even tested that on FreeBSD yet. Umm, wouldn't it be a lot easier to just modify the makefile and change ONLY_FOR_ARCHS to amd64 instead of i386? I need to know if that will destroy my system. You would end up with an amd64 version of Wine that only runs 64 bit programs, which is untested on FreeBSD and probably not what you want. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: using TTF fonts in X
On Sunday 23 May 2010 18:46:38 Eitan Adler wrote: I have a folder with a bunch of TTF fonts. when I run mkfontdir the fonts.dir file is just a 0 and when I run xset +fp . I get % xset +fp . xset: bad font path element (#23), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax % cat fonts.dir 0 % ls -laod . fonts.dir drwxr-xr-x 2 eitan eitan - 14336 May 23 18:54:55 2010 ./ -rw-r--r-- 1 eitan eitan - 2 May 23 18:55:32 2010 fonts.dir For TTF fonts you have to create a fonts.scale file first. Check the mkfontdir(1) and mkfontscale(1) manpages. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: xfce4 and xorg-7.5
On Sunday 02 May 2010 18:30:39 Carmel wrote: OK, I really hate answering my own post; however, I did get it to work. I did the following: 1) pkg_delete -dfv xfce4-settings\* I then reinstalled the port. I followed the same procedure with xfce4-panel and libICE I rebooted the system and all is well (at least right now). I have no idea what the problem is (was); however, one of those three programs was obviously broken. Have you tested in between those and it only started to work after libICE? Or did you rebuild all in one go? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: xfce4 and xorg-7.5
On Sunday 02 May 2010 19:24:13 Warren Block wrote: On Sun, 2 May 2010, Carmel wrote: Actually, first I rebuilt 'dbus' and rebooted the system. No success. Then I rebuilt xfce4-panel and xfce4-settings and attempted to start Xfce4 without success. Finally, I rebuilt libICE as described above, rebooted the system and started Xfce4 successfully. I think the key is to delete the package before attempting to build/install it. It might be picking up an old lib or some such think. Lately that seems to be a common problem. I pkg_deleted all three, rebuilt libICE (because it's a requirement for xfce4-settings) and then the other two... and it still has the problem. Shouldn't that be xfce4-session instead of xfce4-settings? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Enough Is Enough
On Saturday 27 March 2010 18:20:28 Programmer In Training wrote: Ever since I installed jpeg-8 I have had nothing but problems. I ran portupgrade -a hoping to take care of all those problems, well no such luck. Let's start with the first error I caught: libqt /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_start_decompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_resync_to_rest...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_read_scanli...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_start_compr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_finish_compr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_finish_decompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_createcompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_set_defau...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_read_hea...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_createdecompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_std_er...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_destroy_compr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_destroy_decompr...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_write_scanli...@libjpeg_7.0' /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_set_qual...@libjpeg_7.0' *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20100324-4351-6tihzj-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=qt-copy-3.3.8_10 UPGRADE_PORT_VER=3.3.8_10 make ** Fix the problem and try again. The next error was for OOo (for which I need to follow the directions and email the maintainer). After portupgrade -a reaches the end (apparently, as it exits): --- Skipping 'editors/openoffice.org-3' (openoffice.org-3.1.1) because it has already failed ** Listing the failed packages (-:ignored / *:skipped / !:failed) - textproc/docbook-xml-440 (docbook-xml-4.4_1) - textproc/docbook-sk (docbook-sk-4.1.2_4) ! x11-toolkits/qt33 (qt-copy-3.3.8_10) (linker error) * audio/arts (arts-1.5.10_2,1) * devel/sdl12 (sdl-1.2.14,2) * graphics/sdl_image (sdl_image-1.2.10) - textproc/docbook-xml-430 (docbook-xml-4.3) * multimedia/ffmpeg (ffmpeg-0.5_2,1) * multimedia/vlc (vlc-1.0.5,3) * graphics/gegl (gegl-0.0.22_6) * graphics/gimp-app (gimp-app-2.6.8,1) * graphics/py-gimp (py26-gimp-app-2.6.8) * print/gimp-gutenprint (gimp-gutenprint-5.2.4) * print/scribus (scribus-1.3.3.13_1) * security/pinentry (pinentry-0.7.6_2) * sysutils/k3b (k3b-1.0.5_2) * multimedia/libxine (libxine-1.1.16.3_2) * multimedia/phonon-xine (phonon-xine-4.3.1_3) * games/gcompris (gcompris-8.4.12_3) ! editors/openoffice.org-3 (en-openoffice.org-US-3.1.1) (configure error) * editors/openoffice.org-3 (openoffice.org-3.1.1) A good deal of these (including Scribus and GIMP and a few others I believe) are from errors with my upgrading from jpeg-7 to jpeg-8. I was ready for many, many days of compiling (mainly because of OOo). Instead I'm lucky to go 36 hours total. Why has upgrading my jpeg library completely BROKEN so many apps? I cannot even start scribus now. /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by scribus Enough is enough. I've been trying to fix this problem on my own and I cannot. It is not from a lack of trying or looking to solve this issue. In /usr/ports/UPDATING look for the 20100205 entry for users of Qt 3 and KDE 3. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 8 / amd64 / Xorg / nvidia GeForce 5200
On Thursday 25 March 2010 04:14:09 Tim Gustafson wrote: My workstation runs FreeBSD 8.0-STABLE amd64. I have Xorg 1.6.5 and an nVidia GeForce 5200 dual head video card. Currently the first head of the card is operating well using the nv driver. I tried to compile the nvidia-driver port, but it tells me that I need nvidia-driver-173 because the 5200 chipset isn't supported by the current driver. When I go to compile nvidia-driver-173 it tells me that it is not supported under the amd64 architecture. I can't switch to an i386 kernel because I need the amd64 architecture to take advantage of all my RAM and also because I am using ZFS on this workstation, which more or less requires the amd64 architecture. So, I have two questions: 1. Is there any way to get the nvidia-driver-173 port to work with my amd64 OS? 2. Is there any way to get the second head of the 5200 video card to work using the nv driver? I tried adding a second device section to xorg.conf but the system errors out telling me that it tried to use conflicting hardware. I've attached both my xorg.conf and my Xorg.0.log file to this message. For dual head you need xrandr 1.2 I believe and I'm not sure the nv driver supports that for your card. You could check by running xrandr in a terminal window. It should list the different outputs of your graphics card. In my case: Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 1280 VGA-0 disconnected (normal left inverted right x axis y axis) LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1280x800 60.0*+ 1280x720 59.9 1152x768 59.8 1024x768 60.0 59.9 800x60060.3 59.9 640x48059.9 59.4 S-video disconnected (normal left inverted right x axis y axis) This means I have outputs VGA-0, LVDS and S-video. All you need in xorg.conf is a monitor section for each of these outputs with the Identifier string matching an output name. Section Monitor Identifier Ouput0 # set this to an output like VGA-0 VendorName NEC ModelName MultiSync LCD 195VX HorizSync 30.0 - 50.0 VertRefresh 56.0 - 63.0 Option DPMS EndSection Section Monitor Identifier Output1 # set this to an output like VGA-1 VendorName NEC ModelName MultiSync LCD 195VX HorizSync 30.0 - 50.0 VertRefresh 56.0 - 63.0 Option DPMS Option RightOf Output0# set this to an output like VGA-0 EndSection If the nv driver doesn't seem to support xrandr 1.2, you could give the nouveau driver a try. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: MATLAB in FreeBSD
On Monday 04 January 2010 13:27:06 gianrico.lam...@lamia.infm.it wrote: to install MATLAB i have followed striclty what FreeBSD doc suggests (even if this doc is not updateed and contains erros) @ http://www.freebsd.org/doc/en/books/handbook/linuxemu-matlab.html. To avoid the SSE2 problem I followed: http://lists.freebsd.org/pipermail/freebsd-questions/2009-July/202248.h to run succesfully the installation. But, at the end of the installation, when I have to activate the licence, the systems diplay an error that is explained in the /tem/aws.log file as : (Jan 04, 2010 12:58:48)There was an unexpected exception. See the log file (/tmp/aws.log) for more details. (Jan 04, 2010 12:58:56)java.lang.UnsatisfiedLinkError: /usr/compat/linux/usr/local/matlab/bin/glnx86/libinstutil.so: libstdc++.so.6: cannot handle TLS data (**) and the system stops!! I tried to run anyway the matlab script but an erro occurred for the sam reason of SSE2 check. Thus I corrected it by following : http://www.mail-archive.com/freebsd-questions%40freebsd.org/msg214774.html the program starts with the licence request but the same problem as in (**) still diplays. I have searched for several days in the net for a solution but I found nothing. I'm desperate because I need matlab. I have the licence. I run it before on the same laptop. I changed to FreeBsd since Ubuntu was too bad for my Philips Freevents X59. But now I do not know how to solve this problem. Please, could you help me before I will forced to change another time the operating system? What version of FreeBSD and Matlab do you use? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: MATLAB in FreeBSD
On Monday 04 January 2010 15:28:03 gianrico.lam...@lamia.infm.it wrote: On Mon, 4 Jan 2010 15:12:35 +0100, Tijl Coosemans t...@coosemans.org wrote: On Monday 04 January 2010 13:27:06 gianrico.lam...@lamia.infm.it wrote: to install MATLAB i have followed striclty what FreeBSD doc suggests (even if this doc is not updateed and contains erros) @ http://www.freebsd.org/doc/en/books/handbook/linuxemu-matlab.html. To avoid the SSE2 problem I followed: http://lists.freebsd.org/pipermail/freebsd-questions/2009-July/202248.h to run succesfully the installation. But, at the end of the installation, when I have to activate the licence, the systems diplay an error that is explained in the /tem/aws.log file as : (Jan 04, 2010 12:58:48)There was an unexpected exception. See the log file (/tmp/aws.log) for more details. (Jan 04, 2010 12:58:56)java.lang.UnsatisfiedLinkError: /usr/compat/linux/usr/local/matlab/bin/glnx86/libinstutil.so: libstdc++.so.6: cannot handle TLS data (**) and the system stops!! I tried to run anyway the matlab script but an erro occurred for the sam reason of SSE2 check. Thus I corrected it by following : http://www.mail-archive.com/freebsd-questions%40freebsd.org/msg214774.html the program starts with the licence request but the same problem as in (**) still diplays. I have searched for several days in the net for a solution but I found nothing. I'm desperate because I need matlab. I have the licence. I run it before on the same laptop. I changed to FreeBsd since Ubuntu was too bad for my Philips Freevents X59. But now I do not know how to solve this problem. Please, could you help me before I will forced to change another time the operating system? What version of FreeBSD and Matlab do you use? for FreeBSD: 7.2 and Kde 3.5 (all integrated in FreeDesktopSD) matlab 2008a In that case I suspect you have to enable the newer linux compat layer. The default in FreeBSD 7.2 doesn't support TLS (the (**) error above). To do this, do the following: * Remove Matlab and all linux* ports you have installed. pkg_delete linux\* * Add this line to /etc/sysctl.conf: compat.linux.osrelease=2.6.16 * Matlab probably also needs linprocfs mounted, so add this line to /etc/fstab if it isn't there yet: linprocfs /compat/linux/proc linprocfs rw 0 0 * Reboot. * Add these two lines to /etc/make.conf: OVERRIDE_LINUX_BASE_PORT=f10 OVERRIDE_LINUX_NONBASE_PORTS=f10 * Install emulators/linux_base-f10. * Install f10 versions of the linux* ports if you need them, e.g. instead of graphics/linux-png install graphics/linux-f10-png if you need it. * Install Matlab. You'll still have the SSE2 error, but the TLS error should be gone. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: MATLAB in FreeBSD
On Monday 04 January 2010 20:02:56 gianrico.lam...@lamia.infm.it wrote: I have followed your suggestions but the installer does not start anymore. It diplays the following: [gianr...@gianrico /]$ /compat/linux/bin/sh /home/gianrico/CDmatlab/install expr: illegal option -- r usage: expr [-e] expression /home/gianrico/CDmatlab/install: line 197: [: -ne: unary operator expected /home/gianrico/CDmatlab/install: line 705: /lib/libc.so.6: cannot execute binary file --- An error status was returned by the program 'xsetup', the X Window System version of 'install'. The following messages were written to standard error: /usr/home/gianrico/CDmatlab/update/bin/glnx86/xsetup: error while loading shared libra ries: libXp.so.6: cannot open shared object file: No such file or directory Attempt to fix the problem and try again. If X is not available or 'xsetup' cannot be made to work then try the terminal version of 'install' using the command: install* -torINSTALL* -t --- Sorry! Setup aborted . . . But I have noticed that the systems now has /lib/libc.so.7 instead of /lib/libc.so.6. For this reason I changed /lib/libc.so.6 into /lib/libc.so.7 everywhere in the install command. The permission problems remeined. Thus I have tried to change permissions on /lib/libc.so.7 file with a) konqueror superuser, b) teminal superuser, c) sudo . Result: there is now way to change permissions of that library. what shall I do? /lib/libc.so.7 is a FreeBSD library. /lib/libc.so.6 can found under /compat/linux and Linux programs will use that one. You should undo any changes you made in the install script. To fix the expr error you have to create the following symlink: ln -s ../usr/bin/expr /compat/linux/bin/expr This is perhaps something the linux_base-f10 port should have done for you. To emulation@: Linux has expr under /usr/bin and FreeBSD has it under /bin, so running expr in a Linux shell picks up the FreeBSD version causing errors about unsupported command line options. It would be nice if the linux_base-f10 port created the symlink above to fix this. For the error about libXp.so.6, check if you have the port x11/linux-f10-xorg-libs installed. I was wonder if I have to install FreeBSD_8 and KDE 4 ( as in new release PC-BSD galileo 7.1) to solve problems of linux library compatibility or just FreeBSD and after KDE4 (that seems the same)?? No, you'll have these same problems there. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: chroot SSH users.
On Sunday 27 December 2009 18:16:47 krad wrote: fairly easy if you read the man page 8) I wrote this howto for sun boxes at work but it was using openssh so same rules should apply. Make sure chroot support was compiled in though 1. Dont bother with sun ssh it wont work. Opensolaris and later solaris 10 are bundled with openssh though. 2. Make sure openssh version is 5 or above (some 4s do work but 5 better) 3. Add these lines to sshd config Match Group sftponly ChrootDirectory /home/chroot/%u X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp 4. Make sure the Subsystem line is this Subsystem sftpinternal-sftp 5. create the sftponly group on the system 6. put the relevent users in this group. be careful as you will stop them being able to ssh in!! 7. Dead important this bit !!! mkdir -p /home/chroot/user/home/user/.ssh chown -R root /home/chroot/user chown -R user /home/chroot/user Shouldn't this line be: chown -R user /home/chroot/user/home/user chmod -R 755 /home/chroot/user /home/chroot/user/home/user ln -s /home/chroot/user/home/user /home/. 8. Put their ssh keys in /home/chroot/user/home/user/.ssh All should now work ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: WINE on 6.3
On Saturday 05 December 2009 13:47:00 Andrea Venturoli wrote: Is WINE usable on 6.3/i386? I cannot seem to start any win32 program and before I spend time into it, I thought I just ask. You probably need the FreeBSD 6.x patch at http://wiki.freebsd.org/Wine ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: 7.2R and Firefox 3.5.3 and Flash/Java - something odd I can't quite figure out...
On Sunday 29 November 2009 22:47:56 Kurt Buff wrote: I've gotten Flash and Java going with Firefox, as root, using the directions here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html However, I can't get it going as a standard user. When I run 'nspluginwrapper -v -a -i' I get the following: Auto-install plugins from /usr/local/lib/browser_plugins Looking for plugins in /usr/local/lib/browser_plugins Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin Looking for plugins in /usr/local/lib/npapi/linux-flashplugin Install plugin /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so ... already installed system-wide, skipping Auto-install plugins from /home/kurt/.mozilla/plugins Looking for plugins in /home/kurt/.mozilla/plugins and 'about:plugins' only shows libnullplugin.so as enabled for all MIME types. 'nspluginwrapper -l' shows /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so Original plugin: /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so Wrapper version string: 1.2.2 Check the permissions on /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Is ALSA support working in 72?
On Monday 31 August 2009 21:56:50 Yuri wrote: I tried new skype-2.1.0.47 on FreBSD-72. (I have linux-alsa-lib-1.0.10.3_2 installed.) Skype starts but gives the errors below when I try to make a voice call. Previous versions of Skype came in OSS flavor but now it seems to be dropped and it's only available for ALSA. Why would ALSA library fail? - errrors - ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0' ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0' ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default /usr/ports/distfiles/skype_static-2.1.0.47/skype: relocation error: /usr/ports/distfiles/skype_static-2.1.0.47/skype: symbol snd_device_name_hint, version ALSA_0.9 not defined in file libasound.so.2 with link time reference ALSA has never worked AFAIK. The library is only there for applications that link to it, but don't actually use it. It might be worth a try to install the alsa-plugins-oss RPM and then configure ALSA lib to use the FreeBSD OSS device. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Flash10 with 8.0-BETA2 and Firefox 3.5.2
On Thursday 20 August 2009 03:41:05 Warren Block wrote: On 8.0-BETA2 with www/linux-f10-flashplugin10 and www/firefox35 installed. As per the Handbook, a soft link in /usr/local/lib/browser_plugins to /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so. nspluginwrapper -a -i runs normally. linprocfs mounted, and nspluginwrapper -l shows /usr/local/lib/browser_plugins/libflashplayer.so. But about:plugins shows nothing but the default plugin. Is something else necessary? I think you ran nspluginwrapper as root. If you run it as a normal user it puts the wrapped plugin in ~/.mozilla/plugins where Firefox picks it up. If you run it as root it puts it in /usr/local/lib/browser_plugins. Firefox 2.x and some other browsers scan this directory, but newer versions don't for some reason. You have to create a symlink in /usr/local/lib/firefox3/plugins/ to the npwrapper plugin in /usr/local/lib/browser_plugins/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Extreme filesystem performance decrese going from FreeBSD4 to FreeBSD7
On Tuesday 12 May 2009 20:16:21 Andy Dills wrote: A customer of a customer needed to expand the size of the filesystem on a webserver they run, and since it was still running 4.11, they decided to go ahead and upgrade to 7.1. Unfortunately, they have seen the performance decrease significantly. Now, under 7.1, numerous perl processes will queue up (from their web applications), the load average will be in the 40s to 90s, and according to top they perl scripts are commonly in the ufs state, which I assume means stuck waiting for read or write responses. I have also experienced pretty abysmal read performance from the array, using dd...we're talking sub 1MBps. So, my assumption is that something is wrong on the filesystem layer. When I look at the CPU utilization in top, I see that 80-90% is constantly used by system. However, when I look at iostat, I see very low numbers for the raid, in fact across the board. It's a Dell server with a Perc4/Di RAID controller, which uses the amr driver. They upgraded to larger, 15k rpm ultra 320 disks (from smaller 15k rpm ultra 320 disks). They made a backup of their web root, which is a seperate partition, using dump to a temporary drive, then swapped in the new disks, installed FreeBSD 7.1, and restored their webroot to a partition on the new array. Does anybody have any insight into what could be going on here? I believe there was a performance regression in 7.1 for SCSI disks. I don't know if the amr driver was affected but the issues should be resolved in FreeBSD 7.2 so you might want to give that a try. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: French-Canadian Keyboard keyboard switching
On Friday 01 May 2009 15:57:35 PJ wrote: The physical keyboard is a Compaq, identical layout of the Logitech I am using on this XP. This one is set to switch beween us canadian multi. But the ca(multi) setting does not work either alone or with the us for switching. The accent keys are dead. Maybe the option for the keys should be set to nodeadkeys. But this is not worth pursuing as I am spending too much time on this as is. I have things under control, it just seems strange that the ca(multi) cannot be installed. Could be fluxbox? Oh well. I just tried ca(multi) under fluxbox and it just works. What version of Xorg do you have (output of X -version)? And what is the output of grep xkb_symbols /usr/local/share/X11/xkb/symbols/ca? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: French-Canadian Keyboard keyboard switching
On Friday 01 May 2009 16:41:52 PJ wrote: Tijl Coosemans wrote: On Friday 01 May 2009 15:57:35 PJ wrote: The physical keyboard is a Compaq, identical layout of the Logitech I am using on this XP. This one is set to switch beween us canadian multi. But the ca(multi) setting does not work either alone or with the us for switching. The accent keys are dead. Maybe the option for the keys should be set to nodeadkeys. But this is not worth pursuing as I am spending too much time on this as is. I have things under control, it just seems strange that the ca(multi) cannot be installed. Could be fluxbox? Oh well. I just tried ca(multi) under fluxbox and it just works. What version of Xorg do you have (output of X -version)? And what is the output of grep xkb_symbols /usr/local/share/X11/xkb/symbols/ca? Version 1.6 buit 13 April 2009 symbols/ca = multi, multix', multi-2gr, fr, a few others You'd think it would work... Doesn't make sense. Have you tried running setxkbmap ca multi? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: French-Canadian Keyboard keyboard switching
On Friday 01 May 2009 19:24:04 PJ wrote: Boris Samorodov wrote: On Fri, 01 May 2009 11:34:19 -0400 PJ wrote: Section ServerLayout Identifier X.org Configured Screen 0 Screen0 0 0 InputDeviceMouse0 CorePointer InputDeviceKeyboard0 CoreKeyboard OptionAllowEmptyInput off So you don't want to use hal... You might have to add this line to the ServerLayout section: Option AutoAddDevices off Then hal won't interfere with keyboard or mouse. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: French-Canadian Keyboard keyboard switching - SOLVED
On Friday 01 May 2009 19:37:52 PJ wrote: Tijl Coosemans wrote: Have you tried running setxkbmap ca multi? Now, here's the weird stuff - ca multi works in Firefox... but not in xterm so, the keyboard has to be set from fluxbox... works fine in Inkscape, gnucash, abacus, so the real problem is in xterm - and that is totally unimportant as long as good ol' English works it it. You probably have to set LANG. Try running setenv LANG en_CA.ISO8859-15. If you can type accented letters then, you need to add something like this to ~/.login_conf: me:\ :charset=ISO-8859-15:\ :lang=en_CA.ISO8859-15: ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: French-Canadian Keyboard keyboard switching
On Wednesday 29 April 2009 22:04:34 PJ wrote: Tijl Coosemans wrote: On Wednesday 29 April 2009 15:20:34 PJ wrote: xorg.conf: (snip for relevant) Section ServerLayout Identifier X.org Configured Screen 0 Screen0 0 0 InputDevice Mouse0 CorePointer InputDevice Keyboard0 CoreKeyboard Option AllowEmptyInput off EndSection Section Files ModulePath /usr/local/lib/xorg/modules FontPath /usr/local/lib/X11/fonts/misc/ FontPath /usr/local/lib/X11/fonts/TTF/ FontPath /usr/local/lib/X11/fonts/OTF FontPath /usr/local/lib/X11/fonts/Type1/ FontPath /usr/local/lib/X11/fonts/100dpi/ FontPath /usr/local/lib/X11/fonts/75dpi/ EndSection Section Module Load extmod Load record Load dbe Load glx Load GLcore Load xtrap Load dri Load freetype EndSection Section InputDevice Identifier Keyboard0 Driver kbd Option XkbModel pc104 This might have to be pc105, but it probably doesn't matter. Option XkbLayout us,ca Check out http://en.wikipedia.org/wiki/Keyboard_layout#QWERTY If you have Canadian Multilingual Standard, this option needs to be set to ca(multi). If you have Canadian French, set it to ca or ca(fr). This does not set it to the Canadian French; nor can I find anything that does... only my lame setup works using the French azerty (which is rather a pain because it involves complicated finger moves to get the accented characters - I'm familiar with it and can use it; it's just a pita. It works for me. What if you run setxkbmap ca or setxkbmap ca multi in an X terminal? Do you then get azerty when you type qwerty? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: French-Canadian Keyboard keyboard switching
On Wednesday 29 April 2009 00:14:53 PJ wrote: Oh, well, another day lost... but, I guess it's better to limp than not to walk at all. :-\ I think it would help if you posted your /etc/rc.conf and /etc/X11/xorg.conf. Those are the two files that need to change. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: French-Canadian Keyboard keyboard switching
On Wednesday 29 April 2009 15:20:34 PJ wrote: Cool. Then I can ask some questions regarding all of this. rc.conf: (snipped to show the relevant entries) font8x16=iso15-8x16 font8x14=iso15-8x14 font8x8=iso15-8x8 allscreens_flags=VGA_80x60 cyan rpcbind_enable=YES mountd_flags=-r nfs_client_enable=YES nfs_client_flags=-n 4 samba_enable=YES cupsd_enable=YES apache22_enable=YES postgresql_enable=YES mysql_enable=YES webmin_enable=YES #keymap=fr_CA.iso.acc.kbd Question: 1. the font entries? The /usr/share/syscons/fonts/ entry has suffixes of .fnt - ??? Your font and keymap settings are ok. The extensions can be omitted. See the EXAMPLES sections in vidcontrol(1) and kbdcontrol(1). 2. the keymap is commented out because, although it gives me the fr_CA keyboard, it also uses French messages which are a bit tortured (French courtly affectations in the language are quaint but also make for long and convoluted terminology - notice that a text translated to French is always longer). K.I.S.S. Keyboard settings shouldn't affect message localisation. Do you set the environment variable LANG in ~/.login_conf or in a shell startup script (.profile or .cshrc or other depending on the shell)? If so, set it to en_CA.ISO8859-15 or something. From q5 below I think you've currently set it to fr_CA.utf-8. xorg.conf: (snip for relevant) Section ServerLayout Identifier X.org Configured Screen 0 Screen0 0 0 InputDeviceMouse0 CorePointer InputDeviceKeyboard0 CoreKeyboard OptionAllowEmptyInput off EndSection Section Files ModulePath /usr/local/lib/xorg/modules FontPath /usr/local/lib/X11/fonts/misc/ FontPath /usr/local/lib/X11/fonts/TTF/ FontPath /usr/local/lib/X11/fonts/OTF FontPath /usr/local/lib/X11/fonts/Type1/ FontPath /usr/local/lib/X11/fonts/100dpi/ FontPath /usr/local/lib/X11/fonts/75dpi/ EndSection Section Module Load extmod Load record Load dbe Load glx Load GLcore Load xtrap Load dri Load freetype EndSection Section InputDevice Identifier Keyboard0 Driver kbd OptionXkbModel pc104 This might have to be pc105, but it probably doesn't matter. Option XkbLayout us,ca Check out http://en.wikipedia.org/wiki/Keyboard_layout#QWERTY If you have Canadian Multilingual Standard, this option needs to be set to ca(multi). If you have Canadian French, set it to ca or ca(fr). Option XkbOptions grp:toggle If you don't need layout switching just delete this. EndSection Questions: 3. This setup enables switching from the default us to what appears to be the French keyboard. The fr_CA has the accented characters assigned to normal keys while keeping most of the English keys normal; the French kbd needs two keypresses to get the accents. Tiresome, not so say dumb. The French have an azerty layout with accented letters also directly available. 4. The toggle does not toggle; pressing right_Alt switches to fr but another rtAlt press does nothing. And other Alt combinations don't do anything except freeze the kbd and xterm has to be closed and thereafter the fr is not accessible without a reboot or one must use fluxbox menu to switch the keyboard. How to get the fr_CA instad of the fr? I don't know anything about toggling. 5. Upon closing xorg, there are these messages: Failed to open file (/usr/local/share/fluxbox/nls/fr_CA.utf-8/fluxbox.cat)... (twice) Checking Google fluxbox, it appears this file does not exist. Fluxbox simply has not included it in their distribution. Mayba Blackbox has it; I'll have to check. Probably harmless. It's just for message localisation. It should fall back on English. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Linux Java Update?
On Sunday 15 March 2009 01:44:45 Frank Jahnke wrote: I'm setting up a new i386 computer, and I always include a complete Linux browser (usually Opera), including plugins. I went to the linux-sun-jre16 port, and I find a disagreement on the jre version number requested in the port (u3) versus what Sun has on their web site as their latest (u12). This is odd, since the native version runs u7. Why is this? Update 3 is a couple of years old, which is fine I guess, but is there a reason that update 12 is not used? You'll probably have to ask the port maintainer directly: cd /usr/ports/java/linux-sun-jre16 make maintainer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Excessive letter-spacing in firefox3 under wine
On Thursday 29 January 2009 22:02:35 Tore Lund wrote: Subject line says it all - large gaps between all letters. Here is a screenshot: http://softblur.com/misc/spacing.jpg. I suppose there are others who run firefox3 under wine on 7.1-RELEASE with no problems, so can anyone think of what's wrong? I have imported fonts from my Windows 2000 installation, and I am using the same profile that works well with native FreeBSD firefox and firefox on Windows 2000. I believe this did not happen with firefox2. Grateful for any hint. What exactly did you do to import those fonts? You should put them in a separate directory under /usr/local/lib/X11/fonts, create fonts.scale and fonts.dir in that directory using mkfontscale and mkfontdir, then run fc-cache -f -v and (for completeness) add a FontPath entry to your xorg.conf. Alternatively, you can install the x11-fonts/webfonts port, which contains the most commonly used fonts. (Actually, I only use wine in order to get flash9, so if anyone could help me solve this problem instead, that's even better. I have tried the available recipes with no success - my firefox3 just freezes.) Try to get it to work under linux-firefox first. - Remove all linux-*, linux_base-* and nspluginwrapper packages you've currently installed. - Remove any stale npwrapper plugins from the following directories and their subdirectories: ~/.mozilla/plugins /usr/local/lib/browser_plugins /usr/local/lib/npapi /usr/local/lib/firefox/plugins - Check that you have these settings in each file: * /etc/make.conf: OVERRIDE_LINUX_BASE_PORT=f8 * /etc/sysctl.conf: compat.linux.osrelease=2.6.16 * /etc/rc.conf: linux_enable=YES * /etc/fstab: linprocfs /compat/linux/proc linprocfs rw 0 0 - Reboot or alternatively you can run these commands as root: sysctl compat.linux.osrelease=2.6.16 mount /compat/linux/proc - Install www/linux-firefox and www/linux-flashplugin9. - Check if the plugin works in linux-firefox. - Install www/nspluginwrapper. - Run these commands as root: nspluginwrapper -v -i /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so ln -sf /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so /usr/local/lib/npapi/symlinks/firefox/ - Check if the plugin works in native firefox. This should get the plugin working, but it'll still crash or freeze the browser sometimes. You can kill the plugin with killall npviewer.bin. You also might want to install a plugin like www/xpi-flashblock. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 4.8: can't load kernel after doing cp -R / to another disk
On Sunday 30 November 2008 06:57:29 [EMAIL PROTECTED] wrote: Hello, everyone. This is the problem: our SCSI disk with FreeBSD 4.8 on it has been failing recently, so I copied its root partition to a fresh IDE disk with cp -pR and You should use dump and restore to copy the root partition, see: I'd done that before trying cp -pR, as outlined by rse@: dump -L -0 -f- /old | (cd /new restore -r -v -f-) http://people.freebsd.org/~rse/mirror/ which isn't too different. I think I know what the problem is: I made the new single slice and FreeBSD partition on it and ran newfs -U on it using the latest FreeBSD 5.x livecd toolkit, and later 4.8 can't even mount that partition (mount /dev/ad0s1a /mnt) failing with incorrect superblock, so I think its /boot/loader can't load the kernel because of FS issues (but strangely enough pressing ? at the boot loader prompt lists directory entries of the root FS just fine). It turns out UFS isn't upwards compatible from releases 4.8 - 5.5. I'll try running newfs -U from 4.8. Last time I checked many 4.8 binaries couldn't run due to disk errors, I hope newfs runs ok... You need to create a UFS1 file system. Also, root file systems usually don't have soft updates (-U) enabled. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: XMing and FreeBSD
On Friday 28 November 2008 17:08:13 Pieter Donche wrote: I have - in the same subnet - a WinXP PC and a multi-boot PC with a) OpenSuse10.3, b) FreeBSD-7.0 (and c) WinXP) I installed the free X-Windows server Xming on the WinXP PC, and I can connect to the other PC when it is booted in OpenSUSE 10.3: Xming is configured for 'open session via XDMCP', I specify fully qualified hostname and I get the openSUSE username/password login screen, etc... (I didn't need to change anything in the OpenSuSE) But when that PC is booted into FreeBSD - XMing only gives me a screen with a grey background and a black X - connection seems not established. The FreeBSD runs KDM as window manager and KDE as desktop. Why and how to remedy? It's disabled by default on FreeBSD. In /usr/local/share/config/kdm/kdmrc in the [Xdmcp] section you need to set Enable=true. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gcc cross-compiler for linux
On Wednesday 26 November 2008 18:48:39 Xavier Otazu wrote: On Tue, 25 Nov 2008 23:31:10 +0100 Tijl Coosemans [EMAIL PROTECTED] wrote: From that error message I'd say you probably need to populate /usr/local/i386-linux/include with glibc and linux kernel headers. How can I populate it with them? Manually installing them in this directory? May be the devel/cross-binutils port should do it? Is there any port that can populate it? I don't think there's a port. I'd start with a glibc-headers and kernel-headers RPM from the linux_base port you've installed. http://rpmfind.net/linux/rpm2html/search.php?query=glibc-headers http://rpmfind.net/linux/rpm2html/search.php?query=kernel-headers ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gcc cross-compiler for linux
On Monday 24 November 2008 18:19:23 Xavier Otazu wrote: When building, I get the following error message: /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/xgcc -B/usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/ -B/usr/local/i386-linux/bin/ -B/usr/local/i386-linux/lib/ -isystem /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc -isystem /usr/local/i386-linux/include -isystem /usr/local/i386-linux/sys-include -O2 -O2 -O2 -fno-strict-aliasing -pipe -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I../.././gcc/../libdecnumber -I../libdecnumber -fexceptions -c ../.././gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o In file included from /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/gthr-default.h:1, from ../.././gcc/gthr.h:114, from ../.././gcc/unwind-dw2.c:42: ../.././gcc/gthr-posix.h:43:21: error: pthread.h: No such file or directory ../.././gcc/gthr-posix.h:44:20: error: unistd.h: No such file or directory In file included from /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/gthr-default.h:1, from ../.././gcc/gthr.h:114, from ../.././gcc/unwind-dw2.c:42: ../.././gcc/gthr-posix.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_key_t' ../.././gcc/gthr-posix.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_once_t' ../.././gcc/gthr-posix.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_mutex_t' ../.././gcc/gthr-posix.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_recursive_mutex_t' ../.././gcc/gthr-posix.h:92: error: 'pthread_once' undeclared here (not in a function) ../.././gcc/gthr-posix.h:93: error: 'pthread_getspecific' undeclared here (not in a function) From that error message I'd say you probably need to populate /usr/local/i386-linux/include with glibc and linux kernel headers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash9 checklist
On Wednesday 05 November 2008 15:35:21 Steve Polyack wrote: So I've done some more testing of this with various linux_base-* installs. Youtube and most things (google maps) work with sound just fine for a few seconds, but after trying to interact or letting them go for a few minute they begin to rapidly eat up main memory. npviewer.bin's usage will top out somewhere around 300-450MB before it core dumps: pid 77684 (npviewer.bin), uid 1042: exited on signal 11 (core dumped). This is on FreeBSD 7-STABLE i386 (as of Tue Oct 28) with native Firefox 3.0.3 still. Do you have this with linux-firefox? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash9 checklist
On Wednesday 05 November 2008 17:25:56 Steve Polyack wrote: Tijl Coosemans wrote: On Wednesday 05 November 2008 15:35:21 Steve Polyack wrote: So I've done some more testing of this with various linux_base-* installs. Youtube and most things (google maps) work with sound just fine for a few seconds, but after trying to interact or letting them go for a few minute they begin to rapidly eat up main memory. npviewer.bin's usage will top out somewhere around 300-450MB before it core dumps: pid 77684 (npviewer.bin), uid 1042: exited on signal 11 (core dumped). This is on FreeBSD 7-STABLE i386 (as of Tue Oct 28) with native Firefox 3.0.3 still. Do you have this with linux-firefox? Yes, I have the same behavior when using linux-firefox 2.0.17 from ports. Ok, so it's not a problem with npviewer.bin then. It's possible that when it's eating memory it's already coredumping. I've noticed that coredumps are generally a LOT bigger with 2.6.16 emulation compared to 2.4.2. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: WINE 21.1.5 QUESTION...
On Sunday 26 October 2008 22:21:08 Gary Kline wrote: On Sun, Oct 26, 2008 at 11:50:13AM +0100, Tijl Coosemans wrote: On Saturday 25 October 2008 03:55:26 Gary Kline wrote: Maybe somebody here can clue me in on how to get a 1998, windose3.1/w95 French-learning game to work on my newly built wine. I asked on the Ubuntu forums and altho somebody did try to help; Zip. I do not have a clue to the DOS-path; it's a CDROM and since I'm using the top CD/DVD optical drive, I'm guessing that it D:\; right? since C:\ would be the harddrive. Otherwise, no clue. The disc is due back at the library soon so I want to make the most of it ... even if it does crash every 355 minutes! You can setup drive letters using the drives tab in winecfg. So, insert cdrom, mount it, run winecfg and assign a drive letter to the mount point. If you have hal/dbus enabled most of this is done automatically. hal/dbus are going. How do I mount the cdrom on C:\ ? I've already run winecfg and sound works, selected Windows 95. No, you mount the cdrom like you normally would. If you use hal and the cdrom is mounted on /var/media/something, you need to tell wine (winecfg, drives tab) that whenever drive D: is accessed, it should look for the files in /var/media/something. After that you can run 'wine d:\\setup.exe'. You should see something like this in winecfg: C: ../drive_c D: /var/media/cd0 Z: / ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: WINE 21.1.5 QUESTION...
On Saturday 25 October 2008 03:55:26 Gary Kline wrote: Maybe somebody here can clue me in on how to get a 1998, windose3.1/w95 French-learning game to work on my newly built wine. I asked on the Ubuntu forums and altho somebody did try to help; Zip. I do not have a clue to the DOS-path; it's a CDROM and since I'm using the top CD/DVD optical drive, I'm guessing that it D:\; right? since C:\ would be the harddrive. Otherwise, no clue. The disc is due back at the library soon so I want to make the most of it ... even if it does crash every 355 minutes! You can setup drive letters using the drives tab in winecfg. So, insert cdrom, mount it, run winecfg and assign a drive letter to the mount point. If you have hal/dbus enabled most of this is done automatically. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Has anyone used libusb for accessing usb devices here?
On Wednesday 23 July 2008 06:20:09 Andrew Falanga wrote: On Tuesday 22 July 2008 08:38:58 Lowell Gilbert wrote: Andrew Falanga [EMAIL PROTECTED] writes: I'd like to know if anyone here on the list has ever used libusb (http://libusb.sourceforge.net) for accessing usb devices. I successfully compiled and installed it on my FreeBSD 7 laptop but when I run a test program no USB HUBs are found. The same test on a Fedora box works fine. I was wondering what the magic is for FreeBSD since the web site claims the package works on FreeBSD. libusb is in ports, and a number of other ports use it. (See make search key=libusb.) That should provide a variety of working examples. Ok, I've installed from the ports collection this time (at home now on my 6.2p11 box) and I'm seeing busses in my computer. However, when I plug in my USB thumb drive, a Sandisk Cruizer Micro that the kernel does see as da0 (verified in /var/log/messages), I don't get any devices shown. I'm not entirely sure, but it's possible it only shows ugen devices. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Continuing problems with Xorg 7.3
On Tuesday 15 July 2008 05:32:28 Arthur Barlow wrote: The only error I notice in Xorg.0.log is the following: drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: open result is -1, (No such file or directory) drmOpenDevice: Open failed [drm] failed to load kernel module 1810 (EE) [drm] drmOpen failed. There is no dri device in my /dev directory, but I don't know if that matters. I've tried to comment out the load dri option, but no luck, it tries to load it anyway. DRI is loaded by default now, so you need to explicitly disable it. Replace 'Load dri' with 'Disable dri' in the Module section. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD-like linux distro?
On Wednesday 11 June 2008 11:54:07 Heikki Suonsivu wrote: I need to get something to run on x86 computers which do not contain math in hardware, and FreeBSD dropped non-math cpus long time ago. NetBSD did the same, so Linux seems to be the only possibility. This is the commit that removed it: http://lists.freebsd.org/pipermail/cvs-src/2003-July/007431.html It's probably not that difficult to reintroduce. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: prevent overwriting custom make options in ports
On Monday 09 June 2008 16:33:01 Anton Shterenlikht wrote: I use ports/lang/gcc42. I set WITHOUT_JAVA=yes in the Makefile. However, with each tree update this option is overwritten, so I have to edit the Makefile each time I update the port. What is the best way to preserve my custom setting, add an environment variable? I use port-mgmt/portconf for that. It allows to set port options in /usr/local/etc/ports.conf like: lang/gcc42: WITHOUT_JAVA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 10:14:54 Glyn Millington wrote: FreeBSD 7.0 release, ports currently up-to-date Trying to launch Linux Open Office 2.4 I get the following error message , | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI | invalid ` Now I *think* that what it ought to load is /usr/compat/linux/usr/X11R6/lib/libXext.so.6 but it goes for the FreeBSD X extension lib instead. Can anyone help me to fix this? If /compat/linux/usr/local doesn't exist, perhaps making it a symlink to X11R6 does the trick. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 16:50:51 Glyn Millington wrote: Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local got Openoffice running but reaplay is giving the same kind of error :-( Which error exactly? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 16:34:11 Glyn Millington wrote: Tijl Coosemans [EMAIL PROTECTED] writes: On Tuesday 13 May 2008 10:14:54 Glyn Millington wrote: FreeBSD 7.0 release, ports currently up-to-date Trying to launch Linux Open Office 2.4 I get the following error message , | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI | invalid ` Now I *think* that what it ought to load is /usr/compat/linux/usr/X11R6/lib/libXext.so.6 but it goes for the FreeBSD X extension lib instead. Can anyone help me to fix this? If /compat/linux/usr/local doesn't exist, perhaps making it a symlink to X11R6 does the trick. Spot on!!Many thanks :-) What I don't understand is why that works, when /compat/linux/etc/ld.so.conf points at the right place in the very first line! I suspect some OO executable or lib has some search paths hardcoded which the linker checks before using the ldconfig cache. If you want you could check this with: objdump -p executable | grep RPATH RPATH could be /usr/lib:/usr/local/lib:/usr/X11R6/lib for instance. Also, when a Linux program opens a file (i.e. libXext.so.6), FreeBSD first tries to find it under /compat/linux, then under /. So linker tries to open /usr/local/lib/libXext.so, but it didn't exist under /compat/linux so it got the FreeBSD libXext.so. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 17:49:02 Glyn Millington wrote: Tijl Coosemans [EMAIL PROTECTED] writes: On Tuesday 13 May 2008 16:50:51 Glyn Millington wrote: Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local got Openoffice running but reaplay is giving the same kind of error :-( Which error exactly? This baby (sorry - should have included it) [EMAIL PROTECTED]:~$ /usr/compat/linux/bin/sh realplay /usr/local/lib/RealPlayer/realplay.bin: error while loading shared libraries: /usr/local/lib/libgdk-x11-2.0.so.0: ELF file OS ABI invalid I'll bet it wants this one :-) /usr/compat/linux/usr/lib/libgdk-x11-2.0.so.0 and of course I have just linked /usr/compat/linux/usr/local to X11R6 lol Can I win on this one :-) That's suspicious, realplayer just works for me. Do you have some LD_* variable defined in your environment? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 19:27:19 Glyn Millington wrote: Tijl Coosemans [EMAIL PROTECTED] writes: On Tuesday 13 May 2008 17:49:02 Glyn Millington wrote: [EMAIL PROTECTED]:~$ /usr/compat/linux/bin/sh realplay /usr/local/lib/RealPlayer/realplay.bin: error while loading shared libraries: /usr/local/lib/libgdk-x11-2.0.so.0: ELF file OS ABI invalid I'll bet it wants this one :-) /usr/compat/linux/usr/lib/libgdk-x11-2.0.so.0 and of course I have just linked /usr/compat/linux/usr/local to X11R6 That's suspicious, realplayer just works for me. Do you have some LD_* variable defined in your environment? Ah! (bangs head against wall!) Yes I do:- in ~/.bashrc LD_LIBRARY_PATH=/usr/local/lib:/usr/local/share/squeak/3.7-7 Having removed that realplayer comes up with no problem. Should have spotted that one :-( So many thanks for solving both my problems today! :) Your welcome. Does OpenOffice actually still need that symlink now? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wine: notepad OK, others not
On Monday 05 May 2008 02:10:34 [EMAIL PROTECTED] wrote: ... very shortly after starting the actual install I got an error box: VISIO Setup ! Tried to create an invalid path using 'A:\' and 'clipart.vs_' and it locked up the display so that CtrlAltF1 would not switch to a text screen (although it did allow AltTab to bring up FVWM's window list). After clicking OK: Visio Setup i Setup failed. and it quit. What version of Visio is this? 3.0. Long before M$ took it over, so it should be just a generic Win32 app with no secret M$ tricks. Visio 3.0 was still 16bit apparently. What you could try is to set the Windows version in winecfg (bottom of applications tab) to Windows 95 or even Windows 3.1. Also, you should really take this to the [EMAIL PROTECTED] mailing list. The people there should know more about this than here on a FreeBSD mailing list. I suppose I can try it, but I wonder how much interest there will be on a wine list in supporting FreeBSD. At a minimum I suppose they'll want to know if it still breaks on the latest wine version, and I'll have no way to find out since the FreeBSD port doesn't support the latest wine version. It's just that they know more about debugging such problems and figuring out if it's Wine or a FreeBSD problem. The latest version is in ports by the way, wine 0.9.61. In any case, it seems FreeBSD should not be allowing a port -- any port -- to lock out CtrlAltF1. Patches welcome... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wine, amd64, and fc-7
On Monday 05 May 2008 19:42:52 Steve Franks wrote: Anyone try to get an rpm of wine working under linux compat? Did you have to install fc-7 instead of fc-4? Is fc7 ready for primetime? Someone said it had issues awhile back. Looks like all the 64-bit linux guys run wine, why don't we? Of course, I'd prefer a native FreeBSD port over an rpm if I could get it... I looked into this when doing some work on Wine about a year ago: * Wine doesn't work under the Linux compat layer because of differences between Linux and FreeBSD mmap(2) and because the implementation of the set_thread_area syscall is too simplistic. * Wine doesn't work on FreeBSD/amd64 because the kernel doesn't preserve the segment registers on context switches. Also, Wine and all its dependencies (xorg libs etc.) should be built as 32 bit. Ideally the ports system would provide the infrastructure for that. None of this is really difficult to fix but I didn't (and still don't) have an amd64 system so I moved on to fix other problems. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wine: notepad OK, others not
On Tuesday 29 April 2008 08:10:37 [EMAIL PROTECTED] wrote: Wine has its own simple version of Wordpad though. Just run wine wordpad. This version has its own notepad, but it doesn't appear to have wordpad. (There's no wordpad.exe that I can find, but there are two identical copies of notepad.exe -- one in .../windows and the other in .../windows/system32.) wine wordpad still works though. It's in /usr/local/lib/wine. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wine: notepad OK, others not
On Thursday 01 May 2008 08:00:23 [EMAIL PROTECTED] wrote: You have to mount the floppy and then link a: to the mount point. So if you mount it under /mnt you'd need this: mount -t msdosfs /dev/fd0 /mnt ln -s /mnt ~/.wine/dosdevices/a: That got only a little bit farther. It did find the setup program, and the option dialogs seemed to work properly, but very shortly after starting the actual install I got an error box: VISIO Setup ! Tried to create an invalid path using 'A:\' and 'clipart.vs_' and it locked up the display so that CtrlAltF1 would not switch to a text screen (although it did allow AltTab to bring up FVWM's window list). After clicking OK: Visio Setup i Setup failed. and it quit. Were there any messages printed in the terminal window? What version of Visio is this? You might also want to try on a Linux system if you have that somewhere, just to see if it works there. Also, you should really take this to the [EMAIL PROTECTED] mailing list. The people there should know more about this than here on a FreeBSD mailing list. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Profiled C++ libraries
On Tuesday 29 April 2008 18:44:15 Purushotham Nayak wrote: I'm trying to use gprof to profile some code but compilation fails because it can't find libstdc++_p (GCC 3.4.6). I tried using gcc 4.2 but it can't find m_p. I have /usr/src/contrib/libstdc++ but can't find the documentation that the README file is referring to (docs/html/documentation.html). Can anyone please let me know how to get a profiled version of the c++ library for my platform. I'm using FreeBSD 6.0 i386. I thought they were installed by default, but in any case you should find libstdc++_p.a under /usr/obj after doing this: % cd /usr/src/gnu/lib/libstdc++/ % make obj make depend make Make sure you don't have anything like NO_PROFILE, NOPROFILE or WITHOUT_PROFILE defined in /etc/make.conf. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wine: notepad OK, others not
On Saturday 26 April 2008 10:02:39 [EMAIL PROTECTED] wrote: It's really easier to try to install an app under Wine... With, it seems, at least two exceptions: * Some apps -- such as Wordpad and Write -- are packaged and installed with Windows, rather than on separate media. Are there instructions somewhere for installing such an app under wine? I'm certainly not finding it at all obvious. Such apps you can only try to copy over to Wine. Wine has its own simple version of Wordpad though. Just run wine wordpad. * Some add-on (separately installable) apps are packaged on multiple diskettes (or multiple CDs for that matter). Pre-mounting the first, and pointing wine at the mount point, seems likely to result in getting stuck partway through the install when it asks for the second disk. The version of Visio that I have is in the second category. You should ask about this on the wine-users mailing list. It should be possible to unmount the disk when it asks for the next one. If you can't then that's a bug. The manpage describes a way of pointing wine to a device rather than to a mounted filesystem: The Unix device corresponding to a DOS drive can be specified the same way, except with '::' instead of ':'. So for the previous example, if the CDROM device is mounted from /dev/hdc, the corresponding symlink would be $WINEPREFIX/dosdevices/d:: - /dev/hdc. but, as reported elsewhere, wine could not find setup.exe on the Visio install diskette with dosdevices set up this way. I'm not entirely sure, but I think the :: link is only used for raw access to devices. Wine doesn't mount disks on its own. ... You also might want to have a look at http://wiki.winehq.org/winetricks for a script that can install and setup various packages ... Unfortunately, I can't find Visio in its list of packages. Yes, it's only for extra packages (libs, fonts,..) like mfc42.dll and such. It's just that installing DLLs via winetricks might be easier than trying to figure out what DLLs to copy from a Windows install. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wine: notepad OK, others not
On Wednesday 23 April 2008 08:11:38 [EMAIL PROTECTED] wrote: If I were you I'd just try to install Visio under Wine and see how it goes. That is, mount the install cd, check with winecfg that Wine can see the mount point as a drive D: or something and then run wine d:\\setup.exe ... It did not work at all. This version of Visio is old enough that it installs from floppies, rather than from CD :) and I've set it up in .wine/dosdevices according to the manpage: $ ls -la .wine/dosdevices total 4 drwxr-xr-x 2 perryh staff 512 Apr 21 00:17 . drwxr-xr-x 4 perryh staff 512 Apr 22 21:07 .. lrwxr-xr-x 1 perryh staff8 Apr 21 00:17 a:: - /dev/fd0 lrwxr-xr-x 1 perryh staff 10 Apr 19 16:39 c: - ../drive_c lrwxr-xr-x 1 perryh staff1 Apr 19 16:39 z: - / You have to mount the floppy and then link a: to the mount point. So if you mount it under /mnt you'd need this: mount -t msdosfs /dev/fd0 /mnt ln -s /mnt ~/.wine/dosdevices/a: There doesn't seem to be a manpage for winecfg: $ man winecfg No manual entry for winecfg and when I tried to run it it was not at all obvious what to do. Under the drives tab you can setup drive letters to point to (unix) directories, like for instance the mount point of a cdrom or floppy disk or your home directory. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wine: notepad OK, others not
On Tuesday 22 April 2008 06:00:40 [EMAIL PROTECTED] wrote: ... If you want to run applications under Wine either install them under Wine or (with simple applications) copy them over from a Windows install into ~/.wine/drive_c. And specifically I'd populate ~/.wine/drive_c/windows/fonts from a real windows installation. Which raises the question: how does one figure out what-all pieces of a real windows installation should and should not be copied (or symlinked) into ~/.wine/drive_c? So far it looks as if some (but surely not all) .exe's and .dll's, and (all?) fonts, should be imported. And then you're forgetting all the bits in the register. It's really easier to try to install an app under Wine and then when you run it, see if there are any missing dlls or missing functionality in Wine built-in dlls (err and fixme messages). Then you can copy those from Windows. You also might want to have a look at http://wiki.winehq.org/winetricks for a script that can install and setup various packages, also fonts. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wine: notepad OK, others not
On Sunday 20 April 2008 03:35:59 [EMAIL PROTECTED] wrote: I have installed wine-0.9.20 from ports, and there's a Win98 FAT32 slice mounted on /windoze deletia How do I fix this? I would start by upgrading and re-installing wine. You have 0.9.20; the current version is 0.9.55 and I believe there have been substantial improvements. When I updated my ports, the newer wine refused to install on 6.1, saying it wouldn't work properly on anything prior to 6.3 IIRC. Rather than risk breaking my primary system in an upgrade attempt, I installed 7.0-RELEASE and wine-0.9.48 (the version from the 7.0-RELEASE ports) on a different machine. It happened to have XP, so I'm now trying to run XP .exe's instead of win98 .exe's. Notepad and Write are, if anything, worse than before: now, if I just start typing without selecting a font, I get something that looks more or less like dingbats. They do seem to work if I explicitly select Courier. (The ultimate goal is to run Visio, not to do word processing, but I'm trying to start with something simple.) The problem with wordpad has not changed very much: $ wine /winxp/Program Files/Windows NT/Accessories/wordpad.exe err:module:import_dll Library MFC42u.DLL (which is needed by LZ:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe) not found err:module:LdrInitializeThunk Main exe initialization for LZ:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe failed, status c135 Wine is not meant to work that way. You should see Wine as a separate Windows. If you want to run applications under Wine either install them under Wine or (with simple applications) copy them over from a Windows install into ~/.wine/drive_c. OK, it doesn't know where to find the DLLs. Try making a symlink to a place which (per the manpage) is always searched: $ ls -l /winxp/WINDOWS/SYSTEM32/mfc42u.dll -rwxr-xr-x 1 root wheel 995384 Aug 23 2001 /winxp/WINDOWS/SYSTEM32/mfc42u.dll $ ln -s /winxp/WINDOWS/SYSTEM32/mfc42u.dll /usr/local/lib/wine $ wine /winxp/Program Files/Windows NT/Accessories/wordpad.exe err:module:import_dll Library MFC42u.DLL (which is needed by LZ:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe) not found err:module:LdrInitializeThunk Main exe initialization for LZ:\\winxp\\Program Files\\Windows NT\\Accessories\\wordpad.exe failed, status c135 /usr/local/lib/wine is only for Wine built-in DLLs I think. You could try putting the symlink or copying the DLL into ~/.wine/drive_c/windows/system32, but again it is not recommended to run applications directly from an existing Windows install. If I were you I'd just try to install Visio under Wine and see how it goes. That is, mount the install cd, check with winecfg that Wine can see the mount point as a drive D: or something and then run wine d:\\setup.exe. On appdb.winehq.org there's probably more information to get Visio working. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: removable devices auto umounting
On Thu, Mar 20, 2008 at 11:55:32AM +1000, Da Rock wrote: I'm just looking into the removable device issue for freebsd. I can see its easy enough to auto mount a removable device (although I could use some help getting sd/xd devices working with my card reader), but the removal seems to come unstuck. I have some barely literates on my systems, so I do need to work this out. Is it possible to use a forced umount to do this? What are the options here? In KDE (same for GNOME and such I figure), removable devices like usb keys, cameras, cd/dvd are automounted and appear on the desktop. Using the right-click popup menu you can Safely remove or Eject them. For this to work, you need to have sysutils/hal installed and configure x11/kdebase3 to enable hal support (this is the default). Then you need to give users permission to access necessary devices. It's best to create a separate group for that like plugdev and then add users to this group. To give a plugdev group access to devices create/edit the file /etc/devfs.rules to contain: --- begin /etc/devfs.rules --- [local_ruleset=10] #allow plugdev to access the CAM subsystem (required for cd/dvd burning and usb mass storage) add path xpt0 user root group plugdev mode 0660 add path 'pass*' user root group plugdev mode 0660 #only allow root for specific fixed SCSI drives if any #add path pass0 user root group operator mode 0660 #add path pass1 user root group operator mode 0660 #... #allow plugdev to access the cdrom add path cd0 user root group plugdev mode 0660 #allow plugdev to access usb mass storage add path 'da*' user root group plugdev mode 0660 #only allow root for specific fixed SCSI drives if any #add path 'da0*' user root group operator mode 0660 #add path 'da1*' user root group operator mode 0660 #... #allow plugdev to access generic usb devices (cameras/mp3 players using libusb) add path 'usb*' user root group plugdev mode 0660 add path 'ugen*' user root group plugdev mode 0660 --- end /etc/devfs.rules --- (You don't need anything special in /etc/devfs.conf. If you've put stuff there to get cd burning working for normal users, you can remove it. (permission for cd,xpt,pass devices)) In /etc/rc.conf then make sure you have these lines: dbus_enable=YES devfs_system_ruleset=local_ruleset hald_enable=YES polkitd_enable=YES And finally, give plugdev access to hal by editing /usr/local/etc/dbus-1/system.d/hal.conf At the end of that file it says: !-- You can change this to a more suitable user, or make per-group -- policy group=operator allow send_interface=org.freedesktop.Hal.Device.SystemPowerManagement/ allow send_interface=org.freedesktop.Hal.Device.LaptopPanel/ allow send_interface=org.freedesktop.Hal.Device.Volume/ allow send_interface=org.freedesktop.Hal.Device.Volume.Crypto/ /policy On the second line above, change operator to plugdev. Then make sure you have a /var/media directory and /media linking to it and nothing related to removable devices in /etc/fstab (including cdrom). Reboot your system and if I didn't miss anything, any user in the plugdev group should be able to use removable devices quite easily. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DRI on radeon 9500 using too wide memory bus?
On Thursday 13 March 2008 22:45:35 Reid Linnemann wrote: Written by Reid Linnemann on 03/13/08 00:58 I've had DRI running on a radeon 9500 for a while now, and at some point in time tracking 6-STABLE and continuing now on 7-STABLE I've started seeing rendering artifacts in gl in the form of a cross-hatch pattern of pixels that don't get filled. At first I figured the card was failing, but I remembered a fact about the 9500 that made me doublethink that. The radeon 9500 is an r300 chipset, and differs from the 9700 only in the width of the memory bus (128 bit vs 256 bit) and possibly clock speed. If memory serves, the chip itself had the capacity to address 256 bits, but most 9500s just went out the door with 128 bit memory. I remember at one point in time trying out a hack to the 9500 driver that enabled the 256 bit bus to see if I had a rebadged 9700, and had similar artifacts. So I decided to peruse my X logs, and sure enough I see: (--) RADEON(0): Mapped VideoRAM: 131072 kByte (256 bit DDR SDRAM) Is it possible that the radeon driver is using the 256 bus? Is there a way to force it to use a 128 bit bus? Has anyone else seen this? On further investigation, I tried forcing the driver to switch to a 128 bit bus by setting the R300_MEM_NUM_CHANNELS_MASK bits on RADEON_MEM_CNTL to 0x1, but the problem did not go away. I'll try describing it a little better.. only with gl acceleration, the entire gl context appears to have criss-crossing lines 4 pixels wide that are randomly filled correctly or black, so that they form roughly a chain link fence pattern of trash on the gl context. Anyone have an idea? I can't help you with this, but I'm thinking you'll have a higher chance getting an answer on some DRI/DRM mailinglist. You could also ask the port maintainers (x11@). Some of them are also active developers on DRI, and the r300 driver, or at least used to be in the past. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mathematica 6.01 + FBSD 6.3-release
On Saturday 08 March 2008 00:05:11 Rich Winkel wrote: I'm having problems getting the frontend running. The kernel seems to run fine. Initially the linux loader wasn't seeing the libraries under SystemFiles/Libraries/Linux (or at least /compat/linux/usr/bin/ldd couldn't find them when run on SystemFiles/FrontEnd/Binaries/Linux/Mathematica ) I don't have any experience with Mathematica, but this happens with Maple and Matlab too, so it's probably nothing to worry about. Maple and Matlab are started with a shell script which sets up a proper environment (where to find libs and such other variables) before starting the real program. In my experience it's better to run them with /compat/linux/bin/sh and not the FreeBSD /bin/sh used by default. So to run Matlab for instance I use: /compat/linux/bin/sh /compat/linux/opt/matlab-7.0.1/bin/matlab If Mathematica uses such a startup script as well, it could be worth a try. In that case you should also try if you can run /compat/linux/bin/ls. If you get an error related to librt, you need to create this softlink: ln -s ../../lib/librt-2.3.6.so /compat/linux/usr/lib/librt.so.1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dri on radeon mobility 7500
On Wednesday 23 January 2008 05:20:33 Steve Franks wrote: I get the infamous Xlib: extension XFree86-DRI missing on display :0.0 error on my new system (7.0rc1). I've put dri glx in xorg.conf (7.3), to no avail. Relevant dmesg: ... drm0: ATI Radeon RS100 Mobility U1 on vgapci0 info: [drm] AGP at 0xe400 64MB info: [drm] Initialized radeon 1.25.0 20060524 ... info: [drm] Setting GART location based on new memory map info: [drm] writeback test succeeded in 1 usecs drm0: [ITHREAD] error: [drm:pid1180:drm_close] *ERROR* can't find authenticator Some obvious problems I can think of: Do you have something like this in xorg.conf: Section DRI Mode0660 # Set permissions on drm device EndSection And, do you actually have dri drivers installed (graphics/dri port)? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: k3b not recognizing ATAPI DVD A DH20A1S UX11 write capability
On Saturday 26 January 2008 16:41:55 Bob Bing wrote: I installed k3b-1.0.4/cdrtools-2.01_6/dvd+rw-tools-7.0 on an amd64 6.3machine running GENERIC but k3b gives the following error: k3b: NON_CRITICAL k3b: PROBLEM: No CD/DVD writer found. k3b: DETAILS: K3b did not find an optical writing device in your system. Thus, you will not be able to burn CDs or DVDs. However, you can still use other K3b features like audio track extraction or audio transcoding or ISO9660 image creation. k3b: SOLUTION: Any hints on how I can fix this? It worked fine under Linux and OpenBSD (which I used to burn the 6.3 CDs) You need to emulate it as a SCSI device: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Throttle the CPU when the system is idle
On Monday 21 January 2008 09:45:26 Wojciech Puchar wrote: I have toyed a bit with the dev.cpu.0.freq sysctl setting, and tried to lower it automatically when the system load goes down. For some reason it don't seem to work, even though the script works for simple debug output. Anyone have tried to do something similar? no but anyway - freebsd halts CPU when unused, even at full frequency it uses very little power wne unused. Throttling still made a huge difference on my systems. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Throttle the CPU when the system is idle
On Monday 21 January 2008 16:13:36 Andreas Davour wrote: On Mon, 21 Jan 2008, Tijl Coosemans wrote: Throttling still made a huge difference on my systems. Many different opionions here. How did you do it then? In /etc/sysctl.conf: debug.cpufreq.lowest=400 In /etc/rc.conf: economy_cx_lowest=LOW performance_cx_lowest=LOW powerd_enable=YES powerd_flags=-i 92 -r 65 -p 200 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Howto: Prepare USB key with FreeDOS using FreeBSD
If the BIOS can boot from USB it's as easy as using dd. dd if=freedos-floppy.img of=/dev/daX mount -t msdosfs /dev/daX /mnt (Add extra files. You only have about 1.5Mb though.) (Reboot with USB key plugged. You may have to alter the boot device ordering in the BIOS first.) Afterwards you can restore the USB key to its full capacity using fdisk(8) and newfs(8) or newfs_msdos(8). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: help with text-append over SSH ?
On Friday 12 October 2007 01:49:04 Juri Mianovich wrote: I have an account on a system where I cannot log in over SSH, but I _can_ run a limited set of commands remotely, over SSH. (I am in a jail of some sorts). I want to append the contents of a local text file to the contents of a remote text file, over SSH. Normally, I would do this locally with: cat file1 file2 But again, file2 is remote, and I can't log in there... I have access to the 'echo' command and the 'dd' command (among others) on the remote host ... so for instance, I can do things like this: ssh [EMAIL PROTECTED] rm -rf filename So, with all that in mind, how do I append the contents of a local file to a remote file, over SSH, using either 'echo' or 'dd' ? With echo or dd I don't know. With cat you can do it this way: cat file1 | ssh [EMAIL PROTECTED] cat file2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: amd64_set_gsbase()
On Tuesday 09 October 2007 02:48:51 Mihai Donțu wrote: I have *one* more question: maybe I don't fully understand the hole BASE thing, but since the FreeBSD kernel does not preserve %gs and %fs, what is the purpose of amd64_set_XXbase()? The %fs, %gs registers and fsbase and gsbase MSRs are separate registers. When you write %gs:offset, you actually get (gsbase+offset), so the actual value of %gs doesn't matter. There are two ways to set gsbase. One is by using the privileged instruction wrmsr to set gsbase directly (full 64bit base address), which is what amd64_set_gsbase() exposes to userland. The other is by loading a descriptor selector in %gs in which case gsbase will be set to the base address (only 32bit base address) of a descriptor entry in either the GDT or LDT. To get back to what you are trying to do, because %gs isn't preserved, I think you should avoid writing to it and instead strictly use amd64_set_gsbase(). But from what you've written, I'm guessing you're already doing this, so the next thing to try is to create threads with PTHREAD_SCOPE_SYSTEM or use libthr instead of libpthread, because if I'm not mistaken, PTHREAD_SCOPE_PROCESS in libpthread doesn't preserve gsbase either. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PT_PAUSE ?
On Thursday 13 September 2007 20:21:58 Buganini wrote: I want to pause a ptraced process which had been PT_CONTINUE, Can I just send SIGSTOP, or re-attach ? You can send a SIGSTOP using kill(2) and then wait for the process to actually stop using wait4(2). ___ 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 change next boot from windows to freebsd?
On Wednesday 12 September 2007 14:30:32 Ivan Voras wrote: I have no idea how to enable the Windows boot loader after both Windows and FreeBSD are installed on the machine and FreeBSD's loader is installed. It's one of mbrfix or fixmbr or fdisk /mbr iirc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD USB disks - booting and backups
On Thursday 23 August 2007 18:31:05 Patrick Baldwin wrote: I'm thinking of backing up my FreeBSD 6.2 webmail server by installing FreeBSD onto the USB, and then dumping the whole filesystem onto the USB. That way, in the event of a drive failure, I can boot off the USB drive, and then just restore everything onto the webmail server. Has anyone else done this? I haven't found any mention via Google, which has me concerned that there might be a good reason no one's done this that I haven't thought of.One issue I ran into thus far has been the 500 GB Western Digital MyBook USB drive I tried first makes my system crash when I plug it in. I can get another USB drive and repurpose the one I've got right now, but before I put any more resources into this idea, I thought I'd bounce it off some experts. Any suggestions, links, etc. welcomed. Particularly for large capacity USB drives that won't crash my system. I use it for a different purpose than you, but I've installed FreeBSD onto a 120Gb Western Digital Passport (2.5) USB drive. It was just like installing normally and works like a charm. That USB drive isn't supposed to crash your system by the way. Have you filed a PR or something? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 3D acceleration within non-root account
On Tuesday 15 May 2007 09:51:11 Ladislav Jozsa wrote: drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 13, (OK) drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 13, (OK) drmOpenByBusid: Searching for BusID pci::01:00.0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 13, (OK) drmOpenByBusid: drmOpenMinor returns 13 drmOpenByBusid: drmGetBusid reports pci::01:00.0 (II) RADEON(0): [drm] DRM interface version 1.2 (II) RADEON(0): [drm] created radeon driver at busid pci::01:00.0 (II) RADEON(0): [drm] added 8192 byte SAREA at 0xc50e4000 (II) RADEON(0): [drm] mapped SAREA 0xc50e4000 to 0x2877d000 (II) RADEON(0): [drm] framebuffer handle = 0xe000 (II) RADEON(0): [drm] added 1 reserved context for kernel (II) RADEON(0): [agp] Mode 0x1f000217 [AGP 0x/0x; Card 0x1002/0x4c57] (II) RADEON(0): [agp] 8192 kB allocated with handle 0xc578a7c0 (II) RADEON(0): [agp] ring handle = 0xd000 (II) RADEON(0): [agp] Ring mapped at 0x2a86d000 (II) RADEON(0): [agp] ring read ptr handle = 0xd0101000 (II) RADEON(0): [agp] Ring read ptr mapped at 0x2877f000 (II) RADEON(0): [agp] vertex/indirect buffers handle = 0xd0102000 (II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x2a96e000 (II) RADEON(0): [agp] GART texture map handle = 0xd0302000 (II) RADEON(0): [agp] GART Texture map mapped at 0x2ab6e000 (II) RADEON(0): [drm] register handle = 0xc010 (II) RADEON(0): [dri] Visual configs initialized (**) RADEON(0): Enabling depth moves (II) RADEON(0): CP in BM mode (II) RADEON(0): Using 8 MB GART aperture (II) RADEON(0): Using 1 MB for the ring buffer (II) RADEON(0): Using 2 MB for vertex/indirect buffers (II) RADEON(0): Using 5 MB for GART textures (II) RADEON(0): Memory manager initialized to (0,0) (1024,8191) (II) RADEON(0): Reserved area from (0,768) to (1024,770) (II) RADEON(0): Largest offscreen area available: 1024 x 7421 (II) RADEON(0): Will use back buffer at offset 0x90 (II) RADEON(0): Will use depth buffer at offset 0xc0 (II) RADEON(0): Will use 17408 kb for textures at offset 0xf0 (II) RADEON(0): Render acceleration enabled (II) RADEON(0): Using XFree86 Acceleration Architecture (XAA) Screen to screen bit blits Solid filled rectangles 8x8 mono pattern filled rectangles Indirect CPU to Screen color expansion Solid Lines Scanline Image Writes Offscreen Pixmaps Setting up tile and stipple cache: 32 128x128 slots 32 256x256 slots 16 512x512 slots (II) RADEON(0): Acceleration enabled (**) RADEON(0): Option BackingStore true (**) RADEON(0): Backing store enabled (==) RADEON(0): Silken mouse enabled (II) RADEON(0): Using hardware cursor (scanline 770) (II) RADEON(0): Largest offscreen area available: 1024 x 7417 (**) Option dpms true (**) RADEON(0): DPMS enabled (II) RADEON(0): Detected Radeon Mobility M7, disabling multimedia i2c (II) Loading sub module theatre_detect (II) LoadModule: theatre_detect (II) Loading /usr/X11R6/lib/modules/multimedia/theatre_detect_drv.so (II) Module theatre_detect: vendor=X.Org Foundation compiled for 4.3.99.902, module version = 1.0.0 ABI class: X.Org Video Driver, version 0.8 (II) RADEON(0): no multimedia table present, disabling Rage Theatre. (WW) RADEON(0): Option DRI is not used (WW) RADEON(0): Option AllowGLXWithComposite is not used (WW) RADEON(0): Option UseUnternalAGPGART is not used (II) RADEON(0): X context handle = 0x1 (II) RADEON(0): [drm] installed DRM signal handler (II) RADEON(0): [DRI] installation complete (II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers (II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers (II) RADEON(0): [drm] dma control initialized, using IRQ 11 (II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808 (II) RADEON(0): Direct rendering enabled This last line says direct rendering is enable so I assume this is when you run as root? What does the non-root log say? Also, how are you starting X, with startx? If so, is /usr/X11R6/Xorg setuid root? Do you load the radeon.ko and drm.ko kernel modules from /boot/loader.conf? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 3D acceleration within non-root account
On Wednesday 16 May 2007 14:40:43 Tijl Coosemans wrote: Also, how are you starting X, with startx? If so, is /usr/X11R6/Xorg setuid root? /usr/X11R6/bin/Xorg of course. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wine on amd64
On Monday 09 April 2007 19:28:50 Kris Kennaway wrote: On Mon, Apr 09, 2007 at 09:37:00AM -0700, Steve Franks wrote: Why does the wine port complain that it will not build on my 6.2/amd64 machine? A quick search around winehq.com seems to indicate that the linux (kubuntu, debian) guys compile wine on their 64-bit platforms??? And you know how we *hate* to let them think they have something we bsd-ites do not ;) Extra patches, I guess. Why not look into it and see what needs to be added to our port? Wine runs win32 programs. It needs to be built as a 32bit program linked with 32bit libraries. The ports/package system can't handle 32bit code on amd64. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: amarok lyrics: proxy and ruby?
On Thursday 15 March 2007 18:12:57 Anna Vazquez Nikonova wrote: Well the problem is that im behind a proxy and i cant see the lyrics in amarok with 1.4.5 version, it gave me an error with all lyrics scipts for example with LyriWiki is this: Failed to establish a connection with LyricWiki.org SOAP Server. LyricWiki.org is either down or experiencing an problem with their SOAP server. The script will run, but will be less responsive than usual. With Leos script is this: Lyrics could not be retrieved because the server was not reachable. and with the default scipt it gave me this error: Lyrics could not be retrieved because the server was not reachable. To me it seems that is becouse amarok didnt find the proxy.But with older version 1.3.9 i can, what is the problem? Can somebody help me? Have you asked this on the amarok mailing list or forum? My first guess is that this is an Amarok problem and not FreeBSD. http://amarok.kde.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.2 HAL
On Saturday 10 February 2007 04:13, Joe Vender wrote: Does the KDE version (3.5.4) that is installed from the packages list on the FreeBSD 6.2 installation CD include support for HAL? No, you need KDE 3.5.5. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: browser crash some flash animations
On Friday 09 February 2007 18:33, [EMAIL PROTECTED] wrote: Before this document, there is a patch for browser crash for flash player. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html - If you restart your browser the plugin should now appears in the previously mentioned list. Your browser may also crash when playing some Flash animations, in this case a patch can help you: # cd /usr/src # fetch http://people.FreeBSD.org/~nork/rtld_dlsym_hack.diff # patch rtld_dlsym_hack.diff # cd libexec/rtld-elf/ # make clean # make obj # make depend # make make install Then reboot your machine. -- I think this would be add to documentation because browser crashes some web pages. With the latest version of linuxpluginwrapper that should not be necessary anymore. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]