Bootstrapping usb flash

2006-02-14 Thread Mikko Heiskanen
I have a Lacie Orange 7Gb usb flash drive, into which I've tried to 
install

FreeBSD 6-RELEASE a couple of times.
I've had no luck booting it, only a "invalid diskslice" -message after 
normal

installation and boot.
However, netbsd3 boots nicely with default install off the drive,
as does archlinux after modifying the mkinitrd.conf a little.

I was wondering if there is something I could do to make FreeBSD boot 
off

it too, since it is the OS I would prefer.
TIA

ps. I'm not subscribed atm

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


dualboot winxp & freebsd

2005-07-29 Thread Mikko Heiskanen

Hi,

it seems it's so common knowledge to achieve this,
that there isn't any info anywhere about it.
So, I have a winxp hard disk at the end of a sata pci-card,
and freebsd harddisk straight in the motherboard ide connection.

So if both are connected, freebsd starts,
and if I take cabled off the freebsd harddisk, windows starts.
I cannot choose it from the bios that windows would make it first.

So that rules out the solution from handbook, where it's done vice 
versa.


Secondly, I wouldn't want any gag or grub or any other "external" 
programs;

I'm quite sure freebsd's own bootloader can do it without problems.

Question remains: how? I vaguely remember I had done it before.

Thank you for your time,
Mikko (using freebsd 5.4)

PS: I'm not subscribed at the moment, I would appreciate if you could
post a copy for me.

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


Re: Script to merge mailinglist archives

2005-01-27 Thread Mikko Heiskanen
Thanks everyone for the answers, but none of you really understood what
I meant :)
So let me rephrase.
I have archived mailinglist mbox format files on my hd, downloaded from
http://docs.freebsd.org/mail/

#ls
20021215.freebsd-questions 20040125.freebsd-questions
20021222.freebsd-questions 20040201.freebsd-questions
20021229.freebsd-questions 20040208.freebsd-questions
20021231.freebsd-questions 20040215.freebsd-questions
20030105.freebsd-questions 20040222.freebsd-questions
20030112.freebsd-questions 20040229.freebsd-questions
20030119.freebsd-questions 20040307.freebsd-questions
20030126.freebsd-questions 20040314.freebsd-questions
20030202.freebsd-questions 20040321.freebsd-questions
20030209.freebsd-questions 20040328.freebsd-questions
20030211.freebsd-questions 20040404.freebsd-questions
20030216.freebsd-questions 20040411.freebsd-questions
20030223.freebsd-questions 20040418.freebsd-questions
20030302.freebsd-questions 20040425.freebsd-questions
20030309.freebsd-questions 20040502.freebsd-questions
20030316.freebsd-questions 20040509.freebsd-questions
20030323.freebsd-questions 20040802.freebsd-questions
20030330.freebsd-questions 20041101.freebsd-questions
20030406.freebsd-questions 20041502.freebsd-questions
20030413.freebsd-questions 20041801.freebsd-questions
20030420.freebsd-questions 20042501.freebsd-questions

Now as you can see, there are multiple mbox files per month.
I would like to make a one-liner/script which would merge all the mboxes
of every month to a single mbox representing that month.

For the above mentioned files:
#cat 200303* >> questions.0303
is how I do it manually, but doing this for each and every month for
every year is painful (at least for lazy people like myself)

So the question isn't about me, at this time, subscribed to mailinglist
and wanting to put those files somewhere, I am already doing that with
procmail, but I am not accepting mail from list always (actually quite
rarely), so I would like to use the archives from the freebsd site, and
after a while, just delete my own procmail created freebsd-questions
mbox.
Also isn't about unzipping the archives.
Just to clarify.
I'm 100% sure some awk guru can tell me a oneliner in 2 seconds.

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


Script to merge mailinglist archives

2005-01-27 Thread Mikko Heiskanen
Hi list.

I've found archives of freebsd-questions mailinglist very useful.
But I have found them difficult to search, as in one month there can be
many archives, not just one per month.
So I would like to merge all archives of the same month into a single
mailbox containing all messages sent that month (I am aware this file
could come quite large).
I have a feeling this can be a simple shellscript/one-liner with some
awk magic, but I am having hard time figuring out how to tackle the
problem. I should somehow be able to compare a list of files which match
the month, and cat >> results to a file whose filename comes that
matched months last 2 digits of year+ 2 digits of month. And this for
all the files in a directory containing, say, archives from 1998 ->
2005. Easy?

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


Re: making music

2005-01-26 Thread Mikko Heiskanen
Gert Cuykens
> Does freebsd has programs to make music ? like sonar or logic or fruityloops ?

If you know tracking, cheesetracker seems to be nice.
Mikko
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: samba printing

2005-01-24 Thread Mikko Heiskanen
On Mon, 2005-01-24 at 04:48, McCy Ron wrote:
> I have/had the same problem - couldn't print to the Samba shared printer 
> until I found in the
> "Handbook" a couple of line of code that were missing in my smb.conf
> 
> [printers]
>comment = Guttenburgs Pride
>printable = yes
>printing = BSD
>printcap name = /etc/printcap
>print command = /usr/bin/lpr -P%p -r %s
>path = /var/spool/samba
>min print space = 2000
>public = yes
> 
> I've got a printcap setting that uses a "pass-through" filter.
> Windows provides the drivers that talk to the printer correctly. BSD 
> need only pass the bytes through.
> 
> ###
> ### printcap setup for Samba printer share..
> 
> broxima|hplj4|Samba Laser:\
> :sh:\
> :lp=/dev/lpt0:sd=/var/spool/output/broxima:\
> :lf=/var/log/smbprt-errs:\
> :if=/usr/libexec/pass-prt:\
> 
> ### pass-prt ..Pass through filter
> #!/bin/sh
> /bin/cat && exit 0
> exit

Right you are about the pass-through. I read from a webpage where there
was used a printcap entry with "raw" -driver. I understand it
accomplishes the same as the pass-through filter. Correct me if I'm
wrong.

I've done some more digging, and found the following to put into the
samba configuration file.

smb.conf:
print command = "/usr/bin/lpr -P%S /var/spool/samba/%s; /bin/rm
/var/spool/samba/%s; /bin/echo %T %U %M %I %a %S>>
/var/spool/samba/smbprint.log"

Which, ofcourse, keeps appending to the file, so one might want to
logrotate it.

So now it is working. Hope this helps others who have struggled to get
it work. Oh, and by the way, samba version is 2.2.8a.

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


RE: samba printing

2005-01-23 Thread Mikko Heiskanen
On Sun, 2005-01-23 at 23:06, Andras Kende wrote:
> Hello,
> 
> 
> Looks like the spool directories are different in /etc/printcap and
> in smb.conf:
> 
> sd=/var/spool/raw:
> 
> path = /var/spool/samba
> 
> Try to set to the same path, also make sure windows user has
> Enough privileges to write to spool directory...
> 
> Best regards,
> 
> Andras Kende

Hi,
Appreciate the answer, but to my understanding, the two spool
directories need to be separate. From the samba documentation:

"Successful printing from a Windows client via a Samba print server to a
UNIX printer involves six (potentially seven) stages:
3.Windows sends a copy of the print file over the network into Samba's
spooling area.
5. Samba invokes the print command to hand the file over to the UNIX
print subsystem's spooling area."

I am naturally with admin priviledges on windows side.
I am though almost certain it is some little configuration err.
As always.

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


samba printing

2005-01-23 Thread Mikko Heiskanen
Hi list,

I'm having hard time getting printing working from samba winXP client to
a printer parallelport connected to my FreeBSD-4.10-release box.
I have a HP Laserjet 1200 -printer, and am using LPD and apsfilter with
postscript driver as suggested by linuxprinting.org.

Everything works real well under BSD, but I am unable to get any output
to printer from the Windows box.

I have gathered different bits and pieces from around the net and
manuals, and have come up with the following:

/etc/printcap:
lp|PS;r=1200x1200;q=medium;c=full;p=a4;m=auto:\
:lp=/dev/lpt0:\
:if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:
raw|hp|HP LaserJet 1200:\
:lp=/dev/lpt0:\
:sd=/var/spool/raw:\
:lf=/var/spool/raw/log:\
:af=/var/spool/raw/acct:\
:mx#0:\
:sf:\
:sh:

$ ls -ld /var/spool/lpd/lp
drwxr-xr-x  2 root  daemon  512 Jan 23 19:59 /var/spool/lpd/lp
$ ls -ld /var/spool/raw/  
drwxr-xr-x  2 root  wheel  512 Jan 23 19:57 /var/spool/raw/

/usr/local/etc/smb.conf:
[global]
hosts allow 10.0.0.
security = user
encrypt passwords = yes
socket options = TCP_NODELAY 
client code page=850
wins support = yes
printing = bsd
printcap name = /etc/printcap
[lp]
comment = Laserjet 1200
path = /var/spool/samba
printer name = raw
public = yes
writeable = no
printable = yes

$ ls -ld /var/spool/samba/
drwxrwxrwt  2 root  wheel  512 Jan 23 20:03 /var/spool/samba/

In the Windows box, I've added a local printer with the "Add new printer
wizard" pointing it to lpt1-port. After that, I have opened a command
prompt, and typed "net use lpt1: \\10.0.0.1\lp".

I have filesharing also in samba, and that works without problems.

My windows username and password are same as samba username and
password.

However, as said, nothing gets printed. No files are in the
spooldirectories. I do not know how to proceed, and would love some
guidance. Thanks,
Mikko

ps. would hate to have to put it into windows box, as printer supports
PS.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


linux emulation

2004-12-02 Thread Mikko Heiskanen
I've been wondering about this some time now.
The linux compatibility layer (kernel module + linux_base -port)
is told to be able to run linux binaries. The handbook even describes
for a couple of heavy-duty applications how this is done.
However, after reading that part of the handbook and googling around the
net, I haven't the slightest idea how I'm supposed to run such program.
Let's say I have a program. Should I put it in /compat/linux/somewhere,
run it like /compat/linux/somewhere/executable and it just somehow
works? Or should I chroot to /compat/linux?
How does FreeBSD know when to use linuxemu? How does it handle, say,
stuff in /dev? Specifically when there aren't things like ethn in there.
Man linux is kinda short.
Sorry if my question is reallyreally stupid.

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


Re: Ntpd assistance

2004-09-22 Thread Mikko Heiskanen
alden.pierre wrote:
/etc/rc.conf contains the following:
ntpdate_enable="YES"
ntpdate_flags="timex.cs.columbia.edu"
xntpd_enable="YES"# Run ntpd Network Time Protocol
/etc/ntpd.conf contains the following:
driftfile/etc/ntp/drift
server 65.211.109.1
server 65.211.109.11
server 209.51.161.238
server 128.59.59.177
Am I doing something wrong here?  My time seems to go out of sync after 
my FreeBSD 4.10 box has been up for a couple of hours.  Any help would 
be greatly
appreciated.

Thank You
Alden Louis-Pierre
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
man ntpd and ntpdate show that these are two different things.
Ntpdate makes clock sync in restart, xntpd keeps it that way.
ntpdate, to my understanding, doesn't use the config file.
Mikko
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Soundcards on 6-current

2004-09-12 Thread Mikko Heiskanen
kstewart
> 
> On Saturday 11 September 2004 11:56 am, Lucas Holt wrote:
> >  BEGIN RANT 
> > Why is everyone running 6 current and expecting it to work?  They
> > just created that branch recently and I seriously doubt that its even
> > close to usable.  We could run 5-Current because it was pretty far
> > along.. 6 is "new".

Thanks people for the answers. Now about the rant; I only ran 5.x because
4.10 didn't undestand UFS2, and I was stuck to start again with 5.x.
Doing that with the only burned cd I had home, 5.1, I guessed I had to
do some cvsupping before getting things to work properly, and used the
standard-supfile for it to get anything to work at all. So there's my
reason. I remembered there shouldn't be any questions on latest devel version
on here, so I am sorry about that.

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


Soundcards on 6-current

2004-09-11 Thread Mikko Heiskanen
Hi,

Is there support on 6.0-current for soundcards?
I put the usual device pcm on kernconf, but it says
it don't know about that. I tried device sound, it compiles,
but there don't come support. If it's not supposed to, sorry
for this message.

Thank you for your time,
Mikko
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"