RE: Problems getting my Huawei 0x140b USB modem to speak to internet

2013-06-30 Thread Manish Jain
Thanks for your help. But before I attempt disabling the cdrom, I would like to 
mention that I can already see the following devices (with corresponding .init 
and .lock files) :

cuaU0.0
cuaU0.1
cuaU0.2
cuau0

I am almost certain that cuaU0.0 is the modem. I will try disabling the the 
cdrom and then switch mode.

Thanks again 
Regards

Manish Jain

From: odhia...@gmail.com
Date: Sun, 30 Jun 2013 11:45:11 +0300
Subject: Re: Problems getting my Huawei 0x140b USB modem to speak to internet
To: bourne.ident...@hotmail.com

Hi Manish,

I seem to have missed the name - Huawei, sorry for that.

Anyway, this should be easy to resolve - I suppose.

With the virtual cd-rom (da0) presenting itself, FreeBSD will assume the modem 
is simply a mass storage device and leave it at that. You need to disable the 
virtual cd-rom in order to use the modem.


Use Hyperterminal or putty or minicom (does it still exist?) to disable it.
Here are the AT commands to do that:

1. To disable; AT^U2DIAG=0
2. To re-enable: AT^U2DIAG=1

After disabling, you should be able to see a device node for the modem - 
/dev/cuaU0.0 or something. They may be two devices or three. One of them is the 
modem



And here is a ppp.conf which you can use - just change the APN (safaricom) to 
your provider's APN, change authname/authkey and also change the device to what 
you'll have gotten from /dev/



Hope that helps!


u3g:
 set device /dev/cuaU0.0
 set server /var/run/3g-internet  0177
 set speed 921600
 set timeout 0


 set authname saf
 set authkey data
 set dial ABORT BUSY ABORT NO\\sTIMEOUT 2 \
   \\ \
   AT OK-AT-OK \
   AT+CFUN=1 OK-AT-OK \
   AT+CMEE=2 OK-AT-OK \
   AT+CSQ OK \


   AT+CGDCONT=1,\\\IP\\\,\\\safaricom\\\ OK \
   ATD*99# CONNECT
 set crtscts on
 disable vjcomp
 disable acfcomp
 disable deflate
 disable deflate24
 disable pred1


 disable protocomp
 disable mppe
 disable ipv6cp
 disable lqr
 disable echo
 #nat enable yes
 enable dns
 resolv writable
 set dns 8.8.8.8
 set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0


 add default HISADDR  # See ppp.link*




On 30 June 2013 01:00, Manish Jain bourne.ident...@hotmail.com wrote:


Hi,



I thought the manufacturer name was mentioned in the original message : Huawei 
(0x12d1). Underneath is an extract from /var/log/messages :



Jun 29 23:03:57 bourne kernel: u3g0: Found 3 ports.

Jun 29 23:03:57 bourne kernel: umass0: HUAWEI TECHNOLOGIES HUAWEI Mobile, 
class 0/0, rev 1.10/0.00, addr 2 on usbus1

Jun 29 23:03:57 bourne kernel: umass0:  SCSI over Bulk-Only; quirks = 0x

Jun 29 23:03:57 bourne kernel: umass0:0:0:-1: Attached to scbus0

Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 
0 0 0 0 0 0

Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): CAM status: SCSI 
Status Error

Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): SCSI status: Check 
Condition

Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): SCSI sense: UNIT 
ATTENTION asc:28,0 (Not ready to ready change, medium may have changed)

Jun 29 23:03:57 bourne kernel: cd0 at umass-sim0 bus 0 scbus0 target 0 lun 0

Jun 29 23:03:57 bourne kernel: cd0: HUAWEI Mass Storage 2.31 Removable CD-ROM 
SCSI-0 device

Jun 29 23:03:57 bourne kernel: cd0: 1.000MB/s transfers

Jun 29 23:03:57 bourne kernel: cd0: cd present [52352 x 2048 byte records]

Jun 29 23:03:57 bourne kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 1

Jun 29 23:03:57 bourne kernel: da0: HUAWEI SD Storage 2.31 Removable Direct 
Access SCSI-2 device

Jun 29 23:03:57 bourne kernel: da0: 1.000MB/s transfers

Jun 29 23:03:57 bourne kernel: da0: 7580MB (15523840 512 byte sectors: 255H 
63S/T 966C)





Regards,



Manish Jain

+91-88064-38388



On 30-Jun-13 00:41, Odhiambo Washington wrote:


What is the manufacturer/model of the modem?



Is it detected by FreeBSD? Please show the /var/log/message entry for it.

I have never heard of usb_modeswitch.conf in FreeBSD!







On 29 June 2013 20:53, Manish Jain bourne.ident...@hotmail.com

mailto:bourne.ident...@hotmail.com wrote:



Hello All,



I have a a Huawei USB modem (product id 0x140b) which is connected

to my PC. I downloaded and installed Draisberghof's usb_modeswitch.



The following are the contents of my /etc/usb_modeswitch.conf :



DisableSwitching=0

EnableLogging=1

DefaultVendor=0x12d1

DefaultProduct=0x140b

TargetVendor=0x12d1

TargetProduct=0x1446

CheckSuccess=20

MessageEndpoint=0x0f


MessageContent=__555342431234567800__1106200100__00



When I run usb_modeswitch -c /etc/usb_modeswitch.conf, I get the

following message :



Looking for target devices ...

  No devices in target mode or class found

Looking for default devices ...

found matching product ID

adding device

  Found device in default mode, class or configuration (1)

Accessing device 010 on bus 000

Re: Problems getting my Huawei 0x140b USB modem to speak to internet

2013-06-30 Thread Manish Jain

Hello Odhiambo/All,

I installed and ran minicom. There are 2 devices which are possible 
candidates as the modem : cuaU0.0 and cuaU0.2


I symlinked modem to each of the 2 devices and ran minicom. With both 
devices, the AT command returns OK, but AT^U2DIAG=0 returns COMMAND NOT 
SUPPORT


Any tips on what to do next ?


Thanks 
Regards,

Manish Jain
+91-88064-38388

On 30-Jun-13 17:30, freebsd-questions-requ...@freebsd.org wrote:

Send freebsd-questions mailing list submissions to
freebsd-questions@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-questions-requ...@freebsd.org

You can reach the person managing the list at
freebsd-questions-ow...@freebsd.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of freebsd-questions digest...


Today's Topics:

1. question, following error Shared object libc.so.6 not
   found, required by fortune (Rev Herbert Miller)
2. Re: question, following error Shared object libc.so.6 not
   found, required by fortune (Polytropon)
3. ALT key problem with Virtual Box? (Scott Ballantyne)
4. Re: ALT key problem with Virtual Box? (Polytropon)
5. Problems getting my Huawei 0x140b USB modem to speak to
   internet (Manish Jain)
6. Re: ALT key problem with Virtual Box? (Scott Ballantyne)
7. Baker Invites freebsd-questions@freebsd.org to spend holiday
   in Goa (John Baker)
8.  (Upali Kulasekara)
9. Re: your mail (Daniel Feenberg)
   10. RE: Problems getting my Huawei 0x140b USB modem to speak to
   internet (Manish Jain)
   11. Re: Problems getting my Huawei 0x140b USB modem to speak to
   internet (Odhiambo Washington)


--

Message: 1
Date: Sat, 29 Jun 2013 10:48:38 -0400
From: Rev Herbert Miller herbertmil...@me.com
To: questi...@freebsd.org
Subject: question, following error Shared object libc.so.6 not
found, required by fortune
Message-ID: 650f01ca-f62f-49e7-957f-9bfdc06d6...@me.com
Content-Type: text/plain; charset=us-ascii

I was trying to use the content management system for our website.  I needed to 
restart on terminal but I keep coming up with the following error:  I don't 
know programing at all, so don't know if this is something I can fix.


Shared object libc.so.6 not found, required by fortune

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
root@psumc:/usr/local/tomcat5.5 # bin/startup.sh
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
root@psumc:/usr/local/tomcat5.5 # su -c 'killall -9 java'

--

Message: 2
Date: Sat, 29 Jun 2013 17:58:31 +0200
From: Polytropon free...@edvax.de
To: Rev Herbert Miller herbertmil...@me.com
Cc: questi...@freebsd.org
Subject: Re: question, following error Shared object libc.so.6 not
found, required by fortune
Message-ID: 20130629175831.b2bf7fcb.free...@edvax.de
Content-Type: text/plain; charset=US-ASCII

On Sat, 29 Jun 2013 10:48:38 -0400, Rev Herbert Miller wrote:

I was trying to use the content management system for our website.
I needed to restart on terminal but I keep coming up with the
following error:  I don't know programing at all, so don't know
if this is something I can fix.


In worst case, notify your system administrator.




Shared object libc.so.6 not found, required by fortune


This kind of error often indicates an incomplete system update
were libraries are out of date or missing. What way of system
update has been performed?




root@psumc:/usr/local/tomcat5.5 # bin/startup.sh
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program


That can be a side effect, maybe some accidentally overwritten
configuration file or a program that's unable to run due to a
missing dependency?

What happens if you manually define those variables to the proper
valies and try again, e. g.

# setenv JAVA_HOME=/usr/local/where your JAVA stuff is
# setenv JRE_HOME=/usr/local/where your runtime lives
# bin/startup,sh

Does this produce a different result?




root@psumc:/usr/local/tomcat5.5 # su -c 'killall -9 java'


That command doesn't make sense. The prompt indicates that you
are already root. The -c parameter for the su command is missing
an argument, the class. See man su for details, no programming
knowledge required. ;-)



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr

Re: Problems getting my Huawei 0x140b USB modem to speak to internet

2013-06-30 Thread Manish Jain


Hello Odhiambo/All,

I seem to have made some progress but final success still eludes me. 
With modem symlinked to cuaU0.0, this is what happens is minicom :


AT^GETPORTMODE
^GETPORTMODE:TYPE:EV-DO:Qualcomm,MDM:0,DIAG:1,PCUI:2,CDROM:3

OK
AT^SETPORT=A1;1,2,3
COMMAND NOT SUPPORT

AT^GETPORTMODE succeeds, but with AT^U2DIAG/AT^SETPORT I get COMMAND 
NOT SUPPORT. So how to disable the CD mode and make FreeBSD treat it 
purely as a modem ? Some of the commands the modem supports (as reported 
by Windows' device manager) are as follows :


ATQ0V1E0 - OK
AT+GMM - EC156
AT+FCLASS=? - 0,2.0
AT#CLS=? - COMMAND NOT SUPPORT
   ^HRSSILVL:80
   ^HDRRSSI: 31
   ^HRSSILVL:60
   ^HDRRSSI: 31


Thanks for any help.

Regards,

Manish Jain
+91-88064-38388

On 30-Jun-13 19:41, Odhiambo Washington wrote:

Hi Manish,

If you have a Windows PC, use putty.exe and point the config to the COM
port on which the modem is detected to be attached to.
That's how I do it, unfortunately.



On 30 June 2013 16:51, Manish Jain bourne.ident...@hotmail.com
mailto:bourne.ident...@hotmail.com wrote:

Hello Odhiambo/All,

I installed and ran minicom. There are 2 devices which are possible
candidates as the modem : cuaU0.0 and cuaU0.2

I symlinked modem to each of the 2 devices and ran minicom. With
both devices, the AT command returns OK, but AT^U2DIAG=0 returns
COMMAND NOT SUPPORT

Any tips on what to do next ?


Thanks 
Regards,

Manish Jain
+91-88064-38388

On 30-Jun-13 17:30, freebsd-questions-request@__freebsd.org
mailto:freebsd-questions-requ...@freebsd.org wrote:

Send freebsd-questions mailing list submissions to
freebsd-questions@freebsd.org mailto:freebsd-questions@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/__mailman/listinfo/freebsd-__questions
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-questions-request@__freebsd.org
mailto:freebsd-questions-requ...@freebsd.org

You can reach the person managing the list at
freebsd-questions-owner@__freebsd.org
mailto:freebsd-questions-ow...@freebsd.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of freebsd-questions digest...


Today's Topics:

 1. question, following error Shared object libc.so.6 not
found, required by fortune (Rev Herbert Miller)
 2. Re: question, following error Shared object libc.so.6 not
found, required by fortune (Polytropon)
 3. ALT key problem with Virtual Box? (Scott Ballantyne)
 4. Re: ALT key problem with Virtual Box? (Polytropon)
 5. Problems getting my Huawei 0x140b USB modem to speak to
internet (Manish Jain)
 6. Re: ALT key problem with Virtual Box? (Scott Ballantyne)
 7. Baker Invites freebsd-questions@freebsd.org
mailto:freebsd-questions@freebsd.org to spend holiday
in Goa (John Baker)
 8.  (Upali Kulasekara)
 9. Re: your mail (Daniel Feenberg)
10. RE: Problems getting my Huawei 0x140b USB modem to speak to
internet (Manish Jain)
11. Re: Problems getting my Huawei 0x140b USB modem to speak to
internet (Odhiambo Washington)



--__--__--

Message: 1
Date: Sat, 29 Jun 2013 10:48:38 -0400
From: Rev Herbert Miller herbertmil...@me.com
mailto:herbertmil...@me.com
To: questi...@freebsd.org
Subject: question, following error Shared object libc.so.6 not
 found, required by fortune
Message-ID: 650f01ca-f62f-49e7-957f-__9bfdc06d6...@me.com
mailto:650f01ca-f62f-49e7-957f-9bfdc06d6...@me.com
Content-Type: text/plain; charset=us-ascii

I was trying to use the content management system for our
website.  I needed to restart on terminal but I keep coming up
with the following error:  I don't know programing at all, so
don't know if this is something I can fix.


Shared object libc.so.6 not found, required by fortune

Neither the JAVA_HOME nor the JRE_HOME environment variable is
defined
At least one of these environment variable is needed to run this
program
root@psumc:/usr/local/tomcat5.__5 # bin/startup.sh
Neither the JAVA_HOME nor the JRE_HOME environment variable is
defined
At least one of these environment variable is needed to run this
program
root@psumc:/usr/local/tomcat5.__5 # su -c 'killall -9 java'

--

Message: 2
Date: Sat, 29 Jun 2013 17:58:31 +0200

Re: Problems getting my Huawei 0x140b USB modem to speak to internet

2013-06-30 Thread Manish Jain
EC156 is what the label on the modem says, which is the response given 
by AT+GMM. 0x140b is the chipset.


Regards,

Manish Jain
+91-88064-38388

On 30-Jun-13 22:02, Odhiambo Washington wrote:

What model of Huawei is the modem? E-what??



On 30 June 2013 19:23, Manish Jain bourne.ident...@hotmail.com
mailto:bourne.ident...@hotmail.com wrote:


Hello Odhiambo/All,

I seem to have made some progress but final success still eludes me.
With modem symlinked to cuaU0.0, this is what happens is minicom :

AT^GETPORTMODE
^GETPORTMODE:TYPE:EV-DO:__Qualcomm,MDM:0,DIAG:1,PCUI:2,__CDROM:3

OK
AT^SETPORT=A1;1,2,3
COMMAND NOT SUPPORT

AT^GETPORTMODE succeeds, but with AT^U2DIAG/AT^SETPORT I get
COMMAND NOT SUPPORT. So how to disable the CD mode and make
FreeBSD treat it purely as a modem ? Some of the commands the modem
supports (as reported by Windows' device manager) are as follows :

ATQ0V1E0 - OK
AT+GMM - EC156
AT+FCLASS=? - 0,2.0
AT#CLS=? - COMMAND NOT SUPPORT
^HRSSILVL:80
^HDRRSSI: 31
^HRSSILVL:60
^HDRRSSI: 31


Thanks for any help.

Regards,

Manish Jain
+91-88064-38388


On 30-Jun-13 19:41, Odhiambo Washington wrote:

Hi Manish,

If you have a Windows PC, use putty.exe and point the config to
the COM
port on which the modem is detected to be attached to.
That's how I do it, unfortunately.



On 30 June 2013 16:51, Manish Jain bourne.ident...@hotmail.com
mailto:bourne.ident...@hotmail.com
mailto:bourne.identity@__hotmail.com
mailto:bourne.ident...@hotmail.com wrote:

 Hello Odhiambo/All,

 I installed and ran minicom. There are 2 devices which are
possible
 candidates as the modem : cuaU0.0 and cuaU0.2

 I symlinked modem to each of the 2 devices and ran minicom.
With
 both devices, the AT command returns OK, but AT^U2DIAG=0
returns
 COMMAND NOT SUPPORT

 Any tips on what to do next ?


 Thanks 
 Regards,

 Manish Jain
 +91-88064-38388

 On 30-Jun-13 17:30,
freebsd-questions-request@__fr__eebsd.org http://freebsd.org

 mailto:freebsd-questions-__requ...@freebsd.org
mailto:freebsd-questions-requ...@freebsd.org wrote:

 Send freebsd-questions mailing list submissions to
freebsd-questions@freebsd.org
mailto:freebsd-questions@freebsd.org
mailto:freebsd-questions@__freebsd.org
mailto:freebsd-questions@freebsd.org


 To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
http://lists.freebsd.org/__mailman/listinfo/freebsd-__questions


http://lists.freebsd.org/__mailman/listinfo/freebsd-__questions
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 or, via email, send a message with subject or body
'help' to
 freebsd-questions-request@__fr__eebsd.org
http://freebsd.org
 mailto:freebsd-questions-__requ...@freebsd.org
mailto:freebsd-questions-requ...@freebsd.org


 You can reach the person managing the list at
 freebsd-questions-owner@__free__bsd.org
http://freebsd.org
 mailto:freebsd-questions-__ow...@freebsd.org
mailto:freebsd-questions-ow...@freebsd.org


 When replying, please edit your Subject line so it is
more specific
 than Re: Contents of freebsd-questions digest...


 Today's Topics:

  1. question, following error Shared object
libc.so.6 not
 found, required by fortune (Rev Herbert Miller)
  2. Re: question, following error Shared object
libc.so.6 not
 found, required by fortune (Polytropon)
  3. ALT key problem with Virtual Box? (Scott
Ballantyne)
  4. Re: ALT key problem with Virtual Box? (Polytropon)
  5. Problems getting my Huawei 0x140b USB modem to
speak to
 internet (Manish Jain)
  6. Re: ALT key problem with Virtual Box? (Scott
Ballantyne)
  7. Baker Invites freebsd-questions@freebsd.org
mailto:freebsd-questions@freebsd.org
 mailto:freebsd-questions@__freebsd.org
mailto:freebsd-questions@freebsd.org to spend holiday

 in Goa (John Baker)
  8.  (Upali Kulasekara)
  9. Re: your mail (Daniel Feenberg)
 10. RE: Problems getting my Huawei 0x140b USB modem
to speak

Re: Problems getting my Huawei 0x140b USB modem to speak to internet

2013-06-30 Thread Manish Jain
Sorry for typo. 0x140b is the product ID under vendor Huawei (vendor id 
0x12d1).


Regards,

Manish Jain
+91-88064-38388


On 30-Jun-13 23:49, Manish Jain wrote:

EC156 is what the label on the modem says, which is the response given
by AT+GMM. 0x140b is the chipset.

Regards,

Manish Jain
+91-88064-38388

On 30-Jun-13 22:02, Odhiambo Washington wrote:

What model of Huawei is the modem? E-what??



On 30 June 2013 19:23, Manish Jain bourne.ident...@hotmail.com
mailto:bourne.ident...@hotmail.com wrote:


Hello Odhiambo/All,

I seem to have made some progress but final success still eludes me.
With modem symlinked to cuaU0.0, this is what happens is minicom :

AT^GETPORTMODE
^GETPORTMODE:TYPE:EV-DO:__Qualcomm,MDM:0,DIAG:1,PCUI:2,__CDROM:3

OK
AT^SETPORT=A1;1,2,3
COMMAND NOT SUPPORT

AT^GETPORTMODE succeeds, but with AT^U2DIAG/AT^SETPORT I get
COMMAND NOT SUPPORT. So how to disable the CD mode and make
FreeBSD treat it purely as a modem ? Some of the commands the modem
supports (as reported by Windows' device manager) are as follows :

ATQ0V1E0 - OK
AT+GMM - EC156
AT+FCLASS=? - 0,2.0
AT#CLS=? - COMMAND NOT SUPPORT
^HRSSILVL:80
^HDRRSSI: 31
^HRSSILVL:60
^HDRRSSI: 31


Thanks for any help.

Regards,

Manish Jain
+91-88064-38388


On 30-Jun-13 19:41, Odhiambo Washington wrote:

Hi Manish,

If you have a Windows PC, use putty.exe and point the config to
the COM
port on which the modem is detected to be attached to.
That's how I do it, unfortunately.



On 30 June 2013 16:51, Manish Jain bourne.ident...@hotmail.com
mailto:bourne.ident...@hotmail.com
mailto:bourne.identity@__hotmail.com
mailto:bourne.ident...@hotmail.com wrote:

 Hello Odhiambo/All,

 I installed and ran minicom. There are 2 devices which are
possible
 candidates as the modem : cuaU0.0 and cuaU0.2

 I symlinked modem to each of the 2 devices and ran minicom.
With
 both devices, the AT command returns OK, but AT^U2DIAG=0
returns
 COMMAND NOT SUPPORT

 Any tips on what to do next ?


 Thanks 
 Regards,

 Manish Jain
 +91-88064-38388

 On 30-Jun-13 17:30,
freebsd-questions-request@__fr__eebsd.org http://freebsd.org

 mailto:freebsd-questions-__requ...@freebsd.org
mailto:freebsd-questions-requ...@freebsd.org wrote:

 Send freebsd-questions mailing list submissions to
freebsd-questions@freebsd.org
mailto:freebsd-questions@freebsd.org
mailto:freebsd-questions@__freebsd.org
mailto:freebsd-questions@freebsd.org


 To subscribe or unsubscribe via the World Wide Web,
visit

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
http://lists.freebsd.org/__mailman/listinfo/freebsd-__questions


http://lists.freebsd.org/__mailman/listinfo/freebsd-__questions
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 or, via email, send a message with subject or body
'help' to
 freebsd-questions-request@__fr__eebsd.org
http://freebsd.org
 mailto:freebsd-questions-__requ...@freebsd.org
mailto:freebsd-questions-requ...@freebsd.org


 You can reach the person managing the list at
 freebsd-questions-owner@__free__bsd.org
http://freebsd.org
 mailto:freebsd-questions-__ow...@freebsd.org
mailto:freebsd-questions-ow...@freebsd.org


 When replying, please edit your Subject line so it is
more specific
 than Re: Contents of freebsd-questions digest...


 Today's Topics:

  1. question, following error Shared object
libc.so.6 not
 found, required by fortune (Rev Herbert
Miller)
  2. Re: question, following error Shared object
libc.so.6 not
 found, required by fortune (Polytropon)
  3. ALT key problem with Virtual Box? (Scott
Ballantyne)
  4. Re: ALT key problem with Virtual Box?
(Polytropon)
  5. Problems getting my Huawei 0x140b USB modem to
speak to
 internet (Manish Jain)
  6. Re: ALT key problem with Virtual Box? (Scott
Ballantyne)
  7. Baker Invites freebsd-questions@freebsd.org
mailto:freebsd-questions@freebsd.org
 mailto:freebsd-questions@__freebsd.org
mailto:freebsd-questions@freebsd.org to spend holiday

 in Goa (John Baker)
  8.  (Upali Kulasekara

Problems getting my Huawei 0x140b USB modem to speak to internet

2013-06-29 Thread Manish Jain

Hello All,

I have a a Huawei USB modem (product id 0x140b) which is connected to my 
PC. I downloaded and installed Draisberghof's usb_modeswitch.


The following are the contents of my /etc/usb_modeswitch.conf :

DisableSwitching=0
EnableLogging=1
DefaultVendor=0x12d1
DefaultProduct=0x140b
TargetVendor=0x12d1
TargetProduct=0x1446
CheckSuccess=20
MessageEndpoint=0x0f
MessageContent=55534243123456780011062001

When I run usb_modeswitch -c /etc/usb_modeswitch.conf, I get the 
following message :


Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 010 on bus 000 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using interface number 0
Error: can't use storage command in MessageContent with interface 0;
   interface class is 255, should be 8. Aborting.


So my FreeBSD box cannot speak to internet and I have boot MS-DOG for 
this holy purpose. Can someone please suggest a remedy ?


Thanks in advance 
--
Regards,

Manish Jain
+91-88064-38388
___
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


Question on how do I tell make to choose between static and shared versions of a library

2012-12-16 Thread Manish Jain


Hello All,

This is not a question strictly on FreeBSD. But since freebsd-questions 
is a lot quicker with its dependable responses, I decided to post my 
question here.


Under /lib I have both versions - shared (libxyz.so.1) as well as static 
(libxyz.a) - of a library. How do I tell make to link to the static 
version, not the shared one ? The next obvious question is how to do the 
vice versa - tell make to link to the shared version, not the static one.


Any help will be greatly appreciated.


Thank you 
--
Regards,

Manish Jain
bourne.ident...@hotmail.com
___
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: Question on how do I tell make to choose between static and shared versions of a library

2012-12-16 Thread Manish Jain

On 16-Dec-12 23:12, Matthew Seaman wrote:

On 16/12/2012 17:22, Manish Jain wrote:

Under /lib I have both versions - shared (libxyz.so.1) as well as static
(libxyz.a) - of a library. How do I tell make to link to the static
version, not the shared one ? The next obvious question is how to do the
vice versa - tell make to link to the shared version, not the static one.


Add -static to the ld command line to produce a staticly linked binary:
this forbids ld(1) from doing any dynamic linking.  Otherwise ld will
default to dynamic linking, but fall back to linking staticly against
libraries where there isn't a dynamic shared object available.

Actually, there are about 4 different linker flags you could use that
mean 'produce a staticly linked binary.'  They don't have any different
effect; the reason they exist is for historic compatibility with
versions of ld(1) from many different sources.

It's also an all-or-nothing option.  If you wanted to use static linkage
for one particular library out of all the libraries used by your
program, then you'ld need a very different command line.  But that, as
they say, is left as an exercise for the student.

Cheers,

Matthew





Thanks Matthew. That saved me a lot of time, and the man page for ld (as 
suggested by Polytropon) is not as informative on this particular 
subject as your response.



--
Regards,

Manish Jain
bourne.ident...@hotmail.com

___
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 needed : acroread needs libcanberra-gtk-module.so

2012-11-20 Thread Manish Jain



Hello,

This is the first time I am seeing a problem with running Acrobat Reader 
(on a fresh FreeBSD-8.3-i386 installation) :


/root # Gtk-Message: Failed to load module canberra-gtk-module: 
libcanberra-gtk-module.so: cannot open shared object file: No such file 
or directory
Gtk-Message: Failed to load module gnomesegvhandler: 
libgnomesegvhandler.so: cannot open shared object file: No such file or 
directory


[1]+  Exit 1  acroread8


Running the linux version of Opera is even more disastrous :

/root # linux-opera
linux-opera linux-opera-widget-manager
/root # linux-opera 
[1] 2984
/root # opera [crash logging]: CRASH!!
/usr/local/lib/linux-opera/opera got signal SIGSEGV at address 0841AA43


Can someone please help me out ?


--
Regards,

Manish Jain
bourne.ident...@hotmail.com

___
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


Problem with installing coreutils port

2012-11-17 Thread Manish Jain


Hello All,

I recently had to re-install FreeBSD on my system. I installed 
FreeBSD-8.3-i386 and successfully managed to install all ports except 
one - the sysutils/coreutils port.


Underneath is the error I get :

gmake[2]: Entering directory 
`/usr/ports/sysutils/coreutils/work/coreutils-8.20'

  CCLD   src/factor
lib/libcoreutils.a(striconv.o)(.text+0x68): In function `str_cd_iconv':
: undefined reference to `libiconv'
lib/libcoreutils.a(striconv.o)(.text+0xfa): In function `str_cd_iconv':
: undefined reference to `libiconv'
lib/libcoreutils.a(striconv.o)(.text+0x180): In function `str_cd_iconv':
: undefined reference to `libiconv'
lib/libcoreutils.a(striconv.o)(.text+0x26d): In function `str_iconv':
: undefined reference to `libiconv_open'
lib/libcoreutils.a(striconv.o)(.text+0x290): In function `str_iconv':
: undefined reference to `libiconv_close'
lib/libcoreutils.a(striconv.o)(.text+0x2bd): In function `str_iconv':
: undefined reference to `libiconv_close'
lib/libcoreutils.a(striconv.o)(.text+0x303): In function `mem_cd_iconv':
: undefined reference to `libiconv'
lib/libcoreutils.a(striconv.o)(.text+0x35e): In function `mem_cd_iconv':
: undefined reference to `libiconv'
lib/libcoreutils.a(striconv.o)(.text+0x3af): In function `mem_cd_iconv':
: undefined reference to `libiconv'
lib/libcoreutils.a(striconv.o)(.text+0x41b): In function `mem_cd_iconv':
: undefined reference to `libiconv'
lib/libcoreutils.a(striconv.o)(.text+0x458): In function `mem_cd_iconv':
: undefined reference to `libiconv'
lib/libcoreutils.a(striconv.o)(.text+0x4d2): more undefined references 
to `libiconv' follow

gmake[2]: *** [src/factor] Error 1
gmake[2]: Leaving directory 
`/usr/ports/sysutils/coreutils/work/coreutils-8.20'

gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/sysutils/coreutils/work/coreutils-8.20'

gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/sysutils/coreutils.
*** Error code 1

Stop in /usr/ports/sysutils/coreutils.


I tried deinstall followed by reinstall of the iconv port. But even that 
does not solve the problem listed above.


Can anyone please point out what might be the error and any possible 
solution ? I personally think the port is either broken, or the Makefile 
does not use the correct link options.



Thank you 
--
Regards,

Manish Jain
bourne.ident...@hotmail.com

___
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


Facing a strange problem with Boot Manager

2012-11-11 Thread Manish Jain


Hi,

I have never had a problem with dual-booting Win XP and FreeBSD before. 
Generally, I install XP first and FreeBSD second, putting the Boot 
Manager to the MBR. Recently, my hard disk started wobbling and I had to 
replace it with a new Western Digital SATA drive.


When all installation work finished, FreeBSD would boot when I press F2 
but pressing F1 would fail to boot XP with the error :


A disk read error occurred. Press Ctrl+Alt+Del to reboot

Can anybody suggest what might be the problem and any possible solution ?

For the current time, I reversed the installation order and installed 
FreeBSD first. I saved the FFS slice's boot sector on a USB pendrive and 
then installed XP. So, for the time being, I have to use the Windows 
bootloader to boot FreeBSD by adding an entry for it boot.ini


My disk layout is as follows :

ad8s1 - NTFS
ad8s2 - FFS
ad8s3 - Extended (with ad8s5/NTFS as the only logical drive within it)

Any help would be greatly appreciated.


Thank you 
--
Regards,

Manish Jain
bourne.ident...@hotmail.com
___
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: Facing a strange problem with Boot Manager

2012-11-11 Thread Manish Jain

On 12-Nov-12 02:35, Robert Bonomi wrote:

Date: Sun, 11 Nov 2012 22:09:09 +0530
From: Manish Jain bourne.ident...@hotmail.com
Subject: Facing a strange problem with Boot Manager





When all installation work finished, FreeBSD would boot when I press F2
but pressing F1 would fail to boot XP with the error :

A disk read error occurred. Press Ctrl+Alt+Del to reboot

Can anybody suggest what might be the problem and any possible solution ?



No help on a fix.  i'm fighting that exact problem on a FreeBSD 8.3
install on a 2nd sata drive with xp pro on the 1st drive.  installed
strictly to the 2nd drive -- would select in bios which to boot from.

booting fbsd works fine.
attempting to boot th XP drive gives the above error.

Apparently the 8.3 install trashed something on the XP drive.   :((






I am using FreeBSD 8.3 too (i386). When XP failed to boot, a wrote out a 
new boot sector to drive C: with recovery console's fixboot command, but 
it did not make a difference. Interestingly, when all seemed lost, I 
even ran fixmbr, which complained that it could not fix much as my 
system seemed to be using a non-standard MBR.


Never saw this problem before. Has the Boot Manager code/behavior 
changed in 8.X ?


--
Regards,

Manish Jain
bourne.ident...@hotmail.com
___
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: My freebsd partition changed by Windows chkdsk

2012-11-05 Thread Manish Jain


Hello Leslie,

The short answer is No. And it would need more than a miracle to salvage 
the situation if the partition information is lost.


Sorry if I broke your hopes.

But to look at the brighter side of things :

1) You would never have learnt so quickly so much about 
Windows/FreeBSD/things to do/things not to do had you not run chkdsk
2) Niue is a beautiful country with a great landscape to cheer up even 
the most regrettable scenario



Regards

Manish Jain
+91-99620-10329

On 05-Nov-12 14:27, Leslie Jensen wrote:



Manish Jain skrev 2012-11-04 12:37:







Date: Sun, 4 Nov 2012 16:41:45 +0530
From: bourne.ident...@hotmail.com
To: les...@eskk.nu
CC: freebsd-questions@freebsd.org
Subject: Re: My freebsd partition changed by Windows chkdsk (Leslie
Jensen)


On 04-Nov-12 13:17, Leslie Jensen wrote:



Manish Jain 2012-11-02 19:18:


1) Boot from your FreeBSD CD/DVD, enter the slice editor and
change the type of your FreeBSD slice back to 165. Do not press Q.
Press W instead. Conform with Yes to the warning, and then press
Ctrl+Alt+Del to abort the installation.

2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an
emergency shell.

My legal disclaimer comes here, but do let me know if you get lucky

I hope my message sounds less cryptic now. I personally don't have
anything against running chkdsk or fixmbr, AS LONG AS I have backed
up the important sectors.

Regards

Manish Jain
bourne.ident...@hotmail.com

___
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






Just in case you are not aware how to change the filesystem type in
the slice editor,

highlight your FreeBSD slice and press T. Make sure you enter 165 as
the filesystem

type, and then press W and confirm the change. Then press
Ctrl+Alt+Del and reboot.





Regards



Manish Jain

bourne.iden...@hotmail.com



___
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




Thank you for the advise you have provided.

I did as suggested and it was no problem at all.

Unfortunately it seems as if the partitions was destroyed as well. When
I look at the slice with the label editor it's empty. So chkdsk did a
thorough change unfortunately.

Can you think of anything that would bring back the partitions?

/Leslie




___
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: My freebsd partition changed by Windows chkdsk (Leslie Jensen)

2012-11-04 Thread Manish Jain


On 04-Nov-12 13:17, Leslie Jensen wrote:



Manish Jain 2012-11-02 19:18:


1) Boot from your FreeBSD CD/DVD, enter the slice editor and
change the type of your FreeBSD slice back to 165. Do not press Q.
Press W instead. Conform with Yes to the warning, and then press
Ctrl+Alt+Del to abort the installation.

2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an
emergency shell.

My legal disclaimer comes here, but do let me know if you get lucky

I hope my message sounds less cryptic now. I personally don't have
anything against running chkdsk or fixmbr, AS LONG AS I have backed
up the important sectors.

Regards

Manish Jain
bourne.ident...@hotmail.com

___
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've attached the disk to a running Freebsd system 8.3.

Which program do you reefer to when you write slice editor?

I do not need to be able to boot from the disk. I just need to be able
to read it and copy my /home to another disk.

Thanks

/Leslie




Hello Leslie,

I think you are unclear with FreeBSD terminology. What Windows calls 
primary partitions are called slices in FreeBSD. You can have a maximum
of 4 slices per disk, as I had mentioned earlier. One of the slices may 
optionally be marked as what Windows calls an extended partition. The 
extended partition can be broken up into many partitions (logical 
drives in Windows terminology). Your C: drive is a slice in FreeBSD 
terms. If you have a D: drive too, that - in all likelihood - is a 
partition in FreeBSD terminology.


FreeBSD's terminology is in general much clearer and a lot more mature 
than you would find on any other OS, particularly Windows.


The first step that you have to perform when installing FreeBSD is to 
enter the slice editor and create a slice for FreeBSD. When you press on 
Begin a standard installation, the slice editor is the first 
application that is automatically presented to you.


FreeBSD uses the term partition to refer to the divisions it creates 
inside its slice for the /, /usr, /var, /tmp filesystems.


Now I fail to understand what you mean by a running FreeBSD system. I 
thought your FreeBSD installation had been rendered unbootable by 
chkdsk. If you can indeed boot into FreeBSD successfully, then you 
shouldn't be having any problem copying out whatever data you want.


The steps I had suggested were meant to make your FreeBSD installation 
bootable. As long as your FreeBSD slice is marked as NTFS (filesystem ID 
7) instead of FFS (filesystem ID 165) in the MBR, no application or OS 
can read any data from that slice, at least AFAIK.



Regards

Manish Jain
+91-99620-10329
___
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: My freebsd partition changed by Windows chkdsk (Leslie Jensen)

2012-11-04 Thread Manish Jain





 Date: Sun, 4 Nov 2012 16:41:45 +0530
 From: bourne.ident...@hotmail.com
 To: les...@eskk.nu
 CC: freebsd-questions@freebsd.org
 Subject: Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)
 
 
 On 04-Nov-12 13:17, Leslie Jensen wrote:
 
 
  Manish Jain 2012-11-02 19:18:
 
  1) Boot from your FreeBSD CD/DVD, enter the slice editor and
  change the type of your FreeBSD slice back to 165. Do not press Q.
  Press W instead. Conform with Yes to the warning, and then press
  Ctrl+Alt+Del to abort the installation.
 
  2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an
  emergency shell.
 
  My legal disclaimer comes here, but do let me know if you get lucky
 
  I hope my message sounds less cryptic now. I personally don't have
  anything against running chkdsk or fixmbr, AS LONG AS I have backed
  up the important sectors.
 
  Regards
 
  Manish Jain
  bourne.ident...@hotmail.com
 
  ___
  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've attached the disk to a running Freebsd system 8.3.
 
  Which program do you reefer to when you write slice editor?
 
  I do not need to be able to boot from the disk. I just need to be able
  to read it and copy my /home to another disk.
 
  Thanks
 
  /Leslie
 
 
 
 Hello Leslie,
 
 I think you are unclear with FreeBSD terminology. What Windows calls 
 primary partitions are called slices in FreeBSD. You can have a maximum
 of 4 slices per disk, as I had mentioned earlier. One of the slices may 
 optionally be marked as what Windows calls an extended partition. The 
 extended partition can be broken up into many partitions (logical 
 drives in Windows terminology). Your C: drive is a slice in FreeBSD 
 terms. If you have a D: drive too, that - in all likelihood - is a 
 partition in FreeBSD terminology.
 
 FreeBSD's terminology is in general much clearer and a lot more mature 
 than you would find on any other OS, particularly Windows.
 
 The first step that you have to perform when installing FreeBSD is to 
 enter the slice editor and create a slice for FreeBSD. When you press on 
 Begin a standard installation, the slice editor is the first 
 application that is automatically presented to you.
 
 FreeBSD uses the term partition to refer to the divisions it creates 
 inside its slice for the /, /usr, /var, /tmp filesystems.
 
 Now I fail to understand what you mean by a running FreeBSD system. I 
 thought your FreeBSD installation had been rendered unbootable by 
 chkdsk. If you can indeed boot into FreeBSD successfully, then you 
 shouldn't be having any problem copying out whatever data you want.
 
 The steps I had suggested were meant to make your FreeBSD installation 
 bootable. As long as your FreeBSD slice is marked as NTFS (filesystem ID 
 7) instead of FFS (filesystem ID 165) in the MBR, no application or OS 
 can read any data from that slice, at least AFAIK.
 
 
 Regards
 
 Manish Jain
 +91-99620-10329

Just in case you are not aware how to change the filesystem type in the slice 
editor,

highlight your FreeBSD slice and press T. Make sure you enter 165 as the 
filesystem

type, and then press W and confirm the change. Then press  Ctrl+Alt+Del and 
reboot.





Regards

 

Manish Jain

bourne.iden...@hotmail.com


  
___
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: My freebsd partition changed by Windows chkdsk (Leslie Jensen)

2012-11-02 Thread Manish Jain

That I trusted the chkdsk program to do what I told it to do was in
retrospect a bit naive ;-) I do have a backup although it's not as
recent as I would have liked.

Can you think of any way to perhaps recover the data from the freebsd
partition?


I trust that you by now have discovered that your trust was never breached
by Microsoft (for once). Microsoft firmly believes that Windows is the only
OS that should reside on a PC's disk. Therefore running chkdsk with force
was only an invitation to Microsoft to run amok.

BTW, the reason I replied to this message was not to provide you with a
solution but with a trivial yet good bit of precaution I use on my own
dual-boot PC, wherein ad4s1 is NTFS/Windows and ad4s2 is my FreeBSD slice.
Right after installation of FreeBSD, I ran :

dd if=/dev/ad4 of=ad4.512 bs=512 count=1
dd if=/dev/ad4s2 of=ad4s2.512 bs=512 count=1
dd if=/dev/ad4s2a of=ad4s2a.512 bs=512 count=1

No matter how Windows screws up the MBR or FreeBSD's slice, recovering from
the situation is simple enough.

Regards

Manish Jain
bourne.ident...@hotmail.com

On 02-Nov-12 17:30, freebsd-questions-requ...@freebsd.org wrote:

Send freebsd-questions mailing list submissions to
freebsd-questions@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-questions-requ...@freebsd.org

You can reach the person managing the list at
freebsd-questions-ow...@freebsd.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of freebsd-questions digest...


Today's Topics:

1. My freebsd partition changed by Windows chkdsk (Leslie Jensen)
2. Re: laptop with no BIOS? or BIOS reflash pain (Anton Shterenlikht)
3. Dell H710 and H310 Raid Controller (Omer Faruk SEN)
4. Re: My freebsd partition changed by Windows chkdsk (Warren Block)
5. Autotools, libraries and man pages: oh my! (James Colannino)
6. Re: Autotools, libraries and man pages: oh my! (James Colannino)
7. Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)
8. Re: Autotools, libraries and man pages: oh my! (Polytropon)
9. lagg interface not created at reboot ( 9.0 ) (Frank Bonnet)
   10. Re: lagg interface not created at reboot ( 9.0 ) (Damien Fleuriot)
   11. Re: My freebsd partition changed by Windows chkdsk (Jerry)
   12. Re: Autotools, libraries and man pages: oh my! (Robert Bonomi)


--

Message: 1
Date: Thu, 01 Nov 2012 10:26:33 +0100
From: Leslie Jensen les...@eskk.nu
To: freebsd-questions@freebsd.org
Subject: My freebsd partition changed by Windows chkdsk
Message-ID: 50924049.1020...@eskk.nu
Content-Type: text/plain; charset=ISO-8859-1; format=flowed



I've replaced my dual boot hard drive with an SSD.

My hard drive had one 100 GB windows partition and one 300 Gb Freebsd
slice with five partitions (/, /usr, /var, /tmp and /home).

In order to move my Win7 partition a Norton Ghost program was supplied
with the new disk.

When trying to clone that partition the process couldn't finish because
it needed a chkdsk command to be executed before cloning.

I ran a chkdsk c: with the choice of correcting errors.

Somewhere in that process the chkdsk program touched my freebsd
partition in a way so that it now is recognized as NTFS.

That I trusted the chkdsk program to do what I told it to do was in
retrospect a bit naive ;-) I do have a backup although it's not as
recent as I would have liked.

Can you think of any way to perhaps recover the data from the freebsd
partition?

Thanks

/Leslie


--

Message: 2
Date: Thu, 1 Nov 2012 11:27:21 GMT
From: Anton Shterenlikht me...@bristol.ac.uk
To: flash...@flashrom.org, freebsd-questions@freebsd.org,
vid...@gmail.com
Subject: Re: laptop with no BIOS? or BIOS reflash pain
Message-ID:
201211011127.qa1brlfz010...@mech-cluster241.men.bris.ac.uk

Date: Tue, 30 Oct 2012 21:28:22 +0100
Subject: Re: laptop with no BIOS? or BIOS reflash pain
From: Idwer Vollering vid...@gmail.com
To: freebsd-questions@freebsd.org, flash...@flashrom.org

Another approach is to use an external SPI programmer:
http://flashrom.org/Supported_programmers
The 'downside' of this is that you need to take your laptop apart.

ODM schematics of your laptop are found here:
http://notebookschematic.com/wp-content/uploads/2010/06/6515b_6715s.png
Downloads for BIOS updates:

http://h2.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=encc=usprodNameId=3356623prodTypeId=321957prodSeriesId=3368539swLang=13taskId=135swEnvOID=1093#120
and ftp://ftp.hp.com/pub/softpaq/sp55501-56000/sp6.exe

My guess (I am not a HP service technician) is that you need
ROM.CAB/Rom.bin from

Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)

2012-11-02 Thread Manish Jain

On 02-Nov-12 19:19, Leslie Jensen wrote:



Manish Jain skrev 2012-11-02 14:39:

That I trusted the chkdsk program to do what I told it to do was in
retrospect a bit naive ;-) I do have a backup although it's not as
recent as I would have liked.

Can you think of any way to perhaps recover the data from the freebsd
partition?


I trust that you by now have discovered that your trust was never 
breached
by Microsoft (for once). Microsoft firmly believes that Windows is 
the only
OS that should reside on a PC's disk. Therefore running chkdsk with 
force

was only an invitation to Microsoft to run amok.

BTW, the reason I replied to this message was not to provide you with a
solution but with a trivial yet good bit of precaution I use on my own
dual-boot PC, wherein ad4s1 is NTFS/Windows and ad4s2 is my FreeBSD 
slice.

Right after installation of FreeBSD, I ran :

dd if=/dev/ad4 of=ad4.512 bs=512 count=1
dd if=/dev/ad4s2 of=ad4s2.512 bs=512 count=1
dd if=/dev/ad4s2a of=ad4s2a.512 bs=512 count=1

No matter how Windows screws up the MBR or FreeBSD's slice, 
recovering from

the situation is simple enough.

Regards

Manish Jain
bourne.ident...@hotmail.com


___
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



Thank you for your comment.
I must admit that I do not fully understand what it is you do.
Will you explain the details, Please?
Thanks
/Leslie




Hello Leslie,

Sorry if my comment sounded a bit cryptic.

The first 512 bytes of any hard-disk reside outside of any slice and
contain the master boot record. If you installed Windows first and
FreeBSD second and opted for the FreeBSD (a.k.a. Easy) Boot Manager,
the disk's first 512 bytes will contain 446 bytes of Boot Manager
code (which the BIOS executes to give you the F1/F2/F3/F4 choices),
64 bytes containing the disk's slice layout (maximum 4 slices) and
2 bytes for a BIOS checksum.

It is very easy to lose the MBR. If, instead of chkdsk, you were to
run the fixmbr command, Windows will put its own code into the 446
bytes. That code is capable of only one thing - booting drive C:

When you ran chkdsk /f, Windows changed the slice-type of your
FreeBSD slice from FFS (ID=165) to NTFS (ID=7) in the MBR. Only
Microsoft knows why chkdsk is permitted to do that.

Once that happens, you would REALLY like to fix the MBR. One way to
do it is to to run the reverse of the first command :

dd if=ad4.512 of=/dev/ad4 bs=512 count=1

This assumes 1) you can boot into FreeBSD or Linux or have a GParted
bootable CD, and 2) you saved your original MBR as ad4.512 and have
access to it, possibly on a USB pendrive that you can mount.

Just as the disk's first 512 bytes reside outside of any slice,
every slice's first 512 bytes reside outside any partition in that
slice and consequently outside the filesystems in that slice. This
sector contains the boot code (a.k.a. boot record) needed to boot
the OS on that slice. Windows will generally be nice enough to first
read the boot.ini file, which gives us the option of booting FreeBSD
from Windows' boot.ini :

dd if=/dev/ad4s2 of=ad4s2.512 bs=512 count=1

Copy out ad4s2.512 to drive C:, and put this in your boot.ini :

c:\ad4s2.412=Boot FreeBSD instead

Of course, you have to substitute your correct numbers in the
adNs{N} notation. For me, N is 4 and {N} is 2.

The ad4s2a.512 file contains the first sector in your FreeBSD /
partition and is meaningful to the loader more than to us mortals.

If everything else fails, you might like to give the following a
try :

1) Boot from your FreeBSD CD/DVD, enter the slice editor and
change the type of your FreeBSD slice back to 165. Do not press Q.
Press W instead. Conform with Yes to the warning, and then press
Ctrl+Alt+Del to abort the installation.

2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an
emergency shell.

My legal disclaimer comes here, but do let me know if you get lucky

I hope my message sounds less cryptic now. I personally don't have
anything against running chkdsk or fixmbr, AS LONG AS I have backed
up the important sectors.

Regards

Manish Jain
bourne.ident...@hotmail.com

___
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


Problem with connecting FreeBSD 8.3 to wireless network

2012-10-28 Thread Manish Jain


On 28-Oct-12 05:53, Polytropon wrote:

On Sun, 28 Oct 2012 05:47:46 +0530, Manish Jain wrote:


On 28-Oct-12 01:49, Polytropon wrote:



I don't mind
pulling in and building a few more ports as long as it is not the whole
GNOME2 metaport.


It could very well be the whole Gnome 2 metaport. :-(



Hi All,

After reading all the replies to my earlier post Problem with libpng + 
Mozilla applications on FreeBSD 8.3, I finally summoned up the courage 
to build the GNOME2 metaport from the ports directory. Since this would 
not be possible within my lifetime with my usual internet connection, I 
paid for and succeeded in getting temporary access to a wireless network.


Win XP connects to the network pretty smoothly, so there was much reason 
for hope that things would go smoothly on my FreeBSD 8.3 installation 
too. I tried configuring the Atheros device to the network as explained 
in the FreeBSD handbook. But I am having usual rate of success, which is 
not very high. All the required modules are present in the kernel, as 
can be seen below :


# kldload ath
kldload: can't load ath: File exists

# kldload wlan_tkip
kldload: can't load wlan_tkip: File exists

But dmesg returns no output for ath0 :

# dmesg | grep -i ath

Empty output

ifconfig returns the following output :

# ifconfig
bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

options=c019bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE
ether b8:88:e3:45:63:b1
inet6 fe80::ba88:e3ff:fe45:63b1%bge0 prefixlen 64 scopeid 0x2
nd6 options=3PERFORMNUD,ACCEPT_RTADV
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
options=3RXCSUM,TXCSUM
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
nd6 options=3PERFORMNUD,ACCEPT_RTADV
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1500
options=8LINKSTATE
inet 10.0.0.1 -- 10.0.0.2 netmask 0xff00
Opened by PID 767

Since there is no mention of ath0, I did not expect creating the wlan0 
pseudo-device would be a simple matter, and I was right :


# ifconfig wlan0 create wlandev ath0
ifconfig: SIOCIFCREATE2: Device not configured

Manually trying to create the pseudo-device ath0 presents equally 
unpleasant output :


# ifconfig ath0 create
ifconfig: SIOCIFCREATE2: Invalid argument

pciconf does show my device, but I do not know how to make use of the 
information (please refer the last few lines of the output) :


# pciconf -lv
hostb0@pci0:0:0:0:	class=0x06 card=0x06491025 chip=0x01048086 
rev=0x09 hdr=0x00

vendor = 'Intel Corporation'
class  = bridge
subclass   = HOST-PCI
vgapci0@pci0:0:2:0:	class=0x03 card=0x06491025 chip=0x01068086 
rev=0x09 hdr=0x00

vendor = 'Intel Corporation'
class  = display
subclass   = VGA
none0@pci0:0:22:0:	class=0x078000 card=0x06491025 chip=0x1e3a8086 
rev=0x04 hdr=0x00

vendor = 'Intel Corporation'
class  = simple comms
ehci0@pci0:0:26:0:	class=0x0c0320 card=0x06491025 chip=0x1e2d8086 
rev=0x04 hdr=0x00

vendor = 'Intel Corporation'
class  = serial bus
subclass   = USB
hdac0@pci0:0:27:0:	class=0x040300 card=0x06491025 chip=0x1e208086 
rev=0x04 hdr=0x00

vendor = 'Intel Corporation'
class  = multimedia
subclass   = HDA
pcib1@pci0:0:28:0:	class=0x060400 card=0x06491025 chip=0x1e108086 
rev=0xc4 hdr=0x01

vendor = 'Intel Corporation'
class  = bridge
subclass   = PCI-PCI
pcib2@pci0:0:28:1:	class=0x060400 card=0x06491025 chip=0x1e128086 
rev=0xc4 hdr=0x01

vendor = 'Intel Corporation'
class  = bridge
subclass   = PCI-PCI
ehci1@pci0:0:29:0:	class=0x0c0320 card=0x06491025 chip=0x1e268086 
rev=0x04 hdr=0x00

vendor = 'Intel Corporation'
class  = serial bus
subclass   = USB
isab0@pci0:0:31:0:	class=0x060100 card=0x06491025 chip=0x1e5e8086 
rev=0x04 hdr=0x00

vendor = 'Intel Corporation'
class  = bridge
subclass   = PCI-ISA
atapci0@pci0:0:31:2:	class=0x01018f card=0x06491025 chip=0x1e018086 
rev=0x04 hdr=0x00

vendor = 'Intel Corporation'
class  = mass storage
subclass   = ATA
none1@pci0:0:31:3:	class=0x0c0500 card=0x06491025 chip=0x1e228086 
rev=0x04 hdr=0x00

vendor = 'Intel Corporation'
class  = serial bus
subclass   = SMBus
atapci1@pci0:0:31:5:	class=0x010185 card=0x06491025 chip=0x1e098086 
rev=0x04 hdr=0x00

vendor = 'Intel Corporation'
class  = mass storage
subclass   = ATA
bge0@pci0:2:0:0:	class=0x02 card=0x06471025 chip=0x16b514e4 rev=0x10 
hdr=0x00

vendor = 'Broadcom Corporation'
class  = network
subclass   = ethernet
none2@pci0:2:0:1:	class=0x080501 card=0x06471025 chip=0x16bc14e4 
rev=0x10 hdr=0x00

vendor = 'Broadcom

Re: Problem with connecting FreeBSD 8.3 to wireless network

2012-10-28 Thread Manish Jain

Forgot to mention the full name of the adapter : Atheros AR5B125

Regards,

Manish Jain
bourne.ident...@hotmail.com


On 29-Oct-12 00:20, Manish Jain wrote:


On 28-Oct-12 05:53, Polytropon wrote:

On Sun, 28 Oct 2012 05:47:46 +0530, Manish Jain wrote:


On 28-Oct-12 01:49, Polytropon wrote:



I don't mind
pulling in and building a few more ports as long as it is not the whole
GNOME2 metaport.


It could very well be the whole Gnome 2 metaport. :-(



Hi All,

After reading all the replies to my earlier post Problem with libpng +
Mozilla applications on FreeBSD 8.3, I finally summoned up the courage
to build the GNOME2 metaport from the ports directory. Since this would
not be possible within my lifetime with my usual internet connection, I
paid for and succeeded in getting temporary access to a wireless network.

Win XP connects to the network pretty smoothly, so there was much reason
for hope that things would go smoothly on my FreeBSD 8.3 installation
too. I tried configuring the Atheros device to the network as explained
in the FreeBSD handbook. But I am having usual rate of success, which is
not very high. All the required modules are present in the kernel, as
can be seen below :

# kldload ath
kldload: can't load ath: File exists

# kldload wlan_tkip
kldload: can't load wlan_tkip: File exists

But dmesg returns no output for ath0 :

# dmesg | grep -i ath

Empty output

ifconfig returns the following output :

# ifconfig
bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
 
options=c019bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE
 ether b8:88:e3:45:63:b1
 inet6 fe80::ba88:e3ff:fe45:63b1%bge0 prefixlen 64 scopeid 0x2
 nd6 options=3PERFORMNUD,ACCEPT_RTADV
 media: Ethernet autoselect (none)
 status: no carrier
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
 options=3RXCSUM,TXCSUM
 inet 127.0.0.1 netmask 0xff00
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
 nd6 options=3PERFORMNUD,ACCEPT_RTADV
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1500
 options=8LINKSTATE
 inet 10.0.0.1 -- 10.0.0.2 netmask 0xff00
 Opened by PID 767

Since there is no mention of ath0, I did not expect creating the wlan0
pseudo-device would be a simple matter, and I was right :

# ifconfig wlan0 create wlandev ath0
ifconfig: SIOCIFCREATE2: Device not configured

Manually trying to create the pseudo-device ath0 presents equally
unpleasant output :

# ifconfig ath0 create
ifconfig: SIOCIFCREATE2: Invalid argument

pciconf does show my device, but I do not know how to make use of the
information (please refer the last few lines of the output) :

# pciconf -lv
hostb0@pci0:0:0:0:class=0x06 card=0x06491025 chip=0x01048086
rev=0x09 hdr=0x00
 vendor = 'Intel Corporation'
 class  = bridge
 subclass   = HOST-PCI
vgapci0@pci0:0:2:0:class=0x03 card=0x06491025 chip=0x01068086
rev=0x09 hdr=0x00
 vendor = 'Intel Corporation'
 class  = display
 subclass   = VGA
none0@pci0:0:22:0:class=0x078000 card=0x06491025 chip=0x1e3a8086
rev=0x04 hdr=0x00
 vendor = 'Intel Corporation'
 class  = simple comms
ehci0@pci0:0:26:0:class=0x0c0320 card=0x06491025 chip=0x1e2d8086
rev=0x04 hdr=0x00
 vendor = 'Intel Corporation'
 class  = serial bus
 subclass   = USB
hdac0@pci0:0:27:0:class=0x040300 card=0x06491025 chip=0x1e208086
rev=0x04 hdr=0x00
 vendor = 'Intel Corporation'
 class  = multimedia
 subclass   = HDA
pcib1@pci0:0:28:0:class=0x060400 card=0x06491025 chip=0x1e108086
rev=0xc4 hdr=0x01
 vendor = 'Intel Corporation'
 class  = bridge
 subclass   = PCI-PCI
pcib2@pci0:0:28:1:class=0x060400 card=0x06491025 chip=0x1e128086
rev=0xc4 hdr=0x01
 vendor = 'Intel Corporation'
 class  = bridge
 subclass   = PCI-PCI
ehci1@pci0:0:29:0:class=0x0c0320 card=0x06491025 chip=0x1e268086
rev=0x04 hdr=0x00
 vendor = 'Intel Corporation'
 class  = serial bus
 subclass   = USB
isab0@pci0:0:31:0:class=0x060100 card=0x06491025 chip=0x1e5e8086
rev=0x04 hdr=0x00
 vendor = 'Intel Corporation'
 class  = bridge
 subclass   = PCI-ISA
atapci0@pci0:0:31:2:class=0x01018f card=0x06491025 chip=0x1e018086
rev=0x04 hdr=0x00
 vendor = 'Intel Corporation'
 class  = mass storage
 subclass   = ATA
none1@pci0:0:31:3:class=0x0c0500 card=0x06491025 chip=0x1e228086
rev=0x04 hdr=0x00
 vendor = 'Intel Corporation'
 class  = serial bus
 subclass   = SMBus
atapci1@pci0:0:31:5:class=0x010185 card=0x06491025 chip=0x1e098086
rev=0x04 hdr=0x00
 vendor = 'Intel Corporation'
 class  = mass storage
 subclass   = ATA
bge0@pci0:2:0:0:class=0x02 card=0x06471025 chip=0x16b514e4
rev=0x10 hdr=0x00
 vendor = 'Broadcom Corporation'
 class

Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Manish Jain

On Fri, Oct 26, 2012 at 11:06 PM, Polytropon free...@edvax.de wrote:

On Sat, 27 Oct 2012 00:06:44 +0530, Manish Jain wrote:


Hello Polytropon,

Thanks for replying.

   Maybe an update of FF and TB would be sufficient, so it can link
   to the present (or at least expected) libraries accordingly.

Maybe I did not make it clear enough in the original message. The only
thing I installed from the installation DVD was the OS and the GNOME2
metaport. Everything else including FF and TB was installed from ports,
the tarball of which I downloaded just a couple of days back. I hope you
are not suggesting that I build the GNOME2 metaport too from the ports
directory : with my internet connection, that really would take me into
the next century.


Exactly that would have been the preferred solution. :-)




You should not manually copy things. At some point, something will
crash, and the ports infrastructure cannot take care of it. It's
easier to use a port management tool (like portmaster) to deal
with installing and updating of ports.


For the present issue, it seems logical that I would need 2 versions of
libpng : one for GNOME and one for the ports being installed. Having the
two versions reside independently in /usr/lib and /usr/local/lib seems
to be the only way out. I still must admit that it defeats the purpose
of having port management tools.


It also blurs the line between OS (/usr/lib) and additional
software (/usr/local/lib) directories. However, both directories
are used by the linker, so it looks possible (and probably better
than messing with symlinks in /usr/local/lib). Problems _might_
occur when updating world.





--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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







 Sometimes placing symlink to the newer version of library instead of
 older version helps.



There is only one symlink (/usr/local/bin/libpng.so) and it points to 
the newer version.



Regards,

Manish Jain
bourne.ident...@hotmail.com
___
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: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Manish Jain

But Mozilla applications like Firefox and Thunderbird present
a peculiar problem - the buttons on the Tool bar/Menu bar do not
have any image on them.



The problem is not Mozilla-specific. I built Opera web browser from 
ports, and that too has images missing from its buttons.


Looks like I am going to have to contend with being less image-inative 
in the coming days.



Regards,

Manish Jain
bourne.ident...@hotmail.com

___
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: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Manish Jain


On 28-Oct-12 01:49, Polytropon wrote:

On Sun, 28 Oct 2012 01:43:11 +0530, Manish Jain wrote:

But Mozilla applications like Firefox and Thunderbird present
a peculiar problem - the buttons on the Tool bar/Menu bar do not
have any image on them.



The problem is not Mozilla-specific. I built Opera web browser from
ports, and that too has images missing from its buttons.


It seems that the problem is in some dependency, not the top port
itself. This usually indicates that something in /usr/local is
dangerously out of sync, and in most cases, wide re-installs
solve such kind of problem.




Looks like I am going to have to contend with being less image-inative
in the coming days.


You just need to imagine the images. :-)



Hello Poly,


wide re-installs


Consider me a newbie here. How do I do wide-reinstall ? I don't mind 
pulling in and building a few more ports as long as it is not the whole 
GNOME2 metaport.



Thank you 
Regards,

Manish Jain
bourne.ident...@hotmail.com
___
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


Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-26 Thread Manish Jain


Hi All,

I recently purchased a laptop (Intel Pentium dual core) and installed 
FreeBSD 8.3-i386 on it using the 'All' canned distribution. I then 
downloaded the latest ports tarball and started building them.


Some of the ports required a newer version of the graphics/png port, so 
I did a deinstall and reinstall in graphics/png. This removed the 
previous binary libpng.so.6 and placed version libpng15.so.15 in its 
stead. Things went wrong here - the GNOME desktop started crashing with 
the panel not working and practically all desktop icons gone. So I 
guessed  that the canned version of GNOME in the installation DVD had a 
dependency on libpng.so.6.


I reinstalled FreeBSD 8.3, and copied /usr/local/lib/libpng.so.6 to 
/usr/lib/libpng.so.6 before building the ports a second time. This time 
things went a lot more smoothly. GNOME works. But Mozilla applications 
like Firefox and Thunderbird present a peculiar problem - the buttons on 
the Tool bar/Menu bar do not have any image on them. While this is not 
exactly a catastrophe, it is rankling to say the least. Maybe some 
gentleman has faced this problem and has sorted it out. If anyone can 
provide a hint on how to fix the problem, I would be grateful indeed.



Thank you 
Regards,

Manish Jain
bourne.ident...@hotmail.com

___
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: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-26 Thread Manish Jain


Hello Polytropon,

Thanks for replying.

 Maybe an update of FF and TB would be sufficient, so it can link
 to the present (or at least expected) libraries accordingly.

Maybe I did not make it clear enough in the original message. The only 
thing I installed from the installation DVD was the OS and the GNOME2 
metaport. Everything else including FF and TB was installed from ports, 
the tarball of which I downloaded just a couple of days back. I hope you 
are not suggesting that I build the GNOME2 metaport too from the ports 
directory : with my internet connection, that really would take me into 
the next century.



You should not manually copy things. At some point, something will
crash, and the ports infrastructure cannot take care of it. It's
easier to use a port management tool (like portmaster) to deal
with installing and updating of ports.


For the present issue, it seems logical that I would need 2 versions of 
libpng : one for GNOME and one for the ports being installed. Having the 
two versions reside independently in /usr/lib and /usr/local/lib seems 
to be the only way out. I still must admit that it defeats the purpose 
of having port management tools.


I suspect that there might be folks at Mozilla who might see the light 
at the end of the tunnel (and the images on their buttons). I'll try 
roping them in with a separate message. If anything useful comes up, 
I'll post it to freebsd-questions as a message of possible interest to 
any other users who might be facing the same problem.



Regards,

Manish Jain
bourne.ident...@hotmail.com
___
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


Linux-firefox does not start

2012-08-09 Thread Manish Jain


Hi,

I installed www/linux-firefox from ports (FreeBSD 8.2/amd64). The first 
time it ran, it did some checks. During this time there was an 
unexpected power loss. Since then whenever I try to start linux-firefox, 
I get the error message An instance of firefox is already. Close it or 
restart your system. But no solution works. I even did a 'make 
deinstall' followed by 'make install clean' a couple of times. All of no 
avail.


Can anyone please point out what I need to do to get linux-firefox to 
start ?



Thank you 

--
Regards

Manish Jain
+91-99620-10329

___
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


Flash in Firefox

2012-07-30 Thread Manish Jain


I've not experienced any problem with sites that
use Flash, including Youtube.



Hi Jeff,

Okay, so can you please go to the URL below and see whether the bubbles 
work for you ?


http://news.discovery.com/human/games-lumosity-word-bubbles.html

I don't have a problem with YouTube either. But if the flash at the URL 
above works for you, I request you to kindly share with me the ports I 
need to install. I spent a lot of time, energy and bandwidth 
installing/reinstalling over a dozen ports, including opera. But neither 
opera nor firefox on my system work for the subject URL


Please send a cc of your reply to me at bourne.ident...@hotmail.com


Thanks 
--
Regards,

Manish Jain
+91-99620-10329
___
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: How to get Huawei EC1561 USB modem working under FreeBSD, 8.2? Moving on to the next problem :-) - Flash in Firefox

2012-07-29 Thread Manish Jain


Hi,

Thanks for your inputs. I have finally got FreeBSD to speak to the 
internet. Now I have one more problem before I can live in peace. I am 
fond of a game hosted via the Discovery channel's website :


http://news.discovery.com/human/games-lumosity-word-bubbles.html

The game needs Adobe flash player. So I installed 
linux-f10-flashplugin11. But firefox 5.0 does not seem to integrate with 
it well. I then tried installing a couple of more ports, including 
swfdec and gnash. Still firefox won't play the game.


Is there something special I need to do ? Thanks for any help.

--
Regards,

Manish Jain
+91-99620-10329
___
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: How to get Huawei EC1561 USB modem working under FreeBSD 8.2?

2012-07-26 Thread Manish Jain

On 25-Jul-12 21:06, Erich Dollansky wrote:

Hi

On Wed, 25 Jul 2012 20:21:04 +0530
Manish Jainbourne.ident...@hotmail.com  wrote:

On 25-Jul-12 18:53, Erich Dollansky wrote:

On Tue, 24 Jul 2012 14:29:07 +0530
Manish Jainbourne.ident...@hotmail.com   wrote:

On 23-Jul-12 16:07, Erich Dollansky wrote:

On Monday 23 July 2012 16:46:04 Manish Jain wrote:

On 21-Jul-12 19:06, Matthias Apitz wrote:

El día Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish
Jain escribió:


I tried switching the USB ports and have some information which could
help you to help me :

usbconfig -u 0 -a 2 dump_device_desc :
ugen0.2:HUAWEI Mobile HUAWEI TECHNOLOGIES  at usbus0, cfg=0 md=HOST
spd=FULL (12Mbps) pwr=ON

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0110
bDeviceClass = 0x
bDeviceSubClass = 0x
bDeviceProtocol = 0x
bMaxPacketSize0 = 0x0040
idVendor = 0x12d1
idProduct = 0x140b


This is strange. src/sys/dev/usb/usbdevs says this:

product HUAWEI E140B0x140b  3G modem

This means that your product is supported

Is this line in your usbdevs?


Now what should my devfs.conf contain ? Currently it contains the
following :


Mine is empty. Comment all entries out. This might be the problem.


link cuaU0.0 modem
own modem root:operator
perm modem 666

link ugen0.3 usv
own usv root:operator
perm usv 666

link cuaU0.1 apcups
own apcups root:operator
perm apcups 666

Obviously, these entries are incorrect since neither my modem speaks
to the internet nor is any signal from the APC UPS recognized. I
believe once I have the correct devfs entries, the whole system
should work smoothly. But please correct me if I am wrong.

Surprisingly, /etc/usb_modeswitch.d contains no entries for 12d1:140b
or 051d:*. Do I need to reinstall usb_modeswitch.d ? Or can usbconfig
configure the devices correctly ? I am no expert here, so if yes, I
would need the complete commands.


What version of FreeBSD are you using?


Thanks for any help. I am greatly indebted to FreeBSD and its
philosophy making things 'as simple as possible, but not any simpler'
- which has helped me learn a great deal about computers in general
and managing my own computer in particular. But the USB related stuff
still beats the hell out of me, so I need help here.


There is something very, very simple wrong. I just do not see now what
it is.

I have the feeling that your modem is not recognised while it should be
as it is known to FreeBSD.


BTW, my system now has the usbdump command (installed from sources
downloaded from http://biot.com/usbdump/) but no manpage.


You got then a Linux version which might causes more problems that you
need.

Erich




Hi Erich/Matthias,

I did some tinkering to make _some_ progress. My APC UPS is working fine 
now under FreeBSD (8.2-RELEASE, amd64). I think I also now have the 
correct device setting in ppp.conf (/dev/cuaU0.0, also symlink'ed as 
/dev/modem via devfs.conf). But the modem still does not speak to 
internet. Here is the latest log :


Jul 26 15:16:15 bourne ppp[1199]: Phase: Using interface: tun0
Jul 26 15:16:15 bourne ppp[1199]: Phase: deflink: Created in closed state
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set device 
/dev/modem

Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set speed 115200
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set dial ABORT 
BUSY ABORT NO\sCARRIER TIMEOUT 5   AT OK-AT-OK ATFE0V1X1D2C1S0=0 OK 
\dATDT\T TIMEOUT 40 CONNECT

Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: set timeout 180
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: default: enable dns
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set phone #777
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set device 
/dev/cuaU0.0

Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set login
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set authname 
inter...@internet.mtsindia.in
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set authkey 


Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set timeout 0
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: disable ipv6cp
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set ifaddr 
10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0

Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: add default HISADDR
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: set dial AT+CRM=1
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: accept PAP CHAP
Jul 26 15:16:15 bourne ppp[1199]: tun0: Command: huawei: enable dns
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: PPP Started (auto mode).
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: bundle: Establish
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: deflink: closed - opening
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: deflink: Connected!
Jul 26 15:16:15 bourne ppp[1217]: tun0: Phase: deflink: opening - dial
Jul 26 15:16:15 bourne ppp[1217]: tun0: Chat: Phone

Re: How to get Huawei EC1561 USB modem working under FreeBSD 8.2?

2012-07-25 Thread Manish Jain

On 25-Jul-12 18:53, Erich Dollansky wrote:

Hi,

On Tue, 24 Jul 2012 14:29:07 +0530
Manish Jainbourne.ident...@hotmail.com  wrote:


On 23-Jul-12 16:07, Erich Dollansky wrote:

Hi,

On Monday 23 July 2012 16:46:04 Manish Jain wrote:

On 21-Jul-12 19:06, Matthias Apitz wrote:

El día Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish
Jain escribió:




I am still stuck because I can't know the syntax to run usbdump.
usbdump


man usbdump

usbconfig gives you the device numbers.


I got something wrong.

It is all done by usbconfig

usbconfig without any parameters gives you a list of devices. One entry
should look like this:

ugen0.4:Huawei CDMA Technologies MSM Huawei, Incorporated  at usbus0,
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

You enter then

usbconfig -u 0 -a 4 dump_device_desc

and you should get something like this:

ugen0.4:Huawei CDMA Technologies MSM Huawei, Incorporated  at usbus0,
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

   bLength = 0x0012
   bDescriptorType = 0x0001
   bcdUSB = 0x0200
   bDeviceClass = 0x
   bDeviceSubClass = 0x
   bDeviceProtocol = 0x
   bMaxPacketSize0 = 0x0040
   idVendor = 0x12d1
   idProduct = 0x1803
   bcdDevice = 0x
   iManufacturer = 0x0003Huawei, Incorporated
   iProduct = 0x0002Huawei CDMA Technologies MSM
   iSerialNumber = 0xno string
   bNumConfigurations = 0x0001

You try to find a solution from the other side of the rope. I think we
better start here first.

Erich




Hi,

Thanks for your reply.

I tried switching the USB ports and have some information which could 
help you to help me :


usbconfig -u 0 -a 2 dump_device_desc :
ugen0.2: HUAWEI Mobile HUAWEI TECHNOLOGIES at usbus0, cfg=0 md=HOST 
spd=FULL (12Mbps) pwr=ON


  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0110
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x12d1
  idProduct = 0x140b
  bcdDevice = 0x
  iManufacturer = 0x0001  HUAWEI TECHNOLOGIES
  iProduct = 0x0002  HUAWEI Mobile
  iSerialNumber = 0x0004  
  bNumConfigurations = 0x0001

usbconfig -u 0 -a 3 dump_device_desc :
ugen0.3: Back-UPS ES 650Y-IN FW:853.m4.I USB FW:m4 American Power 
Conversion at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON


  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0110
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0008
  idVendor = 0x051d
  idProduct = 0x0002
  bcdDevice = 0x0006
  iManufacturer = 0x0003  American Power Conversion
  iProduct = 0x0001  Back-UPS ES 650Y-IN FW:853.m4.I USB FW:m4
  iSerialNumber = 0x0002  BB0926005982  
  bNumConfigurations = 0x0001

Now what should my devfs.conf contain ? Currently it contains the 
following :


link cuaU0.0 modem
own modem root:operator
perm modem 666

link ugen0.3 usv
own usv root:operator
perm usv 666

link cuaU0.1 apcups
own apcups root:operator
perm apcups 666

Obviously, these entries are incorrect since neither my modem speaks to 
the internet nor is any signal from the APC UPS recognized. I believe 
once I have the correct devfs entries, the whole system should work 
smoothly. But please correct me if I am wrong.


Surprisingly, /etc/usb_modeswitch.d contains no entries for 12d1:140b or 
051d:*. Do I need to reinstall usb_modeswitch.d ? Or can usbconfig 
configure the devices correctly ? I am no expert here, so if yes, I 
would need the complete commands.


Thanks for any help. I am greatly indebted to FreeBSD and its philosophy 
making things 'as simple as possible, but not any simpler' - which has 
helped me learn a great deal about computers in general and managing my 
own computer in particular. But the USB related stuff still beats the 
hell out of me, so I need help here.


BTW, my system now has the usbdump command (installed from sources 
downloaded from http://biot.com/usbdump/) but no manpage.



Thanks again 
--
Regards,

Manish Jain
+91-99620-10329
___
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: How to get Huawei EC1561 USB modem working under FreeBSD 8.2 ?

2012-07-23 Thread Manish Jain

On 21-Jul-12 19:06, Matthias Apitz wrote:

El día Saturday, July 21, 2012 a las 06:01:11PM +0530, Manish Jain escribió:


Hello Erich/Matthias,

Thanks for your responses.

I do not have the usbdump command on my system. usbconfig gives the
following output :
...
ugen0.2:Back-UPS ES 650Y-IN FW:853.m4.I USB FW:m4 American Power
Conversion  at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.2:HUAWEI Mobile HUAWEI TECHNOLOGIES  at usbus1, cfg=0 md=HOST
spd=FULL (12Mbps) pwr=ON
ugen2.2:USB2.0 Hub vendor 0x05e3  at usbus2, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=SAVE


PFA ppp.log. As you will find, it repeatedly complains of /dev/cuaU0.0
being an invalid file. But the output of 'ls -l' shows the contrary :

...
crw-rw  1 uucp  dialer  0, 143 Jul 21 17:38 cuaU0.0
crw-rw  1 uucp  dialer  0, 144 Jul 21 17:38 cuaU0.0.init
crw-rw  1 uucp  dialer  0, 145 Jul 21 17:38 cuaU0.0.lock
crw-rw  1 uucp  dialer  0, 149 Jul 21 17:38 cuaU0.1
crw-rw  1 uucp  dialer  0, 150 Jul 21 17:38 cuaU0.1.init
crw-rw  1 uucp  dialer  0, 151 Jul 21 17:38 cuaU0.1.lock
crw-rw  1 uucp  dialer  0, 155 Jul 21 17:38 cuaU0.2
crw-rw  1 uucp  dialer  0, 156 Jul 21 17:38 cuaU0.2.init
crw-rw  1 uucp  dialer  0, 157 Jul 21 17:38 cuaU0.2.lock
crw-rw  1 uucp  dialer  0,  44 Jul 21 17:38 cuau0
crw-rw  1 uucp  dialer  0,  45 Jul 21 17:38 cuau0.init
crw-rw  1 uucp  dialer  0,  46 Jul 21 17:38 cuau0.lock
...


Thanks for any tips/help. Which port do I need to install to get usbdump ?

First of all, do not top-post.

'usbdump' is part of the system, but only from beginning at some
version;

Are you sure that /dev/cuaU0.0 belongs to the modem? Please, detach it,
look with 'ls -l /dev/cuaU*' if it went away, attach it again.
Please show the messages from /var/log/messages on attach.

If the /dev/cuaU0.0 device really belongs to the modem, install 'kermit'
from the ports, create a file ~/.kermrc with

set line  /dev/cuaU0.0
set speed 9600
set escape21
set carrier-watch off
set rec   pack 1000
set send  pack 1000
set window5
set prompt FreeBSD Kermit

and check it you can talk to the modem with kermit; the command ATI2
should say something about the modem device.

One should be first able to talk to the modem with a terminal (like
kermit), then bring chat(1) to work and after this watch ppp log, in
that order.

HIH

matthias


Hi,

I am still stuck because I can't know the syntax to run usbdump. usbdump 
says use the id's provided by lsusb but I forgot to install 
sysutils/usbutils while I still had the EC1261 Huawei stick.


Can someone please send me the sources for this port (sysutils/usbutils) 
? I will need the complete sources for PORTVERSION 0.86 as a gzipped tar 
(please remove freebsd-questions@freebsd.org from addresses if sending), 
as I cannot currently connect my FreeBSD box to the internet.


BTW, cuaU0[.*] are always there on my system, whether my EC1561 stick is 
plugged in or not. So I am surely using the wrong device as the modem. 
The following lines are there in my devfs.conf :


link ugen0.2 usv
own usv root:operator
perm usv 666

link cuaU0.0 modem
own modem root:operator
perm modem 666


Thank you 

Regards,

Manish Jain
+91-99620-10329


___
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: How to get Huawei EC1561 USB modem working under FreeBSD 8.2 ?

2012-07-21 Thread Manish Jain
-rw-rw-  1 root  wheel   0, 100 Jul 21 17:38 mixer1
crw-rw-rw-  1 root  wheel   0, 101 Jul 21 17:38 mixer2
crw-rw-rw-  1 root  wheel   0, 102 Jul 21 17:38 mixer3
lrwxr-xr-x  1 root  wheel7 Jul 21 17:38 modem - cuaU0.0
crw---  1 root  kmem0,  15 Jul 21 17:38 nfslock
dr-xr-xr-x  2 root  wheel  512 Jul 21 17:38 ntfs
crw-rw-rw-  1 root  wheel   0,  28 Jul 21 17:44 null
crw---  1 root  operator0, 133 Jul 21 23:08 pass0
crw---  1 root  operator0, 134 Jul 21 23:08 pass1
crw-r--r--  1 root  wheel   0,  30 Jul 21 17:38 pci
crw---  1 root  wheel   0,  49 Jul 21 17:38 ppi0
crw-rw-rw-  1 root  wheel   0,  52 Jul 21 17:38 psm0
crw-rw-rw-  1 root  wheel   0,   9 Jul 21 17:38 ptmx
crw-rw-rw-  1 root  wheel   0,   7 Jul 21 23:08 random
cr--r--r--  1 root  wheel   0,   6 Jul 21 17:38 sndstat
lrwxr-xr-x  1 root  wheel4 Jul 21 17:38 stderr - fd/2
lrwxr-xr-x  1 root  wheel4 Jul 21 17:38 stdin - fd/0
lrwxr-xr-x  1 root  wheel4 Jul 21 17:38 stdout - fd/1
crw---  1 root  wheel   0,  11 Jul 21 17:38 sysmouse
crw---  1 root  wheel   0, 140 Jul 21 17:38 ttyU0.0
crw---  1 root  wheel   0, 141 Jul 21 17:38 ttyU0.0.init
crw---  1 root  wheel   0, 142 Jul 21 17:38 ttyU0.0.lock
crw---  1 root  wheel   0, 146 Jul 21 17:38 ttyU0.1
crw---  1 root  wheel   0, 147 Jul 21 17:38 ttyU0.1.init
crw---  1 root  wheel   0, 148 Jul 21 17:38 ttyU0.1.lock
crw---  1 root  wheel   0, 152 Jul 21 17:38 ttyU0.2
crw---  1 root  wheel   0, 153 Jul 21 17:38 ttyU0.2.init
crw---  1 root  wheel   0, 154 Jul 21 17:38 ttyU0.2.lock
crw---  1 root  wheel   0,  41 Jul 21 17:38 ttyu0
crw---  1 root  wheel   0,  42 Jul 21 17:38 ttyu0.init
crw---  1 root  wheel   0,  43 Jul 21 17:38 ttyu0.lock
crw---  1 root  tty 0,  54 Jul 21 17:45 ttyv0
crw---  1 root  wheel   0,  55 Jul 21 17:38 ttyv1
crw---  1 root  wheel   0,  56 Jul 21 17:38 ttyv2
crw---  1 root  wheel   0,  57 Jul 21 17:38 ttyv3
crw---  1 root  wheel   0,  58 Jul 21 17:38 ttyv4
crw---  1 root  wheel   0,  59 Jul 21 17:38 ttyv5
crw---  1 root  wheel   0,  60 Jul 21 17:38 ttyv6
crw---  1 root  wheel   0,  61 Jul 21 17:38 ttyv7
crw---  1 root  wheel   0,  62 Jul 21 17:38 ttyv8
crw---  1 root  wheel   0,  63 Jul 21 17:38 ttyv9
crw---  1 root  wheel   0,  64 Jul 21 17:38 ttyva
crw---  1 root  wheel   0,  65 Jul 21 17:38 ttyvb
crw---  1 root  wheel   0,  66 Jul 21 17:38 ttyvc
crw---  1 root  wheel   0,  67 Jul 21 17:38 ttyvd
crw---  1 root  wheel   0,  68 Jul 21 17:38 ttyve
crw---  1 root  wheel   0,  69 Jul 21 17:38 ttyvf
crw---  1 uucp  dialer  0, 158 Jul 21 17:38 tun0
dr-xr-xr-x  2 root  wheel  512 Jul 21 17:38 ufsid
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen0.1 - usb/0.1.0
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen0.2 - usb/0.2.0
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen1.1 - usb/1.1.0
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen1.2 - usb/1.2.0
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen2.1 - usb/2.1.0
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen2.2 - usb/2.2.0
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen3.1 - usb/3.1.0
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen4.1 - usb/4.1.0
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen5.1 - usb/5.1.0
lrwxr-xr-x  1 root  wheel9 Jul 21 17:38 ugen6.1 - usb/6.1.0
lrwxr-xr-x  1 root  wheel6 Jul 21 17:38 urandom - random
dr-xr-xr-x  2 root  wheel  512 Jul 21 17:38 usb
crw-r--r--  1 root  operator0,  71 Jul 21 17:38 usbctl
lrwxr-xr-x  1 root  wheel7 Jul 21 17:38 usv - ugen0.2
crw---  1 root  operator0,  72 Jul 21 17:38 xpt0
crw-rw-rw-  1 root  wheel   0,  29 Jul 21 17:38 zero


Thanks for any tips/help. Which port do I need to install to get usbdump ?

Regards,

Manish Jain
+91-99620-10329


On 21-Jul-12 07:10, Erich Dollansky wrote:

Hi,

On Friday 20 July 2012 19:25:21 Manish Jain wrote:

I earlier had a Huawei EC1261-based USB modem which used to connect
smoothly to the internet under FreeBSD 8.2 using the u3g module. For
some reasons, I have had to switch to another provider (MTS) who swapped
the Huawei EC1261-based USB modem with a Huawei EC1561-based USB modem.
And my FreeBSD system cannot connect to the internet anymore.


both modems are not officially supported by FreeBSD.

You might get some help from the list if you provide the output of usbconfig 
and usbdump.

You run usbconfig first to find out the device numbers of the modem and then 
dump with usbdump the description of the modem.


Here are the contents of my ppp.conf (I assume authkey means password) :

There should nothing to be done here as the modem is not recognised

How to get Huawei EC1561 USB modem working under FreeBSD 8.2 ?

2012-07-20 Thread Manish Jain


Hello all,

I earlier had a Huawei EC1261-based USB modem which used to connect 
smoothly to the internet under FreeBSD 8.2 using the u3g module. For 
some reasons, I have had to switch to another provider (MTS) who swapped 
the Huawei EC1261-based USB modem with a Huawei EC1561-based USB modem. 
And my FreeBSD system cannot connect to the internet anymore.


Here are the contents of my ppp.conf (I assume authkey means password) :

default:
 set log Phase Chat LCP IPCP CCP tun command
 allow users bourne
 set device /dev/cuaU0.0
 set speed 115200
 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
 \\ AT OK-AT-OK ATFE0V1X1D2C1S0=0 OK \\dATDT\\T TIMEOUT 40 CONNECT
 set timeout 180 # 3 minute idle timer (the default)
 enable dns # request DNS info (for resolv.conf)

huawei:
 set phone #777
 set login
 set authname inter...@internet.mtsindia.in
 set authkey MTS
 set timeout 0
 disable ipv6cp
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 set dial AT+CRM=1
 accept CHAP

The u3g module is loaded at boot-time via /etc/rc.local :

kldload u3g
sleep 3
ppp -auto huawei

I am using opendns/google servers for DNS in resolv.conf :

208.67.222.222
8.8.8.8

DNS cannot really be an issue because when I ping the IP address 
208.67.222.222, I get 100% packet loss.


Can someone please point me in the right direction so that my FreeBSD 
system starts connecting to the internet using the new modem ?



Thank you 
--
Regards,

Manish Jain
+91-99620-10329
___
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


Question on select() : why am I getting absurd output ?

2012-01-15 Thread Manish Jain


Hi All,

I was trying to write a small demo code using the select() system call. 
Here are the sources :


#include sys/types.h
#include unistd.h
#include fcntl.h
#include iostream
#include cstring
#include cassert

int nice_child(int * fd, int * fd_close)
{
close(fd[0]);
close(fd_close[0]);
close(fd_close[1]);

char buffer[32];

while (1)
{
sleep(3);
strcpy(buffer, I love my wife !);
write(fd[1], buffer, strlen(buffer) + 1);
}

return 0;
}

int naughty_child(int * fd, int * fd_close)
{
close(fd[0]);
close(fd_close[0]);
close(fd_close[1]);

char buffer[32];

while (1)
{
sleep(4);
strcpy(buffer, I love your wife !);
write(fd[1], buffer, strlen(buffer) + 1);
}

return 0;
}

int main()
{
int fd_nice[2];
int fd_naughty[2];

pipe(fd_nice);
pipe(fd_naughty);

if (fork() == 0)
{
return nice_child(fd_nice, fd_naughty);
}
else
{
if (fork() == 0)
{
return naughty_child(fd_naughty, fd_nice);
}
}

close(fd_nice[1]);
close(fd_naughty[1]);

fd_set fdset;
char buffer[64];
int fd = (*fd_naughty  *fd_nice) ? *fd_naughty : *fd_nice;

FD_ZERO(fdset);
FD_SET(fd_nice[0], fdset);
FD_SET(fd_naughty[0], fdset);

while (1)
{
int result = select(fd + 1, fdset, 0, 0, 0);
assert(result  0);

if (FD_ISSET(fd_nice[0], fdset))
{
int result = read(fd, buffer, sizeof(buffer));
buffer[result] = 0;

std::cout  Nice child sent :   buffer  
std::endl;
}

if (FD_ISSET(fd_naughty[0], fdset))
{
int result = read(fd, buffer, sizeof(buffer));
buffer[result] = 0;

std::cout  Naughty child sent :   buffer  
std::endl;
}
}

return 0;
}

I was expecting the output to be like :

Nice child sent : I love my wife !
Naughty child sent : I love your wife !
Nice child sent : I love my wife !

But what I actually get is :

Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !

Can somebody throw some light on what might be wrong ?


Thank you 
Regards

Manish Jain
invalid.poin...@gmail.com

___
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: Question on select() : why am I getting absurd output ?

2012-01-15 Thread Manish Jain

Sometimes I do wonder how much stupid I can be.


Thanks
MJ

On 15-Jan-12 22:49, ss griffon wrote:

On Sun, Jan 15, 2012 at 8:48 AM, Manish Jaininvalid.poin...@gmail.com  wrote:


Hi All,

I was trying to write a small demo code using the select() system call. Here
are the sources :

#includesys/types.h
#includeunistd.h
#includefcntl.h
#includeiostream
#includecstring
#includecassert

int nice_child(int * fd, int * fd_close)
{
close(fd[0]);
close(fd_close[0]);
close(fd_close[1]);

char buffer[32];

while (1)
{
sleep(3);
strcpy(buffer, I love my wife !);
write(fd[1], buffer, strlen(buffer) + 1);
}

return 0;
}

int naughty_child(int * fd, int * fd_close)
{
close(fd[0]);
close(fd_close[0]);
close(fd_close[1]);

char buffer[32];

while (1)
{
sleep(4);
strcpy(buffer, I love your wife !);
write(fd[1], buffer, strlen(buffer) + 1);
}

return 0;
}

int main()
{
int fd_nice[2];
int fd_naughty[2];

pipe(fd_nice);
pipe(fd_naughty);

if (fork() == 0)
{
return nice_child(fd_nice, fd_naughty);
}
else
{
if (fork() == 0)
{
return naughty_child(fd_naughty, fd_nice);
}
}

close(fd_nice[1]);
close(fd_naughty[1]);

fd_set fdset;
char buffer[64];
int fd = (*fd_naughty  *fd_nice) ? *fd_naughty : *fd_nice;

FD_ZERO(fdset);
FD_SET(fd_nice[0],fdset);
FD_SET(fd_naughty[0],fdset);

while (1)
{
int result = select(fd + 1,fdset, 0, 0, 0);
assert(result  0);

if (FD_ISSET(fd_nice[0],fdset))
{
int result = read(fd, buffer, sizeof(buffer));
buffer[result] = 0;

std::cout  Nice child sent :   buffer
std::endl;
}

if (FD_ISSET(fd_naughty[0],fdset))
{
int result = read(fd, buffer, sizeof(buffer));
buffer[result] = 0;

std::cout  Naughty child sent :   buffer
std::endl;
}
}

return 0;
}

I was expecting the output to be like :

Nice child sent : I love my wife !
Naughty child sent : I love your wife !
Nice child sent : I love my wife !

But what I actually get is :

Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !
Nice child sent : I love your wife !

Can somebody throw some light on what might be wrong ?


Thank you
Regards

Manish Jain
invalid.poin...@gmail.com

___
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




It looks like you are always reading from the same file descriptor
'fd'.  Instead you should read from fd_naughty[0] or fd_nice[0] based
on your FD_ISSET checks.  Also, don't forget to wait() for your child
processes.


___
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


SSL server refusing connection : ECONNREFUSED

2011-11-16 Thread Manish Jain


Hello,

I am new to openssl and trying to create a demo client and server which 
use SSL v3. But the server, for some reason I cannot figure out, always 
refuses connections with the client reporting errno as ECONNREFUSED.


Can somebody please help me out with what might be the problem ? 
Relevant portions of sources for server and client are available below.


Thank you 
Regards
Manish Jain
invalid.poin...@gmail.com

//server
SSL_METHOD * lpmethod = SSLv3_method();
SSL_CTX * lpctx = SSL_CTX_new(lpmethod);

int result = SSL_CTX_use_certificate_chain_file(lpctx, CERT_FILE);
assert(result  0);

result = SSL_CTX_use_PrivateKey_file(lpctx, KEY_FILE, 
SSL_FILETYPE_PEM);

assert(result  0);

result = SSL_CTX_check_private_key(lpctx);
assert(result != 0);

sockaddr_in addr;

int sock = socket(AF_INET, SOCK_STREAM, 0);
sockaddr_in sin;
int val = 1;

memset((char *)addr, 0, sizeof(addr));
addr.sin_addr.s_addr=INADDR_ANY;
addr.sin_family = AF_INET;
addr.sin_port = htons(PORT);
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, val, sizeof(val));

bind(sock, (sockaddr *) sin, sizeof(sin));
result = listen(sock,5);
std::cout  listen returned   result  std::endl;

int new_sock = accept(sock, 0, 0);

//client :
SSL_library_init();
SSL_load_error_strings();

SSL_METHOD * lpmethod = SSLv3_method();
SSL_CTX * lpctx = SSL_CTX_new(lpmethod);

int result = SSL_CTX_use_certificate_chain_file(lpctx, CERT_FILE);
assert(result  0);

result = SSL_CTX_use_PrivateKey_file(lpctx, KEY_FILE, 
SSL_FILETYPE_PEM);

assert(result  0);

result = SSL_CTX_check_private_key(lpctx);
assert(result != 0);

SSL_CTX_set_verify(lpctx, SSL_VERIFY_PEER, 0);

sockaddr_in addr;

memset((char *) addr, 0, sizeof(addr));
addr.sin_addr.s_addr = inet_addr(127.0.0.1);
addr.sin_family = AF_INET;
addr.sin_port = htons();

int sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
assert(sock  0);

result = connect(sock, (struct sockaddr *)addr, sizeof(addr));


___
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 needed : My FreeBSD8.2-amd64 installation keeps crashing

2011-08-01 Thread Manish Jain

   Hello All,
   My apologies for the last message and for the delay in rectifying any
   wrong impression it might have created. It was not FreeBSD8.2-amd64
   that was the problem. As I found out, it was the system thermals that
   was causing my system to crash. I had to turn on my BIOS's temperature
   warnings to discover the root cause. Playing GNU-Chess against the
   built-in engine[s] accelerates the rise in system temperatures
   dramatically.
   Can anyone please suggest an amd64 (phenom-AM2+) motherboard with
   smbus support for FreeBSD and capable of running Windows 2000 ?
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com
   On 17-Jul-11 17:28, Manish Jain wrote:

   Hi all,
   My FreeBSD8.2-amd64 installation keeps crashing - power off in a flash
   with no warning. I can't imagine what might be the problem. I ran
   memtest86+ and it cleared Pass 1 with no errors. Win XP runs without
   any problems. I have pasted below XP Device Manager's system summary
   report below. (N: is an ext2fs slice and X: is the FreeBSD slice).
   Can somebody suggest what might the problem be ? There are a couple of
   points of interest :
   1) there are no /dev/smbus* nodes
   2) FreeBSD8.0-amd64 ran on my system without problems.
   Thanks in advance for any help. Meanwhile I am about to start running
   memtest86+ again to go through 2 Passes.
   Regards
   Manish Jain
   [2]invalid.poin...@gmail.com
  System Resource Report-  Page: 1
   SYSTEM SUMMARY 
  Windows Version: Windows 5.1 Service Pack 3 (Build 2600)
  Registered Owner: Manish Jain
  Registered Organization: Cognizant
  Computer Name: CTS-235050
  Machine Type: AT/AT COMPATIBLE
  System BIOS Version: GBT- 42302e31
  System BIOS Date: 01/02/09
  Processor Type: x86 Family 16 Model 2 Stepping 3
  Processor Vendor: AuthenticAMD
  Number of Processors: 4
  Physical Memory: 3071 MB
   DISK DRIVE INFO 
Drive C:
  Type: Fixed disk drive
  Total Space: 33,032,691,712 bytes
  Free Space: 13,457,170,432 bytes
  Heads: 16
  Cylinders: 620178
  Sectors Per Track: 63
  Bytes Per Sector: 512
Drive D:
  Type: Fixed disk drive
  Total Space: 240,836,165,632 bytes
  Free Space: 41,083,314,176 bytes
  Heads: 16
  Cylinders: 620178
  Sectors Per Track: 63
  Bytes Per Sector: 512
Drive F:
  Type: CD-ROM drive
  Total Space: 33,554,432 bytes
Drive N:
  Type: Fixed disk drive
  Total Space: 4,258,791,424 bytes
  Free Space: 2,774,253,568 bytes
  Heads: 16
  Cylinders: 620178
  Sectors Per Track: 63
  Bytes Per Sector: 512
Drive X:
  Type: Fixed disk drive
  Total Space: 37,434,163,200 bytes
  Free Space: 3,302,391,808 bytes
  Heads: 16
  Cylinders: 620178
  Sectors Per Track: 63
  Bytes Per Sector: 512
   IRQ SUMMARY 
  IRQ Usage Summary:
(ISA)  0High precision event timer
(ISA)  1Standard 101/102-Key or Microsoft Natural PS/2
   Keyboard
(ISA)  4Communications Port (COM1)
  System Resource Report-  Page: 2
(ISA)  8High precision event timer
(ISA)  9Microsoft ACPI-Compliant System
(ISA)  9AEMPH6YR IDE Controller
(ISA) 12PS/2 Compatible Mouse
(ISA) 13Numeric data processor
(ISA) 14Primary IDE Channel
(PCI) 16Standard OpenHCD USB Host Controller
(PCI) 16Standard OpenHCD USB Host Controller
(PCI) 16Microsoft UAA Bus Driver for High Definition
   Audio
(PCI) 17Standard Enhanced PCI to USB Host Controller
(PCI) 18ATI Radeon HD 3200 Graphics
(PCI) 18PCI standard PCI-to-PCI bridge
(PCI) 18Realtek RTL8168C(P)/8111C(P) PCI-E Gigabit
   Ethernet NIC
(PCI) 18Standard OpenHCD USB Host Controller
(PCI) 18Standard OpenHCD USB Host Controller
(PCI) 18Standard OpenHCD USB Host Controller
(PCI) 19Microsoft UAA Bus Driver for High Definition
   Audio
(PCI) 19Standard Enhanced PCI to USB Host Controller
(PCI) 22Standard Dual Channel PCI IDE Controller
(PCI) 22Texas Instruments OHCI Compliant IEEE 1394 Host
   Controller
   DMA USAGE SUMMARY 
  DMA Usage Summary:
 3ECP

Help needed : My FreeBSD8.2-amd64 installation keeps crashing

2011-07-17 Thread Manish Jain

   Hi all,
   My FreeBSD8.2-amd64 installation keeps crashing - power off in a flash
   with no warning. I can't imagine what might be the problem. I ran
   memtest86+ and it cleared Pass 1 with no errors. Win XP runs without
   any problems. I have pasted below XP Device Manager's system summary
   report below. (N: is an ext2fs slice and X: is the FreeBSD slice).
   Can somebody suggest what might the problem be ? There are a couple of
   points of interest :
   1) there are no /dev/smbus* nodes
   2) FreeBSD8.0-amd64 ran on my system without problems.
   Thanks in advance for any help. Meanwhile I am about to start running
   memtest86+ again to go through 2 Passes.
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com
  System Resource Report-  Page: 1
   SYSTEM SUMMARY 
  Windows Version: Windows 5.1 Service Pack 3 (Build 2600)
  Registered Owner: Manish Jain
  Registered Organization: Cognizant
  Computer Name: CTS-235050
  Machine Type: AT/AT COMPATIBLE
  System BIOS Version: GBT- 42302e31
  System BIOS Date: 01/02/09
  Processor Type: x86 Family 16 Model 2 Stepping 3
  Processor Vendor: AuthenticAMD
  Number of Processors: 4
  Physical Memory: 3071 MB
   DISK DRIVE INFO 
Drive C:
  Type: Fixed disk drive
  Total Space: 33,032,691,712 bytes
  Free Space: 13,457,170,432 bytes
  Heads: 16
  Cylinders: 620178
  Sectors Per Track: 63
  Bytes Per Sector: 512
Drive D:
  Type: Fixed disk drive
  Total Space: 240,836,165,632 bytes
  Free Space: 41,083,314,176 bytes
  Heads: 16
  Cylinders: 620178
  Sectors Per Track: 63
  Bytes Per Sector: 512
Drive F:
  Type: CD-ROM drive
  Total Space: 33,554,432 bytes
Drive N:
  Type: Fixed disk drive
  Total Space: 4,258,791,424 bytes
  Free Space: 2,774,253,568 bytes
  Heads: 16
  Cylinders: 620178
  Sectors Per Track: 63
  Bytes Per Sector: 512
Drive X:
  Type: Fixed disk drive
  Total Space: 37,434,163,200 bytes
  Free Space: 3,302,391,808 bytes
  Heads: 16
  Cylinders: 620178
  Sectors Per Track: 63
  Bytes Per Sector: 512
   IRQ SUMMARY 
  IRQ Usage Summary:
(ISA)  0High precision event timer
(ISA)  1Standard 101/102-Key or Microsoft Natural PS/2
   Keyboard
(ISA)  4Communications Port (COM1)
  System Resource Report-  Page: 2
(ISA)  8High precision event timer
(ISA)  9Microsoft ACPI-Compliant System
(ISA)  9AEMPH6YR IDE Controller
(ISA) 12PS/2 Compatible Mouse
(ISA) 13Numeric data processor
(ISA) 14Primary IDE Channel
(PCI) 16Standard OpenHCD USB Host Controller
(PCI) 16Standard OpenHCD USB Host Controller
(PCI) 16Microsoft UAA Bus Driver for High Definition
   Audio
(PCI) 17Standard Enhanced PCI to USB Host Controller
(PCI) 18ATI Radeon HD 3200 Graphics
(PCI) 18PCI standard PCI-to-PCI bridge
(PCI) 18Realtek RTL8168C(P)/8111C(P) PCI-E Gigabit
   Ethernet NIC
(PCI) 18Standard OpenHCD USB Host Controller
(PCI) 18Standard OpenHCD USB Host Controller
(PCI) 18Standard OpenHCD USB Host Controller
(PCI) 19Microsoft UAA Bus Driver for High Definition
   Audio
(PCI) 19Standard Enhanced PCI to USB Host Controller
(PCI) 22Standard Dual Channel PCI IDE Controller
(PCI) 22Texas Instruments OHCI Compliant IEEE 1394 Host
   Controller
   DMA USAGE SUMMARY 
  DMA Usage Summary:
 3ECP Printer Port (LPT1)
 4Direct memory access controller
   MEMORY SUMMARY 
  Memory Usage Summary:
[ - 0009]  System board
  [ - 0FFF]  Motherboard resources
[000A - 000B]  PCI bus
  [000A - 000B]  PCI standard PCI-to-PCI bridge
[000A - 000B]  ATI Radeon HD 3200 Graphics
[000C - 000D]  PCI bus
  [000CEA00 - 000C]  System board
[000F - 000F7FFF]  System board
[000F8000 - 000FBFFF]  System board
[000FC000 - 000F]  System board

Re: disk spinning continuously + cpu possibly overheating = sudden death

2011-07-10 Thread Manish Jain

   Hi Chuck,
   I ran memtest86+ by loading it from the loader prompt. It completed
   Pass 1 with no errors in about 45 minutes. While I'll re-run
   memtest86+ for at least 2 passes tonight, I more suspect bad blocks in
   my ffs slice. So I am planning to install sysutils/smartmontools and
   run smartctl on /dev/ad8s2 (the ffs slice). Is there any port for
   monitoring system thermals, particularly CPU ?
   Regards
   Manish Jain
   On 09-Jul-11 22:24, Chuck Swiger wrote:

On Jul 9, 2011, at 9:22 AM, Manish Jain wrote:

What do I make of it when the system runs flawlessly both on Win XP and FreeBSD
-8.0-amd64 ?

That's interesting but inconclusive.  Can you run prime95 testing overnight und
er WinXP without issues?  Or memtest86?

BTW, 8.2 does NOT - for reasons unfathomable to me - install /usr/sbin/apmd. I 
don't know how significant that is, but I have had to insert into rc.conf :

apm_enable=NO
apmd_enable=NO

ACPI replaced APM around 2000.  (I'm assuming you don't have a 11-year-old quad
-core Phenom system, since AMD didn't make such processors until 2007 or 2008.)

Regards,
___
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


disk spinning continuously + cpu possibly overheating = sudden death

2011-07-09 Thread Manish Jain

   Hello all,
   I am running FreeBSD-8.2-amd64 on a Western Digital 320 GD disk and a
   quad-core AMD Phenom processor. After booting, the disk keeps
   continuously (meaning continuous I/O) and after a couple of hours (on
   the console with the X server not running), suddenly the whole system
   dies, powering off in a flash. I suspect the continuous I/O is causing
   is a CPU overheat which results in this behaviour. The strange thing
   is when I ran a script to ktrace and kdump, there is no sign of any
   unwarranted I/O. Can anyone suggest what possibly be wrong with my
   system ? I have disabled as much as possible in rc.conf and
   syslog.conf to prevent I/O. My script and the output are pasted below.
   BTW, the system runs flawlessly both on Win XP and FreeBSD-8.0-amd64.
   The reason I do not want to install FreeBSD-8.0-amd64 is that its Logo
   saver, one of my al-time favourites, does not work. In 8.2, it does
   work. One thing I should mention is that, apart from swap, I have only
   one partition / (35 GB). No other mountpoints.
   BTW, does FreeBSD have anything like Linux badblocks to check for any
   bad sectors in hard disks ?
   Thanks for any help.
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com
   #!/usr/local/bin/bash
   ktrace -dip 0
   sleep 10
   ktrace -C
   kdump -m64 | egrep '\read\|\write\'  ~/diskio.log
   exit 0
   Here are the results :
 1640 bash CALL  read(0xff,0x800e23080,0x77)
 1640 bash GIO   fd 255 read 82 bytes
 1640 bash RET   read 82/0x52
 1642 sleepCALL  read(0x3,0x7fffe170,0x80)
 1642 sleepGIO   fd 3 read 128 bytes
 1642 sleepRET   read 128/0x80
 1642 sleepCALL  read(0x3,0x800533000,0xb4)
 1642 sleepGIO   fd 3 read 180 bytes
 1642 sleepRET   read 180/0xb4
 1642 sleepGIO   fd 3 read 4096 bytes
  858 ppp  CALL  read(0,0x801420140,0x800)
  858 ppp  GIO   fd 0 read 18 bytes
  858 ppp  RET   read 18/0x12
  858 ppp  CALL  read(0,0x801420140,0x800)
  858 ppp  GIO   fd 0 read 53 bytes
  858 ppp  RET   read 53/0x35
  858 ppp  CALL  write(0x6,0x7fffd980,0x34)
  858 ppp  RET   write 52/0x34
  858 ppp  CALL  read(0x6,0x7fffe320,0x804)
  858 ppp  GIO   fd 6 read 44 bytes
  858 ppp  RET   read 44/0x2c
  858 ppp  CALL  write(0,0x80145b138,0x2d)
  858 ppp  RET   write 45/0x2d
  858 ppp  CALL  read(0,0x801420140,0x800)
  858 ppp  GIO   fd 0 read 53 bytes
  858 ppp  RET   read 53/0x35
  858 ppp  CALL  write(0x6,0x7fffd980,0x34)
  858 ppp  RET   write 52/0x34
  858 ppp  CALL  read(0x6,0x7fffe320,0x804)
  858 ppp  GIO   fd 6 read 44 bytes
  858 ppp  RET   read 44/0x2c
  858 ppp  CALL  write(0,0x80145b338,0x2e)
  858 ppp  RET   write 46/0x2e
 1640 bash CALL  read(0xff,0x800e23080,0x77)
 1640 bash GIO   fd 255 read 73 bytes
   kdump -m64 | egrep '\\read\\|\\write\\'  ~/diskio.log
 1640 bash RET   read 73/0x49
 1643 ktrace   CALL  read(0x3,0x7fffe140,0x80)
 1643 ktrace   GIO   fd 3 read 128 bytes
 1643 ktrace   RET   read 128/0x80
 1643 ktrace   CALL  read(0x3,0x800534000,0xb4)
 1643 ktrace   GIO   fd 3 read 180 bytes
 1643 ktrace   RET   read 180/0xb4
 1643 ktrace   GIO   fd 3 read 4096 bytes

References

   1. mailto:invalid.poin...@gmail.com
___
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: disk spinning continuously + cpu possibly overheating = sudden death

2011-07-09 Thread Manish Jain

   Hi Chuck,
   What do I make of it when the system runs flawlessly both on Win XP
   and FreeBSD-8.0-amd64 ? BTW, 8.2 does NOT - for reasons unfathomable
   to me - install /usr/sbin/apmd. I don't know how significant that is,
   but I have had to insert into rc.conf :
   apm_enable=NO
   apmd_enable=NO
   Thanks for any help.
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com
   On 09-Jul-11 19:59, Chuck Swiger wrote:

On Jul 9, 2011, at 3:53 AM, Manish Jain wrote:

I am running FreeBSD-8.2-amd64 on a Western Digital 320 GD disk and a
  quad-core AMD Phenom processor. After booting, the disk keeps
  continuously (meaning continuous I/O) and after a couple of hours (on
  the console with the X server not running), suddenly the whole system
  dies, powering off in a flash. I suspect the continuous I/O is causing
  is a CPU overheat which results in this behaviour.

While you probably do have flaky hardware causing problems, even under the wors
t case situation, a modern hard drive doesn't use more than about 10W even unde
r full load (ie, continuous writes).  Compare that with the 125W thermal design
 rating of a 4-core Phenom.  If your system is overheating, it's not because of
 what a hard drive is doing.

It should be easy to tell if thermals are an issue-- is the CPU heat sink getti
ng too hot to touch just before this shutdown?  If so, it's likely to be a prob
lem with a cooling fan or heatsink attachment.

Also, what is it that makes you think your disk is doing continuous I/O?
What does iostat 5 or similar show?

Regards,

References

   1. mailto:invalid.poin...@gmail.com
___
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: PID 11 using 400% CPU

2011-07-05 Thread Manish Jain

   Hello Dan,
   I was having multiple problems with my x86 installation, apart from
   the disc spinning continuously. Despite tuning many sysctl parameters,
   X clients would not open for non-root users (max number of clients
   reached); for root, they would open, but after about 30 minutes of
   playing xboard (gnuchess), the computer would simply shut down
   (without even a proper shut down sequence; worse that DOS BSOD - power
   off in a flash); while up, the speed and performance of the system was
   abysmal.
   I therefore yesterday downloaded the iso for amd64, which is the
   architecture of my system. I am going to install it and try it out
   over the weekend. Hope things will be better this time around.
   Thanks for all your suggestions and advice though.
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com
   On 05-Jul-11 19:50, Dan Nelson wrote:

In the last episode (Jul 05), manish jain said:

On 30 June 2011 10:26, Dan Nelson [2]dnel...@allantgroup.com wrote:

In the last episode (Jun 30), Manish Jain said:

   I have a strange problem with my 8.1 box. After booting, the hard
   disk goes into a full-speed never-ending spin.

To see what disk I/O is being done, try running ktrace -dip 0 ; sleep
10 ; ktrace -C, to capture all syscalls done on the entire system (pid
0 plus children) for 10 seconds, then run kdump -m64 | less to view
the results.  Look for read or write calls.

It looks like ppp is doing a lot of read and write operations, which keeps
the disk spinning.  How do I set this right ?  Is there something wrong
with my ppp.conf (see below) ?

I bet that if you ran fstat or lsof on the ppp process, all the writes are
actually to your serial device or a tun device, not to disk.  ppp is
unlikely to cause much disk I/O.  You'll have to filter out the ppp process
and check your kdump output again.

References

   1. mailto:invalid.poin...@gmail.com
   2. mailto:dnel...@allantgroup.com
___
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: PID 11 using 400% CPU

2011-07-04 Thread manish jain
Hello Dan,

It looks like ppp is doing a lot of read and write operations, which keeps
the disk spinning. How do I set this right ? Is there something wrong with
my ppp.conf (see below) ?

ppp.conf :

default:
 set log Phase Chat LCP IPCP CCP tun command
 allow users bourne
# ident user-ppp VERSION (built COMPILATIONDATE)
 set device /dev/cuaU0.0
 set speed 115200
 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
 \\ AT OK-AT-OK ATFE0V1X1D2C1S0=0 OK \\dATDT\\T TIMEOUT 40 CONNECT
 set timeout 180 # 3 minute idle timer (the default)
 enable dns # request DNS info (for resolv.conf)

huawei:
 set phone #777
 set login
 set authname internet
 set authkey 
 set timeout 180
 disable ipv6cp
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 accept CHAP


On 30 June 2011 10:26, Dan Nelson dnel...@allantgroup.com wrote:

 In the last episode (Jun 30), Manish Jain said:
 
 Hello All,
 I have a strange problem with my 8.1 box. After booting, the hard disk
 goes into a full-speed never-ending spin.

 To see what disk I/O is being done, try running ktrace -dip 0 ; sleep 10 ;
 ktrace -C, to capture all syscalls done on the entire system (pid 0 plus
 children) for 10 seconds, then run kdump -m64 | less to view the results.
 Look for read or write calls.

  'ps waux' always shows pid
 11 as taking 400% CPU utilization :
 /root # ps -up 11
 USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
 root11 400.0  0.0 032  ??  RL7:22PM 166:35.46 [idle]
 I have tried multiple tweaks to resolve this - all to no effect. The

 As for this, what's to resolve?  The idle process is a placeholder with one
 thread per CPU that accounts for time the CPU isn't doing any work.  If you
 want to reduce it's CPU use, run other CPU-intensive processes :)  BTW,
 Windows has the same thing if you look at task manager; it's called System
 Idle Process there.

 --
Dan Nelson
dnel...@allantgroup.com

___
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


What is xz ?

2011-07-02 Thread Manish Jain

   Hi all,
   I just downloaded FreeBSD-8.2-RELEASE-i386-dvd1.iso.xz and the md5
   checksum is correct. Can someone please tell me what does that xz at
   the end stand for ? It looks like it stands for some kind of
   compression (gzip/bzip2/some new format), but I can't figure out
   exactly which one.
   Thank you 
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com

References

   1. mailto:invalid.poin...@gmail.com
___
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


PID 11 using 400% CPU

2011-06-29 Thread Manish Jain

   Hello All,
   I have a strange problem with my 8.1 box. After booting, the hard disk
   goes into a full-speed never-ending spin. 'ps waux' always shows pid
   11 as taking 400% CPU utilization :
   /root # ps -up 11
   USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
   root11 400.0  0.0 032  ??  RL7:22PM 166:35.46 [idle]
   I have tried multiple tweaks to resolve this - all to no effect. The
   only thing that seems out of place is that polkitd seems to be
   missing. (I have no idea why this is the case). /etc/rc.conf states
   polkitd_enable=YES.
   This happens even in single-user mode, which I used to try to fix any
   filesystem errors with 'fsck -fy' : there were none.
   My system has only 2 partitions : ad8s2a (/) and ad8s2b (swap).
   Any pointers to what might the problem be ? Thanks in advance.
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com

References

   1. mailto:invalid.poin...@gmail.com
___
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


Can someone please help me set up my tata-photon (huawei) modem ?

2011-06-28 Thread Manish Jain

   Hi all,
   My tata-photon (huawei) modem works painlessly on Win XP. Every
   setting is auto (including getting the nameserver). The auth protocol
   is CHAP. But when I boot into FreeBSD 8.0 (stable), and run 'ppp -auto
   pmdemand' followed by 'ping [1]www.google.com' (or yahoo or any other
   site, for that matter), I always get Hostname lookup failure. BTW, I
   don't have an /etc/resolv.conf. I only configured ppp.conf (please see
   below for details). Can someone please help me set up the modem so
   that I can dial out and connect to the internet from my FreeBSD box ?
   Thanks in advance.
   Manish Jain
   This is my ppp.conf :
   default:
set log Phase Chat LCP IPCP CCP tun command
allow users guru bourne
   # ident user-ppp VERSION (built COMPILATIONDATE)
set device /dev/cuaU0
set speed 115200
set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\\ AT OK-AT-OK ATFE0V1X1D2C1S0=0 OK \\dATDT\\T TIMEOUT 40
   CONNECT
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
   pmdemand:
set phone #777
set login
set authname internet
set authkey 
set timeout 0
disable ipv6cp
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
accept CHAP

References

   1. http://www.google.com/
___
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: Can someone please help me set up my tata-photon (huawei) modem ?

2011-06-28 Thread Manish Jain

   Hello Matthias,
   Yes, I do have /dev/cuaU0.0 along with corresponding lock and init
   files, although I cannot give you the output you want right now since
   I am booted into XP with the FreeBSD 8.2 dvd image being downloaded.
   (This will hopefully finish in about 15 hours, as cygwin::ncftpget
   suggests).
   I also tried a few other things, most notably installing
   usb_modeswitch, and putting this into /etc/devd.conf :
   attach 100 {
   device-name ugen[0-9]+;
   match vendor 0x12d1;
   match product 0x1446;
   action /usr/local/bin/usb_modeswitch;
   };
   Running kldload for u3g and ucom indicates they are both already
   loaded. Running usb_modeswitch seems to have also generated some
   /dev/ttyUn.n files, along with corresponding lock and init files -
   just like the cua entries.
   The only thing that seems out of place with the current setup is that
   usb_modeswitch's wrapper (usb_modeswitch_dispatcher) needs
   /usr/local/bin/tclsh, and for some reason the FreeBSD installer
   installed it as /usr/local/bin/tclsh8.2
   I'll try fixing the above tomorrow and will try out anything
   you/someone else might have to suggest. BTW, I made a slight error in
   my original message. My system's release version is 8.1, not 8.0.
   Thank you 
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com
   On 29-Jun-11 00:16, Matthias Apitz wrote:

El día Tuesday, June 28, 2011 a las 01:47:31PM +0530, Manish Jain escribió:

   Hi all,
   My tata-photon (huawei) modem works painlessly on Win XP. Every
   setting is auto (including getting the nameserver). The auth protocol
   is CHAP. But when I boot into FreeBSD 8.0 (stable), and run 'ppp -auto
   pmdemand' followed by 'ping [1]www.google.com' (or yahoo or any other
   site, for that matter), I always get Hostname lookup failure. BTW, I
   don't have an /etc/resolv.conf. I only configured ppp.conf (please see
   below for details). Can someone please help me set up the modem so
   that I can dial out and connect to the internet from my FreeBSD box ?
   Thanks in advance.
   Manish Jain
   This is my ppp.conf :

...

Hello Manish,

Before digging into the ppp details (there is a log about in
/var/log/ppp.log), do you have after attaching the Huawei modem a
device /dev/cuaU0 at all? What does the following command gives:

ls -l /dev/cua*
chat -vs  /dev/cuaU0.0  /dev/cuaU0.0 '' AT OK 'ATI2' O
printf \n

HIH

matthias

References

   1. mailto:invalid.poin...@gmail.com
___
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: Can someone please help me set up my tata-photon (huawei) modem ?

2011-06-28 Thread Manish Jain

   Hello Matthias,
   I got it to work !  I symlinked /usr/local/bin/tclsh8.2 as tclsh, but
   that was probably not the only factor involved. In a streak of
   unintended brilliance, I had set the device in ppp.conf as /dev/cuaU0,
   whereas there is no such device - as /var/log/ppp.log complained.
   (Thanks for your suggestion for looking up the log). I changed
   /dev/cuaU0 to /dev/cuaU0.0, as a matter of courtesy. Now my FreeBSD
   box is connected to the internet and I don't have to boot into XP
   again (as long as I can hope).
   Thanks again
   Manish Jain
   On 29-Jun-11 00:55, Manish Jain wrote:

   Hello Matthias,
   Yes, I do have /dev/cuaU0.0 along with corresponding lock and init
   files, although I cannot give you the output you want right now since
   I am booted into XP with the FreeBSD 8.2 dvd image being downloaded.
   (This will hopefully finish in about 15 hours, as cygwin::ncftpget
   suggests).
   I also tried a few other things, most notably installing
   usb_modeswitch, and putting this into /etc/devd.conf :
   attach 100 {
   device-name ugen[0-9]+;
   match vendor 0x12d1;
   match product 0x1446;
   action /usr/local/bin/usb_modeswitch;
   };
   Running kldload for u3g and ucom indicates they are both already
   loaded. Running usb_modeswitch seems to have also generated some
   /dev/ttyUn.n files, along with corresponding lock and init files -
   just like the cua entries.
   The only thing that seems out of place with the current setup is that
   usb_modeswitch's wrapper (usb_modeswitch_dispatcher) needs
   /usr/local/bin/tclsh, and for some reason the FreeBSD installer
   installed it as /usr/local/bin/tclsh8.2
   I'll try fixing the above tomorrow and will try out anything
   you/someone else might have to suggest. BTW, I made a slight error in
   my original message. My system's release version is 8.1, not 8.0.
   Thank you 
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com
   On 29-Jun-11 00:16, Matthias Apitz wrote:

El día Tuesday, June 28, 2011 a las 01:47:31PM +0530, Manish Jain escribió:

   Hi all,
   My tata-photon (huawei) modem works painlessly on Win XP. Every
   setting is auto (including getting the nameserver). The auth protocol
   is CHAP. But when I boot into FreeBSD 8.0 (stable), and run 'ppp -auto
   pmdemand' followed by 'ping [1]www.google.com' (or yahoo or any other
   site, for that matter), I always get Hostname lookup failure. BTW, I
   don't have an /etc/resolv.conf. I only configured ppp.conf (please see
   below for details). Can someone please help me set up the modem so
   that I can dial out and connect to the internet from my FreeBSD box ?
   Thanks in advance.
   Manish Jain
   This is my ppp.conf :

...

Hello Manish,

Before digging into the ppp details (there is a log about in
/var/log/ppp.log), do you have after attaching the Huawei modem a
device /dev/cuaU0 at all? What does the following command gives:

ls -l /dev/cua*
chat -vs  /dev/cuaU0.0  /dev/cuaU0.0 '' AT OK 'ATI2' O
printf \n

HIH

matthias

References

   1. mailto:invalid.poin...@gmail.com
___
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


expr problem

2011-04-10 Thread Manish Jain

   Hi Dino,
   It looks to me like you don't want to FreeBSD's expr (pretty much like
   me). You probably want to install the GNU version, which I think is
   available in the coreutils port.
   Let me know if this helps.
   Regards
   Manish Jain
___
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


How to get Huawei USB modem to work ?

2011-01-02 Thread Manish Jain

   Hello,
   From a similar thread, I picked up some information that I should try
   kldload'ing usba. But when I ran the command, I got an error message
   that there is no such module. I searched under sys/modules and there
   was no usba.ko
   Can somebody please tell me how to get my Huawei USB dial-up modem to
   work on FreeBSD 8.1 ? From dmesg, I have the following information :
   Trying to mount root from ufs:/dev/ad8s2a
   ugen0.3: HUAWEI TECHNOLOGIES at usbus0
   u3g0: Data Interface on usbus0
   u3g0: Found 3 ports.
   umass0: HUAWEI TECHNOLOGIES HUAWEI Mobile, class 0/0, rev 1.10/0.00,
   addr 3 on usbus0
   umass0:  SCSI over Bulk-Only; quirks = 0x
   umass0:0:0:-1: Attached to scbus0
   cd0 at umass-sim0 bus 0 scbus0 target 0 lun 0
   cd0: HUAWEI Mass Storage 2.31 Removable CD-ROM SCSI-0 device
   cd0: 1.000MB/s transfers
   cd0: cd present [16896 x 2048 byte records]
   (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0
   (probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error
   (probe0:umass-sim0:0:0:1): SCSI status: Check Condition
   (probe0:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not
   present)
   da0 at umass-sim0 bus 0 scbus0 target 0 lun 1
   da0: HUAWEI SD Storage 2.31 Removable Direct Access SCSI-2 device
   da0: 1.000MB/s transfers
   da0: Attempt to query device size failed: NOT READY, Medium not
   present
   drm0: ATI Radeon HD 3200 Graphics on vgapci0
   info: [drm] MSI enabled 1 message(s)
   vgapci0: child drm0 requested pci_enable_busmaster
   Any help would be greatly appreciated.
   Thanks
   Manish Jain
___
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


How to go about installing drivers for Huawei EC1261 USB stick+modem on FreeBSD ?

2010-11-07 Thread Manish Jain

   Hi,
   This is the first time I am using ppp on FreeBSD : till now I had
   exclusively used ethernet.
   I just purchased a Huawei USB stick+modem and I need to configure PPP
   for it. Can somebody kindly give me a pointer to what steps I need to
   follow ? I don't know the list of drivers I need to install to get
   internet up. I don't care much about the stick's mass storage
   capabilities; it is the modem I am interested in enabling. Would be
   really nice if someone could post a sample ppp.conf.
   Thanks
   Manish Jain
___
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


Question about expr

2010-03-27 Thread Manish Jain


Hello all,

I am used to the normal GNU-version of expr (also available on Solaris) 
and much prefer it over the FreeBSD version. The GNU version allows 
internal commands like length, substring and others which make it much 
easier to work with. Is there any way I can replace FreeBSD's native 
expr with the GNU version ? Since I believe expr does not normally ship 
as a shell-builtin, I don't think the shell can of much help in the matter.


Actually, I think it might not be a bad idea to place a port of GNU-expr 
in the ports directory. This would allow a lot a scripts to be readily 
portable to multiple environments.


Thanks for any help.


Regards

Manish Jain
invalid.poin...@gmail.com

___
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: Question about expr

2010-03-27 Thread Manish Jain

Dan Nelson wrote:

In the last episode (Mar 27), Manish Jain said:

I am used to the normal GNU-version of expr (also available on Solaris)
and much prefer it over the FreeBSD version.  The GNU version allows
internal commands like length, substring and others which make it much
easier to work with.  Is there any way I can replace FreeBSD's native expr
with the GNU version ?  Since I believe expr does not normally ship as a
shell-builtin, I don't think the shell can of much help in the matter.

Actually, I think it might not be a bad idea to place a port of GNU-expr 
in the ports directory. This would allow a lot a scripts to be readily 
portable to multiple environments.


It's part of the coreutils package.  If you install the sysutils/coreutils
port, you can symlink /bin/expr over to it (or make a copy).  I don't know
if it's 100% compatible with BSD expr, though, so you may end up breaking
scripts in the base system.



Hello Dan,

Thanks for the info. But I don't intend to symlink /bin/expr over to it. 
Instead I'll just create an alias in bash's profile and my scripts.


That should let core scripts execute with /bin/expr and my scripts to 
use the GNU-version. Which actually leads me to second question :


When you execute a script, it will automatically pick up the exports in 
.bash_profile. But even if you manually source bash's profile at the 
start of your script, only the exports get picked up and the aliases are 
ignored. Is there some way to fix this so that I don't have to set an 
alias for expr at the top each time I write a script ?



Thanks  Regards

Manish Jain
invalid.poin...@gmail.com

___
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: Need sample xorg.conf for Intel Q35 Express chipset

2010-01-06 Thread Manish Jain


Hello Warren/Polytropon,

Thanks a lot for the information.

As Polytropon stated, xorg.conf is generally not needed nowadays. So I 
just did a startx and things worked out fine. However, this behaviour is 
more Windowish than Unixish. I would like to remember the -configure 
option for my own sake.



Thanks again to you and Polytropon.

Manish Jain
invalid.poin...@gmail.com


Warren Block wrote:

On Wed, 6 Jan 2010, manish jain wrote:

I just installed FreeBSD-8.0-i386 on my office system. I can't find 
anything
like the xf86cfg/xf86config tools for configuring X that used to come 
with

FreeBSD earlier. The only utility I could find is xorg-edit, but this is
nowhere as user-friendly as the earlier tools.


Xorg -configure will create a very basic xorg.conf.  Usually I just 
copy the Device section out of that and into one of my own configs 
where all the excess has been removed.


Can somebody please send me a sample xorg.conf for Intel Q35 Express 
chipset (384 MB video RAM) and a PNP Dell LCD monitor which is 
happiest @ (1440X900 resolution/ 32-bit colour / 60 Hz refresh) in 
Windows ? The keyboard and mouse are standard USB.


First, check the Handbook X11 configuration section to see what it 
says about hal and dbus.  It describes both using them and running 
without.


I assume the default file location remains unchanged : 
/etc/X11/xorg.conf


That works, yes.

Here's a slightly-modified copy of the xorg.conf from my netbook, 
which uses hal and dbus.  You'll probably need to change the BusID to 
match your system.


Section ServerLayout
Identifier   AA1 Manually Configured
Screen   0  Screen0 0 0
EndSection

Section Files
ModulePath   /usr/local/lib/xorg/modules
FontPath /usr/local/lib/X11/fonts/misc/
FontPath /usr/local/lib/X11/fonts/TTF/
FontPath /usr/local/lib/X11/fonts/OTF
FontPath /usr/local/lib/X11/fonts/Type1/
FontPath /usr/local/lib/X11/fonts/100dpi/
FontPath /usr/local/lib/X11/fonts/75dpi/
FontPath /usr/local/lib/X11/fonts/bitstream-vera/
EndSection

Section DRI
Mode  0660
EndSection

Section Device
### Available Driver options are:-
### Values: i: integer, f: float, bool: True/False,
### string: String, freq: f Hz/kHz/MHz
### [arg]: arg optional
#Option NoAccel# [bool]
#Option SWcursor   # [bool]
#Option ColorKey   # i
#Option CacheLines # i
#Option Dac6Bit# [bool]
#Option DRI# [bool]
#Option NoDDC  # [bool]
#Option ShowCache  # [bool]
#Option XvMCSurfaces   # i
#Option PageFlip   # [bool]
Identifier  Card0
Driver  intel
VendorName  Intel Corporation
BoardName   Mobile 945GME Express Integrated Graphics Controller
BusID   PCI:0:2:0
Option  Monitor-LVDS Monitor0
Option  MonitorLayout LVDS,VGA
Option  AccelMethod EXA
EndSection

Section Screen
Identifier Screen0
Device Card0
SubSection Display
Virtual 1440 900
EndSubSection
EndSection

-Warren Block * Rapid City, South Dakota USA


___
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


Need sample xorg.conf for Intel Q35 Express chipset

2010-01-05 Thread manish jain
Hello All,

I just installed FreeBSD-8.0-i386 on my office system. I can't find anything
like the xf86cfg/xf86config tools for configuring X that used to come with
FreeBSD earlier. The only utility I could find is xorg-edit, but this is
nowhere as user-friendly as the earlier tools. Can somebody please send me a
sample xorg.conf for Intel Q35 Express chipset (384 MB video RAM) and a PNP
Dell LCD monitor which is happiest @ (1440X900 resolution/ 32-bit colour /
60 Hz refresh) in Windows ? The keyboard and mouse are standard USB.

I assume the default file location remains unchanged : /etc/X11/xorg.conf


Thanks for any help

Manish Jain
invalid.poin...@gmail.com
___
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: Need help configuring upsd, sound and logo saver on freebsd 8.0

2010-01-02 Thread Manish Jain

On 01/01/10 20:26, Matthew Seaman wrote:

Manish Jain wrote:


3) For my console saver ('logo'), I get the following error message at
boot-time :

module_register_init: MOD_LOAD (logo_saver, 0x81044010, 0)
error 19


Seems to be a long standing bug on amd64 systems: graphics based console
screen savers don't work. Any of the text based screen savers will function
correctly, although they don't look as nice.

Cheers,

Matthew




Hello Matthew,

Thanks for your reply. The only point that remains to be made is that I 
find the 'Cheers' at the end of your message quite ironic.


Being the owner of 2 kittens, I must dutifully assert that there is 
nothing to cheer about under the current situation. For the three of us, 
it has been a long-standing favourite pastime to watch Chuck in action. 
We would miss football (for some reason called soccer in the US) games / 
cricket games / movies / all other forms of entertainment, just to wait 
and watch for Chuck to show up. My kittens never managed to grab him, 
despite numerous valiant efforts. But this never undermined the 
fascination all three of us shared for Chuck.


If ever the FreeBSD operating system or AMD processors had a bug, this 
would be it. Above all, even to someone not in love with cats, having a 
genial and smiling mouse would be infinitely preferable to having such a 
nasty bug.



Cheers

Manish Jain
invalid.poin...@gmail.com
___
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


Need help configuring upsd, sound and logo saver on freebsd 8.0

2010-01-01 Thread Manish Jain


Hello All,

I recently installed FreeBSD 8.0 on my amd64 system attached to an APC 
UPS via USB and a RealTek HDA onboard soundcard. I chose 'logo' as the 
screensaver during installation, and put snd_hda_load=YES in 
/boot/loader.conf and upsd_enable=YES in /etc/rc.conf.


On booting, the sound driver gets loaded successfully and the APC UPS is 
also detected (although there is no mention of the UPS in the output of 
dmesg). I have the following problems :


1) There is no sound. AFAIK, there is a sysctl parameter to be tuned for 
setting the correct audio channel (in my case hdac1), but I have 
forgotten the parameter name. Can someone please remind me ?


2) upsd complains of inappropriate ioctl no matter which USB device node 
I set in /usr/local/etc/upsd.conf. How can I set the device name 
correctly so that the OS can shut itself down properly on extended power 
failure ?


3) For my console saver ('logo'), I get the following error message at 
boot-time :


module_register_init: MOD_LOAD (logo_saver, 0x81044010, 0) error 19


Happy New Year and Thanks for any help
Manish Jain
invalid.poin...@gmail.com



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd-questions Digest, Vol 290, Issue 12

2009-12-26 Thread Manish Jain


Hello,

I am looking a convenient way using C to retrieve the current CPU and 
memory utilization of a process of which I have the pid. Can somebody 
please give me a hint of which system-calls/library-functions to use for 
this ? I don't want to use the system() function or grep for information 
via the /proc filesystem.


I would be grateful if you could also please mention whether the 
suggested method[s] is/are FreeBSD-specific or would be portable to 
other environments like Solaris/Linux ?



Thanks for any help.

Regards  Happy New Year
Manish Jain
invalid.poin...@gmail.com


freebsd-questions-requ...@freebsd.org wrote:

Send freebsd-questions mailing list submissions to
freebsd-questions@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-questions-requ...@freebsd.org

You can reach the person managing the list at
freebsd-questions-ow...@freebsd.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of freebsd-questions digest...


Today's Topics:

   1. setlocale command is missing (Daniel Dvo??k)
   2. Re: clicky driver (Roland Smith)
   3. Package Dependency Issue (Joseph L. Casale)
   4. Re: setlocale command is missing (Rolf G Nielsen)
   5. Fwd: location of discussion of livefs
  (leeoliveshackelf...@surewest.net)
   6. Failed port upgrade (Rem P Roberti)
   7. Re: freebsd for children (Ian Smith)
   8. Re: clicky driver (Gary Kline)
   9. Re: clicky driver (Gary Kline)
  10. portaudit php vulnerabilities (Aleksandr Miroslav)
  11. Re: Firefox 3.5 and Epiphany crashing since the GNOME 2.28
  update  (Neil Short)
  12. Re: portaudit php vulnerabilities (Nerius Landys)
  13. ANNOUNCE: 64 bit 8.0-RELEASE-p1 Custom XFCE build available
  (Manolis Kiagias)
  14. Re: freebsd for children (Dh?nin Jean-Jacques)
  15. Punam Chowhan sent you a private message on Feed Share -
  pleaserespond (Punam Chowhan)
  16. Re: location of discussion of lives (Matthew Seaman)
  17. Re: clicky driver (Matthew Seaman)
  18. Re: Wireless USB adapter (Paul B Mahol)
  19. Re: clicky driver  (Nick Barnes)
  20. Re: Upgrade 7.0 to 7.2 installworld failed - SOLVED (Colin)
  21. Re: Firefox 3.5 and Epiphany crashing since the GNOME 2.28
  update (Anh Ky Huynh)
  22. Re: portaudit php vulnerabilities (Jerry)


--

Message: 1
Date: Sat, 26 Dec 2009 02:04:44 +0100
From: Daniel Dvo??k dan...@hellteam.net
Subject: setlocale command is missing
To: freebsd-questions@freebsd.org
Message-ID: 9ffca7e178c44c10994e4c52ac40e...@tocnet28.jspoj.czf
Content-Type: text/plain;   charset=utf-8

Hi,
 
I updated a mc port to the last one, version 4.7.0pre4 and wanted to run mc, but mc display a warning message that the selected display charset or source codeset does not match one set via locale. I have never seen this message since I am a user of mc. Propably it is something new in this new version. The version 4.6.2 does not show you this message durring starting application.
 
I wanted to set my locale, but I found out that command setlocale is missing on FreeBSD 7.2.
 
Files in directory /etc:
 
login.conf, login.conf.db, csh.login and profile are set as HANDBOOK recommends for language localization.
 
My shells are bash, tcsh or zsh, csh for root user. The results are the same.
 
bash:

[u...@server ~]$ LC_ALL=ISO-8859-2; export LC_ALL
-bash: varování: setlocale: LC_ALL: cannot change locale (ISO-8859-2): No 
such file or directory
 
zsh:

server% setlocale LC_ALL ISO-8859-2
zsh: command not found: setlocale

tcsh:
  

setlocale LC_ALL ISO-8859-2


setlocale: Command not found.

root csh:
server# setlocale LC_ALL ISO-8859-2
setlocale: Command not found.

So my simple question is why is setlocale command missing in FreeBSD 7.2 ? And 
if user could not use locale and setlocale commands like on Linux, how can I 
solve my problem with new version of MC ?
 
The mc message:
 
Confirmation
 
Chosen display charset (Settings-Display bits) or source codeset (in mcedit ctrl-t) does not match one set via locale. Set correct codeset manually or press Fix it to set locale default.
 
Or set 'don' task again' and press Skip
 
[ ] don't ask again
 
[ Fix it ]   [ Skip ]
 
BTW in mc there is not any settings with display bits, there is only options menu with display bits. Wrong help dialogs ?
 
Thank you
 
Daniel
 
 



--

Message: 2
Date: Sat, 26 Dec 2009 02:43:56 +0100
From: Roland Smith rsm...@xs4all.nl
Subject: Re: clicky driver
To: Gary Kline kl...@thought.org
Cc: FreeBSD Mailing List freebsd-questions@freebsd.org
Message-ID: 20091226014356.gb10...@slackbox.xs4all.nl
Content-Type: text/plain; charset=us-ascii

On Fri, Dec 25, 2009 at 12:47:49PM -0800, Gary Kline wrote

Looking for a convenient way in C to retrieve CPU and memory usage of a process

2009-12-26 Thread Manish Jain


Hello,

I am looking for a convenient way using C to retrieve the current CPU 
and memory utilization of a process of which I have the pid. Can 
somebody please give me a hint of which system-calls/library-functions 
to use for this ? I don't want to use the system() function or grep for 
information via the /proc filesystem.


I would be grateful if you could also please mention whether the 
suggested method[s] is/are FreeBSD-specific or would be portable to 
other environments like Solaris/Linux ?



Thanks for any help.

Regards  Happy New Year
Manish Jain
invalid.poin...@gmail.com
___
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: A question for developers

2009-08-14 Thread Manish Jain

Hi Steve,


Vim also does colours/syntax highlighting I found, but quickly disabled
the colours, as I didn't like them as much as I thought I would.


I wouldn't blame you for not liking Vim's default syntax 
highlighting. However, you can try the my set instead which took me 
 days to fine-tune to my liking.


(But first, put the following line into your .vimrc :
map F12 :syntax on CR :so ~/syntax.vim CR

Then after starting gvim, press F12. That's the wat I do it.)


~/syntax.vim contents :
hi Cursor guifg=white guibg=black
hi Identifier guifg=black gui=bold
hi NonText guibg=grey72

black
hi Normal guifg=black
hi Statement guifg=black
hi shFunction guifg=black gui=bold

grey30
hi Comment guifg=grey30
hi shCommandSub guifg=grey30 gui=bold

red
hi Constant guifg=red
hi Directory guifg=red
hi cFormat guifg=red gui=bold

light-brown
hi shSpecial guifg=#b07030
hi SpecialKey guifg=#b07030
hi shOption guifg=#b07030
hi shCase guifg=#b07030

green
hi Special guifg=#007700 gui=bold
hi shExprRegion guifg=#007700 gui=bold
hi PreProc guifg=#007700 gui=bold
hi Statement guifg=#007700 gui=bold
hi Repeat guifg=#007700 gui=bold
hi shRepeat guifg=#007700 gui=bold
hi shConditional guifg=#007700 gui=bold
hi shStatement guifg=#007700 gui=bold

deep-blue
hi Type guifg=#99 gui=bold
hi shShellVariables guifg=#99
hi shVariable guifg=#99

muddy brown
hi String guifg=#dd4400
hi shString guifg=#dd4400

black on yellow
hi IncSearch guibg=yellow guifg=black
hi Search guibg=yellow guifg=black
hi Question guibg=yellow guifg=black

other
hi Operator guifg=#0088ee gui=bold  blue
hi shOperator guifg=#0088ee gui=bold
hi StorageClass guifg=#bb0099 gui=bold  purplish
hi SpecialChar guifg=#00aa88 gui=bold   greenish cyan

--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


AP#1 on Phy#1 : The reason on my system

2009-07-31 Thread Manish Jain


Hi,

A long time back, I had reported getting AP#1 on Phy#1 error 
messages and boot failure on my amd64 system. After many tests, I am 
convinced the problem occurs only if a USB mouse is plugged in at 
boot-time.


A few days back, I finally got a USB-to-PS2 converter and hooked my 
mouse into a PS2 port, with USB mouse support disabled in the BIOS. 
I've never had this problem since then. So it's pretty certain that 
the USB mouse was the source of the boot-failures.


Since Windows never had any boot problems with the USB mouse, I 
think this might be an issue for the FreeBSD kernel developers.


If this helps anyone or clears any doubts, I can only be glad.

(NB : I also have a report from a friend of mine using amd64 with 
debian-5.02 that debian has pretty much the same problem. He has 
taken my advice and is now hooking the mouse into the PS/2 port with 
good results).



Thank you
--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


Strange behaviour on Gnome with FreeBSD-7.2

2009-07-10 Thread Manish Jain


Hello,

This message was earlier posted to freebsd-gnome, from where there was 
no response. I am consequently re-posting to freebsd-questions in hope 
of something better.


I had FreeBSD-7.2 on my system a few days back, but had to reinstall it 
afresh last week. In the new install, I did not install any packages 
from the distribution media. Instead I built everything from ports. The 
previous installation used gnome packages from the distribution media 
itself.


There is one problem that I faced with the old installation and am 
facing with the new installation as well. Upon startx, all font sizes 
(application, desktop, document, fixed, window title) are always one 
unit less (in size) compared to what they are set. The moment I 
right-click on the desktop and select 'Change desktop background', the 
font sizes get incremented to the correct values everywhere.


With the new installation, I am facing additional - and much more 
serious - problems, maybe on account of something I have missed.


1) Window applications which normally remember their size and position 
(eg, Nautilus) have lost this capability. Now I have to resize and 
reposition these windows each time I exec gnome-session from .xinitrc


2) Resizing/repositioning windows happens in slow, jittery movements 
with the display getting wavy till the window is dropped into its 
desired size/position


3) Scrolling up and down a window (eg in Firefox3, Nautilus) using the 
mouse or the scrollbar is painfully slow, with the display again getting 
highly wavy.



If anybody has any clue what could possibly be wrong with my setup, I 
would be grateful to find out what.



Thanks in advance

--
Regards
Manish Jain
invalid.poin...@gmail.com

___
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: Urgent help needed : portmaster dies on py-cairo

2009-07-08 Thread Manish Jain

b. f. wrote:

On 7/6/09, manish jain invalid.poin...@gmail.com wrote:
  

2009/7/6 b. f. bf1...@googlemail.com



  

After running pkgdb -F, I find that there hundreds of ports depending on
python2.5.



Most of these are probably indirectly dependent, and may not be
seriously affected.  Many, for example, may have been dragged in by
xorg's silly dependency on python via libxcb.

  

Looks to me it will be easier to backup my dstfiles and reinstall
the whole system afresh a 3rd time rather than trying to fix the existing
ports. This time I will install no packages from the installation media, and
build directly from ports instead. The first 2 ports I will build this time
will be lang/python26 followed by lang/python.



Sounds good.

  

I suppose this should set the
systemwide default python version to 2.6.



As the others have mentioned, you don't need to do this unless you
wish to use a version of python other than 2.6, which is now the
default.


  

1) How do I find or set  PYTHON_DEFAULT_VERSION ?
2) What workaround would be needed in make.conf to get 2.5-hardwired ports
to use 2.6 instead ?



1) See above.
2) I didn't mean, as Seaman seemed to think, and you may have, that
you can use ports built against 2.5 with 2.6.  That would only rarely
work, and most likely lead to all sorts of problems. Instead you
should proceed with your plan, and rebuild all dependent ports via:

pkgdb -L
pkgdb -F
portupgrade -fvrx lang/python26 lang/python26
rm -r /usr/local/lib/python2.5

or rebuild just that subset of ports that are most likely to be broken
by the change, via the upgrade-site-packages target in lang/python, as
Seaman suggested.

What I meant by my original comment was, that if you should happen to
want to build a port against 2.6, but find that it is hardwired in the
port Makefile via USE_PYTHON to another version or versions, and you
don't want to go to the trouble of patching the port Makefile, and
then preserving this local modification when you merge in updates to
the port tree, you can add a workaround in /etc/make.conf.  Say, for
example, you see that mail/py-spambayes has:

USE_PYTHON= -2.5

in the port Makefile, and you want to install spambayes, but you don't
want to have to reinstall python 2.5 or an earlier version of python.
If you add:

.if${.CURDIR:M*/mail/py-spambayes*}
PYTHON_VERSION=python2.6
NO_IGNORE=yes
.endif

to /etc/make.conf, you can override the spambayes port Makefile
without patching it.  Now, you are _not_ supposed to do this, and you
will probably have to deal with any consequences of such a local
change on your own.  Many ports have these restrictions for a good
reason, but such an override can be occasionally useful.

b.

  


Hi,

After a marathon session spread over 2 days, I have managed to set up a 
new FreeBSD-7.2 installation with all ports (762) up to date. From the 
gleanings of this conversation and some reading I did myself, I have 
compiled a small document for what-to-do-after-installation. I would 
dearly appreciate your comments on the document, and would be extremely 
glad if my document could be of any help to somebody else too.


Please note that portupgrade works much better on my system than 
portmaster. So the following document assumes/recommends using portupgrade.


Here it is.

==
Part-1)Immediately after a fresh FreeBSD-7.2#RELEASE install :

I assume you will at some stage or the other install a linux port, eg 
acroread8 or acroread9, linux-ymessenger, etc. Incidentally, unless you 
have specific needs, prefer acroread8 over acroread9.


All following steps are to be executed as root.

a)Make sure /etc/rc.conf has at least the following 5 lines.
dbus_enable=YES
hald_enable=YES
polkitd_enable=YES
gnome_enable=YES
linux_enable=YES

b)Make sure /boot/loader.conf has at least the following 3 lines.
kern.maxdsiz=734003200
linprocfs_load=YES
linsysfs_load=YES

c)Make sure /etc/fstab has at least the following 3 lines.
proc/proc   procfs
rw00

linproc /usr/compat/linux/proclinprocfsrw00
linsys   /usr/compat/linux/sys  linsysfs  rw0   
0


d)Upgrage from python25 to python26 along with all dependent ports 
as follows :


rm -rf /usr/ports 2/dev/null
mkdir -p /usr/ports/distfiles
portsnap fetch extract
cd  /usr/ports/ports-mgmt/portupgrade
make deinstall  2/dev/null
make install clean
portupgrade -C -r -o  lang/python26  lang/python25
portupgrade -rfx python26 python26
pkgdb -F

Before doing anything further, reboot. Immediately after reboot, execute 
Part-2.



Part-2) Steps to be followed whenever a significant number new 
ports/patches are available and you need to ensure your ports as well as 
your ports directory are up to date :


thisdate=`date +%Y-%m-%n`
rm  /root/portupgrade-${thisdate}.log 2/dev/null
portsnap fetch update
portupgrade

Re: Urgent help needed : portmaster dies on py-cairo

2009-07-06 Thread manish jain
2009/7/6 b. f. bf1...@googlemail.com

 Manish Jain wrote:

 After 3-4 hours, portsnap died on graphics/py-cairo saying :
 cannot find python headers

 I'm guessing you meant portmaster died here ...

 /usr/ports/graphics/py-cairo/work/pycairo-1.8.4/config.log says :
 configure:4734: cc -E -I/usr/local/include conftest.c
 conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
 configure:4741: $? = 1


 cd /usr
 find . -name 'ac_nonexistent.h'
 #no results

 As the name suggests, this header doesn't really exist.  It's just a
 dummy header used during a test in the configure script to see how the
 compiler reacts when a header isn't there, in preparation for testing
 for the presence of real headers.  That shouldn't be the problem: are
 you sure the configure script really failed at that point?  If so,
 something is probably wrong with your compiler or toolchain, and
 that's usually bad news. :(

 py-cairo-1.8.4 needs python2.6. My system has both python2.5 and
 python2.6 installed, with their headers under
 /usr/local/include/python2.5 and /usr/local/include/python2.6
 respectively.

 Why do you have both versions installed?  2.6 is  largely
 backwards-compatible with 2.5, so why not just rip out 2.5 and use 2.6
 exclusively?  You'll save some trouble and disk space. Make sure your
 ports tree is up-to-date, so that PYTHON_DEFAULT_VERSION defaults to
 python2.6.  Then deinstall lang/python25 and reinstall lang/python26.
 In particular, check to see that /usr/local/bin/python is present is a
 link to /usr/local/bin/python2.6.  If it isn't, then something is
 wrong -- perhaps you have PYTHON_VERSION or PYTHON_DEFAULT_VERSION
 defined to the wrong value, or your ports tree is corrupt.  Then
 rebuild all of the ports that depend upon python, and remove any
 vestige of the old /usr/local/lib/python2.5 directory tree. If you've
 stale ports that are still wired to use python2.5 for no good reason,
 you can patch them or their port Makefiles, or put a workaround in
 make.conf.

 Any help on enabling py-cairo locate the python headers would be
 greatly appreciated.

 What is the output of:

 make -C /usr/ports/graphics/py-cairo -V CONFIGURE_ENV

 If PYTHON is in there, properly defined as the path to the python2.6
 binary, and the binary actually exists, then the configure script
 should succeed. If not, something is wrong.  The configure script
 uses:

 PYTHON_INCLUDES=`$PYTHON-config --includes 2/dev/null` to find the
 proper Python.h.  Is /usr/local/bin/python2.6-config missing or broken
 on your system?  What about /usr/local/include/python2.6/Python.h?

 b.



Hello B,

Thanks for your help.

After running pkgdb -F, I find that there hundreds of ports depending on
python2.5. Looks to me it will be easier to backup my dstfiles and reinstall
the whole system afresh a 3rd time rather than trying to fix the existing
ports. This time I will install no packages from the installation media, and
build directly from ports instead. The first 2 ports I will build this time
will be lang/python26 followed by lang/python. I suppose this should set the
systemwide default python version to 2.6.

Before I undertake this 3rd attempt, I request a few clarifications so that
everything comes out fine this time around.

 something is wrong -- perhaps you have PYTHON_VERSION or
PYTHON_DEFAULT_VERSION
 defined to the wrong value, or your ports tree is corrupt.  Then
 rebuild all of the ports that depend upon python, and remove any
 vestige of the old /usr/local/lib/python2.5 directory tree. If you've
 stale ports that are still wired to use python2.5 for no good reason,
 you can patch them or their port Makefiles, or put a workaround in
 make.conf.

1) How do I find or set  PYTHON_DEFAULT_VERSION ?
2) What workaround would be needed in make.conf to get 2.5-hardwired ports
to use 2.6 instead ?


Thanks for any help.

Regards
Manish Jain
invalid.poin...@gmail.com
___
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


Urgent help needed : portmaster dies on py-cairo

2009-07-05 Thread Manish Jain


Hi,

This is not a portmaster problem, but a problem of getting py-cairo 
to build following an update in the ports directory.


3 days back I ran 'portsnap fetch extract'. Then yesterday I ran 
'portsnap fetch update' followed immediately by 'portmaster -a -B'


After 3-4 hours, portsnap died on graphics/py-cairo saying :
cannot find python headers

/usr/ports/graphics/py-cairo/work/pycairo-1.8.4/config.log says :
configure:4734: cc -E -I/usr/local/include conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:4741: $? = 1


cd /usr
find . -name 'ac_nonexistent.h'
#no results

py-cairo-1.8.4 needs python2.6. My system has both python2.5 and 
python2.6 installed, with their headers under 
/usr/local/include/python2.5 and /usr/local/include/python2.6 
respectively.


Any help on enabling py-cairo locate the python headers would be 
greatly appreciated.


My system is totally messed up, half of it updated by portmaster and 
the other half waiting for the update once py-cairo can locate the 
python headers.


--
Regards
Manish Jain
invalid.poin...@gmail.com

___
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


Questions on portmaster

2009-07-01 Thread Manish Jain


Hi,

I am using portmaster on FreeBSD-7.2 to keep my ports up to date. When 
there are multiple ports to be updated, portmaster will fork off child 
processes. Does each child start 'make fetch' in the background ? I ask 
this because the parent process attached to the console reports very low 
data transfer rates (in the range of 0.7 to 4.0 kBps, while normally I 
get 30 to 35 kBps).


Further, how can portmaster be tuned to automatically ignore ports which 
are actually marked as IGNORE in the port directory ? This is not 
covered in the manpage.


While doing portmaster -a, I have only managed to stop portmaster from 
building exactly one port specified with the -x option. Can I get to 
stop multiple ports from being built ? Is there regular expression 
support for the -x option ?


Thanks for any help.

--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: Questions on portmaster

2009-07-01 Thread Manish Jain

b. f. wrote:

Manish Jain wrote:

...Does each child start 'make fetch' in the background ?


make checksum, yes.


Further, how can portmaster be tuned to automatically ignore ports which
are actually marked as IGNORE in the port directory ? This is not
covered in the manpage.


It respects IGNORE (it checks for it in the port Makefile, and also
hands off to bsd.port.mk, which respects it).   If you mean +IGNOREME,
the others have answered your question.


While doing portmaster -a, I have only managed to stop portmaster from
building exactly one port specified with the -x option. Can I get to
stop multiple ports from being built ? Is there regular expression
support for the -x option ?


Not in the sense that you mean, at least that I'm aware of.  This one
of the things that needs improvement.  It is a bit awkward, because it
uses the shell's built-in POSIX getopts to parse options, and then
calls itself recursively.  One way you could fix it would be to apply
a patch like:

--- portmaster.orig 2009-07-01 12:36:14.0 -0400
+++ portmaster  2009-07-01 18:55:59.0 -0400
@@ -9,7 +9,7 @@
 if [ -z $PARENT_PID ]; then
PARENT_PID=$$
: ${TMPDIR:=/tmp}
-   UPGRADE_TOOL=portmaster
+   UPGRADE_TOOL=$0

# /usr/local is needed in the path for make
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
@@ -788,7 +788,11 @@
u)  UNATTENDED=uopt; ARGS=-u $ARGS ;;
v)  PM_VERBOSE=vopt; ARGS=-v $ARGS ;;
w)  SAVE_SHARED=wopt; ARGS=-w $ARGS ;;
-   x)  EXCL=$OPTARG ;;
+   x)  if [ -z ${OPTARG%%-*} ]; then
+   fail 'The -x option requires an argument'
+   else
+   EXCL=-x $OPTARG $EXCL
+   fi ;;
*)  echo '' ; echo === Try ${0##*/} --help; exit 1 ;;
esac
 done
@@ -810,10 +814,7 @@
 [ -n $FETCH_ONLY -a -n $NO_RECURSIVE_CONFIG ] 
fail The -F and -G options are mutually exclusive
 if [ -n $EXCL ]; then
-   case $EXCL in
-   -*) fail 'The -x option requires an argument' ;;
-   *)  ARGS=-x $EXCL $ARGS ;;
-   esac
+   ARGS=$EXCL $ARGS
 fi

 #=== Begin functions for getopts features and main ===
@@ -1461,14 +1462,17 @@
 check_exclude () {
[ -n $EXCL ] || return 0

-   case $1 in
-   *${EXCL}*)
-   if [ -n $PM_VERBOSE ]; then
-   echo === Skipping $1
-   echobecause it matches the pattern: *${EXCL}*
-   fi
-   return 1 ;;
-   esac
+   for pkgglob in `echo $EXCL | sed -e 's#-x##g'`
+   do
+   case $1 in
+   *${pkgglob}*)
+   if [ -n $PM_VERBOSE ]; then
+   echo === Skipping $1
+   echobecause it matches the pattern:
*${pkgglob}*
+   fi
+   return 1 ;;
+   esac ;
+   done
return 0
 }


(Mind the whitespace because of my MUA.)  Then you could just use
repeated -x flags, each with one and only one package glob that you
wanted to exclude.  I changed the definition of UPGRADE_TOOL so that
you could put this script in your path under another name, say
jainpmaster, and then call it independently of the original
portmaster.  As usual, I make no claim that this is the best, only, or
most elegant way to do this.

Regards,
b.



Hello BF/Roland,

Thanks for the clarifications.

Regarding the download speeds I was getting with portmaster fetches (0.7 
kBps to 4.0 kBps), I immediately booted into Windows/Cygwin and did a 
wget from the same site portmaster was using. The speed I got from wget 
was ~ 35 kBps. This happened not just once but multiple times. Each time 
I did this, I had to interrupt portmaster. Finally I managed to get to 
install the wget port on FreeBSD itself. When I ran wget from FreeBSD, 
it reported comparable transfer rates (~ 35 kBps) from the same sites as 
portmaster was using.



It respects IGNORE (it checks for it in the port Makefile, and also
hands off to bsd.port.mk, which respects it).  


I got a curl port from portsnap marked IGNORE. portmaster did not ignore 
it anywhere near gracefully enough and finally killed off all child 
processes and itself.


The IGNOREME way is fine for me for avoiding multiple ports I know 
beforehand I do not want to build. But if a portsnap update creates an 
IGNORE port, portmaster should be skipping it entirely rather than 
having to kill all child processes and itself. In my experience, this 
did not happen. Or maybe my system was badly broken already by that time.


Anyway, my system became so unpredictable that I had to reinstall 
FreeBSD. For the moment, I am avoiding portmaster till I can try it out 
on a dummy PC first.


BTW, I also tried portmanager and it segfaulted at the stage of 
generating a report.



Thanks for all the help.

Manish Jain
invalid.poin...@gmail.com

Re: The question of moving vi to /bin

2009-06-29 Thread Manish Jain

Daniel Underwood wrote:

How did The question of moving vi to /bin end up as two different
conversations for me in gmail?




Hello Daniel,

When I did a 'Reply to All', the moderator blocked the posting claiming 
too high a number of recipients. I cancelled the posting, and resent it 
using 'Reply to Sender'. I don't know whether the original posting 
itself got through as well.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: Firefox: Video but no audio

2009-06-29 Thread Manish Jain


Hi Carmel,

Do you have problems with sound only on Firefox ? If your problem is 
that you can't get sound with any application, then please see the 
output of 'cat /dev/sndstat'. If you get nothing, then you probably 
don't have an appropriate sound driver loaded.


If you have an Intel-based board, try putting snd_ich_load=YES and 
snd_hda_load=YES into your /boot/loader.conf


If your problem is Firefox-specific, then try editing 
Tools-Options. On the Applications tab, see whether you have an 
entry for MP3 Format Sounds and that it set to something reasonable.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: Firefox crashes on yahoo.com

2009-06-28 Thread Manish Jain

Frank Shute wrote:

On Sat, Jun 27, 2009 at 01:31:09PM +0530, Manish Jain wrote:


Hi,

This seems to be a strange problem with Firefox which I never 
encountered on my old system. Both Firefox2 and Firefox3 work well the 
other sites I have tried accessing, but crash on navigating to www.yahoo.com



/usr/home/emmjanex # firefox3 http://www.yahoo.com 
[1] 2668
/usr/home/emmjanex # NP_Initialize
New
SetWindow
SetWindow
NewStream
WriteReady
Write
decoding...
The program 'firefox-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
 (Details: serial 31 error_code 17 request_code 140 minor_code 5)
 (Note to programmers: normally, X errors are reported asynchronously;
  that is, you will receive the error a while after causing it.
  To debug your program, run it with the --sync command line
  option to change this behavior. You can then get a meaningful
  backtrace from your debugger if you break on the gdk_x_error() 
  function.)


[1]+  Exit 1  firefox3 http://www.yahoo.com


There is nothing relevant to the crash in Xorg.0.log or console.log



Have you tried Firefox3.5? It's in ports as www/firefox3-devel.

I just tried Yahoo! and had no problems.

Regards,




Hi Frank,

The problem is not restricted to firefox or yahoo.com. There are other 
sites too where this happens. I built Galeon from ports, and it shows 
exactly the same behaviour as firefox2/firefox3 for those sites. So does 
Epiphany (installed from the distribution media).


I doubt whether firefox-3.5 could solve the problem. This seems to be a 
problem with a core library in X or one of the graphics libraries.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: Firefox crashes on yahoo.com

2009-06-28 Thread Manish Jain

Roland Smith wrote:

On Sun, Jun 28, 2009 at 02:24:03PM +0530, Manish Jain wrote:

Have you tried Firefox3.5? It's in ports as www/firefox3-devel.

I just tried Yahoo! and had no problems.


I tried yahoo with firefox3 on 7.2-RELEASE-p2 amd64 without problems.

The problem is not restricted to firefox or yahoo.com. There are other 
sites too where this happens. I built Galeon from ports, and it shows 
exactly the same behaviour as firefox2/firefox3 for those sites. So does 
Epiphany (installed from the distribution media).


I doubt whether firefox-3.5 could solve the problem. This seems to be a 
problem with a core library in X or one of the graphics libraries.


Are your ports up-to-date? Use portsnap(8) [first time: 'portsnap fetch
extract', afterwards 'portsnap fetch update'] to update your ports tree and
then portmaster(8) ['portmaster -a -B -d'].

If your ports are up-to-date, try rebuilding libX11 and the ports it
depends on ['portmaster -f -x libX11'].

Roland



Hi Roland,

I traced the problem. It's related to flash. When I disable the 
flash plugin, Firefox works smoothly.


I suspect a lot of sites are using a new version of flash, which 
doesn't go down well with the existing browsers.


I run portsnap and portmaster through a daily cron, so the ports 
directory is always up-to-date.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


Firefox crashes on yahoo.com

2009-06-27 Thread Manish Jain


Hi,

This seems to be a strange problem with Firefox which I never 
encountered on my old system. Both Firefox2 and Firefox3 work well the 
other sites I have tried accessing, but crash on navigating to www.yahoo.com



/usr/home/emmjanex # firefox3 http://www.yahoo.com 
[1] 2668
/usr/home/emmjanex # NP_Initialize
New
SetWindow
SetWindow
NewStream
WriteReady
Write
decoding...
The program 'firefox-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
  (Details: serial 31 error_code 17 request_code 140 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

[1]+  Exit 1  firefox3 http://www.yahoo.com



There is nothing relevant to the crash in Xorg.0.log or console.log

--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


Other browsers show the same behaviour (Firefox crashes on yahoo.com)

2009-06-27 Thread Manish Jain
The problem is not restricted to firefox or yahoo.com. There are other 
sites too where this happens. I built Galeon from ports, and it shows 
exactly the same behaviour as firefox2/firefox3 for those sites. So does 
Epiphany (installed from the distribution media).




Hi,

This seems to be a strange problem with Firefox which I never encountered on my 
old system. Both Firefox2 and Firefox3 work well the other sites I have tried 
accessing, but crash on navigating to www.yahoo.com


/usr/home/emmjanex # firefox3 http://www.yahoo.com 
[1] 2668
/usr/home/emmjanex # NP_Initialize
New
SetWindow
SetWindow
NewStream
WriteReady
Write
decoding...
The program 'firefox-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
  (Details: serial 31 error_code 17 request_code 140 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

[1]+  Exit 1  firefox3 http://www.yahoo.com



There is nothing relevant to the crash in Xorg.0.log or console.log


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: The question of moving vi to /bin

2009-06-27 Thread Manish Jain



Hi,

I agree that vi is nowhere as easy to use as ee. Since a lot of people seem to 
be happy with ee, why not make it available under /bin so that that there is an 
easy-to-use, readily-working editor always available, even if you are in 
single-user mode ?

That in fact was the essence of this entire thread. The thing is /bin/ed and 
/rescue/vi have their unique problems and peculiarities. If at least there can 
be a general consensus that ee should be under /bin, a lot of people could 
possibly find it beneficial in emergencies. The problem again, I suspect, might 
be that moving ee to /bin would possibly need the terminal database to be kept 
under / directly, which goes against freebsd's obsession with a 
micro-minimalistic base.

One solution might be to keep a pared-down version of the database that 
provides only for the most commonly used terminals to be placed under /, and 
single-user mode set up to use this database.



Hi,

I agree that vi is nowhere as easy to use as ee. Since a lot of people 
seem to be happy with ee, why not make it available under /bin so that 
that there is an easy-to-use, readily-working editor always available, 
even if you are in single-user mode ?


That in fact was the essence of this entire thread. The thing is /bin/ed 
and /rescue/vi have their unique problems and peculiarities. If at least 
there can be a general consensus that ee should be under /bin, a lot of 
people could possibly find it beneficial in emergencies. The problem 
again, I suspect, might be that moving ee to /bin would possibly need 
the terminal database to be kept under / directly, which goes against 
freebsd's concept of a micro-minimalistic base.


One solution might be to keep a pared-down version of the database that 
provides only for the most commonly used terminals placed under  /  and 
single-user mode set up to use this database.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: The question of moving vi to /bin

2009-06-25 Thread Manish Jain

John L. Templer wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Manish Jain wrote:

If you want to make a case for replacing ed(1), you're going to have
to come up with some concrete reasons for doing so, not just make a
(long and hyperbolic) statement that you don't like it.
  

Any Unix tool has to clearly fall either under the category of
non-interactive (grep, sed, ex) or interactive (vi, wget, sysinstall).


Oh really?  Many Unix programs have traditionally had both a command
line mode of operation and an interactive mode, and that's still pretty
much still true.  Usually when you run a program you put arguments on
the command line, and the program does what those arguments tell it to
do.  But for many programs, if you run them with no arguments they run
in interactive mode and wait for the user to issue commands telling the
program what to do.


The case of non-interactive tools is simple : just do what you are told
on the commandline and exit. For interactive tools, at a minimum, the
application has to be show what data it is working on and what it does
with the data when the user presses a key (or a series of them). ed was
never meant to be non-interactive, and it does not fulfil the basic
requirements of being interactive. That's one reason. Secondly, how many
times does an average commandline user even think of using ed when he
needs to edit a file, even in the extreme case where there are no
alternatives ?


ed is an interactive program, and it has always been considered as such,
at least since BSD 4.2.  Way back then there were three main editors,
ex, vi, and ed.  If you had a nice video terminal then you used vi.  But
if you were stuck using a hard copy terminal like a Decwriter, then you
used ex.  And ed was the simplified (dumbed down) editor for newbies.

ed is an interactive program because the user interacts with it.  You
give it command, it does something, you give it some more commands, it
does more stuff, etc.  Interactive does not mean screen based.


Till the improvements are in place, we need the alternative of having vi
under /bin rather than /usr/bin.

Actually, it surprises me to what extent the core of the FreeBSD
community is enamoured with this idea of a micro-minimalistic base, in
which it is practically impossible to do anything except run fsck.
Matters don't stop there. Seeing the limitations of this approach, the
community churns up wierd workarounds like /rescue/vi, when all that was
needed was shift vi from /usr. You talk about the need for compliance
with old hardware and embedded systems to save a few kilos. How old is
the hardware that you have in mind ? The oldest system running FreeBSD I
know of is a 1997 Pentium with a 2 GB disk, and even that can easily
withstand the change I am suggesting. Machines older than that are
actually DEAD and don't have to be factored in. As for embedded systems,
the primary target of FreeBSD is servers, workstations and *tops. The
embedded world hasn't survived riding on FreeBSD, nor the other way
round. So from the viewpoint of the greatest good of the largest number,
over-indulging a mindset fixed around minimizing the base only leads to
degradation, not improvement. Getting to boast of a 900K / won't do any
good when people are thinking of having decent firepower (even while in
single-user mode) and its ease of use.


It's not just keeping the core system small, it's ensuring that if the
disk containing /usr fails to mount, then you still have enough of the
system to fix the problem.  Admittedly this isn't as much of a concern
now, what with rescue disks and CDs with bootable live systems, but it's
still nice to have.

John L. Templer
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpDDM0ACgkQjkAlo11skePG4wCgjq4plp71Yattn34UP9YIyv4k
VagAoKDcLGVPQBxae6FABGa5hLI9w4gM
=+Ed7
-END PGP SIGNATURE-



Hi John,

I really think you need to go through Unix's history again to get your 
facts anywhere close to reality.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: The question of moving vi to /bin

2009-06-25 Thread Manish Jain

Ruben de Groot wrote:

On Thu, Jun 25, 2009 at 01:36:31AM -0400, John L. Templer typed:

ed is an interactive program, and it has always been considered as such,
at least since BSD 4.2.  Way back then there were three main editors,
ex, vi, and ed.  If you had a nice video terminal then you used vi.  But
if you were stuck using a hard copy terminal like a Decwriter, then you
used ex.  And ed was the simplified (dumbed down) editor for newbies.

ed is an interactive program because the user interacts with it.  You
give it command, it does something, you give it some more commands, it
does more stuff, etc.  Interactive does not mean screen based.


ed can be used very well non-interactively.
e.g. a script made by diff -e can be piped to it.

Ruben




What I meant was the primary usage. Of course, there are many tools (ed 
included) which will allow non-interactive usage, and still others which 
 can be tweaked or forced into that behaviour. The point about ed is 
that it does not live up to the needs of its primary mode.


Somebody mentioned something about getting multi-line replacement 
functionality from ed that is not possible with sed. If only the 
gentleman would go through the documentation for a recent version of 
sed, he could save himself from a lot of further pain. This following 
link was posted a few days earlier from freebsd-questions itself :


http://www.grymoire.com/Unix/Sed.html

There probably isn't much to compare between freebsd and cygwin, but 
cygwin has dropped ed (and afaik only ed) from its base distribution not 
for nothing. Maybe they were concerned about the bloat factor, and for 
good reason in ed's case.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


The question of moving vi to /bin

2009-06-24 Thread Manish Jain



On Tuesday 23 June 2009 15:41:48 Manish Jain wrote:

 I hope the next release will address these problems, as well as a pretty
 reasonable request from me much earlier to move vi from /usr/bin to
 /bin. Even in single-user mode, you almost always need an editor.





Which is why you have ed(1) - both in /bin and in /rescue - and /rescue/vi 
(although that needs a bit of tweaking due to the /etc/termcap problem).


Bear in mind that /usr/bin/vi is over 300K, compared to the whole of /bin 
which is ~950K (if you avoid double-counting entries like /bin/csh 
and /bin/tcsh which are hardlinks to the same file), so you need to convince 
people who think /bin should stay small to let it grow by a third to save 
people learning ed(1).


Jonathan



Hello Jonathan,

About ed first. I might annoy a few people (which would gladden me in 
this particular case), but ed was just one of Ken Thompson's nightmares 
which he managed to reproduce in Unix with great precision. By no 
stretch of imagination would it qualify as an editor, because an editor 
can meaningfully edit only what it can first show. And ed has never had 
anything to show. A modern operating system like FreeBSD should really 
be kicking ed out of the distribution completely : bad ideas don't have 
to be necessarily perpetuated just for the sake of compliance with the 
original concept of Unix.


and /rescue/vi 
(although that needs a bit of tweaking due to the /etc/termcap problem)


That's the whole problem of /rescue/vi. When you suddenly find yourself 
in single-user mode, the last thing you want to do is realise that 
tweaking is needed for something which should work normally just when 
you need it, and quickly too.



Bear in mind that /usr/bin/vi is over 300K


Actually, the cost is more than 300K because the terminal database would 
have to be put into / too. But why are we talking about a few hundred 
kilos for such a basic utility as vi in times when everyone has hundreds 
of GB's on the disk, and the / partition itself is 512 MB by default. 
The BSD concept of having vi under /usr originated when resources were 
less by a factor of thousands (= (100 MB disks), = (8 MB physical RAM) 
and so on). When we are well past those kind of constraints, the concept 
needs an rethink.


Actually, there is an even more radical update that I would have loved 
FreeBSD to have initiated. Instead, the credit has gone to Microsoft. 
The simple thing is when a system has multiple gigabytes of RAM, the OS 
should be able give an option to the user of completely doing away with 
swapping and force all the action in real, physical memory instead.


This latter idea might still sound a bit far-fetched, but at least 
dumping ed and /rescue/vi to pave way for /bin/vi is certainly more than 
a workable idea. Till that happens, people like me might be forced to do 
outlandish things like copying /usr/local/bin/{bash,vim} to /bin and 
their associated libraries to /lib. I really mean copying, not moving - 
which could create problems with port/library upgrades at a later date. 
It works, is safe and easy, and requires no tweaking.


Hope there are some takers.

--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: The question of moving vi to /bin

2009-06-24 Thread Manish Jain


If you want to make a case for replacing ed(1), you're going to have
to come up with some concrete reasons for doing so, not just make a
(long and hyperbolic) statement that you don't like it.
  


Any Unix tool has to clearly fall either under the category of 
non-interactive (grep, sed, ex) or interactive (vi, wget, sysinstall). 
The case of non-interactive tools is simple : just do what you are told 
on the commandline and exit. For interactive tools, at a minimum, the 
application has to be show what data it is working on and what it does 
with the data when the user presses a key (or a series of them). ed was 
never meant to be non-interactive, and it does not fulfil the basic 
requirements of being interactive. That's one reason. Secondly, how many 
times does an average commandline user even think of using ed when he 
needs to edit a file, even in the extreme case where there are no 
alternatives ?



There have been some recent changes:

http://svn.freebsd.org/changeset/base/194628 
http://svn.freebsd.org/changeset/base/194628


that suggest that this problem is being addressed.


Till the improvements are in place, we need the alternative of having vi 
under /bin rather than /usr/bin.


Actually, it surprises me to what extent the core of the FreeBSD 
community is enamoured with this idea of a micro-minimalistic base, in 
which it is practically impossible to do anything except run fsck. 
Matters don't stop there. Seeing the limitations of this approach, the 
community churns up wierd workarounds like /rescue/vi, when all that was 
needed was shift vi from /usr. You talk about the need for compliance 
with old hardware and embedded systems to save a few kilos. How old is 
the hardware that you have in mind ? The oldest system running FreeBSD I 
know of is a 1997 Pentium with a 2 GB disk, and even that can easily 
withstand the change I am suggesting. Machines older than that are 
actually DEAD and don't have to be factored in. As for embedded systems, 
the primary target of FreeBSD is servers, workstations and *tops. The 
embedded world hasn't survived riding on FreeBSD, nor the other way 
round. So from the viewpoint of the greatest good of the largest number, 
over-indulging a mindset fixed around minimizing the base only leads to 
degradation, not improvement. Getting to boast of a 900K / won't do any 
good when people are thinking of having decent firepower (even while in 
single-user mode) and its ease of use.


But I guess my words are of no use when the people who matter just won't 
listen. So I give any hopes in this regard.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.

___
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: No sound, no mouse and now X applications won't start

2009-06-23 Thread Manish Jain

Message: 11
Date: Sat, 20 Jun 2009 16:34:00 -0400
From: Jerry ges...@yahoo.com
Subject: Re: No sound, no mouse and now X applications won't start
To: freebsd-questions@freebsd.org
Message-ID: 20090620163400.62143...@scorpio.seibercom.net
Content-Type: text/plain; charset=US-ASCII

On Sun, 21 Jun 2009 01:31:45 +0530
Manish Jain invalid.poin...@gmail.com wrote:


Looks like nobody at freebsd-questions has any answers for me. Maybe
7.2-x86 doesn't like newish amd hardware.


post the output of: pciconf -lv as well as dmesg. Also your rc.conf and
PolicyKit.conf files might be useful.

--
Jerry
ges...@yahoo.com



Hi,

I have solved most of the problems listed in my previous message with 
help from Roland Smith.


The fact still remains that FreeBSD-7.2 has some definite problems on 
AMD hardware :


1) On multi-core systems, the cores don't get initialized properly and 
you get messages like : AP #1 (PHY# 1) failed ! followed by panic. The 
solution is to reboot, maybe as many as 6-7 times.


2) The uhub/ums module fails to load and /dev/ums0 consequently won't 
get created. The workaround is to unplug your USB mouse just before the 
boot process begins, and plug it back in once you get the console.


I have googled for the above 2 problems and there seem to many folks 
suffering from the ills, with no solution except the ones I have listed 
above. And these problems almost always occur on AMD multi-core systems.


I hope the next release will address these problems, as well as a pretty 
reasonable request from me much earlier to move vi from /usr/bin to 
/bin. Even in single-user mode, you almost always need an editor.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


No sound, no mouse and now X applications won't start

2009-06-20 Thread Manish Jain
]: WARNING: kvm_getenvv failed
Jun 20 02:53:30 pbbi console-kit-daemon[1135]: WARNING: kvm_getenvv failed
Jun 20 02:53:30 pbbi gnome-session[7692]: WARNING: Unable to determine session: 
Unable to lookup session information for process '7692'
Jun 20 02:53:30 pbbi console-kit-daemon[1135]: WARNING: kvm_getenvv failed
Jun 20 02:53:30 pbbi gnome-session[7692]: WARNING: Unable to determine session: 
Unable to lookup session information for process '7692'
Jun 20 02:53:31 pbbi console-kit-daemon[1135]: WARNING: kvm_getenvv failed
Jun 20 02:53:31 pbbi gnome-session[7692]: WARNING: Unable to determine session: 
Unable to lookup session information for process '7692'
Jun 20 02:53:32 pbbi kernel: info: [drm] Resetting GPU
Jun 20 02:54:00 pbbi halt: halted by root
Jun 20 02:54:00 pbbi syslogd: exiting on signal 15



dbus, hald, polkitd and gnome are all enabled in rc.conf.

loader.conf looks like following :

kern.maxdsiz=734003200
ums_load=YES
linprocfs_load=YES
linsysfs_load=YES
sound_load=YES
snd_hda_load=YES



--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.

___
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


Now problems with mouse and sound (Re: In addition to - 7.2 panic during installation : AP #1 (PHY# 1) failed !)

2009-06-19 Thread manish jain
Hi,

After 6-7 reboots, I managed to get the 7.2-RELEASE installation media to
boot and install properly.

2 issues still remain however.

1) No sound : My Gigabyte GA-MA78GM-US2H board has onboard Realtek High
Definition Audio. Since I couldn't figure out which driver would work with
this, I put sound_enable=YES and snd_driver_load=YES in loader.conf to load
all available drivers. Gnome's Volume Control applet still remains crossed
out in red, which would mean the system couldn't locate an appropriate
driver.

2) No mouse : I am using a Logitech USB mouse and my rc.conf has
moused_enable=YES, along with entries for the AUTO protocol and the
/dev/ums0 device. However, at boot-time I get the message Module uhub/ums
failed to load : 17 followed by a complaint by moused that /dev/ums0 does
not exist. There is no mouse cursor on the console at the time I get to the
login prompt. There is a wierd way however of getting the mouse to work.
Change it from one USB port to another 1-2 times and finally the kernel
picks up the mouse and creates /dev/ums0, after which the cursor appears and
the mouse works okay. But I have to do this everytime I boot FreeBSD, which
doesn't look an attractive option at all.

Can somebody please help me with either/both of these issues ?

Thanks in advance.

Manish Jain
invalid.poin...@gmail.com


2009/6/18 Chris Whitehouse cwhi...@onetel.com

 Manish Jain wrote:

 I forgot to mention that Windows installs and runs very smoothly on the
 system.

 Windows system information reports :

 System ManufacturerGigabyte Technology Co., Ltd.   System Model
  GA-MA78GM-US2H


 snip



 The only thing that strikes me as odd is that right-clicking on My
 Computer reports the amount of RAM as 768 MB, while the diagnostics above
 states 1024 MB.

 For the brief period of time the FreeBSD installer runs, it reports the
 amount of RAM as 768 MB too.



 http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ProductID=2995

 has integrated graphics = shared memory.

 You can probably change the amount of RAM allocated to the graphics card in
 the BIOS.

 Chris

___
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


7.2 panic during installation : AP #1 (PHY# 1) failed !

2009-06-17 Thread Manish Jain


Hi,

I got a brand new system today with an AMD quad-core Phenom 
processor and a Gigabyte board with a 780G chipset.


When I boot from the 7.2-Release-x86 DVD, I get the following 
welcome message (after some initial diagnostics) :


ACPI APIC Table: GBT GBTUACPI
AP #1 (PHY# 1) failed !

After this, the system prompts for panic (y/n). Accepting y leads to 
 a bye-bye, and entering n leads to a PHY# 2 failed message and 
another panic prompt.


What is this supposed to mean ?

Thanks for any help.

--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


In addition to - 7.2 panic during installation : AP #1 (PHY# 1) failed !

2009-06-17 Thread Manish Jain
   Standard OpenHCD USB Host ControllerOK  
0xE000-0xEFFF   Motherboard resources   OK  
0xCEA00-0xC System boardOK  
0xF-0xF7FFF System boardOK  
0xF8000-0xFBFFF System boardOK  
0xFC000-0xF System boardOK  
0x2FEE-0x2FEF   System boardOK  
0x-0x   System boardOK  
0x10-0x2FED System boardOK  
0x2FFF-0x3FFE   System boardOK  
0xFEC0-0xFEC00FFF   System boardOK  
0xFEE0-0xFEE00FFF   System boardOK  
0xFFF8-0xFFFE   System boardOK  



The only thing that strikes me as odd is that right-clicking on My 
Computer reports the amount of RAM as 768 MB, while the diagnostics 
above states 1024 MB.


For the brief period of time the FreeBSD installer runs, it reports 
the amount of RAM as 768 MB too.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: In addition to - 7.2 panic during installation : AP #1 (PHY# 1) failed !

2009-06-17 Thread Manish Jain

Gary Gatten wrote:

Hmmm, seems to me the easy solution then is to run Wind0ze  j/k...

-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Manish Jain
Sent: Wednesday, June 17, 2009 4:21 PM
To: FreeBSD Mailing List
Subject: In addition to - 7.2 panic during installation : AP #1 (PHY#
1) failed !

I forgot to mention that Windows installs and runs very smoothly on 
the system.


Windows system information reports :

System Manufacturer Gigabyte Technology Co., Ltd.   
System ModelGA-MA78GM-US2H  
System Type X86-based PC
Processor   x86 Family 16 Model 2 Stepping 3 AuthenticAMD ~2304 Mhz 
BIOS Version/Date   Award Software International, Inc. F2, 02-Jan-09



SMBIOS Version  2.4 
Total Physical Memory   1,024.00 MB 

[Conflicts/Sharing]

ResourceDevice  
I/O Port 0x-0x0CF7  PCI bus 
I/O Port 0x-0x0CF7  Direct memory access controller 

I/O Port 0x03C0-0x03DF  PCI standard PCI-to-PCI bridge  
I/O Port 0x03C0-0x03DF  ATI Radeon HD 3200 Graphics 

Memory Address 0x-0x0FFFMotherboard resources   
Memory Address 0x-0x0FFFSystem board

Memory Address 0xFDE0-0xFDFFPCI standard PCI-to-PCI bridge  
Memory Address 0xFDE0-0xFDFFATI Radeon HD 3200 Graphics 

IRQ 22  Standard Dual Channel PCI IDE Controller
IRQ 22  Texas Instruments OHCI Compliant IEEE 1394 Host

Controller  


IRQ 16  Standard OpenHCD USB Host Controller
IRQ 16  Standard OpenHCD USB Host Controller
IRQ 16  Microsoft UAA Bus Driver for High Definition Audio  

Memory Address 0xD000-0xDFFFPCI standard PCI-to-PCI bridge  
Memory Address 0xD000-0xDFFFATI Radeon HD 3200 Graphics 

IRQ 18  ATI Radeon HD 3200 Graphics 
IRQ 18  PCI standard PCI-to-PCI bridge  
IRQ 18  Realtek RTL8168C(P)/8111C(P) PCI-E Gigabit Ethernet NIC 
IRQ 18  Standard OpenHCD USB Host Controller
IRQ 18  Standard OpenHCD USB Host Controller
IRQ 18  Standard OpenHCD USB Host Controller

IRQ 19  Microsoft UAA Bus Driver for High Definition Audio  
IRQ 19  Standard Enhanced PCI to USB Host Controller

Memory Address 0xA-0xB  PCI bus 
Memory Address 0xA-0xB  PCI standard PCI-to-PCI bridge  
Memory Address 0xA-0xB  ATI Radeon HD 3200 Graphics 

I/O Port 0x03B0-0x03BB  PCI standard PCI-to-PCI bridge  
I/O Port 0x03B0-0x03BB  ATI Radeon HD 3200 Graphics 


[DMA]

ResourceDevice  Status  
Channel 4   Direct memory access controller OK  

[Forced Hardware]

Device  PNP Device ID   

[I/O]

ResourceDevice  Status  
0x-0x0CF7   PCI bus OK  
0x-0x0CF7   Direct memory access controller OK  
0x0D00-0x   PCI bus OK  
0xE000-0xEFFF   PCI standard PCI-to-PCI bridge  OK  
0x03B0-0x03BB   PCI standard PCI-to-PCI bridge  OK  
0x03B0-0x03BB   ATI Radeon HD 3200 Graphics OK  
0x03C0-0x03DF   PCI standard PCI-to-PCI bridge  OK  
0x03C0-0x03DF   ATI Radeon HD 3200 Graphics OK  
0xEE00-0xEEFF   ATI Radeon HD 3200 Graphics OK  
0xD000-0xDFFF   PCI standard PCI-to-PCI bridge  OK  
0xDC00-0xDCFF   Realtek RTL8168C(P)/8111C(P) PCI-E Gigabit

Ethernet NICOK  

0xFF00-0xFF07   Standard Dual Channel PCI IDE Controller

OK  

0xFE00-0xFE03   Standard Dual Channel PCI IDE Controller

OK  

0xFD00-0xFD07   Standard Dual Channel PCI IDE Controller

OK  

0xFC00-0xFC03   Standard Dual Channel PCI IDE Controller

OK  

0xFB00-0xFB0F   Standard Dual Channel PCI IDE Controller

OK  

0xFA00-0xFA0F   Standard Dual Channel PCI IDE Controller

OK  

0x01F0-0x01F7   Primary IDE Channel OK  
0x03F6-0x03F6   Primary IDE Channel OK  
0x0170-0x0177   Secondary IDE Channel   OK  
0x0376-0x0376   Secondary IDE Channel   OK  
0x0A79-0x0A79   ISAPNP Read Data Port   OK  
0x0279-0x0279   ISAPNP Read Data Port   OK  
0x0274-0x0277   ISAPNP Read Data Port   OK  
0x4100-0x411F   Motherboard resources   OK  
0x0228-0x022F   Motherboard resources   OK  
0x0238-0x023F   Motherboard resources   OK  
0x040B-0x040B   Motherboard resources   OK  
0x04D6-0x04D6   Motherboard resources   OK  
0x0C00-0x0C01   Motherboard resources   OK  
0x0C14-0x0C14   Motherboard resources   OK  
0x0C50-0x0C52   Motherboard resources   OK  
0x0C6C-0x0C6D   Motherboard resources   OK  
0x0C6F-0x0C6F

Re: Need sed to do something which sounds simple

2009-05-29 Thread Manish Jain

Paul Schmehl wrote:
--On Thursday, May 28, 2009 07:48:36 -0500 Manish Jain 
invalid.poin...@gmail.com wrote:





Hi,

I need sed to do something which sounds simple, but I can't figure out
the right command. All I need to do is insert a blank after a '}' at the
end of a line if the next line begins immediately afterwards (i.e. with
no blank line between).

//abc.cpp :
int myclass::fx(int * arg)
{
if(! (isValid()))
{
return -1;
}
return ptr-fx(arg);
}

//what-i-want.cpp :
int myclass::fx(int * arg)
{
if(! (isValid()))
{
return -1;
}

return ptr-fx(arg);
}

The commands I have tried are :

i)
sed -e 's/\(}$\)\n\(^[[:space:]]*[[:alpha:]]\+\)/\1\n\n\2/' \
abc.cpp  what-i-want.cpp

ii)
sed -e 's/\(}$\)\(^[[:space:]]*[[:alpha:]]\+\)/\1\n\2/' \
abc.cpp  what-i-want.cpp

but obviously neither works, which is why posting this message.

Can anybody please tell me what the correct command would be like ?



Seems like this would work to add a space only to lines where the next 
line only has a new line :


sed  '  /\}$/ { N /}$\n\n/ { s/\}$\n/\} $\n/} } ' file

If the possibility exists that the new line might have spaces as well, 
you could do this:


sed  '  /\}$/ { N /}$\n\n/ { s/\}$\n[ ]?/\} $\n/} } '

Note: I haven't tested this, so it may require some modification.  Read 
this page on dealing with multiple lines in sed to gain further 
understanding - http://www.grymoire.com/Unix/Sed.html





Hello Paul,

After reading the sed document, the following worked for me :


sed '
/}$/ {
N
s/}\n\([[:space:]]\+\)\n*/}\n\n\1/
}' abc.cpp  what-i-want.cpp


This keeps the indentation intact.

Thanks for the help 
--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


Need sed to do something which sounds simple

2009-05-28 Thread Manish Jain


Hi,

I need sed to do something which sounds simple, but I can't figure out 
the right command. All I need to do is insert a blank after a '}' at the 
end of a line if the next line begins immediately afterwards (i.e. with 
no blank line between).


//abc.cpp :
int myclass::fx(int * arg)
{
if(! (isValid()))
{
return -1;
}
return ptr-fx(arg);
}

//what-i-want.cpp :
int myclass::fx(int * arg)
{
if(! (isValid()))
{
return -1;
}

return ptr-fx(arg);
}

The commands I have tried are :

i)
sed -e 's/\(}$\)\n\(^[[:space:]]*[[:alpha:]]\+\)/\1\n\n\2/' \
abc.cpp  what-i-want.cpp

ii)
sed -e 's/\(}$\)\(^[[:space:]]*[[:alpha:]]\+\)/\1\n\2/' \
abc.cpp  what-i-want.cpp

but obviously neither works, which is why posting this message.

Can anybody please tell me what the correct command would be like ?


Thank you 
--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
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: How to move vi to /bin

2009-05-15 Thread Manish Jain

Mel Flynn wrote:

On Wednesday 13 May 2009 09:21:46 manish jain wrote:


I want to move vi to /bin so that I have an editor available in
single-user mode.


The only reason to need an editor and not have /usr and /var available is to 
edit /etc/fstab. It is trivial to spot errors with /rescue/cat and fix with 
/rescue/sed, without having to worry about a terminal.


In all other cases:
fsck -p
/etc/rc.d/mountcritlocal start
/etc/rc.d/ldconfig start

And one can use any editor one would want. Don't forget to export or setenv 
TERM to cons25 from 'dumb'.




From all the discussion I have walked through on the issue of where to 
place vi, it does appear FreeBSD has a skewed policy on the issue. There 
are plenty of reasons you might need access an editor in single-user 
mode - editing  fstab is just one. Having to use the workarounds 
suggested in place of vi is not so good, and manually moving vi to /bin 
is not simply a matter of 'mv /usr/bin/vi /bin/'.


One of the things I would dearly like to see in a future release is vi 
being placed under /bin.


--
Regards
Manish Jain
invalid.poin...@gmail.com

Laast year I kudn't spell Software Engineer. Now I are won.
___
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


How to move vi to /bin

2009-05-13 Thread manish jain
Hi,

I want to move vi to /bin so that I have an editor available in
single-user mode. This sounds simple (and should be if all you have is
a single partition), but there are problems. For starters, terminfo
can't locate its database in single-user mode.

Could anyone please tell me how to go about this on a 7.x system ? I
am also curious to know why FreeBSD doesn't place vi under /bin in the
first place.


Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
___
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


MPlayer experiment not working out well

2009-04-12 Thread Manish Jain

Robert Huff wrote:

Erik Gustafson writes:

  

 Have you tried the ports multimedia/mplayer or multimedia/vlc? I
 can't live without mplayer on my desktop and it usually just
 works on everything i try to play.



I use mplayer too, but (as far as I know) the list of supported
codecs hasn't changed in several years.  That's mostly not a
problem, but there are certain file types (.wmvs I have been told
are handled correctly by Windows Media Player 10/11; this may be a
DRM thing) that completely do not play.

  

 If you want a fancy GUI, search in ports/multimedia for mplayer
 and you will find kde-mplayer, gnome-mplayer and friends.



Mplayer has a gui (gmplayer) but it's pretty minimal.


Robert Huff


  


Hello Robert / Erik / All,

The mplayer installation went pretty smoothly - no problems with that. 
And the gui is more than acceptable - I don't need the gnome-mplayer 
add-on. But the application has failed to play any file/CD/DVD for me so 
far. The typical complaint for unencrypted vob files/iso-images is 'Too 
many packets in the buffer', whereas for encrypted DVD's the application 
produces garbage. (Please note it is willing to take dvd://1 on the 
commandline but not dvdnav://1, even though libdvd[nav/read/css] are all 
installed on my system). My DVD device in mplayer is /dev/dvd 
(permissions 644), which is a symlink to /dev/acd0 (permissions 444).


For .dat files copies straight from CD's, the playback seems to occur at 
the rate of one frame per annum. On more than a couple of occasions, I 
remember getting some warning message to the effect 'gl missing : be 
prepared for a severe performance penalty'.


Needless to say, my spirits are dampened after all the initial 
enthusiasm and effort. Maybe somebody can point out what might be wrong 
with my setup. Following is the output of my 'make showconfig' in 
/usr/ports/multimedia/mplayer :
=== The following configuration options are available for 
mplayer-0.99.11_12:

 DEBUG=off Include debug symbols in mplayer's binary files
 RTCPU=on Let mplayer dynamically check for CPU features
 OCFLAGS=on Use optimized compiler flags
 SIMD=on Allow mplayer to use vector engines (MMX...)
 IPV6=off Include inet6 network support
 X11=on Enable X11 support for mplayer's video output
 X11XV=on X11 video drivers: XV
 X11DGA=on X11 video drivers: DGA
 X11GL=on X11 video drivers: OpenGL
 X11XIN=on X11 video drivers: Xinerama
 X11VM=off X11 VidMode support
 GUI=on Enable GTK2 graphical user interface with X11
 SDL=off Enable SDL video output
 VIDIX=off Enable VIDIX video output on supported archs
 SKINS=on Force dependency on mplayer-skins
 FREETYPE=on Use freetype for OSD fonts (TrueType!)
 RTC=off Add support for kernel real time clock timing
 ARTS=off Enable KDE sound system support
 ESOUND=on Enable GNOME esound support
 JACK=off Enable JackIt audio server support
 NAS=off Enable NAS sound server support
 OPENAL=off Enable OpenAL sound support
 LIBUNGIF=on Enable gif support
 AALIB=off Enable aalib support
 LIBCACA=off Enable libcaca support
 SVGALIB=off Enable svgalib support
 LIBDV=off Enable libdv support
 MAD=on Enable mad MPEG audio engine support
 DTS=on Enable DTS audio codec support
 LIBMPCDEC=off Enable libmpcdec support
 LADSPA=off Enable LADSPA plugin support
 SPEEX=off Enable speex audio codec support
 TREMOR=on Use built-in tremor instead of libvorbis
 XMMS=on Enable XMMS plugin support
 THEORA=off Enable ogg theora video support
 WIN32=on Enable win32 codec set on the IA32 arch
 AMR=off Enable AMR audio codec support
 X264=on Enable x264 (H.264) video codec support
 XANIM=on Enable xanim DLL support
 XVID=on Enable XVID video codec support
 REALPLAYER=off Enable real player plugin
 LIVEMEDIA=off Enable LIVE555 streaming support
 SMB=off Enable Samba input support
 FRIBIDI=off Enable FriBiDi support
 LIRC=off Enable lirc support
 LIBCDIO=off Enable libcdio support
 CDPARANOIA=off Enable cdparanoia support
 LIBLZO=off Enable external liblzo library
 JOYSTICK=off Enable joystick support
=== Use 'make config' to modify these settings


In mplayer's Preferences/codecs, I am using the DirectShow codecs. Could 
that be a problem ?

Any help would be greatly appreciated.

--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.

___
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


The Last Frontier : a good multimedia application

2009-04-11 Thread Manish Jain


Hi all,

After weeks of fumbling and struggling, I have made my full transition 
from Linux to FreeBSD, thanks in no mean measures to the assistance of 
this forum. I've got my FreeBSD 7.1 x86 system set up exactly as I 
wanted it and now I am looking to move one step further - and that is 
one big step. I wish to get rid of my Windows installation too, which 
exists purely for the purpose of multimedia entertainment - one area 
where I think GNU-based systems still have some way to go before they 
catch up with Win32 applications.


However, I am willing to give it a try. I already have xmms set up, 
which takes care of the audio part reasonably well. The big hole that 
remains is a video application. What I looking for is something on these 
lines :


1) I hardly ever play movies directly from the CD/DVD drive (/dev/dvd - 
/dev/acd0, courtesy devfs.conf). First I copy them to the hard-disk 
(after decrypting any DVD's if needed). So I ideally want an application 
that can play .dat and unencrypted .vob files directly from a hard disk 
ntfs partition without incessently complaining about missing plugins. 
(If necessary, I can reformat the ntfs partition as ffs). Actually, to 
be more accurate, I don't even have any .vob files. What I have is 
unencrypted .iso images of the DVD's, which I guess I will need to mount 
via mdconfig. But if the application strictly needs .vob files, I'll 
extract them from the iso images for its benefit.


2) Since my DVD drive is capable of reading DVD's from all regions, it 
would be great if the application could also, if needed, directly play 
encrypted DVD's from the drive itself. I have libdvdnav, libdvdread, 
libdvdcss and libdvdplay installed.


3) The final point to be considered is the quality of the video/audio 
playback compared to, say, PowerDVD on Windows - which I have used 
(version 2.55) with absolute delight and satisfaction since I purchased 
my first DVD.


Any tips/input would be greatly appreciated. To keep the discussion 
simple, HD/Blu-Ray are not in my plans for the current century.


--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.

___
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: The Last Frontier : a good multimedia application

2009-04-11 Thread Manish Jain

Robert Huff wrote:

Erik Gustafson writes:

  

 Have you tried the ports multimedia/mplayer or multimedia/vlc? I
 can't live without mplayer on my desktop and it usually just
 works on everything i try to play.



I use mplayer too, but (as far as I know) the list of supported
codecs hasn't changed in several years.  That's mostly not a
problem, but there are certain file types (.wmvs I have been told
are handled correctly by Windows Media Player 10/11; this may be a
DRM thing) that completely do not play.

  

 If you want a fancy GUI, search in ports/multimedia for mplayer
 and you will find kde-mplayer, gnome-mplayer and friends.



Mplayer has a gui (gmplayer) but it's pretty minimal.


Robert Huff


  


Hello Robert / Erik,

Thanks a lot. MPlayer certainly seems to come with strong credentials 
and recommendation. I am starting the build straight away. Since I am a 
die-hard gnomer, I'll go for gnome-mplayer as the frontend.


--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.

___
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: The Last Frontier : a good multimedia application

2009-04-11 Thread Manish Jain

Chris Rees wrote:

2009/4/11 Manish Jain invalid.poin...@gmail.com:
  

Hi all,

After weeks of fumbling and struggling, I have made my full transition from
Linux to FreeBSD, thanks in no mean measures to the assistance of this
forum. I've got my FreeBSD 7.1 x86 system set up exactly as I wanted it and
now I am looking to move one step further - and that is one big step. I wish
to get rid of my Windows installation too, which exists purely for the
purpose of multimedia entertainment - one area where I think GNU-based
systems still have some way to go before they catch up with Win32
applications.

However, I am willing to give it a try. I already have xmms set up, which
takes care of the audio part reasonably well. The big hole that remains is a
video application. What I looking for is something on these lines :

1) I hardly ever play movies directly from the CD/DVD drive (/dev/dvd -
/dev/acd0, courtesy devfs.conf). First I copy them to the hard-disk (after
decrypting any DVD's if needed). So I ideally want an application that can
play .dat and unencrypted .vob files directly from a hard disk ntfs
partition without incessently complaining about missing plugins. (If
necessary, I can reformat the ntfs partition as ffs). Actually, to be more
accurate, I don't even have any .vob files. What I have is unencrypted .iso
images of the DVD's, which I guess I will need to mount via mdconfig. But if
the application strictly needs .vob files, I'll extract them from the iso
images for its benefit.

2) Since my DVD drive is capable of reading DVD's from all regions, it would
be great if the application could also, if needed, directly play encrypted
DVD's from the drive itself. I have libdvdnav, libdvdread, libdvdcss and
libdvdplay installed.

3) The final point to be considered is the quality of the video/audio
playback compared to, say, PowerDVD on Windows - which I have used (version
2.55) with absolute delight and satisfaction since I purchased my first DVD.

Any tips/input would be greatly appreciated. To keep the discussion simple,
HD/Blu-Ray are not in my plans for the current century.

--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.




Have you tried vlc for video? I'm sure it's not something you've
completely overlooked, but it's probably worth another.

You seem settled on xmms, have you also tried out musicpd for music?
You can use Sonata as a frontend, very nice to use, or even over HTTP.
It also carries on fine should X crap out :)

Chris


  


Hello Chris,

Thanks for the input. I certainly am not settled on xmms. It's the only 
one I was aware of so far. Further to that, I WAS actually for something 
that could do without X, because I work a lot on the console. I'll start 
the musicpd build right away.


--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.

___
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


Question about support for HP D1560 printer under FreeBSD

2009-04-10 Thread Manish Jain


Hi,

I am about to buy a new printer (my first one actually) and my retailer 
strongly recommends HP's D1560 printer (USB). I am running 
ghostscript8-8.62_5 under FreeBSD 7.1 and I can't see this model listed 
anywhere in apsfilter. So I just want to confirm whether I could get 
this  printer to run on my system ?


--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.

___
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: Question about support for HP D1560 printer under FreeBSD

2009-04-10 Thread Manish Jain

   Jerry wrote:

According to the [1]http://hplipopensource.com/hplip-web/index.html site, your
printer is supported. Install the '/print/hplip' port. Be sure to read the docu
mentation on configuring the program.

I have hplip and cups installed on my system to support two HP wireless printer
s, and it works fine.


   Hi Jerry,
   Thanks for your message. I checked up the list, which says that the
   D1560 is indeed supported, but it also says that the minimum version
   of hplip required for this is 2.8.5, while the latest port available
   is 2.8.2.
   Please check
   out [2]http://hplipopensource.com/hplip-web/models/deskjet/deskjet_d15
   00_series.html for this.
--
Thank you and Regards
Manish Jain
[3]invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.

References

   Visible links
   1. http://hplipopensource.com/hplip-web/index.html
   2. cid:part1.08010003.09060804@gmail.com
   3. mailto:invalid.poin...@gmail.com

   Hidden links:
   4. 
http://hplipopensource.com/hplip-web/models/deskjet/deskjet_d1500_series.html
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;

html 
xmlns=http://www.w3.org/1999/xhtml; 
lang=en 
xml:lang=en 
dir=ltr
head
titleHP Linux Imaging and Printing/title
meta name=hp_design_version content=hpweb.1.2I/
meta name=template_name content=hpweb_generic_two_column/
meta http-equiv=Content-type content=text/html; charset=UTF-8/
meta name=target_country content=us/  
meta name=page_content content=products/
meta name=segment content=any/
meta name=lifecycle content=support/
meta name=Description content=The HPLIP Knowledge Base project is a 
Hierarchical Knowledge Base tool to help you find the answers to HPLIP 
questions./
meta name=product_service_solution_hierarchy 
content=support/HPLIP/
meta name=content_country_applicability content=W1/
meta name=user_type content=any/  
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
!--[if IE]
script type=text/javascript src=../misc/jquery.js/script
script type=text/javascript src=../misc/drupal.js/script
script type=text/javascript 
src=../modules/nice_menus/nice_menus.js/script
![endif]--
!-- link rel=shortcut icon href=../misc/favicon.ico 
type=image/x-icon / --
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/book/book.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/cck/theme/content.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/cck/modules/fieldgroup/fieldgroup.css?4;
 /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/fckeditor/fckeditor.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/nice_menus/nice_menus.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/nice_menus/nice_menus_default.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/node/node.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/system/defaults.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/system/system.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/system/system-menus.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/modules/user/user.css?4; /
link type=text/css rel=stylesheet media=all 
href=http://hplipopensource.com/themes/bluemarine/stylesheets/hplipstyle.css?4;
 /

script type=text/javascript 

/script

style

#distros_table {
position: relative;
left: 50px;
}

#models_table {
position: relative;
left: 50px;
}

#models_table table {
text-align: center;
}

#distros_table table {
text-align: center;
}

#download_button {
display: relative;
left: 50px;
}


#hplip_logo2 {
position: relative;
right: -50px;
top: -85px;
}

/*div.body2 {
position: absolute;
left: 200px;
top: -500px;
}
*/


pre {
background-color: #eee;
padding: 0.75em 1.5em;
border: 1px solid #ddd;
width: 50%;
overflow: auto;
}

hr {
width: 100%;
margin-left: -10px;
}

p {
font-size: 13px;
font-family: Arial, Verdana, Helvetica, Sans-serif;
}

li {
font-size: 13px;
font-family: Arial, Verdana, Helvetica, Sans-serif;
}

td {
font-size: 13px;
font-family: Arial, Verdana

hplip port update to version 2.8.5

2009-04-10 Thread Manish Jain


Hi,

I am about to buy a new printer and my retailer strongly recommends HP's 
D1560 printer (USB). I am running ghostscript8-8.62_5 under FreeBSD 7.1 
and I can't see this model listed anywhere in apsfilter. So I checked up 
the hplip site. The site says that the D1560 is indeed supported, but it 
also says that the minimum version of hplip required for this is 2.8.5, 
while the latest port available is 2.8.2.


Please check out 
http://hplipopensource.com/hplip-web/models/deskjet/deskjet_d1500_series.html


The site actually lists hplip version 2.8.5 as the minimum requirement 
for the entire D15XX series, and a whole lot of other deskjet printers.


Should I wait for a port update or do you think version 2.8.2 is capable 
of handling the printer ?


--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.

___
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: hplip port update to version 2.8.5

2009-04-10 Thread Manish Jain


Hi Jerry,


I think I would give some credence to the stated requirements on the
site. 


The reason I raised the point was I know of people using D15XX (but 
where XX  80) with hplip versions well below 2.8.5, and HP now claims 
2.8.5 to be the minimum for those printers too, as well as for a whole 
lot of printers which are known to work with hplip versions less than 
2.8.5. If I am not mistaken, the hplip site blindly states 2.8.5 as the 
minimum requirement for all printers of this class. Maybe this is just a 
convenient way of doing things for HP rather than figuring out each 
printer's actual minimum requirement.



In any case, did you contact the port maintainer about updating
the port. If if doesn't get done before the port freeze, you will
probably be screwed.
  

Sure I did. Although the response was not was particularly thrilling :
I am not sure when I'm going to get around to doing an update. If you 
want to take a stab at an update I'll be happy to review any patches, 
but you will probably need the newer version to get things working.

-- Anish Mistry amis...@am-productions.biz


My previous mail to freebsd-questions was marked as To by mistake. It 
was only intended to be a CC. Sorry.


If you reply, please CC me separately. It makes it so much easier for me 
to reply, if needed. BTW, I have never used hplip/CUPS before. I do hope 
it's not terribly complex to setup and go.


--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.

___
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: Critical : My X went down

2009-04-05 Thread manish jain

Paul B. Mahol wrote:

On 4/5/09, manish jain invalid.poin...@gmail.com wrote:

Hi all,

In attempting to unlock some Python related mysteries (which neither
python-list nor python-help would respond to despite repeated queries),
I found myself recursively portupgrading myself right up the xorg
distribution. That wasn't half as bad as the fact that - after all that
effort - X does not even start now.


Use vesa driver instead, and direct intel driver questions to Xorg lists.
i810, driver that you used with old Xorg is abandoned and replaced with intel.




Hello Paul,

Thanks for the information. But, as for the plan of action, I think I'll 
go the other way round. I'll reinstall FreeBSD 7.1 from scratch and just 
make sure nobody ever touches my xorg setup again. I could upgrade my 
system, yes, but my Celeron Coppermine 800 MHz + Intel 810-based 
motherboard system was running just as fast as the fancy 2.0 GHz PC's at 
IBM where I was working last year.


BTW, I seriously wish I were a billionaire so that I could help FreeBSD 
get rid of this X client-server nuisance forever. I have never seen 
anything so ill-conceived, pathetically fragmented (modular is the 
polite way of referring to it), inefficient and featureless.


The Mission looks Impossible-3 but, for starters, I just got a job offer 
yesterday from a multinational where the pay is roughly 50% higher.


So maybe, someday,  ... :-)

--

Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.
___
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


Critical : My X went down

2009-04-04 Thread manish jain
 CorePointer
InputDevice Keyboard1 CoreKeyboard
EndSection

Section DRI
Mode 0666
EndSection



Can anyone please help me out and get my X server up again ?

--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.
___
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: guile-1.8.6 build core dumps (autoconf issue ?)

2009-04-02 Thread Manish Jain

Mel Flynn wrote:

On Thursday 02 April 2009 03:01:53 manish jain wrote:

Hi Mel,

Sorry, I was away for work.

Here is what I think you want :

/usr/ports/lang/guile # make -C /usr/ports/lang/guile -V CONFIGURE_ENV
-V CONFIGURE_ARGS
CPPFLAGS=-I/usr/local/include  LDFLAGS=-L/usr/local/lib
SHELL=/bin/sh CONFIG_SHELL=/bin/sh MAKE=gmake
AUTOCONF=/usr/local/bin/autoconf-2.62
AUTOHEADER=/usr/local/bin/autoheader-2.62
AUTOIFNAMES=/usr/local/bin/ifnames-2.62
AUTOM4TE=/usr/local/bin/autom4te-2.62
AUTORECONF=/usr/local/bin/autoreconf-2.62
AUTOSCAN=/usr/local/bin/autoscan-2.62
AUTOUPDATE=/usr/local/bin/autoupdate-2.62 AUTOCONF_VERSION=262
lt_cv_sys_max_cmd_len=262144
 --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}


Hmmm...last straw:
find /usr/local -name '*.la' -exec grep -- '-llthread' {} +

To explain: something guile needs is built with linux-threads yet this is not 
correctly handled and the resulting binaries are flawed, most likely because 
another library that guile needs uses FreeBSD native threads.


On FreeBSD threaded linking is done with -pthread linker flag which pulls in 
the correct threading library (on 7.0 and above libthr, on 6.x and earlier 
libpthread).



Hi Mel,

There is no output.


/root # find /usr/local -name '*.la' -exec grep -- '-llthread' {} +
/root # 




--

Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

___
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


Recovered my gnome but alacarte doesn't run

2009-04-02 Thread Manish Jain


Hi all,

I crashed my gnome with a brilliant idea I had a few days back. After 
about 100 man-hours and 500 MB of downloads, I have recovered my gnome 
except for one glitch : alacarte doesn't run. I suppose I could sit down 
some more and trace the problem, but 1) I am exhausted and 2) I am sure 
any gtk/python user could readily point out what is missing in my setup.


Below is the output of alacarte :


  Traceback (most recent call last):
  File /usr/local/bin/alacarte, line 22, in module
from Alacarte.MainWindow import MainWindow
  File /usr/local/lib/python2.5/site-packages/Alacarte/MainWindow.py, line 19, in 
module
import gtk, gtk.glade, gmenu, gobject, gio
  File /usr/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py, line 38, in 
module
import gobject as _gobject
  File /usr/local/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py, line 33, 
in module
from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
  File /usr/local/lib/python2.5/site-packages/gtk-2.0/glib/__init__.py, line 30, in 
module
from glib._glib import *
ImportError: /usr/local/lib/python2.5/site-packages/gtk-2.0/glib/_glib.so: Undefined 
symbol PyUnicodeUCS2_DecodeUTF8

[1]+  Exit 1  alacarte



Any help would be greatly appreciated.
--

Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.
___
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


Question about forcing fsck at boottime

2009-03-31 Thread manish jain


Hi,

I am migrating from Linux and am still learning the basics of FreeBSD. 
One thing that I would to carry over from my Linux days is to force an 
fsck on all filesystems at system startup. On Linux, this was simply a 
matter of editing /etc/rc.sysinit. Things seem a bit more complicated in 
the BSD world. Can somebody please point me in the right direction ?


--
Thank you and Regards
Manish Jain
invalid.poin...@gmail.com
+91-99830-62246

NB : Laast year I kudn't spell Software Engineer. Now I are won.
___
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


  1   2   >