The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > BSD
Google UNIX.COM


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
OpenBSD sh and ksh differences? hadarot BSD 3 08-08-2005 04:25 PM
openbsd : cannot login fnoyan BSD 4 09-27-2004 05:13 AM
OpenBSD bad Multitasking? Tomtefan UNIX for Advanced & Expert Users 2 07-10-2004 12:44 PM
Maxtor vs. OpenBSD bsdave Filesystems, Disks and Memory 2 02-26-2004 08:08 AM
please help with openbsd 2.9 Blunt_Killer UNIX for Dummies Questions & Answers 11 06-24-2001 07:15 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-23-2005
deckard's Avatar
Registered User
 

Join Date: Jul 2002
Location: Ohio
Posts: 105
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Question Trying to get into OpenBSD

I am an eight year Linux user and after getting into an argument with someone about OpenBSD overiding my theory that OS security is 50% OS and 50% admin skill, I decided to try OpenBSD for myself. I've tried BSDs before and haven't been able to get into them for day to dy use, but I am going to really give OpenBSD a good go. So, this leads me to a few questions. (I already posted some of these in the General forum for newbies of unix.com)

1. How do I get X working? I performed the OpenBSD install via HTTP from tux.org. That seemed to go pretty smoothly once I got to understanding how the install works. I requested that all packages be installed since I wanted "everything". It appears that this includes X. The response I got in the other forum was to run X -configure to generate a new XF86Config file. (Just like I'm used to doing in Fedora Linux if I need to) I did this and then put the file in /etc/X11 and renamed it XF86Config. I then tried typing 'xdm' (as root) to launch the X display manager, but there was a blink and then I was back to the console with no X. So I tried 'startx' (as root) and I got some more useful errors claiming that X was already running. I also checked /var/log/XFree86.0.log and saw the same thing. However a 'ps ax | grep X' showed me no processes. Since OpenBSD is so tightly secured, I imagine I have to change something to allow X to run (at least on :0 because I WAS able to get an X server to run on :1)? Finally, after fixing the PATH variable for my regular user, I could use 'startx' But I prefer 'xdm'. What could be going wrong?

2. When I performed the install originally, I set the system up for DHCP. When I rebooted, I got "device timeout" errors for ne3. After poking around in the man pages I discovered /etc/hostname.ne3. I rewrote it to set up static IP instead so now it looks like this:

inet 192.168.1.40 255.255.255.0 192.168.1.255

When I do: 'sh /etc/netstart ne3' and then 'ifconfig ne3' It appears that the card is up and configured with the right IP info. A little more digging on the net indicates that my problem may be the result of an IRQ conflict??? I run 'vmstat -i' and there is no information regarding ne3. This is all odd to me as the NIC worked fine during the HTTP install. A little more Googling turns up the possibility of a problem with ACPI for the ne2000 based NICs (This is a Netgear FA series NIX). But I can't find any information on how to set the IRQ (or how to probe it since I don't know what the IRQ address is to begin with. I also can't find info on how to disable ACPI support. I don't know if this is a probem since this is an older system (Pentium 233 MMX).

3. Is there a command to list all the installed base packages? I imagine that since the OpenBSD default install is secure, that it must come with everything I need (at least that's what the person I was arguing with implied). 'pkg_info -a' didn't display anything when I ran it. What I am looking for is basic internet services ike Apache, BIND, SMTP, POP3, IMAP, LDAP. The person who started me on this quest implied that to use Apache, all I need to do is "turn it on" and use it.

4. Apache. Does it come precompiled with support for SSL, Webdav, PHP and Perl? I am really trying to stick to the default install in order to retain OpenBSD's security.

5. How do I set a regular user's PATH? I created a regular user account and attempted to startx and it seems that /usr/X116/bin is not in my path. I tried the usual: PATH=$PATH:/usr/X11R6/bin but that didn't work with 'sh'. So, there ust be some other way to do it on-the-fly. There is probably also a file for a more permanent addition to the PATH environment variable for setting it globally? I looked for /etc/profile and /etc/login and found neither. I did find /etc/skel/.login and /etc/skel/.profile, but this seems like an odd place to make a global setting so I don't think that's the right place. I also just this moment discovered 'ksh' which seems a lot nicer than 'sh'. Hmmm... maybe I just answered my own question. ;P I'll have to investigate this more.

Well, that's it for now. I admit it... I'm lost with OpenBSD, but I want to plow through anyway to see if it really can suit my needs with a minimum of admin skill expended. So far it's been a pretty hash mistress.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-24-2005
Registered User
 

Join Date: Aug 2004
Posts: 232
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Your first stop ofcourse is to read the FAQ's on the OpenBSD website.

http://openbsd.org/

Then read the man pages installed on your system, or you can read them online at the website above.

Not sure exactly how to run X on OpenBSD, since I never seen a reason to install X on this OS, As it is best used for Firewalls, routers. Should not be more difficult than on most systems running X.

Apache has been chroot, which increases its security. You will probably need to install mod_dav-1.0.x.tgz to give Apache WebDAV support. Most likely will need to install the SSL support for apache also.

Sendmail should be able to handle your SMTP, just create your sendmail.cf file. You will likely need to decide on a package for POP support.
Reply With Quote
  #3 (permalink)  
Old 02-24-2005
Registered User
 

Join Date: Feb 2005
Location: Netherlands
Posts: 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Yes i know the problem where it complains about X already running try to clear your /tmp directory this should work. Also try to remove all XFreeconfig files you have made previous maybe it still loads one of the old once.
Reply With Quote
  #4 (permalink)  
Old 02-26-2005
deckard's Avatar
Registered User
 

Join Date: Jul 2002
Location: Ohio
Posts: 105
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Thanks. That worked. I did 'rm-rf /tmp/.X* /tmp/ICE*' and then xdm ran.
Reply With Quote
  #5 (permalink)  
Old 02-26-2005
deckard's Avatar
Registered User
 

Join Date: Jul 2002
Location: Ohio
Posts: 105
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Thanks. A read through the FAQs did prove more helpful than I intitially thought with regard to my question about which packages are installed by default. The only resolution to the "device timeout" error on ne3 so far was for me to yank out the ISA sound card (Soundblaster 16 PnP). Not the ideal solution, but it works for now. I still need to find out how to assign IRQs to ISA devices. The only thing I found in the man pages were some references to isapnp and isa, but nothing about actual management commands.
Reply With Quote
  #6 (permalink)  
Old 03-03-2005
Registered User
 

Join Date: Mar 2005
Posts: 12
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
3. pkg_info -a shows all installed packages.

5. The syntax for setting environment variable in sh is:
PATH = /usr/X11R6/bin
export PATH


Migrating from Linux to BSD takes some time to adjust. When I first learned to use FreeBSD, I had to reinstall quite a few times. So you shouldn't give up.
Reply With Quote
  #7 (permalink)  
Old 03-15-2005
ropers's Avatar
Registered User
 

Join Date: Dec 2001
Location: Dublin
Posts: 44
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
http://mailman.theapt.org/listinfo/openbsd-newbies
Reply With Quote
Google UNIX.COM
Reply

Tags
linux, sendmail

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
"inappropriate ioctl for device" 421 service not available, remote server has closed connection ^m ascii eof autosys awk trim bash eval bash exec bash for loop bash subroutine boot: cannot open kernel/sparcv9/unix close_wait curses.h dead.letter find grep grep multiple lines grep or grep recursive grep unique inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment make: fatal error: command failed for target `all-recursive' mget mtime perl array length ping port read awk output into multiple variables replace space by comma , perl script scp recursive segmentation fault(coredump) sftp batch sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix .profile unix com unix for loop unix forum unix forums unix interview questions unix memory usage unix mtime unix simulator unix.com while loop within while loop shell script


All times are GMT -7. The time now is 05:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102