Re: how to set vi line number?

2008-07-10 Thread sac u
On 7/10/08, EdwardKing [EMAIL PROTECTED] wrote:

 my first question is whether vi can show line number,such as 1: 2: 3:?
 my second question is whether vi support c syntax,such as show #include
 with other different color?


To list line numbers.
:set nu

I don't think vi has syntax highlighting, but vim does have it.

sac.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Why can't ping

2008-07-10 Thread sac u

 This is your interface - le0.



Additonally do not forget to run /etc/netstart

 options=8 VLAN_MTU
  either 00:0d:18:23:32:7a
  inet6 fe80::20c:29ff:fe76:365a%le0 prefixlen 64 scopeid 0x1
  inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255

 It shows that your le0 interface has not been assigned with the network
 information
 that you listed.

 Try again but use le0 as your interface instead.

 Chris Haulmark


sac.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ipod software

2007-10-15 Thread sac
 Thanks for the suggestions.  I am trying out gtkpod now, and it seems to
 work fine, although I wish that there was a non/gui type program.

try gnupod.

Regards,
Sachidananda.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Audio CD help

2007-10-15 Thread sac
On 10/16/07, leegold [EMAIL PROTECTED] wrote:


   I can not get Audio Cds to play. I'm using KDE.

  Try with:
 
  $ cdcontrol play

 $ cdcontrol play
 cdcontrol: /dev/acd0: Permission denied
 $ su
 Password:
 Password:
 tulip# cdcontrol play  --  it plays the CD OK
 as root
 tulip# ls -l /usr/sbin/cdcontrol
 -r-xr-xr-x  1 root  wheel  18632 Jan 12  2007 /usr/sbin/cdcontrol
 tulip#

 As a regular user it will not play.   As root CDs play Ok. I've been
 reading about the operator group as a fix. Is that the way?

 What should I do? Thanks


 To play the media as regular user you have give appropriate permissions in
/etc/devfs.conf.
check man page for devfs.conf(5).

-- 
Regards,
Sachidananda.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cdrecord on fbsd-6.1-R amd64

2007-07-27 Thread sac
On 7/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Not at amd64... I've tried this option and the output is cannot open scsi
 driver; for possible transport specifiers try cdrecord-dev --help. I've
 searched man cdrecord and it tells about some integer just put after dev
 which is called cam as it follows:

$ cdrecord -v dev=cam:1,1,1 speed=4 something.iso

 I got no output!

 On 7/15/07, Roland Smith [EMAIL PROTECTED] wrote:
 
  On Sun, Jul 15, 2007 at 02:07:17PM -0300, [EMAIL PROTECTED] wrote:
  How to write CDs on amd64? My cd driver is an IDE-ATAPI and needs
   scsi emulation. cdrecord says it needs some scsi transport emulation
  like
   cam...
  
  
   $ cdrecord -v  dev=cam:1,1,1  speed=4  something.iso
  
   its output claims for scsi specifier transp
 
  Try 'cdrecord -scanbus'. That tells you which devices are available.
  Im my case it produces;
 
  Cdrecord-ProDVD-Clone 2.01.01a11 (amd64-unknown-freebsd6.2) Copyright (C)
  1995-2006 Jörg Schilling
  Using libscg version 'schily-0.8'.
  scsibus1:
  1,0,0   100) 'HL-DT-ST' 'DVD-ROM GDR8163B' '0L23' Removable CD-ROM
  1,1,0   101) 'PLEXTOR ' 'DVDR   PX-716A  ' '1.08' Removable CD-ROM
  1,2,0   102) *
  1,3,0   103) *
  1,4,0   104) *
  1,5,0   105) *
  1,6,0   106) *
  1,7,0   107) *
 
  So I use
 
  cdrecord -dao -speed=52 driveropts=burnfree dev=1,1,0 -pad -data some.iso
 
  HTH,
 
  Roland
  --
  R.F.Smith   http://www.xs4all.nl/~rsmith/
  [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
  pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
 

Check if the following link helps:

http://thegaul.org/?p=51
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hello 1 question about close console

2007-06-29 Thread sac

On 6/25/07, oim [EMAIL PROTECTED] wrote:

Hello!

I have a question about this situation.

In home work Pc with FreeBSD Server, real ip and real domain name.
When i remote connect ssh2 (consose) from my work.. make on server some.. 
compile program from ports

And some time later i need to close console, but i want, what session not close 
and compile processing.

If i disconect from console all job stop. How disconect from console and come 
back to my session?



Hi,

The most simplest solution to your problem is to `disown' the process.

For eg:

$ some_process 
$ disown

And if you are using zsh there it is much easier:

$ some_process !

And when you exit, the processes will not be killed.

Regards,
sac.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to see the Ram memory in freebsd 6.2

2007-06-18 Thread sac

On 6/17/07, Prakash Poudyal [EMAIL PROTECTED] wrote:

Hello All,

Can any body tell me how to see the RAM memory in freebsd.

for your reference I had already used dmesg and top command and now I want
to know specifec command to see the Ram memory only.




$ sysctl hw.physmem | awk '{ print $2/(1024*1024) }'

Will give you memory size in megabytes.

- Sachidananda.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to disable command prompt history?

2007-06-02 Thread sac

On 6/2/07, Christopher Hilton [EMAIL PROTECTED] wrote:

VeeJay wrote:
 Hello there

 Could someone would like to describe that how we can disable to show last
 executed commands by pressing Up Arrow?


That would depend on which shell you are running. Can you run the
following command and post the results here?

 echo $SHELL



By default most of the shells like bash, zsh, ksh have history option.
But you can avoid writing the history of the current session to the
history file by unsetting the HISTFILE environment variable.
So next time when you login the history of the previous session will
not be shown.

sac.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Dual boot.

2007-05-31 Thread sac

On 5/30/07, Paul Halliday [EMAIL PROTECTED] wrote:

I just installed 6.2 on a 90GB drive. During the installation I
created the usual partitions and left 50GB untouched. I then rebooted
ran partition magic to put a DOS FS on the remainder then ghosted XP
pro onto it.

What is the process now to dual boot this? I have tried booting then:

sysinstall - configure - fdisk

then install the bootmanager but when I try to write out the changes
it errors and says:

ERROR: Unable to write data to disk ad0!

Do I need to start over or can I fix this?



Hi,
by default the variable kern.geom.debugflags will be 0
when 0 it does not allow to update the disk.
Set this flag to 16.
And try to install the bootmanager. This worked for me while creating
new partition. HTH.
And I do not know the functionality of this variable, somebody throw
more light on this topic.

Sachidananda.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: grub

2007-05-29 Thread sac

On 5/30/07, Dan Nelson [EMAIL PROTECTED] wrote:

In the last episode (May 29), Richard Knebel said:
  I had freebsd installed on my 1st hardrive withour difficuties. I
  then installed Debian Linux on my 2nd hard drive and the grub
  bootloader overwrote my mbr and now I can only boot debian. How can
  I get my freebsd back ?

Assuming grub is functional, you might want to just keep it and add
another entry like this:

 title FreeBSD
  root (hd1,1,a)
  kernel /boot/loader
  savedefault

replacing (hd1,1,a) with whatever find /boot/loader at the grub CLI
returns.  If your grub doesn't have UFS support, then the find and
kernel commands won't work, and you'll have to chainload to the FreeBSD
slice's bootblock instead of using the kernel command.

If you really want booteasy back, boot into FreeBSD and run boot0cfg
-B /dev/ad0 (or whatever your 1st hardrive's device is)

--
Dan Nelson
[EMAIL PROTECTED]


Boot into your linux box, edit /boot/grub/menu.lst
And add the following lines:

title FreeBSD
root (hd0,1)# this changes based on where on the partition/drive
the FreeBSD is installed.
chainloader +1
savedefault

run,

# grub-install /dev/hda  # sda if sata disk

reboot.

this should help to solve your problem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


burncd on FreeBSD-6.2

2007-05-23 Thread sac

Hi,

I was trying to burn cds using burncd. When I try to blank using
`burncd -f /dev/acd0 blank', it hangs forever until I interrupt.
And when I burn data in verbose mode it outputs message saying cd
burnt successfully:


addr = 0 size = 372736 blocks = 182
writing from file 7.0-CURRENT-200704-i386-disc2.iso size 364 KB
written this track 364 KB (100%) total 364 KB


but when I try to mount the cd later, I'm unable to do it and the
Input/Output error is thrown. Is there anything I'm missing? Is there
any other way to burn the cd other than using cdrecord.

Regards,
sac.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: burncd on FreeBSD-6.2

2007-05-23 Thread sac

On 5/23/07, Paul Schmehl [EMAIL PROTECTED] wrote:

--On Wednesday, May 23, 2007 22:36:06 +0530 sac [EMAIL PROTECTED] wrote:

 Hi,

 I was trying to burn cds using burncd. When I try to blank using
 `burncd -f /dev/acd0 blank', it hangs forever until I interrupt.
 And when I burn data in verbose mode it outputs message saying cd
 burnt successfully:

 
 addr = 0 size = 372736 blocks = 182
 writing from file 7.0-CURRENT-200704-i386-disc2.iso size 364 KB
 written this track 364 KB (100%) total 364 KB
 

 but when I try to mount the cd later, I'm unable to do it and the
 Input/Output error is thrown. Is there anything I'm missing? Is there
 any other way to burn the cd other than using cdrecord.

You need to use fixate:
 fixateFixate the medium so that the TOC is generated and the
   media can be used in an ordinary CD drive.  The driver
   defaults to creating singlesession media (see -m option).
   Ignored in DAO mode (see -d option).

burncd -ef /dev/acd0 data /home/user/cd.iso fixate



Sorry, I forgot to mention that. I used fixate too.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: burncd on FreeBSD-6.2

2007-05-23 Thread sac

On 5/23/07, Paul Schmehl [EMAIL PROTECTED] wrote:

--On Wednesday, May 23, 2007 23:09:57 +0530 sac [EMAIL PROTECTED] wrote:

 On 5/23/07, Paul Schmehl [EMAIL PROTECTED] wrote:
 --On Wednesday, May 23, 2007 22:36:06 +0530 sac [EMAIL PROTECTED] wrote:

  Hi,
 
  I was trying to burn cds using burncd. When I try to blank using
  `burncd -f /dev/acd0 blank', it hangs forever until I interrupt.
  And when I burn data in verbose mode it outputs message saying cd
  burnt successfully:
 
  
  addr = 0 size = 372736 blocks = 182
  writing from file 7.0-CURRENT-200704-i386-disc2.iso size 364 KB
  written this track 364 KB (100%) total 364 KB
  
 
  but when I try to mount the cd later, I'm unable to do it and the
  Input/Output error is thrown. Is there anything I'm missing? Is there
  any other way to burn the cd other than using cdrecord.
 
 You need to use fixate:
  fixateFixate the medium so that the TOC is generated and the
media can be used in an ordinary CD drive.  The driver
defaults to creating singlesession media (see -m
option). Ignored in DAO mode (see -d option).

 burncd -ef /dev/acd0 data /home/user/cd.iso fixate


 Sorry, I forgot to mention that. I used fixate too.

Is the iso really 364KB?  That's awfully small for an iso.  Maybe there's
something wrong with the image?  I would think that 7.0 Current Disk 2
would be much largerlike 654MB.


Yeah the size is correct. I was able to mount the iso without any
problem. And the MD5SUM matched too.

Regards,
sac.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Why doesn't FreeBSD clear /tmp on bootup?

2007-05-03 Thread sac

Hi,

I've seen OpenBSD and some other variants of Unix clearing /tmp on
bootup. But FreeBSD doesn't seem to do so.
Is there any specific reason for this variation or is it just a matter
of taste between these different Operating Systems?

Regards,
sac.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mount an iso image?

2007-04-24 Thread sac

Don't forget to unmount and detach the memory disk:
umount /somewhere
mdconfig -ud 0




a slight modification
   mdconfig -du 0

0 should be replaced with the appropiate device number




-- Martin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]





--

Regards,
sac
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing the CVS

2007-04-12 Thread sac

Maybe you can avoid posting these questions to freebsd-bugs.
Just mail to freebsd-questions.

Regards,
sac.

On 4/11/07, Dhananjaya hiremath [EMAIL PROTECTED] wrote:


Hello sir,

   Please specifies how to get the CVS to FreeBSD.And some packages are
not
  installing lile( samba,python etc) It is giving the error so how we can
install this one.



Thank U
Dhananjaya Hiremath


-
Looking for earth-friendly autos?
Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]





--

Regards,
Sachidananda.
Informedia Technologies (Mysore) Pvt. Ltd.
Mysore.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell PATH not being reread

2007-04-12 Thread sac

As Kevin Kinsey pointed out, if your shell is csh, ksh, zsh or tcsh, all you
have to do is run
$ hash -r
or
$ rehash


On 4/12/07, Sean Murphy [EMAIL PROTECTED] wrote:


I have just installed FreeBSD 6.2 Release.  I su to root and run

pkg_add -r cvsup-without-gui

It installed fine

I edited the ports-supfile
cd /usr/share/examples/cvsup
vi ports-supfile

but when I go to run

cvsup -g -L 2 ports-supfile

It tells me it cannot find the command

I logout completely then login again and su and I can now run the same
command from the /usr/share/examples/cvsup directory.

It seems the path is not being rebuilt or reread when I added that
package but when I logout and login it works.  I know I can type in the
the full path and command but was wondering if there was a solution to
reload/rebuild/reread the path so I don't have to login/logout/login

env for myself is

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/smurphy/bin
SHELL=/bin/sh

env for root is

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
SHELL=/bin/csh


Thanks.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]





--

Regards,
Sachidananda.
Informedia Technologies (Mysore) Pvt. Ltd.
Mysore.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]