RE: How to query the computer's ip address?

2004-02-08 Thread yo _
Hi,

Silly question, maybe, but is there a simple command to query the 
computer's
ip address? Something similar to 'hostname' for finding the computer's 
hostname.
I need the four dot-separated ip numbers.

I can analyze the output of 'ifconfig', but isn't there an easier way.
For the sake of looking for a "command" that might do this, i whipped up 
this long one-liner:

ifconfig | perl -nle 'print $1 if(/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/)'

note that this will print the first ip address it finds of each line 
seperated by a newline, so be prepared to handle more than one.
-rian

_
Find great local high-speed Internet access value at the MSN High-Speed 
Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/

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


Ctrl+Alt+Delete

2004-01-29 Thread yo _
Hi, this is a rather auxilary question but my curiosity overpowered my self 
control. This is also more of a i386 specific question, but then again i'm 
not completely sure if FreeBSD handles it the same way on different 
machines.

Does anyone on the list know what Ctrl+Alt+Delete does on a running FreeBSD 
machine?

The funniest part of this question is that FreeBSD has never frozen on me, 
so that I could actually find out. I run it on my server systems, and i 
don't want to test it and then run the risk of ruining some drives.
-rian

_
Let the new MSN Premium Internet Software make the most of your high-speed 
experience. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1

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


RE: Why BSD?

2004-01-24 Thread yo _
This is not a troll.

I've installed FreeBSD 5.2 on a spare SCSI drive and am compiling kernels,
updating ports, etc,etc. Thus far, other than some minor hassles, it's
equivilent to my Debian sid.
I have to ask: Why FreeBSD rather than Linux?

Honest question.

Thanks,

Jeff
why not?
-rian
_
Rethink your business approach for the new year with the helpful tips here. 
http://special.msn.com/bcentral/prep04.armx

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


Re: Another Newbie Question: C or C++

2003-11-12 Thread yo _
I would recommend not trying to learn C or C++ by yourself from a book.
The fastest (and best way) to learn the right stuff is to take coursework 
from a university or community college.
Not that I like disagreeing for no good reason, but I wholeheartedly 
disagree with that statement.

If the courses are any good, you'll get feedback, and you'll be paced
and challenged with projects designed to help you learn.
Going it alone in an unguided environment will only familiarize you
the lesser aspects of a language, if you last that long. The difficult
and most important aspects of the language (like pointers, virtual 
functions, references) will become almost insurmountable trial-and-error 
obstacles if you try to teach yourself.
If you want to get a lower paying and boring job programming in C/C++ for 
whatever reason and have a piece of paper that says you can have that job, I 
recommend wasting 4-6 months taking a course in your spare time to learn 
C/C++. If you want to be top of your game and learn C/C++ without wasting 
time on topics that take you a minute to understand, get a good book, 
practice the topics you have learned at your own pace, get numorous code 
examples for things you may want to do (sockets, GUI, OpenGL, ncurses, 
threading, kernel interfacing) from the glorious and infinite internet and 
emulate good programming style (using const qualifiers in C++, using 
#defines in C, etc.). Also be prepared to teach yourself because you may not 
always be prepared for a job you may find yourself with; learn how to easily 
learn and use external libraries.

The best programmers will teach themselves. A statement that may be on the 
borderline of opinion to fact by constant example. After all the first 
programmer, in fact, taught herself.
-Rian Hunter

_
MSN Messenger with backgrounds, emoticons and more. 
http://www.msnmessenger-download.com/tracking/cdp_customize

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


Re: Another Newbie Question: C or C++

2003-11-10 Thread yo _
I need to buy a book on C or C++ to help me in FreeBSD. Which would be 
better to buy?
If you just want to start programming in FreeBSD, Learn C as well as you 
can. The route I took was learning basic programming skills then reading 
"The C Programming Language" by K&R, it's an excellent book if you are 
already very familiar with the computer and have some basic programming 
skills (make sure you know your c development enviroment and how to use 
gcc). The book is so great because not only does it teach C syntax, the 
examples open your mind to writing simple and efficient code in a C style, 
and it even has a small UNIX programming tutorial toward the end (on how to 
implement some of the standard library functions in a UNIX system).

That book and a good familiarity with the man pages is really all you need 
to get started coding on FreeBSD. If you are still a little lost and really 
want to go on the quick route to good BSD programming, read "UNIX Network 
Programming" by W. Richard Stevens. The original edition introduces you to 
good fundamental knowledge of the UNIX system and archictecture (process 
model, system calls, and IPC) then it goes right to socket programming which 
is a must to know especially in this day and age. The later editions 
seperate the actual socket programming from the unix stuff but go intensely 
in depth. That's why i'm fonder of the first edition, concise and smart.

I first thought a book on C would be best, because the OS is written in C. 
But, now I'm not sure because I read that gcc can compile C++ too (so, I'm 
assuming C++ must get used too).
Now that you've had good practice with C and UNIX programming, learning 
libraries (GTK, QT, pthreads, GD to name a few) is simply a matter of 
reference and learning any other language else is simply a matter of syntax 
and style, and everything will come very easy. If you haven't learned C++ by 
that point just figure out what Object Oriented programming is (it'll 
beautify your life), get a reference book, look at some coding examples, and 
no sweat. Java? Perl? Python? Javascript? Visual Basic (haha)? They'll all 
just be minor changes in syntax and style when in comes to C/C++ (except for 
python, hah).

Hope that helps and good luck!
-Rian Hunter
_
MSN Messenger with backgrounds, emoticons and more. 
http://www.msnmessenger-download.com/tracking/cdp_customize

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


Custom FreeBSD boot floppy??

2003-10-25 Thread yo _
Hi Everyone!

The MBR on my hard disk is corrupted (or sometimes is), after re-installing 
FreeBSD it was not overwritten and fixed even though the complete system 
was. So when i need to boot i use the bootcds i used to install FreeBSD and 
at boot0 i press any key (during rapid / - \ - spinnings) and boot my hard 
drive using the command "0:ad(a,0)/boot/loader". When there is a power 
failure, it requires me to go back to the system and repeat the process.

How could i make a custom boot floppy (or even boot cd) to load 
"0:ad(a,0)/boot/loader" automatically, since the MBR never gets repaired 
(however many times i've tried). If this information is already documented 
somewhere, a point in the right direction will be more than sufficient, even 
if the information is about MBR repair and installation of the FreeBSD boot 
loader.

I am using 4.8-RELEASE, thanks to all in advance!
-Rian Hunter
_
Send instant messages to anyone on your contact list with  MSN Messenger 
6.0.  Try it now FREE!  http://msnmessenger-download.com

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


Console Keyboard Difficulty

2003-10-10 Thread yo _
Hello!

I am using FreeBSD 4.8. I recently installed emacs21 from the ports system 
but i'm afraid there may be a keybinding conflict. In my regular console and 
Xterm console Backspace is mapped at ctrl-h apparently. I think emacs knows 
this as backspace deletes the one character behind the cursur position and 
so does ctrl-h in emacs. The problem is that ctrl-h is supposed to activate 
the help system in emacs.

Is there an (elegant) solution to this problem? I know that for a while my 
keys weren't always working so well, but they were minor problems so i 
ignored them. For example in Xterm pressing delete inserts and '~' character 
and a console beep, in the regular console pressing delete inserts a 
backspace. Major TIA.
-rian

_
Instant message with integrated webcam using MSN Messenger 6.0. Try it now 
FREE!  http://msnmessenger-download.com

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


Re: problem with perl version

2003-10-05 Thread yo _
After installing the newest perl port, at the command line type:

use.perl port

and FreeBSD will now default to using the ports and consequently latest 
version of perl. Conversely, to use the built-in system version of perl 
type:

use.perl system

Hope that helps out!
-Rian Hunter
From: Mike Woods <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: problem with perl version
Date: Sun, 5 Oct 2003 14:16:45 +0100
On Sun, 5 Oct 2003 06:50:51 -0600 (MDT)
RJ45 <[EMAIL PROTECTED]> wrote:
> I have a problem with perl versions
> I need to use perl 5.8.0 but everytime I install from ports a 
application
> which depends from perl 5.6 something is overwritten and perl 5.8.0 is 
not
> avalaible and I have to "make reinstall" perl 5.8.0 every time.
> Is there a way to set a system variable for perl5.8.0 as default?

If your doing what i think your doing you'll kick yourself :D

Now, assuming perl5.8.0 installs a link to /usr/bin/perl 5.6.1 would 
overwrite that with's verion of perl BUT perl5.8.0 should still be there at 
/usr/local/bin/perl5.8.0 :D

Now, the fun comes with modules :D

Mike Woods
IT Technician
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
_
Frustrated with dial-up? Get high-speed for as low as $29.95/month 
(depending on the local service providers in your area).  
https://broadband.msn.com

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


Re: D-Link DFE-530TX NIC not recognized...

2003-09-14 Thread yo _
The DFE-530TX and DFE-530TX+ use different ethernet chipsets. The D-Link 
website has information about the older model and what chipset it uses, it's 
not RealTek 8139, i forget what it actually is though. I remember being 
concerned with this when i got my 530TX+ though. Good Luck!
-rian


From: Don Croyle <[EMAIL PROTECTED]>
To: "ngin " <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: D-Link DFE-530TX NIC not recognized...
Date: Sun, 14 Sep 2003 16:07:45 -0500
"ngin " <[EMAIL PROTECTED]> writes:

> I have a D-Link DFE-530TX Ethernet NIC installed in a FreeBSD 4.6.2 box. 
Looking at:
>
> freebsd.org/releases/4.6.2R/hardware-i386.html#ETHERNET
>
> I see my card is supported:
>
> RealTek 8129/8139 Fast Ethernet NICs ( rl(4) driver)
> D-Link DFE-530TX+, DFE-538TX
>
> But when kernel boots I see no sign of any ethernet card... I think it 
should be displayed at these lines:
>
> pci1:(vendor=0x1106,dev=0x3106)at 9.0 irq 11
> pci1:(vendor=0x127a,dev=0x1005)at 13.0 irq 11
>
> I just don't know how to have it recognize my card. Any suggestions as 
to what should be done?

Is the rl driver in your kernel?  If it isn't try loading it from the
command line with 'kldload /modules/if_rl.ko'.
If that works, you need to either add 'device rl' to your kernel
configuration and build a new kernel or add 'rl_load="YES"' to
/boot/loader.conf.
--
I've always wanted to be a dilettante, but I've never quite been ready
to make the commitment.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
_
Compare Cable, DSL or Satellite plans: As low as $29.95.  
https://broadband.msn.com

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


Re: TCP/IP: Operation Timed Out

2003-09-13 Thread yo _
Thank you for your help but after looking in to the problem, i realized it 
is not the ident protocol.

This could be a problem due to timeouts with the ident protocol, also
known as auth, which uses port 113.  Most mailservers will try and do
an ident check on you when you connect to them.  If your firewall just
drops the incoming connection, then the server at the other end will
just have to wait out the timeout period.  While ident is meant to be
a security measure, it's practically worthless as it's too easy to lie
to, and if you don't lie, then it's a leak of what should be private
information.
I tried connecting the "un-connectable" servers via Windows and FreeBSD 
using telnet at home and it works, and i am not running any sort of ident 
server. Connecting to the servers where the mail server lives gives me the 
"operation timed out" message under my MTA (not sendmail for note) as well 
as Telnet, even after flushing all firewall rules. So i suspect my problem 
lies elsewhere. Thank you for your concern though.
-Rian Hunter

> I manage a general mail server for my organization and recently i have 
been
> receiving complaints that not all their messages are being sent. A quick
> check to the maillog and i noticed that many of the mail servers of the
> receivers are getting "Operation timed out" responses. I manually 
checked
> connecting to these servers using telnet to see if it was just my mta, 
but
> to my surprise telnet was unable to connect as well!
>
> At home i tried connecting to these servers via telnet on port 25 as 
well,
> and it worked with ease. Then immediatly I ssh'ed to our remote mail 
server
> and telnet'ed to these "operation timed out" mail servers on port 25 and
> still same thing. Now this shocked me, how could i be easily connecting 
to
> the mail servers from home, and from the location of our mail server, 
not
> be able to. It connects to other mail servers there are just a few that 
do
> not work including:
>
> smtp1.dadeschools.net
> mail1.dadeschools.net
> oitmail.dade.k12.fl.us
> sbabmail.dade.k12.fl.us
> 7841exch2.tecmiami.com
>
> It's not a DNS problem as the dns resolves the same ip address from home
> and where the server resides. I'm not sure if it is solely our mail 
server
> or it is all the computers on our LAN that are unable to connect, i 
willl
> have to examine this when i get there sometime this week. The mail 
server
> is connected directly to the internet and is assigned a public ip 
address
> (it is not behind a router filewall or is not forwarded packets through
> NAT). The host address of our mail server is mail.e-equality.org.
>
> Does anyone know the nature of this problem or how to solve it? Could it 
be
> faulty design of the network route from our mail server to theirs? Or 
maybe
> our TTL settings on the packets are too small.
_
Need more e-mail storage? Get 10MB with Hotmail Extra Storage.   
http://join.msn.com/?PAGE=features/es

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


TCP/IP: Operation Timed Out

2003-09-13 Thread yo _
Hello All!

I manage a general mail server for my organization and recently i have been 
receiving complaints that not all their messages are being sent. A quick 
check to the maillog and i noticed that many of the mail servers of the 
receivers are getting "Operation timed out" responses. I manually checked 
connecting to these servers using telnet to see if it was just my mta, but 
to my surprise telnet was unable to connect as well!

At home i tried connecting to these servers via telnet on port 25 as well, 
and it worked with ease. Then immediatly I ssh'ed to our remote mail server 
and telnet'ed to these "operation timed out" mail servers on port 25 and 
still same thing. Now this shocked me, how could i be easily connecting to 
the mail servers from home, and from the location of our mail server, not be 
able to. It connects to other mail servers there are just a few that do not 
work including:

smtp1.dadeschools.net
mail1.dadeschools.net
oitmail.dade.k12.fl.us
sbabmail.dade.k12.fl.us
7841exch2.tecmiami.com
It's not a DNS problem as the dns resolves the same ip address from home and 
where the server resides. I'm not sure if it is solely our mail server or it 
is all the computers on our LAN that are unable to connect, i willl have to 
examine this when i get there sometime this week. The mail server is 
connected directly to the internet and is assigned a public ip address (it 
is not behind a router filewall or is not forwarded packets through NAT). 
The host address of our mail server is mail.e-equality.org.

Does anyone know the nature of this problem or how to solve it? Could it be 
faulty design of the network route from our mail server to theirs? Or maybe 
our TTL settings on the packets are too small.
-Rian Hunter

_
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es

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


MBR Corruption and Restore

2003-08-30 Thread yo _
Hello All!

Unfortunatly, i was having a minor hard disk problem on my first FreeBSD 
installation, and (so used to Debian) i thought i could fsck after "shutdown 
now". Apparently this was not the case, as my file systems were still 
mounted. After a quick re-install, with backups, it appears my MBR is 
corrupted as it will not start the /boot/loader and my BIOS recognizes my 
disk as a "non system disk" (FreeBSD has been re-installed, to get into the 
system i use the boot2 from the bootable CD).

Is there anyway i can manually install the FreeBSD boot loader while in the 
system? I figured it is dd'ing the /boot files to the beginning of my hard 
disk, but i don't know what location nor how safe this is. Thank to all of 
you in advance!
-Rian Hunter

_
Get MSN 8 and enjoy automatic e-mail virus protection.   
http://join.msn.com/?page=features/virus

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


POP3 user configuration

2003-08-19 Thread yo _
Hello all!

I'm setting up a POP3/SMTP server (going to use qpopper/sendmail) for my 
community computer access center and i have little experience setting up a 
pop3 server (i have more experience setting up a private smtp relay server).

My primary question is how can i set up user accounts strictly for POP3 
access without shell access, or even without the home directory set up. I 
was wondering if maybe (luckily and convieniently) adduser had an option for 
easy pop3 user set-up, but i didn't find any, then i thought that maybe i'd 
make a shell script to do all the restrictions automatically.

I was also wondering if anyone knew how to do that check first/send after 
bit where users must first check their pop3 mailboxes before using the SMTP 
server to send mail out (i want to prevent just anyone from the internet 
from using the SMTP server). Any more comments/suggestions would also be 
greatly appreciated. Thank all of you in advance!

-Rian Hunter

_
Get MSN 8 and enjoy automatic e-mail virus protection.  
http://join.msn.com/?page=features/virus

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


Complete hard-drive crash!

2003-07-13 Thread yo _
Hello!

Hi everyone, i was under the impression that FreeBSD had great hard drive 
reliability even when using Soft Updates. I'm sure it does as nothing like 
this has ever happened to me before. I'm using FreeBSD 4.8 Release with a 
custom kernel (nothing questionable taken out) with the packaged version of 
KDE 3.1.0 that comes on the dist CD. I've been using it very stably for 
about a month  and a half now (less than zero problems) and today i opened 
Konqueror and my computer HARD FROZE, super hard. Since most of my files are 
backed up daily i wasn't worried, and usually with freezes not many files 
are lost, if any.
Well when i rebooted after the freeze my hard drive lost it's MBR i guess 
(or maybe it got corrupted) because my bios gave me "NON SYSTEM DISK OR BOOT 
ERROR." I rebooted once more after that, and the FreeBSD bootloader came up 
(slower than usualy) and slightly complained about not findind loader.conf. 
Then it attempted on loading the kernel, until the kernel finished loading 
(stopped printing devices) and gave me a prompt and asked me what root 
device i shoudl load ( it was in the form of :) i attempted 
ufs:/dev/ad0s1a but it named a bunch of errors and i was forced to reboot 
into the same process again and again. So i fsck'ed alll my partitions that 
were mounted when it first crashed (using FixIt) and i was able to get all 
my files back. The problem is the files were scattered throughout each 
partition in lost+found and some folders were just gone, so the filesystem, 
i think, is completely ruined.
I was using Soft Updates for all my partitions besides the root partition 
(even though the root was also missing a lot of files too). I wanted to know 
what could have caused my hard drive to crash so hard and also how i could 
avoid this type of behavior in the future because as it looks i might have 
to do a complete reinstall. Also, How can i reinstall the FreeBSD standard 
MBR? (the one that is minimal and only loads FreeBSD). Thanks a ton!
-rian

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


CUPSD problems.

2003-06-20 Thread yo _
Hi,
	I don't know if many other people have had this problem, but for some 
reason my cupsd refuses to add a printer. When i do it through lpadmin, it 
says "failed: server-error-internal-error". When i try to add a printer 
throught he web interface after i input the location and name it responds 
with a 413 http error and it says "Request Entity Too Large: The request is 
too large for this server to process." The funny thing is that my printers 
do get added when i look at htem through the web interface, but if i try to 
change their options or anything i get the same ol': 
"server-error-internal-error". I don't know why this is, i installed cups 
automatically as a package dependency for KDE, and KDE works fine as well as 
everything else. Thanks!
-rian

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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