Re: Any BASIC Gurus around?

2013-06-18 Thread Julian H. Stacey
> As you need max syntax checking from OCR, throw it at as many
> different basic interpreters/ compilers as you can, & inspect where
> each bleats, some error messages may be more & less usefull for
> different errors.
> 
> A friend of mine wrote a basic decades back, its in /usr/ports/lang/pbasic/

PS to find mis-matched brackets, try my 
http://www.berklix,com/~jhs/src/bsd/jhs/bin/public/brackets/

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with "> ".
 Send plain text.  No quoted-printable, HTML, base64, multipart/alternative.
___
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: Avoid sharing interrupts in FreeBSD under ESXi

2013-06-18 Thread Julian H. Stacey
"C. L. Martinez" wrote:
> HI all,
> 
>  I have installed a FreeBSD 8.4 vm under an ESXi 5.1 U1 server. All
> works ok, except for interrupt usage between mpt and nic interfaces:

freebsd-questions@freebsd.org is for beginners questions for newbies,
as this question is deeper, I suggest try asking on
freebsd-virtualizat...@freebsd.org or one of the other lists 

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with "> ".
 Send plain text.  No quoted-printable, HTML, base64, multipart/alternative.
___
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: Any BASIC Gurus around?

2013-06-18 Thread Paul Wootton

On 06/17/13 20:40, Greg Larkin wrote:

Hi Chris,

I prepared a new patch that incorporates my fixes, yours and
Michael's.  I found the coredump - multiple missing right parens on
line 1170.  Then I ran into another problem on line 430 and made an
educated guess with the fix.

The new patch is here, and you'll need to apply it to the original
version of the program:
http://people.freebsd.org/~glarkin/diffs/prog.bas.2.diff

Hope that works,
Greg


Hi Chris and Greg,

I have gone through the code and found a load more differences. I dont 
know if the sun and moon positions are correct though
As a side note, the the first page of code on the PDF page number 5 is 
different from the PDF page number 34. I have used page numbers 34 -> 38 
as my code reference.


I have a patch file at http://www.caspersworld.co.uk/FreeBSD/basic.diff

HTH
Paul


___
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"


install firefox without X

2013-06-18 Thread Pol Hallen
Hi all :-)

I need use -X ssh and use firefox on remote machine:

ssh -X -l user xxx host

Is there a way to install firefox without X? or less ports possible

thanks!

Pol
___
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: Any BASIC Gurus around?

2013-06-18 Thread Chris Maness
On Tue, Jun 18, 2013 at 4:31 AM, Paul Wootton <
paul-free...@fletchermoorland.co.uk> wrote:

> On 06/17/13 20:40, Greg Larkin wrote:
>
>> Hi Chris,
>>
>> I prepared a new patch that incorporates my fixes, yours and
>> Michael's.  I found the coredump - multiple missing right parens on
>> line 1170.  Then I ran into another problem on line 430 and made an
>> educated guess with the fix.
>>
>> The new patch is here, and you'll need to apply it to the original
>> version of the program:
>> http://people.freebsd.org/~**glarkin/diffs/prog.bas.2.diff
>>
>> Hope that works,
>> Greg
>>
>
> Hi Chris and Greg,
>
> I have gone through the code and found a load more differences. I dont
> know if the sun and moon positions are correct though
> As a side note, the the first page of code on the PDF page number 5 is
> different from the PDF page number 34. I have used page numbers 34 -> 38 as
> my code reference.
>
> I have a patch file at 
> http://www.caspersworld.co.uk/**FreeBSD/basic.diff
>
> HTH
> Paul
>
>
>
Paul, which version did you patch for?  It doesn't seem to be the latest or
the original.  If you want to post the whole file.  I can figure out if you
are missing any of the other contributions out there.  I think there were a
total of three patches before yours.

Thanks, Paul
Chris Maness
___
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: Any BASIC Gurus around?

2013-06-18 Thread Paul Wootton

On 06/18/13 15:01, Chris Maness wrote:

On Tue, Jun 18, 2013 at 4:31 AM, Paul Wootton<
paul-free...@fletchermoorland.co.uk>  wrote:


On 06/17/13 20:40, Greg Larkin wrote:


Hi Chris,

I prepared a new patch that incorporates my fixes, yours and
Michael's.  I found the coredump - multiple missing right parens on
line 1170.  Then I ran into another problem on line 430 and made an
educated guess with the fix.

The new patch is here, and you'll need to apply it to the original
version of the program:
http://people.freebsd.org/~**glarkin/diffs/prog.bas.2.diff

Hope that works,
Greg


Hi Chris and Greg,

I have gone through the code and found a load more differences. I dont
know if the sun and moon positions are correct though
As a side note, the the first page of code on the PDF page number 5 is
different from the PDF page number 34. I have used page numbers 34 ->  38 as
my code reference.

I have a patch file at 
http://www.caspersworld.co.uk/**FreeBSD/basic.diff

HTH
Paul




Paul, which version did you patch for?  It doesn't seem to be the latest or
the original.  If you want to post the whole file.  I can figure out if you
are missing any of the other contributions out there.  I think there were a
total of three patches before yours.

Thanks, Paul
Chris Maness


Hi Chris,

I used the code from the first post and compared against the PDF.
I did try checking against the various diffs and I think I have them all 
covered.


I full file is at http://www.caspersworld.co.uk/FreeBSD/basic-moon.bas

Paul


___
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"


Update git without installing an entire Docbook toolchain?

2013-06-18 Thread Morse, Richard E.MGH
Hi! Is it possible to upgrade git without installing an entire Docbook 
toolchain? The computer in question is a server, which nobody uses as their 
primary computer, so if there's a way to just disable all documentation, that 
would also be fine.

Thanks,
Ricky


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

___
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"


Fwd: [PKGNG] i386-wine-1.6.r2

2013-06-18 Thread David Naylor
Hi,

Pkgng packages are available for i386-wine-1.6.r2 [1] at local-distfiles [2].  
Currently packages are available for FreeBSD 8 and 9 [3][4].  For previous 
version of i386-wine replace 'latest' with the version number.  

To install the port try one of the following options:

 - Method 1 (Quick and easy)
For FreeBSD 8 (as root)
# pkg add http://alturl.com/ih93t
For FreeBSD 9 (as root)
# pkg add http://alturl.com/opzyj

 - Method 2 (Repo)
This method will only be fully supported with pkgng v1.1.  

Regards

David

P.S. I'll be available on Saturday to address any issues / questions.  

[1] See the wiki for more details: http://wiki.FreeBSD.org/i386-Wine (WIP)
[2] See your local FreeBSD mirror under ports/local-distfiles/dbn/i386-wine-
devel/${ABI}/latest where ABI=freebsd:X:x86:64 for X in {8, 9}.  
[3] Packages are built from FreeBSD 8.3 and 9.1 respectively.  
[4] Packaging for FreeBSD 10 will be resumed in due course.  

signature.asc
Description: This is a digitally signed message part.


FreeBSD slice/partiton setup question

2013-06-18 Thread Istvan Gabor
Hello:

I have a question regarding FreeBSD slices/partitions.

I have a disk with linux partitions with the following layout:

/dev/sda1 /
/dev/sda2 /home
/dev/sda3 /usr/local
/dev/sda5 swap
/dev/sda6 /home/user1
/dev/sda7 /home/user2
etc.

sda1, sda2, and sda3 are primary partitions, sda5 and above are logical 
partitions on an extended partition.

I would like to have a similar setup with FreeBSD.
The goal is that the / root, /home, /usr/local and /home/user1 etc. filesystems 
should be on independent slices/partitions so that I could mount them 
independently from linux.

How can I do this in FreeBSD?
Can I have slices with only one partition occupying the whole slice?

Can I do something like the following:

/dev/ad0s1a /
/dev/ad0s2e /home
/dev/ad0s3e /usr/local
/dev/ad0s5b swap
/dev/ad0s6e /home/user1
/dev/ad0s7e /home/user2
etc.

where the partitions (a, e, b) occupy the whole slice where they reside on?

Thanks,

Istvan

___
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 slice/partiton setup question

2013-06-18 Thread Michael Sierchio
On Tue, Jun 18, 2013 at 10:44 AM, Istvan Gabor  wrote:
> ...
> How can I do this in FreeBSD?
> Can I have slices with only one partition occupying the whole slice?
>
> Can I do something like the following:
>
> /dev/ad0s1a /
> /dev/ad0s2e /home
> /dev/ad0s3e /usr/local
> /dev/ad0s5b swap
> /dev/ad0s6e /home/user1
> /dev/ad0s7e /home/user2
> etc.
>
> where the partitions (a, e, b) occupy the whole slice where they reside on?

Why bother with partitions if you're going to use the whole slice?

Why bother with slices if you won't run out of partitions?

- M
___
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: install firefox without X

2013-06-18 Thread Teske, Devin
On Jun 18, 2013, at 6:41 AM, Pol Hallen wrote:

> Hi all :-)
> 
> I need use -X ssh and use firefox on remote machine:
> 
> ssh -X -l user xxx host
> 
> Is there a way to install firefox without X? or less ports possible
> 

I indeed run Firefox using the above method from my servers (which aren't 
running X) but X is still installed.

It *should* be able to work in theory (I use xdialog from ports on machines 
that don't have X installed; only xdialog and xauth).

*** warning *** will uninstall X11 software *** warning ***

pkg_delete -x xorg

Maybe Firefox will still run (communicating with the X server running on the 
local side of your ssh client), or maybe it will balk incessantly about 
something.

I do know however, that you'll need xauth installed regardless.
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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: install firefox without X

2013-06-18 Thread ill...@gmail.com
On 18 June 2013 14:01, Teske, Devin  wrote:

> On Jun 18, 2013, at 6:41 AM, Pol Hallen wrote:
>
> > Hi all :-)
> >
> > I need use -X ssh and use firefox on remote machine:
> >
> > ssh -X -l user xxx host
> >
> > Is there a way to install firefox without X? or less ports possible
> >
>
> I indeed run Firefox using the above method from my servers (which aren't
> running X) but X is still installed.
>
> It *should* be able to work in theory (I use xdialog from ports on
> machines that don't have X installed; only xdialog and xauth).
>
> *** warning *** will uninstall X11 software *** warning ***
>
> pkg_delete -x xorg
>
> Maybe Firefox will still run (communicating with the X server running on
> the local side of your ssh client), or maybe it will balk incessantly about
> something.
>
> I do know however, that you'll need xauth installed regardless.
>

While you don't have to have xorg-server (or any of the various
drivers) installed, you still need a fair bit:

> pkg info -d firefox
firefox-17.0.6,1 depends on:
atk-2.6.0
binutils-2.23.1
bitstream-vera-1.10_5
cairo-1.10.2_5,2
compositeproto-0.4.2
damageproto-1.2.1
desktop-file-utils-0.21
dri2proto-2.8
encodings-1.0.4,1
expat-2.0.1_2
fixesproto-5.0
font-bh-ttf-1.0.3
font-misc-ethiopic-1.0.3
font-misc-meltho-1.0.3
font-util-1.3.0
fontconfig-2.9.0,1
freeglut-2.8.1
freetype2-2.4.12_1
gamin-0.1.10_5
gcc-4.6.3
gdk-pixbuf2-2.26.5_3
gettext-0.18.1.1_1
gio-fam-backend-2.34.3
glib-2.34.3
glproto-1.4.16
gmp-5.1.2
gnomehier-3.0
gobject-introspection-1.34.2
gtk-update-icon-cache-2.24.19
gtk-2.24.19
hicolor-icon-theme-0.12
hunspell-1.3.2_2
icu-50.1.2
inputproto-2.3
jasper-1.900.1_12
jbigkit-1.6
jpeg-8_4
kbproto-1.0.6
libGL-7.6.1_4
libGLU-7.6.1_2
libICE-1.0.8,1
libIDL-0.8.14_1
libSM-1.2.1,1
libX11-1.6.0,1
libXau-1.0.8
libXcomposite-0.4.4,1
libXcursor-1.1.14
libXdamage-1.1.4
libXdmcp-1.1.1
libXext-1.3.2,1
libXfixes-5.0.1
libXft-2.3.1
libXi-1.7.1_1,1
libXinerama-1.1.3,1
libXmu-1.1.1,1
libXrandr-1.4.1
libXrender-0.9.8
libXt-1.1.4,1
libXxf86vm-1.1.3
libdrm-2.4.17_1
libevent2-2.0.21
libffi-3.0.13
libfontenc-1.1.2
libiconv-1.14_1
libpciaccess-0.13.1_1
libpthread-stubs-0.3_3
libvpx-1.1.0
libxcb-1.9.1
libxml2-2.8.0_2
mkfontdir-1.0.7
mkfontscale-1.1.0
mpc-0.9
mpfr-3.1.2
ncurses-5.9_3
nspr-4.9.6
nss-3.14.3
pango-1.30.1
pciids-20130606
pcre-8.33
perl-threaded-5.16.3
pixman-0.28.2
pkgconf-0.9.2_1
png-1.5.16
python27-2.7.5_1
randrproto-1.4.0
renderproto-0.11.1
shared-mime-info-1.1
sqlite3-3.7.17_1
tiff-4.0.3
xcb-util-renderutil-0.3.8
xcb-util-0.3.9_1,1
xextproto-7.2.1
xf86vidmodeproto-2.3.1
xineramaproto-1.2.1
xorg-fonts-truetype-7.7
xproto-7.0.24
zip-3.0

NB: you might need more than that to build

-- 
--
___
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 slice/partiton setup question

2013-06-18 Thread Istvan Gabor
2013. június 18. 19:49 napon Michael Sierchio  írta:

> On Tue, Jun 18, 2013 at 10:44 AM, Istvan Gabor  wrote:
> > ...
> > How can I do this in FreeBSD?
> > Can I have slices with only one partition occupying the whole slice?
> >
> > Can I do something like the following:
> >
> > /dev/ad0s1a /
> > /dev/ad0s2e /home
> > /dev/ad0s3e /usr/local
> > /dev/ad0s5b swap
> > /dev/ad0s6e /home/user1
> > /dev/ad0s7e /home/user2
> > etc.
> >
> > where the partitions (a, e, b) occupy the whole slice where they reside on?

Thanks, but I don't understand your answer.
I am puzzled a little bit. My understanding based on the FreeBSD handbook is 
that
slices in FreeBSD are the partitions in linux. And that on one slice (linux 
partition)
FreeBSD  has (or can have?) several partitions. These are labeled as letters: a 
for root
partition, b for swap, c for the whole slice, and e for a regular non-root 
partition.
 
> Why bother with partitions if you're going to use the whole slice?
Are you saying that one can use/mount a whole slice without adding partitions 
to it?
For example /dev/ada0s1 could be the root partition?
 
> Why bother with slices if you won't run out of partitions?
Do you mean putting all partitions on one big slice?
I would like to be able to mount different partitions independently from other 
OS,
eg. from linux. As far as I know linux cannot mount FreeBSD partitions, only 
the whole slice.
If one slice has several partitions, one single partition can not be mounted 
from linux.

Could you please confirm if my understanding is correct, or explain a little 
bit more detailed
what you meant?

Thanks,

Istvan



___
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: Re: FreeBSD slice/partiton setup question

2013-06-18 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Tue Jun 18 13:47:50 2013
> Subject: =?UTF-8?Q?Re:_FreeBSD_slice/partiton_setup_?=
>  =?UTF-8?Q?question?=
> From: =?UTF-8?Q?Istvan_Gabor?= 
> To: =?UTF-8?Q?FreeBSD_Questions?=,
>  =?UTF-8?Q?Michael_Sierchio?=,
>  =?UTF-8?Q?Michael_Sierchio?=
> Date: Tue, 18 Jun 2013 20:48:20 +0200
>
> 2013. jA nius 18. 19:49 napon Michael Sierchio  A-
> rta:
>
> > On Tue, Jun 18, 2013 at 10:44 AM, Istvan Gabor  
> > wrote:
> > > ...
> > > How can I do this in FreeBSD? Can I have slices with only one 
> > > partition occupying the whole slice?
> > >
> > > Can I do something like the following:
> > >
> > > /dev/ad0s1a /
> > > /dev/ad0s2e /home
> > > /dev/ad0s3e /usr/local
> > > /dev/ad0s5b swap
> > > /dev/ad0s6e /home/user1
> > > /dev/ad0s7e /home/user2
> > > etc.
> > >
> > > where the partitions (a, e, b) occupy the whole slice where they 
> > > reside on?
>
> Thanks, but I don't understand your answer. I am puzzled a little bit. My 
> understanding based on the FreeBSD handbook is that slices in FreeBSD are 
> the partitions in linux. And that on one slice (linux partition) FreeBSD  
> has (or can have?) several partitions. These are labeled as letters: a 
> for root partition, b for swap, c for the whole slice, and e for a 
> regular non-root partition.

The terminology gets confusing.
'slices' in FreeBSD, and most other 'real' unix systems,  correspond to 
MSDOS/Windows 'partitions', on hardware that supports the MSDOS partitioning
scheme..

Unix has its own layer of disk subdivision, referred to here as 'BSD 
partitioning' (to make clear it is not the same as Microsoft's 'fdisk'
functionality, as well. In the 'classical' form this gives the (up to 8)
'letter-named' pieces that a disk may be carved into.

You can use 'slices', giving filesystem names, after 'BSD partitioning', 
like '/dev/ad4s0a', or you can omit 'slice' creation, and do only a 'BSD
partioning scheme, giving device names like "/dev/ad4a". 

In the 'BSD partitioning' scheme, letter 'c' is reserved for the entire
disk, but SHOULD NOT ever be used directly.  One can create another 'BSD
partition' (using the letter of ones choice) that also spans the entire
disk.  There is no requirement to have more than one 'usable' partition
on the disk.

>
> > Why bother with partitions if you're going to use the whole slice?
> Are you saying that one can use/mount a whole slice without adding 
> partitions to it? For example /dev/ada0s1 could be the root partition?
>
> > Why bother with slices if you won't run out of partitions?
> Do you mean putting all partitions on one big slice? I would like to be 
> able to mount different partitions independently from other OS, eg. from 
> linux. As far as I know linux cannot mount FreeBSD partitions, only the 
> whole slice. If one slice has several partitions, one single partition 
> can not be mounted from linux.

A full discussion gets 'messy'. there are lots of variations that complicate
things -- including a single 'logical volume' with multiple physical disks
(e.g. RAID), a single physical disk with multiple 'logical drives' on it
(think 'fdisk' partitioning), *AND* the type of filesystem in use on the
logical volume/drive.

*ASSUMING* the 'Berkeley fast filesystem' (the traditional/classical 
system choice, also known as 'UFS'), a logical volume/drive must have a BSD 
'volume label' on it, which allows subdividing that logical volume/drive 
into (up to) 8 letter-names parts.   Each such 'part' holds a separate 
filesystem, and must be 'mounted', _individually_, before files on that 
filesystem can be acessed.  

The overall logic is similar for other filesystem types, however the 
mechanical details may be quite different.

> Could you please confirm if my understanding is correct, or explain a 
> little bit more detailed what you meant?

If you want a -single- filesystem to occupy an entire physical disk you can:
   a) use a 'dangerously dedicated' drive -- one with no 'fdisk' 
  partitioning and only a BSD volume label, and create a single
  'BSD partition' -- giving a device like '/dev/ad4h'
   b) creat a single 'fdisk' primary partition spanning the entire drive
  and put a BSD volume label on the primary partition, with only a
  single 'BSD partition' -- giving a device like '/dev/ad4s0h'
   c) do 'something similar' using a different partitioning scheme -- e.g.
  'gpart' -- instead of 'bsdlabel'.
   d) do 'something similar' using a different type of filesystem -- e.g.
  'ZFS' or 'EXT3' (beware: EXT3 is _not_ well-supported under FreeBSD,
  and there are 'good reasons' _not_ to use any of the EXT* filesystem
  types if one values the integrity of ones data in the event of 
  'unexpected' events.

___
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: Re: FreeBSD slice/partiton setup question

2013-06-18 Thread Michael Sierchio
You can simply newfs the device itself, without a volume label, slice,
or partition.  That's the normal thing to do with malloc devices, or
additional disks.  If the disk doesn't require a boot loader, isn't
the root device, etc. that may be the best thing to do.

Your caution about EXT* is spot-in - adequate tools exist for EXT2FS,
but it's still problematic.


- M
___
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: install firefox without X

2013-06-18 Thread Adam Vande More
On Tue, Jun 18, 2013 at 8:41 AM, Pol Hallen  wrote:

> Hi all :-)
>
> I need use -X ssh and use firefox on remote machine:
>
> ssh -X -l user xxx host
>
> Is there a way to install firefox without X? or less ports possible
>

On a clean machine, setting WITHOUT_X11=yes in /etc/make.conf then using
ports to install firefox eg "portmaster www/firefox" is going to be the
easiest way to get a minimal install.  Then only required X11 components
will be pulled in(assuming the port tree is in a good state).   Obviously
X11 cannot be eliminated entirely on the headless system try to forward X11
apps.  There is a reason you have to type "ssh -X"

-- 
Adam Vande More
___
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 slice/partiton setup question

2013-06-18 Thread Polytropon
On Tue, 18 Jun 2013 20:48:20 +0200, Istvan Gabor wrote:
> 2013. június 18. 19:49 napon Michael Sierchio  írta:
> 
> > On Tue, Jun 18, 2013 at 10:44 AM, Istvan Gabor  wrote:
> > > ...
> > > How can I do this in FreeBSD?
> > > Can I have slices with only one partition occupying the whole slice?
> > >
> > > Can I do something like the following:
> > >
> > > /dev/ad0s1a /
> > > /dev/ad0s2e /home
> > > /dev/ad0s3e /usr/local
> > > /dev/ad0s5b swap
> > > /dev/ad0s6e /home/user1
> > > /dev/ad0s7e /home/user2
> > > etc.
> > >
> > > where the partitions (a, e, b) occupy the whole slice where they reside 
> > > on?
> 
> Thanks, but I don't understand your answer.

First I'd like to point you at the excellent documentation
provided by FreeBSD:

http://www.freebsd.org/doc/handbook/disks-adding.html

http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html

http://www.freebsd.org/doc/handbook/bsdinstall-partitioning.html

Also read Warren Block's article about the tools used in the
"old" and "new" way of preparing a disk for use:

http://www.wonkity.com/~wblock/docs/html/disksetup.html

Regarding terminology, just if it hasn't been clear already:

In UNIX terminology, a slice is what DOS and therefor "Windows"
refers to as a "DOS primary partition". It is designated a number.
It can be subdivided in partitions which are designated a letter.
A partition carries a file system, a slice carries partitions,
and finally a device carries slices. (The slicing can also be
omitted, this is called "dedicated").

Examples:

ad0 = the 1st disk
ad0s1 = the 1st slice
ad0s1a = the 1st partition of the 1st slice
...
ad0s1h = the 8th partition of the 1st slice

And the dedicated approach:

ad0a = the 1st partition "directly" created on the 1st disk

The letters have a specific meaning: 'a' is a bootable partition.
'c' is "the whole thing" (being "the whole slice" or "the whole
disk"), 'b' is reserved for a swap partition, and "user-defined
partitions" go from 'd' to 'h'.

As I mentioned, there is a "new" and an "old" way of partitioning.
What I've discussed so far is called "MBR partitioning", it's
the "old" way.

The "new" way, "GPT partitioning", does not use the idea of
slices and partitions anymore. Instead partitions are enumerated
and created "directly".

Example:

ad0 = the 1st disk
ad0p1 = the 1st partition
...
ad0p15 = the 15th partition


Of course, different tools are involved here, as you can see
in the documentation links provided above.



> I am puzzled a little bit. My understanding based on the FreeBSD handbook is 
> that
> slices in FreeBSD are the partitions in linux.

So far correct, with an exception: A slice does _not_ carry a file
system, whereas in DOS terminology, reflected in Linux, the file
system is created in a DOS-like manner.

Example:

/dev/sda1 = 1st disk 1st DOS partition (slice) _with_ file system
/dev/ad0s1 = the same, but no file system here
/dev/ad0s1a = 1st partition on that slice _with_ file system



> And that on one slice (linux partition)
> FreeBSD  has (or can have?) several partitions.

Correct.



> These are labeled as letters: a for root
> partition, b for swap, c for the whole slice, and e for a regular non-root 
> partition.

Correct as well.



> Are you saying that one can use/mount a whole slice without adding partitions 
> to it?
> For example /dev/ada0s1 could be the root partition?

No. You _need_ to create a partition, read: "at least one partition". That
partition can cover the whole slice (or device, as mentioned above), and
it will be designated 'c', but that letter is omitted (I think since
FreeBSD 5).

Example:

Let's assume you have created the /dev/ada0s1 slice already. Now you do:

# newfs /dev/ada0s1

and you get a file system on the /dev/ada0s1c partition (which is created
"implicitely" by newfs. You can now mount it:

# mount -t ufs /dev/ada0s1 /mnt

But remember: That is the 'c' partition!

Similar approach for data disks (where you want to dedicate the whole
disk to data use, not booting or anything else):

# newfs /dev/da0
# mount -t ufs /dev/da0 /mnt

Again, /dev/da0c is the device you're operating on (which carries the
file system).



> Do you mean putting all partitions on one big slice?

With traditional partitioning, you can only use up to 'h' partitions
(with exceptions). If you need more than those 8, use GPT instead.

If you _must_ use MBR partitioning, you can have up to 4 slices
on a disk, giving you (with exceptions) 4 x 8 = 32 partitions
for FreeBSD on one disk.



> I would like to be able to mount different partitions independently from 
> other OS,
> eg. from linux.

That can be problematic because Linux doesn't seem to fully support
UFS file systems and BSD partitioning... If interoperability is your
goal, then you should probably use "exchange partitions" with a
file system that is better supported on FreeBSD (than using FreeBSD
and hoping for greater-than-zero support on Linux). Check if Linux
s

Re: FreeBSD maximum password length

2013-06-18 Thread takCoder
Thank you all for the points you mentioned around this topic.

On Mon, Jun 17, 2013 at 3:44 PM, Mark Felder  wrote:
>There isn't a max password length as far as I'm aware, ...


On Jun 17, 2013, at 7:47 AM, Eduardo Morras wrote:
>
> If I remember well, any password longer than default size is truncated,
so passwords
>
> a) '
AhN12Njufsn8794432kjfvsnkkJHNDSMNDKh844mNJKnhjhu8u8424'
> b) 'AhN12Njufsn8794432kj'
>
> have the same salt hash value and both validate the user.
>

My test machine is currently an old 8.2 one, but the final machine may be
upgraded. on this machine, if i enter a password longer than 128
characters, extra characters will be exactly trimmed. So, the final
password for any user with a greater-equal input password string, with same
first 128 characters, would be the first 128characters.

has this been changed in Freebsd 8.3+ to what you explained, Eduardo, or
this is the respected behavior? or i am wrong somewhere?

Thank you :)


On Tue, Jun 18, 2013 at 7:12 AM, Michael Sierchio wrote:

> I know this may seem off-the-wall to some, but I pasted a hashed
> password for a user under 9.1 into the /etc/passwd entry for that user
> on an 8.3 machine, and auth continues to work properly.  That's nice.
>
> - M
> ___
> 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"
>
___
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"


apply /etc/ttys changes on system

2013-06-18 Thread takCoder
Hi all,

Is there any way to apply /etc/ttys changes on system, except for
*restarting system*and *running kill -HUP 1* command ?

Due some reasons, i need to change tc value of some of my ttys,
periodically. I'm looking for a safer way than *kill -HUP 1* command. So,
as this command is not a good one to be used often, any ideas are really
appreciated. I couldn't find any other one so far..

Thank you :)

Best regards,
takCoder
___
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"