Re: how to filter network by MAC and IP at the same time
hi Bill, afaik, in your case the packets checked twice against the ipfw-rules - once for the layer2-filtering part and 2nd time for the ip-filtering part. 1st enable filtering on ethernet demux/eth. output frame: # sysctl net.link.ether.ipfw=1 then start your fw-script: # -- sniplet from fw-script -- # iif=em0 ip_client=192.168.123.45 ether_client=88:99:aa:bb:cc:dd ether_broadcast=ff:ff:ff:ff:ff:ff ${fwcmd} add 10 pass MAC ${ether_broadcast} ${ether_client} via ${iif} ${fwcmd} add 20 pass MAC any ${ether_client} via ${iif} ${fwcmd} add 21 pass MAC ${ether_client} any via ${iif} ${fwcmd} add 30 pass ip from ${ip_client} to any via ${iif} ${fwcmd} add 31 pass ip from any to ${ip_client} via ${iif} # -- sniplet from fw-script -- # this results in: # ipfw show 00010 128 allow ip from any to any MAC ff:ff:ff:ff:ff:ff \ 88:99:aa:bb:cc:dd via em0 00020 74 9564 allow ip from any to any MAC any 88:99:aa:bb:cc:dd via em0 00021 87 85336 allow ip from any to any MAC 88:99:aa:bb:cc:dd any via em0 00030 74 9564 allow ip from 192.168.123.45 to any via em0 00031 86 85290 allow ip from any to 192.168.123.45 via em0 65535 487 35078 deny ip from any to any Most of this logic is described in the section PACKET FLOW section in man ipfw. Note that as packets flow through the stack, headers can be stripped or added to it, and so they may or may not be available for inspection. E.g., incoming packets will include the MAC header when ipfw is invoked from ether_demux(), but the same packets will have the MAC header stripped off when ipfw is invoked from ip_input() or ip6_input(). Cheers ch On Saturday 09 June 2012, Bill Yuan wrote: rule like below #allow the traffic which source mac is belong to the machine ipfw add 1 allow all from any to any MAC MAC ADDR1 any #allow the .. destination mac is that machine ipfw add 1 allow all from any to any MAC any MAC ADDR1 ipfw add 1 deny all from any to any it is not working , all the traffic will be block by the deny !!! how come ? On Sat, Jun 9, 2012 at 4:30 AM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Bill Yuan byc...@gmail.com writes: i am using freebsd 9.0 as a firewall and i want to filter the traffic by the mac and the ip at the same time, for example, i only allow my laptop MAC Address 1 can go throught the firewalll when it's using IP IP Address 1 for how to config the firewall rules? I tried to configure the firewall by the rule below , but it doesnt work ipfw add 1 allow all from IP Address 1 to any MAC MAC Address 1 any ipfw add 1 allow all from any to IP Address 1 MAC any MAC Address 1 Well, for one thing if I understand your intent, you have the MAC addresses in the wrong order. Unless your firewall is acting as a bridge, you also need to keep in mind that the MAC addresses are changed when passing through, so those rules will only work on one side (i.e., you'll need in via type rules). but it doesnt work. also found the explanation on google, someone already asked this question before. I don't understand. Was there a suggested approach or not? but I did not find the solution for this requirement. can someone tell me how ? thanks in advance. I can't guarantee this will work, and I don't have any way to test it, but my above comments would suggest something more like: ipfw add 1 allow all from IP Address 1 to any MAC any MAC Address in via $iif ipfw add 1 allow all from any to IP Address 1 MAC MAC Address 1 any out via $oif Good luck. ___ 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 ___ 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: xfce decktop time display
On Tuesday 04 November 2008, FBSD1 wrote: Using Xfce4 and the time is displayed in military time 2200. Want to change this to regular AM/PM displayed time. 10pm Been through the manual and all the menus and can not find knob to change the time setting. Thanks for any help you can give. Maybe the clock.rc file is from an old installation/version. You can remove ande re-add the clock via gui or edit the clock.rc file by hand. Simply set the military option to value false. HTH! $ cat ~/.config/xfce4/panel/clock*.rc mode=1 military=false ampm=true secs=true show_frame=false Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x1A9BE943 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: downloading linux_base-fc4
On Tuesday 21 October 2008, luizbcampos wrote: After I had tried to download linux_base-fc4 I got file unavailable not found no access...I need to put my printer to work! What`s the matter? Please read http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/128160 You can set MASTER_SITE_FEDORA_LINUX to the URL of the archive-site: # make install \ MASTER_SITE_FEDORA_LINUX=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/%SUBDIR%/; Cheers, ch ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x1A9BE943 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ScreenCapturing tool for FreeBSD-7.0 Release
On Wednesday 24 September 2008, dhaneshk k wrote: HI all ; Can anyone recommend a working screencapturing tool such as XvidCap for FreeBSD-7.0 graphics/scrot Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x1A9BE943 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: tomcat6 and diablo-jdk16
On Monday 18 August 2008, Thiago Esteves wrote: Hello, I've got the last java jdk 1.6 (diablo version) from freebsd foundation and when I tried to install the tomcat 6 from the ports I had some problems. The tomcat 6 port* tries to find the java binaries in the /usr/local/jdk1.5.0. Please see the output below. duamutef# make install clean === Cleaning for apache-tomcat-6.0.16 === Vulnerability check disabled, database not found === Extracting for apache-tomcat-6.0.16 = MD5 Checksum OK for apache-tomcat-6.0.16.tar.gz. = SHA256 Checksum OK for apache-tomcat-6.0.16.tar.gz. === Patching for apache-tomcat-6.0.16 Installation settings: Destination directory:/usr/local/apache-tomcat6.0 Location of JDK: /usr/local/jdk1.5.0 Location of Java port:java/jdk15 Running as (user/group): www/www HTTP port:8180 Shutdown listener port: 8005 AJP 1.3 connector port: 8009 Logfile stdout: /usr/local/apache-tomcat6.0/logs/stdout.log Logfile stderr: /usr/local/apache-tomcat6.0/logs/stderr.log === Applying FreeBSD patches for apache-tomcat-6.0.16 Removing unneeded files... [ DONE ] Customizing server.xml... [ DONE ] === Configuring for apache-tomcat-6.0.16 === Installing for apache-tomcat-6.0.16 === apache-tomcat-6.0.16 depends on file: /usr/local/jdk1.5.0/bin/java - not found ===Verifying install for /usr/local/jdk1.5.0/bin/java in /usr/ports/java/jdk15 === jdk-1.5.0.14p8_3,1 : Due to licensing restrictions, certain files must be fetched manually. Please open http://download.java.net/tiger/archive/tiger_u14/ in a web browser. Download the Update 14 Source, jdk-1_5_0_14-fcs-src-b03-jrl-05_oct_2007.jar and the Source Binaries, jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar . Please open http://java.sun.com/javase/downloads/index.jsp in a web browser and follow the Download link for JDK US DST Timezone Update Tool - 1_3_6 to obtain the time zone update file, tzupdater-1_3_6-2008c.zip. Please download the patchset, bsd-jdk15-patches-8.tar.bz2, from http://www.eyesbeyond.com/freebsddom/java/jdk15.html. Please place the downloaded file(s) in /usr/ports/distfiles and restart the build. .*** Error code 1 Stop in /usr/cvsup/current/ports/java/jdk15. *** Error code 1 Stop in /usr/cvsup/current/ports/www/tomcat6. Since I'm using the diablo-jdk1.6 that is located in /usr/local/diablo-jdk1.6.0, it doesn't work. I tried to find some variable to set where is my jdk, but no lucky. I tried the following and it worked well. cd /usr/local/ ; ln -s diablo-jdk1.6.0 jdk1.5.0 But creating a symbolic link from jdk1.5 to jdk1.6 seems not to be the best way. Is there a better way to install tomcat 6 *from the ports* using diablo-jdk1.6? Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You need to patch /usr/ports/Mk/bsd.java.mk, because the ports system doesn't know anything about diablo-jdk.1.6.0. I attached the patchfile. # cd /usr/ports/www/tomcat6 matrix010# make install === Vulnerability check disabled, database not found === Extracting for apache-tomcat-6.0.16 = MD5 Checksum OK for apache-tomcat-6.0.16.tar.gz. = SHA256 Checksum OK for apache-tomcat-6.0.16.tar.gz. === Patching for apache-tomcat-6.0.16 Installation settings: Destination directory:/usr/local/apache-tomcat6.0 Location of JDK: /usr/local/diablo-jdk1.6.0 Location of Java port:java/diablo-jdk16 Running as (user/group): www/www HTTP port:8180 Shutdown listener port: 8005 AJP 1.3 connector port: 8009 Logfile stdout: /usr/local/apache-tomcat6.0/logs/stdout.log Logfile stderr: /usr/local/apache-tomcat6.0/logs/stderr.log === Applying FreeBSD patches for apache-tomcat-6.0.16 Removing unneeded files... [ DONE ] Customizing server.xml... [ DONE ] === Configuring for apache-tomcat-6.0.16 === Installing for apache-tomcat-6.0.16 === apache-tomcat-6.0.16 depends on file: /usr/local/diablo-jdk1.6.0/bin/java - found [...] Apache Tomcat 6.0.16 has been installed in /usr/local/apache-tomcat6.0. === Installing rc.d startup script(s) === Registering installation for apache-tomcat-6.0.16 # Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x1A9BE943 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu --- bsd.java.mk.orig 2008-07-29 14:18:05.0 +0200 +++ bsd.java.mk 2008-08-18 22:07:01.0 +0200 @@ -169,6 +169,8 @@ # Set all meta-information about JDK ports: # port location, corresponding JAVA_HOME, JDK version, OS, vendor +_JAVA_PORT_NATIVE_FREEBSD_JDK_1_6_INFO= PORT=java/diablo-jdk16 HOME=${LOCALBASE}/diablo-jdk1.6.0 \ + VERSION=1.6.0 OS=native VENDOR
Re: get periodic to not scan a partition
On Saturday 02 August 2008, B. Cook wrote: hello all, I have a machine doing backups with backuppc (excellent program btw) and I have them being stored in /exports /dev/ad4s1h 57G 31G 21G60%/exports /dev/ad4s1h on /exports (ufs, local, noatime, soft-updates) it is now almost 6:20 am and periodic has been running since 3:01.. and it will complete in another 4 hours.. root 92866 0.6 0.1 3064 1488 ?? D 3:01AM 1:00.93 find / exports -xdev -type f ( -perm -u+x -or -perm -g+x -or -perm -o+x ) ( - perm -u+s -or -perm -g+s ) -print0 is there something I can do to get periodic to not look in /exports? I have the BackupPC 'backup folders' and symlinks to /usr/src /usr/obj and /usr/ports. Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Set up PRUNEPATHS in /etc/locate.rc. Cheers ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x1A9BE943 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: secure access to AS/400 ? (OT)
On Friday 01 August 2008, B. Cook wrote: Hello All, Seems OT, but I have been asked to give someone remote access to an AS/ 400 we have here. As I am not knowledgeable about AS/400's I do not know if there is an openssh/sshd app that could be put on there. They give everyone access 'locally' via telnet and some IBM gui app at the moment; the software: eNetwork Personal Communications AS/400 Client Access Express for Windows Workstation Program Version 4.3 If they can not find some form of sshd to put on the AS/400, I could give people access to a FreeBSD via ssh and then have them use 'something' to connect to it. Is there some terminal emulator that I would have to give them? I don't know how the AS works or what people use on it or use it for.. so please excuse the seemingly ignorant questions.. Thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] It's possible to set up a sshd on an AS/400 (aka iSeries aka system i). AFAIK you need to run OS Version V5R3M or higher on AS/400 and install the PASE tools lic-program. For more information see the links below: http://www-03.ibm.com/servers/enable/site/porting/tools/openssh.html http://wiki.midrange.com/index.php/SSH Depending on the version of the Client Access Emulator, it's allso possible to setup TN5250 via SSL, but you need to configure SSL on the AS/400 to make this happen. There are at least two 5250 terminal emulatiors in the ports tree. (/usr/ports/net/tn5250 and tn5250j). Cheers ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x1A9BE943 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: JDK 1.5 in a Jail
On Friday, 18. August 2006 18:54, Bret J Esquivel wrote: Hi Chad, Yeah I've tried below inside the master: mount -t linprocfs linprocfs /usr/jails/ox1.immense.net/compat/linux/proc with df containing: linprocfs 4 40 100% /usr/jails/ox1.immense.net/compat/linux/proc Still no joy. The security.jail.enforce_statfs MIB entry defaults to 2, while /sbin/mount (as used in the Makefile) requires value 1 (or 0) to produce the expected result. You can try the command sysctl security.jail.enforce_statfs=1 outside the jail. The MIB entry is documented in man 8 jail. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x466A7521 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpeM0HaZwCDH.pgp Description: PGP signature
Re: Recompiled freebsd 5.4 cannot boot up with geom_mirror
On Saturday 10 September 2005 04:06:04, Ng Pek Yong wrote: --- Christian Hiris [EMAIL PROTECTED] wrote: On Friday 09 September 2005 17:04:17, Ng Pek Yong wrote: Hi, I am having some problem with geom_mirror on a freebsd 5.4. I followed the steps described in http://people.freebsd.org/~rse/mirror/ and got geom_mirror up on a stock freebsd 5.4, including / partition itself. The problem came when I compiled the kernel. After pulling in the latest source tree, compiling and installing the new kernel, I find that the OS can no longer bootup. I did with 2 kernel configurations. The 1st is completely identical to the stock kernel config. The 2nd has an extra line options GEOM_MIRROR. Both failed to boot up although the errors are different. You don't need options GEOM_MIRROR in your kernelconfig to run gmirror. 1st config -- The boot process got stucked when it tries to mount / The error message is something like this Mount root from ufs:/dev/mirror/gm0s1a setrootbyname failed ffs_mountroot: can't find rootvp Root mount failed: 6 Maybe there is a typo in your /etc/fstab. Enter a ? here to get a list of all your geom devices. Then try to mount / from the correct device by entering ufs:mirror/your_root_device at the mountroot prompt. I can boot up with kernel.old without problem, so there is no typo. Anyway, I tried your method and list the devices. I get something like List of GEOM managed disk devices: ad1s1f..ad1s1a ad0s1f..ad0s1a acd0 ad1s1 ad0s1 ad1 ad0 fd0 Obviously something is wrong here. I am supposed to get devices that look like 'gm0s1a' etc Let me emphasize again. I haven't modified anything to the kernel, not even the kernel options. How could it be so wrong then? Did you run make buildworld before you run make buildkernel? Maybe kernel and world are out of sync on your system. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpG585EEpV88.pgp Description: PGP signature
Re: Recompiled freebsd 5.4 cannot boot up with geom_mirror
On Friday 09 September 2005 17:04:17, Ng Pek Yong wrote: Hi, I am having some problem with geom_mirror on a freebsd 5.4. I followed the steps described in http://people.freebsd.org/~rse/mirror/ and got geom_mirror up on a stock freebsd 5.4, including / partition itself. The problem came when I compiled the kernel. After pulling in the latest source tree, compiling and installing the new kernel, I find that the OS can no longer bootup. I did with 2 kernel configurations. The 1st is completely identical to the stock kernel config. The 2nd has an extra line options GEOM_MIRROR. Both failed to boot up although the errors are different. You don't need options GEOM_MIRROR in your kernelconfig to run gmirror. 1st config -- The boot process got stucked when it tries to mount / The error message is something like this Mount root from ufs:/dev/mirror/gm0s1a setrootbyname failed ffs_mountroot: can't find rootvp Root mount failed: 6 Maybe there is a typo in your /etc/fstab. Enter a ? here to get a list of all your geom devices. Then try to mount / from the correct device by entering ufs:mirror/your_root_device at the mountroot prompt. [...] Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpgKmHhLWYCK.pgp Description: PGP signature
Re: adding unused disk space for FreeBSD
On Saturday 09 July 2005 16:52:16, Ean Kingston wrote: On July 9, 2005 09:04 am, [EMAIL PROTECTED] wrote: Hi all, I have a FreeBSD slice (/dev/ad4s3) on which my FreeBSD system lives and some unused free diskspace (resulting from deletion of another OS (no names :-))) on the harddisk. I'd like to use this free diskspace with FreeBSD. I was unable to figure out how to do that using 'fdisk and friends'. You can do it on the command line with fdisk, bsdlabel, and newfs. It is a bit easier to explain using sysinstall so, here is the sysinstall way: #/stand/sysinstall On newer 5.x systems you may want to use /usr/sbin/sysinstall instead of /sbin/sysinstall. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgppDf9f3zO0V.pgp Description: PGP signature
Re: Booting with multiple RAID1 configs
On Saturday 18 June 2005 16:51:16, Steve Bertrand wrote: Hence, the aftermath on a properly booted system: pearl# atacontrol status 1 ar1: ATA RAID1 subdisks: ad4 ad6 status: READY pearl# atacontrol status 0 ar0: ATA RAID1 subdisks: ad2 ad0 status: READY pearl# df -h FilesystemSize Used Avail Capacity Mounted on /dev/ar1s1a 246M 185M41M82%/ /dev/ar1s1g38G 9.7G26G27%/home /dev/ar1s1e38G 3.3G32G 9%/usr /dev/ar1s1f29G 7.9G19G30%/var procfs4.0K 4.0K 0B 100%/proc I must add that atacontrol is such a much simpler RAID manipulation tool than vinum. I haven't done any redundancy checks or anything as of yet, but it almost seems too good to be in the base system :) Just a hint: Try out what happens if you disconnect one drive of each of your raid-arrays and you are rebooting the machine afterwards. I had some bad experience in the past with dual-ataraid configurations where the ataraid driver mixed up devices in case of an array breakage. I ended up with gmirror which stores its raid config data on disk. This means gmirror takes care of which disk belongs to which array. It is able to work independent of any controller/channel to disk mapping. Cheers ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpdlCe0TYMmk.pgp Description: PGP signature
Re: jail on 5.4
On Saturday 04 June 2005 05:56:05, dave wrote: Hello, Trying to set up a jail on 5.4-RELEASE. I've installed the 5_4_0_RELEASE source from cvsup and have successfully run: make buildworld DESTDIR=/usr/local/jails/jail1 The fine manual says make world DESTDIR=$D. If you run buildworld only, you need to run the installworld target, too (make world includes the buildworld and the installworld target). Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpsom6gmRVuh.pgp Description: PGP signature
Re: Tuning Hard Disks
On Wednesday 25 May 2005 04:51:04, Luyt wrote: Interesting. I did an 'atacontrol cap 0 0' and this came up (see below). It tells that my disk has 'SMART' support, but it isnt enabled. Any idea how I can enable it? Try the port sysutils/smartmontools. AFAIR it installs the command 'smartctl' that can be used to enable various device features. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpI1PhsKcvZV.pgp Description: PGP signature
Re: NTP issues with 5.4 (SOLVED) (fwd)
On Saturday 21 May 2005 15:56:15, Darrel wrote: On Fri, 20 May 2005, Christian Hiris wrote: On Friday 20 May 2005 01:01:01, Darrel wrote: [...] Thanks, Christian! I am comparing to a NetBSD computer with older hardware, that seems to always have PLL enabled: May 14 18:26:10 ntpd[343]: ntpd 4.2.0-r Wed Mar 23 08:12:50 UTC 2005 (1) May 14 18:26:11 ntpd[343]: precision = 2.000 usec May 14 18:26:11 ntpd[343]: kernel time sync status 0040 May 14 18:26:12 ntpd[343]: frequency initialized 74.725 PPM from /var/db/ntp.drift May 14 18:29:29 ntpd[343]: time reset -1.128987 s May 14 18:29:29 ntpd[343]: kernel time sync disabled 0041 May 14 18:35:49 ntpd[343]: kernel time sync enabled 0001 Probably the 4 indicates that the clock had drifted too far for the program to permit syncing to- perhaps the battery should be replaced. No, that's ok. The synchronization takes some minutes. The '1' indicates that PLL updates enabled, but it doesn't tell you much about the actual PLL/FFL mode. About weak batteries - I run ntpd on a i386 machine that had no battery inserted w/o any problems. I am still not sure why we do not see the new NTP4 mode shift to FLL, as with the FreeBSD computer. Maybe the /var/log/messages are just implemented differently on NetBSD 2.02. I will watch it occasionally with 'ntpdc -c kerninfo | grep status'. This NetBSD clock is also set to UTC and it seems that I recall that UTC can be improperly implemented when the computer previously had Microsoft Windows installed. The answer to your question is quite simple. The status bit STA_MODE hasn't been implemented in netBSD. I run a diff on FreeBSD's and netBSD's timex.h to point out the status bits differences: $ diff -u timex.h-freebsd timex.h-netbsd | grep STA_ - * format in use is determined by the STA_NANO bit of the status - * STA_NANO bit in the status word. See the description below for - * STA_FLL bit in the status word. #define STA_PLL0x0001 /* enable PLL updates (rw) */ #define STA_PPSFREQ0x0002 /* enable PPS freq discipline (rw) */ #define STA_PPSTIME0x0004 /* enable PPS time discipline (rw) */ -#define STA_FLL0x0008 /* enable FLL mode (rw) */ +#define STA_FLL0x0008 /* select frequency-lock mode (rw) */ #define STA_INS0x0010 /* insert leap (rw) */ #define STA_DEL0x0020 /* delete leap (rw) */ #define STA_UNSYNC 0x0040 /* clock unsynchronized (rw) */ #define STA_FREQHOLD 0x0080 /* hold frequency (rw) */ #define STA_PPSSIGNAL 0x0100 /* PPS signal present (ro) */ #define STA_PPSJITTER 0x0200 /* PPS signal jitter exceeded (ro) */ #define STA_PPSWANDER 0x0400 /* PPS signal wander exceeded (ro) */ #define STA_PPSERROR 0x0800 /* PPS signal calibration error (ro) */ #define STA_CLOCKERR 0x1000 /* clock hardware fault (ro) */ -#define STA_NANO 0x2000 /* resolution (0 = us, 1 = ns) (ro) */ -#define STA_MODE 0x4000 /* mode (0 = PLL, 1 = FLL) (ro) */ -#define STA_CLK0x8000 /* clock source (0 = A, 1 = B) (ro) */ #define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \ -STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK) +STA_PPSERROR | STA_CLOCKERR) /* read-only bits */ - * Note: The time member is in microseconds if STA_NANO is zero and - * STA_NANO is zero and nanoseconds if not. The complete sources are available via cvsweb: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/sys/timex.h http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/dist/ntp/kernel/sys/timex.h Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpODeW512gM1.pgp Description: PGP signature
Re: NTP issues with 5.4 (SOLVED) (fwd)
On Friday 20 May 2005 01:01:01, Darrel wrote: I installed openntpd considering that it should run with reduced privileges. The Workgroup did not sync up right away and I reinstalled NTP4. Currently, I can sync Window XP and Windows 98. My /var/log/messages: May 19 12:25:37 ntpd[379]: kernel time sync enabled 6001 May 19 12:42:40 ntpd[379]: kernel time sync enabled 2001 May 19 14:59:14 ntpd[379]: kernel time sync enabled 6001 May 19 15:16:19 ntpd[379]: kernel time sync enabled 2001 May 19 18:24:09 ntpd[379]: kernel time sync enabled 6001 May 19 18:41:14 ntpd[379]: kernel time sync enabled 2001 I am not sure, but this could be normal phase-lock-loop of the kernel. I think this is normal, the above status codes are in hex. Bit 0 of the 1st byte tells about clock source (0=A 1=B), bit 1 of 1st byte stands for mode status (0=PLL 1=FLL), bit 2 of 1st byte represents resolution status (0=us 1=ns) and bit 7 of the 2nd byte indicates that PLL updates are enabled. status 0x2001 = source A, mode PLL, resolution ns, PLL updates enabled status 0x6001 = source A, mode FLL, resolution ns, PLL updates enabled The command 'ntpdc -c kerninfo | grep status' displays some of this status information in human-readable format. You can find a document that describes the Adaptive Hybrid Clock Discipline Algorithm at http://www.eecis.udel.edu/~mills/database/papers/allan.pdf Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpL7BNSORxZr.pgp Description: PGP signature
Re: query
On Monday 16 May 2005 15:20:15, palma apg 42.71.63.00 wrote: Good day, as you see my screen name (which I set myslef but i forgot how) shows a phone number that is no longer in use. would yopu please tell me what is the cmd line that effects a change in thoseA? aI cannot find under chname tec. thank yopu Try 'man 1 chpass'. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpMdsV5RWpMN.pgp Description: PGP signature
Re: query
On Monday 16 May 2005 21:42:21, PALMA room #205 off#9196603065 mob#9195997065 both have voicemail wrote: danke, however the right cmd line is chfn cheers a The chpass, chfn, chsh, ypchpass, ypchfn and ypchsh commands all the same, they are linked via src/usr.sbin/Makefile. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpNWtDbLUz4E.pgp Description: PGP signature
Re: startx fail after portupgrade Xorg 6.8.2 - (keyboard)
On Thursday 12 May 2005 01:49:01, [EMAIL PROTECTED] wrote: Hi My original XF86Config has not been changed during upgrade to 6.8.2 nor have there been any hardware changes. Startx worked prior to upgrade - now display starts and immediately returns to consol. Keyboard works fine on consol. Log file entries relating to kb are as follows: Note that the driver name is case-sensitive. -- X Protocol Version 11, Revision 0, Release 6.8.2 Config file /etc/X11/XF86Config Log file /var/log/Xorg.0.log (**) |--Input Device Keyboard1 (**) Option AutoRepeat 500 30 (**) Option XkbRules xfree86 (**) XKB: rules: xfree86 #Option XkbRules xfree86 Option XkbRules xorg (**) Option KkbModel pc104 #Option KkbModel pc104 Option XkbModel pc104 (**) XKB: model: pc104 (**) Option XkbLayout us (**) XKB: layout: us (==) Keyboard: CustomKeycode disabled (EE) No Input driver matching 'keyboard' No core keyboard Fatal server error failed to initialize core devices HTH Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpV4xuaE1FcC.pgp Description: PGP signature
Re: Moving /var
On Saturday 30 April 2005 01:59:01, Lisa Casey wrote: Hi, I could have sworn I've seen some info on moving var onto it's own hard drive but I vcan't seem to find it now. Would anyone happen to know a url? Thanks, Lisa http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpCmiZJHiahf.pgp Description: PGP signature
Re: sshd configuration after mergemaster
On Monday 21 March 2005 18:55:18, John DeStefano wrote: I've just completed a successful transition from 5.3-BETA7 to 5.3-RELEASE via the usual makeworld procedures. Thanks to spending some time with mergemaster -p, all of my configuration seems to have carried over and is working perfectly, with the exception of ssh. The only difference between the original and temporary versions of sshd_config was a single line I had entered in order to prevent root from logging in via ssh as root. Everything else, with the obvious exception of the config file signature, was the same. Yet I'm now getting errors when I try to ssh from any location (remote, LAN, even testing on the same terminal). If I don't do -v, the terminal window just disappears or shows no feedback. -v shows no more authentication methods to try. This points to commitment of rev. 1.35 for me: http://www.freebsd.org/cgi/cvsweb.cgi/src/crypto/openssh/sshd_config.diff?r1=1.34r2=1.35f=h Cheers ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpyT96S3Wfeq.pgp Description: PGP signature
Re: Autoinstall
On Saturday 26 February 2005 19:04:19, Roland Smith wrote: On Sat, Feb 26, 2005 at 11:20:24PM +0530, Subhro wrote: Hello Folks, I am trying to create a custom install CD for a few systems which are exact clones of each other. I am trying to make the CD such that whenever the systems are booted off the CDs, it would be auto partitioned and all the predefined packages would be installed without any user intervention. Anyone can help me by sending me pointers or procedure about how to create it? Note that I haven't tried it myself, but the FreeBSD installation utility, sysinstall can be scripted. See sysinstall(8). There is also a manual page about how releases are built. See releases(7). There exists a sample script on our cvs servers: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/release/sysinstall/Attic/install.cfg?rev=1.9.2.2 Altough it's listed in the Attic, I think it will still work. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpXL6nJCwm6E.pgp Description: PGP signature
Re: where is libstd++.so.5?
On Saturday 26 February 2005 20:12:20, Gary Kline wrote: Can anybody clue me in which port builds the lib++ shared libraries? LoadPlugin: failed to initialize shared library /usr/local/lib/linux-mozilla/plugins/nphelix.so [Shared object libstdc++.so.5 not found, required by nphelix.so] # locate libstdc++.so.5 /usr/compat/linux/usr/lib/libstdc++.so.5 /usr/compat/linux/usr/lib/libstdc++.so.5.0.1 You need to install one of the linux ports and set linux_enable=YES in your /etc/rc.conf. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpkewrqvXO5c.pgp Description: PGP signature
Re: IPFW config
On Monday 21 February 2005 19:01:19, SigmaX wrote: [...] Set IPFW to allow traffic on ports 80, 1, and 23 (That's the default SSH port, right?) The default shh port is 22, port 23 is assigned to telnet. You can find the list of default port assignments in /etc/services. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpgfM8ue6Fgm.pgp Description: PGP signature
Re: vmnet1 vmneet2 etc
On Monday 31 January 2005 22:25:22, dick hoogendijk wrote: I lost all mail in transferring my system to another harddisk. I had the answer stored somewhere. Now it's gone. ;-( I want to run three virtual vmware machines on one host. It was something with different vmnet and the option custom, but I can't figure out how exactly.. Any link or info? For vmware3 take a look into /usr/local/share/doc/vmware/MultipleInstaces.FreeBSD. In the virtual machines interface config dialog select type Custom and allocate your interfaces (/dev/vmnet1, /dev/vmnet2, etc.) to your vmware instances. Some config and routing issues were discussed in the emulation list: http://lists.freebsd.org/pipermail/freebsd-emulation/2004-July/thread.html#482 Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpQScR7FwTiY.pgp Description: PGP signature
Re: RAID1, a failed disk and performance
On Thursday 27 January 2005 23:12:23, Chad Morland wrote: http://members.chello.at/freebsd-5.3/bonnie-gmirror/summary http://members.chello.at/freebsd-5.3/bonnie-gmirror/detail I expect to see data transfer rate increase when you break the mirror. RAID1 has the higest disk overhead of all RAID configurations and is very inefficient in that regard. It would be interesting to see performance results with the bad disk still attached to the mirror. Unfortunately I am not able to break disks on a whim so I can't test it out. :P I also run the bechmarks with the gnop class invoked. It seems that the 'gnop -f nnn' option doesn't work, so that I couldn't observe any significant performance differences. I own several really nice broken IBM SCSI disks, but they are broken in such a way, that the mirrors break immediately after hitting the damaged areas. Maybe it's the better solution to run smartd from ports/smartctl and replace flaky disks asap. -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpQMiRLIbs6i.pgp Description: PGP signature
Re: Where I can find boot's dmesg
On Thursday 27 January 2005 11:07:11, Supote Leelasupphakorn wrote: Hi list, I'm currently use FreeBSD-5.2 and just wondered where I can see the dmesg in the time I booted my box up. Look into /var/run/dmesg.boot or use the Scroll-Lock key (it's between the Print/Sys-Req and Pause/Break keys) to make the console display scrollable by the Pageup/Pagedown and Up/Down keys. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpQq3jVw5LeB.pgp Description: PGP signature
Re: Setting up RAID1 with gmirror
On Thursday 27 January 2005 14:05:14, Andrew Lewis wrote: [...] -bash-2.05b# gmirror insert gm0 /dev/ad0 Provider ad0 too small. ^- Oops. This tells you that the mediasize of your disk ad0 is smaller than the mediasize of your mirror on ad2. In simple words, disk ad0 seems to be smaller than disk ad2 (ie. a mirror with a capacity of 160GB can't be mirrored to a disk with only 120GB). I would try to set up a second mirror (ie. /mirror/gm1) on your smaller disk (ad0). Then dump/restore data from /mirror/gm0s1a (ad2) to the /mirror/gm1s1a (ad0) and edit fstab on /mirror/gm1s1a. After that reboot into /mirror/gm1s1a and destroy the mirror on the bigger disk (ad2) and insert /dev/ad2 into /mirror/gm1. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpwAIjgv4yha.pgp Description: PGP signature
Re: RAID1, a failed disk and performance
On Thursday 27 January 2005 21:14:21, Chad Morland wrote: What happens in terms of performance when a drive in a RAID1 system fails? Will disk access be slower because it attempts to read/write to a failed disk or will performance be faster because it doesn't need to do half the work it usually does? I couldn't really find any online resources that deal with performance levels when there are failed drives present in a RAID array. If you are interested in gmirror software-raid performance, I put some bonnie benchmark data online. I run the benchmark on a cheap none-raid Promise-Ultra-133-TX2 aka PDC20269, which costs about 25 Euros: http://members.chello.at/freebsd-5.3/bonnie-gmirror/summary http://members.chello.at/freebsd-5.3/bonnie-gmirror/detail Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpGoqCAnqt5g.pgp Description: PGP signature
Re: What's on each FreeBSD 5.3 (i386) disc?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 25 January 2005 08:58:08, David Tomic wrote: I want to install FreeBSD for the i386 architecture...there are 4 ISOs: 5.3-RELEASE-i386-bootonly.iso 5.3-RELEASE-i386-disc1.iso 5.3-RELEASE-i386-disc2.iso 5.3-RELEASE-i386-miniinst.iso a) If I just burn the disc1 ISO image to a CD is that enough for a standard install? b) what's on disc 2 - ports? c) what is the 'bootonly' disc for? Please read 2.13.1.1 on http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-diff-media.html Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB9gOA09WjGjvKU74RAuP5AJ9NjmFnRU2vCZfK6PH52KKBtmiEXwCfWrhi RDF4TnZrDRpYtBYX0cU0yEk= =z5y2 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: set_rcvar load_rc_config run_rc_command: all not found
On Wednesday 26 January 2005 05:45:05, Duane Winner wrote: Hello, I've just noticed (after spending the past two weeks testing 5.3-release), that I'm getting this on every boot and shutdown: Local package initialization:set_rcvar: not found load_rc_config: not found run_rc_command: not found Everything seems to be working fine, but I sure would like to know where those set_rcvar, load_rc_config and run_rc_command not found messages are coming from and why. This messages were sent by a script, which resides in one of your local startup directories. If you use the default local startup directories, then search the scripts under /usr/local/etc/rc.d and /usr/X11R6/etc/rc.d for the variables that couldn't be found. The script that wants to run the functions set_rcvar, load_rc_config and run_rc_command requires the line . /etc/rc.subr. This line sucks in the file /etc/rc.subr and makes the missing functions available to your script. Cheers, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpdpPO0idMSo.pgp Description: PGP signature
Re: Custom Kernel 'make depend' Failure
On Wednesday 19 January 2005 05:14, Scott C. MacCallum wrote: Greetings, I am running FreeBSD 5.3 Stable. I had been following the steps found in the handbook to make a custom kernel: /usr/sbin/config MYKERNEL cd ../compile/MYKERNEL make depend You run the old, traditional way to build a kernel. Did you rebuild world after you have cvsuped your sources? I would recommend that you do some cleanup and then build world and kernel the new way. Clean up /usr/obj (if exists): # cd /usr/obj # chflags -R noschg * # rm -rf * Clean up sources: # cd /usr/src # make cleandir ; make cleandir Read /usr/src/UPDATING. Build world and kernel: # make buildworld # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL Reboot into single user mode and install world. # adjkerntz -i # fsck -p # mount -u / # mount -a -t ufs # swapon -a # mergemaster -p # cd /usr/src # make installworld # mergemaster # reboot For the details please read http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html Good luck! -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror: replacing failed disks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 19 January 2005 22:53, you wrote: On Wed, Jan 19, 2005 at 06:55:53AM +0100, Christian Hiris wrote: [...] 2.2. Blank out gmirror metadata on ad4 # dd if=/dev/zero of=/dev/ad4 bs=512 skip=156301400 This command took a long time and I didn't let it complete. I use the tcsh and would occassionaly hit ctrl T to track it's progress. I didn't see it writing data to the disk nor did I see disk activity. Did I not wait long enough? Ooops, I just realized that option 'skip=n' skips the blocks on the *input* file. The correct option to skip blocks on the outfile is 'seek=n'. It didn't damage anything in our case, but it waisted your time. Sorry about this mistaken option and the time you lost from this. The command's only purpose is to re-design the drive, as if it hasn't ever faced the gmirror framework before. Just for the archives the corrected (and double-checked) command: 2.2. Blank out gmirror metadata on ad4 # dd if=/dev/zero of=/dev/ad4 bs=512 seek=n where n=(metadata_location_in_bytes/512)-1 [...] Christian, Other than the issue with 2.2 above, the procedure worked and the replacement drive is now synchronizing. Now I'll print out a transcript of this and tape it to the box, Then, in three years, when a drive dies, I'll remember what to do :) Thanks again for all your help. Just in case, if the tape fails :) http://freebsd.rambler.ru It's excellent! Good luck, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB7wOK09WjGjvKU74RAuzzAJ97NfgwdPng100HzfDOqItmGo4xfQCfeNhW wQzw3GGrB/oWrWcWobrcEwI= =x6Rz -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ntpd problems since upgrading to 5.3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 18 January 2005 23:14, John wrote: On Tue, Jan 18, 2005 at 04:04:30PM -0600, John wrote: On Tue, Jan 18, 2005 at 07:23:41AM -0600, John wrote: On Tue, Jan 18, 2005 at 07:26:16AM +0100, Christian Hiris wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 18 January 2005 01:09, John wrote: This is what goes into the log: Jan 17 18:04:29 pearl ntpd[838]: ntpd 4.2.0-a Sun Jan 9 10:58:59 CST 2005 (1) Jan 17 18:04:29 pearl ntpd[838]: bind() fd 7, family 2, port 123, addr 0.0.0.0,in_classd=0 flags=8 fails: Address already in use I can reproduce this, it only happens if you try start more than one ntp-daemons on the same interfaces. Better start this via rc. # killall ntpd # /etc/rc.d/ntpd start Starting ntpd. # /etc/rc.d/ntpd start ntpd already running? (pid=68961). # /etc/rc.d/ntpd stop Stopping ntpd. Thank you, Christian, but I have confirmed that ntp is not running before the attempt that generates that message. # ps ax | grep ntp # killall ntpd No matching processes were found # ntpdc -c peers ntpdc: read: Connection refused So, I think we can be pretty sure at this point that ntpd is NOT running. Then.. I can't use the script to start ntp, because the config parameters are to not start it, so # ntpd Boom! I immediately get the error message that I gave above! If it were already running, I could understand, but my point is that I've been pretty thorough in determining that it is my first attempt to run it that gets this error message. I have also tried running ntpdate before starting ntpd, or not doing it. If I do it, it works correctly, indicating that ntpd is not running, becuase ntpdate will fail if ntpd is running. I have also NOT run ntpdate first (after a reboot) just to prove to myself that there's nothing residual it could leave that would make ntpd complain about this. It's very puzzling! OK. Get this. I just generated a custom kernel to get rid of all the good stuff that this laptop will never support. It just so happens to be a couple of days later (in CVS terms) than the one I was running. I decided to take a chance and just do the installkernel rather than install the whole world. Now ntpd works. I didn't change any config files, DNS, or anything else - just installed my custom kernel. I still get an error message, but now it simply says no IPv6 interfaces found and runs successfully. Go figure. My best guess is that my prior cvsup of 5-STABLE had something in the kernel environment and ntpd slightly out of sync, with ntpd being ahead of the kernel, and now, even though I didn't do an installworld, that skew was resolved. While rare, it is the possibility of this skew that makes me uncomfortable with cvsup - but having no better plans, I'll keep using it! I may have to figure out how to maintain a local release tree that is behind the -STABLE tree, or something. I truly do not know what the right answer is. Wow! Now my mind is REALLY blown! Look at the following consecutive runs of ntpdc just a few minutes part, with nothing else going on in between: pearl# !! ntpdc -c peers remote local st poll reach delay offsetdisp === =dexter.starfire 192.168.1.53 3 256 17 0.00026 0.023755 0.93869 =dauntless.starf 192.168.1.53 4 256 17 0.00053 0.016804 0.93942 pearl# pwd /home/john pearl# !nt ntpdc -c peers remote local st poll reach delay offsetdisp === =dexter.starfire 192.168.1.53 3 641 0.00026 0.035822 7.93750 =dauntless.starf 192.168.1.53 4 641 0.00061 0.035934 7.93750 pearl# ps ax | grep ntp 751 ?? Ss 0:00.05 ntpd pearl# That last line is me confirming that it's still the same PID for ntpd. What happened here? The reachability mask went from 17 to 1, the dispersion popped WAY up, the offset increased, and the polling time went down. Maybe this is normal for ntpd in some set of circumstance, but I've not seen it before. The other odd thing, and I haven't shown you enough runs to demonstrate it, is that the offset was INCREASING prior to this apparent reset. Maybe it failed to converge and started over? But the polling interval kept increasing... Anybody know what just happened? To me, this behaviour seems to be normal. http://www.eecis.udel.edu/~mills/database/papers/trans.pdf http://www.eecis.udel.edu/~mills/database/papers/allan.pdf Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version
Re: gmirror: replacing failed disks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 19 January 2005 05:36, Doug Poland wrote: On Tue, Jan 18, 2005 at 09:02:48AM -0600, Doug Poland wrote: GEOM_MIRROR: Component ad4 (device gm0s1) broken, skipping. GEOM_MIRROR: Cannot add disk ad4 to gm0s1 (error=22). You can set 'kern.geom.mirror.debug=2' in /boot/loader.conf. This tells you more about what happens. I tested all this at a very early stage of development, so gmirror's behaviour might have changed. There is also a small chance that some bits in my brain got lost since I tested his :) I set this while the OS is running. GEOM_MIRROR responds every 5 seconds GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as clean. GEOM_MIRROR[2]: Metadata on ad6 updated. GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty. GEOM_MIRROR[2]: Metadata on ad6 updated. Can I get gmirror to attempt to connect to ad4 again? I tried an atcontrol reinit 2, that didn't do it. I also tried gmirror rebuild gm0s1 ad4, but gmirror said: No such provider: ad4. Sorry to reply to my own post, but when I rebooted the box, this is what I see in /var/log/messages concerning gmirror: ... snip ... GEOM_MIRROR[2]: Metadata on ad6 updated. Jan 18 21:07:17 sgwww02 kernel: GEOM_MIRROR[1]: Disk ad6 (device gm0s1) marked as dirty. Jan 18 21:07:17 sgwww02 kernel: GEOM_MIRROR[2]: Metadata on ad6 updated. and on and on... Not sure what to do to get gmirror to recogonize this disk. Hi Doug, seems to me, that when you pulled drive ad4, data on it were damaged. Thanks for trying this with ad4 as provider! Now simply try to simulate a replacement with a fresh disk, as you would do in real life. Please set 'sysctl -w kern.geom.mirror.debug=0' and remove the according line from your /boot/loader.config. The procedure below is similar to the example in the gmirror manpage, just added 2. and 3. to make ad4 appear as a fresh disk and re-create the slice ad4s1. 1. Let ad6 forget about all other gms01's providers # gmirror forget gms01 2. Clean up ad4 2.1. Blank out the first few blocks of ad4 # dd if=/dev/zero of=/dev/ad4 bs=512 count=128 2.2. Blank out gmirror metadata on ad4 # dd if=/dev/zero of=/dev/ad4 bs=512 skip=156301400 3. Initialize ad4 and create slize ad4s1 # fdisk -v -B -I /dev/ad4 4. Add /dev/ad4s1 to mirror gm0s1 # gmirror insert gm0s1 /dev/ad4s1 Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB7fZ309WjGjvKU74RAu8bAJ90bGmDZ5WRG+cLWSvnR6dLt+whSgCaAkDS lNzBZNp+DVOlzNuA30rmKXQ= =ZPkt -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ntpd problems since upgrading to 5.3
upgraded to 5.3. I could solve them by adding the disable auth option to my ntp.conf. At system startup I run ntpdate before ntpd starts. On the server ntp.matrix.net I run ntpd with the following config files (This machine still runs 5.3-BETA-4): # cat /etc/rc.conf | grep ntp ntpdate_flags=-b clock.netcetera.dk tick.keso.fi ntpdate_enable=YES ntpd_enable=YES - - # cat /etc/ntp.conf driftfile /var/db/ntpd.drift # stratum 1 server swisstime.ethz.ch# 129.132.2.21 server time2.stupi.se # 192.36.143.151 server ntps1-0.cs.tu-berlin.de # 130.149.17.21 restrict 192.168.123.0 mask 255.255.255.0 disable auth statsdir /var/log/ntpstats/ filegen peerstats file peerstats type day enable filegen loopstats file loopstats type day enable filegen clockstats file clockstats type day enable - -- # ntpdc -c peers ntp.matrix.net remote local st poll reach delay offsetdisp === =swisstime.ee.et 84.101.100.100 1 1024 377 0.04387 -0.008958 0.01483 =Time2.Stupi.SE 84.101.100.100 1 1024 377 0.05922 -0.008854 0.01482 *hora.cs.tu-berl 84.101.100.100 1 1024 377 0.03352 -0.017613 0.01485 On the clients I run (these machines run 5.3-STABLE): # cat /etc/rc.conf | grep ntp ntpdate_flags=-b ntp.matrix.net ntpdate_enable=YES ntpd_enable=YES - - # cat /etc/ntp.conf server ntp.matrix.net restrict 127.0.0.1 statsdir /var/log/ntpstats/ filegen peerstats file peerstats type day enable filegen loopstats file loopstats type day enable filegen clockstats file clockstats type day enable - -- # ntpdc -c peers remote local st poll reach delay offsetdisp === *ntp.matrix.net 192.168.123.10 2 1024 377 0.00046 -0.004711 0.01482 Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB7HKV09WjGjvKU74RAkPwAJsFagaTCVXca0zTdYLiwJI1J63d5gCeKyO8 0NqA6Ve3YmlGls65zwBJxQE= =mmJV -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: window managers don't work over ssh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 18 January 2005 02:17, [EMAIL PROTECTED] wrote: Hello Xian, sometimes using -Y instead of -X solves a lot of X11 forwarding problems. Not sure if it would solve your problem, but did you try this? If you use this in a multiuser environment, please also read about the securtity considerations of options ForwardX11 and ForwardX11Trusted in 'man 5 ssh_config' . Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB7HVB09WjGjvKU74RAvrXAJ4rnSRVF93KMQXqY+whDrt7Be1udACfSqOY wzsSDkhltEQLnMArmXOtNLA= =Uo0B -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ntpd problems since upgrading to 5.3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 18 January 2005 05:23, Rob wrote: Christian Hiris wrote: On the server ntp.matrix.net I run ntpd with the following config files (This machine still runs 5.3-BETA-4): # cat /etc/rc.conf | grep ntp ntpdate_flags=-b clock.netcetera.dk tick.keso.fi ntpdate_enable=YES ntpd_enable=YES - - No need for ntpdate -b. Following has same effect, using the time servers from ntp.conf: xntpd_enable=YES xntpd_flags=-g Thanks, I know this, but old the old ntpdate method has been reported to be faster. The use of xntpd* variables has been deprecated some time ago. http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.subr.diff?r1=1.3r2=1.4f=h Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB7JbR09WjGjvKU74RAj8aAJwPs+9rIFGrwKfYipDbZvvu/jYqFQCfeJD0 GcE2vzHpGCeLTkFfSdxi4lw= =lDYr -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ntpd problems since upgrading to 5.3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 18 January 2005 01:09, John wrote: This is what goes into the log: Jan 17 18:04:29 pearl ntpd[838]: ntpd 4.2.0-a Sun Jan 9 10:58:59 CST 2005 (1) Jan 17 18:04:29 pearl ntpd[838]: bind() fd 7, family 2, port 123, addr 0.0.0.0,in_classd=0 flags=8 fails: Address already in use I can reproduce this, it only happens if you try start more than one ntp-daemons on the same interfaces. Better start this via rc. # killall ntpd # /etc/rc.d/ntpd start Starting ntpd. # /etc/rc.d/ntpd start ntpd already running? (pid=68961). # /etc/rc.d/ntpd stop Stopping ntpd. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB7KwI09WjGjvKU74RAiOsAJwM4urvuaeSka6k22X2AnSwh/ty0QCggDLA +aT+p15ZiIqVdK8HkvMdFV0= =yI9F -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ntpd problems since upgrading to 5.3 - found the problem!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 18 January 2005 07:19, Ian Moore wrote: Now I'm not sure what the best way to get around this would be. I run a caching name server on the machine, so I guess I can tweak it to force localhost.foo.com resolve to 127.0.0.1 I'm running ntpd and a caching nameserver on one machine, too. The external IP is only referenced by /etc/hosts. My bind holds only the internal networks, including it's own localhost. There also could be some influence from your /etc/resolv.conf, but I'm not sure about. # dig localhost.matrix.net ; DiG 9.3.0 localhost.matrix.net ;; global options: printcmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 47348 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;localhost.matrix.net. IN A ;; ANSWER SECTION: localhost.matrix.net. 3600IN A 127.0.0.1 ;; AUTHORITY SECTION: matrix.net. 3600IN NS ns.matrix.net. ;; ADDITIONAL SECTION: ns.matrix.net. 3600IN A 192.168.123.1 ;; Query time: 1 msec ;; SERVER: 192.168.123.1#53(192.168.123.1) ;; WHEN: Tue Jan 18 07:27:54 2005 ;; MSG SIZE rcvd: 87 # cat /etc/resolv.conf search matrix.net nameserver 127.0.0.1 - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB7LAC09WjGjvKU74RAkZjAKCC6C+33mjGMf3tK36/36KV0yUrlgCdGpr8 6RVG2fKYma3/+tJbdPrx3YI= =pwmk -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror: replacing failed disks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 16 January 2005 21:14, Doug Poland wrote: Hello, I've got a bootable gmirror running on identical SATA drives on 5.3-STABLE. The technique I've used to build the gmirror can be found on http://people.freebsd.org/~rse/gmirror, under the heading GEOM mirror Approach 2: Single Slice, Preferred, More Flexible. Now I'd like to experiment with replacing a failed drive. This particular box has hot-swappable drives, so all I need to do is pull a drive out while the box is running. The man page states: One disk failed. Replace it with a brand new one: gmirror forget data gmirror insert data da1 (My system has a provider gm0s1 with ad4 and ad6 as consumers, so I'll use those device names) Simulate ad4 failing: pull the drive put the drive back in, reboot if necessary to detect drive After you put the drive in, you can try to attach or reinit the controller channel where it's connected to with the command 'atacontrol'. If you put the same drive in, and you haven't zeroed the bootblocks and the slicetable (on ad4) geom will recognice that the missing disk has been re-attached and will start rebuilding. If you want to simulate insertion of a blank disk, run the 'gmirror forget' command before you re-attach disk ad4. Then dd the first few blocks and the last sector of the old slice, where the gmirror metadata are stored. You can do this by 'dd if=/dev/zero of=/dev/ad4 bs=512 count=1 skip=n', where n=number of sectors to be skipped. In your case it's better, if you check where the metadata are stored. Maybe they are stored at the end of your disk. I think of this because of your gmirror list output, where ad4 and ad6 are listed as consumers. # gmirror forget gm0s1 # dd if=/dev/zero of=/dev/ad4 bs=512 count=79 You are missing the operator here. # size=`fdisk ad6 | grep ', size ' | head -1 | sed -e 's;^.*size \([0-9]*\).*$;\1;'` (echo p 1 165 63 $size; echo a 1) | fdisk -v -B ^^ -f- -i /dev/ad4 OR # fdisk -v -B -I /dev/ad4 # gmirror insert gm0s1 /dev/ad4s1 (Now wait two hours for the drives synchronize) That should work, yes? How does gmirror know about /dev/ad4s1 if that drive was previously unformatted or brand new? That should work, if you create the slice with 'fdisk -v -B -I /dev/ad4', but on the other hand, it would be very interresting, if gmirror really handles the consumers as they are displayed by your gmirror list command. I would blank disk ad4 (as I described above) and see what happens when you issue the command 'gmirror insert gm0s1 /dev/ad4'. Maybe gmirror handles drives with one slice that covers the whole drive, as disks (instead of slices)? I would give it a try. (If you try this, please could you post or pm me the 'gmirror list' output? Thank you!) Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB6udl09WjGjvKU74RAsVAAJ4sDZKZ8qZqxVf927yQXBxK7HO/ZwCfdWnL OWuuqs6UMMjwaK/1E9Ewm/o= =0IXG -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Java plugin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 15 January 2005 21:21, E. J. Cerejo wrote: --- Kris Maglione [EMAIL PROTECTED] escreveu: E. J. Cerejo wrote: I'm having trouble in getting the java plugin to work with mozilla on FreeBSD 5.3, here what I did: Install jdk13 using the port and then I linksysed /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so to /usr/X11R6/lib/browser_plugins/libjavaplugin.so but unfortunately it still doesn't work. Any ideas as to why? Run mozilla from an xterm and see what output you get. It should tell you why it won't work. Is it listed in about:plugins? No it's not listed there, here's what I get when I run from terminal: LoadPlugin: failed to initialize shared library /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so [/usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so: Undefined symbol _ZTV16nsQueryInterface] LoadPlugin: failed to initialize shared library /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so [/usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so: Undefined symbol _ZTV16nsQueryInterface] This is a known issue. Install jdk-1.4.2 instead of jdk-1.3.1. http://www.mozilla.org/releases/mozilla1.7/known-issues.html#java Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB6Yn109WjGjvKU74RAoCGAJ4tkMR6gwCCvMz6eJNxxCQ8qdy6NACeJ9k2 tdJVL2SxpvFJuvOyXg2xOdY= =wK8t -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing both disks in RAID1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 14 January 2005 18:47, Toomas Aas wrote: Derek wrote: But if it is necessary, it should be possible to bring the machine up to single user mode and modify the fstab there, right? Given, of course, that the root partition is left on ar0s1a. If a valid fstab-entry for the rootfilesystem is missing, the system asks you to enter the filesystem-type and the device where the rootfilesystem resides. You just need to enter a string like ufs:ar0s1a. If some more fstab-entries fail to mount your filesystems during system startup, you will end up automatically at a shell prompt. From there you can mount your filesystems by using the 'mount' command and edit your fstab. It's maybe good to be familiar with 'man 8 boot', just in case. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB6BMo09WjGjvKU74RAg/2AJ9pm0ud8M1HwGQs+qIhyUlOaup47QCZAWxB E+SjWJj1MwaKIwF81Wb3+Pc= =kWqf -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror problem on 5.3-R i386 (SOLVED)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 14 January 2005 20:43, Doug Poland wrote: On Thu, Jan 13, 2005 at 09:51:03AM +0100, Christian Hiris wrote: On Thursday 13 January 2005 03:54, Doug Poland wrote: I'm having a problem with gmirror. It would seem that I cannot add my first disk to the mirror after booting off the second drive. My current status is a degraded mirror and I cannot see any of the partitions on disk one. # dd if=/dev/zero of=/dev/ad4 bs=512 count=79 You probably destroyed your slice table here. The dd command only makes sense if you insert whole disks (ie. /dev/ad4 and /dev/ad6) as providers. Otherwise you need to create (or already have) a valid slice table on the disk, which enables gmirror to locate and insert your slice. One of my problems was incorrect partition sizes when I created the bsdlabel for /dev/mirror/gm0s1. I didn't really know what I was doing nor did I understand the consequences of my actions ;) :) (!) Before you start to correct your gmirror setup, please read all of my comments, because to me it looks like you run a mirror of ad6 and not ad6s1. I'm not sure why gmirror label shows that but it's definately misleading. Since this is a brand-new box with nothing but a minimal install, I decided to re-install 5.3-R. This time I got the install right and gmirror reads: This looks like gmirror in fact uses the the whole disk. The difference between the providers and the consumers length is 63 sectors, which is the first slice's offset (see fdisk below). Geom name: gm0s1 State: COMPLETE Components: 2 Balance: round-robin Slice: 4096 Flags: NONE SyncID: 1 ID: 3524221455 Providers: 1. Name: mirror/gm0s1 Mediasize: 80026329088 (75G) Sectorsize: 512 Mode: r5w5e1 Consumers: 1. Name: ad4 Mediasize: 80026361856 (75G) Sectorsize: 512 Mode: r5w5e2 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 1 ID: 2031344187 2. Name: ad6 Mediasize: 80026361856 (75G) Sectorsize: 512 Mode: r5w5e2 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 1 ID: 3116345061 Geom name: gm0s1.sync I'm going to include the steps I took, with one deviation from the published doc I referenced, and ask a couple more questions. 1 dd if=/dev/zero of=/dev/ad6 bs=512 count=79 2 fdisk -v -B -I /dev/ad6 3 4 gmirror label -v -n -b round-robin gm0s1 /dev/ad6s1 5 gmirror load 6 7 bsdlabel -w -B /dev/mirror/gm0s1 8 bsdlabel -e /dev/mirror/gm0s1 9 10 newfs -U /dev/mirror/gm0s1a 11 mount /dev/mirror/gm0s1a /mnt 12 dump -L -0 -f- / | ( cd /mnt ; restore -r -v -f- ) 13 newfs -U /dev/mirror/gm0s1d 14 mount /dev/mirror/gm0s1d /mnt/var 15 dump -L -0 -f- /var | ( cd /mnt/var ; restore -r -v -f- ) 16 newfs -U /dev/mirror/gm0s1e 17 mount /dev/mirror/gm0s1e /mnt/tmp 18 dump -L -0 -f- /tmp | ( cd /mnt/tmp ; restore -r -v -f- ) 19 newfs -U /dev/mirror/gm0s1f 20 mount /dev/mirror/gm0s1f /mnt/usr 21 dump -L -0 -f- /usr | ( cd /mnt/usr ; restore -r -v -f- ) 22 23 cp -p /mnt/etc/fstab /mnt/etc/fstab.orig 24 sed -e 's/dev\/ad4s1/dev\/mirror\/gm0s1/g' /mnt/etc/fstab.orig /mnt/etc/fstab 25 echo 'swapoff=YES' /mnt/etc/rc.conf 26 echo 'geom_mirror_load=YES' /mnt/boot/loader.conf 27 echo 1:ad(6,a)/boot/loader /boot.config 28 29 shutdown -r now 30 31 dd if=/dev/zero of=/dev/ad4 bs=512 count=79 32 fdisk -v -B -I /dev/ad4 33 gmirror configure -a gm0s1 34 gmirror insert gm0s1 /dev/ad4s1 35 sh -c 'while [ .`gmirror list | grep SYNCHRONIZING` != . ]; do sleep 1; done' 36 37 shutdown -r now On line 32, I deviated from the instructions on: http://people.freebsd.org/~rse/mirror/ The published command was: size=`fdisk ad6 | grep ', size ' | head -1 | sed -e 's;^.*size \([0-9]*\).*$;\1;'` (echo p 1 165 63 $size; echo a 1) | fdisk -v -B -f- -i /dev/ad4 That command returned: improperly placed quotes (). I set the value of $size manually but it was some small number like 5. I wrote it to ad4 but the command on line 33 puked. So I simply issued the command shown on line 32. I ever handled this by sysinstall. The above commands simply sets up the first slice (1) to a FreeBSD-type slice (165) starting at offset (63) with length ($size) of the first slice of ad6 and sets the active flag on the first slice (1). The command 'fdisk ad6' shows the size of the slice(s) on ad6. The same length should be used for ad4. I tried to run the above commands under /bin/sh: # size=`fdisk ad6 | grep ', size ' | head -1 | sed -e 's;^.*size \([0-9]*\).*$;\1;'` # (echo p 1 165 63 $size; echo a 1) p 1 165 63 240107427 a 1 # (echo p 1 165 63 $size; echo a 1) | fdisk -v -t -B -f -i mirror/mirror0 *** Working on device /dev/mirror/mirror0 *** So all the commands seem to work properly. Did you run this under /bin/sh? Question: On line 27 we issue the command to... # instruct boot stage 2 loader on first disk to boot # with the boot
Re: gmirror problem on 5.3-R i386 (SOLVED)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 15 January 2005 04:52, Doug Poland wrote: On Sat, Jan 15, 2005 at 12:12:28AM +0100, Christian Hiris wrote: On Friday 14 January 2005 20:43, Doug Poland wrote: Yes, I tried it under both tcsh and sh. I didn't take it apart the same way you did however. Also, when size came up as 5 (24MB) I knew something wasn't write and didn't pursue that further. What did the command: fdisk -v -B -I /dev/ad4 do? It would seem my mirror is correct and consistent. The option -B initializes the bootcode in sector 0, option -I creates one slice that covers the whole disk (man fdisk). Question: On line 27 we issue the command to... # instruct boot stage 2 loader on first disk to boot # with the boot stage 3 loader from the second disk # (mainly because BIOS might not allow easy booting from second ATA disk # or at least requires manual intervention on the console) So how do I get rid of that boot.config file? Should I get rid of it? If you have a modern machine the BIOS (hopefully) can boot from every harddisks that has a partition/slice on it with the active flag set. I for myself use a bootmanager on every gmirror disk. You can install it with boot0cfg(8) or sysinstall (I only would use boot0cfg, if your mirror already has been set up). So I can safely remove /boot.config? Otherwise wouldn't the boot stage 2 loader always then load boot stage 3 off disk 2? Yes, I would remove it. I think, in case, that disk ad6 breaks, the system won't boot w/o manual interaction. In general, it's the best, if you do some real life testing by pulling powercables off the drives. Normally you should be able to replace a disk on a running system. Assuming that disks are connected to different channels: Replace the broken disk by a fresh, clean one, run 'atacontrol attach channel#' (or maybe 'atacontrol reinit channel#) and there you go. It's even possible to swap disks around between controller cards on a running machine. I tested this out on cheap Promise TX2 cards - worked like a charm :) Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB6Mbx09WjGjvKU74RAhHuAJ0VW2YuQC4vndOYM+nMQALNs4c/QQCfdOfb wFtdG02YOq+hS5qCzSjugpY= =YShc -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror problem on 5.3-R i386
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 13 January 2005 03:54, Doug Poland wrote: Hello, I'm having a problem with gmirror. It would seem that I cannot add my first disk to the mirror after booting off the second drive. My current status is a degraded mirror and I cannot see any of the partitions on disk one. For a guide, I'm using the excellent instructions at: http://people.freebsd.org/~rse/mirror/ My system has identical WD 80GB SATA drives (ad4 and ad6). I've followed the steps in the document that are labeled: GEOM mirror Approach 2: Single Slice, Preferred, More Flexible # dd if=/dev/zero of=/dev/ad6 bs=512 count=79 # fdisk -v -B -I /dev/ad6 # gmirror label -v -n -b round-robin gm0s1 /dev/ad6s1 # gmirror load # bsdlabel -w -B /dev/mirror/gm0s1 # bsdlabel -e /dev/mirror/gm0s1 # newfs -U /dev/mirror/gm0s1a # mount /dev/mirror/gm0s1a /mnt # dump -L -0 -f- / | (cd /mnt; restore -r -v -f-) # newfs -U /dev/mirror/gm0s1d # mount /dev/mirror/gm0s1d /mnt/var # dump -L -0 -f- /var | (cd /mnt/var; restore -r -v -f-) # newfs -U /dev/mirror/gm0s1e # mount /dev/mirror/gm0s1e /mnt/tmp # dump -L -0 -f- /tmp | (cd /mnt/tmp; restore -r -v -f-) # mount /dev/mirror/gm0s1f /mnt/usr # dump -L -0 -f- /usr | (cd /mnt/usr; restore -r -v -f-) # cp -p /mnt/etc/fstab /mnt/etc/fstab.orig # sed -e 's/dev\/ad4s1/dev\/mirror\/gm0s1/g' /mnt/etc/fstab.orig # echo 'swapoff=YES' /mnt/etc/rc.conf # echo 'geom_mirror_load=YES' /mnt/boot/loader.conf # echo 1:ad(6,a)/boot/loader /boot.config # shutdown -r now # dd if=/dev/zero of=/dev/ad4 bs=512 count=79 You probably destroyed your slice table here. The dd command only makes sense if you insert whole disks (ie. /dev/ad4 and /dev/ad6) as providers. Otherwise you need to create (or already have) a valid slice table on the disk, which enables gmirror to locate and insert your slice. (!) Before you start to correct your gmirror setup, please read all of my comments, because to me it looks like you run a mirror of ad6 and not ad6s1. First you want to stop the mirror, you accidently started on ad4 (as seen in your 'gmirror list' output): # gmirror stop -v mirror Then remove the gmirror metadata from ad4: # gmirror remove -v mirror /dev/ad4 Clean out the first few sectors on ad4: # dd if=/dev/zero of=/dev/ad4 bs=512 count=79 Write out slice table where the only slice on te disk is ad4s1 (**: # fdisk -v -B -I /dev/ad4 After that go on with your procedure to add /dev/ad4s1 to mirror gm0s1: # gmirror configure -a gm0s1 (** Your 'gmirror list' output below looks like your mirror gm0s1 doesn't use /dev/ad6s1 as provider, it more likely uses /dev/ad6. So if this is the case, you may want to mirror the whole device (/dev/ad4), instead of the slice (/dev/ad4s1). Also, in this case don't use command 'fdisk -v -B - -I /dev/ad4', because MBR and slice table will be copied from ad6. [ # gmirror insert gm0s1 /dev/ad4 instead of /dev/ad4s1] # gmirror insert gm0s1 /dev/ad4s1 At this point I see... Unknown provider ad4s1 A gmirror list reveals: Geom name: mirror State: DEGRADED Components: 2 Balance: load Slice: 2048 Flags: NONE SyncID: 2 ID: 4216140117 Providers: 1. Name: mirror/mirror ^^ Mediasize: 80026361344 (75G) Sectorsize: 512 Mode: r0w0e0 Consumers: 1. Name: ad4 ^^^ This looks if you have entered a command like 'gmirror label -v -n -b load mirror /dev/ad4'? Mediasize: 80026361856 (75G) Sectorsize: 512 Mode: r0w0e0 State: ACTIVE Priority: 0 Flags: NONE SyncID: 2 ID: 3073402045 Geom name: mirror.sync Geom name: gm0s1 State: COMPLETE Components: 1 Balance: round-robin Slice: 4096 Flags: NONE SyncID: 1 ID: 3205827760 Providers: 1. Name: mirror/gm0s1 Mediasize: 80026329088 (75G) Sectorsize: 512 Mode: r5w5e1 Consumers: 1. Name: ad6 ^^^ Same as above, this looks to me like you have entered a command like 'gmirror label -v -n -b round-robin gm0s1 /dev/ad6' instead of 'gmirror label -v -n -b round-robin gm0s1 /dev/ad6s1'? Maybe I'm wrong, or maybe there are some stale metadata on your disks? Mediasize: 80026361856 (75G) Sectorsize: 512 Mode: r5w5e2 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 1 ID: 1606771156 geom name: gm0s1.sync [...] webhost02# bsdlabel /dev/ad4 bsdlabel: /dev/ad4: no valid label found As I said above, your slice table has been zeroed by the dd command. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB5jaF09WjGjvKU74RAiomAJ9GUllEIldi9DhlJK4IRWS1UUVVpwCaAzlW rmlGRwE5C4QHkYb/AuGToqs= =Kh0a -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman
Re: FBSD boot loader?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 13 January 2005 10:02, John Conover wrote: Is there a 1024 cylinder limit on the first slice for a dual boot PC system using the FBSD boot loader? This depends if your computers BIOS supports disk packet interface, see 'man 8 boot0cfg', scroll down to -o options, option packet. If your box is not too old, this should work. http://www.freebsd.org/cgi/man.cgi?query=boot0cfgsektion=8 Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB5kBz09WjGjvKU74RAoJoAJwO6JH9C9eXjLcmJGyZhwy1dPlDDwCfcwSc RzNiQnniv5V1q1KZIh+sBRw= =PzAg -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Updating a running jail
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 09 January 2005 22:58, Tom McLaughlin wrote: [...] My next idea is to use a script on the jailhost which carries out the steps for building a jail from the manpage and essentially installing over the old jail. I just wonder how that will affect /etc within the jail. I want many of the changes to /etc that occur in -stable but I don't want to overwrite all the changes I have made. I guess I could skip `make distribution' and run mergemaster later. How I update my jails: 1. cvsup sources 2. make buildworld and buildkernel (to update host) 3. make installkernel, make installworld and mergemaster (to update host) 4. cd /usr/src make installworld DESTDIR=/your_jail_root_here (run from host to update jail) 5. mergemaster -D /your_jail_root_here (run from host to update jail) My last idea is to mount the jailhost's /usr/src and /usr/obj directories into the jail with nullfs and then after having run buildworld on the jailhost, run installworld in the jail and then use mergemaster to take care of /etc within the jail. I've used a similar process to update OpenBSD machines over NFS but have never tried it on FreeBSD. Normally you don't need the /usr/obj tree in your jail. However, some ports need a set of /usr/src to compile. I for myself prefer to have independent sets of /usr/src and /usr/ports inside my jails, so I also run cvsup inside my jails. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB4ns+09WjGjvKU74RArVyAJ9M4ZQ0yPUH+d3K6Yypq8TIO5Sk7wCeNDm1 F+/B+5/izJFAwBpaM1dvQWI= =+jY4 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dynamic mouse(d) acceleration
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 10 January 2005 11:51, Emanuel Strobl wrote: Dear list, is it possible to get dynamic mouse acceleration with Xorg? moused only supports linear acceleration. Everytime I have to work with windows I love to return to my FreeBSD Workstation, but I'm missing the windows mouse support. Even after years of acclimatization to X mouse, the windows mouse movement is much much better, more intuitive (natural) I think. Mouse acceleration under Xorg is handled inside the wm's. If you use kde run the command 'kcmshell mouse'. This pops up a configuration dialog where you can change the values of 'Pointer acceleration' and 'Pointer threshold' to your needs. Gnome has something similar, it's 'gnome-mouse-properties'. On some wm like xfce there seems to be no command available, however they provide a mouse config dialog in their settings menu. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB4pTW09WjGjvKU74RAoaFAJ9r7OIKrMY34L26sxihYqylkws4cQCfZJKG W157Hwo3dJDx7fFFgmVCkOo= =7uTN -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: openoffice 1.1.4
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 10 January 2005 16:51, Osmany Guirola Cruz wrote: i get this error trying to install openoffice-1.1-devel ./install: not found whereis it? http://lists.freebsd.org/pipermail/freebsd-openoffice/2005-January/001197.html Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB4whH09WjGjvKU74RAqqVAJ4iAi3Ej8h9Rs2sJ7F++wzSgKxIPgCeLs45 D5fz1CZv5vBN9r5qQPris2c= =/LCK -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Native 5.3 port of OpenOffice?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 04 January 2005 13:18, Dave Horsfall wrote: On Tue, 4 Jan 2005, Peter N. M. Hansteen wrote: Maybe it's just me, but I can't actually see a package for 1.1.4 there. unless those Japanese versions will work in Australia (and I don't read JP)... OOPS. Looks like I did not look too closely. It certainly looks like they haven't gotten around to making FreeBSD 1.1.4 packages yet. Then again, I'm not sure what got fixed between 1.1.3 and 1.1.4. I doubt whether it's even as up to date as that. From the site: | Downloading FreeBSD packages: | | OOo 1.1.3 for 4.10 and 1.1.2 for 5.2.1-RELEASE | | sourceforge.jp site (some volatile developer versions and old packages | are available) | | FreeBSD Porting status: | current target platforms are FreeBSD 5.2.1-RELEASE/i386, and | 4.10-RELEASE/i386 | | OpenOffice.org ver. 1.1.3 | 9 patches should be investigated; actively maintained | | OpenOffice.org ver. 1.1.4 (SRX645_m49) | 8 patches should be investigated; actively maintained I built OO-1.1-devel yesterday on 5.3-STABLE, it's cvs-tag is SRX645_m52. The latter, SRX645_m49, was the one I checked, and although it *may* offer a non-JP download version, the page is in Japanese. I think the official FreeBSD download page is http://oootranslation.services.openoffice.org/pub/OpenOffice.org/ooomisc/FreeBSD/ All the packages I have seen there are ver. 1.1.3. for various FreeBSD branches including 5.3. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB2q2D09WjGjvKU74RAo33AJwNdMRGIlKtXtUkX4helGR8E1/EmgCdEpAo 5uAKF03FHhYbRmoZMuHiXDw= =Gcw7 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Native 5.3 port of OpenOffice?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 04 January 2005 21:04, [EMAIL PROTECTED] wrote: On Tue, Jan 04, 2005 at 09:17:13AM -0800, Tabor Kelly wrote: I've tried to compile openoffice from scratch using the port (it worked before), but this time it bombed near the end with a program 'lzip' dumping core because it was fed a wrong package list (?). I tried to track the problem down, but it was too deeply hidden within the OO build process, so I finally gave up and fetched the binary package which works perfectly. This was 2 weeks ago; perhaps OO compiles perfectly now? No on 5.3-STABLE it doesn't. See http://porting.openoffice.org/freebsd/ there is a note from 2004/Dec/22 and there is also an open PR about this: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/75785 Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB2vr909WjGjvKU74RAoVUAJ9ImwhvycswcAYDosDCXCbZJUS79wCeKf4j RAytWInFjsyXQjjjivwRnLQ= =KQ9H -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mystery message from mystery cron
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 24 December 2004 07:59, John Conover wrote: Root's inbox gets the message at the bottom about every half hour, or so. There is nothing in /var/cron/tabs, so I can't find out what's causing it. This runs from an entry in /etc/crontab. Inspect /var/log/cron to find out what goes wrong with the script /usr/libexec/save-entropy. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBy9Bm09WjGjvKU74RAtgtAJ49gn5EyW93eHCdyBeg1Xabeu+FLQCfTj7Z L2KIlkPotS0Y23aMPcvLy/A= =tsAo -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problems booting my computer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 24 December 2004 11:18, Darksidex wrote: A few days ago I tried to compile and install FreeBSD 5.3-p2 from a FreeBSD 5.3-p1 Everething worked until I wanted to make installword. I switched to single mode, and during the installation my computer stoped and shaw me a error (I don't remember it). I had to reboot, and booting process stopped with some hexadecimal characters and with the string BTX Halted. I downloaded the second disc of FBSD 5.3 release, and I could fix the disk, and I could copy /boot/kernel directory from cd to my disk. But when I try to boot up my computer it stops with this message: Mounting root from ufs: /dev/ad1s1a pid 49 (sh), uid 0: exited on signal 4 Dec 23... init: /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter root password, or ^D to go multi-user Password: Enter full path name for shell or RETURN for /bin/sh: You can try to run the statically linked version of sh and try to repair your system. It's path is /rescue/sh. Possibly ld-elf.so.1 is missing in /libexec. I would try to mount the disc2.iso and copy it from there. In worst case I would copy /bin, /lib, /libexec, /sbin, /usr/bin, /usr/sbin, /usr/lib, /usr/libexec (eventually /usr/libdata and /boot) from the live-filesystem-cd over to your system. Before you start to copy the files over, run the command '/rescue/chflags -R noschg *' on each of the paths in question to remove all system immutable flags). After your have fixed your system, re-cvsup sources and do a rebuild and reinstall of world and kernel. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBy/1J09WjGjvKU74RAl4VAJwKM4kuVXFVQDdH3dNc6m+JdB1SCgCcCkxe aAtJdPgj3Azu/LC1qGG05N0= =dwiM -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hang on install of 5.3 on old Presario
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 22 December 2004 06:13, Scott I. Remick wrote: I'm trying to breathe some life into some old hardware by giving it a task of a server. I've burnt the full 5.3 ISO to CD. I can get it to read the CD fine and start to boot. I get as far as the Welcome to FreeBSD menu (with the ASCII daemon). No matter what option I choose, the bar then spins for a moment and then the computer hangs. I've tried upgrading the BIOS to the latest offered from Compaq's website (although it's dated 1998). I've turned off PnP, and all unneeded ports (including serial, parallel, USB). I've tried both the DOS and Other setting for the HDD geometry. I've turned off all power-saving. Nothing seems to work. I've also tried using the 3 floppies... same problem. Try to disable acpi at the loader(8) prompt: set hint.acpi.0.disabled=1 Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFByS1+09WjGjvKU74RAo77AJ9SPdN8YWFzp0Y6vUfJyu/J/KadtACfYWfi +lZhwsAV4tpv1rtDkdyTcC0= =bQsj -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hang on install of 5.3 on old Presario
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 22 December 2004 10:05, Ramiro Aceves wrote: [...] I have an older 486 with 24 MB RAM and it runs freebsd 5.3 installation process very well, but unfortunately, its memory does not fit on the pentium. Did you try to move the harddisk of the 16MB box over to the 24MB box and install 5.3 there? - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFByVLq09WjGjvKU74RAjMMAJ0e9n95lIA/xiATevgVvYbcXgmNUwCeIHAc arnCkviYQ7d5LPnoUECscIA= =a0f+ -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RAID0 problem array broken
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 20 December 2004 22:46, John Barbieri wrote: what was the command you useed to disable the DMA? I want to give that a shot to. I see that its sysctl, but what were the flags. The flags are described in 'man 4 ata'. BTW - the manual page seems to be outdated. According to src/sys/dev/ata/ata-all.c sysctl hw.ata.atapi_dma defaults to 1. I sent a PR on this. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBx19409WjGjvKU74RAhcxAJ9XphouM+x0kacnNIkDXdGOdub+hgCfTrPj GrewVHaA+8V3HgCe7DtUmkk= =nBih -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Do I have to rebuild my jails too when I rebuild the server?
On Tuesday 21 December 2004 00:41, Daniel Johansson wrote: On Mon, 20 Dec 2004 17:31:52 -0600, Frank Knobbe [EMAIL PROTECTED] wrote: On Tue, Dec 21, 2004 at 12:13:08AM +0100, Daniel Johansson wrote: I see. So if I've got a synced jail and host then top will work? I thought top never worked inside jail for some memoryissue or something like that? No, I was using that as an example for the host. I don't think top will work in a jail. I think I should go and rebuild my jails too. It's just a bit of work with three jails, thank god that I've got a fast box :) Not really. Update kernel, then: make buildworld make installworld make DESTDIR=/jail1 installworld make DESTDIR=/jail2 installworld You only need to compile once. Hmm true, I just have to buld it once, great! Still the issue with config-files but I think I'll back them up and just restore them. uhm... we're talking binaries here. I'm not sure why you would need to restore your config files. But making backups is always a good practice. Hmm my bad, maby installworld doesn't install any new configfiles to /etc? Only mergemaster who installes configfiles? Would still be a good idea to run mergemaster for the jail to keep the configfiles up to date. Yes, run 'mergemaster -D /your_jails_rootdir' from your host. Answer the question Use 'd' to delete the old /var/tmp/temproot and continue with 'd' or simply type 'yes' when mergemaster asks, if you wish to delete what is left of /var/tmp/temproot. I mostly run a small script that runs installworld, cleans out /usr/include/* and runs mergemaster for every enabled jail it finds in /etc/rc.conf. I run it on 5.3. The bad thing is, that it depends on ng_rc-style rc.conf, so it doesn't work on 4.11. However, if you will ever run 5.3 - feel free to use it, modify it or recycle-bin it. -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgpovqpb9VGs2.pgp Description: PGP signature
Re: Identical hard drives, different disklabel sectors/cylinders
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 19 December 2004 00:31, [EMAIL PROTECTED] wrote: Hi all, I've got a problem question about my hard drives. I've installed two brand-new Western Digital 250GB drives on the same channel of a Maxtor-branded PCI/IDE controller (Promise chipset). I've tried different channels, different cables, and using the motherboard's IDE controller -- same thing every time. Here's from /var/log/messages: Dec 18 15:59:23 /kernel: ad4: 238475MB WDC WD2500SB-01KBA0 [484521/16/63] at ata2-master UDMA100 Dec 18 15:59:23 /kernel: ad5: 238475MB WDC WD2500SB-01KBA0 [484521/16/63] at ata2-slave UDMA100 So you can see it's identifying them the same at startup. Now: su-2.05b# disklabel ad4 # /dev/ad4c: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 30400 sectors/unit: 488392002 [...] su-2.05b# disklabel ad5 # /dev/ad5c: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 484520 sectors/unit: 488397105 [...] So you can see, the sectors/cylinder, cylinders, and sectors/unit are all different, and this results in slightly different final sizes. I've set up vinum to create a mirror using the smaller of the two sizes, and it seems to be working fine, but I'm still worried about the implications of this. Could this mean that one of my hard drives is failing? (Again, they're both brand new.) I tried disklabel -R'ing each drive to look like the other one (booting in single-user mode), but it wouldn't let me. So I'm smack out of ideas. I'd appreciate any info or suggestions. Your disks slice tables holding different values for C/H/S geometry. You can wipe out the slice tables with the dd(1) command and re-initialize them with fdisk and bsdlabel or sysinstall. There is an example written on this in 'man 8 bsdlabel'. It seems that your BIOS identifies geometry of both disks listed in your dmesg output - C/H/S 484521/16/63. This values also shown in your bsdlabel output of ad5. If you want to re-fdisk and re-bsdlabel ad4 it's necessary that the disk isn't mounted and that it isn't locked by vinum (see also 'man 4 vinum', chapters RUNNING VINUM and AUTOMATIC STARTUP). IMHO there is only one thing that can go wrong with your configuration: If you are booting your system from the mirror, I would test if both of your drives are bootable. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBxNof09WjGjvKU74RAtgWAJ98M9KSoTPsHJU3Ba+JTHrNN2QdmwCfTmwy bFFRyDuNRfAwc3f1R/6PbeI= =j26F -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Xorg and mouse....
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 14 December 2004 21:32, Bomgardner,Jon wrote: Could the error mentioned have happened because I manually installed XFree86 4.4 (based on X11 6.6) in trying to get *something* to work on this system? Could this also be causing some of the other problems I've been having? If so, how do I remove XFree? /usr/ports/UPDATING is your friend. Scroll down to 20040723 and you will find detailed instructions on how to remove your XFree86 packages. The cleanest solution is probably to remove the XFree86 and imake-4 packages, then remove the xorg and imake-6 packages. After that do a clean install of the xorg meta port. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBv5L609WjGjvKU74RAl80AJ90cqj5i3I5z3OLNYpgTN2P0xn2cgCePAzo 0rXYKb9viSZRluG55QTnJJM= =xZ9s -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing hw.snd.pcm0.buffersize in 4.10.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 14 December 2004 23:46, Nikolas Britton wrote: Sandy Rutherford wrote: [...] I wonder if it wouldn't be: set hw.snd.pcm0.bufffersize=N This doesn't work either. No error --- it just ignores the setting. This only works, if the driver supports it. To load loader environmental variables something like TUNABLE_INT(hw.snd.pcmN.buffersize, ...) should show up in the driver code: % cd /usr/src/sys/dev/sound/ cat `ls` | grep TUNABLE_ % cd /usr/src/sys/dev/sound/isa cat `ls` | grep TUNABLE_ % cd /usr/src/sys/dev/sound/pci cat `ls` | grep TUNABLE_ % cd /usr/src/sys/dev/sound/pcm cat `ls` | grep TUNABLE_ TUNABLE_INT(hw.snd.targetirqrate, chn_targetirqrate); TUNABLE_INT(hw.snd.verbose, sndstat_verbose); TUNABLE_INT_DECL(hw.snd.verbose, 1, sndstat_verbose); TUNABLE_INT(hw.snd.unit, snd_unit); TUNABLE_INT(hw.snd.maxautovchans, snd_maxautovchans); % cd /usr/src/sys/dev/sound/usb cat `ls` | grep TUNABLE_ This means only the tuneables hw.snd.targetirqrate, hw.snd.verbose, hw.snd.unit and hw.snd.maxautovchans are retrieved from the loader environment at boot time by the pcm driver. (I took this from the sources of the RELENG_*5* branch on my system) [...] Yea, I got my old laptop out that has 4.10 on it and I was rooting around in the src and found that, I tried everywitch way to get it to work in the kernel file but It nerver did work (config always bitched at me), I tried it also like this make DSP_BUFFERSIZE=16384 depend make DSP_BUFFERSIZE=16384 make DSP_BUFFERSIZE=16384 install. this did not pruduce any errors but it didn't do anything ether, it skipped over the sound stuff as if there was no change, also I tried hard coding it it in sound_config.h but again same effect (maybe I did it wrong, i'm not a programmer), maybe you have to do a complete rebuild of the kernel and I did not try that because this laptop is only a P100 with 40MB Ram. also I found refrences to bufsz from /dev/sndstat so I tried adding it to the kernel config file like this device sbc0 at isa? port 0x220 irq 10 drq 1 bufsz 16384 and config didn't like that (I never tried it with device pcm tho?) AFAIK the define is named DSP_BUFFSIZE (in src/sys/dev/sound/pcm/sound.h. DSP_BUFFSIZE can be used to define the default buffersize for sound drivers, but most of the sound drivers use their own defines. If you want to change the default buffersize for a sound driver you need to search for a define like xxx_BUFFSIZE, where xxx is the name of the sound driver (maybe some developers use other naming-conventions). ie., if you want to change the default buffersize of the ESS driver you need to change the line #define ESS_BUFFSIZE (4096) in src/sys/dev/sound/isa/ess.c. If you use the sbc driver, you need to do this changes in sb8.c or sb16.c, depending on the soundcard you are using. sbc.c is only the code for the corresponding bridge driver. However, I'm not a guru, so I can't guess, if a driver works better with any other buffer size defined, than the original one. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBv9zz09WjGjvKU74RAtNOAJ4wAZwaRAC3cGywvLB9fGftObId0ACdGGGh nCoW63okjf5L5LRPyidM2JA= =R3es -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Handbook is unclear about the use of maxautovhans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 13 December 2004 18:21, Nikolas Britton wrote: Excerpt from the handbook: To set the number of virtual channels, there are two sysctl knobs which, if you are the root user, can be set like this: # sysctl hw.snd.pcm0.vchans=4 # sysctl hw.snd.maxautovchans=4 The above example allocates four virtual channels, which is a practical number for everyday use. hw.snd.pcm0.vchans is the number of virtual channels pcm0 has, and is configurable once a device has been attached. hw.snd.maxautovchans is the number of virtual channels a new audio device is given when it is attached using kldload(8) http://www.FreeBSD.org/cgi/man.cgi?query=kldloadsektion=8. Since the pcm module can be loaded independently of the hardware drivers, hw.snd.maxautovchans can store how many virtual channels any devices which are attached later will be given. --- So maxautovhans is only applicable if you loaded sound support as a kernel module and not compile it into the kernel? No, (speaking for the 5.3-STABLE branch) sysctl hw.snd.maxautovchans also works, if sound support has been compiled into your kernel. You can set the sysctl via /etc/sysctl.conf or /boot/loader.conf or commandline. According to 'man 4 sound', sysctl hw.snd.maxautovchans holds the maximum number of vchans, that the system will be allowed to create. The sentence hw.snd.maxautovchans is the number of virtual channels a new audio device is given when it is attached using kldload(8) is possibly wrong. I must admit that I have never tested sound-module loading via kldload. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBvjt709WjGjvKU74RAmnEAJ9dfno0vYrONMUPGieQXn7uL1Q39ACfVGo/ Sny8Hba2LPx1cihPLNTVRCY= =IgJk -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: About RELEASE_5_3-p2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 10 December 2004 02:47, Giuliano Cardozo Medalha wrote: People, I have installed FreeBSD 5.3 and yesterday I have used cvsup to rebuild my system. After a installworld and kernel rebuild I did a shutdown -r. Now, if I use uname -a it appears for me: FreeBSD-RELEASE_5_3-p2 How do I know without doing it ... witch patch version is ? How can I check about a FreeBSD-RELEASE_5_3-p3 release ... without rebuild my system ? Hi, have a look into src/sys/conf/newvers.sh, variable BRANCH. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBuSSu09WjGjvKU74RArnRAJ98qcO1I3ZbzOA2kQ5NKcifupGZTACdEzve FVqOP/l5gqB2z5Z0q6Hof5g= =4xqW -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disk 2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 03 December 2004 13:59, [EMAIL PROTECTED] wrote: I have been trying to find out what disk 2 is for If we both mean the n.n-RELEASE-arch-disc2.iso, this is the live-filesystem-CD. http://www.freebsd.org/relnotes/5-STABLE/installation/i386/trouble.html - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBsG3T09WjGjvKU74RAnGgAJsHY8XxEEVSLN53FZr5+tp2PLqryQCfb5tg 4T5SFJAFPPVqQHQ1UoqwPaU= =9Ixe -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to capture make installworld error during migration from 5.1 to 5-Stable?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 02 December 2004 08:23, Stacey Roberts wrote: Hi Christian, What I've been doing is swapping hardware around on this box in order to get 5.3-REL CD-Sets to boot on this machine.., What I found is that swapping out the Tekram card for an Adaptec-29160 enabled (for whatever reason) to be able to boot and install off the 5.3-REL CD's. After (using the 29160 SCSI disk utility) formatting both SCSI disks, the installation went fine, until the first reboot - I get the following: No /boot/loader FreeBSD/i386 boot Default: 0:da(0,a)/kernel No /kernel FreeBSD/i386 boot Default: 0:da(0,a)/kernel boot: Try 0:da(0,a)/boot/kernel/kernel here. Maybe your bios reports a wrong controller, in this case try 1:da(0,a)/boot/kernel/kernel. Try also the second disk 0:da(1,a)/boot/kernel/kernel. When you install from the CD, it is possible to display diagnostic and error messages on the second terminal. You can reach it by pressing ALT-F2. Tell us, if you find some interresting messages here. Some points you could check: Did you set the bootable flag on your root slice in the FDISK partition editor screen? Did you select Install the FreeBSD Boot Manager or Install a standard MBR at the boot manager installation screen? Did you try the installation process with ACPI disabled? Are the latest BIOS versions installed on your mainbord and SCSI controller card? BTW - which mainboard do you use? - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBrwKS09WjGjvKU74RAq0cAJ9gonfOurDoolZ958YRmf/9VfnRPgCfdvVN TTkdos4zDJZNXs/QOIvNAIA= =riEo -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why these connections from 127.0.0.1?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 02 December 2004 15:06, Jonathon McKitrick wrote: On Thu, Dec 02, 2004 at 09:50:51AM -0300, Fernando Gleiser wrote: : On Thu, 2 Dec 2004, Jonathon McKitrick wrote: : I'm trying to figure out why these messages are showing up: : : neptune kernel log messages: : Connection attempt to TCP 127.0.0.1:113 from 127.0.0.1:3746 : flags:0x02 Connection attempt to TCP 127.0.0.1:113 from : 127.0.0.1:2058 flags:0x02 Connection attempt to UDP 127.0.0.1:512 : from 127.0.0.1:4293 : Connection attempt to UDP 127.0.0.1:512 from 127.0.0.1:4864 : Connection attempt to TCP 127.0.0.1:113 from 127.0.0.1:1972 : flags:0x02 Connection attempt to UDP 127.0.0.1:512 from : 127.0.0.1:3859 : : I thought my firewall was allowing loopback traffic. : : They look like log in vain entries. to you have log in vain enabled? I believe so. : 113/tcp is identd and 512/udp is biff. My guess is your mail system is : generating those requests and log in vain logs them. Should I disable log-in-vain or somehow allow these through? The log-in-vain sysctl only controls logging behavior, it has no influence on how the packets are handled. Rejecting the identd packets or running an identd server might speed up your mailservices. It's possible that a mailservice like smtp waits until it gets a reply from your identd service. In the worst case it waits until network timeout is reached. This probably depends on your blackhole(4) sysctl settings. On how to run several types of identd services see /etc/inetd.conf - look out for the predefined auth services - and 'man 8 inetd'. Or simply reject the connection requests by your firewall, by sending a RST, discarding the packet is not sufficient in this case. AFAIK know SMTP servers try to gain some information (like username and systemname) from a clientsystem via identd. So if you decide to enable identd, better check your mail-headers afterwards. I never run comsat/biff, so I can't tell you much about. 'man 8 comsat' and 'man 1 biff' is your friend. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBrzsR09WjGjvKU74RAjS0AJ9qjsvHaNWlgNzz53rFMqViXDjrrgCfbrlZ 8xm7AVuNqOMuhuqyYV1YurY= =BCPs -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why these connections from 127.0.0.1?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 02 December 2004 17:21, Jonathon McKitrick wrote: On Thu, Dec 02, 2004 at 01:20:49PM -0300, Fernando Gleiser wrote: : In the original case, it seems he is not runing those services. When : sendmail (or whatever mta he's using) tries to make an ident lookup, it : fails and log in vain logs the connection attempt to the closed port (it : only logs attempts to connect to closed ports). Same for biff, something : tries to query biff, the connection is refused because it isn't : listening, log in vain logs it. That simple, I wouldn't worry about it I'm running a local sendmail just to forward root mail to my user account. The rest of my mail comes from remote accounts or POP3. If you don't like to read the messages in your logs, you can add two firewall rules to your firewall-config (assuming you run ipfw): ${fwcmd} add 90 reject tcp from 127.0.0.1 to 127.0.0.1 113 via lo0 ${fwcmd} add 91 reject udp from 127.0.0.1 to 127.0.0.1 512 via lo0 The rules must be placed before the rule where you allow all traffic that goes via lo0: # ipfw show | grep lo0 00090 1 64 reject tcp from 127.0.0.1 to 127.0.0.1 dst-port 113 via lo0 00091 0 0 reject tcp from 127.0.0.1 to 127.0.0.1 dst-port 512 via lo0 00100 0 0 allow ip from any to any via lo0 Because the packets are rejected by the firewall now, they do not reach the point where the kernel processes the code for sysctl MIB log_in_vain on the packets. So they are no longer logged. Rejecting maybe prevents sendmail of a 60 second delay, because it no longer needs to wait for a identd reply. I don't know too much about the sendmail code, so I'm not 100 pct. sure about how sendmail handles identd timeouts. When you run a small home-network it's more a kind of academic discussion, you probably can live with this as is. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBr2Vq09WjGjvKU74RAtRhAJ9yK5itVpXGfzaovALa9gR9xli9OwCfYcua 7aOoEfBbcenBHsbtRKSPYxU= =3bjP -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Deleting Packages
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 02 December 2004 20:46, RW wrote: On Thursday 02 December 2004 00:33, Gerard Seibert wrote: Actually, I all ready did that. I ran 'portsclean -CDDLP', and it did remove a few packages. However, most are still there. It is not a big thing, I was just wondering if it would cause a problem if I did remove them. I's no big deal, it's just that future maintainance may redownload the distfiles. I don't think deleting the packages is a problem. I remember only two none-distributional tasks, which will depend on local package-tarballs: 1. Installing via ports w/ USE_PACKAGE_DEPENDS defined. 2. portupgrade --use-packages - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBr3gr09WjGjvKU74RAmVWAJ9WzJIszfSi14FDZLou9zRuhwHxLQCeM2SD /C6P0r5SJ985j3bQpCAx/wc= =dfu9 -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to capture make installworld error during migration from 5.1 to 5-Stable?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 02 December 2004 19:56, Stacey Roberts wrote: On Thursday 02 December 2004 08:23, Stacey Roberts wrote: Hi Christian, What I've been doing is swapping hardware around on this box in order to get 5.3-REL CD-Sets to boot on this machine.., What I found is that swapping out the Tekram card for an Adaptec-29160 enabled (for whatever reason) to be able to boot and install off the 5.3-REL CD's. After (using the 29160 SCSI disk utility) formatting both SCSI disks, the installation went fine, until the first reboot - I get the following: No /boot/loader FreeBSD/i386 boot Default: 0:da(0,a)/kernel No /kernel FreeBSD/i386 boot Default: 0:da(0,a)/kernel boot: Try 0:da(0,a)/boot/kernel/kernel here. Maybe your bios reports a wrong controller, in this case try 1:da(0,a)/boot/kernel/kernel. Try also the second disk 0:da(1,a)/boot/kernel/kernel. Will try these shortly.., not in front of the machine at the moment.., When you install from the CD, it is possible to display diagnostic and error messages on the second terminal. You can reach it by pressing ALT-F2. Will do.., [...] BTW - which mainboard do you use? Here're the specs of the box: Mainboard: Tyan Tiger 230 S2507D - running BIOS Version 106 (latest, I believe) SCSI Cards: Adaptec 29160 and Tekram DC-390UW - Notes: The Adaptec is not new, but was in use and working fine on another machine (also running FreeBSD) up until about four months ago. The Tekram card was new. CDROM drive - Samsung 52x (new) Floppy drive - standard 1.44 (new) *ALL* internal cables are new, including the u160 cables - each of the sets that I've been swapping around Let me know if there's anything else I can provide, please.., Thanks again for getting back to me. Hi, there is nothing more i need to know. I hope you will find some messages on the second terminal during install, look out for write errors or something like that. If we are not able to solve your problem by theese error messages, it's the best to rename the subject to 5.3-R installation fails on Tyan Tiger 230, so that the gurus have a look on it. There just one more thing - the GENERIC kernel on the 5.3-RELEASE CD has been compiled w/o 'option SMP', but I think that shouldn't matter. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBr37a09WjGjvKU74RAroHAJ9YHBqlXgPnPZHNbo2YAQHpGYIy3ACdEi4p FiUZ7KmyACNsxaUjY9Y2inw= =vJ7m -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /dev/uscanner0 owned by root:scanner but only access for users of group operator
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 02 December 2004 23:06, [EMAIL PROTECTED] wrote: Hi list, I have my Canon Lide 20 usb scanner working om my system. Setup was easy following the handbook. But I did not like all users being member of group operator; So I added a group scanner, to /dev/devfs.rules I add: add path uscanner0 mode 0660 group scanner # (group scanner is added) I add a user to group scanner. When I do ll /dev/uscanner0 crw-rw 1 root scanner 233, 0 Dec 2 22:24 /dev/uscanner0 When I do sane-find-scanner as the user I get: found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0 and subsequently the scanner is not useable for the user. But when I add this user to group operator: found USB scanner (vendor=0x04a9, product=0x220d) at /dev/uscanner0 and the scanner is working. but I see the scanner still belongs to user root and group scanner... Anyone an idea? You probably need to change the corresponding /dev/usbN device nodes, too (I must say that, I never tested this with devfs.rules). In my experience sane-find-scanner steps thru the usb devices and exits, if it hasn't proper permissions on a usb device node. For real-life scanning apps like xsane and xscanimage you can define SANE_DEFAULT_DEVICE in your environment. This should stop the apps from stepping thru the usb device nodes. JFYI: There is a (dirty) way to work around the needs of adding users to a scanner specific group. You can set /dev/uscanner0 and the corresponding /dev/usbN to world read- and writeable via usbd and usbd.conf. % cat /etc/usbd.conf.my # Scanners device Scanner devname uscanner[0-9]+ attach chmod 666 /dev/${DEVNAME} ; chmod 666 /dev/usb0 detach chmod 660 /dev/usb0 % cat /etc/rc.conf | grep usb usbd_enable=YES # Run the usbd daemon. usbd_flags=-c /etc/usbd.conf.my # Flags to usbd (if enabled). But this method also opens a can of worms: All devices nodes down to the usb device to where your scanner is connected to must be set world read- and writeable. ie. when you connect your scanner to /dev/usb1 the devices /dev/usb0, /dev/usb1 and /dev/uscanner0 must be set to mode 666. For this reason, I attached my scanner to /dev/usb0. To work around this, you can define SANE_DEFAULT_DEVICE as mentioned above. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD4DBQFBr8GI09WjGjvKU74RAkh9AJ9bVHPSEhASe87HqQNif/Q4ypLH9gCXQSDn TNKSbpmUzSS65b6ntdJ69Q== =Vhy/ -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to capture make installworld error during migration from 5.1 to 5-Stable?
On Wednesday 01 December 2004 07:05, Stacey Roberts wrote: Hello Christain, - Original Message - From: Christian Hiris [EMAIL PROTECTED] To: To [EMAIL PROTECTED] Date: Wed, 01 Dec, 2004 05:40 GMT Subject: Re: How to capture make installworld error during migration from 5.1 to 5-Stable? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 01 December 2004 02:12, Stacey Roberts wrote: Okay.., I've just scripted the output from make installworld at step 15 of the migration guide, and its failed as before. I've got the output redirected to a file: /var/tmp/installworld.log, however, I'm in single-user mode, and nothing works: ls, mount, etc.., how do I get this file off this system so that I can post it to the list for assistance? At this point, I can (manually) show the last bit of the failed attempt for make installworld: === bin/test install -s -o root -g wheel -m 555 test /bin install -o root -g wheel -m 444 test.1.gz /usr/share/man/man1 pid 45090 (sh), uid 0: exited on signal 10 (core dumped) *** Signal 10 Stop in /usr/src/bin/test. *** Error code 1 Stop in /usr/src. *** Error code 1 I've managed to get the log file off the machine. I've attached it here in gzipped format for anyone that is able (including yourself, if you like) to be able to look at it in its entirety. This eventually points out a problem in your memory or harddisk subsystem, I had such errors on incompatible disk controllers starting at 5.1. This kind of errors silently destroyed the data on my system (happened with HPT onboard controllers on an Via-KT600 board). Double, better, triple fsck your filesystems and check CFLAGS and COPTFLAGS settings in /etc/make.conf. I've found that I can reboot the system into multiuser mode, however there *are* lots of programs core-dumping all over the place (sendmail, exited on signal 11 - for instance).., This happens because you install target fails and there are a lot of old binaries installed on your system. Did you set your kernel timezone with adjkerntz -i? Yes.., followed the migration guide to the letter, save for scripting step 15 as I originally asked about here.., I'm actually preparing to head off-site here at present, but will get back to this later on today.., hopefully there'd be more information on the situation after examination of the log file output by a kind soul.., The only thing I can find, is that the install of the test man page fails. I can't tell you why this happens. Maybe there is a problem with removing your old test.1.gz (ie. disk access error). First I would try to manually remove the test man-page by the command /bin/rm /usr/share/man/man1/test.1.gz and run the install target again. If the install target still fails with test.1.gz, have a closer look on /usr/obj/usr/src/bin/test/test.1.gz. I attached 5.3 version of it as of Nov, 26th. # cd /usr/obj/usr/src/bin/test # ls -l total 24 -rw-r--r-- 1 root wheel 1800 Nov 26 16:14 .depend -rwxr-xr-x 1 root wheel 9839 Nov 26 16:21 test -rw-r--r-- 1 root wheel 2654 Nov 26 16:21 test.1.gz -rw-r--r-- 1 root wheel 6708 Nov 26 16:21 test.o # -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Deleting Packages
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 02 December 2004 01:21, Kevin D. Kinsey, DaleCo, S.P. wrote: Gerard Seibert wrote: I have a large number of files in the '/usr/ports/packages/All' directory. Since I could use the disk space that they are taking up, I wonder if it is permissible to just delete them. I clean out the '/usr/ports/distfiles' directory on a regular schedule without incident. Thanks in advance! Check the manpage for portsclean(1), if it's on your system. AFAIK portsclean requires that the sysutils/portupgrade port has been installed. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBrmPx09WjGjvKU74RAlJ0AJ4g4s772f7JUAPndiGUml+us2nAKgCePGkp SqgVlVeW+ikxaqIs747WSJM= =U7QY -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with rc.conf error, read-only file system
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 30 November 2004 23:22, Michael G. wrote: I've been away from FreeBSD for a while and I just loaded 5.3 and inavertently made an error in rc.conf. Now when I boot up the file system is read-only and I haven't been able to edit rc.conf to correct the simple mistake. Any help would be appreciated. # mount -a -t ufs - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBrPy809WjGjvKU74RAqxLAJ9ptl4tkDcKZIk4qyQ2D4QMM4ZJmwCfS/Bq AdDF8C3sPx/dOk+YMYyS/Tg= =7GI1 -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to capture make installworld error during migration from 5.1 to 5-Stable?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 30 November 2004 23:49, Stacey Roberts wrote: Hello, I'm trying to migrate a newly (fresh install from CD-Rom Set) installed 5.1 to 5-Stable, using the migration guide at http://www.freebsd.org/releases/5.3R/migration-guide.html. The previous attempts failed with the same error at step 15: Install the new userland utilities with: # cd /usr/src # make installworld Now, I'm in single-user mode at this stage, and would like to capture the error so that I could post to the list for assistance, please. How can I do this? See http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html Chapter 19.4.7.1 Saving the Output describes how to use the script command: # script /var/tmp/mw.out Script started, output file is /var/tmp/mw.out # make TARGET ... compile, compile, compile ... # exit Script done, ... Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBrQDj09WjGjvKU74RAvp8AJ9CBSapHbxRL3JKthneleZRBR9G3ACfV8S6 xPT9ljAJDDjKJFy/q3Wo/3s= =GZbs -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to capture make installworld error during migration from 5.1 to 5-Stable?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 01 December 2004 02:12, Stacey Roberts wrote: Okay.., I've just scripted the output from make installworld at step 15 of the migration guide, and its failed as before. I've got the output redirected to a file: /var/tmp/installworld.log, however, I'm in single-user mode, and nothing works: ls, mount, etc.., how do I get this file off this system so that I can post it to the list for assistance? At this point, I can (manually) show the last bit of the failed attempt for make installworld: === bin/test install -s -o root -g wheel -m 555 test /bin install -o root -g wheel -m 444 test.1.gz /usr/share/man/man1 pid 45090 (sh), uid 0: exited on signal 10 (core dumped) *** Signal 10 Stop in /usr/src/bin/test. *** Error code 1 Stop in /usr/src. *** Error code 1 This eventually points out a problem in your memory or harddisk subsystem, I had such errors on incompatible disk controllers starting at 5.1. This kind of errors silently destroyed the data on my system (happened with HPT onboard controllers on an Via-KT600 board). Double, better, triple fsck your filesystems and check CFLAGS and COPTFLAGS settings in /etc/make.conf. Did you set your kernel timezone with adjkerntz -i? There are several ways to repair a system that failed during upgrade: - - Use the emergency shell on the 5.3-Live-Filesystem-CD. - - Try statically linked /rescue/sh instead of dynamically linked /bin/sh (if the 5-STABLE version of /rescue has been already installed). - - Do a minimal install from a 5.3-RELEASE-i386-miniinst.iso to your swap partition or to an additional disk. I'd appreciate some help with this.., If there is a way to get the log file off (to floppy, for instance), I'd like to post it so that folks cleverer than I could take a look, please. If kernel and world are not in sync it's maybe easier, if you try to boot via serial console and copy the output from there. To setup the serial console enter the command echo -Dh /boot.config and connect COM ports via serial cable. Connecting to the serial console works via cu -l cuaa0 (assuming the terminal machine is connected via the first COM port). You will find some more sophisticated infos about serial console setup in the FreeBSD handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html Most common tasks are described in the FreeBSD Handbook, for floppy disk handling please refer to http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/floppies.html - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBrVl509WjGjvKU74RApgtAJwM9Gkon0WR/veuVHkI15BA5NFnIwCfaA0u YXmAzwW3pnfmYiLNgj7DNoY= =bh9U -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Starting gconcat / gstripe at boot?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 28 November 2004 20:41, Mac Mason wrote: So, I have a pair of disks I'd like to put into a mirror with /usr on them; this is 5.3-RELEASE, so using vinum is out of the question. It looks to me like gstripe will do the trick; If you want to run a mirror (raid1) w/o using gvinum, gmirror does the trick. all that is necessary is that the module get loaded before boot tries to mount /usr. Can this be done? Yes! 'man 8 loader.conf' contains information on boot-time module loading. An example - if you want geom_stripe.ko loading at boot-time just put the line 'geom_stripe_load=YES' into your /boot/loader.conf. (I also have a concatenated pair I'd like to use for something else, but it's not boot-critical, and I imagine answering one question answers both) Thanks! --Mac - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBqkxu09WjGjvKU74RAu8EAJsGrG8380czle5sRJifyZSATEus+gCfVP2/ TzPHJKIMK+Q2C0uvptQjW20= =65G5 -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Free-BSD FTP Passive Ports?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 25 November 2004 04:24, robg wrote: Hi: I'm running the built-in FTP program in FreeBSD, but I can't figure out how to specify passive ports. Could someone point me in the right direction Do you mean ftpd - the ftp-server? Ftpd accepts option -U to change data portrange, but you need to mess around with the portrange sysctls. For more information please refer to 'man 8 ftpd' and 'man 4 ip'. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBpakX09WjGjvKU74RAjRiAJ4rFiXGBmc8/weSWKvWpQf3xQlcOACggYDw YFrh4swgFoGqcBgdIYrRnXw= =0mmh -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do you make install without direct internet access?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 23 November 2004 21:31, Ralph wrote: Hey, I've got a proxy-out connection where these boxes are installed. In other words, the only way to get out to the internet is through the http/ftp proxy. So in my /etc/profile I have a line HTTP_PROXY=my.internal.proxy:80 export HTTP_PROXY But when I do a make install I can't fetch anything... thoughts? You need to set FTP_PROXY, if you want to fetch ftp via proxy. Refer to 'man 3 fetch' for the datails. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBo6SN09WjGjvKU74RAhKpAJoCsy/FrgviYgEfpHdGh54+tA9/ggCcCI03 pCgfxyDT9r7zEK6SqX0JgHI= =YEhP -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do you make install without direct internet access?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 23 November 2004 22:22, Ralph wrote: actually, since I was in csh, the setenv FTP_PROXY my.internal.proxy:80 worked like a charm, except that, for some reason, fetch refuses to work without internet DNS resolution. As with our environment, no internal hosts have external DNS resolution - how do you solve that? Just an idea - try to use your proxies ip-address instead of hostname. ie. FTP_PROXY=http://192.168.n.n:80 - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBo61P09WjGjvKU74RAp5uAJ0c01Zcb+hHu1GGDP6ddenLew8B+gCcDqwZ SROq63yCFGkhWSMQ640Y9jQ= =Qjcd -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do you make install without direct internet access?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 23 November 2004 22:35, Christian Hiris wrote: On Tuesday 23 November 2004 22:22, Ralph wrote: actually, since I was in csh, the setenv FTP_PROXY my.internal.proxy:80 worked like a charm, except that, for some reason, fetch refuses to work without internet DNS resolution. As with our environment, no internal hosts have external DNS resolution - how do you solve that? Just an idea - try to use your proxy's ip-address instead of hostname. ie. FTP_PROXY=http://192.168.n.n:80 If the proxy's address is the only address fetch tries to resolve, it maybe could help, if you modify common.c in libfetch. Add hints.ai_flags = AI_NUMERICHOST; before the getaddrinfo calls (line# 244 anf 275). This should disable DNS resolving (assuming you set proxy-url to a numeric host as mentioned above). - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBo8DQ09WjGjvKU74RAjowAJ9lB1VWFLn3YqLNPhgvGUanbjn5KQCeJgVZ PGJ3C3jfqA78lX797v7i4eI= =z3vx -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gnome problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 22 November 2004 19:43, Antoine Solomon wrote: When first running gnome I get this error window popping up. Error activating XKB configuration. Probably internal X server problem. X server version data: The X.Org Foundation 6070 If you report this situation as a bug, please include: - The result of xprop -root | grep XKB - The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb I am not sure where or even how I am able to deal with this problem... Could this be in the xorg config file? In your xorg.conf change xfree86 to xorg in line Option XkbRules xfree86. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBoj/v09WjGjvKU74RAre2AJwLroqRyVuFJLNqOUP4hqSsT6RxUgCeKn74 2s0Rhhxz084GIpYdCRYcFjw= =0TCl -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vinum problems
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 21 November 2004 14:36, wrote: [...] From my point of view, vinum root partition is really useless. You will never have the availability comparable to hardware RAID (i mean, downtime), and will have a lot of troubles with booting from it. From my own expirience, the same results as root vinum partition can be made easily: 1. Make a small partition on every drive in the system. 128 Megs from every drive will be enought. 2. Make each partition bootable, and every day (by cron job in least activity hour) make a dump/restore from the main root partition to all other. 3. usr, var and all other partitions must reside on vinum partition, using rest of the space on the partition. 4. Swap partitions must also be made on every drive. Points 1., 2. (and 4.) also could be solved by setting up a gmirror(8) raid1 array on the partitions in question. This works w/o the dump/restore/cron and the setup process is very simple. There is also a gstripe(8) and a gconcat(8) geom-class available in 5.3. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBoLSu09WjGjvKU74RAsVTAJ9fhTjB1ZM2xLL8qom7XjnwkSlTqwCfYFNs O3aVVBC5ksXfYc5aYrgrS8I= =xqaZ -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Installation of Free BSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 21 November 2004 17:07, [EMAIL PROTECTED] wrote: Can you send me simple detailed directions on the installation as well as how to set up for IP address and DSL. The instructions with the disks were a bit confusing. I can't get the software to open after installation so I know that we are doing something wrong. Thanks. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/index.html - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBoMCW09WjGjvKU74RAs4rAJ4zSZDKmAzzWych0pBZOXgbwXv+WQCfYFlU PAliRYLH1HtDyJWtjx/aJvY= =+VhF -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't remove files: Operation not permitted
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 21 November 2004 17:18, Erik Norgaard wrote: Hi, I have messed around trying to set up a freebsd diskless, so to populate a root directory i ran (FreeBSD 6.0-CURRENT) # cd /usr/src # make buildworld # make DESTDIR=/var/nclt installworld Now the problem is that I can't get rid of /var/nclt again, not even in single user mode. I can't change file permissions. How do I clean up from this again? # cd /var/nclt # chfags -R noschg * # rm -rf * - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBoMNt09WjGjvKU74RAv6pAJ48CTo7yADrqIYo1sEQP8O0UNBVpwCeNCmO Qc8LbXTwAmsnGxLRPitjL0Y= =gpRP -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't remove files: Operation not permitted
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 21 November 2004 17:38, Erik Norgaard, Christian Hiris wrote: On Sunday 21 November 2004 17:33, Christian Hiris wrote: On Sunday 21 November 2004 17:18, Erik Norgaard wrote: Hi, I have messed around trying to set up a freebsd diskless, so to populate a root directory i ran (FreeBSD 6.0-CURRENT) # cd /usr/src # make buildworld # make DESTDIR=/var/nclt installworld Now the problem is that I can't get rid of /var/nclt again, not even in single user mode. I can't change file permissions. How do I clean up from this again? # cd /var/nclt # chfags -R noschg * Sorry - should read # chflags -R noschg * # rm -rf * Normally I don't spoof sender-ids. I'll immedately have a cup of coffee. Hopefully things run better afterwards ;-) - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBoMeQ09WjGjvKU74RAgCHAJ9hePFqzA1G0linWKqe9aEDAcE8YACfbyxL 0UNgupG/OXL7tANiMjxe5/s= =Rp53 -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ntpd problem freebsd 5.3 [ and Re: I found your question about NTPd on Sep 27]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 22 November 2004 03:40, [EMAIL PROTECTED] wrote: I am having the same problem you mentioned here. http://lists.freebsd.org/pipermail/freebsd-questions/2004-September/059279. html I was wondering if you ever found out the cause and/or a way to correct the problem. As this answer appears to be more complete, than my first one, I attached it to the original thread, just for the archives. I'm not a ntp specialist, so maybe there are some things that I misunderstood, but I think it's better than no answer. ;-) Sep 23 17:13:41 panther ntpd[467]: kernel time sync enabled 2001 Sep 23 21:29:44 panther ntpd[467]: kernel time sync enabled 6001 Sep 23 21:46:48 panther ntpd[467]: kernel time sync enabled 2001 Sep 24 01:11:39 panther ntpd[467]: kernel time sync enabled 6001 Sep 24 01:45:47 panther ntpd[467]: kernel time sync enabled 2001 Sep 24 02:19:59 panther ntpd[467]: kernel time sync enabled 6001 IMHO this isn't a problem - the messages are informational. ntpd just switches (kernel) clock discipline modes between PLL (Phase-Locked-Loop) and FLL (Frequency-Locked-Loop). I recently found a good documentation on ntpd PLL/FLL hybrid mode (including the differences between ntp v3/v4 PLL/FLL mode's handling): http://www.eecis.udel.edu/~mills/database/papers/allan.pdf I was pointed to the above link by http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/ntp/html/kern.html You also can find this document in /usr/src, if you have sources installed on your system. As I mentioned, there seems to be nothing wrong with messages 6001 and 2001. Kernel time discipline (and probably kernel time discipline messages) could be disabled via ntpdc control message's or ntpd config-file's disable kernel option. I think this also would disable nano-second clock-disciplining ability, so I would left it enabled. I never tried to disable kernel time discipline, so I can't imagine what would happen in real life ... http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/ntp/html/miscopt.html See also the option tinker allan option. This option allows you to change the seconds for minimum Allan intercept, which is a parameter of the PLL/FLL clock discipline algorithm. I left this at default value, too. http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/ntp/html/miscopt.html Loopfilter's implementation can be found at: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/ntp/ntpd/ntp_loopfilter.c http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/sys/timex.h Two simple examples of ntpd status decoding (see timex.h): Status message time sync enabled 2001 tells us: STA_PLL 0x0001 [true] /* enable PLL updates (rw) */ STA_NANO 0x2000 [true] /* resolution (0 = us, 1 = ns) (ro) */ STA_MODE 0x4000 [false] /* mode (0 = PLL, 1 = FLL) (ro) * STA_CLK 0x8000 [false] /* clock source (0 = A, 1 = B) (ro) */ - -- 0x2001 PLL upd. on, Resolution=ns, mode=PLL, clock-src=A Status message time sync enabled 6001 tells us: STA_PLL 0x0001 [true] /* enable PLL updates (rw) */ STA_NANO 0x2000 [true] /* resolution (0 = us, 1 = ns) (ro) */ STA_MODE 0x4000 [true] /* mode (0 = PLL, 1 = FLL) (ro) * STA_CLK 0x8000 [false] /* clock source (0 = A, 1 = B) (ro) */ - - 0x6001 PLL upd. on, Resolution=ns, mode=FLL, clock-src=A Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBoZag09WjGjvKU74RAoveAJ9vbuBz+wDK24VZL9+KSKL4GDvMcgCbBvzm 4Yd/BHzqkNicKibb+rlDky0= =SH5B -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: looks like script kiddie tried to get me
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 17 November 2004 09:07, Steel City Phantom wrote: bsd 4.9, apache 1.3 [...] 24.54.157.86 - - [17/Nov/2004:01:00:32 -0500] GET /form/ HTTP/1.1 404 289 - Mozilla/4.75 [en] (X11, U; Nessus) ^^ I's maybe Nessus. We have this tool in ports/security. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBmw5K09WjGjvKU74RAmv/AJwJ5HPFUhKwJ1afxZWaRUUZ2HUyrQCffBBv VhSPxOA8CRO6TxukaQ1rOkE= =JA6D -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Gnome 5th toe packages
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 15 November 2004 19:10, Danny Browne wrote: I'm sure i'll get my head bitten off for posting this in here, but i'm not getting any replys from any of the gnome forums. Does any 1 know what packages i need to install to get this working properly? I assumed that the gnome2-fifth-toe package would install everything it neeeded itself, but obviously not, since i had to install gnome2session and gnome2controllcenter myself from ports just to get gnome to work at all. I'm still having a number of problems with it though; First install the gnome2 meta-port/package, then install gnome2-fifth-toe. This should fetch all required run-time dependencies. You can read a lot of FreeBSD related information about gnome here: http://www.freebsd.org/gnome/index.html 1. gdm seems not to be not starting up (and yes i have replaced xdm with gdm in my /etc/ttys) You overlooked gdm's pkg-message. You can re-view it by using the pkg_info command 'pkg_info -D gdm2'. 2. Even when gnome starts up alot of the packages installed by fifth toe (such as the GIMP, gstreamer, totem and many more) are not showing up in the applications menu. Gimp and Totem should show up in the apps menu, if they are installed. Maybe there are some gnome2 dependencies missing on your system, so things don't work as expected. Gstreamer is a development framework, not a media-player. 3. gaelon browser operates VERY VERY slowly 4. dialogs popup on startup displaying error messages about one of the applets gnome attempted to start on the menu bars (but only for one of the applets) What says the message-text? 5. standard packages like unzip for tar balls are not present. if i right click a tar ball there is no unzip or extract option. The archive manager's online help says that If you have the appropiate command-line tools installed on your system This means you need to decide which archivers you want to use and install them. http://www.freebsd.org/ports/archivers.html shows a list of FreeBSD archiver ports. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBmU3X09WjGjvKU74RAgLaAJsEB/8OGiB/Ea3SLp2UtcSGFXtYcACfWSNT GOuoO/0eIU66ZKwQS7xQFrs= =nf7Z -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Make targets mixed up during registering stage
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jail003# cd /usr/ports/ftp/gftp jail003# make deinstall === Deinstalling for ftp/gftp pkg_info: package epiphany-1.4.5 has no origin recorded === Deinstalling gftp-2.0.18.r1 pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded pkg_delete: package epiphany-1.4.5 has no origin recorded ^C jail003# This happend when I run 'make deinstall' for ftp/gftp on one terminal and 'make package' for www/epiphany on another terminal. Epiphany just started registering the installation at this point (=== Registering installation for ...). Is this behavior of make expected? Thanks, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBmV/w09WjGjvKU74RArSlAJ90KjqZeC2vol2jMtvdSeWxDPg0wgCfaSNg ZDXFWOV/wdZb/XG9oEsvakI= =kByy -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Make targets mixed up during registering stage
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 16 November 2004 03:11, Kris Kennaway wrote: Yeah, you're not supposed to build multiple ports at the same time. Thanks! Some kind of a daemonized pkg-tool that waits for a client's registering, deletion and status requests w/ queueing suppport would be nice. Do we have any tools around that allow us to build something like that? - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBmXXC09WjGjvKU74RAngMAJ497k1NBMJqHIISqj2luV+Csj7u7wCdFnnT s5Rflh5kriIKs5pX0e/IXT4= =KUBh -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: build-dependencies and packages when making ports
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 13 November 2004 11:44, Emanuel Strobl wrote: Dear all, I think I can remember having read somewhere a make.conf line or anything similar which instructs the ports make process to look for packages of missing dependencies instead of building them from scratch. Was it just a dream or is it possible? I can't finde any hints for that. Maybe USE_PACKAGE_DEPENDS does what you want. Good dreams ;-) ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBlfQu09WjGjvKU74RAveiAJ0bDajVPmg9tFzvTRSHeD4Qbduh/ACfU5xR Ur11yWhAh2MRI91NdpAFvts= =0rS0 -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cdrtools scsi cdrom
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 10 November 2004 22:24, Vittorio wrote: Under freeBSD 5.2.1 I compiled cdrtools from /usr/ports/cdrtools. Now, even though I'm expert under linux in burning CDs setting the ATAPI RW-cdrom as a SCSI one via the module ide-scsi, I can't figure out how to do the same under freebsd. Could you please help? http://www.freebsd.org/cgi/man.cgi?query=atapicamsektion=4 By the way where, under what directory, I can find the CD-Writing HOWTO in freebsd (and, of course the other Howtos)? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/index.html - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBknyX09WjGjvKU74RAmcZAJ9SN5swTUQ1GvZEAwKO/duMbO1cegCdG9U5 LChTvDkqGg8fqBICxhOmzF8= =cmgi -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Via VT6202 USB2 controller, FreeBSD5?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 10 November 2004 04:28, Jose Perera wrote: hello, did you get it? could you tell me where to find it o send it to me thanks % dmesg | grep 6202 ehci0: VIA VT6202 USB 2.0 controller mem 0xeb009000-0xeb0090ff irq 21 at device 16.4 on pci0 usb4: VIA VT6202 USB 2.0 controller on ehci0 Add 'device ehci' to your kernel config and recompile your kernel. See the BUGS section in 'man 4 ehci'. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBkZdH09WjGjvKU74RAgPbAJ49hRCwM7Sa91sMmmsS0x0rWs/GNwCfQr4G Es3j5nSmJy1TuFAOusLXT88= =XMyb -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Xorg Log-In
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 07 November 2004 19:10, Lloyd Hayes wrote: Any editing that I try to do beyond the Xorg -configure leads to 'User and Password with it not accepting my system passwords. I searched for .xinitrc and .xsession and nothing showed up. I read in the FreeBSD handbook about creating .xsessions. Following the exact directions listed, I got no such file or directory after: echo #!/bin/sh -/.xsession ^^^ This should be ~/.xsession, not -/.xsession Ok I tried a setup on one of my machines to verify if gnome+xdm works: Log-in as user and do: echo #!/bin/sh ~/.xsession echo exec gnome-session ~/.xsession chmod +x ~/.xsession Log in as root and do: # ee /etc/ttys change ttyv8 /usr/X11R6/bin/xdm -nodaemon xterm off secure to ttyv8 /usr/X11R6/bin/xdm -nodaemon xterm on secure Reboot the machine: * Xdm login-screen shows up. * Log-in as user. * The Gnome desktop should start up. Took me 1 minute and gnome was up and running. I'm using 5.3-STABLE #0: Mon Nov 1 06:38:37 CET / xorg-clients-6.7.0_4 / gnome-session-2.6.2. This was version 5.3 Xorg is brand new, and there only seems to be a few lines of documentation concerning it. I'm new to this whole thing, and having a difficult time making sense of many things in the UNIX world. There is more documentation about version 5.2.1 then 5.3. I'm in the process of removing 5.3 and putting 5.2.1 back on here. And I think that I'll keep XFree86 on it. If things don't work show us your logs and config-files: ~/.xsession-errors /var/log/0.log /var/log/Xorg.0.log xorg.conf ~/.xsession /etc/ttys - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBjoMn09WjGjvKU74RAq4ZAJ9yG16KB5i+d7cM2ReAJ4+tSrrgEQCfWQkx w/0kvaNfo18aZD2Km8Ld4Tg= =1ucY -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Xorg Log-In
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 07 November 2004 21:18, Christian Hiris wrote: Log-in as user and do: echo #!/bin/sh ~/.xsession echo exec gnome-session ~/.xsession ^^ The handbook says echo /usr/X11R6/bin/gnome-session ~/.xsession which is maybe better then exec gnome-session. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBjoSZ09WjGjvKU74RAgu4AJ9rMojT21ykQp2vGGEkF99ND2b8aACfQuyM nsr+j0ug3zom10JqIwXdDAI= =0Zl+ -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Build maildrop from port
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 08 November 2004 06:53, Joe Kraft wrote: I'm trying to install maildrop from ports. It will build and install fine when doing the default build, but I want to include the userdb support. When I build with the WITH_USERDB=yes WITH_GDBM=yes knobs, it seems to build OK but then won't install. It gives this error: /bin/sh ./mkinstalldirs /usr/local/bin /bin/sh ./mkinstalldirs /usr/local/bin install -o root -g wheel -m 555 makedat/makedat /usr/local/bin/makedat install: /usr/local/bin/makedat: Too many levels of symbolic links *** Error code 71 This looks like the install-target creates a recursive link. The original Makefile.in would create two different diectories, one to install the makedat binary and another one where it places a link to the makedat binary. Excerpt from Makefile.in: [...] scriptdir = $(pkgdatadir)/scripts [...] @[EMAIL PROTECTED]: @INSTALL_MAKEDAT_TRUE@ $(mkinstalldirs) $(DESTDIR)$(bindir) @INSTALL_MAKEDAT_TRUE@ $(mkinstalldirs) $(DESTDIR)$(scriptdir) @INSTALL_MAKEDAT_TRUE@ $(INSTALL_SCRIPT) makedat/makedat $(DESTDIR)$(scriptdir)/makedat [...] @INSTALL_MAKEDAT_TRUE@ $(LN_S) $(scriptdir)/makedat $(DESTDIR)$(bindir)/makedat Our patch in the ports files/patch-Makefile.in modifies the variable scriptdir to $(bindir). As results $(DESTDIR)$(bindir) and $(DESTDIR)$(scriptdir) are both set to /usr/local/bin and the ln command fails. - -scriptdir = $(pkgdatadir)/scripts +scriptdir = $(bindir) Because link and link-target are the same, I would comment out the respective line in Makefile.in and try again. Maybe there are some more symbolic links, which are targeted by this issue. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBjx3709WjGjvKU74RAjGFAJsHEk9bLFYEDhDGiKbz1si8dpVm7ACbBKwt 9CC8as6RX2t9w+LELMWIElM= =o+0l -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: moused and 7-button mice
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 06 November 2004 19:31, Danny MacMillan wrote: On Sat, Nov 06, 2004 at 10:27:38AM -0700, Kirk Strauser wrote: [...] Here's the InputDevice section of my XF86Config: Identifier Mouse1 Driver mouse Option ProtocolAuto Option Device /dev/psm0 Option Buttons 7 Option ZAxisMapping 6 7 This is the only configuration I could get working. I couldn't get it working with moused, for example. Of course, I only invested about 5 hours in it so maybe I just quit too soon :) Moused should work, if you change Option Device from /dev/psm0 to /dev/sysmouse. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBjRsT09WjGjvKU74RAhrHAJ9H+zAgl4i7d2ynIvqoEhInOFsLjgCcCjtl EBrc7mJVOYLLQb8dV+xfQDg= =MjEM -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Xorg Log-In
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 06 November 2004 18:28, Lloyd Hayes wrote: I figured that starting over with FBSD 5.2.1 was a good idea, installing less software this time. However, on impulse, I installed v5.3 No new problems until I got to Xorg. I have the new docs downloaded from FreeBSD. The FreeBSD Handbook from The FreeBSD Documentation Project, and Frequently Asked Questions from the same place. They give some information about Xorg. Typing 'startx gets me to a graphical screen similar to the setup screen used in xorg -config. My only option was to hit Ctrl-Alt-Back_Space to get out of it. I then tried to use xdm -config. I get to the point where it asks for name and password. This is mentioned in the handbook. There is no security level set, so the system is at it's default level. I'm logged in as root, so I type root and my root password. It loops back to the same menu each time that I do this. Any other input here just produces a wrong name. It won't accept a blank input either. Possibly you haven't entered an entry for your windowmanager in your .xinitrc or .xsession file. startx uses .xinitrc, xdm uses .xsession. 'man xdm' explains which files are used by xdm and where they are located. Look for errors listed in ~/.xsession-errors, if you use xdm. (At this point, I was looking for the author, a rope, and a tall tree. My 2nd option was to send this email) Is there a secret code to getting into Xorg and setting it up for Gnome? An easy way to setup gnome (and other wm) is gdm: # cp -p /usr/X11R6/etc/rc.d/gdm.sh.sample /usr/X11R6/etc/rc.d/gdm.sh # /usr/X11R6/etc/rc.d/gdm.sh start After next reboot gdm will be started automatically. Gdm is part of the gnome (meta-)package. Cheers, ch - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD4DBQFBjSdU09WjGjvKU74RAh01AJd77uoaUgq8mLd8nMF3oeU2zPZWAJ9zavvi RCIEymWh8v0sPIr/4QIGJw== =IQUB -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: moused and 7-button mice
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 06 November 2004 20:59, Danny MacMillan wrote: On Sat, Nov 06, 2004 at 11:42:04AM -0700, Christian Hiris wrote: On Saturday 06 November 2004 19:31, Danny MacMillan wrote: On Sat, Nov 06, 2004 at 10:27:38AM -0700, Kirk Strauser wrote: [...] Here's the InputDevice section of my XF86Config: Identifier Mouse1 Driver mouse Option ProtocolAuto Option Device /dev/psm0 Option Buttons 7 Option ZAxisMapping 6 7 This is the only configuration I could get working. I couldn't get it working with moused, for example. Of course, I only invested about 5 hours in it so maybe I just quit too soon :) Moused should work, if you change Option Device from /dev/psm0 to /dev/sysmouse. I understand that this will give me basic mouse functionality in X using moused. What it doesn't get working is all 7 mouse buttons in X using moused. 'imwheel -p -k -b 67' is probably wrong. This limits button grabbing to buttons 6 and 7, where imwheel maps the buttons 6/7 to wheel up/down. If you run 'xmodmap -e pointer = 1 2 3 6 7 4 5' the buttons are mapped as should be. I'm running imwheel w/o options and I use the default imwheelrc, which was installed by the port. - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBjVjw09WjGjvKU74RAjfoAJ980qRkELXj4Dp7YuPVX0BA1DkxEQCePfFt UzVv98LZ01tKmwG6vOp7IRI= =rZhy -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: moused and 7-button mice
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 07 November 2004 00:26, Nikolas Britton wrote: How do you operate a 7 button mouse when you only have 5 fingers? ;-P Oh sorry, forgot to mention I have 10 fingers ;-)) - -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBjWCI09WjGjvKU74RAipnAJ9HBl9xb2tGhv+D90MMRp1XAdYSEQCaA4E9 RuDDFRimqUnMWahwpb4orgM= =i2XZ -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]