Re: .sh check for numeric content

2010-06-24 Thread Jerry
On Wed, 23 Jun 2010 23:32:57 -0400 (EDT) Karl Vogel vogelke+u...@pobox.com articulated: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to A contain numeric values. How do I code a test to verify the A

Problem using Portmaster to upgrade installed ports via packages only

2010-06-24 Thread Alexandre L.
Hi, On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool to upgrade my ports via packages only. Then I added the following line to my user's .cshrc file and root's .cshrc file, and re-opened user's session : setenv PACKAGESITE

FreeBSD and UDF DVD/CDrom

2010-06-24 Thread M. Vale
Hi, I'm trying to install Windows 7 on Virtualbox for testing, but the W7 is a DVD in UDF format. On this computer booting gentoo and ubuntu I can mount the DVD without any problem, but on FreeBSD 8.0 after kldloading udf and trying to mount udf using: mount_udf /dev/acd0t0s1 /cdrom or mount -t

Re: .sh check for numeric content

2010-06-24 Thread Thomas
On Thu, Jun 24, 2010 at 12:52:48PM +0800, Aiza wrote: Hello, But when I tried this format [ expr ${dup_times} : [0-9]*$ ] || echo value is not numeric I get the error message no mater what the value is. What am I doing wrong? Even if [ at first glance seems like a special syntax of the

Re: .sh check for numeric content

2010-06-24 Thread RW
On Thu, 24 Jun 2010 05:19:53 +0200 Thomas Keusch f...@bsd-solutions-duesseldorf.de wrote: t...@eternity:~$ b=5 t...@eternity:~$ case $b in [0-9] ) echo numeric ;; * ) echo alpha ;; esac numeric t...@eternity:~$ Works for me. Now try it

Re: FreeBSD and UDF DVD/CDrom

2010-06-24 Thread Derek Funk
On 6/24/2010 5:06 AM, M. Vale wrote: Hi, I'm trying to install Windows 7 on Virtualbox for testing, but the W7 is a DVD in UDF format. On this computer booting gentoo and ubuntu I can mount the DVD without any problem, but on FreeBSD 8.0 after kldloading udf and trying to mount udf using:

Re: .sh check for numeric content

2010-06-24 Thread Thomas
On Thu, Jun 24, 2010 at 12:31:13PM +0200, Thomas wrote: Hello, Even if [ at first glance seems like a special syntax of the shell, it really is just an alternative name or way of calling test(1): $ ls -l $(which test [) -rwxr-xr-x 1 root root 42584 2009-10-06 13:07 /usr/bin/[ -rwxr-xr-x 1

Virtualization with USB on Freebsd 8

2010-06-24 Thread stephan
Good morning/afternoon/evening, Do you know of any virtualisation solution that would allow USB devices when using Freebsd-8 as host ? We do indeed have virtualbox-OSE, but without USB support Basically I would use that to fire-up a WinXP session allowing my to sync various USB devices that

Re: .sh check for numeric content

2010-06-24 Thread Thomas Keusch
On Thu, Jun 24, 2010 at 11:58:05AM +0100, RW wrote: On Thu, 24 Jun 2010 05:19:53 +0200 Thomas Keusch f...@bsd-solutions-duesseldorf.de wrote: t...@eternity:~$ b=5 t...@eternity:~$ case $b in [0-9] ) echo numeric ;; * ) echo alpha ;;

i386 wine on amd64 - DRI a lost cause?

2010-06-24 Thread xorquewasp
I have a full i386 tree installed at /jail/wine (ignore the 'jail' in the name, I'll run it as a plain chroot if necessary) created with 'make buildworld TARGET=i386'. I've built and installed wine into the jail/chroot and it works fine. The problem: I can't get any kind of DRI to work in the

Re: FreeBSD and UDF DVD/CDrom

2010-06-24 Thread Bruce Cran
On Thursday 24 June 2010 11:06:59 M. Vale wrote: So my question is is possible to mount an UDF disk on FreeBSD or is me that is doing something wrong ? FreeBSD doesn't support the most recent UDF specification which is why it won't work -- Bruce Cran

Re: Problem using Portmaster to upgrade installed ports via packages only

2010-06-24 Thread b. f.
Hi, On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool to upgrade my ports via packages only. Then I added the following line to my user's .cshrc file and root's .cshrc file, and re-opened user's session : setenv PACKAGESITE

Re: .sh check for numeric content

2010-06-24 Thread RW
On Thu, 24 Jun 2010 13:50:14 +0200 Thomas Keusch f...@bsd-solutions-duesseldorf.de wrote: 10 is not valid input according to the problem/pseudocode (in the forum) that the above code was posted as a solution for. And if you were answering in that forum that would be a good point.

Re: FreeBSD and UDF DVD/CDrom

2010-06-24 Thread Mikle Krutov
Why do you want to mount your Windows DVD image? Why not using /dev/cd0 in your VirtualBox? P.s. Bruce, sorry for doubled mail, did not see that i haven't sent it to the mailing list till the last moment. 2010/6/24, Bruce Cran br...@cran.org.uk: On Thursday 24 June 2010 11:06:59 M. Vale wrote:

Re: i386 wine on amd64 - DRI a lost cause?

2010-06-24 Thread Mikle Krutov
You need 32bit libGL and all mesa stuff to have dri with i386 apps on amd64 system. Also i've used http://msnp.ru/file/wine-fbsd64.zip port, not the by-hand-way while using amd64. Worked for me on both radeon and nvidia card. 2010/6/24, xorquew...@googlemail.com xorquew...@googlemail.com: I have

Re: X11 problem

2010-06-24 Thread Jack L.
On Tue, Jun 22, 2010 at 12:00 PM, Maciej Suszko mac...@suszko.eu wrote: Gary Kline kl...@thought.org wrote: guys, what do i need to rebuild to fix this problem to get X working on my server:: ethic# startx xauth:  creating new authority file /root/.serverauth.1054 /libexec/ld-elf.so.1:

Re: Virtualization with USB on Freebsd 8

2010-06-24 Thread Chip Camden
On Jun 24 18:58, step...@theched.org wrote: Good morning/afternoon/evening, Do you know of any virtualisation solution that would allow USB devices when using Freebsd-8 as host ? We do indeed have virtualbox-OSE, but without USB support Basically I would use that to fire-up a WinXP

Re: .sh check for numeric content

2010-06-24 Thread Chip Camden
On Jun 24 05:08, Jerry wrote: On Wed, 23 Jun 2010 23:32:57 -0400 (EDT) Karl Vogel vogelke+u...@pobox.com articulated: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to A contain numeric values.

Re: Virtualization with USB on Freebsd 8

2010-06-24 Thread Jorge Medina
On Thu, Jun 24, 2010 at 6:58 AM, step...@theched.org wrote: Good morning/afternoon/evening, Do you know of any virtualisation solution that would allow USB devices when using Freebsd-8 as host ? We do indeed have virtualbox-OSE, but without USB support Basically I would use that to

Re: .sh check for numeric content

2010-06-24 Thread Jerry
On Thu, 24 Jun 2010 09:14:39 -0700 Chip Camden sterl...@camdensoftware.com articulated: [snip] That [[:digit:]] pattern only works if your shell supports POSIX character classes in the case statement. I use Bash myself. I am not sure what other shells support this context. In any case, I

Re: .sh check for numeric content

2010-06-24 Thread Carl Johnson
vogelke+u...@pobox.com (Karl Vogel) writes: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to contain A numeric values. How do I code a test to verify the content is numeric? The script below will work

Re: Problem running fdisk via sysinstall

2010-06-24 Thread Mark Costlow
Nick, that worked! I zero'd the whole disk, then everything worked like normal. Thanks, Mark On Wed, Jun 23, 2010 at 07:15:13PM -0600, Mark Costlow wrote: Since I don't have any other ideas yet, I'll give that a try. I'll let you know if it works tomorrow if it has finished by then :-)

Re: Problem running fdisk via sysinstall

2010-06-24 Thread Mark Costlow
On Wed, Jun 23, 2010 at 11:17:50PM -0500, Adam Vande More wrote: On Wed, Jun 23, 2010 at 6:28 PM, Mark Costlow [1]che...@swcp.com wrote: I hope this question isn't too stupid. Any hints or clue-by-fours? What's the output of 'gpart show'? Zeroing the whole drive

Re: Problem running fdisk via sysinstall

2010-06-24 Thread Nicholas Mills
Excellent, I'm glad everything worked out. It may have been a leftover secondary GPT. From g_part_gpt.c: /* No primary? Check that there's a secondary. */ buf = g_read_data(cp, pp-mediasize - pp-sectorsize, pp-sectorsize, error); This would seem to suggest that the secondary GPT is stored in the

Re: .sh check for numeric content

2010-06-24 Thread Carl Johnson
Carl Johnson ca...@peak.org writes: vogelke+u...@pobox.com (Karl Vogel) writes: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to contain A numeric values. How do I code a test to verify the content is

Re: .sh check for numeric content

2010-06-24 Thread Carl Johnson
Carl Johnson ca...@peak.org writes: Carl Johnson ca...@peak.org writes: vogelke+u...@pobox.com (Karl Vogel) writes: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable from the command line that is suppose to contain A numeric values. How do I code

Re: check for numeric content in a shell script (FreeBSD sh)

2010-06-24 Thread parv
in message 87d3vgmj1s@cjlinux.localnet, wrote Carl Johnson thusly... Carl Johnson ca...@peak.org writes: Carl Johnson ca...@peak.org writes: vogelke+u...@pobox.com (Karl Vogel) writes: On Thu, 24 Jun 2010 09:24:39 +0800, Aiza aiz...@comclark.com said: A Receiving a variable

Re: check for numeric content in a shell script (FreeBSD sh)

2010-06-24 Thread Parv
in message 20100624183407.ga49...@holstein.holy.cow, wrote p...@pair.com thusly... # Matches a number, either positive (without '+' sign) or # negative, which is either a whole number; or a real number # ending with decimal point, or a real number with or without # leading digits before

Problem with system install with Toshiba MK2565GSX SATA disk

2010-06-24 Thread bsd
Hello, I am trying to install a toshiba HD on an appliance, the Toshiba is a MK2565GSX of 250GB described here:http://www3.toshiba.co.jp/storage/english/spec/hdd25/65.htm#spec02 The system I am trying to install is pfSense (FBSD 7.2). I am not a 100% sure about the disk geometry… as It is

sudo last login message and how to turn it off FreeBSD8.0

2010-06-24 Thread Martin McCormick
I have actually seen this on some FreeBSD6.3 systems and thought it was a querk. It may still be a querk but it has started again on an 8.0 system. I think I am doing something to cause it, but I am not sure. When one executes a sudo command, I get a last login message which reflects the

Cannot start smartd on Quantum drive

2010-06-24 Thread Doug Sampson
Hello, Running FreeBSD 8.0. I cloned using 'dump' a very old and failing Fujitsu drive that was mounted as /dev/ad0 to a Quantum drive that was mounted at the time of dumping as /dev/ad3. I used the method of cloning described in http://forums.freebsd.org/showthread.php?t=11680. There is a

Re: sudo last login message and how to turn it off FreeBSD8.0

2010-06-24 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/06/2010 19:41:04, Martin McCormick wrote: When one executes a sudo command, I get a last login message which reflects the last time I ran sudo. Example: Any ideas as to what to look at? /usr/local/etc/pam.d/sudo probably. The

Re: check for numeric content in a shell script (FreeBSD sh)

2010-06-24 Thread Chip Camden
On Jun 24 08:39, Parv wrote: in message 20100624183407.ga49...@holstein.holy.cow, wrote p...@pair.com thusly... # Matches a number, either positive (without '+' sign) or # negative, which is either a whole number; or a real number # ending with decimal point, or a real number with or

disk controllers - FreeBSD

2010-06-24 Thread Mariangela Meirelles
Dear FreeBSD Support Dept., I'm buying a Dell PowerEdge R210 server to install FreeBSD. The server may have the following disk controllers: - PERC H200 (6 Gb/s) OR - SAS6iR (6 Gb/s) I wonder if the disk drive controllers are compatible with FreeBSD? Thanks in advance for your

Re: sharing code between the various *BSDs

2010-06-24 Thread Alexander Best
On Tue, Jun 22, 2010 at 12:13 AM, Chris Rees utis...@gmail.com wrote: Politics... too bad politics get in the way of progress. :( Sorry for top-posting, Android won't let me quote. There's a bug report on it! On 21 Jun 2010 23:12, Alexander Best alexbes...@uni-muenster.de wrote: hi

since when did alt-shift-tab quit working?

2010-06-24 Thread Steve Franks
I thought it was the kludged state of my desktop, but the 8-release server I just brought up fresh yesterday is doing it too: alt-tab works, alt-shift-tab does not. For those of us who are not into gnome/kde/cutesy menus panels, this is a major PITA. No doubt it came in from linux-land with the

Re: .sh check for numeric content

2010-06-24 Thread Aiza
Jerry wrote: On Thu, 24 Jun 2010 09:14:39 -0700 Chip Camden sterl...@camdensoftware.com articulated: [snip] That [[:digit:]] pattern only works if your shell supports POSIX character classes in the case statement. I use Bash myself. I am not sure what other shells support this context. In

Re: .sh check for numeric content

2010-06-24 Thread Jerry
On Fri, 25 Jun 2010 05:17:17 +0800 Aiza aiz...@comclark.com articulated: Jerry wrote: On Thu, 24 Jun 2010 09:14:39 -0700 Chip Camden sterl...@camdensoftware.com articulated: [snip] That [[:digit:]] pattern only works if your shell supports POSIX character classes in the case

Re: since when did alt-shift-tab quit working?

2010-06-24 Thread Chip Camden
On Jun 24 14:17, Steve Franks wrote: I thought it was the kludged state of my desktop, but the 8-release server I just brought up fresh yesterday is doing it too: alt-tab works, alt-shift-tab does not. For those of us who are not into gnome/kde/cutesy menus panels, this is a major PITA. No

Re: disk controllers - FreeBSD

2010-06-24 Thread Jorge Medina
I have PERC and works fine! On Thu, Jun 24, 2010 at 2:56 PM, Mariangela Meirelles mariang...@mundo.com.br wrote: Dear FreeBSD Support Dept., I'm buying a Dell PowerEdge R210 server to install FreeBSD. The server may have the following disk controllers: - PERC H200 (6 Gb/s) OR -

Re: Problem using Portmaster to upgrade installed ports via packages only

2010-06-24 Thread Doug Barton
On 06/24/10 06:10, b. f. wrote: Hi, On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool to upgrade my ports via packages only. Then I added the following line to my user's .cshrc file and root's .cshrc file, and re-opened user's session : setenv PACKAGESITE

Re: since when did alt-shift-tab quit working?

2010-06-24 Thread Warren Block
On Thu, 24 Jun 2010, Steve Franks wrote: I thought it was the kludged state of my desktop, but the 8-release server I just brought up fresh yesterday is doing it too: alt-tab works, alt-shift-tab does not. What, exactly, do you mean by does not work? It works here by moving backward through

Re: i386 wine on amd64 - DRI a lost cause?

2010-06-24 Thread xorquewasp
On 2010-06-24 18:57:35, Mikle Krutov wrote: You need 32bit libGL and all mesa stuff to have dri with i386 apps on amd64 system. Also i've used http://msnp.ru/file/wine-fbsd64.zip port, not the by-hand-way while using amd64. Worked for me on both radeon and nvidia card. Yes, I have those.

Icelandic FTP server doesn't work? I don't think it's been up for a while?

2010-06-24 Thread Svavar Ingi Hermannsson
Hi, I just wanted to notify you that the Icelandic ftp mirror site doesn't seam to be working. ftp.is.freebsd.org Best regards, Svavar Ingi -- Bestu kveðjur / Best regards, Svavar Ingi Hermannsson, Ráðgjafi - Senior Consultant BSc. CS, LA 27001, CISA, CISM, SCSA, MCP sva...@security.is

pkg_add

2010-06-24 Thread Fbsd1
I checked the pkg_add manpage for where does pkg_add look for the named pkg distribution file? It says the env PKG_PATH holds it but env command does not show that variable. Is it /usr/packages or /usr/ports/packages? How can I see the value of PKG_PATH? What is the path of where the pkg

Re: pkg_add

2010-06-24 Thread zaxis
uname -a FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27 15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL i386 echo $PKG_PATH PKG_PATH: Undefined variable. cat .cshrc |grep -i package setenv PACKAGESITE

Re: pkg_add

2010-06-24 Thread Glen Barber
On 6/24/10 9:01 PM, zaxis wrote: uname -a FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27 15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL i386 echo $PKG_PATH PKG_PATH: Undefined variable. cat .cshrc |grep -i package setenv

Is it appropriate to mount /var and /usr on ext2fs partition ?

2010-06-24 Thread zaxis
df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ad4s3a496M119M337M26%/ devfs 1.0K1.0K 0B 100%/dev /dev/ad4s3e496M6.7M449M 1%/tmp /dev/ad4s3f 14G7.8G5.4G59%/usr /dev/ad4s3d1.4G171M

Re: pkg_add

2010-06-24 Thread Fbsd1
Glen Barber wrote: On 6/24/10 9:01 PM, zaxis wrote: uname -a FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27 15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL i386 echo $PKG_PATH PKG_PATH: Undefined variable. cat .cshrc |grep -i

Re: sudo last login message and how to turn it off FreeBSD8.0

2010-06-24 Thread Anh Ky Huynh
On Thu, 24 Jun 2010 13:41:04 -0500 Martin McCormick mar...@dc.cis.okstate.edu wrote: I have actually seen this on some FreeBSD6.3 systems and thought it was a querk. It may still be a querk but it has started again on an 8.0 system. I think I am doing something to cause it, but I am not sure.

Re: pkg_add

2010-06-24 Thread Glen Barber
On 6/24/10 9:49 PM, Fbsd1 wrote: Glen Barber wrote: Using the above FTP URL, PKG_PATH will look for ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/ Regards, No I am not looking for the remote path to fetch the package distribution file from. When doing pkg_add

Re: pkg_add

2010-06-24 Thread Glen Barber
On 6/24/10 10:02 PM, Glen Barber wrote: On 6/24/10 9:49 PM, Fbsd1 wrote: Glen Barber wrote: Using the above FTP URL, PKG_PATH will look for ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/ Regards, No I am not looking for the remote path to fetch the package

Re: check for numeric content in a shell script (FreeBSD sh)

2010-06-24 Thread Carl Johnson
p...@pair.com writes: if expr $arg : [1-9]*\.\{0,1\}[0-9]*$ /dev/null That regex considers . a number but not 0.9 (this one seems to be due to typo) nor a negative number. I had been pointing out an error in the regular expression that someone else had posted, but I obviously didn't do

Re: .sh check for numeric content

2010-06-24 Thread Chad Perrin
On Thu, Jun 24, 2010 at 05:51:20PM -0400, Jerry wrote: In any case, as I previously posted, it was left up to the OP to decide if the proposed solution was suitable for their needs. After reading all of the babble concerning what should be a relatively easy operation, perhaps the OP might

Re: Problem with system install with Toshiba MK2565GSX SATA disk

2010-06-24 Thread bsd
Looks like the problem was related to BIOS setting. I have changed the setting of disk detection from AUTO to LBA and this has allowed me to boot on the disk. One more question: With the disk I am using FBSD seems to have two possibility for the partition table size (or at least depending