Re: automatic standby after idle timeout

2003-03-23 Thread mike mcgranahan
--- Lowell Gilbert
[EMAIL PROTECTED] wrote:
 mike mcgranahan [EMAIL PROTECTED] writes:
 
  under windows it is possible to configure the
 system
  to enter APM standby after a certain amount of
 system
  inactivity.  in linux their is a program called
 sleepd
  which will initiate an APM standby after a
  configurable period of system inactivity, which
 works
  both on the console as well as while X is running.
  is
  there any way to achieve the same effect under
  freebsd, where the system will enter standby
 after,
  say, 10 minutes of no activity?
 
 apmd(8) is the closest thing I know of.
 
 I don't know all of the new power-control functions
 in 5.x, but
 I wouldn't recommend that for you anyway.

thank you for your reply. correct me if i'm wrong, but
apmd only responds to apm signals sent to it, either
by the user or by the machine hardware (lid closing or
opening).
 
  also, can anyone describe the apm_saver.ko KLD?  i
  can't seem to find a description of it anywhere.
 
 It turns off the screen.

ahh, thanks.  green_saver also turns off the screen
(dpms).  are there any differences between apm_saver
and green_saver?

thank you again.

mike

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: automatic standby after idle timeout

2003-03-23 Thread mike mcgranahan
--- David Fleck [EMAIL PROTECTED] wrote:
 On Fri, 21 Mar 2003, mike mcgranahan wrote:
  under windows it is possible to configure the
 system
  to enter APM standby after a certain amount of
 system
  inactivity.  in linux their is a program called
 sleepd
  which will initiate an APM standby after a
  configurable period of system inactivity, which
 works
  both on the console as well as while X is running.
  is
  there any way to achieve the same effect under
  freebsd, where the system will enter standby
 after,
  say, 10 minutes of no activity?
 
 try 'man xset'. grep for the dpms options.  In my
 AfterStep configuration,
 I use
 xset dpms 600 1200 1800
 
 to set standby (10 min) suspend (20 min) and off (30
 min) times.

thanks for the info.  i do use xset for controlling
dpms in X, but i am interested in something that will
a) put the system into standby, not just the monitor,
and b) work regardless of X running.

any other suggestions or ideas?  i'm finally switching
from windows to unix full-time, so i am stuck
choosing between freebsd and linux (gentoo).  i really
like freebsd's integration, configuration,
documentation and ports system, but auto-standby is
important to me.  thie absence of this feature seems
to me to be a significant, though not vital,
omission--particularly useful in computer labs.  is
anyone aware of a more general daemon or facility that
can execute a command after a certain period of system
idleness... perhaps some modified cron?

 
 --
 David Fleck
 [EMAIL PROTECTED]
 

thanks again,
mike

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


automatic standby after idle timeout

2003-03-21 Thread mike mcgranahan
hello,

under windows it is possible to configure the system
to enter APM standby after a certain amount of system
inactivity.  in linux their is a program called sleepd
which will initiate an APM standby after a
configurable period of system inactivity, which works
both on the console as well as while X is running.  is
there any way to achieve the same effect under
freebsd, where the system will enter standby after,
say, 10 minutes of no activity?

also, can anyone describe the apm_saver.ko KLD?  i
can't seem to find a description of it anywhere.

thank you for your help.

mike

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Going from Windows to X - suggestions

2002-12-17 Thread mike mcgranahan

--- Adam Weinberger [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
  (12.17.2002 @ 1748 PST): Derrick Ryalls said, in
 0.8K: 
  I have been using FreeBSD as a server via console
 for a while now, but I
  wanted to see what the GUI was like.  My only
 spare machine right now is
  a P-300 w/ about 16meg ram, so I won't be
 screaming along, but I wanted
  to start the process anyway.  I was looking
 through the ports, and I see
  a ton of options.
  
  What I am looking for is something simple to start
 with.  I figure a
  file manager of some sort, a web browser, and text
 editor for doing
  development work if I ever get to that point.
  
  I know I am being really vague, but there are so
 many options, I wanted
  to hear some recommendations.  Right now, I am
 thinking about going with
  KDE3 as I have heard the name before.
  end of Going from Windows to X - suggestions
 from Derrick Ryalls 
 
 Install KDE and/or gnome. Your call.
 
 kde3:
 cd /usr/ports/x11/kde3; make install clean
 
 gnome2:
 cd /usr/ports/x11/gnome2; make install clean
 cd /usr/ports/x11/gnome2-fifth-toe; make install
 clean
 
 # Adam
 
 
 - --
 Adam Weinberger
 vectors.cx  [EMAIL PROTECTED]
 FreeBSD.org [EMAIL PROTECTED]
 Bayer Berkeley  [EMAIL PROTECTED]
 #vim:set ts=8: 8-char tabs prevent tooth decay.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (FreeBSD)
 

iD8DBQE9/9r7o8KM2ULHQ/0RAu7VAJ9SZdumWsaNsQ4IXzc8o5pM6kAZpQCcC0It
 WH5UHHcg7To+Gp0SjYCxgAI=
 =+ZWJ
 -END PGP SIGNATURE-
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of
 the message
 
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Going from Windows to X - suggestions

2002-12-17 Thread mike mcgranahan
 Install KDE and/or gnome. Your call.

I'm new to FreeBSD myself, having used blackbox window
manager on a P133 with 48MB of RAM.  Though it's not
impossible, with only 16MB or RAM, GNOME or KDE would
probably be pushing it; you'd be using your swap slice
continuously.  I recommend blackbox, though it's not
as full-featured as the above.  However, it's quite
easy to set up.

As for email, I've heard Evolution is nice (I'm
anticipating Thunderbird from the Mozilla Phoenix
team).  As for web browsers, Phoenix or Galeon are
best.  File manager... I don't know.

Mike (new to FreeBSD)

(Darned Reply All!)


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Dual booting FreeBSD 4.7 and Windows XP

2002-12-16 Thread Mike McGranahan
Hello,

I would like to know what is the best way to dual boot FreeBSD 4.7 and
Windows XP?  I found this information (
http://www.geocrawler.com/mail/msg.php3?msg_id=7963936list=151 ) regarding
how to use the Windows XP loader, and this information on GRUB (
http://www.gnu.org/manual/grub/html_node/Booting.html#Booting ) though there
is no mention of Windows XP.

I have two hard drives in my system, a 20GB which currently has Windows XP,
and a 10GB which is empty.  I was considering making the 10GB drive common
storage for both OS' as FAT32.  I would then move my data from the 20GB
drive to the 10GB, partition the 20GB drive and install FreeBSD alongside
Windows XP.  Besides setting up the bootloader, would there be any FreeBSD
problems with this configuration?  In what ways could I set up dual-booting
for this configuration, and which method is best?

Alternately, I could just install FreeBSD on the 10GB drive, leaving the
20GB/Windows XP drive untouched.  In what ways can I set up dual-booting for
this alternate configuration, and which method is best?

Are there any online documents that address this, or would be insightful?

Thank you for you help.

Mike McGranahan

Worst case scenario, I could use the alter the BIOS to control which drive
boots.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Dual booting FreeBSD 4.7 and Windows XP

2002-12-16 Thread Mike McGranahan
 It depends on how you want to use the system and how much.
 Where will you use the most disk - in XP or FreeBSD?
 Easiest would be to leave all the Microsloth stuff along
 and just install FreeBSD on the empty drive.  I guess that won't
 work with some older BIOSes, but should be OK with recent ones.

Yes, it seems simplest to go with this setup.  I'll have to change the BIOS
to set the 10GB as the boot disk, but this is trivial.  Hopefully in a short
while, I'll be back to confirm that this works. =)

 Do the FreeBSD install last because any Microsloth installation will
 generally disregard stuff put there by other systems and wipe out
 or rewrite whatever it chooses without regard to what you want or
 try to tell it to do.   But FreeBSD is better mannered.

For the record, I despise Microsoft as much as the next Unix user, but I'm a
newbie and am trying to ease into it.  I've been using FreeBSD on an older
laptop, and a spare Pentium machine, for a couple months now, trying out
everything from PostgreSQL to X to some C++ programming with emacs to PPP...
I'm finally comfortable putting it on my main machine. I'm hoping to not
look back once I've got it set up.

Thanks for the help.

Mike

P.S. Sorry for any duplicate emails, I forgot to use Reply All. =/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Dual booting FreeBSD 4.7 and Windows XP

2002-12-16 Thread Mike McGranahan
 (2) Use the XP bootloader.  There's an FAQ about this at the
 FreeBSD web site (I think it's called the NT bootloader in the FAQ),
 which may be identical to what you found at Geocrawler.

This it the entry to which you are referring:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NT-BOOTLOADE
R Towards the end of the entry, the issue of FreeBSD on another disk is
discussed, but I don't understand what they mean.  Do they mean that if you
install FreeBSD on a non-boot disk, you must use sysinstall to install the
FreeBSD loader on that disk, and then copy /boot/boot0 to C:\bootsect.bsd ?

Thanks for your help.

Mike


P.S. Sorry for any duplicate emails, I forgot to use Reply All. =/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Dual booting FreeBSD 4.7 and Windows XP

2002-12-16 Thread Mike McGranahan
 On Mon, Dec 16, 2002 at 05:06:44AM -0800, Mike McGranahan wrote:
  Hello,
 
  I would like to know what is the best way to dual boot FreeBSD 4.7 and
  Windows XP?  I found this information (
  http://www.geocrawler.com/mail/msg.php3?msg_id=7963936list=151 )
regarding
  how to use the Windows XP loader, and this information on GRUB (
  http://www.gnu.org/manual/grub/html_node/Booting.html#Booting ) though
there
  is no mention of Windows XP.
 
 Grub works fine with FreeBSD and Windows XP.  [...]
 Remember that Windows only really likes to be booted off of the first
 hard disk, but there is a little trick with Grub (and I gues with my
 most bootloaders) that fools it into thinking that even if it is on the
 second disk it is told it is on the first.

Windows XP likes to be booted off the first disk?  Can you elaborate?  After
reading the earlier response by Jerry McAllister, I was planning on setting
the first/boot disk to my 10GB/blank drive in the BIOS, installing FreeBSD
on that 10GB disk, and using the FreeBSD loader to control the booting (with
the  entry for Windows XP).  Would Windows XP have trouble booting in
such a fashion, not off the first disk?

It looks like if I were to proceed with this configuration, I would have to
keep the 20GB/Windows XP drive as the first/boot disk, and replacing the
Windows XP loader with GRUB...  This would work right?

 I can send you some example menu entries from my own setup if you wish.
 To re-iterate you must understand not only the syntax of grub disk
 definitions, but also how it numbers them. The rest is a doddle.

Thanks I'll keep that offer in mind.

Thanks for your help.

Mike

P.S. Sorry for any duplicate emails, I forgot to use Reply All. =/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Dual booting FreeBSD 4.7 and Windows XP

2002-12-16 Thread Mike McGranahan
 Instead of going through a lot of quirky Windows headaches and fixes, you
can get a second
 computer and divide the OSs on them.  Second hand computers with monitors
go for $150,
 complete.  If you have been in computers for a while, you probably have a
lot of old
 cards, etc. just lying around.  You will save yourself a lot of time.
That is probably
 worth more than the $150, right there.

I do have a couple second hand Pentium computers, on which I've been
learning FreeBSD.  But I'm transitioning to using FreeBSD as my primary
environment on my main computer, and I need to keep Windows XP until I'm
completely comfortable with FreeBSD.  Unfortunately Windows XP would never
run on a Pentium, so I have to dual-boot during this transition.

Mike

P.S. Sorry for any duplicate emails, I forgot to use Reply All. =/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Dual booting FreeBSD 4.7 and Windows XP

2002-12-16 Thread Mike McGranahan
A reply on a subsequent thread on this list ( subject: Boot Manager /
Install ) stated that for the case of Windows XP on the first drive, and
FreeBSD on the second drive, I could use the FreeBSD loader on the
first/Windows XP drive, and leave a standard MBR on the second/FreeBSD
drive.

 the bootmgr got installed in mbr of the drive you installed FreeBSD
 on. if you only have FreeBSD on that disk, you don't need the
 bootmgr there.

 /stand/sysinstall - Configure - Fdisk - ad0 - Q - BootMgr
 - ad1 - Q - Standard

 this should get you the FreeBSD boot loader in the MBR of the first
 (XP) drive, and standard MBR on the second (FBSD) drive.

Will this solve my problem? Will the FreeBSD loader be aware of both Windows
XP and FreeBSD on the other disk?  Or will I have to manually configure it?
(Just looking for someone to confirm that this works, no offense to the
poster, Roman Neuhauser.)

Thanks for your help.

Mike


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Dual booting FreeBSD 4.7 and Windows XP

2002-12-16 Thread Mike McGranahan
 Maybe I missed it earlier, but do you have any firm reasons not to use
grub? It takes a lot of the frustration out of multi-booting (too bad there
is still so much left over).

In my initial search for information, I couldn't determine how to use GRUB
to boot Windows XP.  The GRUB manual didn't specifically address Windows
NT/2K/XP.  I'll read more about GRUB and perhaps give it a shot.

Mike


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



undefined references

2002-11-27 Thread Mike McGranahan
hello,

i am trying to compile c++ code originally compiled on msvc++ on
freebsd-4.6.2-release.  i'm relatively new to freebsd, and this is my first
attempt at coding on this platform.  there are three source files, all of
which compile.  however, when i try to link them together, i get undefined
references and other errors, such as

retrquote.o: In function `main':
retrquote.o(.text+0x27): undefined reference to `endl(ostream )'
retrquote.o(.text+0x34): undefined reference to `cerr'
retrquote.o(.text+0x39): undefined reference to `ostream::operator(char
const *)'
retrquote.o(.text+0x44): undefined reference to `ostream::operator(ostream
(*)(ostream ))'
retrquote.o(.text+0x83): undefined reference to
`XMLPlatformUtils::Initialize(void)'
retrquote.o(.text+0x23a): undefined reference to
`LocalFileInputSource::LocalFileInputSource(unsigned short const *)'
retrquote.o(.text+0x3d1): undefined reference to
`XMLPlatformUtils::Terminate(void)'
retrquote.o(.text+0x413): undefined reference to `XMLException type_info
function'
retrquote.o(.text+0x478): undefined reference to `endl(ostream )'
[cut]
retrquote.o: In function `NameIdPoolDTDEntityDecl::findBucketElem(unsigned
short const *, unsigned int )':
retrquote.o(.gnu.linkonce.t.findBucketElem__t10NameIdPool1Z13DTDEntityDeclPC
UsRUi+0x26): undefined reference to `XMLString::hash(unsigned short const *,
unsigned int)'
retrquote.o(.gnu.linkonce.t.findBucketElem__t10NameIdPool1Z13DTDEntityDeclPC
UsRUi+0x155): undefined reference to `XMLEntityDecl::getKey(void) const'
retrquote.o(.gnu.linkonce.t.findBucketElem__t10NameIdPool1Z13DTDEntityDeclPC
UsRUi+0x164): undefined reference to `XMLString::compareString(unsigned
short const *, unsigned short const *)'
retrquote.o: In function `NameIdPoolDTDEntityDecl::put(DTDEntityDecl *)':
retrquote.o(.gnu.linkonce.t.put__t10NameIdPool1Z13DTDEntityDeclP13DTDEntityD
ecl+0x2c): undefined reference to `XMLEntityDecl::getKey(void) const'
[cut]

perhaps it's not finding the right libraries?  i can post the source if it
will help.  all help is appreciated.

mike


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: undefined references

2002-11-27 Thread Mike McGranahan
nevermind, i resolved the problem.

 when i try to link them together, i get undefined references and other
errors. [cut] perhaps it's not finding the right libraries?

i wasn't supplying gcc the libraries with -l (and -L).

mike


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



mount_smbfs problems

2002-11-04 Thread Mike McGranahan
hello,

i am using samba 2.2.4 on freebsd 4.6.2 release. is it possible to mount smb
shares using mount_smbfs with a non-root account? or do i have to use sudo?
when i try to mount an smb share off my windows xp box onto my freebsd box,
i get the following:

~$ mount_smbfs //neelix/mike /mnt/mike
Warning: no cfg file(s) found.
mount_smbfs: can not setup kernel iconv table (default:tolower): syserr =
Operation not permitted

however, when i run the same command as root, it works as expected.
furthermore, smbclient works under a unpriviledged account.  there were no
messages outputted to my log files.

i've been google'ing for hours, as well as poring through man pages and
documentation, and the samba list archive.  i would very much appreciate
your help.

mike


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message