Help with pam_abl package
I'm having a problem with the pam_abl package. I've already emailed the programs author, but didn't get a reply back. I'm having trouble setting up a rule to exclude to users. One user is the root user while the other is a local account. I've tried multiple things, but they don't seem to work. The rules seem to only not include the root user. This does exclude the root user, but not the localacct user. #debug user_db=/var/db/pam_abl/users.db user_rule=!root|!localacct:5/60d This next one doesn't seem to work either. #debug user_db=/var/db/pam_abl/users.db user_rule=!root:5/60d !localacct:5/60d Please advise. Phusion ___ 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"
Problems booting up on 1201N
I recently got a Asus 1201N and installed FreeBSD 8.0 on it. This uses the alc (Atheros AR8132 PCIe Fast Ethernet) NIC card. /etc/rc.conf hostname="host.test.com" ifconfig_alc0="DHCP" I noticed that if I start up the computer with the network cable unplugged it will hang at the following spot. This happens right after installing meaning I can install the OS and have the NIC get a DHCP IP address and then when rebooting I unplug the network cable and it hangs. Setting hostname: host.test.com So, this must mean that it finishes running /etc/rc.d/hostname, but I'm not sure what comes next in the boot process. Phusion ___ 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"
Getting kernel messages using syslog-ng 3.x
I'm in need of getting help using syslog-ng 3 on FreeBSD 8.0-RELEASE. I'm having trouble getting kernel messages. I've made a very small config file, and this isn't working either. @version:3.0 source local { internal(); file("/dev/klog"); unix-dgram("/var/run/log"); }; destination all { file("/var/log/all.log"); }; log { source(local); destination(all); }; The /etc/rc.conf.local has the following options in it. syslogd_enable="NO" syslog_ng_enable="YES" syslog_ng_pid="/var/run/syslog-ng.pid" This picks up other things, but not the kernel messages. I assume it's a small configuration issue. Using file /dev/klog works using syslog-ng 2.x on FreeBSD 8.0, but not using syslog-ng 3.x. Let me know. Thanks. Phusion ___ 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: Help configuring sendmail to send only using authorization to smart host
On Fri, Sep 18, 2009 at 2:32 PM, Mark Willson wrote: > Phusion wrote: >> >> I need some help configuring sendmail to send only using authorization >> to a smart host being the ISP's mail server. I'm running 7.2-RELEASE. >> I've looked over >> http://www.freebsd.org/doc/en/books/handbook/outgoing-only.html but >> want to use the built-in sendmail. I've run the following command: >> sendmail -d0.1 -bv, but SASL isn't included. Also, I would rather uses >> packages. Please advise. > > Phusion, > > I originally replied via Google, but it doesn't seem to have hit the list, > so here's a repeat. Apologies for the repetition, if it occurs. > > This link might provide useful information: > http://www.hydrus.org.uk/journal/smtp-client-auth.html > > -mark > > ___ > 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" > I recompiled sendmail and now get the following when running sendmail -d0.1 -bv. Version 8.14.3 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG SYSTEM IDENTITY (after readcf) (short domain name) $w = server (canonical domain name) $j = server.domain.com (subdomain name) $m = domain.com (node name) $k = server.domain.com Recipient names must be specified I now have added the following to sendmail.mc. FEATURE(masquerade_envelope) FEATURE(genericstable, `hash -o /etc/mail/genericstable') GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains') TRUST_AUTH_MECH(`LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl FEATURE(authinfo, `hash -o /etc/mail/auth/authinfo') define(`SMART_HOST', `mail.test.com') define(`confCW_FILE', `-o /etc/mail/local-host-names') dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') I created /etc/mail/auth/authinfo and then did the makemaps to create the hashd .db file. When trying to email outbound, I still get the same error in the logs. ...relay=mail.test.com. [public_IP_address], dsn=5.6.0, stat=Data format error The /etc/mail/auth/authinfo file looks like the following. AuthInfo:mail.test.com "U:usern...@isp.com" "P:password" ---- I am using the mail server of the local ISP I use. It doesn't appear that it even checks for authentication. Please advise. Phusion ___ 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"
Help configuring sendmail to send only using authorization to smart host
I need some help configuring sendmail to send only using authorization to a smart host being the ISP's mail server. I'm running 7.2-RELEASE. I've looked over http://www.freebsd.org/doc/en/books/handbook/outgoing-only.html but want to use the built-in sendmail. I've run the following command: sendmail -d0.1 -bv, but SASL isn't included. Also, I would rather uses packages. Please advise. Phusion ___ 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"
Errors with pkg_add
I am running FreeBSD 7.0-STABLE i386 and am having problems with pkg_add. I can install packages as the root user without problems. - pkg_add -r packages, works when running as root - pkg_add -r packages, errors out when using sudo % sudo pkg_add -r openssl Error: FTP Unable to get ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz: Syntax error, command unrecognized pkg_add: unable to fetch 'ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz' by URL % cat /usr/local/etc/sudoers Defaultsenv_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR" Defaultsenv_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF" rootALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL This user is a member of the wheel group so no password is required. Both this user and root user are using the csh with the following in .cshrc. setenv PACKAGESITE ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/ Let me know if you have any ideas. Thanks. Phusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Backing up large partitions
I need some advice on how to backup a UNIX server. The server has multiple large partitions ranging from 200 to 400 GB. Also, the server doesn't have a tape drive. We recently got a large NAS device that has 2 TB of storage space. The UNIX server has Samba installed and can be setup to mount a Windows network share. I would like the ability to run full and incremental backups as well as restores. Let me know what you think. Phusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Storage container for servers & switches
I will be moving some servers and switches in the near future. The computer equipment is all rack-mountable so it's 1U and 2U. I was wondering if anyone could recommend storage containers for this type of computer equipment. Let me know if you have any ideas. Thanks. Phusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD 6.0 and PX-716SA
I tried to install FreeBSD 6.0 on my system last night and couldn't finish the install. The system has a SATA hard drive and SATA DVD drive. I started the install and it let me create partitions and format the drives fine, but when I got to the part where it asked for installation media, it would recognize my Plextor PX-716SA. Does anyone have any information related to if the PX-716SA is recognized under FreeBSD 6.0? Let me know. Phusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Need help with Pancho
I've got some questions about pancho (tftp server). When I install it from the ports, how can I make it automatically start on boot? Normally with ports it puts a shell script in /usr/local/etc/rc.d/. I tried to start it by doing the following with no success. /usr/local/bin/pancho --config /usr/local/etc/pancho.conf Also, I want to just make it a tftp server. Here is my pancho.conf file. [global] LogFile=/var/log/pancho.log ForkLimit=5 StylePattern=::HOST::.::DATE::-confg StyleDate=%Y%m%d TftpPath=/tftp Let me know, what I am doing wrong. Thanks. Phusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Make Image of Hard Drive
I recently built a FreeBSD server, and was wondering how I can make an image of the hard drive. I am going to build an another FeeBSD server using identical hardware. How can I make an image of the hard drive of the original server I built and copy/install it to the new server? Each server has a 6.4 GB hard drive. Is there a way I can create an image then install via the network to a new server in the future if need be? Let me know. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Help with xorg.conf
I've got a Shuttle SN41G2 V3, and have been having problems using X-Windows. In my Xorg.0.log file here is what is at the end of the file. (WW) fcntl(12, O_ASYNC): Inappropriate ioctl for device A few days ago I also posted my xorg.conf file along with my Xorg.0.log file. Let me know what you think the problem is. Phusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Shuttle SN41G2 V3 X-Windows Problem
I just got a Shuttle SN41G2 V3 this week and have installed FreeBSD 5.4 on it. I've installed xorg and a window manager, but it crashes when I run startx. I've enclosed a copy of my Xorg.0.log and xorg.conf files to look over. Let me know what you think my problem is. Thanks. Phusion X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: FreeBSD 5.4 i386 [ELF] Current Operating System: FreeBSD earth.packetwatch.net 5.4-RELEASE-p2 FreeBSD 5.4-RELEASE-p2 #5: Sun Jun 26 10:39:02 CDT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/earth i386 Build Date: 26 June 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun 26 11:55:52 2005 (==) Using config file: "/etc/X11/xorg.conf" (==) ServerLayout "Xorg Configured" (**) |-->Screen "Screen" (0) (**) | |-->Monitor "Monitor" (**) | |-->Device "Card" (**) |-->Input Device "Mouse" (**) |-->Input Device "Keyboard" (**) Option "AutoRepeat" "500 30" (**) Option "XkbRules" "xorg" (**) XKB: rules: "xorg" (**) Option "XkbModel" "microsoft" (**) XKB: model: "microsoft" (**) Option "XkbLayout" "us" (**) XKB: layout: "us" (==) Keyboard: CustomKeycode disabled (**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/X11R6/lib/X11/fonts/TrueType/,/usr/X11R6/lib/X11/fonts/URW/" (**) RgbPath set to "/usr/X11R6/lib/X11/rgb" (**) ModulePath set to "/usr/X11R6/lib/modules" (**) Option "DontZap" (II) Module ABI versions: X.Org ANSI C Emulation: 0.2 X.Org Video Driver: 0.7 X.Org XInput driver : 0.4 X.Org Server Extension : 0.2 X.Org Font Renderer : 0.4 (II) Loader running on freebsd (II) LoadModule: "bitmap" (II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a (II) Module bitmap: vendor="X.Org Foundation" compiled for 6.8.2, module version = 1.0.0 Module class: X.Org Font Renderer ABI class: X.Org Font Renderer, version 0.4 (II) Loading font Bitmap (II) LoadModule: "pcidata" (II) Loading /usr/X11R6/lib/modules/libpcidata.a (II) Module pcidata: vendor="X.Org Foundation" compiled for 6.8.2, module version = 1.0.0 ABI class: X.Org Video Driver, version 0.7 (--) Using syscons driver with X support (version 2.0) (--) using VT number 9 (II) PCI: Probing config type using method 1 (II) PCI: Config type is 1 (II) PCI: stages = 0x03, oldVal1 = 0x, mode1Res1 = 0x8000 (II) PCI: PCI scan (all values are in hex) (II) PCI: 00:00:0: chip 10de,01e0 card , rev a2 class 06,00,00 hdr 80 (II) PCI: 00:00:1: chip 10de,01eb card 1297,5011 rev a2 class 05,00,00 hdr 80 (II) PCI: 00:00:2: chip 10de,01ee card 1297,5011 rev a2 class 05,00,00 hdr 80 (II) PCI: 00:00:3: chip 10de,01ed card 1297,5011 rev a2 class 05,00,00 hdr 80 (II) PCI: 00:00:4: chip 10de,01ec card 1297,5011 rev a2 class 05,00,00 hdr 80 (II) PCI: 00:00:5: chip 10de,01ef card 1297,5011 rev a2 class 05,00,00 hdr 80 (II) PCI: 00:01:0: chip 10de,0080 card 1297,5011 rev a3 class 06,01,00 hdr 80 (II) PCI: 00:01:1: chip 10de,0084 card 1297,5011 rev a1 class 0c,05,00 hdr 80 (II) PCI: 00:02:0: chip 10de,0087 card 1297,5011 rev a1 class 0c,03,10 hdr 80 (II) PCI: 00:02:1: chip 10de,0087 card 1297,5011 rev a1 class 0c,03,10 hdr 80 (II) PCI: 00:02:2: chip 10de,0088 card 1297,5011 rev a2 class 0c,03,20 hdr 80 (II) PCI: 00:06:0: chip 10de,008a card 1297,5011 rev a1 class 04,01,00 hdr 00 (II) PCI: 00:08:0: chip 10de,008b card , rev a3 class 06,04,00 hdr 01 (II) PCI: 00:09:0: chip 10de,0085 card 1297,5011 rev a3 class 01,01,8a hdr 00 (II) PCI: 00:1e:0: chip 10de,01e8 card , rev a2 class 06,04,00 hdr 01 (II) PCI: 01:04:0: chip 1106,3044 card 1106,3044 rev 46 class 0c,00,10 hdr 00 (II) PCI: 01:06:0: chip 10b7,9055 card 10b7,9055 rev 30 class 02,00,00 hdr 00 (II) PCI: 02:00:0: chip 10de,01f0 card 1297,f540 rev a3 class 03,00,00 hdr 00 (II) PCI: End of PCI scan (II) Host-to-PCI bridge: (II) Bus 0: bridge is at (0:0:0), (0,0,2), BCTRL: 0x0008 (VGA_EN is set) (II) Bus 0 I/O range: [0] -1 0 0x - 0x (0x1) IX[B] (II) Bus 0 non-prefetchable memory range: [0] -1 0 0x - 0x (0x0) MX[B] (II) Bus 0 prefetchable memory range: [0] -1 0 0x - 0x (0x0) MX[B] (II)
Re: ssh delays 40 seconds
I've noticed this same thing on one of the machines I've built in the last week. The machine is running FreeBSD 5.4-STABLE with OpenSSH 4.0p1. The delay is probably about 30 seconds. Also, the machine isn't being used by anyone at the time. This happens when connecting from one local machine to another local machine on the same LAN. On 6/5/05, Robert Marella <[EMAIL PROTECTED]> wrote: > A little nudge is needed. All of a sudden, my attempts to ssh any of the > other computers in my SOHO take 40 seconds before I am prompted for a > password or pass-phrase. At that time I can log in and all is well. It > is consistent in all directions. > > I have made NO changes to ssh or any other config file. I don't believe > it is dns because I can ping and connect quickly to inside and outside > locations using x.x.x.x or www.blah.org from all computers. > > I have attached the output of ssh -vvv with comments as to were the > delay occurs. I need some help or direction as to what it all means. > > I thank you > > Robert > > P.S I have also attached a network map. > > > [frankie] ~> ssh -vvv gateway > OpenSSH_3.8.1p1 FreeBSD-20040419, OpenSSL 0.9.7e 25 Oct 2004 > debug1: Reading configuration data /etc/ssh/ssh_config > debug2: ssh_connect: needpriv 0 > debug1: Connecting to gateway [10.0.0.1] port 22. > debug1: Connection established. > debug1: identity file /home/robert/.ssh/identity type -1 > debug3: Not a RSA1 key file /home/robert/.ssh/id_rsa. > debug2: key_type_from_name: unknown key type '-BEGIN' > debug3: key_read: missing keytype > debug2: key_type_from_name: unknown key type 'Proc-Type:' > debug3: key_read: missing keytype > debug2: key_type_from_name: unknown key type 'DEK-Info:' > debug3: key_read: missing keytype > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug3: key_read: missing whitespace > debug2: key_type_from_name: unknown key type '-END' > debug3: key_read: missing keytype > debug1: identity file /home/robert/.ssh/id_rsa type 1 > debug1: identity file /home/robert/.ssh/id_dsa type -1 > debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1 > FreeBSD-20040419 > debug1: match: OpenSSH_3.8.1p1 FreeBSD-20040419 pat OpenSSH* > debug1: Enabling compatibility mode for protocol 2.0 > debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419 > debug1: SSH2_MSG_KEXINIT sent > debug1: SSH2_MSG_KEXINIT received > debug2: kex_parse_kexinit: > diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 > debug2: kex_parse_kexinit: ssh-dss,ssh-rsa > debug2: kex_parse_kexinit: > aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,[EMAIL > PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr > debug2: kex_parse_kexinit: > aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,[EMAIL > PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr > debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL > PROTECTED],hmac-sha1-96,hmac-md5-96 > debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL > PROTECTED],hmac-sha1-96,hmac-md5-96 > debug2: kex_parse_kexinit: none,zlib > debug2: kex_parse_kexinit: none,zlib > debug2: kex_parse_kexinit: > debug2: kex_parse_kexinit: > debug2: kex_parse_kexinit: first_kex_follows 0 > debug2: kex_parse_kexinit: reserved 0 > debug2: kex_parse_kexinit: > diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 > debug2: kex_parse_kexinit: ssh-dss > debug2: kex_parse_kexinit: > aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,[EMAIL > PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr > debug2: kex_parse_kexinit: > aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,[EMAIL > PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr > debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL > PROTECTED],hmac-sha1-96,hmac-md5-96 > debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL > PROTECTED],hmac-sha1-96,hmac-md5-96 > debug2: kex_parse_kexinit: none,zlib > debug2: kex_parse_kexinit: none,zlib > debug2: kex_parse_kexinit: > debug2: kex_parse_kexinit: > debug2: kex_parse_kexinit: first_kex_follows 0 > debug2: kex_parse_kexinit: reserved 0 > debug2: mac_init: found hmac-md5 > debug1: kex: server->client aes128-cbc hmac-md5 none > debug2: mac_init: found hmac-md5 > debug1: kex: client->server aes128-cbc hmac-md5 none > debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent > debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP > debug2: dh_gen_key: priv key bits set: 129/256 > debug2: bits set: 519/1024 > debug1: S
Re: Help with Expect
Mike, I need to this be in an expect script because I will be entering commands after I telnet into the machine. Thanks for the help though. On 5/22/05, Mike Jeays <[EMAIL PROTECTED]> wrote: > On Sun, 2005-05-22 at 20:30, Phusion wrote: > > I need some help with an expect script I'm trying to write. Here's > > what I would like to do. > > > > - Ping the host to see if it's up. > > a. If the host responds to pings telnet into it. > > b. If the host doesn't respond to pings write that to a log file and > > close the expect script properly. > > > > The host does respond to pings. I was thinking if I see a ttl in the > > response packet to assume it's up and telnet into it. Let me know how > > I can do the following with expect. Also, how do I close an expect > > script properly? Thanks. > > ___ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > > I sent you these examples to a similar request a few days ago, and > didn't get any acknowledgement. Did you not receive it, or is it not > clear, or do you need more help? > > - > > You can ping a host and test whether it was successful from a shell > script, without needing to use expect. Hope this is useful, as it > doesn't quite answer your question. Note the "-c 1" to tell ping to try > just once. > > ping -c 1 chaucer > rc1=$? > if [ $rc1 -gt 0 ] > then > echo "Chaucer is down" > else > echo "Chaucer is up" > fi > > Here is an example of telnet from expect; a very quick and dirty way to > synchronize a clock on a very old machine. > > #!/usr/local/bin/expect > set timeout 10 > spawn telnet jansen > expect "]" > > send "password1\r" > expect "jansen???" > > send "su\r" > expect "Password:" > > send "rootpassword\r" > expect "#" > > exec date >/tmp/datesync.tmp > exec cat /tmp/datesync.tmp > set newtime [exec cat /tmp/datesync.tmp] > send "date -s \"$newtime\"\r" > expect "#" > > send "exit\r" > expect "jansen???" > > send "exit\r" > expect "host." > > > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Help with Expect
I need some help with an expect script I'm trying to write. Here's what I would like to do. - Ping the host to see if it's up. a. If the host responds to pings telnet into it. b. If the host doesn't respond to pings write that to a log file and close the expect script properly. The host does respond to pings. I was thinking if I see a ttl in the response packet to assume it's up and telnet into it. Let me know how I can do the following with expect. Also, how do I close an expect script properly? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Help with Expect Script
I'm new to writing expect scripts and need some help. The script will telnet to a host and run some commands. I want the script to ping the host to see if it's alive first before it telnets into it. Also, I know the host is pingable meaning it responds to pings. If the host doesn't respond to a ping I want it to log that to a log file and then quit. I already know how to telnet to the host, but not sure about the ping part and writing it to a log file. Could you please reply to this email with a little example script. Thanks. Phusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD Keychain
Does anyone know where I can buy some small item that says FreeBSD so that I can put it on my keychain? Let me know. Thanks. Phusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Help Renaming Multple Files
I need help figuring out how to rename multple files. The files are named like reports_abcdef_MMDD.dat, reports_hijklm_MMDD.dat, and reports_nopqrs_MMDD.dat. Here is an example. Original Filename: reports_abcdef_MMDD.dat New Filename: abcdef_MMDD.dat Let me know how I can do this. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FAT32 Partition?
I'm having problems accessing a shared FAT32 partition in FreeBSD 5.3. When I try to mount the partition, it says: bad FAT32 filesystem. I'll explain what I'm trying to do, and what I've tried. I have one hard drive, and I'm trying to get Windows XP Pro, FreeBSD 5.3, and Fedora on it. I want to have one FAT32 partition that is shared between all three operating systems. Here's the steps I've followed. - Install Windows XP Pro create a primary partition, NTFS - Install FreeBSD 5.3 create a primary partition, UFS2 - Install Fedora manually partition with disk druid, create a boot partition, FAT partition, and swap drive Here's what the partitions look like to Fedora. hdc1 ntfs (Primary) hdc2 bsd (Primary) hdc3 / ext3 (Primary) hdc4 Extended hdc5 /share vfat hdc6 swap When tried this way, the FAT32 partition is created by Fedora. The partition can be read + written to in Windows XP, and Fedora. In FreeBSD I can't mount it. Can FreeBSD 5.3 read FAT32 partitions on extended partitions? When I create the FAT32 partition as a primary partition I can read and write to it in FreeBSD fine. Does anyone have advice on how I can do this. If so let me know. Thanks. Phusion ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
IDE for gcc
I was wondering if anyone could give me some recommendations for an IDE for gcc. Let me know. Thanks. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: HZ=100 ?? vmware
Hi, I run VMware3 on FreeBSD 5.2.1 fine. I use HZ=1200, and that seems to work perfect. I've tested and found that 1000, and even 1100 still gave me "rtc: 100 > kern.hz" messages. When I set HZ=1200 I got no more of these messages. On Thu, 14 Oct 2004 16:25:58 -0400, jason <[EMAIL PROTECTED]> wrote: > dick hoogendijk wrote: > > >Okey, I found out I need to increase the HZ=100 default in the kernel > >config to a higher number. I also understand it decreases system > >response times. > > > >So, what I need to know is the lowest setup for HZ=??? to be able to run > >vmware3 in full screen. I got to get rid of the "rtc: 100 > kern.hz" > >prompt. > > > >Google tells me to increase to HZ=1200 but is this not too high? > > > > > > > In man polling a kernel config of HZ=1000 is the default if you want to > use polling. I am not sure, but if vmware is using the same HZ setting > as polling does then 1200 is not too high. If I understand it right, > the HZ setting tells stuff how often to checkin to see if work needs > doing. 100hz would be way too low. Every 100hz on say a 2ghz machince > would requirer you to spend a lot of time on something every > sec(2billion/100 per sec if I am right). Maybe nothing because you are > delaying some programs that you want to execute, not pause and wait > every 100hz. This would most likely slow everything down, a higher > number would make things smoother and faster, but only to a point. Its > kind of complicated, but when you find the right spot(somewhere in the > middle) everything is good. If you had a 4ghz machince you may want an > even larger number. If I am wrong I am sure there will be a followup > shortly. > > Jason > > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Firewalk Port Broken
I'm running FreeBSD 5.2.1. I tried to install the firewalk port and this is what I got. I got the dependencies of libdnet and libnet-devel installed before trying firewalk. %pwd /usr/ports/security/firewalk %sudo make ===> Building for firewalk-5.0_1 Making all in src cc -DHAVE_CONFIG_H -I. -I. -I../include -I/usr/local/include -O -pipe -mcpu=pentiumpro -Wall -c init.c init.c: In function `fw_init_net': init.c:156: error: `BIOCIMMEDIATE' undeclared (first use in this function) init.c:156: error: (Each undeclared identifier is reported only once init.c:156: error: for each function it appears in.) *** Error code 1 Stop in /usr/ports/security/firewalk/work/Firewalk/src. *** Error code 1 Stop in /usr/ports/security/firewalk/work/Firewalk. *** Error code 1 Stop in /usr/ports/security/firewalk. % I've already looked for answers, but no luck. I found that someone else posted this same exact problem back in February or March of this year to a FreeBSD mailing list, but no one responsed with how to fix it. Also, I cvsuped the ports collection before doing this. Let me know what you think the problem is. Thanks. Phusion ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Font Size Question
I'm having a problem with my font size. In gnome-control-center, I've set the font preferences to Arial 10, and font rendering to sub-pixel smoothing. When I log into X-Windows, the font size is bigger, so then I go into gnome-control-center, and then single-click on font and the font suddenly shrinks probably to 10. How can I make the font size stay permanent? Thanks. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Set Screen Refresh Rate?
How can I set the screen refresh rate in FreeBSD 5.2.1. I can go into gnome-control-center and go to screen resolution then change the refresh rate it to say 75 MHz, but then the next time I log into X-Windows it's back to say 85 MHz. Is there some file I can edit to keep it to stay a certain refresh rate? Thanks. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Penggy for AOL
I'm trying to install Penggy, so I can connect through dialup using an AOL account I have. I'm running FreeBSD 5.2.1. The modem I have is recognized in FreeBSD. I downloaded the source file from the homepage, then ran ./configure and said that it couldn't find Guile (which I don't have installed). Then I tried to run make, but it said there was nothing to make. I would appreciate it if someone could guide me through installing and configuring penggy so I can use an AOL account I have. __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"