Re: problem with shell script

2011-01-13 Thread Samuel Martín Moro
??

as already answered:
ps ax | awk '/[/]slapd /{n++} END{print n}'
searching '[s]lapd' will avoid grep "auto-matching", but would still return
commands like "vim /etc/slapd.conf" or ./myscript-slapd
about pgrep, like the usual grep, it needs a better expression than the
process name, otherwise it would return the same results as a grep

however, a perfect match may be done looking for the exact path
('[/]usr/local/bin/slapd '), but would still fail when, for ex. running
`objdump /usr/local/bin/slapd -x'
 also, if you want to count the number of outputed lines, using [p]grep and
wc makes two processes, while awk can do it all alone.

awk ftw!


On Wed, Jan 12, 2011 at 3:17 PM,  wrote:

> Hello
>
> I'm in trouble with a simple shell script that give
> erroneous value when running ...
>
> If I run commands interactively everything runs well
>
>  > ps ax | grep slapd | grep -v grep | wc -l
>   1
>
> If I run in the following shell script :
>
> #!/bin/sh
> SD=0
> SD=`ps -ax | grep slapd | grep -v grep | wc -l`
> echo $SD
>
> the result is 3 !!!
>
>
> Any info welcome !
>
> ___
> 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"
>



-- 
Samuel Martín Moro
{EPITECH.} 2011
CamTrace S.A.S

"Nobody wants to say how this works.
 Maybe nobody knows ..."
  Xorg.conf(5)
___
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 shell script

2011-01-12 Thread Samuel Martín Moro
On Wed, Jan 12, 2011 at 4:34 PM, Samuel Martín Moro wrote:

>
>
> On Wed, Jan 12, 2011 at 3:50 PM, Chad Kellerman wrote:
>
>> On Wed, Jan 12, 2011 at 9:01 AM, Frank Bonnet  wrote:
>>
>> > Hello
>> >
>> > I'm in trouble with a simple shell script that give
>> > erroneous value when running ...
>> >
>> > If I run commands interactively everything runs well
>> >
>> > > ps ax | grep slapd | grep -v grep | wc -l
>> >  1
>> >
>> > If I run in the following shell script :
>> >
>> > #!/bin/sh
>> > SD=0
>> > SD=`ps -ax | grep slapd | grep -v grep | wc -l`
>> > echo $SD
>> >
>> > the result is 3 !!!
>> >
>>
> ps ax | grep "[/]slapd " | wc -l
>
ps ax | awk '/[/]slapd /{n++} END{print n}'
sorry...

> may not fix the problem
> but still cleaner
>
>>  >
>> > Any info welcome !
>> >
>>
>> What's the name of your script?  Hope it's not slapd_check.sh that will
>> cause and extra count in the ps, cus it will count itself.
>>
>>
>> Chad
>>
>> >
>> > ___
>> > 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"
>> >
>>
>>
>>
>> --
>> A grasshopper walks into a bar and the bartender says "Hey, we have a
>> drink
>> named after you." And the grasshopper says "Really, You have a drink named
>> Murray?"
>> ___
>> 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"
>>
>
>
>
> --
> Samuel Martín Moro
> {EPITECH.} 2011
> CamTrace S.A.S
>
> "Nobody wants to say how this works.
>  Maybe nobody knows ..."
>   Xorg.conf(5)
>



-- 
Samuel Martín Moro
{EPITECH.} 2011
CamTrace S.A.S

"Nobody wants to say how this works.
 Maybe nobody knows ..."
  Xorg.conf(5)
___
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 shell script

2011-01-12 Thread Samuel Martín Moro
On Wed, Jan 12, 2011 at 3:50 PM, Chad Kellerman  wrote:

> On Wed, Jan 12, 2011 at 9:01 AM, Frank Bonnet  wrote:
>
> > Hello
> >
> > I'm in trouble with a simple shell script that give
> > erroneous value when running ...
> >
> > If I run commands interactively everything runs well
> >
> > > ps ax | grep slapd | grep -v grep | wc -l
> >  1
> >
> > If I run in the following shell script :
> >
> > #!/bin/sh
> > SD=0
> > SD=`ps -ax | grep slapd | grep -v grep | wc -l`
> > echo $SD
> >
> > the result is 3 !!!
> >
>
ps ax | grep "[/]slapd " | wc -l
may not fix the problem
but still cleaner

>  >
> > Any info welcome !
> >
>
> What's the name of your script?  Hope it's not slapd_check.sh that will
> cause and extra count in the ps, cus it will count itself.
>
>
> Chad
>
> >
> > ___
> > 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"
> >
>
>
>
> --
> A grasshopper walks into a bar and the bartender says "Hey, we have a drink
> named after you." And the grasshopper says "Really, You have a drink named
> Murray?"
> ___
> 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"
>



-- 
Samuel Martín Moro
{EPITECH.} 2011
CamTrace S.A.S

"Nobody wants to say how this works.
 Maybe nobody knows ..."
  Xorg.conf(5)
___
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: boot, rc script and logs

2010-12-15 Thread Samuel Martín Moro
t written to
> /dev/console, though that may seem necessary if you want it coming up on
> the VTY0 boot screen.  It may involve decoupling this task from running
> 'inline' as a boot script somehow, or else making sure that output is
> redirected to a log or temporary file instead of directly into dialog.
>
kay.
It's now fixed.
OUT=`/sbin/conscontrol | /usr/bin/sed -n 's;^Configured: .*\(tty[^,
]*\).*$;/dev/\1;p'`
(is it always /dev/ttyv0? in doubt, I'll trust conscontrol)
[...] $DIALOG [...] >$OUT

>
>  > dhclient and oss seem to dump their output in /var/log/messages, while
>  > apache, postgresql and slim dump their one in /var/log/console.log
>  > So... How can my rc.script write in both console and messages logs?
>  > And how can I get rid of that?
>
> dhclient's (running) output is normally logged to messages, whereas the
> 'Starting' messages are output of the rc process as it launches things.
>
Indeed, my bad.

>
> And it's only those couple of lines to messages, the rest of them to
> console.log is unsurprising and expected if they're written to stdout.
>
> HTH a bit, Ian

Thanks!


-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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"


boot, rc script and logs

2010-12-14 Thread Samuel Martín Moro
4m^[[K^[[B^[[37m^[[47m³^[[m^[[30m^[[47m   Checking DB
2/2^[[20X^[[74`³^[[m^[[30m^[[40m^[[1m  ^[[36m^[[44m^[[K^[[B
^[[37m^[[47m³^[[m^[[30m^[[47m
^[[37m^[[47m^[[1mÚÄÄ^[[m^[[30m^[[47m¿^[[m^[[30m^[[47m
³^[[m^[[30m^[[40m^[[1m  ^[[36m^[[44m^[[K^[[B
^[[37m^[[47m³^[[m^[[30m^[[47m
^[[37m^[[47m^[[1m³^[[m^[[34m^[[47m^[[1m^[[31X^[[13;40H0%^[[29X^[[13;71H^[[m^[[30m^[[47m³^[[m^[[30m^[[47m
³^[[m^[[30m^[[40m^[[1m  ^[[36m^[[44m^[[K^[[B
^[[37m^[[47m³^[[m^[[30m^[[47m
^[[37m^[[47m^[[1mÀ^[[m^[[30m^[[47mÄÄÙ^[[m^[[30m^[[47m
³^[[m^[[30m^[[40m^[[1m  ^[[36m^[[44m^[[K^[[B
^[[37m^[[47mÀ^[[m^[[30m^[[47mÙ^[[m^[[30m^[[40m^[
Dec 14 13:26:48 camtrace13 kernel: ^[[34m^[[47m^[[1m^[[7m
^[[13;40H^[[m^[[34m^[[47m^[[1m3^[[13;10H^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel: ^[[34m^[[47m^[[1m^[[7m
^[[13;39H^[[m^[[34m^[[47m^[[1m11^[[13;15H^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel: ^[[34m^[[47m^[[1m^[[7m
^[[13;40H^[[m^[[34m^[[47m^[[1m2^[[13;16H^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel: ^[[34m^[[47m^[[1m^[[7m
^[[13;40H^[[m^[[34m^[[47m^[[1m3^[[13;17H^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel:
^[[13;40H^[[34m^[[47m^[[1m4^[[13;17H^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel:
^[[34m^[[47m^[[1m^[[7m  81%
^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel:
^[[13;39H^[[34m^[[47m^[[1m^[[7m96^[[13;59H ^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel: ^[[13;40H^[[34m^[[47m^[[1m^[[7m7^[[13;68H
^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel:
^[[13;40H^[[34m^[[47m^[[1m^[[7m8^[[13;69H^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel:
^[[13;38H^[[34m^[[47m^[[1m^[[7m100^[[13;69H  ^[[39;49m^[[m
Dec 14 13:26:48 camtrace13 kernel: ^[[=S
Dec 14 13:26:48 camtrace13 kernel: ^[[16;77H
Dec 14 13:26:48 camtrace13 kernel: ^[[25;1H
Dec 14 13:26:48 camtrace13 kernel: Starting slim.
Dec 14 13:26:48 camtrace13 kernel: Starting


dhclient and oss seem to dump their output in /var/log/messages, while
apache, postgresql and slim dump their one in /var/log/console.log
So... How can my rc.script write in both console and messages logs?
And how can I get rid of that?



Thanks for your help!


-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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: bash increment in a given way

2010-12-11 Thread Samuel Martín Moro
also... if (nwrote:

> with seq starting with 0, to fit your example...
>
> On Sat, Dec 11, 2010 at 5:34 PM, Samuel Martín Moro wrote:
>
>> something like that?
>> for i in `seq 1 20 | awk 'BEGIN{n=0; max=4; avg=max/2}{if (n<=avg) {print
>> $0;} n++; if (n>=max) {n=0;} }'`
>> do
>> echo welcome $i times
>> done
>>
>>
>>
>> On Sat, Dec 11, 2010 at 3:34 PM, S Mathias wrote:
>>
>>> , that i can use this, when i want
>>
>>
>>
>>
>> --
>> Samuel Martín Moro
>> {EPITECH.} tek5
>> CamTrace S.A.S
>>   (+033) 1 41 38 37 60
>>   1 Allée de la Venelle
>>   92150 Suresnes
>>   FRANCE
>>
>> "Nobody wants to say how this works.
>>   Maybe nobody knows ..."
>>   Xorg.conf(5)
>>
>
>
>
> --
> Samuel Martín Moro
> {EPITECH.} tek5
> CamTrace S.A.S
>   (+033) 1 41 38 37 60
>   1 Allée de la Venelle
>   92150 Suresnes
>   FRANCE
>
> "Nobody wants to say how this works.
>   Maybe nobody knows ..."
>   Xorg.conf(5)
>



-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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: bash increment in a given way

2010-12-11 Thread Samuel Martín Moro
with seq starting with 0, to fit your example...

On Sat, Dec 11, 2010 at 5:34 PM, Samuel Martín Moro wrote:

> something like that?
> for i in `seq 1 20 | awk 'BEGIN{n=0; max=4; avg=max/2}{if (n<=avg) {print
> $0;} n++; if (n>=max) {n=0;} }'`
> do
> echo welcome $i times
> done
>
>
>
> On Sat, Dec 11, 2010 at 3:34 PM, S Mathias  wrote:
>
>> , that i can use this, when i want
>
>
>
>
> --
> Samuel Martín Moro
> {EPITECH.} tek5
> CamTrace S.A.S
>   (+033) 1 41 38 37 60
>   1 Allée de la Venelle
>   92150 Suresnes
>   FRANCE
>
> "Nobody wants to say how this works.
>   Maybe nobody knows ..."
>   Xorg.conf(5)
>



-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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: bash increment in a given way

2010-12-11 Thread Samuel Martín Moro
something like that?
for i in `seq 1 20 | awk 'BEGIN{n=0; max=4; avg=max/2}{if (n<=avg) {print
$0;} n++; if (n>=max) {n=0;} }'`
do
echo welcome $i times
done



On Sat, Dec 11, 2010 at 3:34 PM, S Mathias  wrote:

> , that i can use this, when i want




-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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 MS Exchange play nice with the mailing lists?

2010-12-01 Thread Samuel Martín Moro
On Wed, Dec 1, 2010 at 8:09 PM, David Brodbeck  wrote:

> You might also try sending a message from the exchange server to
> another email account of yours, so you can examine the headers on the
> outgoing message for anything strange.
> ___
> 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 installed a mail server recently (dovecot/postfix), that checks for the
HELO message.

I wasn't able to send any mail from Outlook.
The problem beeing that Outlook send its hostname as HELO message...


r...@mephibox : tail -f /var/log/mail.log
[..]
# starting outlook
Dec 1 21:34:12 localhost dovecot: imap-login: Login: user=,
method=PLAIN, rip=my_ip, lip=srv_ip
Dec 1 21:34:13 localhost dovecot: IMAP(faust): Disconnected in IDLE
Dec 1 21:34:13 localhost dovecot: imap-login: Login: user=,
method=PLAIN, rip=my_ip, lip=srv_ip
Dec 1 21:34:14 localhost dovecot: IMAP(faust): Disconnected in IDLE


# sending mail
Dec 1 21:34:44 localhost postfix/smtpd[11381]: connect from ma_box[my_ip]
Dec 1 21:34:44 localhost postfix/smtpd[11381]: NOQUEUE: reject: RCPT from
ma_box[my_ip]: 504 5.5.2 : Helo command rejected: need fully-qualified
hostname; from= to= proto=SMTP
helo=
Dec 1 21:34:44 localhost postfix/smtpd[11381]: disconnect from ma_box[my_ip]


beta beeing my WinXP client's hostname

I tried to change my hostname to beta.example.com, but windows keeps saying
I can't put dots in this field...
Then, I checked the 'Domain' option (instead of 'Workgroup'), typed my
domain name, tryied to connect ...
Checking the error details, the main idea was that there wasn't any ldap
record in my DNS (which is wrong, there's just no LDAP at that address).

It ended up that there's no way I would setup any LDAP server to provide
mail services to my VMs.


So... back to your problem, first thing to check: are you member of your
mail server's domain? Did IT correctly configured your computer/Are you
trying from your own laptop?
Even if you can send mail to other members of your domain or a large part of
mail servers (mostly based on exchange, poorly configured postfix, ...): I
won't be surprise if Exchange isn't checking the HELO message...


-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

/*
 * If the new process paused because it was
 * swapped out, set the stack level to the last call
 * to savu(u_ssav). This means that the return
 * actually returns from the last routine which did
 * the savu.
 *
 * You are not expected to understand this.
 */
if(rp->p_flag&SSWAP) {
rp->p_flag =& ~SSWAP;
aretu(u.u_ssav);
}
Unix V6 Kernel
___
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 8.1 iso 386

2010-11-09 Thread Samuel Martín Moro
2010/11/9 Jean REY 

> Bonjour,
>
> Je voudrais charger la version 8.1 mais une boite de dialogue me demande un
> nom d'utilisateur et mot de passe. Faut'il s'inscrire au préalable?
> Merci de me renseigner.
> nb: j'ai acheté récemment le dvd PC-BSD 8.0 , je peux certes charger
> freebsd 8.0 lors de l'installation.Mais à déployer des efforts autant le
> faire avec la 8.1.
>
> Bien à vous,
>
> Jean REY 81100 Castres___
> 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"
>

Bonjour,

J'imagine que vous parlez du ftp ?
Identifiez-vous avec l'utilisateur "anonymous", en renseignant n'importe
quel mot de passe.
Par ailleurs, les conversations sur cette liste se font normalement en
anglais.


Cordialement,

-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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"


UFS

2010-11-08 Thread Samuel Martín Moro
Hi,

We have a problem with a few of our users.
And I'm a bit speechless since I understood what are our commercials
doing... Whatever...

We are providing a pre-configured FreeBSD distribution, for
videosurveillance prupose.
It seems the machines sold with our distribution may come with at max 44TB
RAID space.
And more likely, all the RAID space is allocated in an only partition (UFS).

Note that these servers includes only 2GB of RAM.

So, since a few, custommers are calling, telling us that there's a problem
with their RAID space.
As far as I know, all these users are running our FreeBSD-6.2 based version.
They try to run fsck, wait  and eventually fsck stops, saying it can't
do anything (I haven't the exact error message...).


My boss came, and asked me wether I think upgrading these custommers to our
7.2 based version would fix that.
I told him I'm not up to date about that kind of info. But more likely,
UFS/fsck worked fine in 6.2, no way there's such a big change in 7 branch.


In my opinion, the only chance to get back the data would be to plug an
additional drive, make a huge swap file...
Knowing that context switching, on such an amount of RAM ... that would at
least take days.


In doubt: am I missing something? Is there an easier way?




Regards,

-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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"


openvpn client on pf gateway

2010-11-04 Thread Samuel Martín Moro
Hi,


I'm using a FreeBSD-8.1 (RELEASE, amd64) as gateway for my local network.
And pf as firewall.


I'm renting a dedicated box, running openvpn.
My gateway is configured as a client of this VPN.
I modified my pf.conf to provide internet to my local network.
I configured iptables on the VPN server (debian-5) to accept everything, and
redirect what I needed to.

Everything seems to work... except...

How can I redirect a port through the VPN?
I mean...
The problem does not seem to come from the VPN server, as I can access my
local gateway from an external server, through the iptables redirection.
But, when I try to access a host behind that gateway, it won't connect...


Here's the pf.conf:

ext_if="bge0"
int_if="bge1"
vpn_if="tun0"

lc = $int_if:network
  vpn="10.253.254.1"
 emma="10.242.42.200"
alpha="10.42.42.42"
delta="10.42.42.44"
   xi="10.42.142.44"

set skip on lo0
scrub in on $ext_if all fragment reassemble
scrub in on $vpn_if all fragment reassemble
INTERNETZ
nat  on $ext_if from $lc to any -> ($ext_if)
nat  on $vpn_if from $lc to any -> ($vpn_if)
rdr  on $ext_if inet proto tcp  from any to ($ext_if) port 1666 ->
$alpha port 1666
rdr  on $vpn_if inet proto tcp  from any to ($vpn_if) port 1666 ->
$alpha port 1666
rdr  on $ext_if inet proto tcp  from any to ($ext_if) port 1667 ->
$delta port   22
rdr  on $vpn_if inet proto tcp  from any to ($vpn_if) port 1667 ->
$delta port   22
rdr  on $ext_if inet proto tcp  from any to ($ext_if) port 1668 ->
$alpha port   22
rdr  on $vpn_if inet proto tcp  from any to ($vpn_if) port 1668 ->
$alpha port   22
rdr  on $ext_if inet proto tcp  from any to ($ext_if) port 1669 ->
$xiport   22
rdr  on $vpn_if inet proto tcp  from any to ($vpn_if) port 1669 ->
$xiport   22
rdr  on $ext_if inet proto tcp  from any to ($ext_if) port 9418 ->
$xiport 9418
rdr  on $vpn_if inet proto tcp  from any to ($vpn_if) port 9418 ->
$xiport 9418
pass  in on $ext_if inet proto tcp  from any to $ext_if   port 1664
pass  in on $vpn_if inet proto tcp  from any to $vpn_if   port 1664
pass  in on $int_if inet proto tcp  from any to any
pass  in on $int_if inet proto udp  from any to any
block in log on $ext_if inet proto icmp from any to $ext_if
block in log on $vpn_if inet proto icmp from any to $vpn_if

every rules for $ext_if is working as expected
so I copied them, replacing my external interface by the vpn one
ssh from internet to the gateway (1664) works.
but accessing a ssh server behind the gateway (say alpha, 1668) does not...


What am I doing wrong?



Regards,

-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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 not install ZendOptimizer

2010-10-11 Thread Samuel Martín Moro
http://forums.zend.com/viewtopic.php?f=57&t=2412


after a while, they released a new version - 64b compliant.
but, you still have to use an old PHP version.


Since zend seems to only hire retards, ...

I modified a few of my scripts, and bought the IonCube encoder, which is
working perfectly fine.


Regards,


On Mon, Oct 11, 2010 at 12:53 PM, Phan Quoc Hien wrote:

> Maybe no solution forever for ZendOptimizer with >=php 5.3 on FreeBSD...so
> said...!!:(
> ___
> 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"
>



-- 
Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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: pf

2010-09-26 Thread Samuel Martín Moro
On Sun, Sep 26, 2010 at 3:34 PM, Michael Powell wrote:

> Samuel Martín Moro wrote:
>
> > Hello,
> >
> >
> > I'm trying to set up pf on my soon-to-be new gateway (8.1-RELEASE amd64).
> > I used the sample configuration file available on
> > calomel<https://calomel.org/pf_config.html>
> > After a few tests, it appears that the gate has fully access to the
> > internet, but I can't open connections from clients to distant servers
> > (web, ssh, ...).
> > Checking pflog log file, I can't see anything about those timeouts, even
> > if I added the log directive in every block/pass command.
> > Everything else seems to work, I can talk with my DNS from the internet,
> > ssh redirections to another pc also seems to works.
> > I just can't access the Internet from a client of my network...
> >
> > For debugging, I commented out the options and the 'block all in/out'
> > directives.
> >
> > Here's my config file http://pastebin.com/Nim2zBCx
> >
> > Is there someone understanding what I'm doing wrong?
> >
> The firewall ruleset is a trifle overly complex for a quick glance; study
> and analysis would take some doing. However, if you can reach the internet
> from the firewall box and other client computers behind your NAT can't
> (which is what it sounds like you're describing) it may be just that you
> are
> missing gateway_enable="YES" in your /etc/rc.conf.
>
> Turning this "ON" makes your firewall box into a router. The status of this
> can be checked with: sysctl net.inet.ip.forwarding  - a "0" means no
> gateway
> and a "1" means gateway.
>
> -Mike
>
>
>
> ___
> 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 gateway is already enabled (and forwarding is correctly set)
whatever, I had to do quick, I started again
I think the missing thing on my old conf was the 'scrub' (at least)
I made a more simple configuration, as following:

ext_if="bge0"
int_if="bge1"
localnet = $int_if:network
emma="10.242.42.200"
alpha="10.42.42.42"
delta="10.42.42.44"
set skip on lo0
scrub in on $ext_if all fragment reassemble
#INTERNETZ
nat on $ext_if from $localnet to any -> ($ext_if)
#EMMA
rdr on $ext_if inet proto tcp from any to ($ext_if) port 1101 ->
$emma port 22
rdr on $ext_if inet proto tcp from any to ($ext_if) port 307 ->
$emma port 80
#WHAT.CD
rdr on $ext_if inet proto tcp from any to ($ext_if) port 1666 ->
$alpha port 1666
#REMOTE ADM
rdr on $ext_if inet proto tcp from any to ($ext_if) port 1667 ->
$delta port 22
rdr on $ext_if inet proto tcp from any to ($ext_if) port 1668 ->
$alpha port 22
pass in log on $ext_if inet proto tcp from any to $ext_if port 22
pass in log on $ext_if inet proto tcp from any to $ext_if port 53
pass in log on $ext_if inet proto udp from any to $ext_if port 53
pass in log on $ext_if inet proto tcp from any to $ext_if port 1664
pass in log on $int_if inet proto tcp from any to any
pass in log on $int_if inet proto udp from any to any
block in log on $ext_if inet proto icmp from any to $ext_if

it's basically working
i'll stuff it when I'll have time.

Samuel Martín Moro
{EPITECH.} tek5
___
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"


pf

2010-09-26 Thread Samuel Martín Moro
Hello,


I'm trying to set up pf on my soon-to-be new gateway (8.1-RELEASE amd64).
I used the sample configuration file available on
calomel<https://calomel.org/pf_config.html>
After a few tests, it appears that the gate has fully access to the
internet, but I can't open connections from clients to distant servers (web,
ssh, ...).
Checking pflog log file, I can't see anything about those timeouts, even if
I added the log directive in every block/pass command.
Everything else seems to work, I can talk with my DNS from the internet, ssh
redirections to another pc also seems to works.
I just can't access the Internet from a client of my network...

For debugging, I commented out the options and the 'block all in/out'
directives.

Here's my config file http://pastebin.com/Nim2zBCx

Is there someone understanding what I'm doing wrong?



Thanks for your help!

Regards,


Samuel Martín Moro
{EPITECH.} tek5
___
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: dnsmasq, mfsBSD, status refused

2010-09-21 Thread Samuel Martín Moro
Hi,


I tried to associate hostnames with IPs in the hosts file.
And it worked...

With my linux gate, declaring hosts (mac,ip,name,lease) in one line works
perfectly...
I don't understand why it won't with FreeBSD...

Whatever, sorry for the disturbance :)


Cheers,

Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S


On Mon, Sep 20, 2010 at 2:56 PM, Samuel Martín Moro wrote:

>
> Hi
>
>
> I'm trying to replace my gate with a qnap ts-509.
> I installed mfsBSD, based on FreeBSD-8.1-RELEASE amd64.
> I just had to build some pre-configured packages, add ipfw, ipfw_nat and
> libalias to boot modules.
>
> Everything's working just fine, except for the DNS (dnsmasq-2.55,1.tbz,
> rebuilt with config files and ipfw startup script)
>
> DHCP works perfectly. But DNS does not...
> Even on the (soon-to-be) gateway, so I'm assuming ipfw is not related to
> the problem (in doubt, I still send it)
> r...@phi /real/tmp : ipfw list
> 1 check-state
> 2 allow ip from any to any via lo0
> 3 allow tcp from any to any established
> 00500 allow ip from any to any via bge1
> 00666 allow tcp from me to any out via bge0 setup uid root keep-state
> 65535 deny ip from any to any
> (since bge0 is not plugged, it's quite empty...)
>
>
>
> r...@phi /real/tmp : ./dig @localhost alpha.faust-network
>
> ; <<>> DiG 9.6.2-P2 <<>> alpha.faust-network
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 13068
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;alpha.faust-network.   IN  A
>
> ;; Query time: 13 msec
> ;; SERVER: 127.0.0.1#53(127.0.0.1)
> ;; WHEN: Mon Sep 20 13:41:15 2010
> ;; MSG SIZE  rcvd: 37
>
>
> basically, my configuration is the following:
>
> cache-size=1024
> local-ttl=15
> log-dhcp
> interface=bge1
> bind-interfaces
> no-negcache
> dhcp-range=10.254.254.1,10.254.254.254,255.0.0.0,1h
> dhcp-boot=pxelinux.0,omega,10.42.42.45  # PXE TFTP server (omega)
> dhcp-option=3,10.242.42.254 # gateway
> dhcp-option=19,1# option ip-forwarding off
> dhcp-option=23,42   # TTL de 42
> dhcp-option=44,10.242.42.254# Wins Server
> dhcp-option=45,10.242.42.254# NetBios DDS
> dhcp-option=46,8# NetBios Node Type
>
> dhcp-option=option:ntp-server,213.186.41.134,88.191.79.242,193.55.167.2,80.65.235.4,194.57.191.1,91.121.45.45
> dhcp-script=/usr/local/bin/dhcp_action
> domain=faust-network
> expand-hosts
> bogus-nxdomain=64.94.110.11 #get SSL certificate from another CAServer
> localmx
> selfmx
> conf-file=/usr/local/etc/blocklist.conf # filter adds, shits, facebook, ...
>
>
> my resolv.conf:
> nameserver 10.242.42.254 #localhost, priv addr
> nameserver 8.8.4.4
> domain faust-network
>
>
> I already have a dnsmasq working perfectly on my current gate
> (ArchLinux-x86_64).
> I copied the configuration, making a few changes (192.168.0.0/24 ->
> 10.0.0.0/8).
> So, I don't understant what I'm doing wrong
> Any idea?
>
>
>
> Cheers,
>
> ---
>
> Samuel Martín Moro
> {EPITECH.} tek5
> CamTrace S.A.S
>
>
___
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: wireless networking

2010-09-20 Thread Samuel Martín Moro
to find about your devices, and check you've a driver to use them:
pciconf -lv


Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Tue, Sep 21, 2010 at 4:12 AM, William Kindler wrote:

>
> -- I have 2 wireless adapter that I am able to use for my system. One is a
> usb device, a D-Link DWA130, and the other is a PCI device, a Netgear
> WN311T. I can find no information about Linux or UNIX support, or drivers
> for either, on your website or on the respective manufacturer's sites, nor
> can I find out what chipsets they are using.
> Are either of these devices supported with Free-BSD, or the PC-BSD?
>
>
> Bill Kindler
>
> ___
> 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"


dnsmasq, mfsBSD, status refused

2010-09-20 Thread Samuel Martín Moro
Hi


I'm trying to replace my gate with a qnap ts-509.
I installed mfsBSD, based on FreeBSD-8.1-RELEASE amd64.
I just had to build some pre-configured packages, add ipfw, ipfw_nat and
libalias to boot modules.

Everything's working just fine, except for the DNS (dnsmasq-2.55,1.tbz,
rebuilt with config files and ipfw startup script)

DHCP works perfectly. But DNS does not...
Even on the (soon-to-be) gateway, so I'm assuming ipfw is not related to the
problem (in doubt, I still send it)
r...@phi /real/tmp : ipfw list
1 check-state
2 allow ip from any to any via lo0
3 allow tcp from any to any established
00500 allow ip from any to any via bge1
00666 allow tcp from me to any out via bge0 setup uid root keep-state
65535 deny ip from any to any
(since bge0 is not plugged, it's quite empty...)



r...@phi /real/tmp : ./dig @localhost alpha.faust-network

; <<>> DiG 9.6.2-P2 <<>> alpha.faust-network
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 13068
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;alpha.faust-network.   IN  A

;; Query time: 13 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Sep 20 13:41:15 2010
;; MSG SIZE  rcvd: 37


basically, my configuration is the following:

cache-size=1024
local-ttl=15
log-dhcp
interface=bge1
bind-interfaces
no-negcache
dhcp-range=10.254.254.1,10.254.254.254,255.0.0.0,1h
dhcp-boot=pxelinux.0,omega,10.42.42.45  # PXE TFTP server (omega)
dhcp-option=3,10.242.42.254 # gateway
dhcp-option=19,1# option ip-forwarding off
dhcp-option=23,42   # TTL de 42
dhcp-option=44,10.242.42.254# Wins Server
dhcp-option=45,10.242.42.254# NetBios DDS
dhcp-option=46,8# NetBios Node Type
dhcp-option=option:ntp-server,213.186.41.134,88.191.79.242,193.55.167.2,80.65.235.4,194.57.191.1,91.121.45.45
dhcp-script=/usr/local/bin/dhcp_action
domain=faust-network
expand-hosts
bogus-nxdomain=64.94.110.11 #get SSL certificate from another CAServer
localmx
selfmx
conf-file=/usr/local/etc/blocklist.conf # filter adds, shits, facebook, ...


my resolv.conf:
nameserver 10.242.42.254 #localhost, priv addr
nameserver 8.8.4.4
domain faust-network


I already have a dnsmasq working perfectly on my current gate
(ArchLinux-x86_64).
I copied the configuration, making a few changes (192.168.0.0/24 ->
10.0.0.0/8).
So, I don't understant what I'm doing wrong
Any idea?



Cheers,

---

Samuel Martín Moro
{EPITECH.} tek5
CamTrace S.A.S
___
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"


kernel replacement in installation media

2010-09-10 Thread Samuel Martín Moro
Hi,


I bought a QNAP ts-509.
I'ld like to set up a gate, with a RAID ; I'm still waiting for the disks,
5*2T - Samsung, ecogreen, 5400rpm - to be delivered.
I've seen managing a RAID may be quite difficult. That's my first one. I
don't want to loose everything 'cause of a mistake.

I've read zfs, and RAID-Z, may be helpfull, since there's no risk to loose
data on read, and since zfs handle variable blob (is that the correct word?)
size
The thing is, it only have a 128M flash disk (seen as /dev/da0)
GENERIC needs almost 250M.
I though about using mfsBSD. But I'm not sure my drivers would be there
(since at least the RAID one is quite new in FB-8).
I tried to build nanoBSD in a 128M disk, without configuring that much
(hoping it would be nano out-of-the-box), and it failed saying "no more
space on device"
Moreover, every small BSD with zfs I found was a custom FreeBSD. So I
decided to make mine.

First, from a USB stick, I installed FreeBSD on an other USB stick.
Then, I looked at what I would have to get in the kernel (mainly: da, usb,
ehci, kbd, vga, bge, ...)
So I build a custom kernel, deleting some lines from the GENERIC
configuration file.
As my USB stick doesn't seem to handle write access that well, I had to
compile the kernel on a VM, and the to send/extract the tarball on the NAS.
But once installed, I still have a lot of .ko in boot/kernel. I'm not sure I
actually removed something, except symbols.

Whatever, it worked I haven't that much time. Once I'll get some, I'll also
try to reduce the /usr size.


Then, I replaced the kernel from the installation stick with mine, updated
the .mtree and checksums files, ...
But, I didn't understood, what's the generic.inf file? How can I update it?
In doubt, I deleted it. And maybe I shouldn't have. (or is it because my
kernel is not called "GENERIC" any more, but "QNAP"?!)
The thing is, the install failed, I finished it with the Fixit shell, untar
my kernel, ... it's now "working"



So, first question, how can I be sure I removed modules from my kernel? is
there something to add to the config file? how can I have so much if_*.ko,
while I deleted almost all device lines?
Second one, how to generate .inf files for distribs? (I may have to do it at
least for base too)
And even if it's a dirty way to do it, is it ok to update a .img file (or
the created stick)? or should I rebuild everything? (on my VM...)




Regards,


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
___
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: IBM server SAS controller support?

2010-09-10 Thread Samuel Martín Moro
two solutions:
- compiling the kernel with the driver (device pci and device mfi in the
configuration file)
- mfi_load="YES" in your loader.conf


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Fri, Sep 10, 2010 at 3:27 PM, Christian Thørn Bakken
wrote:

> I understand that you, Ivan, managed to install FreeBSD on an IBM Series x
> 3650 M3 server with the LSI M1015 SAS/SATA RAID controller.
>
>
> Ivan, did you tweak something to install, or did it work "out of the box"
> for you?
> Which FreeBSD version did you install?
>
> My main objective is to install the appliance distro SpanTitan 5.04 from
> www.spamtitan.com. It's based on FreeBSD 7.3  and the manufacturer
> confirms that the mfi(4) driver is compiled into the kernel.
>
> I've also tried with another (vanilla) version of FreeBSD (8.1), but with
> no luck. It just says there's no disk drives found.
>
> Regards
> Christian T. Bakken___
> 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"


Re: Need to run a Command Once on Boot. FreeBSD8.1

2010-09-03 Thread Samuel Martín Moro
creating a /etc/rc.local that rm itself?
or, if you already have a rc.local, calling there a script that would self
desctruct after beeing launched.


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Fri, Sep 3, 2010 at 9:13 PM, Martin McCormick
wrote:

>I seem to recall that there is some sort of stub that
> will let one execute a script which runs at the last stage of
> the boot process but I can't seem to remember enough to look it
> up.
>
>I need to run a small script to do pwd_mkdb just once to
> sync the passwd data base after booting a 8.1 system for the
> first time. The system is being built via script and
> /etc/master.passwd has a couple of accounts that the data base
> doesn't know about. After running pwd_mkdb against
> /etc/master.passwd, all is well but we are locked out of the
> system until this happens.
>
>I may even make the script destroy itself after
> launching since it never needs to run after that one time.
>
>Thanks.
>
> Martin McCormick WB5AGZ  Stillwater, OK
> Systems Engineer
> OSU Information Technology Department Telecommunications Services Group
> ___
> 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"


Re: Lingua franca file system Linux-NetBSD-FreeBSD?

2010-08-24 Thread Samuel Martín Moro
the problem is not which version of mkfs (ext2fs) you use.
the problem is that BSD only handle ext2fs partitions with 128b inodes,
while default value is 256.
when running mkfs/newfs, be sure to specify -I 128

also, I won't recommand ntfs.
but, ntfs "works" correctly under BSD and Linux.
so, if you just want the partition to be read/writeable on both BSD and
Linux, and don't wan't to use 128b inodes, nor ext2, you may wanna consider
using fat (except the file size limit thing, it works great), or ntfs (quite
ugly, but still working)


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Tue, Aug 24, 2010 at 11:53 AM, Thomas Mueller
wrote:

> What is the best choice for a file system that can be read, and safely
> written to, by Linux, NetBSD and FreeBSD?
>
> With NetBSD through 5.1_RC3, I got "unsupported inode size" when trying to
> mount Linux ext2fs partition from NetBSD.
>
> With FreeBSD through 7.2, I could mount, but got "Bad file descriptor" when
> trying to access the Linux partition.  With FreeBSD 8.0, I could mount and
> read the Linux partition, but in the only attempt to write to the ext2fs
> partition, I was editing a file with vi, and when I tried to write (save),
> the file was truncated.  I was able to recover by saving to FreeBSD file
> system and copying to msdos (FAT32) partition and subsequently copying to
> the Linux partition (this was a nonbootable USB stick used for data rather
> than Linux installation).  I haven't tried under FreeBSD 8.1 yet.
>
> Would I have better luck using newfs_ext2fs from NetBSD or FreeBSD and
> possibly getting a flavor of ext2fs more to BSD's liking?  This would be for
> data as opposed to Linux installation.
>
> There is the obvious possibility of using msdos (FAT32); I could run
> FreeDOS on such a partition as well as using the partition to share data
> between Linux, NetBSD and FreeBSD, and FreeDOS too.  Drawback is some
> problems getting long file names straight, and lack of case sensitivity.
>  But maybe FAT32 is the safest choice?
>
> Linux, NetBSD and FreeBSD are supposed to be able to read and write NTFS
> partition, but I see from a very recent thread on this list, subject "Re:
> External HD", that writing to NTFS partition is very dangerous, and I figure
> that would be also true for NetBSD and Linux, and any other
> non-MS-Windows-NT-line OS that might have support for NTFS.
>
> There is also the caveat that such a data-sharing partition would have to
> be in a primary or extended/logical slice/partition, since Linux seems
> unable to read BSD disklabels, and NetBSD and FreeBSD can't read each
> other's disklabels.  Also, Linux and the BSDs go separate ways with some
> newer file systems (ext4fs, btrfs, jfs in Linux; zfs in FreeBSD).
>
> Tom
> ___
> 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"


Re: X11 question

2010-08-12 Thread Samuel Martín Moro
On Thu, Aug 12, 2010 at 11:43 PM, Fred Boatwright  wrote:

> pkg_info | grep xinit  doesn't return anything
>
then, you doesn't have installed xinit, and startx can't be here
pkg_add -rv xinit
and then, if it doesn't fail, try again:
rehash
which startx

> rehash
> which startx
> startx: Command not found
>
> whereis X
> X: /usr/local/bin/X
>
> pkg_which /usr/local/bin/X
> pkg_which:  Command not found
>
> Oliver:  I used your porgle tool to find pkg_which and will install it
> later. Porgle appears to be a very useful tool.
>
> I installed x11-servers/xorg-server but maybe should have installed Xorg
> instead.  However, from looking at the pkg-descr for xorg it looks like
> it will install a huge amount of software that will not get used.  I am
> reluctant to do this.  I have installed 8.0-RELEASE from the CD and I
> want to run olvwm for a desktop.  I have been using Solaris 2.6 with the
> OpenWindows desktop for 12 years and consider it to be as close to
> perfection as one can get.  I am being forced, kicking and screaming, to
> move to some other type of Unix on a PC and would like to continue using
> OpenWindows.  It is probably going to be an uphill battle to get olvwm
> to work.  Am I going to have to install xorg to get everything needed?
>
> Best regards,
> Fred
>
> Tim Kellers wrote:
> >
> > Fred,
> >
> >  From man startx(1):
> >
> > SEE ALSO
> > xinit(1), X(7), Xserver(1), Xorg(1), xorg.conf(5)
> >
> > Try:
> >
> > # whereis X
> >
> > If X is installed, it should return:
> >
> > # X: /usr/local/bin/X
> >
> > pkg_which if X is installed should return:
> >
> > # pkg_which /usr/local/bin/X
> >
> > xorg-server-1.7.5,1
> >
> > If it doesn't, then the full X server isn't installed:
> >
> > Try:
> >
> > # whereis xorg
> >
> > xorg: /usr/ports/x11/xorg
> >
> > If xorg isn't installed, cd to:
> >
> > /usr/ports/x11/xorg
> >
> > and
> >
> > make config-recursive  (If you add any options, run make
> > config-recursive a second time after the shell prompt returns)
> >
> > and then
> >
> > make install clean
> >
> > HTH
> >
> > Tim Kellers
> >
> > On 08/12/10 15:40, Fred Boatwright wrote:
> > > Hi Oliver and Tim,
> > >
> > > I installed xinit but startx still doesn't exist.  whereis returns
> > > nothing and man startx returns nothing.
> > >
> > > Fred
> > >
> > > Tim Kellers wrote:
> > >
> > >> /usr/ports/x11/xinit
> > >>
> > >> On my system (with X, obviously, already installed):
> > >>
> > >> beta# whereis startx
> > >>
> > >> startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz
> > >>
> > >> beta# pkg_which /usr/local/bin/startx
> > >>
> > >> xinit-1.2.0
> > >>
> > >> beta# whereis xinit
> > >>
> > >> xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz
> > >> /usr/ports/x11/xinit
> > >>
> > >> I' m not certain about the p5/Perl TK questions, but in the file:
> > >> /usr/ports/x11-toolkits/p5-Tk/pkg-descr
> > >> there is this description:
> > >>
> > >> This a re-port of a perl interface to Tk8.4 (John Ousterhout's
> production
> > >> release).
> > >>
> > >> Perl API is essentially the same as Tk800.025 but has not
> > >> been verified as compliant.
> > >>
> > >> It also includes all the C code parts of Tix8.1.4 from SourceForge.
> > >> The perl code corresponding to Tix's Tcl code is not fully
> implemented.
> > >>
> > >> This version (Tk804.025) is only likely to work with perl5.8+.
> > >>
> > >> Tim Kellers
> > >>
> > >> On 08/12/10 12:02, Fred Boatwright wrote:
> > >>
> > >>> Hello,
> > >>>
> > >>> Where would I find startx?  I assume it is part one of the ports
> under
> > >>> X11
> > >>> but I don't want to install all of them to find it.
> > >>>
> > >>> Also, is p5-Tk the same as Perl/Tk?
> > >>>
> > >>> Best regards,
> > >>>
> > >>> Fred
> > >>>
> >
> > ___
> > 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"
>


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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: X11 question

2010-08-12 Thread Samuel Martín Moro
pkg_info | grep xinit
rehash (if using some *csh)
which startx
?

Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Thu, Aug 12, 2010 at 9:40 PM, Fred Boatwright  wrote:

> Hi Oliver and Tim,
>
> I installed xinit but startx still doesn't exist.  whereis returns
> nothing and man startx returns nothing.
>
> Fred
>
> Tim Kellers wrote:
> >
> > /usr/ports/x11/xinit
> >
> > On my system (with X, obviously, already installed):
> >
> > beta# whereis startx
> >
> > startx: /usr/local/bin/startx /usr/local/man/man1/startx.1.gz
> >
> > beta# pkg_which /usr/local/bin/startx
> >
> > xinit-1.2.0
> >
> > beta# whereis xinit
> >
> > xinit: /usr/local/bin/xinit /usr/local/man/man1/xinit.1.gz
> > /usr/ports/x11/xinit
> >
> > I' m not certain about the p5/Perl TK questions, but in the file:
> > /usr/ports/x11-toolkits/p5-Tk/pkg-descr
> > there is this description:
> >
> > This a re-port of a perl interface to Tk8.4 (John Ousterhout's production
> > release).
> >
> > Perl API is essentially the same as Tk800.025 but has not
> > been verified as compliant.
> >
> > It also includes all the C code parts of Tix8.1.4 from SourceForge.
> > The perl code corresponding to Tix's Tcl code is not fully implemented.
> >
> > This version (Tk804.025) is only likely to work with perl5.8+.
> >
> > Tim Kellers
> >
> > On 08/12/10 12:02, Fred Boatwright wrote:
> > > Hello,
> > >
> > > Where would I find startx?  I assume it is part one of the ports under
> > > X11
> > > but I don't want to install all of them to find it.
> > >
> > > Also, is p5-Tk the same as Perl/Tk?
> > >
> > > Best regards,
> > >
> > > Fred
> > > ___
> > > 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"
>
___
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 mounting USB drive

2010-08-10 Thread Samuel Martín Moro
"or use the 'force' option"
ntfsmount -o force, or something like that
then, it would mount normally (without forcing)

btw, I didn't check, is ntfsprogs' mkntfs (or whatever the name) working
now?


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Tue, Aug 10, 2010 at 8:13 PM, Ott Köstner  wrote:

>  OK
> Processing of $MFT and $MFTMirr completed successfully.
> NTFS volume version is 3.1.
>
___
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"


VirtualBox: out of swap space

2010-08-09 Thread Samuel Martín Moro
Hi,


I'm trying to have a few BSD VMs (4.7, 5.5, 6.2, 7.2, 8.1)
running under VirtualBox-OSE / FreeBSD-8.1-RELEASE-amd64


First problem:
  Sometimes, when I start a VM, all other running VM stop,
  their status switch to 'abort' (or whatever the
  traduction is, here it's "avorté").
  Reading my /var/log/messages, I see a few
  'pid  (VirtualBox), uid 0, was killed: out of swap space'

  I've got 8Gb of RAM, and so assumed I wouldn't need any swap.
  Was I wrong?
  Have I to reinstall my server to add some swap?
  (and if so, how much?!)


  btw, my PC (home) have the same HWare (core i7 930, 8Gb DDR3)
  I can run two 8.1-RELEASE (amd64 + i386), and two debian
  while host is running compiz and all that gay stuff...
  (ArchLinux x86_64)

  except VirtualBox, the server I'm having problems with, is
  hosting some nfs shares and running ion2 (since VBoxVNC
  segfaults... I need a WM). And that's it.


Second problem:
  When I'm creating a disk (in VirtualBox), and while there's
  some scp or so running on other guests, these guests display
  some gvfs errors, about not finding ad0.
  Sometimes, they just halt, and wait I pressed a key to reboot.


Third problem:
  I already posted that on emulation this morning:
  I can't boot FreeBSD-8.1-amd64. It's stuck in
  'md0: preloaded image  x bytes 0xsomewhere'
  nothing else happend...


I could have finished already if I just had installed a Linux
host in the first place...
I read so much posts recently, from FreeBSD/VBox users, saying
everything's working just fine.
I assumed it would be OK.
Obviously not...

Is there some hope sticking with BSD?
(if I can get rid of the swap and the 8.1 problems, it would
be fine enough)


I'm seriously thinking on dropping that BSD idea, and choosing
some random linux to make it work... (and maybe, try xen...)


What should I do?

Thanks for any advices.


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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: virtualbox

2010-08-07 Thread Samuel Martín Moro
segfaults...

gdb's backtrace speak about nanosleep, or XDisplayCodes, ...


lambda:~/package# pkg_info | grep -i sdl
sdl-1.2.14_1,2  Cross-platform multimedia development API
lambda:~/package# pkg_info | grep -i virtualbox
virtualbox-ose-3.2.6 A general-purpose full virtualizer for x86 hardware
virtualbox-ose-kmod-3.2.6 VirtualBox kernel module for FreeBSD
lambda:~/package# uname -a
FreeBSD lambda.axis.fr 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19
02:36:49 UTC 2010 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
 amd64


Too bad, it was a good idea...


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Sat, Aug 7, 2010 at 7:00 AM, Noah Pratt  wrote:

> On Fri, Aug 6, 2010 at 9:19 AM, Samuel Martín Moro 
> wrote:
> > Very powerfull, indeed
> > too bad vrdp doesn't work on OSE...
> >
>
> True, but a VNC server was recently added to the OSE edition instead:
> http://www.virtualbox.org/ticket/6020
>
> -Noah
>
___
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: virtualbox

2010-08-06 Thread Samuel Martín Moro
Very powerfull, indeed
too bad vrdp doesn't work on OSE...

Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Fri, Aug 6, 2010 at 5:12 PM, Chip Camden wrote:

> Quoth Adam Vande More on Thursday, 05 August 2010:
> > On Thu, Aug 5, 2010 at 11:17 PM, kalin m  wrote:
> >
> > >
> > >
> > > awesome...  i will.  i'm basically intending to use it for production
> > > servers. i'll give it try...
> > >
> > > was reading something about not supporting usb...  how about serial
> ports?
> > >
> > > i was reading the documentation. not much there...  how about
> management,
> > > data backup and recovery? real time vm swaps?
> > >
> >
> > My fav VBox bookmark:
> >
> > http://www.virtualbox.org/manual/ch08.html, but there are other portions
> of
> > that manual which should answer your questions as well.
> >
> >
>
> A CLI for Vbox?  You just made my day.
>
> --
> Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
> http://camdensoftware.com | http://chipstips.com|
> http://chipsquips.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: mdconfig, bsdlabel, disktab

2010-08-04 Thread Samuel Martín Moro
A few checks later: it seems that my problem isn't related to bsdlabel.

I scpied images generated (dd+bsdlabel) on 7.2 to the 8.1 host, and vice
versa.
It seems that when I mdconfig -a -f $file the 7.2 img on the 8.1 host,
/dev/md${x}c doesn't appear.
But when I add the 8.1 image on the 7.2 host, /dev/md${x}c is correctly
added.

What is happening?!


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Wed, Aug 4, 2010 at 12:01 PM, Samuel Martín Moro wrote:

>
> Hello,
>
>
> I'm having troubles, porting our release generation scripts from 7.2 to
> 8.1.
>
> We start creating the image file:
> dd bs=18k count=4096 cdroot.img 2>/dev/null
> We add our image to mdevices:
> mdconfig -a -t vnode -f ./cdroot.img
> Then, bsdlabel:
> bsdlabel -w -B -b cdroot/boot/boot /dev/mdX minimum4
> (
> with minimum4 is a "custom" entry in disktab, as:
> minimum4:ty=mfs:se#512:nt#1:rm#300:\
> :ns#11520:nc#1:\
> :pa#11520:oa#0:ba#4096:fa#512:\
> :pc#11520:oc#0:bc#4096:fc#512:
> )
> And I get this warning:
> bsdlabel: partition c doesn't cover the whole unit!
> bsdlabel: An incorrect partition c may cause problems for standard
> system utilities
>
> While generating on 5.4, 6.2 or 7.2, after bsdlabel, I have devices
> /dev/mdXa and /dev/mdXc, as expected.
> But while trying on 8.1, I just have /dev/mdXa...
>
> I'm not used to bsdlabel and disktab stuffs, so it may sound stupid, but:
> - Is there a way to create a correct disktab layout, to use with a disk
> image like our script does?
> - Or, is there a way to adapt our dd to get an image file matching the size
> required by our disktab layout?
> - If so, how to compute that size (somethign like $pa * $se + $pc * $se?
> adding $fa + $fc?)
> - tldr; / otherwise, is there a way to actually get back our /dev/mdXc
> after bsdlabel?
>
>
> Thanks!
>
>
>
> Samuel Martín Moro
> {EPITECH.} tek4
> CamTrace S.A.S
>   (+033) 1 41 38 37 60
>   1 Allée de la Venelle
>   92150 Suresnes
>   FRANCE
>
> "Nobody wants to say how this works.
>   Maybe nobody knows ..."
>   Xorg.conf(5)
>
___
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"


mdconfig, bsdlabel, disktab

2010-08-04 Thread Samuel Martín Moro
Hello,


I'm having troubles, porting our release generation scripts from 7.2 to 8.1.

We start creating the image file:
dd bs=18k count=4096 cdroot.img 2>/dev/null
We add our image to mdevices:
mdconfig -a -t vnode -f ./cdroot.img
Then, bsdlabel:
bsdlabel -w -B -b cdroot/boot/boot /dev/mdX minimum4
(
with minimum4 is a "custom" entry in disktab, as:
minimum4:ty=mfs:se#512:nt#1:rm#300:\
:ns#11520:nc#1:\
:pa#11520:oa#0:ba#4096:fa#512:\
:pc#11520:oc#0:bc#4096:fc#512:
)
And I get this warning:
bsdlabel: partition c doesn't cover the whole unit!
bsdlabel: An incorrect partition c may cause problems for standard
system utilities

While generating on 5.4, 6.2 or 7.2, after bsdlabel, I have devices
/dev/mdXa and /dev/mdXc, as expected.
But while trying on 8.1, I just have /dev/mdXa...

I'm not used to bsdlabel and disktab stuffs, so it may sound stupid, but:
- Is there a way to create a correct disktab layout, to use with a disk
image like our script does?
- Or, is there a way to adapt our dd to get an image file matching the size
required by our disktab layout?
- If so, how to compute that size (somethign like $pa * $se + $pc * $se?
adding $fa + $fc?)
- tldr; / otherwise, is there a way to actually get back our /dev/mdXc after
bsdlabel?


Thanks!



Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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 confirm/deny ntp is working?

2010-08-02 Thread Samuel Martín Moro
you may want add to your ntpd.conf:
driftfile /your/drift
logfile /your/log

to confirm, you can change your system date, and see wether it comes back to
normal

Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Mon, Aug 2, 2010 at 10:23 PM, Ed Flecko  wrote:

> Hi folks,
> I've read several different sources on setting up ntp on FreeBSD (I'm
> using 8.1), and they seem to vary a little, so I'm confused about how
> DO you set this up, and how do you confirm/deny that it's working?
>
> I've modified my /etc/ntp.conf file by commenting out:
>
> #server 0.freebsd.pool.ntp.org iburst maxpoll 9
> #server 1.freebsd.pool.ntp.org iburst maxpoll 9
> #server 2.freebsd.pool.ntp.org iburst maxpoll 9
> #server 3.freebsd.pool.ntp.org iburst maxpoll 9
>
> and changing them to read (I'm in the U.S.):
>
>  server 0.US.pool.ntp.org iburst maxpoll 9
>  server 1.US.pool.ntp.org iburst maxpoll 9
>  server 2.US.pool.ntp.org iburst maxpoll 9
>
> I have confirmed that I can ping these servers.
>
> I've added ntpd_enable="YES" and ntpd_sync_on_start="YES" to
> /etc/rc.conf and rebooted the server.
>
> 1.) Do I need to manually create the "driftfile" (/var/db/ntpd.drift)?
>
> 2.) Do I need to manually create the logfile (/var/log/ntp.log)?
>
> 3.) How do you confirm that FreeeBSD is, in fact, keeping time?
>
> Thank you,
> Ed
> ___
> 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"


Re: Installing 8.1-RELEASE from the memstick

2010-08-01 Thread Samuel Martín Moro
I installed my 8.1 using an usb stick and the disc1.iso image**.
When I had to choose insallation media source, I couldn't choose USB drive
nor CD (media not found or so).

AFAIK, it was broken on 7.2, but the good news is that FTP install seems to
work pretty well.


**:
fdisk on your stick, creating a bootable partition, then newfs to create it
mount the disc1.iso file and copy its content in your new partition



Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Sun, Aug 1, 2010 at 10:36 AM, Thomas Mueller
wrote:

> B is Install from a USB Drive.
> That seems to cover your situation.
>
> You can also install fro
>
___
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: 8.1-RELEASE ia64

2010-07-26 Thread Samuel Martín Moro
Oh right.. ok... sorry...
I'll try amd64

Thanks for the heads up!


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Mon, Jul 26, 2010 at 4:37 PM, Michael Powell wrote:

> Samuel Martín Moro wrote:
>
> > Hi
> >
> > I would like to install FreeBSD-8.1 ia64, so I downloaded
> > FreeBSD-8.1-RELEASE-ia64-disc1.iso.
> >
> > When I boot from a burnt CD, the screen keeps black, with the
> > blinkingunderscore,
> > nothing else happend.
> > When I make an USB bootable stick, I've got a message saying that
> > /boot/loader was not found.
> >
> > Having a look into /boot, I noticed that indeed, there's no loader
> > anymore. But there a loader.efi, which wasn't in FreeBSD-7.2-RELEASE (the
> > last I tried).
> > I tried copying loader.efi to loader, but as expected, it says me
> 'invalid
> > format' and still does not want to boot...
>
> Perfectly normal and to be expected. IA64 utilizes a different boot loader
> paradigm known as EFI. More info on EFI can be found here:
>
> http://en.wikipedia.org/wiki/Extensible_Firmware_Interface
>
> > What happened to loader?
> > Did I download the wrong iso?
>
> Probably. The IA64 architecture is a completely different beast than x86.
> If
> your processor is a Xeon or some other regular Intel desktop type you need
> to use the amd64 iso image.
>
> > Did I miss something?
> >
> > Also, why other archs have their -memstick.img, and ia64 have not?
> >
> Maybe IA64 will not boot from USB because of the EFI boot loader
> requirement.
>
> -Mike
>
>
>
> ___
> 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"


8.1-RELEASE ia64

2010-07-26 Thread Samuel Martín Moro
Hi

I would like to install FreeBSD-8.1 ia64, so I downloaded
FreeBSD-8.1-RELEASE-ia64-disc1.iso.

When I boot from a burnt CD, the screen keeps black, with the
blinkingunderscore,
nothing else happend.
When I make an USB bootable stick, I've got a message saying that
/boot/loader was not found.

Having a look into /boot, I noticed that indeed, there's no loader anymore.
But there a loader.efi, which wasn't in FreeBSD-7.2-RELEASE (the last I
tried).
I tried copying loader.efi to loader, but as expected, it says me 'invalid
format' and still does not want to boot...

What happened to loader?
Did I download the wrong iso?
Did I miss something?

Also, why other archs have their -memstick.img, and ia64 have not?



Thanks,


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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"


Running a script after a device's been plugged

2010-07-02 Thread Samuel Martín Moro
Hi,

In order to simplify our managing scripts, my project manager would like to
manage all devices (USB and serial) with the same name pattern (cuaa*,
cuad*, ... whatever).
He explained me he wants to keep cuaa0 and cuaa1, and then link each
/dev/da`n` to /dev/cuaa`n + 2`, ...


But, there is some things I'm not sure to understand:

1) I though that cuaa was used until FreeBSD7, then we had cuad, and since
FreeBSD8, it would be cuaU.
But one of our 7.2-RELEASE have both /dev/cuaU0 and dev/cuad0.
Did I miss something? What is cuaU doing here?
btw. it's my dev server, someone may have touched it. On the servers
installed from my generated CDs, no /dev/cuaU* at all...

2) We also provide serial DCF77 modules, and use them with ntpd, linking
them /dev/ttyd`n` to /dev/refclock-`n`
What is ttyd used for?
Can I assume I would use ttyd`n` only with my DCF modules, and so link them
to /dev/refclock-`n`, excluding them from my cuaa`n + x` mess?
Also, we would have to manage USB DCF77 modules soon; does anybody tried
them? How would them be named in /dev?

3) Last but not least, how to link a device once it's plugged in, and unlink
it once it's unplugged?
We're still providing 5.4 and 6.2 releases based versions. And I do not like
hal.
So I thought I could use /etc/devd.conf, with attach/detach directives, and
their actions calling a script that would create/delete the links.
Is there a cleaner way to do it? Would it be still usable in 8.x? (9.x?)


Thanks for your time and advices!



Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
 (+033) 1 41 38 37 60
 1 Allée de la Venelle
 92150 Suresnes
 FRANCE
___
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: .sh for loop

2010-06-21 Thread Samuel Martín Moro
for name in "${path}/${group}"*
do
path=/dev
group=ttypqfr
for name in "${path}/${group}"*
do
   test "$name" = "${path}/${group}*" && continue
   [ -z "${found_list}" ] && found_list="${name}" ||
found_list="${found_list} ${name}"
done
echo "found list: $found_list"

Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
 (+033) 1 41 38 37 60
 1 Allée de la Venelle
 92150 Suresnes
 FRANCE

"Nobody wants to say how this works.
 Maybe nobody knows ..."
 Xorg.conf(5)


On Mon, Jun 21, 2010 at 3:21 PM, Aiza  wrote:

> path=/dev
>> group=tty
>> for name in "${path}/${group}"*
>> do
>>[ -z "${found_list}" ] && found_list="${name}" ||
>> found_list="${found_list} ${name}"
>> done
>> echo "found list: $found_list"
>
>
___
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: .sh for loop

2010-06-21 Thread Samuel Martín Moro
it seems to work

your main error is to use ${found_name} instead of ${name}.
also, you do not set ${group} in your example.
and, not essential, but test -z before adding useless spaces.
correcting that, I had it working perfectly.

h2g2:~# cat test
path=/dev
group=tty
for name in "${path}/${group}"*
do
[ -z "${found_list}" ] && found_list="${name}" ||
found_list="${found_list} ${name}"
done
echo "found list: $found_list"
h2g2:~# sh test
found list: /dev/ttyU0 /dev/ttyU0.init /dev/ttyU0.lock /dev/ttyd0
/dev/ttyd0.init /dev/ttyd0.lock /dev/ttyp0 /dev/ttyp1 /dev/ttyp2 /dev/ttyp3
/dev/ttyp4 /dev/ttyp5 /dev/ttyp6 /dev/ttyp7 /dev/ttyv0 /dev/ttyv1 /dev/ttyv2
/dev/ttyv3 /dev/ttyv4 /dev/ttyv5 /dev/ttyv6 /dev/ttyv7 /dev/ttyv8 /dev/ttyv9
/dev/ttyva /dev/ttyvb /dev/ttyvc /dev/ttyvd /dev/ttyve /dev/ttyvf
h2g2:~#



Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
 (+033) 1 41 38 37 60
 1 Allée de la Venelle
 92150 Suresnes
 FRANCE

"Nobody wants to say how this works.
 Maybe nobody knows ..."
 Xorg.conf(5)


On Mon, Jun 21, 2010 at 1:21 PM, Aiza  wrote:

> for name in "${path}/${group}"*; do
> found_list="${found_list} ${found_name}"
>  done
>
___
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: concerning flash under freebsd

2010-06-15 Thread Samuel Martín Moro
Their last Linux release only exists for x86.
Two ArchLinux mailinglists are advising users about uninstalling Flash from
our systems.

Flash is hardly working on BSD. And often bug on Linux.

I spent one month, for my work, trying to correct a few of those crashes (we
provide FreeBSD servers, our administrative intranet uses Flash sockets).
Well, nspluginwrapper source is a complete mindfuck.
Just wait for newer releases, and check if what you need works.

For now, HTML5 is about to replace it, spreading on Youtube&Co., and we
still did not knew a working version of Flash under Linux.
The day Adobe would provide compatible softwares, they may speak about
supporting Linux/Solaris...
Until that, the cleanest way to proceed, is to setup a Windows VM...



Samuel Martín Moro
CamTrace S.A.S

"Remember, the problem is not that people are stupid;
 the problem is that modems are cheap."
Vince Sabio


On Wed, Jun 16, 2010 at 12:06 AM, Chuck Swiger  wrote:

> On Jun 15, 2010, at 2:49 PM, Programmer in Training wrote:
> [ ... ]
> > While that may be, try telling that to your 4 yr old nephew who likes to
> play those flash based games on PBS Kids. Almost all Internet video has
> moved to flash as well (such as all the sermons on sermons.net which my
> church uses). Flash is buggy, I'll give you that, but "Don't install it." is
> not an option for a lot of people.
>
> Adobe supports Windows, MacOSX, Linux, and Solaris (from
> http://get.adobe.com/flashplayer/otherversions ).  If it is important to
> you that Flash works well, you should either persuade Adobe to provide a
> FreeBSD version, or you should switch to using one of the platforms on which
> Flash is supported.
>
> Regards,
> --
> -Chuck
>
> ___
> 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"


Re: How to make macromedia flash working from Opera?

2010-06-13 Thread Samuel Martín Moro
I am not an Opera user, but assuming it works like other browsers (AFAIK
firefox/mozilla), you may have to link/copy the plugin into
~/.opera/[.*/]*plugin[s]/, or /usr/local/.*/opera/[.*/]*plugin[s]/


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
 (+033) 1 41 38 37 60
 1 Allée de la Venelle
 92150 Suresnes
 FRANCE

"Remember, the problem is not that people are stupid;
 the problem is that modems are cheap."
  Vince Sabio.


On Sun, Jun 13, 2010 at 8:42 PM, Yuri  wrote:

>
> Flash works in firefox (through nspluginwrapper). But not in Opera.
> How to make it work in Opera as well?
>
> I have these installed:
> linux-f10-flashplugin-10.0r45 Adobe Flash Player NPAPI Plugin
> nspluginwrapper-1.3.0_4 A compatibility plugin for Mozilla NPAPI
> (development version)
> opera-10.10.20091120_2 Blazingly fast, full-featured, standards-compliant
> browser,
>
> Yuri
> ___
> 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"


Re: how to debug .sh type script

2010-05-31 Thread Samuel Martín Moro
echo $my $debugs
read a #(or whatever variable)

until you pressed the enter key (or sig), your script will wait


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
 (+033) 1 41 38 37 60
 1 Allée de la Venelle
 92150 Suresnes
 FRANCE

"Nobody wants to say how this works.
 Maybe nobody knows ..."
 Xorg.conf(5)


On Mon, May 31, 2010 at 9:59 AM, Aiza  wrote:

> Is there way to single step through each line of code and see the real
> values of the variables?
> ___
> 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"


Re: Testing ethernet interface status

2010-04-01 Thread Samuel Martín Moro
I don't remember everything, but I used to do a program to do that.
You should also check ifmr.ifm_active value.
There was some "strange" behaviour (obviously normal, but unexpected when I
coded it), about up/down interfaces and plug or unplugged cables

and yep, ifconfig's doing it 'wrong' :)


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S


On Thu, Apr 1, 2010 at 8:56 PM, Steve Polyack  wrote:

> On 04/01/10 14:21, Peter Steele wrote:
>
>> What's the best what to test the status of an Ethernet interface
>> programmatically? We've been using this code similar to this:
>>
>> struct ifmediareq ifmr;
>> memset(&ifmr, 0, sizeof(ifmr));
>> strcpy(ifmr.ifm_name, "nfe0");
>> ioctl(sockfd, SIOCGIFMEDIA, (caddr_t)&ifmr)
>>
>> and then checking the value of ifmr.ifm_status&  IFM_ACTIVE. We've found
>> that every once in a while this code will return a false positive,
>> indicating that the interface has gone offline when in fact it has not.
>>
>> So, is there a more reliable call to test if an Ethernet interface has
>> gone offline?
>>
>>
> I was going to suggest that you look at the ifconfig(8) source code, but
> then I did so myself - it looks like you're doing it pretty much exactly how
> they are.  I've never noticed ifconfig(8) returning an incorrect value, not
> to say it's not possible.
>
> Are you sure that nothing is causing interface state resets? i.e.
> mismatched duplex/speed settings between the FreeBSD machine and the switch?
>  Have you checked dmesg(8) for logs of interface state changes?  You can
> also check the output of 'netstat -i' to check for interface errors.
>
>
> ___
> 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"


Re: "internet connection tester script"

2010-03-27 Thread Samuel Martín Moro
I prefer to use `host' command
ping take time to run, especially when it do not respond...

here's my script

r...@omega ~ : cat /usr/local/bin/check_connectivity
 13:43
#!/bin/sh
# checks local and internet connectivity
# faust - 2010/02/17

host google.com >/dev/null
if [  $? -eq 0 ];
then
net=1
echo "Internet connection is UP"
else
net=0
echo "Internet connection is DOWN"
fi
host alpha.faust-network >/dev/null
if [ $? -eq 0 ];
then
local=1
echo "Local network is UP"
else
local=0
echo "local network is DOWN"
fi
case `expr $local '*' 2 + $net` in
0) exit 2 ;; # big nothing
1) exit 42 ;; # just internet (uhu?)
2) exit 1 ;; # just local
3) exit 0 ;; # all right!
*) exit 43 ;; # divided by zero?
esac

Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S


On Sat, Mar 27, 2010 at 1:22 PM, Polytropon  wrote:

> On Sat, 27 Mar 2010 13:07:14 +0100, Jozsef Vadkan 
> wrote:
> > Why doesn't my "internet-connection" script work?
> >
> > When I plug the ethcable out, it just waits...and waits...and waits...
>
> It doesn't even work correctly: Now as I definitely have
> Internet connection, it prints "NO INTERNET CONNECTION".
>
> Allow me a comment:
>
>#!/bin/bash
>
> This is Linux. It is not portable. FreeBSD is NOT Linux.
>
> In FreeBSD, the standard scripting shell is the Bourne
> shell /bin/sh. Unless you don't require things that are
> specific to bash, use the correct shebang for shm which is
>
>#!/bin/sh
>
> If you intendedly want to use bash, specify it correctly:
>
>#!/usr/local/bin/bash
>
> The bash is an additional package for FreeBSD, it does not
> belong to the OS itself. It needs to be installed. Of
> course, there's a way to make bash available as /bin/bash
> statically linked, but with all thoughts to interoperability,
> I wouldn't rely on this.
>
> Let me bring the script into a more easily readable form
> and allow me to say something about it:
>
> #!/bin/sh
>
> function internet_connection_ok
> {
>echo "Testing internet connectionplease wait..."
>if ping -W 1 -c 4 bix.hu | grep -q "4 received"; then
>if ping -W 1 -c 4 www.yahoo.com | grep -q "4 received";
> then
>echo "NET is OK"
>else
>echo "NO INTERNET CONNECTION"
>exit 1
>fi
>else
>echo "NO INTERNET CONNECTION"
>exit 1
>fi
> }
>
> internet_connection_ok
>
> Basically, you're relying on a 100 % correct reception of
> pings from two specified host to see if Internet is up and
> running. In case of package loss, even with running Internet
> (e. g. 4 sent, 3 received), the script would say that there's
> no Internet connection, which is false. Additionally, you're
> giving only 1 ms for reply, which may not be enough for a
> slow (but stable) connection. Finally, you're relying on
> DNS to get the IPs to ping for bix.hu and www.yahoo.com.
> I'm not sure if this resolve time is important here, too.
>
>
>
>
> --
> 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"
>
___
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: Changing Default Shell

2010-02-26 Thread Samuel Martín Moro
chsh

Samuel Martín Moro
CamTrace
{EPITECH.} tek4

"Nobody wants to say how this works.
 Maybe nobody knows ..."
 Xorg.conf(5)


On Fri, Feb 26, 2010 at 5:41 AM, mikel king  wrote:

>
> On Feb 25, 2010, at 9:57 PM, Roger Campbell wrote:
>
>  Lowell Gilbert, I would like to thank you for your posting about changing
>> the default shell. I was running in circles until I found your post
>> suggestion vipw.
>>
>> Roger
>>
>>
> Roger,
>
>You can also use pw.
>
>pw usermod rcampbell -s /bin/tcsh
>
> Regards,
> Mikel King
> CEO, Olivent Technologies
> Senior Editor, BSD News Network
> Columnist, BSD Magazine
> 6 Alpine Court,
> Medford, NY 11763
> o: 631.627.3055 c: 631.796.1499
> skype:mikel.king
> http://olivent.com
> http://www.linkedin.com/in/mikelking
> http://twitter.com/mikelking
>
>
>
> ___
> 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"


Re: Question about Freebsd 7.2 and Zend framework

2010-02-14 Thread Samuel Martín Moro
It's not officialy supported, but it still works.
You have to link some libraries to give them their freebsd 6.2 names.

I had to do it for the servers we sell at work.
It works perfectly.

Samuel Martín Moro
CamTrace
{EPITECH.} tek4

"Nobody wants to say how this works.
 Maybe nobody knows ..."
 Xorg.conf(5)


On Sun, Feb 14, 2010 at 11:04 PM, Ivan Voras  wrote:

> Jerry wrote:
>
>> On Sun, 14 Feb 2010 21:51:48 +0100
>> Ivan Voras  articulated:
>>
>>  Robert wrote:
>>>
>>>> Hello
>>>>
>>>> I have zend framework websites and I was wondering if they work
>>>> well with Freebsd7.2?
>>>>
>>>> Because I hear bad thing about that. Can you tell me about that
>>>> please?
>>>>
>>> Zend Framework is PHP? PHP works on FreeBSD, Zend Framework will also
>>> work. Unless you give more specific questions, you won't get more specific
>>> answers :)
>>>
>>
>> From the Zend web site:
>>
>> Zend does not plan any more releases for FreeBSD. We have end of lifed
>> all of our FreeBSD product line due to lack of demand.
>>
>>
>> For further details, see the full text:
>>
>> http://forums.zend.com/viewtopic.php?f=57&t=2412
>>
>
> Zend Optimizer is of course a different thing, and yes, it is discontinued
> for FreeBSD.
>
>
> ___
> 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"


Re: SU

2010-01-26 Thread Samuel Martín Moro
are you logged as su, and can't execute commands ? or does su fail ?
if you're correctly identified, what does your env and/or set contains

Samuel Martín Moro
CamTrace
{EPITECH.} tek4

"Nobody wants to say how this works.
 Maybe nobody knows ..."
 Xorg.conf(5)


On Tue, Jan 26, 2010 at 1:04 AM, Jon Radel  wrote:

> Shone Russell wrote:
>
>> I am not able to execute any commands when I utilize the su function, I
>> am entering our correct password. It was working on Friday, but now it's
>> not.
>>
>
> Please let us know exactly what you're entering (without the password, of
> course) and what the results are.  Do you get an error message?  Does it
> hang?  What?
>
> --
>
> --Jon Radel
> j...@radel.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: rum0 acting as an Access point (belkin router) 8.0 R

2010-01-18 Thread Samuel Martín Moro
in my rc.conf:
ifconfig_rum0="DHCP wepmode on weptxkey 1 wepkey 1:0xBC45AD1BD5 ssid
ReseauWIFI"

Maybe your problem is that wepkey is malformatted in your command
If not, I didn't try to understand, but I also had troubles with the
position of SSID keyword.
(ifconfig arg error, might be your problem)
(btw: I also had problem with ssid containing spaced characters)


Later, I tried to set it up as an hostap, it seems to work well.
But when I try to connect from an other computer, I'm unable to to join the
network.
(running under 7.2, I compiled the kernel adding a define matching my
device, based on a similar (I hope so...) chipset)


good luck


Samuel Martín Moro
CamTrace
{EPITECH.} tek4

"Nobody wants to say how this works.
 Maybe nobody knows ..."
 Xorg.conf(5)


On Mon, Jan 18, 2010 at 3:43 PM, Christoph Kukulies wrote:

> Paul B Mahol schrieb:
>
>  On 1/15/10, Christoph Kukulies  wrote:
>>
>>
>>> I'm not sure wether syntax has changed but I wanted to cretae an wlan
>>> acess point
>>> and tried various things. Under 7.0 I got it working with the following
>>> command
>>>
>>> ifconfig rum0 inet 10.0.0.1/24 mediaopt hostap ssid CITYOFFICE  wepmode
>>> on wepkey 0xf00baf00ba weptxkey 1 channel 1
>>>
>>>
>>> I tried this but got a socket error "Invalid argument".
>>>
>>> Then I tried (from an example in the rum (4) manpage):ifconfig wlan
>>> create wlandev rum0 10.0.0.1/24 mediaopt hostap CITYOFFICE wepmode on
>>> wepkey 0xf00baaf00baa  weptxkey 1 channel 1
>>>
>>>
>>>
>>
>> Perhaps you want this one:
>>
>> ifconfig wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap ssid
>> CITYOFFICE wepmode on wepkey 0xf00baaf00baa  weptxkey 1 channel 1
>>
>>
>>
>
> I tried this in rc.conf:
>
> ifconfig_rum0="wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap ssid
> CITYOFFICE  wepmode on wepkey 0xf00baaf00baa weptxkey 1 channel 1"
>
> I got this:
>
> rum0: flags=8843 metric 0 mtu 2290
>   ether 00:11:50:cb:52:10
>   media: IEEE 802.11 Wireless Ethernet autoselect  (autoselect
> )
>   status: no carrier
>
>
> Why "no carrier"?
> And I would expect more info on the interface like SSID and such.
>
> --
> Christoph
>
>
>  and got:
>>>
>>>
>>> wlan0
>>> ifconfig: SIOCSIFMEDIA (media): Device not configured
>>>
>>> But suddenly the wlan0 device is there.
>>>
>>> Can anybody fill me in?
>>>
>>> --
>>> Christoph
>>>
>>>
>>>
>>
> ___
> 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"


Re: denying spam hosts ssh access - good idea?

2010-01-11 Thread Samuel Martín Moro
I had the same ssh-bruteforce troubles.
Here's the script I use against that.
It's in cron, launched every 2 minutes.

#!/bin/sh
AUTH=/var/log/auth.log
BKLST=/var/log/blacklist.log
HOSTS=/etc/hosts
DHOSTS=/etc/hosts.deny

cat $AUTH | egrep -i "(illegal|invalid|failed)" | awk -F "from" '{print $2}'
| awk '{print $1}' | sort -u >$BKLST

for i in `cat $BKLST`; do
nerr=`cat $AUTH | egrep -i "(illegal|invalid|failed)" | grep $i | wc -l`
if [ "$nerr" -ge "3" -a -z "`cat $HOSTS | grep $i`" -a -z "`cat $DHOSTS
| grep $i`" ]; then
echo "ALL : $i  # matched on `date`" >>$DHOSTS
fi
done
#nota: I added my home & work IPs to /etc/hosts

I can't use ssh-keys (many of my users don't know how that works/what it
is).
But if you can do it, you should.


Samuel Martín Moro


On Mon, Jan 11, 2010 at 4:59 PM, Anton Shterenlikht wrote:

> On Mon, Jan 11, 2010 at 03:25:04PM +, Matthew Seaman wrote:
> > Anton Shterenlikht wrote:
> > > I'm thinking of denying ssh access to host from which
> > > I get brute force ssh attacks.
> > >
> > > HOwever, I see in /etc/hosts.allow:
> > >
> > > # Wrapping sshd(8) is not normally a good idea, but if you
> > > # need to do it, here's how
> > > #sshd : .evil.cracker.example.com : deny
> > >
> > > Why is it not a good idea?
> >
> > Probably because ssh is likely to be the only method of login access
> > you have to a remote server, and hosts.allow could conceivably be spoofed
> > into blocking your legitimate access?   In any case, hosts.allow is a
> poor relation to using a real firewall -- it has no access to the lower
> level bits
> > of the networking code, so has to allow a full tcp connection setup
> before it
> > can block anything.  Some daemons allow quite a lot of interaction with
> the
> > remote site when using hosts.allow functionality -- eg. sendmail will
> > apparently go through all of the stages of accepting an incoming e-mail
> from
> > a denied host, right up to the 'MAIL FROM...' section of the SMTP
> transaction
> > where it will respond with a 500 permanent failure error code.
>  [admittedly
> > this does have the benefit that the other side will then immediately give
> up
> > trying to send the message if it's playing by the RFC rules. (Most
> spam-bots
> > don't, of course.)  Otherwise, you'ld get the remote side retrying the
> message
> > several times an hour over the next 5 days before it timed out and gave
> up.
> >
> > > Also, apparently in older ssh there was DenyHosts option,
> > > but no longer in the current version.
> > > Is there a replacement for DenyHOsts?
> > > Or is there a good reason for such option not to be used?
> >
> > I believe you can do something like this:
> >
> > match address 192.168.23.0/24,172.16.0.0/16
> >   ForceCommand /usr/sbin/nologin
> >
> > but this is not foolproof, as it is run via the users' login shell
> > and a sufficiently cunning person can arrange for all sorts of
> interesting
> > things to happen from their shell initialization files...
>
> Matthew, this makes sense
>
> many thanks
> anton
>
> --
> Anton Shterenlikht
> Room 2.6, Queen's Building
> Mech Eng Dept
> Bristol University
> University Walk, Bristol BS8 1TR, UK
> Tel: +44 (0)117 331 5944
> Fax: +44 (0)117 929 4423
> ___
> 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"


Re: mysql not starting on boot

2010-01-06 Thread Samuel Martín Moro
About apache, maybe it's the ServerName option that's missing.

On Wednesday, January 6, 2010, Dário P.  wrote:
> Qua, 2010-01-06 às 16:16 +, Matthew Seaman escreveu:
>> Rob wrote:
>> > Since I upgraded to FreBSD 8.0, I'm noticing that mysql isn't starting
>> > on boot anymore.  It starts fine once the system has booted, and looking
>> > at the mysql log I see:
>> >
>> > 100105 17:46:56 mysqld_safe Starting mysqld daemon with databases from
>> > /var/db/m
>> > ysql
>> > 100105 17:46:56 [ERROR] Can't start server: cannot resolve hostname!:
>> > Unknown er
>> > ror: 0
>> > 100105 17:46:56 [ERROR] Aborting
>> >
>> > I use dhcp and ddns in my network, so I'm guessing that mysql is
>> > attempting to start before the networking has stabilized.  Is there a
>> > way to make mysql be the last thing started at boot?
>>
>> MySQL will be happy if it can work out what the hostname of the machine
>> is.  You say you're using ddns?  If that means your machines are pushing
>> a hostname up to the DHCP server while they ask it for an IP number, then
>> there should be no problem.
>>
>> You can simply set the hostname in /etc/rc.conf -- it doesn't really
>> matter if the machine thinks its name is one thing, and the IPs on its
>> network interfaces resolve to something else (at least, not for the
>> purposes of running mysql.).  The thing you'ld have to look out for are
>> the host part of  usernames in grants of permissions to users.
>
> I have exactly the same problem, but with apache. It seems that the
> apache try to start before the network.
>
>> > I tried adding:
>> >
>> > # REQUIRE: NETWORKING
>> >
>> > To the init script, but that didn't seem to have any effect.  Is there a
>> > tool that will run through all the init scripts and tell you the order
>> > of startup?
>>
>> rcorder(8)
>>
>> You might also find it beneficial to use 'SYNCDHCP' instead of plain 'DHCP'
>> in ifconfig_XXY lines in /etc/rc.conf -- this will cause the boot process to
>> block on getting an IP for the interface, rather than the default action of
>> backgrounding that process and trying to start everything else up.
>
> This will be useful for me too. Thank you.
>
>
> ___
> freebsd-questi...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>

-- 
Samuel Martín Moro
CamTrace
{EPITECH.} tek4

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)
___
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: 7.2R and Firefox 3.5.3 and Flash/Java - something odd I can't quite figure out...

2009-12-02 Thread Samuel Martín Moro
I think you should move browser_plugins content to firefox3/plugins, remove
browser_plugins, and then link it to firefox3/plugins.

Samuel Martín Moro
CamTrace
{EPITECH.} tek4

"Nobody wants to say how this works.
Maybe nobody knows ..."
 Xorg.conf(5)


On Wed, Dec 2, 2009 at 4:17 PM, Kurt Buff  wrote:

> Hmm...
>
> # ll /usr/local/lib/browser_plugins
> total 128
> lrwxr-xr-x  1 root  wheel  68 Sep 13 09:44 libjavaplugin_oji.so ->
> /usr/local/diablo-jdk1.6.0/jre/plugin/amd64/ns7/libjavaplugin_oji.so
> -rwxr-xr-x  1 root  wheel  130658 Sep 13 13:12 npwrapper.libflashplayer.so
>
> # ll /usr/local/lib/firefox3/plugins
> total 24
> -rwxr-xr-x  1 root  wheel  22808 Sep 12 22:05 libnullplugin.so
>
> So, should I link the files in browser_plugins to the plugins directory?
>
> Kurt
>
>
> On Wed, Dec 2, 2009 at 06:53, Samuel Martín Moro 
> wrote:
> >
> > I had this problem too.
> > I didn't have browser_plugins/ into /usr/local/lib, so I linked it to
> > /usr/local/lib/firefox3/plugins/
> > I don't remember exactly, but I think this would work
> >
> > Also, my user is not a member of wheel.
> > But plugins are owned by root:wheel, 755 chmoded, and it works.
> >
> >
> > (other subject, but still about firefox)
> > Ssome windowmanager have problems when searching for firefox
> > I add this to my installation script:
> >
> > for dir in /usr/local/include /usr/local/bin /usr/local/include
> > /usr/local/share/idl /usr/local/share/pixmap
> > do
> > ln $dir/firefox3 $dir/firefox
> > done
> >
> > But maybe this could be managed into firefox3 package?
> >
> >
> > Samuel Martín Moro
> > CamTrace
> > {EPITECH.} tek4
> >
> > "Nobody wants to say how this works.
> > Maybe nobody knows ..."
> >  Xorg.conf(5)
> >
> >
> > On Wed, Dec 2, 2009 at 3:33 PM, Kurt Buff  wrote:
> >>
> >> On Wed, Dec 2, 2009 at 01:16, Tijl Coosemans 
> wrote:
> >> > On Sunday 29 November 2009 22:47:56 Kurt Buff wrote:
> >> >> I've gotten Flash and Java going with Firefox, as root, using the
> >> >> directions here:
> >> >>
> >> >>
> >> >>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html
> >> >>
> >> >> However, I can't get it going as a standard user. When I run
> >> >>
> >> >>  'nspluginwrapper -v -a -i'
> >> >>
> >> >> I get the following:
> >> >>
> >> >>  Auto-install plugins from /usr/local/lib/browser_plugins
> >> >>  Looking for plugins in /usr/local/lib/browser_plugins
> >> >>  Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
> >> >>  Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
> >> >>  Install plugin
> >> >> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
> >> >>   ... already installed system-wide, skipping
> >> >>  Auto-install plugins from /home/kurt/.mozilla/plugins
> >> >>  Looking for plugins in /home/kurt/.mozilla/plugins
> >> >>
> >> >> and 'about:plugins' only shows libnullplugin.so as enabled for all
> MIME
> >> >> types.
> >> >>
> >> >>  'nspluginwrapper -l'
> >> >>
> >> >> shows
> >> >>
> >> >>  /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so
> >> >>Original plugin:
> >> >> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
> >> >>Wrapper version string: 1.2.2
> >> >
> >> > Check the permissions on
> >> > /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so
> >>
> >>
> >> It's set to root:wheel - my account is a member of wheel.
> >>
> >> Should it be something else?
> >>
> >>
> >> Kurt
> >> ___
> >> 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"
>
___
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: 7.2R and Firefox 3.5.3 and Flash/Java - something odd I can't quite figure out...

2009-12-02 Thread Samuel Martín Moro
I had this problem too.
I didn't have browser_plugins/ into /usr/local/lib, so I linked it to
/usr/local/lib/firefox3/plugins/
I don't remember exactly, but I think this would work

Also, my user is not a member of wheel.
But plugins are owned by root:wheel, 755 chmoded, and it works.


(other subject, but still about firefox)
Ssome windowmanager have problems when searching for firefox
I add this to my installation script:

for dir in /usr/local/include /usr/local/bin /usr/local/include
/usr/local/share/idl /usr/local/share/pixmap
do
ln $dir/firefox3 $dir/firefox
done

But maybe this could be managed into firefox3 package?


Samuel Martín Moro
CamTrace
{EPITECH.} tek4

"Nobody wants to say how this works.
Maybe nobody knows ..."
 Xorg.conf(5)


On Wed, Dec 2, 2009 at 3:33 PM, Kurt Buff  wrote:

> On Wed, Dec 2, 2009 at 01:16, Tijl Coosemans  wrote:
> > On Sunday 29 November 2009 22:47:56 Kurt Buff wrote:
> >> I've gotten Flash and Java going with Firefox, as root, using the
> >> directions here:
> >>
> >>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html
> >>
> >> However, I can't get it going as a standard user. When I run
> >>
> >>  'nspluginwrapper -v -a -i'
> >>
> >> I get the following:
> >>
> >>  Auto-install plugins from /usr/local/lib/browser_plugins
> >>  Looking for plugins in /usr/local/lib/browser_plugins
> >>  Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
> >>  Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
> >>  Install plugin
> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
> >>   ... already installed system-wide, skipping
> >>  Auto-install plugins from /home/kurt/.mozilla/plugins
> >>  Looking for plugins in /home/kurt/.mozilla/plugins
> >>
> >> and 'about:plugins' only shows libnullplugin.so as enabled for all MIME
> types.
> >>
> >>  'nspluginwrapper -l'
> >>
> >> shows
> >>
> >>  /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so
> >>Original plugin:
> /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
> >>Wrapper version string: 1.2.2
> >
> > Check the permissions on /usr/local/lib/browser_plugins/
> npwrapper.libflashplayer.so
>
>
> It's set to root:wheel - my account is a member of wheel.
>
> Should it be something else?
>
>
> Kurt
> ___
> 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"


Re: WiFi interface - scanning ssid

2009-11-23 Thread Samuel Martín Moro
It is up

in my script, I do the following:
ifconfig $itf down
ifconfig $itf delete
ifconfig $itf up scan &
var=$!
#some loop waiting ifconfig to stop, or killing it after 30 seconds
eval `ifconfig -v $itf list scan | sed 's/ome/reg/expr' | awk '{toto}'`

Samuel Martín Moro
CamTrace
{EPITECH.} tek4

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|


On Mon, Nov 23, 2009 at 3:10 PM, Paul B Mahol  wrote:

> On 11/23/09, Samuel Martín Moro  wrote:
> > that may help:
> >
> > my uname:
> > FreeBSD devel.axis.fr 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Wed Oct 14
> > 15:26:50 CEST 2009 r...@h2g2.axis.fr:/usr/obj/usr/src/sys/GENERIC
>  i386
> >
> > in rc.conf:
> > hostapd/dhcpd/ifconfig_rum0 are commented
> >
> > wlan_xauth is loaded
> >
> > ~# ifconfig rum0 down
> > ~# ifconfig rum0 delete
> > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
> > ~# ifconfig rum0 destroy
> > ifconfig: SIOCIFDESTROY: Invalid argument
> > ~# ifconfig rum0
> > rum0: flags=108802 metric 0 mtu
> 1500
> > ether 00:18:1a:0c:65:2f
> > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g 
> > status: no carrier
> > ssid 1921680452 channel 2 (2417 Mhz 11g)
> > authmode AUTO privacy OFF txpower 50 scanvalid 60 bgscan
> > bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5
> > protmode CTS dtimperiod 1
> >
> > before, my card was listed by pciconf (but isn't anymore), as noneX
> > now, I can view it using usbdevs:
> > [...]
> > port 4 addr 2: high speed, power 300 mA, config 1, 802.11 bg
> WLAN(0x2573),
> > Ralink(0x148f), rev 0.01
> > [...]
> >
> > I used to test WIFI with two different chipset.
> > I generated the first driver using ndisgen, and compiled back the kernel
> > (adding some lines into headers) to deal with the second one.
> > I don't remember which one I use here. But my problem might come from a
> bad
> > driver. (but most likely: PEBKAC)
> >
> >
> >
> > Thanks for your help
> >
> >
> > Samuel Martín Moro
> > CamTrace
> > {EPITECH.} tek4
> >
> > | "Nobody wants to say how this works.  |
> > |  Maybe nobody knows ..."  |
> > |   Xorg.conf(5)|
> >
> >
> > On Mon, Nov 23, 2009 at 12:33 PM, Samuel Martín Moro
> > wrote:
> >
> >>
> >> Hi
> >>
> >> I'm trying to list ssid neighborhood.
> >> doing ifconfig rum0 scan or ifconfig rum0 list scan, there isn't any
> >> returned row.
> >>
> >> it perfectly works a few days ago, when I was working on a script to
> >> configure WIFI interfaces as client.
> >> more recently, I tried to do a script to configure WIFI interfaces as
> >> access points. since that, all my scan/list scan are empty.
> >>
> >> by the way, while testing, I wasn't able to reset interface
> configuration
> >> (and maybe it's my list/scan) problem.
> >> I tried with delete, ... It still keeps the old conf, when I'ld like to
> >> drop it. How should I do ?
> >>
> >> Thanks!
> >>
> >>
> >> Samuel Martín Moro
> >> CamTrace
> >> {EPITECH.} tek4
> >>
> >> | "Nobody wants to say how this works.  |
> >> |  Maybe nobody knows ..."  |
> >> |   Xorg.conf(5)|
> >>
>
> You need to bring interface up, before scanning.
>
___
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: WiFi interface - scanning ssid

2009-11-23 Thread Samuel Martín Moro
OK...

ifconfig $itf -mediaopt hostap
removes  from options
scan/list scan are back...

sorry for wasting your time...


but it still doesn't answer to my other question:
how can you reset an interface configuration ?

Samuel Martín Moro
CamTrace
{EPITECH.} tek4

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|


On Mon, Nov 23, 2009 at 2:37 PM, Samuel Martín Moro wrote:

> that may help:
>
> my uname:
> FreeBSD devel.axis.fr 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Wed Oct 14
> 15:26:50 CEST 2009 r...@h2g2.axis.fr:/usr/obj/usr/src/sys/GENERIC
> i386
>
> in rc.conf:
> hostapd/dhcpd/ifconfig_rum0 are commented
>
> wlan_xauth is loaded
>
> ~# ifconfig rum0 down
> ~# ifconfig rum0 delete
> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
> ~# ifconfig rum0 destroy
> ifconfig: SIOCIFDESTROY: Invalid argument
> ~# ifconfig rum0
> rum0: flags=108802 metric 0 mtu
> 1500
> ether 00:18:1a:0c:65:2f
> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g 
> status: no carrier
> ssid 1921680452 channel 2 (2417 Mhz 11g)
> authmode AUTO privacy OFF txpower 50 scanvalid 60 bgscan
> bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5
> protmode CTS dtimperiod 1
>
> before, my card was listed by pciconf (but isn't anymore), as noneX
> now, I can view it using usbdevs:
> [...]
> port 4 addr 2: high speed, power 300 mA, config 1, 802.11 bg WLAN(0x2573),
> Ralink(0x148f), rev 0.01
> [...]
>
> I used to test WIFI with two different chipset.
> I generated the first driver using ndisgen, and compiled back the kernel
> (adding some lines into headers) to deal with the second one.
> I don't remember which one I use here. But my problem might come from a bad
> driver. (but most likely: PEBKAC)
>
>
>
> Thanks for your help
>
>
>
> Samuel Martín Moro
> CamTrace
> {EPITECH.} tek4
>
> | "Nobody wants to say how this works.  |
> |  Maybe nobody knows ..."  |
> |   Xorg.conf(5)|
>
>
> On Mon, Nov 23, 2009 at 12:33 PM, Samuel Martín Moro wrote:
>
>>
>> Hi
>>
>> I'm trying to list ssid neighborhood.
>> doing ifconfig rum0 scan or ifconfig rum0 list scan, there isn't any
>> returned row.
>>
>> it perfectly works a few days ago, when I was working on a script to
>> configure WIFI interfaces as client.
>> more recently, I tried to do a script to configure WIFI interfaces as
>> access points. since that, all my scan/list scan are empty.
>>
>> by the way, while testing, I wasn't able to reset interface configuration
>> (and maybe it's my list/scan) problem.
>> I tried with delete, ... It still keeps the old conf, when I'ld like to
>> drop it. How should I do ?
>>
>> Thanks!
>>
>>
>> Samuel Martín Moro
>> CamTrace
>> {EPITECH.} tek4
>>
>> | "Nobody wants to say how this works.  |
>> |  Maybe nobody knows ..."  |
>> |   Xorg.conf(5)|
>>
>
>
___
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: WiFi interface - scanning ssid

2009-11-23 Thread Samuel Martín Moro
that may help:

my uname:
FreeBSD devel.axis.fr 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Wed Oct 14
15:26:50 CEST 2009 r...@h2g2.axis.fr:/usr/obj/usr/src/sys/GENERIC  i386

in rc.conf:
hostapd/dhcpd/ifconfig_rum0 are commented

wlan_xauth is loaded

~# ifconfig rum0 down
~# ifconfig rum0 delete
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
~# ifconfig rum0 destroy
ifconfig: SIOCIFDESTROY: Invalid argument
~# ifconfig rum0
rum0: flags=108802 metric 0 mtu 1500
ether 00:18:1a:0c:65:2f
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g 
status: no carrier
ssid 1921680452 channel 2 (2417 Mhz 11g)
authmode AUTO privacy OFF txpower 50 scanvalid 60 bgscan
bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5
protmode CTS dtimperiod 1

before, my card was listed by pciconf (but isn't anymore), as noneX
now, I can view it using usbdevs:
[...]
port 4 addr 2: high speed, power 300 mA, config 1, 802.11 bg WLAN(0x2573),
Ralink(0x148f), rev 0.01
[...]

I used to test WIFI with two different chipset.
I generated the first driver using ndisgen, and compiled back the kernel
(adding some lines into headers) to deal with the second one.
I don't remember which one I use here. But my problem might come from a bad
driver. (but most likely: PEBKAC)



Thanks for your help


Samuel Martín Moro
CamTrace
{EPITECH.} tek4

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|


On Mon, Nov 23, 2009 at 12:33 PM, Samuel Martín Moro wrote:

>
> Hi
>
> I'm trying to list ssid neighborhood.
> doing ifconfig rum0 scan or ifconfig rum0 list scan, there isn't any
> returned row.
>
> it perfectly works a few days ago, when I was working on a script to
> configure WIFI interfaces as client.
> more recently, I tried to do a script to configure WIFI interfaces as
> access points. since that, all my scan/list scan are empty.
>
> by the way, while testing, I wasn't able to reset interface configuration
> (and maybe it's my list/scan) problem.
> I tried with delete, ... It still keeps the old conf, when I'ld like to
> drop it. How should I do ?
>
> Thanks!
>
>
> Samuel Martín Moro
> CamTrace
> {EPITECH.} tek4
>
> | "Nobody wants to say how this works.  |
> |  Maybe nobody knows ..."  |
> |   Xorg.conf(5)|
>
___
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"


WiFi interface - scanning ssid

2009-11-23 Thread Samuel Martín Moro
Hi

I'm trying to list ssid neighborhood.
doing ifconfig rum0 scan or ifconfig rum0 list scan, there isn't any
returned row.

it perfectly works a few days ago, when I was working on a script to
configure WIFI interfaces as client.
more recently, I tried to do a script to configure WIFI interfaces as access
points. since that, all my scan/list scan are empty.

by the way, while testing, I wasn't able to reset interface configuration
(and maybe it's my list/scan) problem.
I tried with delete, ... It still keeps the old conf, when I'ld like to drop
it. How should I do ?

Thanks!


Samuel Martín Moro
CamTrace
{EPITECH.} tek4

| "Nobody wants to say how this works.  |
|  Maybe nobody knows ..."  |
|   Xorg.conf(5)|
___
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: "All in one" printer?

2009-10-16 Thread Samuel Martín Moro
HP printers are quite good indeed, and they've got cheap stuff.
They provide softs & drivers for linux/unix users.
Setup is easy.
"What else?"


Samuel Martín Moro
CamTrace
{EPITECH.} tek4



On Fri, Oct 16, 2009 at 1:55 PM, Vincent Hoffman  wrote:

> Patrick Lamaiziere wrote:
> > Hello,
> >
> > I'm looking for an "all in one printer" (scanner + printer). Do you
> > know some models well supported by our favorit OS (8.0) (and a cheep
> > one of course)?
> >
>
> I've had 2 HP cheap printer/scanners that have both worked well using
> the hplip port with cups and sane. Off hand I cant remember model
> numbers but
> http://hplipopensource.com/hplip-web/supported_devices/index.html should
> list most if not all the ones it supports.
>
>
> Vince
> > Thanks, 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"
> >
>
> ___
> 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"


Re: Making bootable USB keys

2009-09-04 Thread Samuel Martín Moro
Hello

So, for the hexdump problem (files that begin differently), I found that
status=noxfer isn't a correct dd option on FreeBSD... (yeah, and writting
scripts with `>/dev/null 2>&1' isn't such a good idea...)

I tested back, it failed again.
I used a generated stick (by our FreeBSD script) to compare with mine.

da0 (mine) / da1 (good)
da0s2 and da1s2 are (nearly) the same for 8192b (the start of daXs2a)
then, da0s2a is:
1e80  00 00 00 04 00 ff ff ff  ff 2f 7c 5c 2d 00 00 00
|./|\-...|
1e90  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
||
*
2000  00 00 00 00 00 00 00 00  20 00 00 00 30 00 00 00  |
...0...|
2010  38 00 00 00 48 00 00 00  00 00 00 00 ff ff ff ff
|8...H...|
2020  b9 db a0 4a 58 af 11 00  7e a8 11 00 2b 00 00 00
|...JX...~...+...|

and da1s2a is:
1e80  00 00 00 04 00 ff ff ff  ff 2f 7c 5c 2d 00 00 00
|./|\-...|
1e90  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
||
*
2000  72 32 45 69 a2 45 71 4b  d3 2c f5 2e e9 82 28 cd
|r2Ei.EqK.,(.|
2010  b6 d4 02 b1 e2 34 51 36  76 c5 b5 22 4a 0e 4b aa
|.4Q6v.."J.K.|
2020  b5 54 71 3e a5 c7 36 8a  52 b9 77 a9 18 6c f3 e9
|.Tq>..6.R.w..l..|

I searched into my generated file, there's no "r2Ei".

I'll post updates.
(But if you can help ... ^^)


Thanks!

Samuel Martín Moro
CamTrace
{EPITECH.} tek4



On Fri, Sep 4, 2009 at 9:51 AM, Samuel Martín Moro wrote:

> In fact, we provide the servers and the keys.
> So we're sure everything will work.
>
> And also, our install CD is already able to create this kind of USB stick.
> It was a former co-worker who did it.
> I started mine looking its. But most of used commands haven't exact
> equivalent under linux (and I fucking hate sfdisk and counting in
> cylinders!)
>
> Here's an example of a generated stick:
> h2g2:~# fdisk da0
> *** Working on device /dev/da0 ***
> parameters extracted from in-core disklabel are:
> cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl)
>
> parameters to be used for BIOS calculations are:
> cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl)
>
> Media sector size is 512
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 1 is:
> sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
> start 63, size 6602652 (3223 Meg), flag 0
> beg: cyl 0/ head 1/ sector 1;
> end: cyl 410/ head 254/ sector 63
> The data for partition 2 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 6602715, size 1317330 (643 Meg), flag 80 (active)
> beg: cyl 411/ head 0/ sector 1;
> end: cyl 492/ head 254/ sector 63
> The data for partition 3 is:
> 
> The data for partition 4 is:
> 
> h2g2:~#
>
>
>
> Samuel Martín Moro
> CamTrace
> {EPITECH.} tek4
>
>
>
> On Fri, Sep 4, 2009 at 6:31 AM, Fbsd1  wrote:
>
>> Samuel Martín Moro wrote:
>>
>>> Hello
>>>
>>> I'm having some troubles, trying to create bootable USB keys.
>>> I found (freebsd-hackers ML archives) a script, supposed to create the
>>> bootable image from my iso file.
>>> But, it still don't boot... (I may do it wrong)
>>>
>>> In details:
>>> -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server.
>>> -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9
>>> (sorry...)
>>> -USB sticks must contain a FAT32 partition (we'ld like to provide doc for
>>> windows users)
>>>
>>> Well, my english isn't so great... so I'll post my code (more
>>> understandable)
>>>
>>>
>> clip 
>>
>> I have same problem with getting a usb stick to boot. After much testing
>> with different sticks and PC combinations have come to this conclusion.
>>
>> When usb hardware first can out they were created for usb 1.0 standard and
>> at that same period PC's where using software drivers for usb support and
>> the PC's bio's boot selection did not include option to boot from usb disk.
>> As usb devices became more popular PC manufactures started adding USB
>> firmware to their motherboards for usb 2.0 standard. From my research into
>> usb 2.0 it only supports data recording and does not support booting
>> function. About 2007 usb 2.2 standard came out and it supports an usb memory
>> stick as bootable. In 2008 some manufactures of motherboards added usb 2.2
>> standard to their motherboards and bio's selection to boot from memory
>> stick.
>>
>> To be bootable the first file on the t

Re: Making bootable USB keys

2009-09-04 Thread Samuel Martín Moro
In fact, we provide the servers and the keys.
So we're sure everything will work.

And also, our install CD is already able to create this kind of USB stick.
It was a former co-worker who did it.
I started mine looking its. But most of used commands haven't exact
equivalent under linux (and I fucking hate sfdisk and counting in
cylinders!)

Here's an example of a generated stick:
h2g2:~# fdisk da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
start 63, size 6602652 (3223 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 410/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 6602715, size 1317330 (643 Meg), flag 80 (active)
beg: cyl 411/ head 0/ sector 1;
end: cyl 492/ head 254/ sector 63
The data for partition 3 is:

The data for partition 4 is:

h2g2:~#



Samuel Martín Moro
CamTrace
{EPITECH.} tek4



On Fri, Sep 4, 2009 at 6:31 AM, Fbsd1  wrote:

> Samuel Martín Moro wrote:
>
>> Hello
>>
>> I'm having some troubles, trying to create bootable USB keys.
>> I found (freebsd-hackers ML archives) a script, supposed to create the
>> bootable image from my iso file.
>> But, it still don't boot... (I may do it wrong)
>>
>> In details:
>> -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server.
>> -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9
>> (sorry...)
>> -USB sticks must contain a FAT32 partition (we'ld like to provide doc for
>> windows users)
>>
>> Well, my english isn't so great... so I'll post my code (more
>> understandable)
>>
>>
> clip 
>
> I have same problem with getting a usb stick to boot. After much testing
> with different sticks and PC combinations have come to this conclusion.
>
> When usb hardware first can out they were created for usb 1.0 standard and
> at that same period PC's where using software drivers for usb support and
> the PC's bio's boot selection did not include option to boot from usb disk.
> As usb devices became more popular PC manufactures started adding USB
> firmware to their motherboards for usb 2.0 standard. From my research into
> usb 2.0 it only supports data recording and does not support booting
> function. About 2007 usb 2.2 standard came out and it supports an usb memory
> stick as bootable. In 2008 some manufactures of motherboards added usb 2.2
> standard to their motherboards and bio's selection to boot from memory
> stick.
>
> To be bootable the first file on the the stick has to be the boot image.
>  Haveing a ms fat partition first on the stick will never work unless you
> fill it with an bootable ms/windows or ms/dos system or the same kind of
> setup found on the cdrom1 release cd.
>
> Only usb 2.2 memory sticks are bootable on newer PC's that have usb 2.2
> firmware on their motherboards and matching Bio's with selection for booting
> from usb 2.2 memory sticks. Please note that bio's booting selection for
> booting from USB disk is different than booting selection for booting from
> usb memory stick. I have posted many posts on this list about this subject
> and have not received any posts contrary to the above statement.
>
> The pending 8.0 release has a complete rewrite of the USB code and a new
>  stick.img is being generated as part of the release install distribution's.
> I can dd the 8.0-stick.img file to an 2.0 stick and it never boots, but do
> the same thing to a 2.2 stick and it boots on all 3 of my PC manufactured
> since June 2008.
>
> Final Conclusion: Booting from a USB memory stick successfully is totally
> dependent on using new start-of-the-art hardware.
>
>
>
>
>
>
>
>
___
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: Making bootable USB keys

2009-09-03 Thread Samuel Martín Moro
I've already been told.
But didn't tried it yet, my servers haven't X.
I'll take a look on a test computer.
But in the end, everything'll have to be done in the shellscript.


Samuel Martín Moro
CamTrace
{EPITECH.} tek4



On Thu, Sep 3, 2009 at 6:19 PM, Dimitri Yioulos wrote:

> On Thursday 03 September 2009 11:35:34 am Samuel
> Martín Moro wrote:
> > Hello
> >
> > I'm having some troubles, trying to create
> > bootable USB keys. I found (freebsd-hackers ML
> > archives) a script, supposed to create the
> > bootable image from my iso file.
> > But, it still don't boot... (I may do it wrong)
> >
> > In details:
> > -We distribute a FreeBSD (4.7, 5.4, 6.2 and
> > 7.2) "custom" server. -We burn our install CD
> > (and, in a few, our USB sticks) on a Ferdora 9
> > (sorry...)
> > -USB sticks must contain a FAT32 partition
> > (we'ld like to provide doc for windows users)
> >
> > Well, my english isn't so great... so I'll post
> > my code (more understandable)
> >
> > --maker.sh--
> > #!/bin/sh
> > ISO_DIR=/r00t
> > ISO_PFIX=r00t
> > VERSION=5.9.3.0
> > ISO_FILE=$ISO_DIR/$ISO_PFIX-$VERSION.img
> > DEVICE=
> > TMPDOC=/mnt/tmpdoc
> > DOCDIR=/root/samuel/docdir
> > ERR=
> > SFX=
> > MBR=/root/samuel/mbr
> > BT1=/root/samuel/boot1
> > BT2=/root/samuel/boot2
> >
> > if [ -e "$1" ]; then
> > DEVICE=$1
> > elif [ "$1" -a -e "/dev/$1" ]; then
> > DEVICE=/dev/$1
> > elif [ "$1" ]; then
> > echo "$0: incorrect device specified" >&2
> > exit
> > else
> > echo "$0: must specify device" >&2
> > exit
> > fi
> > for i in `mount | cut -d ' ' -f 1`
> > do
> > if [ "`echo $i | grep $DEVICE`" ]; then
> > echo "$0: $i already mounted" >&2
> > echo "umount it manually or
> > choose an other drive" >&2 exit
> > fi
> > done
> >
> > if [ -e "$TMPDOC" -a -d "$TMPDOC" ]; then
> > echo "$0: removing $TMPDOC directory" >&2
> > rm -rf $TMPDOC
> > elif [ -e "$TMPDOC" ]; then
> > mv $TMPDOC $TMPDOC.old
> > echo "$0: moved $TMPDOC to $TMPDOC.old" >&2
> > fi
> > mkdir $TMPDOC
> >
> > if [ "$2" ]; then
> > echo $2 | grep "\.img$" >/dev/null ||
> > SFX=".img" fi
> >
> > if [ -e "$2$SFX" ]; then
> > ISO_FILE=$2$SFX
> > elif [ "$2" -a -e "$ISO_DIR/$2$SFX" ]; then
> > ISO_FILE=$ISO_DIR/$2
> > elif [ "$2" -a -e "$ISO_DIR/$ISO_PFIX-$2$SFX"
> > ]; then ISO_FILE="$ISO_DIR/$ISO_PFX-$2$SFX"
> > else
> > echo "$0: will use default file
> > \`$ISO_FILE'" >&2 echo " as system
> > image source" >&2 fi
> > if [ -e "$ISO_FILE" ]; then
> > MSize=`ls -l $ISO_FILE | awk '{print $5}'`
> > else
> > echo "$0: $ISO_FILE doesn't exist!" >&2
> > rm -rf $TMPDOC
> > exit
> > fi
> > if [ -z "$MSize" -o "$MSize" -lt 1 ]; then
> > echo "$0: bad image size (size=$MSize)" >&2
> > rm -rf $TMPDOC
> > exit
> > fi
> >
> > while :
> > do
> > echo " [ Working on $DEVICE ]"
> >
> > echo -n "determining device geometry  "
> > infos=`fdisk -l $DEVICE 2>/dev/null | grep
> > "[0-9]* heads"` ident=`fdisk -l $DEVICE
> > 2>/dev/null | awk '/Disk identifier/{print
> > $3}'` csz=`fdisk -l $DEVICE 2>/dev/null | awk
> > '/Units = cylinders /{print $7}'`
> > eval `echo $infos | awk '{print "hpc=" $1 "
> > sec=" $3 " cyl=" $5}'` if [ -z "$hpc" -o -z
> > "$sec" -o -z "$cyl" -o -z "$csz" ]; then echo "
> > [ FAIL ]"
> > echo "$0: can't get infos for device
> > $DEVICE" >&2 rm -rf $TMPDOC
> > exit
> > fi
> > echo " [ OK ]"
> >
> > echo -n "initializing partition table "
> > #dd if=/dev/zero of=$DEVICE bs=$csz count=1
> > >/dev/null 2>&1 dd if=$BT1 of=$DEVICE
> > >/dev/null 2>&1 ro

Re: Making bootable USB keys

2009-09-03 Thread Samuel Martín Moro
hello.
again.

btw: my .img file is 0-filled in its 512 first bytes...

i downloaded the 8-0-BETA3-???.img, it starts with EB3C.
and I think each .img file start like that, right ?



thanks

Samuel Martín Moro
CamTrace
{EPITECH.} tek4



On Thu, Sep 3, 2009 at 5:35 PM, Samuel Martín Moro wrote:

>
> Hello
>
> I'm having some troubles, trying to create bootable USB keys.
> I found (freebsd-hackers ML archives) a script, supposed to create the
> bootable image from my iso file.
> But, it still don't boot... (I may do it wrong)
>
> In details:
> -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server.
> -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9
> (sorry...)
> -USB sticks must contain a FAT32 partition (we'ld like to provide doc for
> windows users)
>
> Well, my english isn't so great... so I'll post my code (more
> understandable)
>
> --maker.sh--
> #!/bin/sh
> ISO_DIR=/r00t
> ISO_PFIX=r00t
> VERSION=5.9.3.0
> ISO_FILE=$ISO_DIR/$ISO_PFIX-$VERSION.img
> DEVICE=
> TMPDOC=/mnt/tmpdoc
> DOCDIR=/root/samuel/docdir
> ERR=
> SFX=
> MBR=/root/samuel/mbr
> BT1=/root/samuel/boot1
> BT2=/root/samuel/boot2
>
> if [ -e "$1" ]; then
> DEVICE=$1
> elif [ "$1" -a -e "/dev/$1" ]; then
> DEVICE=/dev/$1
> elif [ "$1" ]; then
> echo "$0: incorrect device specified" >&2
> exit
> else
> echo "$0: must specify device" >&2
> exit
> fi
> for i in `mount | cut -d ' ' -f 1`
> do
> if [ "`echo $i | grep $DEVICE`" ]; then
> echo "$0: $i already mounted" >&2
> echo "umount it manually or choose an other drive" >&2
> exit
> fi
> done
>
> if [ -e "$TMPDOC" -a -d "$TMPDOC" ]; then
> echo "$0: removing $TMPDOC directory" >&2
> rm -rf $TMPDOC
> elif [ -e "$TMPDOC" ]; then
> mv $TMPDOC $TMPDOC.old
> echo "$0: moved $TMPDOC to $TMPDOC.old" >&2
> fi
> mkdir $TMPDOC
>
> if [ "$2" ]; then
> echo $2 | grep "\.img$" >/dev/null || SFX=".img"
> fi
>
> if [ -e "$2$SFX" ]; then
> ISO_FILE=$2$SFX
> elif [ "$2" -a -e "$ISO_DIR/$2$SFX" ]; then
> ISO_FILE=$ISO_DIR/$2
> elif [ "$2" -a -e "$ISO_DIR/$ISO_PFIX-$2$SFX" ]; then
> ISO_FILE="$ISO_DIR/$ISO_PFX-$2$SFX"
> else
> echo "$0: will use default file \`$ISO_FILE'" >&2
> echo " as system image source" >&2
> fi
> if [ -e "$ISO_FILE" ]; then
> MSize=`ls -l $ISO_FILE | awk '{print $5}'`
> else
> echo "$0: $ISO_FILE doesn't exist!" >&2
> rm -rf $TMPDOC
> exit
> fi
> if [ -z "$MSize" -o "$MSize" -lt 1 ]; then
> echo "$0: bad image size (size=$MSize)" >&2
> rm -rf $TMPDOC
> exit
> fi
>
> while :
> do
> echo " [ Working on $DEVICE ]"
>
> echo -n "determining device geometry  "
> infos=`fdisk -l $DEVICE 2>/dev/null | grep "[0-9]* heads"`
> ident=`fdisk -l $DEVICE 2>/dev/null | awk '/Disk identifier/{print
> $3}'`
> csz=`fdisk -l $DEVICE 2>/dev/null | awk '/Units = cylinders /{print
> $7}'`
> eval `echo $infos | awk '{print "hpc=" $1 " sec=" $3 " cyl=" $5}'`
> if [ -z "$hpc" -o -z "$sec" -o -z "$cyl" -o -z "$csz" ]; then
> echo " [ FAIL ]"
> echo "$0: can't get infos for device $DEVICE" >&2
> rm -rf $TMPDOC
> exit
> fi
> echo " [ OK ]"
>
> echo -n "initializing partition table "
> #dd if=/dev/zero of=$DEVICE bs=$csz count=1 >/dev/null 2>&1
> dd if=$BT1 of=$DEVICE >/dev/null 2>&1
> round=128
> tocyl=`expr $hpc '*' $sec '*' $csz`
> ret=`expr $MSize % $tocyl`
> MSize=`expr $MSize / $tocyl`
> test "$ret" -eq "0" || MSize=`expr $MSize + 1`
> s2len=$MSize
> s2off=`expr $cyl - $s2len - 1`
> s1len=`expr $s2off - 1`
> s1off=1
> sfdisk -DLqf $DEVICE >/dev/null 2>&1 < $s1off $s1len b
> $s2off $s2len a5 *
> EOF
> echo " [ OK ]"
>
> echo -n "formatting FAT32 partition   "
> dd if=/dev/zero of=${DEVICE}1 bs=$csz count=1 >/dev/nul

Making bootable USB keys

2009-09-03 Thread Samuel Martín Moro
= "Y" -o "$i" = "y" -o "$i" = "O" -o "$i" = "o" || i=
test -z "$i" && echo " [ leaving ]" && break
echo " Please, remove current USB key, insert new one and press enter"
read i
done
rmdir $TMPDOC
--EOF--

So, this is a "USB stick generator" I'm working on.
It seems to work. (I've not tested everything, but the basis is OK)
The stick is correctly parted.
The documentation is copied.
My only problem is that it still don't wan't to boot...

At the beginning, I was trying to paste my ISO file directly in ${DEVICE}2
Then, I found the following shell script, which is supposed to make my
bootable image from my ISO file
I changed 2/3 things, but some of you may recognize it anyway:

--ISOtoIMG.sh--
#!/bin/sh
MAKEFS=makefs
MKLABEL=bsdlabel
BSDTAR=tar
DD="dd status=noxfer"

make_freebsd_image()
{
  local tree=$1
  local imagefile=$2
  local boot1=${tree}/boot/boot1
  local boot2=${tree}/boot/boot2

  echo "convert tree $tree image $imagefile"
  ${MAKEFS} -t ffs -o bsize=4096 -o fsize=512 -f 50 ${imagefile} ${tree}
>/dev/null 2>&1
  ${MKLABEL} -w -f ${imagefile} auto >/dev/null 2>&1
  ${MKLABEL} -f ${imagefile} 2>/dev/null | sed -e '/ c:/{p;s/c:/a:/;}' | \
  ${MKLABEL} -R -f ${imagefile} /dev/stdin >/dev/null 2>&1
  ${DD} if=${boot1} of=${imagefile} conv=notrunc >/dev/null 2>&1
  ${DD} if=${boot2} iseek=1 ibs=276 2>/dev/null | \
  ${DD} of=${imagefile} oseek=1 obs=788 conv=notrunc >/dev/null 2>&1
}

extract_image()
{
  [ -f $1 ] || return
  local tmp="${tree}.tree"
  [ -e ${tmp} ] && rm -rf ${tmp}
  mkdir -p $tmp
  echo "extracting $tree in $tmp"
  (cd $tmp && ${BSDTAR} xf $tree)
  tree=$tmp
}

if [ -z "$1" ]; then
  echo "$0: usage" >&2
  echo "$0 {ISO_input} | {system_root IMG_output}" >&2
  exit
fi
tree=`realpath $1`
[ "$2" ] && image=`realpath $2` || image=`echo $tree | sed "s/.iso/.img/"`
extract_image $tree
make_freebsd_image $tree $image
[ -d "$tmp" ] && (chmod -R +w $tmp && rm -rf $tmp)
--EOF--

This seems to work, too...
I'm just surprised:
r...@granit:~/samuel# l -h /r00t/r00t-5.9.3.0*
-rw-r--r-- 1 root root 566M 2009-09-03 15:29 /r00t/r00t-5.9.3.0.img
-rw-r--r-- 1 root root 526M 2009-08-08 06:58 /r00t/r00t-5.9.3.0.iso
new file is 40M heavier than our iso image...

Also, in the first script, I tried to do the first dd (initializing
${DEVICE}) with:
- if=$MBR
- if=$BT1
- if=$BT2
- if=/dev/zero
none of that worked...

So.
Does someone understand what am I doing wrong?!


Thanks for you help!

Samuel Martín Moro
CamTrace
{EPITECH.} tek4
___
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: Samba

2009-07-16 Thread Samuel Martín Moro
here is my conf file:


fa...@alpha ~ : cat /etc/samba/smb.conf
6:34
#=== Global Settings ===

[global]
   workgroup = WORKGROUP
   server string = Samba server on alpha {debian:lenny}
   Security = share

#=== Share Definitions ===

[Videos]
comment = media::vidz
path = /mnt/media
force user = smbguest
force group = users
read only = Yes
guest ok = Yes

[Upload]
comment = misc::upload
path = /home/faust/download
forceuser = smbguest
forcegroup = users
read only = No
guest ok = Yes
fa...@alpha ~ :

then:
adduser smbguest
chown -R faust:smbguest /home/faust/download
chmod 775 /home/faust/download
and a restart of samba

gl&hf ;)


Samuel Martín Moro
CamTrace
{EPITECH.} tek3


2009/7/16 Anton 

>
>   Hello freebsd-questions,
>
> Could anyone give me fuidance, how to create Samba share with rw
>  acces in workgroup with security=share
>
>   --
>
>   --
>
>   Best regards,
>
>Anton ;[1]mailto:an...@sng.by
>
>Administrator
>
>   Feel free to contact me
>
>   via ICQ 363780596
>
>   via Skype dobryak47
>
>   via phone +375 29 3320987
>
> References
>
>   1. 3D"mailto:an...@sng.by";
> ___
> 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"


Re: can't read from two cameras

2009-06-30 Thread Samuel Martín Moro
What do you mean?Are you the fwcontrol maintener?

Is it a common problem on 7.x? Why would fwcontrol work on -CURRENT, while
not in 7.x?


Thanks!


Samuel Martín Moro
CamTrace
{EPITECH.} tek3


On Mon, Jun 29, 2009 at 5:51 PM, Sean Bruno  wrote:

> Yeah, I thought so.
>
> One of these days I'll backport from -CURRENT to 7, but I haven't yet.
>
> -CURRENT most likely doesn't have this issue.
>
> Sean
>
> On Mon, 2009-06-29 at 17:43 +0200, Samuel Martín Moro wrote:
> > sry, I forget:
> >
> >
> > uname -a
> > FreeBSD h2g2.axis.fr 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1
> > 08:49:13 UTC 2009
> > r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
> >
> >
> > sysctl -a | grep firewire
> > debug.firewire_debug: 0
> > hw.firewire.hold_count: 3
> > hw.firewire.try_bmr: 1
> > hw.firewire.fwmem.speed: 2
> > hw.firewire.fwmem.eui64_lo: 0
> > hw.firewire.fwmem.eui64_hi: 0
> > hw.firewire.phydma_enable: 1
> > hw.firewire.nocyclemaster: 0
> > hw.firewire.fwe.rx_queue_len: 128
> > hw.firewire.fwe.tx_speed: 2
> > hw.firewire.fwe.stream_ch: 2
> > hw.firewire.fwip.rx_queue_len: 128
> > hw.firewire.sbp.tags: 0
> > hw.firewire.sbp.use_doorbell: 0
> > hw.firewire.sbp.scan_delay: 500
> > hw.firewire.sbp.login_delay: 1000
> > hw.firewire.sbp.exclusive_login: 1
> > hw.firewire.sbp.max_speed: 2
> > hw.firewire.sbp.auto_login: 1
> > dev.firewire.0.%desc: IEEE1394(FireWire) bus
> > dev.firewire.0.%driver: firewire
> > dev.firewire.0.%parent: fwohci0
> > dev.fwe.0.%parent: firewire0
> > dev.fwip.0.%parent: firewire0
> > dev.sbp.0.%parent: firewire0
> > dev.dcons_crom.0.%parent: firewire0
> >
> >
> >
> >
> > if one need something else... ;)
> >
> >
> > thanks !
> >
> >
> >
> >
> >
> > Samuel Martín Moro
> > CamTrace
> > {EPITECH.} tek3
> >
> >
> > On Mon, Jun 29, 2009 at 5:38 PM, Sean Bruno 
> > wrote:
> >
> > On Mon, 2009-06-29 at 15:50 +0200, Samuel Martín Moro wrote:
> > > Hi
> > >
> > > I've got a problem, trying to read streams from 2 firewire
> > DV cameras.
> >     > When I plug the second camera in, the first one disapear
> > from my /dev, and
> > > is replaced by the new one.
> > >
> > > So I just get /dev/fw0 (-> /dev/fw0.0) and /dev/fwmem0
> > (-> /dev/fwmem0.0)
> > >
> > > How can I get more than one device in my /dev ?
> > >
> > >
> > >
> > > Thanks!
> > >
> > >
> > > Samuel Martín Moro
> > > CamTrace
> > > {EPITECH.} tek3
> >
> > > ___
> > > freebsd-firew...@freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-firewire
> > > To unsubscribe, send any mail to
> > "freebsd-firewire-unsubscr...@freebsd.org"
> >
> > Ouch.  Really?
> >
> > What FreeBSD version is this?
> >
> > Sean
> >
> >
> >
>
>
___
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 & FireWire

2009-06-29 Thread Samuel Martín Moro
Hi all !

I'm trying to read from two firewire DV cameras.

calling fwcontrol without arguments shows me three elements.
except EUI64 field, every datas (node, ...) change when I plug in or out a
device.

when I'm trying to read from my cameras' streams (using fwcontrol), I always
get the same stream, which is the one of the last camera I pluged in.

Reading the sources, I noticed you can specify your source in fwcontrol,
using option 'u'.
this option makes an strtol on the following argument, and uses it back to
open "/dev/fw%d.0"

so I looked my /dev, and all I got is fw0, fw0.0, fwmem0, fwmem-0.0
fw0 and wfmem0 are respectives links to fw0.0 and fwmem0.0

so, whatever i could ask, i'll always get the same source camera.

When there already is a plugged firewire device, I can plug in or out others
FW devices, without affecting my /dev.


How can I do to get all my FW devices associed to a file in /dev?


Thanks for your help.
Sorry for my english.


Samuel Martín Moro
CamTrace
{EPITECH.} tek3
___
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: good morning to all

2009-06-18 Thread Samuel Martín Moro
Sorry, I forgot 'reply to all'

what do you mean ? what can't you do with the inetd.conf file ?

have you restart inetd daemon ? (/etc/rc.d/inetd restart)
when you restart, is stderr clean ?



On Thu, Jun 18, 2009 at 10:21 AM, malathi selvaraj 
 wrote:

> i see the book and i install samba and i can not  do the inetd.config
>
> On Thu, Jun 18, 2009 at 12:51 PM, Samuel Martín Moro 
>  wrote:
>
>> read the handbook:
>> http://www.freebsd.org/doc/en/books/handbook/network-samba.html
>> <http://www.freebsd.org/doc/en/books/handbook/network-samba.html>
>> Samuel Martín Moro
>> CamTrace
>> {EPITECH.} tek3
>>
>>
>> On Thu, Jun 18, 2009 at 8:23 AM, malathi selvaraj > > wrote:
>>
>>> how to  install samba in freebsd
>>> advance thanks
>>> ___
>>> freebsd-hack...@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>>> To unsubscribe, send any mail to "
>>> freebsd-hackers-unsubscr...@freebsd.org"
>>>
>>
>>
>
>
> --
> S.MALATHI
>


Samuel Martín Moro
CamTrace
{EPITECH.} tek3


On Thu, Jun 18, 2009 at 1:00 PM, malathi selvaraj wrote:

> oneday before only i know the freeBSD and now i am working in that,i dn't
> know to how to set up http://localhost:901 in that, any one guide me.
>
>
> --
> S.MALATHI
> ___
> 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"


mkntfs

2009-06-08 Thread Samuel Martín Moro
Hi all.

I'm trying to format an USB key with mkntfs (I tried with 1.13.1_5 and
2.0.0).
Whatever I do, it never works.

Some of results I got:

(with 2.0.0)
~# mkntfs -F -p 63 -H 255 -S 63 /dev/da0s1
/dev/da0s1 is not a block device.
mkntfs forced anyway.
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 99%Failed to complete writing to /dev/da0s1
after three retries.
This should not happen.
~#mkntfs -f -F -p 63 -H 255 -S 63 /dev/da0s1/dev/da0s1 is not a block
device.
mkntfs forced anyway.
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
^C
~#

the only difference I noticed between 1.13.1_5 and 2.0.0 is that cluster
size is automaticaly set to 2048 instead of 4096.

when I tried fast format (-f), mkntfs print 'Creating NTFS volume', then I
wait for 40 minutes, before killing the process (1 minute is already too
long, for a 2G USB stick...).

during a fast format (with both versions), a truss -p `ps ax | awk
'/[m]kntfs /{print $1}'` gives me
preadv(0x3,0x28229800,0x1,0x76a4,0x0,0x2808a600) = 26112 (0x6600)
preadv(0x3,0x28229800,0x1,0x76a4,0x0,0x2808a600) = 26112 (0x6600)
preadv(0x3,0x28229800,0x1,0x76a4,0x0,0x2808a600) = 26112 (0x6600)
preadv(0x3,0x28229800,0x1,0x76a4,0x0,0x2808a600) = 26112 (0x6600)
preadv(0x3,0x28229800,0x1,0x76a4,0x0,0x2808a600) = 26112 (0x6600)
.


So... Is there a way to format a disk into NTFS ?!


Thanks all !



Samuel Martín Moro
CamTrace
{EPITECH.} tek3
___
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: Shutting down X with control+alt+backspace

2009-06-07 Thread Samuel Martín Moro
it may, dealing with portupgrade/portdowngrade
but setting AllowEmptyInput (ServerLayout) works.

hal is'nt well documented...
it'ld be a good idea to explain its configuration in the handbook


Samuel Martín Moro
CamTrace
{EPITECH.} tek3


On Sun, Jun 7, 2009 at 7:48 PM, Wojciech Puchar <
woj...@wojtek.tensor.gdynia.pl> wrote:

> can older Xorg server be used with just updated drivers?
> drivers are separate modules.
>
>
> On Sun, 7 Jun 2009, Manolis Kiagias wrote:
>
>  Manolis Kiagias wrote:
>>
>>> Luke Dean wrote:
>>>
>>>  This is an answer to a question I started to post, but then decided to
>>>> research instead.  I know many readers of this list use the feature I'm
>>>> describing.
>>>>
>>>> When Xorg was upgraded to version 7.4, the historic ability to shut
>>>> down X
>>>> with Control+Alt+Backspace became a non-default option.  The solution to
>>>> re-enabling this behavior was to add
>>>>Option "DontZap" "off"
>>>> to the ServerLayout or ServerFlags section of xorg.conf as documented in
>>>> a note in the Handbook
>>>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html
>>>>
>>>> A few days ago, x11/xkeyboard-config was upgraded to 1.6 and the
>>>> solution
>>>> in the Handbook is no longer sufficient.
>>>>
>>>> The new solution that gets Control+Alt+Backspace working for me
>>>> again is to add
>>>>Option  "XKbOptions" "terminate:ctrl_alt_bksp"
>>>> to the "InputDevice" section of xorg.conf.
>>>>
>>>>
>>>>
>>> Thanks for mentioning this. I have not yet upgraded to the new version
>>> of xkeyboard-config, but will try this and update the Handbook
>>> accordingly.
>>>
>>>
>>>
>> This gets even more complicated - the setting in xorg.conf will only be
>> effective when "AutoAddDevices" is false (or "AllowEmptyInput" is
>> false).  On systems that totally rely on HAL for device detection, the
>> setting has to be moved to an XML file like this:
>>
>> 
>> 
>>  
>>
>>  kbd
>>  pc105
>>  us
>>  xorg
>>  > type="string">terminate:ctrl_alt_bksp
>>
>>  
>> 
>>
>> which should be named i.e. keyboard.fdi and placed in
>> /usr/local/etc/hal/fdi/policy
>>
>> In light of the above, I feel we probably need to add a section on
>> "Configuring Additional Options Using HAL" to the Handbook.
>>
>> ___
>> 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"
>
___
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"