archive-org.com » ORG » N » NETBSD.ORG

Total: 1243

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • How to set up a Xen Dom0 running NetBSD 6.1
    so it can all be done from there STEPS 1 boot a 6 1 install image I m booting the CD ROM image NetBSD 6 1 amd64 iso 2 Perform a normal amd64 install At the end of the install there is a configure additional items as needed menu Choose e Enable installation of binary packages This requires that the network be available 3 reboot the newly installed system and log in as root 4 Install the Xen binary packages using pkgin assuming the network is configured pkgin install xentools41 answer Y when asked to install dependencies pkgin install xenkernel41 answer Y 5 install a dom0 netbsd kernel that Xen can load cd ftp http ftp netbsd org pub NetBSD NetBSD 6 1 amd64 binary kernel netbsd XEN3 DOM0 gz 6 Edit boot cfg to add Xen Dom0 as an option at boot time Add the following line menu Boot Xen load netbsd XEN3 DOM0 gz console pc multiboot usr pkg xen41 kernel xen gz dom0 mem 512M you may also want to increase the default timeout from 5sec to 30sec to make choosing Xen easier 7 Copy the boot scripts from usr pkg share examples rc d cp usr pkg share examples rc d xen etc rc d The default should be to install these files when installing a pkg but it isn t yet 8 edit etc rc conf and add the following lines xencommons YES xend YES 9 reboot and choose Boot Xen from the menu You can make it the default by editing boot cfg 10 demonstrate you re running a dom0 by doing xm list at a root prompt RSS Atom automatically installing rc scripts it s not obviously and always good to install rc scripts automatically otherwise you d eg have xencommons in rc

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_set_up_a_xen_dom0/ (2016-02-01)
    Open archived version from archive


  • how to set up nfs and nis
    can even want slave servers The tool will ask you for a list of YP servers to bind to Since we re only using one server just press RETURN make sure your own server s internal address is in the list Before we run make in var yp as the tool says we must enable the NIS deamons rpcbind ypserv and ypbind in that order After that we can run make in var yp To test if your setup is working try yptest It should spew out the passwd file among others so don t panic To get stuff working on your client you need to enable the yppasswdd rpcbind and ypbind daemons as well In order to do that edit the etc rc conf file and add there following NIS server ypserv YES ypbind YES yppasswdd YES rpcbind YES Then just run etc rc d rpcbind start etc rc d ypserv start etc rc d ypbind start etc rc d yppasswdd start rpc yppasswdd 8 must be running on the NIS master server to allow users to change information in the password file ypserv 8 provides information from NIS maps to the NIS clients on the network ypbind 8 finds the server for a particular NIS domain and stores information about it in a binding file After that you can use ypinit root mars ypinit c Then add your NIS server s address to the list To test if everything is working use yptest on the client as well Note that ypbind will HANG if it can t find the server If everything is working you are ready to go Just edit etc nsswitch conf and put in some nis keywords For example passwd files nis would first look up usernames passwords uids in etc passwd and if it can t find it it would look it up using NIS Right after changing this file you should be able to log in on your system using a username which is only in etc passwd on the server That s all there is to it The deamons What are all those daemons for Well here s a quick rundown Portmap rpcbind is the program which maps RPC Remote Procedure Call program numbers to port numbers hence portmapper Any program which wishes to know on what port a certain RPC program is listening can ask this from the portmapper daemon rpcbind Each RPC service has its own number which can be looked up in etc rpc These numbers are how rpcbind can match the running RPC services to the ports In short If rpcbind is not running not a single RPC program will work Ypserv is an authentication daemon for the RPC services I believe Ypbind is the daemon which can find the YP server for the specified domain NFS Setting up NFS is a piece of cake Just enter all directories you wish to export in etc exports and start the NFS daemon In our example we would have home

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_set_up_nfs_and_nis/ (2016-02-01)
    Open archived version from archive

  • how to set up per-user timezones
    Ports History Emulators Packages Browse packages Release engineering Wiki Home Edit Comment Source History New RecentChanges NetBSD Wiki tutorials how to set up per user timezones Besides setting up the global system timezone by symlinking etc localtime to a file in usr share zoneinfo you can also set a timezone that applies only for one user This is done by setting the environment variable TZ You can set it in your startup file like this echo export TZ Europe Amsterdam profile From this shell all subsequent date calls will use the usr share zoneinfo Europe Amsterdam file for translating the system s UTC time to your local time To run a single process with a specific timezone try something like this env TZ Canada Eastern xclock d strftime Toronto a d b H M This will start an environment with the TZ variable set to Canada Eastern and run a digital d xclock with the time formatted as instructed by strfime including putting a note about which timezone it belongs to Toronto This process will detach from the terminal because of the but leave the environment you ran it from with the same timezone it began with With a setup

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_set_up_per-user_timezones/ (2016-02-01)
    Open archived version from archive

  • how to setup a cvs server
    repositories Let s take usr cvsrepositories mkdir usr cvsrepositories Now you can create directories for different projects cd usr cvsrepositories mkdir mycompany mkdir myprivatestuff This projects must have chmod 770 to separate them from each other chmod 770 mycompany chmod 770 myprivatestuff Creating user groups You should create a group for projects where people are working together group add mycompanyname You should now assign this group to the project directory they belong cd usr cvsrepositories chgrp mycompanyname mycompany cvs init Before you can either checkout or import anything you have to init your projects root directory To keep the path short for the CVSROOT environment variable I recommend using symlinks to the repository from the root cd ln s usr cvsrepositories mycompany mycompany Now create the cvs repository using cvs d mycompany init Creating users Now create users that are allowed to check out from your repository Keep company workers in the group you have created before useradd G mycompanyname m john And set a password for the user john passwd john It s your decision if you want to grant the users shell access or not Setting environment variables Please set the environment variables CVSROOT and CVS RSH Bash or ksh users please use export export CVSROOT username yourserver com mycompany export CVS RSH ssh csh users set it like this setenv CVSROOT username yourserver com mycompany setenv CVS RSH ssh As you can see we use ssh as the transport protocol This is recommended Keep your transfers encrypted Initial check in You should now proceed with the the initial check in of your code work You can do this from another server aswell Don t forget to set the environment variables there too Now please change into the directory you wish to import initially cd myproject and import

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_setup_a_cvs_server/ (2016-02-01)
    Open archived version from archive

  • how to setup a printer with lpd
    piece of software with quite bad security record Some prefer also to always use tools that come with an operating system instead of relying on external packages Configuring and using a printer with lpd 8 can be easier than with CUPS once you wrap your head around it Example HP DeskJet The following steps were needed for a low cost HP DeskJet printer First two packages were installed print hpijs and print foomatic filters cd usr pkgsrc print hpijs make install package clean cd foomatic filters make install package clean The former is essential for high quality output with HP printers and the latter is convenient The print hpijs package contains various ppd files compressed with bzip 1 You need to pick one suitable for your printer and unpack it to a desired location An example mkdir etc print cd etc print cp usr pkg share ppd HP DeskJet 5550 hpijs ppd gz gunzip gz The next step is to configure the printer using the etc printcap file An example that uses parallel port This requires the following packages print hpijs and print foomatic filters lp hp HP Deskjet 5550 lp dev lpt0 af etc print HP DeskJet 5550 hpijs ppd if usr pkg bin foomatic rip sd var spool output lpd lf var log lpd errs rg print rs true sh This will use the mentioned filter The curiously named foomatic Perl script takes PostScript as standard input and generates the printer s page description language as standard output This is pretty much all that is needed For additional parameters in the configuration file such as limiting the access to a group named print please refer to the manual page printcap 5 The final step is to enable the lpd 8 daemon The usual conventions with rc conf 5

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_setup_a_printer_with_lpd/ (2016-02-01)
    Open archived version from archive

  • how to setup a webserver
    etc httpd httpd mpm conf apache 2 4 3 copying usr pkg share examples httpd extra httpd multilang errordoc conf to usr pkg etc httpd httpd multilang errordoc conf apache 2 4 3 copying usr pkg share examples httpd extra httpd ssl conf to usr pkg etc httpd httpd ssl conf apache 2 4 3 copying usr pkg share examples httpd extra httpd userdir conf to usr pkg etc httpd httpd userdir conf apache 2 4 3 copying usr pkg share examples httpd extra httpd vhosts conf to usr pkg etc httpd httpd vhosts conf apache 2 4 3 copying usr pkg share examples httpd httpd conf to usr pkg etc httpd httpd conf apache 2 4 3 copying usr pkg share examples httpd magic to usr pkg etc httpd magic apache 2 4 3 copying usr pkg share examples httpd mime types to usr pkg etc httpd mime types The following files should be created for apache 2 4 3 etc rc d apache m 0755 usr pkg share examples rc d apache NetBSD how to setup a webserver mdwn v 1 2 2013 03 14 23 44 47 jdf Exp After apache 2 4 3 enable mpms shared event prefork worker is passed to configure script then three multi process model is built and you can select the model in configuraton file The mod cgi so module conflicts with non prefork multi process model and mod cgi so module is not built anymore You can use mod cgid so module instead Register the daemon The main tool to control the service of Apache is apachectl To make it work like normal services supporting commands such as etc rc d apache stop you need to copy the script provided by Apache to etc rc d apache cp usr pkg share examples rc d apache etc rc d To make Apache run when system boots you may set the rc variable apache to yes This can be done by creating etc rc conf d apache and insert the following text to the file apache yes or writing this line into your rc conf 5 directly You can also run this to start Apache immediately etc rc d apache start Starting apache or apachectl start To see whether the server is started successfully you can visit http 127 0 0 1 The dafault page is html body h1 It works h1 body html Another way to check the daemon status etc rc d apache status apache is running as pid 1574 Note Since version 2 0 Apache doesn t support inetd operation mode anymore Running Apache with inetd is not supported Configuration Apache has lots of features so it uses a configuration file usr pkg etc httpd httpd conf The general structure of this document is KEY VALUES DIRECTORY VALUES KEY VALUES DIRECTORY Here are the frequently used options DocumentRoot WEB ROOT The directory out of which you will serve your documents By default all requests are taken from this directory

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_setup_a_webserver/ (2016-02-01)
    Open archived version from archive

  • how to setup cups in netbsd
    computers process them and send them to the appropriate printer More information regarding the architecture of CUPS can be found here To check whether your printer works with CUPS and to what extent you may visit the OpenPrinting database Install CUPS Assuming your pkgsrc tree lies at usr pkgsrc type cd usr pkgsrc print cups make install Modify rc conf Next copy cupsd startup script at etc rc d cp usr pkg share examples rc d cupsd etc rc d Then add the following line to your etc rc conf file cupsd YES And start the CUPS daemon with etc rc d cupsd start Starting cupsd Install Foomatic PPD collection The Foomatic PPD collection includes suitable PPDs for printers listed in the Foomatic printer driver database Together with the foomatic filters package this collection of PPDs allows many non PostScript printers to function as if they were PostScript printers cd usr pkgsrc print foomatic ppds make install The following package adds Foomatic PPDs to the CUPS PPD database cd usr pkgsrc print foomatic ppds cups make install Setup CUPS Open a web browser and type in the address location bar http localhost 631 You will enter a web based interface where you can manage your printing system add printers etc To print using cups from the command line without further modifications you have to use usr pkg bin lpr Using simply lpr will not print using cups but the default NetBSD printing system The same apply to the spool queue examination command lpq Network configuration Server side Client side Documentation OpenPrinting CUPS Quick Start BSDnexus forums CUPS Howto Screenshots Web interface Notes Permissions Just for the record I m not sure where this fits in To make it print I had to chown lp dev ulpt0 usb and install print

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_setup_cups_in_netbsd/ (2016-02-01)
    Open archived version from archive

  • how to setup virtio scsi with qemu
    Wiki Home Edit Comment Source History New RecentChanges NetBSD Wiki tutorials how to setup virtio scsi with qemu You need NetBSD current post 2015 10 30 to use VirtIO SCSI Kernel configuration Make sure you have the following lines in your kernel configuration virtio at pci dev function Virtio PCI device vioscsi at virtio Virtio SCSI device QEmu setup Create 2 files one for the installation and one for the test SCSI drive dd if dev zero of install img seek 10m count 1 dd if dev zero of test img seek 10m count 1 Start QEmu pointing it to your installation serial console cdrom qemu system x86 64 m 1024 nographic drive file install img media disk snapshot off format raw drive file boot com iso media cdrom Install as usual choosing serial boot blocks Once you are done installing you can boot QEmu from your install img you just populated in step 2 and the test img you created on step 1 as your virtio sd0 disk as follows qemu system x86 64 m 1024 k en us nographic drive file install img media disk snapshot off format raw device virtio scsi pci id scsi device scsi hd

    Original URL path: http://wiki.netbsd.org/tutorials/how_to_setup_virtio_scsi_with_qemu/ (2016-02-01)
    Open archived version from archive