pkg_tarup -a firefox

src part Available targets clean delete the current package's WRKDIR clean-depends delete all the WRKDIR of the current package's dependencies deinstall delete a package, to the useless dependencies make DEINSTALLDEPENDS=1 deinstall

delete too:

fetch fetch the distle from repositories fetch-list like fetch but fetch the dependencies too,

you might use it in this way:

make fetch-list | sh

help display a useful help about a pkgsrc topic, i.e. make help topic=DEINSTALLDEPENDS

install install pendencies

the into

package and its our LOCALBASE,

cd www/elinks && make install

dei.e.

update update a package and dependencies show-depends display all the dependencies of a package

show-var show a pkgsrc's variable, for example: make show-var VARNAME=MAINTAINER

Various tools pkgclean like clean 's target but smarter pkgnd tools useful to nd packages, for example pkgfind -C video

Other operations shutdown(8) • To reboot a machine: shutdown -r now

• To shutdown a NetBSD machine you might use shutdown(8), i.e. shutdown -p 5 "Hurry up!"

Kernel • To obtain information about selected options in the kernel you might use config(1), i.e.: config -x /netbsd • To obtain or set kernel states you might use sysctl(8), i.e.: sysctl -w security.curtain=1

Testing • To run the automated tests: cd /usr/tests && atf-run | atf-report • To congure the testing framework, edit the les in /etc/atf.

.......................................................................................................................................

example: pkg_info firefox pkg_tarup create from installed packages in our LOCALBASE a .tgz binary package, for example:

.......................................................................................................................................

.......................................................................................................................................

pkg_info display informations about a package, for

NetBSD reference card The NetBSD community Useful links Ocial site: http://www.netbsd.org/ Man pages: http://man.netbsd.org/ Pkgsrc.se: http://www.pkgsrc.se/ ISO: ftp://iso.netbsd.org/pub/NetBSD/iso/ Binary packages: ftp://ftp.NetBSD.org/pub/

NetBSD/packages/current-packages/NetBSD/ $(uname -p)/$(uname -r)/All

NetBSD Wiki: http://wiki.netbsd.org/

Obtaining the sources • To obtain the sources we should set various useful variables for cvs(1): CVS_RSH="ssh" CVSROOT="[email protected]:/cvsroot" export CVS_RSH CVSROOT • Now we choose a directory for the sources: cd /usr • To obtain the sources (in this case the 6.1.4): cvs co -r netbsd-6-1-4-RELEASE -P src • To obtain pkgsrc (i.e. the 2014Q2 release): cvs co -r pkgsrc-2014Q2 -P pkgsrc

• To

record audio (i.e. phone) you can use

with

a

microaudiorecord(1):

audiorecord -p mic myrec.wav

• To play an audio le, recorded for example with audiorecord(1) you might use audioplay(1): audioplay myrec.wav • To

turn up or down the volume you can use mixerctl(1), the increment and decrement operators are supported: mixerctl -w outputs.master++ For a list of all possible variables: mixerctl -a

Localization • To set your favourite language and/or charset you might use export (or setenv on the csh(1)) and the

valid variables, for example for the Italian language and UTF-8: export LANG="it_IT.UTF-8" export LC_ALL="it_IT.UTF-8"

• To print the current settings: locale • To print all available settings you might use: locale -a

Managing users and groups • To add a user: useradd -m -s /bin/ksh -G wheel user where /bin/ksh is a shell and wheel is a secondary group. • To change some user's options, i.e add him/her to a group: usermod -G group user • To delete a user: userdel user

Monitoring the system • To monitor various informations of your NetBSD box you might use the systat(1) tool (which uses curses(3)): systat all When you're on systat you can move on another displays with :display, i.e. :ps or :net, for a list of all the available displays: :help

• With envstat(4) you might obtain the sensor(s) informations, for example: envstat -i 2 • To kill a process without knowing its pid you might use pkill(8): pkill gimp • To change the priority of a process you can use prenice(8): prenice 6 vi

rc.d rc.conf The

synopsis

of

daemon|option=yes|no|value

rc.conf

le

is:

auto_ifcong automatically starts the network interfaces (please see ifcong_if) (boolean) defaultroute set the default gateway, defaultroute=192.168.1.1

i.e.

dhclient congure the network using DHCP

(auto_ifcong and ifcong_if not needed) (boolean) hostname set the hostname, i.e. hostname=foobar ifcong_if assigns an IP or other on that network interface, i.e. ifconfig_rtk0="inet 192.168.1.4" mixerctl automatically starts the mixerctl conguration (boolean) postx starts Postx (boolean) sshd starts the OpenSSH server (boolean)

Start and stop services and other operations • To start a service only one time, i.e. the sshd daemon: /etc/rc.d/sshd onestart • To stop a service /etc/rc.d/sshd stop

(for

example

sshd):

• To restart a service (for example network): /etc/rc.d/network restart

wscons • To set the keyboard's layout, i.e. the Dvorak's layout: wsconsctl -w encoding=us.dvorak • To turn o the wsconsctl -w bell.volume=0

pc

speaker:

.......................................................................................................................................

Audio

.......................................................................................................................................

.......................................................................................................................................

Conguration and useful commands

• To see all available variables: wsconsctl -a, and display's options: wsconsctl -ad

Pkgsrc mk.conf The mk.conf synopsis is: option = values or for concatenating values: option += values. Put a - as a prex if you'd like to disable a option.

ACCEPTABLE_LICENSES not

free software or OSI licenses that we accept, i.e.: ACCEPTABLE_LICENSES += vim-license

CFLAGS ag

passed

to

the

CFLAGS += -march=pentium-m

compiler,

i.e

FAILOVER_FETCH if the distle's checksum doesn't match, download again the distle, FAILOVER_FETCH = yes

FETCH_CMD tool to use on the fetch phase, i.e.: FETCH_CMD = curl

PKG_DEFAULT_OPTIONS options used

by

all

packages,

for

PKG_DEFAULT_OPTIONS += mmx -nas

example:

PKG_OPTIONS.package options used by a package,

for example in the www/elinks case:

PKG_OPTIONS.elinks += nntp

X11_TYPE option useful to set the X11 type, for modular X.org: X11_TYPE = modular

pkg part pkg_admin audit show all the vulnerabilities of installed packages

pkg_admin fetch-pkg-vulnerabilities download

the vulnerability list pkg_add install a package, and all required dependencies, i.e: pkg_add -v firefox pkg_delete uninstall a package, i.e. to delete a package and all its useless dependencies: pkg_delete -R firefox

NetBSD reference card - GitHub

To monitor various informations of your NetBSD box you ... ifconfig_if assigns an IP or other on that network in- ... pkg_admin fetch-pkg-vulnerabilities download.

88KB Sizes 0 Downloads 317 Views

Recommend Documents

Log4j Quick Reference Card - GitHub
log4j.appender.socket.port=10005 log4j.appender.socket.locationInfo=true log4j.logger.com.my.app=DEBUG. Level. Description. ALL. Output of all messages.

Xcode 7 Visual Reference Card - GitHub
Previous Tab. Run. ⌘ R Run. ⌘ U Test. ⌘ I. Profile. ⇧ ⌘ B Analyze. ⌘ . Stop. ⌘ < Edit Scheme. Debug. ⌘ Y Deactivate Breakpoints. ⌃ ⌘ Y Pause. F6 Step Over.

SD Card v4.0a.sch - GitHub
Page 1. 2012/11/15 10:50:19 C:\Users\Tobe\Desktop\SD card shield\SD Card Shield v4.0a1\SD Card v4.0a.sch (Sheet: 1/1)

Reference Manual - GitHub
for the simulation of the electron cloud buildup in particle accelerators. 1 Input files .... points of the longitudinal beam profile of sec- ondary beams.

Oolite Reference Sheet - GitHub
will shut down, requiring a cool-down period before it ... 10 Fuel Scoop ... V2 & Creative Commons License: BY - NC - SA 3.0 Oolite Website: http:/www. ..... A discontinued fighter design finding a new life in the professional racing circuit.

LIKWID | quick reference - GitHub
likwid-memsweeper Sweep memory of NUMA domains and evict cache lines from the last level cache likwid-setFrequencies Control the CPU frequency and ...

J1a SwapForth Reference - GitHub
application. After installing the icestorm tools, you can .... The SwapForth shell is a Python program that runs on the host PC. It has a number of advantages over ...

GABotS Reference Manual - GitHub
Apr 9, 2002 - MainWindow (Main widget for the GABots app). 23. Random ..... Main class for simple Genetic Algorithm used in the program. ز ذظ .

Z Reference Card - Mike Spivey
R+. R \plus. Transitive closure. R∗. R \star. Reflexive–trans. closure. Functions f (x) f(x). Function application. (λ x : T | P • E). (\lambda ...) Lambda-expression. X §.

Z Reference Card - Mike Spivey
Free type definition. Ans ::= ok ¡. £ ¢ ... Domain. ranR. \ran R. Range id X. \id X. Identity relation. Q ¥ R. Q \comp R. Composition ... Domain anti-restriction. R § S.

Z Reference Card - Mike Spivey's
Domain. ranR. \ran R. Range id X. \id X. Identity relation. Q £ R. Q \comp R. Composition. Q ◦ R. Q \circ R. Backwards comp. S ¨ R. S \dres R. Domain restriction.

Go Quick Reference Go Quick Reference Go Quick Reference - GitHub
Structure - Package package mylib func CallMeFromOutside. Format verbs. Simpler than Cās. MOAR TABLE package anothermain import (. "fmt". ) func main() {.

Javascript Quick Reference Card - Cheat-Sheets.org
Code Structure var ... //Global variable ... //your code here. }] aName='ExplainThat!'; ..... pathname – the path to the document on the host protocol – the protocol ...

OpenCL Quick Reference Card - Khronos Group
for high-performance compute servers, desktop ... cl_int clReleaseProgram (cl_program program) ... cl_int clGetProgramBuildInfo (cl_program program,.

CSS 2.1 Quick Reference Card - Cheat-Sheets.org
Class Selectors:.name – applies to HTML document ... HTML element type such as h1, p, a etc. Selector ... When defining two or more nearly similar rules do this.

SD Card Shield v1.1.sch - GitHub
Page 1. 2014-08-04 12:41:15 f=0.60 E:\BaiduYun\. \ArduinoShields\SD Card Shield\sch\v1.1\SD Card Shield v1.1.sch (Sheet: 1/1)

Reference Technologies Inc Termination of Consulting ... - GitHub
Jul 13, 2015 - offered to install the software for them, and made it available for download. ... might dissuade them from doing business with him and be injurious to RefTek. ... Lawsuits are not good for investors, customers or public relations. ...

reference nodes Entity Nodes Relationship Nodes - GitHub
S S EMS BIOLOG GRAPHICAL NO A ION EN I RELA IONSHIP REFERENCE CARD. LABEL entity. LABEL observable. LABEL perturbing agent pre:label.

Reference Sheet for CO140 Logic - GitHub
Free Variable Variable which is not bound (this includes variables which do not appear in A!). Sentence Formula with no free variables. ... domain of M, dom (M).

Reference Sheet for CO120.3 Programming III - GitHub
GBB. B d˜rief en enum type th—t represents fl—gs for renderingF. B. B i—™h ˜it represents — different fl—gF …se ˜itwise —nd. B to ™he™k if — fl—g is setF. BG enum render•fl—g {. GBB „he —m˜ient fl—g @˜it HAF BG

Reference Sheet for C112 Hardware - GitHub
Page 1 ... We might be able to make a considerable simplification by considering max- terms (0s) instead of minterms. • Don't cares (X) can ... Noise Margin. Fan out The number of inputs to which the output of a gate is connected. • Since 1. R.

Reference Sheet for CO120.2 Programming II - GitHub
Implementing Interfaces Use notation: @Override when a class method im- ... Style: usually a class extends an abstract class (with constructor and fields).

Ucto: Unicode Tokeniser Reference Guide - GitHub
Available from http://ilk.uvt.nl/downloads/pub/papers/ilk.1205.pdf”. For information about ... The e-mail address for problems with the installation, bug reports, comments and questions is .... .

Reference Nodes Entity Nodes Relationship Nodes - GitHub
SYSTEMS BIOLOGY GRAPHICAL NOTATION ENTITY RELATIONSHIP REFERENCE CARD. LABEL entity. LABEL phenotype. LABEL perturbing agent pre:label unit of information state variable necessary stimulation inhibition modulation. LABEL. NOT not operator outcome abs