Re: cvsup 7.0 STABLE checkout failure
On 2008-Oct-11 08:24:51 -0700, Jeremy Chadwick [EMAIL PROTECTED] wrote: csup and cvsup function the same, and they both rely on the same source versioning system. Note that csup only supports a subset of cvsup functionality. The most obvious missing feature is CVS mode. If you really want Windows and FreeBSD to play well together, your best option is to run Samba on the FreeBSD box and use UFS2 filesystems, then make the Windows machine mount shares from the FreeBSD machine. I agree in general but this can also lead to similar gotchas on the Windows side if the Unix side has files differing only in case. -- Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. pgpT0HrqUp6lC.pgp Description: PGP signature
Re: rsync or even scp questions....
mdh wrote: --- On Sat, 10/11/08, Gary Kline [EMAIL PROTECTED] wrote: On the Ubuntu computer I am /home/kline; on my main computer, my home is /usr/home/kline. The following sh script worked perfected when my home on tao [FBSD] was /home/kline: P #!/bin/sh PWD=`pwd`; echo This directory is [${PWD}]; scp -qrp ${PWD}/* ethos:/${PWD} ###/usr/bin/scp -rqp -i /home/kline/.ssh/zeropasswd-id ${PWD}/* \ klin [EMAIL PROTECTED]:/${PWD} Question #1: is there any /bin/sh method of getting rid of the /usr? I switch off between my two computers especially when get mucked up, as with my upgrade to kde4. (Otherwise, I do backups of ~kline as well as other critical directories.) Is there a way of automatically using rsync rather that my kwik-and-dirty /bin/shell script? thanks, people, gary If what you wish to do is simply get rid of /usr in a string, you can use sed like so: varWithoutUsr=`echo ${varWithUsr} |sed -e 's/\/usr//'` After running this, where $varWithUsr is the variable containing a string like /usr/home/blah, the variable $varWithoutUsr will be equal to /home/blah. I create simple scripts like this all the time to rename batches of files, for example. The easier way is probably just to not specify a dir to scp's remote path though, since it defaults to the user's home directory. Or, in anything resembling Bourne shell: varWithoutUsr=${varWithUsr#/usr} Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: rsync or even scp questions....
On Sun, Oct 12, 2008 at 09:42:38AM +0100, Matthew Seaman wrote: mdh wrote: --- On Sat, 10/11/08, Gary Kline [EMAIL PROTECTED] wrote: On the Ubuntu computer I am /home/kline; on my main computer, my home is /usr/home/kline. The following sh script worked perfected when my home on tao [FBSD] was /home/kline: P #!/bin/sh PWD=`pwd`; echo This directory is [${PWD}]; scp -qrp ${PWD}/* ethos:/${PWD} ###/usr/bin/scp -rqp -i /home/kline/.ssh/zeropasswd-id ${PWD}/* \ klin [EMAIL PROTECTED]:/${PWD} Question #1: is there any /bin/sh method of getting rid of the /usr? I switch off between my two computers especially when get mucked up, as with my upgrade to kde4. (Otherwise, I do backups of ~kline as well as other critical directories.) Is there a way of automatically using rsync rather that my kwik-and-dirty /bin/shell script? thanks, people, gary If what you wish to do is simply get rid of /usr in a string, you can use sed like so: varWithoutUsr=`echo ${varWithUsr} |sed -e 's/\/usr//'` After running this, where $varWithUsr is the variable containing a string like /usr/home/blah, the variable $varWithoutUsr will be equal to /home/blah. I create simple scripts like this all the time to rename batches of files, for example. The easier way is probably just to not specify a dir to scp's remote path though, since it defaults to the user's home directory. Or, in anything resembling Bourne shell: varWithoutUsr=${varWithUsr#/usr} And I'll take a moment to recommend Matthew's method, since it does not involve fork()ing an additional process. When writing shell scripts in general, it's best if you can avoid spawning external processes for things which can be done easily (keyword: easily!) within Bourne natively. There's no harm in doing it for more complex things, but fork() is somewhat expensive, and try to imagine what will happen to those scripts if the system lacks process table space, etc... :-) Best to try and make everything self-contained if possible. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot compile kde4 or gnome2 due to gstreamer-plugin error
Thomas I fetched the latest portsnap and it seems I can't compile gstream-plugins either I get the identical error there must be something wrong with this portyou are not alone. I'm on freebsd 7.0 release. I hope they get it fixed soon as I think its a dependancy for both kde and gnome. Tom Sent from my BlackBerry device on the Rogers Wireless Network -Original Message- From: Thomas Hamilton [EMAIL PROTECTED] Date: Sun, 12 Oct 2008 02:53:10 To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Cannot compile kde4 or gnome2 due to gstreamer-plugin error Hi Guys I'm running current(8.0) from last nights cvsup. I cannot however compile kde4 or gnome2-lite due to an error in compiling gstreamer-plugins. It looks like the error is originating from: cc: No input files specified. I look forward to any help you guys might be able to provide me with in resolving the errors so I can install a gui :) Thanks in advance. This is where it errors out: gmake[3]: Entering directory `/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21/tests/icles' /bin/sh /usr/ports/multimedia/gstreamer-plugins/work/gnome-libtool --tag=CC --mode=link cc -O2 -pipe -O2 -fno-strict-aliasing -I/usr/local/include -L/usr/local/lib -pthread -o test-colorkey cc -O2 -pipe -O2 -fno-strict-aliasing -I/usr/local/include -pthread -o test-colorkey -L/usr/local/lib -pthread cc: No input files specified gmake[3]: *** [test-colorkey] Error 1 gmake[3]: Leaving directory `/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21/tests/icles' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21/tests' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/multimedia/gstreamer-plugins. *** Error code 1 Stop in /usr/ports/multimedia/gstreamer-plugins-good. *** Error code 1 Stop in /usr/ports/sysutils/gnome-settings-daemon. *** Error code 1 Stop in /usr/ports/x11/gnome-applets. *** Error code 1 Stop in /usr/ports/x11/gnome2-lite. *** Error code 1 Stop in /usr/ports/x11/gnome2-lite. Configuration details can be found below. laptop# uname -a FreeBSDlaptop.local 8.0-CURRENT FreeBSD 8.0-CURRENT #2: Sat Oct 11 03:21:27 MDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/LAPTOP i386 laptop# cat /etc/make.conf PERL_VER=5.8.8 PERL_VERSION=5.8.8 Installed Ports laptop# pkg_info |awk '{print $1}'|sort appres-1.0.1 bdftopcf-1.0.1 beforelight-1.0.2 bigreqsproto-1.0.2 bison-2.3_4,1 bitmap-1.0.3 bitstream-vera-1.10_4 compositeproto-0.4 consolekit-0.2.10_2 damageproto-1.1.0_2 dbus-1.2.1 dbus-glib-0.76 dmidecode-2.9 dmxproto-2.2.2 docbook-4.1_3 docbook-xml-4.2_1 docbook-xsl-1.74.0 dri-7.0.3_1,2 editres-1.0.3 encodings-1.0.2,1 evieext-1.0.2 expat-2.0.1 fixesproto-4.0 flex-2.5.35 font-adobe-100dpi-1.0.0_1 font-adobe-75dpi-1.0.0 font-adobe-utopia-100dpi-1.0.1 font-adobe-utopia-75dpi-1.0.1 font-adobe-utopia-type1-1.0.1 font-alias-1.0.1 font-arabic-misc-1.0.0 font-bh-100dpi-1.0.0 font-bh-75dpi-1.0.0 font-bh-lucidatypewriter-100dpi-1.0.0 font-bh-lucidatypewriter-75dpi-1.0.0 font-bh-ttf-1.0.0 font-bh-type1-1.0.0 font-bitstream-100dpi-1.0.0 font-bitstream-75dpi-1.0.0 font-bitstream-type1-1.0.0 font-cronyx-cyrillic-1.0.0 font-cursor-misc-1.0.0 font-daewoo-misc-1.0.0 font-dec-misc-1.0.0 font-ibm-type1-1.0.0 font-isas-misc-1.0.0 font-jis-misc-1.0.0 font-micro-misc-1.0.0 font-misc-cyrillic-1.0.0 font-misc-ethiopic-1.0.0 font-misc-meltho-1.0.0_1 font-misc-misc-1.0.0 font-mutt-misc-1.0.0 font-schumacher-misc-1.0.0 font-screen-cyrillic-1.0.1 font-sony-misc-1.0.0 font-sun-misc-1.0.0 font-util-1.0.1 font-winitzki-cyrillic-1.0.0 font-xfree86-type1-1.0.0 fontcacheproto-0.1.2 fontconfig-2.5.0,1 fontsproto-2.0.2 fonttosfnt-1.0.3 freetype2-2.3.7 fslsfonts-1.0.1 fstobdf-1.0.2 gamin-0.1.9_2 gettext-0.17_1 gio-fam-backend-2.16.5 glib-2.16.5 glproto-1.4.8 gmake-3.81_3 gnome_subr-1.0 gstreamer-0.10.21 hal-0.5.11_1 help2man-1.36.4_2 iceauth-1.0.2 ico-1.0.2 inputproto-1.4.2.1 intltool-0.37.1 iso8879-1986_2 kbproto-1.0.3 libFS-1.0.0_1 libGL-7.0.3 libICE-1.0.4_1,1 libSM-1.0.3_1,1 libX11-1.1.3_1,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.4_1,1 libXcomposite-0.4.0,1 libXcursor-1.1.9_1 libXdamage-1.1.1 libXdmcp-1.0.2_1 libXevie-1.0.2 libXext-1.0.3,1 libXfixes-4.0.3_1 libXfont-1.3.1_3,1 libXfontcache-1.0.4 libXft-2.1.13 libXi-1.1.3,1 libXinerama-1.0.2,1 libXmu-1.0.3,1 libXp-1.0.0,1 libXpm-3.5.7 libXprintAppUtil-1.0.1 libXprintUtil-1.0.1 libXrandr-1.2.2_1 libXrender-0.9.4_1 libXres-1.0.3_3 libXt-1.0.5_1 libXtst-1.0.3_1 libXv-1.0.3_1,1 libXvMC-1.0.4_1 libXxf86dga-1.0.2 libXxf86misc-1.0.1 libXxf86vm-1.0.1 libdmx-1.0.2_1 libdrm-2.3.1 libfontenc-1.0.4 libiconv-1.11_1 liboil-0.3.15 liboldX-1.0.1 libtool-1.5.26 libvolume_id-0.81.0 libxkbfile-1.0.4 libxkbui-1.0.2_1 libxml2-2.6.32 libxslt-1.1.24_1
Cannot compile kde4 or gnome2 due to gstreamer-plugin error
Hi Guys I'm running current(8.0) from last nights cvsup. I cannot however compile kde4 or gnome2-lite due to an error in compiling gstreamer-plugins. It looks like the error is originating from: cc: No input files specified. I look forward to any help you guys might be able to provide me with in resolving the errors so I can install a gui :) Thanks in advance. This is where it errors out: gmake[3]: Entering directory `/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21/tests/icles' /bin/sh /usr/ports/multimedia/gstreamer-plugins/work/gnome-libtool --tag=CC --mode=link cc -O2 -pipe -O2 -fno-strict-aliasing -I/usr/local/include -L/usr/local/lib -pthread -o test-colorkey cc -O2 -pipe -O2 -fno-strict-aliasing -I/usr/local/include -pthread -o test-colorkey -L/usr/local/lib -pthread cc: No input files specified gmake[3]: *** [test-colorkey] Error 1 gmake[3]: Leaving directory `/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21/tests/icles' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21/tests' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/multimedia/gstreamer-plugins. *** Error code 1 Stop in /usr/ports/multimedia/gstreamer-plugins-good. *** Error code 1 Stop in /usr/ports/sysutils/gnome-settings-daemon. *** Error code 1 Stop in /usr/ports/x11/gnome-applets. *** Error code 1 Stop in /usr/ports/x11/gnome2-lite. *** Error code 1 Stop in /usr/ports/x11/gnome2-lite. Configuration details can be found below. laptop# uname -a FreeBSDlaptop.local 8.0-CURRENT FreeBSD 8.0-CURRENT #2: Sat Oct 11 03:21:27 MDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/LAPTOP i386 laptop# cat /etc/make.conf PERL_VER=5.8.8 PERL_VERSION=5.8.8 Installed Ports laptop# pkg_info |awk '{print $1}'|sort appres-1.0.1 bdftopcf-1.0.1 beforelight-1.0.2 bigreqsproto-1.0.2 bison-2.3_4,1 bitmap-1.0.3 bitstream-vera-1.10_4 compositeproto-0.4 consolekit-0.2.10_2 damageproto-1.1.0_2 dbus-1.2.1 dbus-glib-0.76 dmidecode-2.9 dmxproto-2.2.2 docbook-4.1_3 docbook-xml-4.2_1 docbook-xsl-1.74.0 dri-7.0.3_1,2 editres-1.0.3 encodings-1.0.2,1 evieext-1.0.2 expat-2.0.1 fixesproto-4.0 flex-2.5.35 font-adobe-100dpi-1.0.0_1 font-adobe-75dpi-1.0.0 font-adobe-utopia-100dpi-1.0.1 font-adobe-utopia-75dpi-1.0.1 font-adobe-utopia-type1-1.0.1 font-alias-1.0.1 font-arabic-misc-1.0.0 font-bh-100dpi-1.0.0 font-bh-75dpi-1.0.0 font-bh-lucidatypewriter-100dpi-1.0.0 font-bh-lucidatypewriter-75dpi-1.0.0 font-bh-ttf-1.0.0 font-bh-type1-1.0.0 font-bitstream-100dpi-1.0.0 font-bitstream-75dpi-1.0.0 font-bitstream-type1-1.0.0 font-cronyx-cyrillic-1.0.0 font-cursor-misc-1.0.0 font-daewoo-misc-1.0.0 font-dec-misc-1.0.0 font-ibm-type1-1.0.0 font-isas-misc-1.0.0 font-jis-misc-1.0.0 font-micro-misc-1.0.0 font-misc-cyrillic-1.0.0 font-misc-ethiopic-1.0.0 font-misc-meltho-1.0.0_1 font-misc-misc-1.0.0 font-mutt-misc-1.0.0 font-schumacher-misc-1.0.0 font-screen-cyrillic-1.0.1 font-sony-misc-1.0.0 font-sun-misc-1.0.0 font-util-1.0.1 font-winitzki-cyrillic-1.0.0 font-xfree86-type1-1.0.0 fontcacheproto-0.1.2 fontconfig-2.5.0,1 fontsproto-2.0.2 fonttosfnt-1.0.3 freetype2-2.3.7 fslsfonts-1.0.1 fstobdf-1.0.2 gamin-0.1.9_2 gettext-0.17_1 gio-fam-backend-2.16.5 glib-2.16.5 glproto-1.4.8 gmake-3.81_3 gnome_subr-1.0 gstreamer-0.10.21 hal-0.5.11_1 help2man-1.36.4_2 iceauth-1.0.2 ico-1.0.2 inputproto-1.4.2.1 intltool-0.37.1 iso8879-1986_2 kbproto-1.0.3 libFS-1.0.0_1 libGL-7.0.3 libICE-1.0.4_1,1 libSM-1.0.3_1,1 libX11-1.1.3_1,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.4_1,1 libXcomposite-0.4.0,1 libXcursor-1.1.9_1 libXdamage-1.1.1 libXdmcp-1.0.2_1 libXevie-1.0.2 libXext-1.0.3,1 libXfixes-4.0.3_1 libXfont-1.3.1_3,1 libXfontcache-1.0.4 libXft-2.1.13 libXi-1.1.3,1 libXinerama-1.0.2,1 libXmu-1.0.3,1 libXp-1.0.0,1 libXpm-3.5.7 libXprintAppUtil-1.0.1 libXprintUtil-1.0.1 libXrandr-1.2.2_1 libXrender-0.9.4_1 libXres-1.0.3_3 libXt-1.0.5_1 libXtst-1.0.3_1 libXv-1.0.3_1,1 libXvMC-1.0.4_1 libXxf86dga-1.0.2 libXxf86misc-1.0.1 libXxf86vm-1.0.1 libdmx-1.0.2_1 libdrm-2.3.1 libfontenc-1.0.4 libiconv-1.11_1 liboil-0.3.15 liboldX-1.0.1 libtool-1.5.26 libvolume_id-0.81.0 libxkbfile-1.0.4 libxkbui-1.0.2_1 libxml2-2.6.32 libxslt-1.1.24_1 listres-1.0.1 luit-1.0.2_2 m4-1.4.11,1 makedepend-1.0.1,1 mkcomposecache-1.2_1 mkfontdir-1.0.3_1 mkfontscale-1.0.3 oclock-1.0.1 p5-Compress-Raw-Zlib-2.015 p5-Compress-Zlib-2.015 p5-HTML-Parser-3.56_1 p5-HTML-Tagset-3.20 p5-HTML-Tree-3.23 p5-IO-Compress-Base-2.015 p5-IO-Compress-Zlib-2.015 p5-Net-DBus-0.33.6 p5-Text-Iconv-1.7 p5-Tie-IxHash-1.21 p5-Time-HiRes-1.9715,1 p5-URI-1.37 p5-XML-Filter-BufferText-1.01 p5-XML-Grove-0.46.a p5-XML-Handler-YAWriter-0.23 p5-XML-NamespaceSupport-1.09_1 p5-XML-Parser-2.36 p5-XML-SAX-0.96 p5-XML-SAX-Expat-0.40 p5-XML-SAX-Writer-0.50 p5-XML-Simple-2.18
pam_ldap pam_password crypt option doesn't work...?
Hi, I'm trying to authenticate users from OpenLDAP. In LDAP userPassword fields are crypted. So I'm trying to use pam_password crypt option in ldap.conf. But in LDAP log the the password data from pam_ldap module always is in clear text. What could be wrong? Thanks in advance. ldap.conf host *host* base ou=people,dc=boun.edu.tr,o=BU ldap_version 3 binddn cn=root,o=BU bindpw *password* port 389 timelimit 30 bind_timelimit 30 pam_login_attribute uid pam_password crypt Service conf file authrequired/usr/local/lib/pam_ldap.so try_first_pass I also tryed use_mapped_pass option, but it didn't worked. LDAP log ldap_read: want=60, got=60 : 01 03 04 2c 75 69 64 3d 74 65 73 74 2e 74 65 73 ...,uid=test.tes 0010: 74 31 2c 6f 75 3d 70 65 6f 70 6c 65 2c 64 63 3d t1,ou=people,dc= 0020: 62 6f 75 6e 2e 65 64 75 2e 74 72 2c 6f 3d 42 55 boun.edu.tr,o=BU 0030: 80 0a 79 61 67 6c 69 65 6b 6d 65 6b ..yagliekmek [clear text password] ber_get_next: tag 0x30 len 66 contents: pam_ldap version is 1.8.4 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Gvinum Auto recovery.
I'm making a script to manage my raid.This is what my script is doing to recover my raid. umount /dev/gvinum/r5 #remove the raid gvinum rm -r d0 gvinum rm -r d1 gvinum rm -r d2 gvinum rm -r d3 gvinum rm r5.p0.s$1 bsdlabel -w /dev/da$1 gvinum create myraid.conf gvinum setstate -f stale r5.p0.s$1 gvinum start r5 fsck -t ufs /dev/gvinum/r5 #myraid.conf drive d0 device /dev/da0 drive d1 device /dev/da1 drive d2 device /dev/da2 drive d3 device /dev/da3 volume r5 plex org raid5 512k sd drive d0 sd drive d1 sd drive d2 sd drive d3 Is this the way that I should be recovering my raid? With hot swap do I have to do the same for SCSI and SATA, or gvinum will auto detected? I notice that when I change my hard disk around gvinum stop working. I'm planning to reserved the last sector of the harddisk to record the the ordering of the harddisk. In case it move around the myraid.conf can be reconfigure. Using bsdlabel, and dd to record the information. # /dev/da0: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 208879 16unused0 0 b:1 208895unused0 0 c: 2088960unused0 0 # raw part, don't edit Thanks, Cong ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mailman + Apache + Cookies + FreeBSD
Jeff, are you running apache with Suexec? If so I would realy like to expand in this with you. -Grant - Original Message - From: Jeffrey Goldberg [EMAIL PROTECTED] To: Odhiambo Washington [EMAIL PROTECTED] Cc: Grant Peel [EMAIL PROTECTED]; freebsd-questions@freebsd.org Sent: Saturday, October 11, 2008 11:10 PM Subject: Re: Mailman + Apache + Cookies + FreeBSD On Oct 10, 2008, at 1:45 AM, Odhiambo Washington wrote: Could you downgrade Mailman and see if the problem still persists? I run the combination you have (except Mailman is 2.1.9 and FreeBSD is 6.3) and I haven't had an issue. Might be a bug introduced in Mailman 2.1.11 I'm running mailman 2.1.11 (installed from ports) without the described problem. So in at least one case, Apache, FreeBSD and Mailman 2.1.11 work without exhibiting the described problem. -j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
IAX2 (or SIP) softphone for FreeBSD
anyone know something good. good=simply, works well, preferably no or minimal GUI. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Xorg/kde startup errors
What is your xorg.new.conf file? It's in the root directory. Here is my screen resolution from the above file Section Screen Identifier Screen0 Device Card0 MonitorMonitor0 SubSection Display Viewport 0 0 Depth 1 Modes 640x480 800x600 1024x768 1280x1024 EndSubSection SubSection Display Viewport 0 0 Depth 4 Modes 640x480 800x600 1024x768 1280x1024 EndSubSection SubSection Display Viewport 0 0 Depth 8 Modes 640x480 800x600 1024x768 1280x1024 EndSubSection SubSection Display Viewport 0 0 Depth 15 Modes 640x480 800x600 1024x768 1280x1024 EndSubSection SubSection Display Viewport 0 0 Depth 16 Modes 640x480 800x600 1024x768 1280x1024 EndSubSection SubSection Display Viewport 0 0 Depth 24 Modes 640x480 800x600 1024x768 1280x1024 EndSubSection EndSection You'll need to use vi to edit the file. typevi /root/xorg.conf.new in the terminal as root. Use the down arrow to move to the depth subsection of the screen section. Hit the escape key then the letter i. Hit the right arrow until. I'm going touse Modes 600x800 1024x768 :w! :q! *** My xorg.new.conf file did not have any mode statements. I added them but it made no difference. Still get the same errors as posted in original msg. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: The disc in your drive looks more like an Audio CD than a FreeBSDrelease
I checked it and everything looks just fine, e.g. just Freebsd install files and nothing else. On Tue, 2008-10-07 at 18:42 +0800, joeb wrote: Yea I would say your burn of the .iso file to your cd did not work. Mount the cd and see if it contains a directory tree of Freebsd install files or mp3 files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, October 06, 2008 7:07 PM To: freebsd-questions@freebsd.org Subject: The disc in your drive looks more like an Audio CD than a FreeBSDrelease Hi there. I tried to install 7.1-BETA from the CD I burned from 7.1-BETA-i386-disc1.iso, but after I created all the partitions etc and then selected to install, I get the following error message: The disc in your drive looks more like an Audio CD than a FreeBSD release Any idea what's wrong? -- Kiffin Gish [EMAIL PROTECTED] Gouda, The Netherlands ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freebsd7 kde4 performance
One thing I am curious of is if you're running i386 FreeBSD, or another architecture (amd64, ia64, etc?) I'm running 7.0 stable with ULE scheduler on i386 architecture (since it's Pentium M). I've tried to use kde4 out of the box (after compilation). Whole kde is running poorly. I have to wait seconds for any action to complete (right mouse button, moving windows, moving widgets, etc), so, as you can imagine, I'm not that patient to tweak any settings while using kde4. Now I see that many of you are using nvidia binary drivers, maybe this is the answer why my kde4 is running so slow. if you have the free space you could try pcbsd7 to see what some extra work can do for it. someone recommended it earlier, rather than the straight upstream stock port (whatever that means) the nvidia driver did make much difference for me ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The disc in your drive looks more like an Audio CD than a FreeBSDrelease
On Sun, Oct 12, 2008 at 04:51:54PM +0200, Kiffin wrote: I checked it and everything looks just fine, e.g. just Freebsd install files and nothing else. It's very possible that the disc burning software you used did something incorrectly, or did something custom. What program burnt the CD? If a UNIX program, what flags did you give it? On Tue, 2008-10-07 at 18:42 +0800, joeb wrote: Yea I would say your burn of the .iso file to your cd did not work. Mount the cd and see if it contains a directory tree of Freebsd install files or mp3 files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, October 06, 2008 7:07 PM To: freebsd-questions@freebsd.org Subject: The disc in your drive looks more like an Audio CD than a FreeBSDrelease Hi there. I tried to install 7.1-BETA from the CD I burned from 7.1-BETA-i386-disc1.iso, but after I created all the partitions etc and then selected to install, I get the following error message: The disc in your drive looks more like an Audio CD than a FreeBSD release Any idea what's wrong? -- Kiffin Gish [EMAIL PROTECTED] Gouda, The Netherlands ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Can tcsh report 'command had no output'?
Can I force tcsh to say previous command returned empty stdout or something? I often cut and paste shell output for my cow-orkers, and it's crucial to note when a command returns nothing. Currently, I insert the information manually: ls | fgrep 'phrase' [no results] but it'd be nice if tcsh had a setting to do this automatically? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot compile kde4 or gnome2 due to gstreamer-plugin error
[EMAIL PROTECTED] wrote: Thomas I fetched the latest portsnap and it seems I can't compile gstream-plugins either I get the identical error there must be something wrong with this portyou are not alone. I'm on freebsd 7.0 release. I hope they get it fixed soon as I think its a dependancy for both kde and gnome. Tom Sent from my BlackBerry device on the Rogers Wireless Network -Original Message- From: Thomas Hamilton [EMAIL PROTECTED] Date: Sun, 12 Oct 2008 02:53:10 To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Cannot compile kde4 or gnome2 due to gstreamer-plugin error Hi Guys I'm running current(8.0) from last nights cvsup. I cannot however compile kde4 or gnome2-lite due to an error in compiling gstreamer-plugins. It looks like the error is originating from: cc: No input files specified. I look forward to any help you guys might be able to provide me with in resolving the errors so I can install a gui :) Thanks in advance. snip This should be fixed now. Thanks for reporting. -Koop ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: libncurses.so.6
Hello... I have some time ago an issue with libncurses and openssl... I resolved things using the libncures (/usr/lib/libncurses.so) and ssl (/usr/lib/libssl.so) from the system, and I have never had problems since then. solution: I remove the package ncurses and openssl. and use the libraries from the system and have never had problems since. for those packages that insist in ncurses.so.6 and ssl I fixed it in /etc/libmap.conf libncurses.so.6 libncurses.so Hope this helps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The disc in your drive looks more like an Audio CD than a FreeBSDrelease
I rechecked the discs with a verify tool using the original iso files and nothing is wrong with the discs. On Sun, 2008-10-12 at 08:01 -0700, Jeremy Chadwick wrote: On Sun, Oct 12, 2008 at 04:51:54PM +0200, Kiffin wrote: I checked it and everything looks just fine, e.g. just Freebsd install files and nothing else. It's very possible that the disc burning software you used did something incorrectly, or did something custom. What program burnt the CD? If a UNIX program, what flags did you give it? On Tue, 2008-10-07 at 18:42 +0800, joeb wrote: Yea I would say your burn of the .iso file to your cd did not work. Mount the cd and see if it contains a directory tree of Freebsd install files or mp3 files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, October 06, 2008 7:07 PM To: freebsd-questions@freebsd.org Subject: The disc in your drive looks more like an Audio CD than a FreeBSDrelease Hi there. I tried to install 7.1-BETA from the CD I burned from 7.1-BETA-i386-disc1.iso, but after I created all the partitions etc and then selected to install, I get the following error message: The disc in your drive looks more like an Audio CD than a FreeBSD release Any idea what's wrong? -- Kiffin Gish [EMAIL PROTECTED] Gouda, The Netherlands ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newsyslog naming scheme could be improved?
On Sat 2008-10-11 14:58:39 UTC-0400, Garance A Drosehn ([EMAIL PROTECTED]) wrote: It would be bad to change the default behavior, but there have been several people who wished for some option for newsyslog which would make it use some alternate naming scheme. There's at least one PR about it, for instance. It is on my list of things to do, but I've had a long stretch of time where I have too many things on that list. I wouldn't go for a naming scheme that's as long as the above suggestion, though. Perhaps newsyslog could support filenames in strftime(3) format, eg. /var/log/messages.%Y-%m-%d I think the format of newsyslog.conf might need to change to allow that though, breaking compatibility... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Installation Hangs
Hello, I am trying to install FreeBSD. During the install (actually at the beginning of the process) the system hangs indefinitely. When it gets to the select country screen...it is frozen. During the boot process, as it is reading all the hardware, it finds the USB controller OK then later it states there was an IO error and that the USB controller is halted. I have a USB Keyboard and mouse...so I would say the problem is here. Is there any workaround I can use to get things going? Thanks, ton80 -- View this message in context: http://www.nabble.com/Installation-Hangs-tp19944068p19944068.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The disc in your drive looks more like an Audio CD than a FreeBSDrelease
On Sun, Oct 12, 2008 at 07:36:37PM +0200, Kiffin wrote: I rechecked the discs with a verify tool using the original iso files and nothing is wrong with the discs. A couple comments: 1) This isn't telling me anything. For all I know the verify tool only compares ISO file contents to what's on a disc -- that probably will return success. You need to realise there's a *lot* of information in the ISO header which defines the type of disc it is, and types of extensions it supports (Joliet, Red Ridge, etc.). And the burning software has to properly know how to use those bits, otherwise it can do the wrong thing. 2) Some older CD drives apparently report FreeBSD discs as Audio CDs (even inside of Windows). I've seen this happen once in my life, but I was not trying to install FreeBSD (I was just inserting the disc into a Windows PC to see what was on it). The below thread is of a fellow running into the same problem: and his issue turned out to be a very old/unreliable CD drive, which he likely (eventually) replaced. He resorted to installing off of another machine over the network, but you get the point: http://forums.devshed.com/bsd-help-31/freebsd-installation-fails-when-looking-for-media-45366.html On Sun, 2008-10-12 at 08:01 -0700, Jeremy Chadwick wrote: On Sun, Oct 12, 2008 at 04:51:54PM +0200, Kiffin wrote: I checked it and everything looks just fine, e.g. just Freebsd install files and nothing else. It's very possible that the disc burning software you used did something incorrectly, or did something custom. What program burnt the CD? If a UNIX program, what flags did you give it? On Tue, 2008-10-07 at 18:42 +0800, joeb wrote: Yea I would say your burn of the .iso file to your cd did not work. Mount the cd and see if it contains a directory tree of Freebsd install files or mp3 files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, October 06, 2008 7:07 PM To: freebsd-questions@freebsd.org Subject: The disc in your drive looks more like an Audio CD than a FreeBSDrelease Hi there. I tried to install 7.1-BETA from the CD I burned from 7.1-BETA-i386-disc1.iso, but after I created all the partitions etc and then selected to install, I get the following error message: The disc in your drive looks more like an Audio CD than a FreeBSD release Any idea what's wrong? -- Kiffin Gish [EMAIL PROTECTED] Gouda, The Netherlands ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Installation Hangs
On Sun, Oct 12, 2008 at 10:54:26AM -0700, ton80 wrote: Hello, I am trying to install FreeBSD. During the install (actually at the beginning of the process) the system hangs indefinitely. When it gets to the select country screen...it is frozen. During the boot process, as it is reading all the hardware, it finds the USB controller OK then later it states there was an IO error and that the USB controller is halted. I have a USB Keyboard and mouse...so I would say the problem is here. Is there any workaround I can use to get things going? I'm inclined to believe the installation isn't hung, but rather that FreeBSD isn't properly working with your USB keyboard (this is very likely, given the state of USB on FreeBSD -- work is underway on CURRENT to fix these problems), so you think the installation is hung, but in reality it's just waiting for a keypress. The only workaround I can think of would be to get a PS/2 keyboard and use that. Chances are even if you get the OS installed, you probably won't be able to type at the console (with the USB keyboard). :-) And please remember that on many systems you should reboot the system after plugging in or removing a PS/2 keyboard; hot-swapping only works on some motherboards. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Installation Hangs
Jeremy Chadwick-3 wrote: On Sun, Oct 12, 2008 at 10:54:26AM -0700, ton80 wrote: Hello, I am trying to install FreeBSD. During the install (actually at the beginning of the process) the system hangs indefinitely. When it gets to the select country screen...it is frozen. During the boot process, as it is reading all the hardware, it finds the USB controller OK then later it states there was an IO error and that the USB controller is halted. I have a USB Keyboard and mouse...so I would say the problem is here. Is there any workaround I can use to get things going? I'm inclined to believe the installation isn't hung, but rather that FreeBSD isn't properly working with your USB keyboard (this is very likely, given the state of USB on FreeBSD -- work is underway on CURRENT to fix these problems), so you think the installation is hung, but in reality it's just waiting for a keypress. The only workaround I can think of would be to get a PS/2 keyboard and use that. Chances are even if you get the OS installed, you probably won't be able to type at the console (with the USB keyboard). :-) And please remember that on many systems you should reboot the system after plugging in or removing a PS/2 keyboard; hot-swapping only works on some motherboards. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Ah...if only it were that easy! My system does not have PS2 connectors...only USB. So if I cannot get the USB workingI cannot use FreeBSD. Would OpenBSD give me the same problems I wonder? Thanks, ton80 -- View this message in context: http://www.nabble.com/Installation-Hangs-tp19944068p19944188.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Installation Hangs
On Sun, Oct 12, 2008 at 11:08:50AM -0700, ton80 wrote: Jeremy Chadwick-3 wrote: On Sun, Oct 12, 2008 at 10:54:26AM -0700, ton80 wrote: Hello, I am trying to install FreeBSD. During the install (actually at the beginning of the process) the system hangs indefinitely. When it gets to the select country screen...it is frozen. During the boot process, as it is reading all the hardware, it finds the USB controller OK then later it states there was an IO error and that the USB controller is halted. I have a USB Keyboard and mouse...so I would say the problem is here. Is there any workaround I can use to get things going? I'm inclined to believe the installation isn't hung, but rather that FreeBSD isn't properly working with your USB keyboard (this is very likely, given the state of USB on FreeBSD -- work is underway on CURRENT to fix these problems), so you think the installation is hung, but in reality it's just waiting for a keypress. The only workaround I can think of would be to get a PS/2 keyboard and use that. Chances are even if you get the OS installed, you probably won't be able to type at the console (with the USB keyboard). :-) And please remember that on many systems you should reboot the system after plugging in or removing a PS/2 keyboard; hot-swapping only works on some motherboards. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Ah...if only it were that easy! My system does not have PS2 connectors...only USB. So if I cannot get the USB workingI cannot use FreeBSD. In this case, correct. Would OpenBSD give me the same problems I wonder? I don't know what the state of OpenBSD's USB stack is, and the last time I encountered NetBSD's USB stack was 7 years ago (not so pleasant results). -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The disc in your drive looks more like an Audio CD than a FreeBSDrelease
Thanks for the prompt response. However, I have a brand-new ASUS X59XL notebook so the CD drive isn't old. Could it be that the CD drive is too new and not recognized properly bt FreeBSD rather than too old? On Sun, 2008-10-12 at 10:58 -0700, Jeremy Chadwick wrote: On Sun, Oct 12, 2008 at 07:36:37PM +0200, Kiffin wrote: I rechecked the discs with a verify tool using the original iso files and nothing is wrong with the discs. A couple comments: 1) This isn't telling me anything. For all I know the verify tool only compares ISO file contents to what's on a disc -- that probably will return success. You need to realise there's a *lot* of information in the ISO header which defines the type of disc it is, and types of extensions it supports (Joliet, Red Ridge, etc.). And the burning software has to properly know how to use those bits, otherwise it can do the wrong thing. 2) Some older CD drives apparently report FreeBSD discs as Audio CDs (even inside of Windows). I've seen this happen once in my life, but I was not trying to install FreeBSD (I was just inserting the disc into a Windows PC to see what was on it). The below thread is of a fellow running into the same problem: and his issue turned out to be a very old/unreliable CD drive, which he likely (eventually) replaced. He resorted to installing off of another machine over the network, but you get the point: http://forums.devshed.com/bsd-help-31/freebsd-installation-fails-when-looking-for-media-45366.html On Sun, 2008-10-12 at 08:01 -0700, Jeremy Chadwick wrote: On Sun, Oct 12, 2008 at 04:51:54PM +0200, Kiffin wrote: I checked it and everything looks just fine, e.g. just Freebsd install files and nothing else. It's very possible that the disc burning software you used did something incorrectly, or did something custom. What program burnt the CD? If a UNIX program, what flags did you give it? On Tue, 2008-10-07 at 18:42 +0800, joeb wrote: Yea I would say your burn of the .iso file to your cd did not work. Mount the cd and see if it contains a directory tree of Freebsd install files or mp3 files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, October 06, 2008 7:07 PM To: freebsd-questions@freebsd.org Subject: The disc in your drive looks more like an Audio CD than a FreeBSDrelease Hi there. I tried to install 7.1-BETA from the CD I burned from 7.1-BETA-i386-disc1.iso, but after I created all the partitions etc and then selected to install, I get the following error message: The disc in your drive looks more like an Audio CD than a FreeBSD release Any idea what's wrong? -- Kiffin Gish [EMAIL PROTECTED] Gouda, The Netherlands ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
fail with wireless network configuration with SIOCS80211: Invalid argument
Hello. I am trying to get an AboveCable (model: ACPC 2000-01) wireless card connected to my home network with 40-bit Hex WEP Encryption on FreeBSD 6.1. # ifconfig wi0 inet 192.168.1.90 ssid ZWW wepmode on wepkey 0xea82552825 ifconfig: SIOCS80211: Invalid argument Did I made anything wrong or miss something in the kernel? I have the related lines in kernel: driver wi driver wlan AboveCable wireless card uses PRIMSA II which is supported by driver wi. The same card is tested working fine on the same network on Ubuntu Linux (without needing of firmware or NDIS Wrapper) dmesg is attached. # ifconfig -a plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff00 wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet6 fe80::260:b3ff:fe73:3f4f%wi0 prefixlen 64 scopeid 0x3 ether 00:60:b3:73:3f:4f media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: no carrier ssid ZWW channel 1 stationname FreeBSD WaveLAN/IEEE node authmode OPEN privacy ON deftxkey 1 txpowmax 100 bintval 100 Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-RELEASE #0: Thu Jul 5 12:26:43 CST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/QUASIMODO Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Pentium/P55C (quarter-micron) (232.11-MHz 586-class CPU) Origin = GenuineIntel Id = 0x581 Stepping = 1 Features=0x8001bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX real memory = 100466688 (95 MB) avail memory = 88723456 (84 MB) Intel Pentium detected, installing workaround for F00F bug kbd1 at kbdmux0 cpu0 on motherboard pcib0: Host to PCI bridge pcibus 0 on motherboard pir0: PCI Interrupt Routing Table: 4 Entries on motherboard pci0: PCI bus on pcib0 cbb0: TI1250 PCI-CardBus Bridge mem 0x20822000-0x20822fff at device 2.0 on pci0 pccard0: 16-bit PCCard bus on cbb0 cbb1: TI1250 PCI-CardBus Bridge mem 0x20821000-0x20821fff at device 2.1 on pci0 pccard1: 16-bit PCCard bus on cbb1 pci0: display, VGA at device 3.0 (no driver attached) isab0: PCI-ISA bridge at device 6.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel PIIX4 UDMA33 controller port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 6.1 on pci0 ata0: ATA channel 0 on atapci0 ata1: ATA channel 1 on atapci0 uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0x9000-0x901f irq 11 at device 6.2 on pci0 uhci0: [GIANT-LOCKED] usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: bridge at device 6.3 (no driver attached) pmtimer0 on isa0 orm0: ISA Option ROM at iomem 0xc-0xc9fff on isa0 atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0 atkbd0: AT Keyboard irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 fdc0: Enhanced floppy controller at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: 1440-KB 3.5 drive on fdc0 drive 0 ppc0: Parallel port at port 0x3bc-0x3c3 irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: Parallel port bus on ppc0 plip0: PLIP network interface on ppbus0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio2: configured irq 5 not in bitmap of probed irqs 0 sio2: port may not be enabled sio3: configured irq 9 not in bitmap of probed irqs 0 sio3: port may not be enabled vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 unknown: PNP0303 can't assign resources (port) unknown: PNP0f13 can't assign resources (irq) unknown: PNP0700 can't assign resources (port) unknown: PNP0c02 can't assign resources (memory) unknown: PNP0400 can't assign resources (port) pcm0: CS423x at port 0x530-0x537,0x388-0x38b,0x220-0x233 irq 5 drq 1,0 on isa0 pcm0: [GIANT-LOCKED] unknown: IBM0071 can't assign resources (port) unknown: PNP0e03 can't assign resources (port) Timecounter TSC frequency 232106515 Hz quality 800 Timecounters tick every 1.000 msec wi0: AboveCable ACPC2000-11 at port 0x100-0x13f irq 10 function 0 config 1 on pccard1 wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.A wi0: Intersil Firmware: Primary (0.3.0), Station (0.8.3) wi0: Ethernet address: 00:60:b3:73:3f:4f ad0: 3102MB IBM DTCA-23240 TC5OAB1A at ata0-master UDMA33 acd0: CDROM SANYO CRD-S372B/1.24F at ata0-slave PIO3 Trying to mount root from
Re: The disc in your drive looks more like an Audio CD than a FreeBSDrelease
On Sun, Oct 12, 2008 at 08:23:51PM +0200, Kiffin wrote: Thanks for the prompt response. However, I have a brand-new ASUS X59XL notebook so the CD drive isn't old. Could it be that the CD drive is too new and not recognized properly bt FreeBSD rather than too old? 1) There's nothing special about the FreeBSD CDs. They are Mode 1 discs, and do not use anything like Joliet filesystem extensions (so that MS-DOS can see all the filenames in 8.3 format). 2) The age of the CD drive has nothing to do with what sort of extensions and capabilities it has. I should have been more precise when I gave you facts talking about old CD drives -- it's likely that fellow's Teac CD drive has a buggy firmware, and it's highly possible that your Asus laptop has the same problem. 3) ATAPI is ATAPI; FreeBSD does not have CD drive-specific drivers. It would be much more likely that FreeBSD wouldn't find the CD at all (or any hard disks, etc.) due to the ATA controller not being supported. Yours appears supported, otherwise FreeBSD wouldn't even know the *type* of disc. I would recommend you contact Asus Support and ask them to burn an ISO of FreeBSD and try to install it on that laptop, to reproduce your problem. If they can reproduce it, they should be able to figure out what's causing the issue; if they can't, then it may be a problem with your laptop specifically. P.S. -- This audio CD problem goes all the way back to FreeBSD 2.2.6 or earlier. It's not a new problem, but it's very rare. Because of this fact, I strongly doubt the problem is with FreeBSD, and rather with buggy firmwares in CD drives. On Sun, 2008-10-12 at 10:58 -0700, Jeremy Chadwick wrote: On Sun, Oct 12, 2008 at 07:36:37PM +0200, Kiffin wrote: I rechecked the discs with a verify tool using the original iso files and nothing is wrong with the discs. A couple comments: 1) This isn't telling me anything. For all I know the verify tool only compares ISO file contents to what's on a disc -- that probably will return success. You need to realise there's a *lot* of information in the ISO header which defines the type of disc it is, and types of extensions it supports (Joliet, Red Ridge, etc.). And the burning software has to properly know how to use those bits, otherwise it can do the wrong thing. 2) Some older CD drives apparently report FreeBSD discs as Audio CDs (even inside of Windows). I've seen this happen once in my life, but I was not trying to install FreeBSD (I was just inserting the disc into a Windows PC to see what was on it). The below thread is of a fellow running into the same problem: and his issue turned out to be a very old/unreliable CD drive, which he likely (eventually) replaced. He resorted to installing off of another machine over the network, but you get the point: http://forums.devshed.com/bsd-help-31/freebsd-installation-fails-when-looking-for-media-45366.html On Sun, 2008-10-12 at 08:01 -0700, Jeremy Chadwick wrote: On Sun, Oct 12, 2008 at 04:51:54PM +0200, Kiffin wrote: I checked it and everything looks just fine, e.g. just Freebsd install files and nothing else. It's very possible that the disc burning software you used did something incorrectly, or did something custom. What program burnt the CD? If a UNIX program, what flags did you give it? On Tue, 2008-10-07 at 18:42 +0800, joeb wrote: Yea I would say your burn of the .iso file to your cd did not work. Mount the cd and see if it contains a directory tree of Freebsd install files or mp3 files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, October 06, 2008 7:07 PM To: freebsd-questions@freebsd.org Subject: The disc in your drive looks more like an Audio CD than a FreeBSDrelease Hi there. I tried to install 7.1-BETA from the CD I burned from 7.1-BETA-i386-disc1.iso, but after I created all the partitions etc and then selected to install, I get the following error message: The disc in your drive looks more like an Audio CD than a FreeBSD release Any idea what's wrong? -- Kiffin Gish [EMAIL PROTECTED] Gouda, The Netherlands ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] -- Kiffin [EMAIL PROTECTED] -- |
carp not working after upgrade
Dear List, i have a FreeBSD 7-release cluster firewall using carp for the public IP addresses. Last evening i've upgraded the firewalls to 7-release-p5 and after that carp stopped working. Do you have any suggestions? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: The disc in your drive looks more like an Audio CD than aFreeBSDrelease
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kiffin Sent: Sunday, October 12, 2008 11:24 AM To: Jeremy Chadwick Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org Subject: Re: The disc in your drive looks more like an Audio CD than aFreeBSDrelease Thanks for the prompt response. However, I have a brand-new ASUS X59XL notebook so the CD drive isn't old. Could it be that the CD drive is too new and not recognized properly bt FreeBSD rather than too old? Kiffin, I assume that your booting off the CDC on the laptop? If so I doubt that the CD is burned incorrectly. If you want to check if the burn is correct on the CD then go to another machine and boot and install FBSD on it with your CD. In any case, we really cannot support CD burning software that isn't running on FreeBSD here and it is IMHO a distraction to even discuss it. I suspect a bug in the FreeBSD atapi driver, or a bug in the notebook CD drive firmware. What you need to do is boot from your CD, then select a FTP server as the install server during the installation and install FreeBSD. Then try to mount a standard data CD under FreeBSD in the laptop and see if it understands it. If that works then install the cd burning tools from the FreeBSD ports and try to burn a CD. If that works then we can assume that the Windows/DOS whatever burning tools you used are crap - which doesen't matter since your just using that crap to bootstrap into FreeBSD anyway. Right? Ted PS I strongly suspect once you get FreeBSD loaded you will not be able to mount off-the-shelf data CD's in your laptop's CD drive. If this is so we really need for you to file a PR on this. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Installation Hangs
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ton80 Sent: Sunday, October 12, 2008 10:54 AM To: freebsd-questions@freebsd.org Subject: Installation Hangs Hello, I am trying to install FreeBSD. During the install (actually at the beginning of the process) the system hangs indefinitely. When it gets to the select country screen...it is frozen. During the boot process, as it is reading all the hardware, it finds the USB controller OK then later it states there was an IO error and that the USB controller is halted. I have a USB Keyboard and mouse...so I would say the problem is here. Is there any workaround I can use to get things going? Yes, you can remove the hard disk, put it in a different machine, install FreeBSD on it, then move the disk back. You could always try installing with JUST the USB keyboard or with a -different- USB keyboard. I would suspect that if you stick in a Linux Ubuntu install CD and it also fails to detect keyboard and mouse, that you will get more traction with your machine hardware manufacturer when reporting a problem. Hopefully your system is a new one within the 30 day return window and you can return it and get a different one. One last thing - it might be possible that your machine motherboard has a port for a standard keyboard, with a header on the motherboard, and it just isn't brought out the back of the machine. Please also post the make and model of the motherboard in use so we know what to avoid here. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Installation Hangs
Yes, you can remove the hard disk, put it in a different machine, install FreeBSD on it, then move the disk back. At that point, if you don't need a graphical console, then a serial console might be a good work-around option. http://www.freebsd.org/doc/en/books/handbook/serialconsole-setup.html for more info. - mdh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: IAX2 (or SIP) softphone for FreeBSD
On Sun, 12 Oct 2008 16:23:54 +0200 (CEST) Wojciech Puchar [EMAIL PROTECTED] wrote: anyone know something good. good=simply, works well, preferably no or minimal GUI. The most reliable is 'net/ekiga'. I've run into problems with 'net/kiax' and crossing NAT. That was nearly two years ago so it may have been fixed. 'net/twinkle' works for some people, but for me it has always core dumped. If you feel like rolling your own, their is 'net/p5-Net-SIP'. signature.asc Description: PGP signature
Re: Need help installing on SATA
On 10 Oct 2008 at 22:08, Brian wrote: Conrad J. Sabatier wrote: Does anyone know the magic incantation that will permit me to install FreeBSD on this new machine of mine (nVidia chipset, SATA1 disk controller)? I've been trying for a week or so now, with no luck. Just out of curiosity, I downloaded and ran Ubuntu 8.x, and it recognized all of my hardware automatically. The FreeBSD installer (both in 7.x and 8.x), though, can't find my hard drive or CD-ROM. [snip] Can u not get thru the install, or do you have issues afterwards? I make it thru the install ok, but when I upgrade to stable, I have problems due to numbering changes. I'd suggest using google or the freebsd website to search for your motherboard model and some other search terms. You'll probably be told to check the supported hw list to start with. No, the install process breaks down when I go to the disk partitioning screen, as no useable disks are being found at all. I'll try to gather more detailed info on my hardware and try asking again. Also will try 7.1-BETA, although I'm rather pessimistic since I've already tried the latest CURRENT snapshot with the same results. :-( Conrad ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RAID migration
Dear freebsd-questions, I have a HighPoint 1820 RAID controller that is using 1 channel for an OS drive and 3 channels for a RAID-5 array. I'm interested in migrating to a new (possibly non-HighPoint) card, and am wondering if I will be able to plug the OS drive into one channel on the new card and have it just work. Is it a safe bet that it will? I'm curious to know if the array could be migrated just as easily, or if I should listen to my instinct and count on bumping into incompatibilities due to proprietary implementations. Here are the relevant dmesg lines of my system as it stands: hptrr: HPT RocketRAID controller driver v1.1 (Jun 7 2008 14:01:57) hptmv0: RocketRAID 182x SATA Controller mem 0xf200-0xf207 irq 24 at device 1.0 on pci2 hptmv0: [GIANT-LOCKED] hptmv0: [ITHREAD] hptrr: no controller detected. da0 at hptmv0 bus 0 target 0 lun 0 da0: Maxtor 6 Y080M0 YAR5 Fixed Direct Access SCSI-0 device da1 at hptmv0 bus 0 target 1 lun 0 da1: RR182x RAID 5 Array 3.00 Fixed Direct Access SCSI-0 device -- Anthony Chavez http://hexadecagram.org/ mailto:[EMAIL PROTECTED]xmpp:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RAID migration
On Sun, Oct 12, 2008 at 07:10:31PM -0600, Anthony Chavez wrote: Dear freebsd-questions, I have a HighPoint 1820 RAID controller that is using 1 channel for an OS drive and 3 channels for a RAID-5 array. I'm interested in migrating to a new (possibly non-HighPoint) card, and am wondering if I will be able to plug the OS drive into one channel on the new card and have it just work. Is it a safe bet that it will? It probably will work, assuming that the OS disk is not configured as a RAID or array member in the RAID cards' BIOS. Meaning, if you're using the disk on the controller purely in a JBOD fashion, yes, it should work. I'm curious to know if the array could be migrated just as easily, or if I should listen to my instinct and count on bumping into incompatibilities due to proprietary implementations. I can absolutely guarantee you that you will lose access to all of your data once you plug those 3 disks into another controller. You need to back up all of your data from the RAID-5 array using something like rsync, cpdup, or dump, move the disks over to the non-RAID controller, format them (in whatever fashion you want), and then restore the backup. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RAID migration
Jeremy Chadwick wrote: On Sun, Oct 12, 2008 at 07:10:31PM -0600, Anthony Chavez wrote: Dear freebsd-questions, I have a HighPoint 1820 RAID controller that is using 1 channel for an OS drive and 3 channels for a RAID-5 array. I'm interested in migrating to a new (possibly non-HighPoint) card, and am wondering if I will be able to plug the OS drive into one channel on the new card and have it just work. Is it a safe bet that it will? It probably will work, assuming that the OS disk is not configured as a RAID or array member in the RAID cards' BIOS. Meaning, if you're using the disk on the controller purely in a JBOD fashion, yes, it should work. In the WebGUI's logical device information section, that particular drive is listed as a hard disk whereas the other 3 are clearly spelled out as a RAID 5 array. When I shut the machine down, I will check the BIOS itself to see if it specifically states JBOD. Thanks for the pointer. Regardless, I will be backing it up before I attempt to plug it into a new RAID controller. I'm curious to know if the array could be migrated just as easily, or if I should listen to my instinct and count on bumping into incompatibilities due to proprietary implementations. I can absolutely guarantee you that you will lose access to all of your data once you plug those 3 disks into another controller. You need to back up all of your data from the RAID-5 array using something like rsync, cpdup, or dump, move the disks over to the non-RAID controller, format them (in whatever fashion you want), and then restore the backup. Exactly what I planned to do, but figured I'd ask anyhow. ;-) Thank you for responding. -- Anthony Chavez http://hexadecagram.org/ mailto:[EMAIL PROTECTED]xmpp:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RAID migration
On Sun, Oct 12, 2008 at 10:27:47PM -0600, Anthony Chavez wrote: Jeremy Chadwick wrote: On Sun, Oct 12, 2008 at 07:10:31PM -0600, Anthony Chavez wrote: Dear freebsd-questions, I have a HighPoint 1820 RAID controller that is using 1 channel for an OS drive and 3 channels for a RAID-5 array. I'm interested in migrating to a new (possibly non-HighPoint) card, and am wondering if I will be able to plug the OS drive into one channel on the new card and have it just work. Is it a safe bet that it will? It probably will work, assuming that the OS disk is not configured as a RAID or array member in the RAID cards' BIOS. Meaning, if you're using the disk on the controller purely in a JBOD fashion, yes, it should work. In the WebGUI's logical device information section, that particular drive is listed as a hard disk whereas the other 3 are clearly spelled out as a RAID 5 array. When I shut the machine down, I will check the BIOS itself to see if it specifically states JBOD. Thanks for the pointer. It probably won't. JBOD is just a term used to describe a hard disk hooked to a RAID controller but not part of a RAID array. I'd start by pulling the OS disk out and hooking it to a non-Highpoint controller and ensure it boots. Chances are it will. Some advice, assuming you haven't done this before: 1) Make note of what your filesystem layout is before migrating. df output should be sufficient. 2) When you boot it, FreeBSD will probably complain unable to determine root filesystem. I'm guessing these are ATA/SATA disks. The kernel messages shown should list off what ATA disks are attached, and you'll have to make some educated guesses as to what it is, e.g. ufs:ad4s1a rather than the old ufs:da0s1a. You'll have to mount all the filesystems by hand (mount /dev/ad4s1d /var, etc. -- this is what #1 was for :-) ) so you can get access to vi, so you can vi /etc/fstab and fix the problem. You can also use ed(1) to do the fstab editing without having to mount everything, if you're familiar with it. Hope this helps. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Installation Hangs
On Sun, 2008-10-12 at 10:54 -0700, ton80 wrote: Hello, I am trying to install FreeBSD. During the install (actually at the beginning of the process) the system hangs indefinitely. When it gets to the select country screen...it is frozen. During the boot process, as it is reading all the hardware, it finds the USB controller OK then later it states there was an IO error and that the USB controller is halted. I have a USB Keyboard and mouse...so I would say the problem is here. Is there any workaround I can use to get things going? Thanks, ton80 I currently have to attach my USB k/b and mouse via a USB hub, rather than directly to the USB ports on this PC. I'm using a cheap no-name hub here at the moment and it has done the job so far. See if attaching via a hub improves things if you can. Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: rsync or even scp questions....
On Sun, Oct 12, 2008 at 09:42:38AM +0100, Matthew Seaman wrote: mdh wrote: --- On Sat, 10/11/08, Gary Kline [EMAIL PROTECTED] wrote: On the Ubuntu computer I am /home/kline; on my main computer, my home is /usr/home/kline. The following sh script worked perfected when my home on tao [FBSD] was /home/kline: P #!/bin/sh PWD=`pwd`; echo This directory is [${PWD}]; scp -qrp ${PWD}/* ethos:/${PWD} ###/usr/bin/scp -rqp -i /home/kline/.ssh/zeropasswd-id ${PWD}/* \ klin [EMAIL PROTECTED]:/${PWD} Question #1: is there any /bin/sh method of getting rid of the /usr? I switch off between my two computers especially when get mucked up, as with my upgrade to kde4. (Otherwise, I do backups of ~kline as well as other critical directories.) Is there a way of automatically using rsync rather that my kwik-and-dirty /bin/shell script? thanks, people, gary If what you wish to do is simply get rid of /usr in a string, you can use sed like so: varWithoutUsr=`echo ${varWithUsr} |sed -e 's/\/usr//'` After running this, where $varWithUsr is the variable containing a string like /usr/home/blah, the variable $varWithoutUsr will be equal to /home/blah. I create simple scripts like this all the time to rename batches of files, for example. The easier way is probably just to not specify a dir to scp's remote path though, since it defaults to the user's home directory. Or, in anything resembling Bourne shell: varWithoutUsr=${varWithUsr#/usr} I'll be damrned! It works--I've used the zsh for almost 20 years; it's a ksh clone++. How, may I ask, does this work? (I've seen ksh chopping from the RHS; I wrote a short C util to axe any part of a string, but have never seen *this* voodoo. LOL++) In any event, merci infiniement! gary PS: this will save my rsync scripts too. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: rsync or even scp questions....
On Sun, Oct 12, 2008 at 01:49:31AM -0700, Jeremy Chadwick wrote: On Sun, Oct 12, 2008 at 09:42:38AM +0100, Matthew Seaman wrote: mdh wrote: --- On Sat, 10/11/08, Gary Kline [EMAIL PROTECTED] wrote: On the Ubuntu computer I am /home/kline; on my main computer, my home is /usr/home/kline. The following sh script worked perfected when my home on tao [FBSD] was /home/kline: P #!/bin/sh PWD=`pwd`; echo This directory is [${PWD}]; scp -qrp ${PWD}/* ethos:/${PWD} ###/usr/bin/scp -rqp -i /home/kline/.ssh/zeropasswd-id ${PWD}/* \ klin [EMAIL PROTECTED]:/${PWD} Question #1: is there any /bin/sh method of getting rid of the /usr? I switch off between my two computers especially when get mucked up, as with my upgrade to kde4. (Otherwise, I do backups of ~kline as well as other critical directories.) Is there a way of automatically using rsync rather that my kwik-and-dirty /bin/shell script? thanks, people, gary If what you wish to do is simply get rid of /usr in a string, you can use sed like so: varWithoutUsr=`echo ${varWithUsr} |sed -e 's/\/usr//'` After running this, where $varWithUsr is the variable containing a string like /usr/home/blah, the variable $varWithoutUsr will be equal to /home/blah. I create simple scripts like this all the time to rename batches of files, for example. The easier way is probably just to not specify a dir to scp's remote path though, since it defaults to the user's home directory. Or, in anything resembling Bourne shell: varWithoutUsr=${varWithUsr#/usr} And I'll take a moment to recommend Matthew's method, since it does not involve fork()ing an additional process. When writing shell scripts in general, it's best if you can avoid spawning external processes for things which can be done easily (keyword: easily!) within Bourne natively. There's no harm in doing it for more complex things, but fork() is somewhat expensive, and try to imagine what will happen to those scripts if the system lacks process table space, etc... :-) Best to try and make everything self-contained if possible. right; esp'ly since i'll be running at least two scripts daily-- at a min. besides, the simpler /bin/sh script is something i use to save code or prose just in case the sky falls! ah, no wonder this is the best list in the {known} universe -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]