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".
  • user management
    the system and no need to create new one Omit first steps from above Do modify user information by adding your no root user into the wheel group and su anytime per your desire usermod G wheel noroot User The NetBSD maintains information in regard of each user who logs into access system runs processes on so forth This include and not limited to user name password group base dir skel dir shell class homeperm inactive expire The superuser called root has no limitations on its privileges To limit user priveleges consider to set limits by coredumpsize cputime filesize quota maxproc memory openfiles etc user is frontend to the useradd usermod userinfo and userdel commands it helps to manage users in the system Use id to see user identity id Use w to see who present and what they are doing w Use last to see last logins last useradd To add user do user add options user To add a user and create a new home directory useradd m myuser Look into the NetBSD Guide Chapter 5 6 userinfo To see user information do userinfo myuser usermod To modify existing user login do user mod options user usermod C yes username set Close lock on user account usermod C no username unlock user account usermod G wheel username add user to group wheel usermod s sbin nologin username remove login shell usermod s bin sh username set login shell usermod F username force user to change password userdel To remove a user from the system do userdel myuser passwd To see a list of all users in the system do cat etc passwd To edit etc passwd file do vipw chpass Use chpass chfn chsh to add or change user database information To change the shell of myuser for

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


  • using ccache with build sh
    the host system For objective 1 my issue turned out to be that there are some Makefiles in the NetBSD sources that prefix some commands with usr bin env i which clears the environment In my case my ccache command invocation requires CCACHE DIR CCACHE PATH PATH to be set appropriately which usr bin env i breaks Fair is fair so my workaround was simply to use the env command myself in HOST CC HOST CXX export HOST CC env CCACHE DIR whereever CCACHE PATH whereever PATH whereever usr local libexec ccache cc Note you might have quoting issues if CCACHE DIR CCACHE PATH PATH contain space characters Such issues are beyond the scope of this document Objective 2 is a bit hairer My first approach was simply to stick CC ccache stuff CC CXX ccache stuff CXX in a MAKECONF file and point build sh at that This fails because near as I can tell in XXX src share mk bsd own mk around line 199 w NetBSD 4 0 sources there are lines of the form if USETOOLS GCC Uyes yes CC TOOLDIR bin MACHINE GNU PLATFORM gcc CPP TOOLDIR bin MACHINE GNU PLATFORM cpp CXX TOOLDIR bin MACHINE GNU PLATFORM c Even though MAKECONF is included at the top of bsd own mk these lines will override whatever MAKECONF sets CC and friends to Although I tried to avoid patching the sources at all I build from a script trying to automate things I caved and added a line at line 208 in XXX src share mk bsd own mk endif EXTERNAL TOOLCHAIN below line was added include MAKECONF to force bsd own mk to use my CC CXX values from my MAKECONF At the least you will probably need to ensure that CCACHE PATH tool dir

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

  • using git to track netbsd cvs source repository
    Done References Introduction The purpose of this document is to guide you on how to track NetBSD CVS source repository with git We are going to make a bulk import and by this is meant that not all the CVS checkins with comments are going to be imported If we wanted so we would use the git cvsimport 1 tool Download current source To begin with we must have a current CVS snapshot of the NetBSD source tree I assume you already have one in usr src git If not please consult this article in the official NetBSD documentation page Symbiosis Since both CVS and Git are going to live together inside the same directory it is essential to hide each one from the other That is because we don t want CVS to track git files or vice versa For this purpose we need two files inside the root directory of our source tree cvsignore Create a file named cvsignore inside usr src git and put the following lines in it git gitignore gitignore Create a file named gitignore inside usr src git and put the following lines in it CVS cvsignore Initial import of NetBSD CVS source repository cd usr src git git init Initialized empty Git repository in usr src git git git add git commit m Initial import of the NetBSD CVS source repository Keeping the git repository uptodate with CVS From time to time we update the main git repository with the latest changes from CVS cvs update dPA git add git commit a m Update to latest CVS snapshot Done You can examine the log cd usr src git git log commit 9fe7a0469a8ef58fd5b484c0931808a2d23f559e Author Charlie root netbsd none Date Mon Nov 24 01 17 31 2008 0200 Update to latest CVS snapshot commit 78189d3fa331073021eaea88d1f51f3487d756b7

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

  • using pulseaudio
    emulators wine Xine XMMS Install All Utilities Install meta pkgs pulseaudio tools Setup Pre requisites pulseaudio needs hald to run So if it s not running already cp usr pkg share examples rc d hal etc rc d echo hal YES etc rc conf Configure it pulseaudio needs the oss audio sink to be configured i e it needs to be told about the sound card it should use Thus edit usr pkg etc pulse default pa uncomment the load module module oss line and change it to point to the correct audio device usually audio0 load module module oss device dev audio0 sink name output source name input Third Party Applications ALSA Applications Ignore on NetBSD Amarok audio amarok Install audio xine pulse select Xine engine and pulseaudio backend Audacious audio audacious Not tested Audacity audio audacity padsp method works pasuspender crashes the daemon on resume will be fixed in 0 9 15 ESOUND Applications Create symlink manually mkdir p tmp esd ln s tmp esd UID tmp esd sound Flash Player multimedia ns flash Install multimedia libflashsupport pulse on i386 and amd64 Flash 7 on sparc not tested GNOME Works via GStreamer GStreamer Applications Install audio gst plugins0 10 pulse iaxComm Not in pkgsrc KDE pulseaudio crashes in protocol esound c do work Probably the same bug as pa 463 libao Applications Install audio libao pulse MPD audio musicpd Compile musicpd with the default off pulseaudio option enabled Configure a matching audio output section in mpd conf audio output type pulse name Pulseaudio MPlayer multimedia mplayer pulseaudio support added in 1 0rc10nb12 and works mplayer ao pulse myvideo avi or add the line ao pulse to mplayer config If you have audio video sync problems you can modify the sync with the plus and minus keys MPlayer plug

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

  • using the nand emulator and chfs
    First build a kernel with pseudo device nandemulator flash at flashbus nand at nandbus I created a new kernel config called NAND on amd64 include arch amd64 conf GENERIC pseudo device nandemulator flash at flashbus nand at nandbus Note that at the present time all the parameters of the NAND emulator are hardcoded so to change anything you ll need to edit sys dev nand nandemulator c and substitute the values you want Build and install the kernel and boot from it You ll notice the following items appear nandemulator0 NAND emulator nand0 at nandemulator0 ONFI NAND Flash nand0 vendor NETBSD model NANDEMULATOR nand0 page size 2048 bytes spare size 64 bytes block size 131072 bytes nand0 LUN size 256 blocks LUNs 1 total storage size 32 MB flash0 at nand0 NAND flash partition size 32 MB offset 0 flash0 erase size 128 KB page size 2048 bytes write size 2048 bytes You can then mount a chfs file system on the emulated flash device The file system is created on the first mount mount chfs dev flash0 mnt ls l mnt cp netbsd mnt ls l mnt total 29216 rwxr xr x 1 root wheel 14958233 Oct 13 16

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

  • x11
    The Guide Manual pages Wiki Support Problem report guide Report a bug Query bug database Security Community Blogs Mailing lists List archives Developers Browse source Cross reference Release engineering Projects list Ports History Emulators Packages Browse packages Release engineering Wiki Home Edit Comment Source History New RecentChanges NetBSD Wiki tutorials x11 DRI AIGLX Composite and Compiz Add a comment Links how to use no bitmapped fonts tutorials Last edited mid

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

  • compiz
    using startx instead should create a HOME xserverrc with the following content exec usr pkg bin X vt05 audit 0 Update your PATH variable so usr pkg bin comes before usr X11R 6 7 bin i e PATH HOME bin bin sbin usr bin usr sbin usr pkg bin PATH PATH usr pkg sbin usr games usr local bin usr local sbin PATH PATH usr X11R7 bin usr X11R6 bin export PATH Xorg configuration Exit from any X Window environment you might be using and run Xorg configure This should produce a valid xorg conf file in your HOME directory just copy it to etc X11 xorg conf Here is a typical xorg conf file with necessary bits for DRI AiGLX and Composite extensions to be loaded and operationals Section ServerLayout Identifier X org Configured Screen 0 Screen0 0 0 InputDevice Mouse0 CorePointer InputDevice Keyboard0 CoreKeyboard EndSection Section Files ModulePath usr pkg lib xorg modules FontPath usr pkg lib X11 fonts misc FontPath usr pkg lib X11 fonts TTF FontPath usr pkg lib X11 fonts OTF FontPath usr pkg lib X11 fonts Type1 FontPath usr pkg lib X11 fonts 100dpi FontPath usr pkg lib X11 fonts 75dpi EndSection Section Module Load dbe Load dri Load dri2 Load extmod Load glx EndSection Section InputDevice Identifier Keyboard0 Driver kbd Option XkbRules xorg Option XkbModel pc105 Option XkbLayout us Option XkbOptions compose ralt EndSection Section InputDevice Identifier Mouse0 Driver mouse Option Protocol wsmouse Option Device dev wsmouse Option ZAxisMapping 4 5 6 7 EndSection Section Monitor DisplaySize 330 210 mm Identifier Monitor0 VendorName LPL ModelName 2900 EndSection Section Device Option DRI true Option AccelMethod XAA needed for 945GM GPUs Option XAANoOffscreenPixmaps true Option AllowGLXWithComposite true Identifier Card0 Driver intel VendorName Intel Corporation BoardName Mobile 945GM GMS 943 940GML Express Integrated Graphics Controller BusID PCI 0 2 0 EndSection Section Screen Identifier Screen0 Device Card0 Monitor Monitor0 SubSection Display Viewport 0 0 Depth 1 EndSubSection SubSection Display Viewport 0 0 Depth 4 EndSubSection SubSection Display Viewport 0 0 Depth 8 EndSubSection SubSection Display Viewport 0 0 Depth 15 EndSubSection SubSection Display Viewport 0 0 Depth 16 EndSubSection SubSection Display Viewport 0 0 Depth 24 EndSubSection EndSection Section ServerFlags Option AIGLX true EndSection Section DRI Mode 0666 EndSection Section Extensions Option Composite Enable EndSection Checklist Now reboot your NetBSD computer with the previously compiled kernel When Xorg starts you should see the following kernel messages using dmesg error drm pid389 i915 getparam ERROR i915 getparam called with no initialization i915drm0 interrupting at ioapic0 pin 16 error drm pid389 i915 getparam ERROR Unknown parameter 5 Error messages can safely be ignored they mean you re not running a GNU Linux kernel 2 6 28 Xorg 0 log now should contain the following messages AIGLX enabled II Loading extension GLX II LoadModule intel II Loading usr pkg lib xorg modules drivers intel drv so drmOpenDevice node name is dev dri card0 drmOpenDevice open result is 8 OK drmOpenDevice node name is dev dri card0 drmOpenDevice open result

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

  • unicode
    packages that support it use the ncurses library with wide characters add to etc mk conf PKG DEFAULT OPTIONS ncursesw Soup up a shell ksh Works chsh s bin ksh mksh This one is an OpenBSD based Korn shell works pretty well compared to the pdksh cd usr pkgsrc shells mksh make install clean chsh s usr pkg bin mksh zsh Note The stable version 4 2 x won t work UTF 8 in the Z shell is enabled by default since 4 3 2 cd usr pkgsrc shells zsh make install clean chsh s usr pkg bin zsh tcsh Works out of the box cd usr pkgsrc shells tcsh make install clean chsh s usr pkg bin tcsh bash Works out of the box cd usr pkgsrc shells bash make install clean chsh s usr pkg bin bash Shell environment Set the variables LANG and LC CTYPE in your shell configuration file export LANG en US UTF 8 export LC CTYPE en US UTF 8 export LC ALL or if you have a C style shell setenv LANG en US UTF 8 setenv LC CTYPE en US UTF 8 setenv LC ALL The other locale variables should be left untouched which is C by default to not confuse programs Other locales than en US probably won t work too well since the fonts aren t in the base system yet but you can install them and try your luck of course The result should look like locale LANG en US UTF 8 LC CTYPE en US UTF 8 LC COLLATE C LC TIME C LC NUMERIC C LC MONETARY C LC MESSAGES en US UTF 8 LC ALL X Terminal emulators xterm Versions 239 and over work well with default fixed font Also works with ttf DejaVu Mono font Appears to have trouble with some other fonts such as Bitstream Vera Sans Mono despite this font being more complete than DejaVu gnome terminal Awesome and works great with the ttf Bitstream Vera Sans Mono or DejaVu Mono Somewhat bloated considering the dependencies urxvt recommended cd usr pkgsrc x11 rxvt unicode make install clean uxterm Works as the u might suggest but last time I checked it sucked Anyone aterm Doesn t work and probably never will Eterm Doesn t work either Last time I checked the author was too busy with real life Utilities less Set the shell environment variable LESSCHARSET to utf 8 screen screenrc defutf8 on encoding UTF 8 lynx lynxrc character set UNICODE UTF 8 Or change Display character set in the options menu irssi set recode autodetect utf8 yes set recode fallback iso 8859 1 or whatever seems fit set recode out default charset UTF 8 set term charset UTF 8 save silc client set term type utf 8 save and restart vi NetBSD s vi is based on nvi It doesn t support wide range characters as of version 1 79nb16 from 10 23 96 which is the one in current 4 99 15

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