Notes on OpenBSD 4.7 Released May 19, 2010 notes with remarks on Dell Optiplex GX110 hardware no adobe flash available NOTE: use openbsd-gui.sh script to do remote GUI login to openbsd alternative machine #1 Dell optiplex GX110 P3 666 mhz 256 megs of ram Intel i810 video Analog Devices AD1881 Multimedia audio controller Intel 82801AA AC97 (use green coloured connector for headphones) ethernet controller 3Com 3c905c-tx icewm using vesa driver for video, intel driver appears not to work!! Dell Optiplex PCI-ISA Riser Card 3524D (don't have) Small-form-factor chassis 3-V CR2032 coin cell kde 3.5.10 use ctrl-alt-backspace to kill X /usr/libexec/locate.updatedb script to update locate database X -configure X -config /root/xorg.conf.new cp /root/xorg.conf.new /etc/X11/xorg.conf single user mode ---------------- boot> boot -s window managers --------------- cwm fvwm twm icewm kwin notes on fvwm ------------- /etc/X11/xinit/xinitrc invokes fvwm (or icewm) /etc/X11/xdm/Xsession notes on icewm -------------- alt-tab task switching ctrl-alt-t runs terminal ctrl-alt-d show desktop (toggle) ctrl-alt-c cube_motif ctrl-alt-f firefox ctrl-alt-h toggles icewm panel ctrl-alt-w activates wmweather left windows key activates icewm menu right windows key windows list note that maximizing wmweather makes it windowless /usr/local/share/icewm/preferences global configuration file /usr/X11R6/lib/X11/fonts various font directories are here $HOME/.icewm/preferences local configuration file $HOME/.icewm/menu local config file for menu in .profile xsetroot -solid '#056' set background blue network setup ------------- ifconfig -a see what interfaces exist echo dhcp > /etc/hostname.xl0 setup dhcp for xl0 (ethernet card in this case) dhclient xl0 activate dhcp for xl0 netstat -rn check routes sh /etc/netstart xl0 restart network /sbin/sysctl hw display info on cpu systat display system statistics sysctl -w net.ipv4.ip_forward=1 (this is on vector) turn on ip forwarding sysctl kern.emul.linux=1 run Linux binaries packages -------- add this to root's and su user's .profile export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/i386 this repo died so switching to export PKG_PATH=http://artfiles.org/openbsd/4.7/packages/i386 this repo also died so... export PKG_PATH=http://mirror.yandex.ru/pub/OpenBSD/4.7/packages/i386 pkg_info pkg_name display information on software package pkg_name pkg_info -A show information for all currently installed packages pkg_info -E wall find which package wall is from pkg_info -L pkglocatedb display the files contained in package pkglocatedb pkg_add bzip2 pkg_add cdrtools pkg_add icewm pkg_add xboard pkg_add xchat pkg_add ntp pkg_add wmweather pkg_add recordmydesktop pkg_add rocksndiamonds pkg_add midori pkg_add mutt-1.5.20p2 pkg_add kdebase pkg_add kdeedu pkg_add kdemultimedia (needed for kmix) pkg_add mozilla-firefox pkg_add mplayer-20090708p4-no_x11 pkg_add rxvt pkg_add wget pkg_add zip pkg_add unzip pkg_add xfce4-session pkg_add xfce4-clipman pkg_add xfce4-weather pkg_add slim pkg_add xfce-utils pkg_add xfce4-mixer pkg_add aumix pkg_add gqview pkg_add xpdf pkg_add antiword pkg_add elinks-0.11.7p3-js pkg_add simh pkg_add gxemul pkg_add gnash pkg_add tightvnc pkg_add ssvnc-viewer pkg_add git pkg_add cmake pkg_add dosbox pkg_add ee pkg_add python-2.6.3p1 pkg_add py-simplejson pkg_add xwelltris-1.0.1p2 pkg_add conky-1.7.2-no_x11 pkg_add frotz pkg_add scim pkg_add spider (solitaire) pkg_add xpat2 (solitaire) pkg_add kdegames pkg_add lesstif (replaced with openmotif) pkg_add openmotif pkg_add e2fsprogs pkg_add dillo pkg_add leafpad pkg_add pciutils pkg_add xv pkg_add scrot (for screenshots) e.g. scrot pic.png pkg_add pkglocatedb pkg_add kermit pkg_add uucp pkg_add pkg_mgr pkg_add ksane pkg_add vifm pkg_add sqlite (for ports) pkg_delete tightvnc (too old?) pkg_delete xmms-fmradio (no radio card) pkg_mgr a package manager for openbsd with curses gui commands -------- aucat -i filename.wav record sound to wav file aumix -v30 set volume at 30% cal oct cal in openbsd can take abbreviated month as input chpass -s bash cubeman change shell for cubeman to bash disklabel wd0 read disk pack label dbus-cleanup-sockets clean up leftover sockets in a directory evince pdf reader fortune zippy display zippy the pinhead sayings fsck_ffs /dev/device Fast File System consistency check and interactive repair gcc -o xrubik xrubik.c -I/usr/X11R6/include -L/usr/X11R6/lib -X11 compile xrubik for bsd grdc grand digital clock (curses) kill -HUP PID use this to restart sshd man pts display info on pseudo terminal driver man openpty function finds an available pseudo-tty and returns file de- scriptors for the master and slave man afterboot things to check after the first complete boot mixer outputs.master=140,140 set volume to medium level modstat display status of loaded kernel modules ntpd -d -s update ntpd orage run calendar app pkill firefox kill all firefox processes pkill -f "sh /home/cubeman/bin/tell.sh" kill on full argument list pkill -HUP sshd terminate sshd pom display the phase of the moon ps -alxu display processes with user info ps -ale display processes in long form rdate -ncv ptbtime1.ptb.de set proper time scanimage -d hp:/dev/usbcanner0 scan from hp 5200c setxkbmap us set us keyboard setxkbmap -option compose:ralt set compose key to right alt key startx -- -logverbose 0 start x with minimal logging thunar file manager wmweather -s CWNC -m display weather info in metric for CWNC (Cobourg Ontario) wsconscfg -t 80x25 5 specify a screen type to use for virtual screen 5 wsconscfg -t 80x25 6 specify a screen type to use for virtual screen 6 wsconscfg -dF 5 delete virtual screen 5 xfce4-clipman run the xfce clipboard manager xfce4-mixer run the xfce mixer (volume control) xlock lock X session until password is given xwd | xwdtopnm | pnmtopng > $HOME/openbsd-icewm.png do a screen capture improve security ---------------- chflags -R schg /bin chflags noschg /etc/rc.conf (turn off schg) notes on timezones ------------------ # config -ef /bsd OpenBSD 4.9 (GENERIC) #671: Wed Mar 2 07:09:00 MST 2011 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC Enter 'help' for information ukc> timezone 300 timezone = 300, dst = 0 ukc> quit Saving modified kernel. files ----- .xinitrc contains "exec icewm-sessions" .Xdefaults set resources for X /etc/wsconsctl.conf keys ---- double press on windows (skull) key brings up window list ctrl-alt-5 switch to X screen directories ----------- /usr/libexec contains server programs e.g. ftpd, sendmail, uucpd /var/db/pkg packages are stored here /usr/local/lib/X11/fonts/freefont scripts ------- sx.sh runs X on /dev/ttyC0 (console) contains: startx -- -logverbose 0 -dpi 75 sx.sh & ; bg ; disown runs X via ssh and keep running after logout devices ------- /dev/ttyC0 console /dev/ttyp4 pseudo term modifications ------------- modified wall to fix spurious space problem, see wall1.c