Re: Speed: dump/restore vs rsync
On Fri, Sep 22, 2023 at 09:40:40PM -0600, Jonathan Drews wrote: > > I am getting an average transfer rate of 40527/1024 = 39.577 GB/sec. I > don't think that is bad at all. It's dumping /home to a USB external Awpp math error. It should be 30.577 MB/second. Hey it is late. -- Kind regards, Jonathan
Re: Speed: dump/restore vs rsync
On Fri, Sep 22, 2023 at 03:11:07PM -0300, vitmau...@gmail.com wrote: > Hi, > > I used the command "cd /SRC && dump 0f - . | (cd /DST && restore -rf - )" > as suggested by the "Disk Setup" section of the FAQ to transfer everything > from one of my old hard disks to the one that should replace it. However, > I'm stuck with something around 35 megabytes/s of speed transfer (measured > using "systat -h io") following this path. If I use rsync, I get something > around 70 megabytes/s (measured by both the "--progress" option and I have a question and a comment. When I use # systat -h iostat I get the following display: DEVICE READWRITE RTPS WTPS SEC sd0 39M 819 68030 1.0 sd1 0 40M0 641 0.3 Totals39M 40M 6803 641 1.2 What does RTPS and WTPS mean? I am using OpenBSD 7.3 GENERIC.MP#3 amd64. I dump with the following command: dump -0au -f /mnt/OpenBSDHome-lvl0.dump /dev/rwd0g /dev/rwd0g is /home. I get thes results: DUMP: Date of this level 0 dump: Fri Sep 22 20:50:47 2023 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rsd0k to /mnt/OpenBSDHome-lvl0.dump DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 30528073 tape blocks. DUMP: Volume 1 started at: Fri Sep 22 20:50:47 2023 DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: 39.68% done, finished in 0:07 DUMP: 79.49% done, finished in 0:02 DUMP: 30557849 tape blocks on 1 volume DUMP: Date of this level 0 dump: Fri Sep 22 20:50:47 2023 DUMP: Volume 1 completed at: Fri Sep 22 21:03:21 2023 DUMP: Volume 1 took 0:12:34 DUMP: Volume 1 transfer rate: 40527 KB/s DUMP: Date this dump completed: Fri Sep 22 21:03:21 2023 DUMP: Average transfer rate: 40527 KB/s DUMP: level 0 dump on Fri Sep 22 20:50:47 2023 I am getting an average transfer rate of 40527/1024 = 39.577 GB/sec. I don't think that is bad at all. It's dumping /home to a USB external hard drive. The dumped machine is a Lenovo T440 Thinkpad with Softdeps enabled, on an SSD drive. What do you folks think? -- Kind regards, Jonathan
Re: Printing Via Wifi
On Mon, Sep 04, 2023 at 06:47:06PM +0800, Tito Mari Francis Esca??o wrote: > Hi everyone, > Can somebody please point me to the proper resources on printing through > wifi? > I will have an Epson L3250 and wants to print from my OpenBSD 7.3 Here is how I got my Xerox WiFi Lasre Printer to work with OpenBSD: 1) Install the CUPS packager: # pkg_add cups 2) Add the following line to your /etc/rc.conf.local file: pkg_scripts=cupsd. Reboot the computer to make sure CUPS is running. 3) From the CD that came with my Phaser 6022, I removed the file xerox-phaser-6022_1.0-22_all.deb. 4) This is an archive file. It contains your *.ppd. Do $ ar x xerox-phaser-6022_1.0-22_all.deb (See man (1) ar) 5) After extraction you will see data.tar.gz. That tarball contains the Xerox_Phaser_6022.ppd. 6) Start a web browser and point it to "http://localhost:631"; 7) Selct add a printer and login. I had to use my user account to login. Logging in as root would not work. 8) Since there is no entry for Xerox, load the Xerox_Phaser_6022.ppd. 9) In the management settings for your newly installed printer on CUPS, make sure you set this printer as the server default. NOTE: There may be an entry for your Epson printer in which case you can skip the tarball extraction. I tested the printing and it works with the commannd line /usr/local/bin/lpr and it printed just fine. I also printed from LibreOffic and it worked fine too. You have to use the absolute path name /usr/local/bin/lpr, /usr/local/bin/lprm, /usr/local/bin/lpq and /usr/local/bin/lp to print with CUPS. -- Kind regards, Jonathan
Re: suspend/resume issue on T440p w/ Libreboot
On Sat, Aug 26, 2023 at 01:47:06PM +0200, Robert Alessi wrote: > On Sat, Aug 26, 2023 at 04:19:23AM -0600, Jonathan Drews wrote: > > I don't have an /etc/apm directory. Howvere I have this in my > > /etc/rc.conf.local > > > > apmd_flags=-A > > My apmd flags are a bit different: -H -Z 10 > > Is your laptop coreboot-ed or do you use stock BIOS? > I am using the BIOS. No coreboot here. -- Kind regards, Jonathan
Re: suspend/resume issue on T440p w/ Libreboot
On Sat, Aug 26, 2023 at 11:32:32AM +0200, Robert Alessi wrote: > Hi, > > When I try to suspend my system, my T440p with Libreboot first goes > into sleep mode alright then resumes spontaneoulsy after about 10s. I > know that Libreboot had issues with the suspend mode on this laptop, > but these seem to have been solved in recent versions. > $ uname -a OpenBSD leo.my.domain 7.3 GENERIC.MP#3 amd64 I am running OpenBSD 7.3 on a Thinkpad T440 and suspend and resume work great. I use either zzz or ZZZ or just close the lid. I don't have an /etc/apm directory. Howvere I have this in my /etc/rc.conf.local apmd_flags=-A -- Kind regards, Jonathan
Re: Intel DRM error on T 440
On Sat, Jul 8, 2023, at 20:39, Nick Holland wrote: > I believe what you are seeing is an informative message about what is > going on under the covers, not an problem you (as a user) need to > deal with if everything is working as it should be. However, if things > are NOT working as they should, Nick: Thanks! In all other respects OpenBSD 7.3 is working flawlessly. I Googled and this problem also occurs on Linux computers too. -- Kind regards, Jonathan
Re: Self-hosting OpenBSD server, any documentation?
On Sat, Jul 8, 2023, at 01:42, Jonas Borchelt wrote: > The book "Absolute OpenBSD" is an excellent choice to expand your knowledge > of the OpenBSD operating system. It was written by Michael W. Lucas and is > regarded as a comprehensive resource for beginners and advanced users alike. > It covers various aspects of OpenBSD, including installation, network > security, system administration, and more. Enjoy reading it! > There is another book by Michael Lucas that may be of benefit: "Httpd and Relayd Mastery". You can buy it as a *.pdf from Tilted Windmill Press.
Intel DRM error on T 440
uname: OpenBSD 7.3 GENERIC.MP#1125 amd64 I get the following error message when my Thinkpad T440 wakes up: drm:pid73944:intel_dp_aux_wait_done *ERROR* [drm] *ERROR* AUX A/DDI A/PHY A: did not complete or timeout within 10ms (status 0xa01300e1) I have Googled that error message and no fixes turn up. In other respects, my OpenBSD T440 works just great. My rc.conf.local contains this: apmd_flags=-A pf=YES pkg_scripts=messagebus cupsd mysqld xenodm_flags= Any suggestions as to what I may have misconfigured would be helpful. I have loaded the firmware using fw_update. This error did not occur in OpenBSD 7.2. -- Kind regards, Jonathan
LibreOffice JRE Error
$ uname -a OpenBSD Leo.my.domain 7.3 GENERIC.MP#1125 amd64 With libreoffice-java-7.5.1.2v installed and enabled, I get the following error message when using LibreOffice: $ libreoffice CarolyAddress.odt [0.009s][warning][os,thread] Attempt to protect stack guard pages failed (0x7848f9a5f000-0x7848f9a63000). # # A fatal error has been detected by the Java Runtime Environment: # Native memory allocation (mprotect) failed to protect 16384 bytes for memory to guard stack pages This error only happens when loading *.odt or *.ods files. It does not happen when loading *.odp presentation documents. If I disable the JRE, by uncehcking the box in Tools->Options->Advanced, then LibreOffice does not show any errors. LibreOffice did not show this error on OpenBSD 7.2. I use OpenBSD as a desktop and probably use LibreOffice several times a week. Any advice on how to fix this would be greatly appreciated. My computer is a Lenovo T440. I ran a hardware diagnostics test on the laptop and it passed all tests. -- Kind regards, Jonathan
Thanls to developers for 7.2
Thanks to Theo and all the developers for OpenBSD 7.2. I am running it on a Lenoveo T440 Thinkpad. Here is what works: *) The F1 through F8 keys work *) 802.11N Wifi works *) Suspend and resume by closing the lid works. *) USB scanning works. I use a Canon LiDe scanner. *) CUPS Printing works. I use a wireless Xerox 6022 Phaser printer *) Mounting of EXT2 , MSDOS and FFS external hard drives works. *) The camera and microphone work. I regularly participate in Jitsi. *) Sound and video playing works. *) A wireless usb mouse works. *) The keyboard illumination works (Fn-> Space bar) *) The MariaDB works In gratitude for such a great system I donated $75.00 USD. -- Kind regards, Jonathan
Re: Sunday presentaion on OpenBSD
On Sun, Aug 29, 2021 at 11:52:57PM +0100, Chris Narkiewicz wrote: > On Sat, Aug 21, 2021 at 07:12:41PM -0600, Jonathan Drews wrote: > > This Sunday Peter Hansteen will give a presentaion on OpenBSD: > > > > "Recent and not so recent changes in OpenBSD that make > > life better" > > Any recording available? > I am afraid not. However peter has posted a writeup: The Slides https://home.nuug.no/~peter/openbsd_moments/#1 The Writeup https://bsdly.blogspot.com/2021/08/recent-and-not-so-recent-changes-in.html
Re: Recent and not so recent changes in OpenBSD that make life better,(and may turn up elsewhere too)
On Sun, Aug 22, 2021 at 08:26:47PM +0200, Peter N. M. Hansteen wrote: > >From the just concluded SEMI_bug (https://semibug.org) meeting - > > The talk title was > > Recent and not so recent changes in OpenBSD that make life better,(and > may turn up elsewhere too) > Thanks so much for giving the presentation! -- Kind regards, Jonathan
Sunday presentaion on OpenBSD
This Sunday Peter Hansteen will give a presentaion on OpenBSD: "Recent and not so recent changes in OpenBSD that make life better" The presentation begins at 1300 hours,New York City time. The link for joining is https://meet.jit.si/SEMI-BUGOpenBSDTalkBSDly
Re: Regarding Openbsd and zoom/hangouts etc
My apologies Theo. On Mon, Aug 2, 2021, at 14:14, Theo de Raadt wrote: > Jonathan Drews wrote: > > > Zoom won't owrk on OpenBSD. > > That is incorrect. > > > Howvever jitsi works great. > > It wasn't a question about jitsi. >
Re: Regarding Openbsd and zoom/hangouts etc
On Mon, Aug 02, 2021 at 07:04:47PM +0300, Riza Dindir wrote: > Hello, > > I amthinking of using openbsd as my OS, and desktop, giving up windows, > after I am having trouble updating the system. > > I have a question. Is it possible to use zoom, hangouts or other > conferencing/communication systems using the browser > (iridium/chrome/firefox, etc) on openbsd? > Hi; Zoom won't owrk on OpenBSD. You can go their test page and try it for yourself https://zoom.us/test . Howvever jitsi works great. Here are my notes on configuring audio and video on OpenBSD, so it willwork with jitsi. https://meet.jit.si/ The primary reference is: https://www.openbsd.org/faq/faq13.html in addition to the man pages. To get audio and video working on OpenBSD: Add yourself to group wheel in /etc/group. Do as root: # chmod g+rw /dev/video0 or whatever your video device is. Find it in dmesg. In /etc/sysctl.conf (file is in /etc/examples) add: kern.audio.record=1 kern.video.record=1 Add the following lines to /etc/mixerctl.conf (mixerctl.conf is in /etc/examples). # $OpenBSD: mixerctl.conf,v 1.1 2014/07/16 13:21:33 deraadt Exp $ # # mixerctl(1) configurable parameters. See mixerctl.conf(5) for details. # # output volume value for most audio cards # outputs.master=200 record.enable=on You'll have to experiment as your laptop may not have the same entries as my mixerctl.conf. Invariably they should begin with "record." Do # mixerctl -av to find the settings As an aid in getting your microphone to work use aucat (see man 1 aucat). To do a test recoding do: $ aucat -o test.wav to play back the rscording, to see if your microphone is working do: $ aucat -i test.wav I have used Jitsi several times from my OpenBSD T420 Laptop. The only difficulty was sharing my desktop. Firefox froze when doing that. My guess is that happens because of pledge. Video and audio worked great. Response times can be bad if you use Jitsi over WiFi. I switched to ethernet and my signal strength improved. To adjust the volume of the microphone and speakers use cmixer. cmixer is in packages. Kind regards, Jonathan
Re: X220 thinkpad battery issue
According to Wikipedia, The X220 was first manufactured in 2011. https://en.wikipedia.org/wiki/ThinkPad_X_series#X220 Remove the battery and look for the date when it was manufactured. The manufacture date is usually stamped somewhere on the battery. If it is more than 4 years old, then it may very well be dead. On Thu, Jul 15, 2021, at 00:57, Isak Holmström wrote: > Hello, > I recently discovered that my battery is not charging. I really can’t find > anything when searching the web regarding openbsd and batteries. Please > advice me how to debug this issue. I cannot find anything on > https://marc.info or man sysctl, apm or apmd, sysctl.conf > > dmesg x220: > ——- snip > > OpenBSD 6.9 (GENERIC.MP) #3: Mon Jun 7 08:21:26 MDT 2021 > > r...@syspatch-69-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 8451125248 (8059MB) > avail mem = 8179625984 (7800MB) > random: good seed from bootblocks > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (64 entries) > bios0: vendor LENOVO version "8DET76WW (1.46 )" date 06/21/2018 > bios0: LENOVO 4291H77 > acpi0 at bios0: ACPI 4.0 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA > SSDT SSDT DMAR UEFI UEFI UEFI > acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) > EHC2(S3) HDEF(S4) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpihpet0 at acpi0: 14318179 Hz > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.23 MHz, 06-2a-07 > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN > cpu0: 256KB 64b/line 8-way L2 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges > cpu0: apic clock running at 99MHz > cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz, 06-2a-07 > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN > cpu1: 256KB 64b/line 8-way L2 cache > cpu1: smt 1, core 0, package 0 > cpu2 at mainbus0: apid 2 (application processor) > cpu2: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.92 MHz, 06-2a-07 > cpu2: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN > cpu2: 256KB 64b/line 8-way L2 cache > cpu2: smt 0, core 1, package 0 > cpu3 at mainbus0: apid 3 (application processor) > cpu3: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz, 06-2a-07 > cpu3: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN > cpu3: 256KB 64b/line 8-way L2 cache > cpu3: smt 1, core 1, package 0 > ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins > acpimcfg0 at acpi0 > acpimcfg0: addr 0xf800, bus 0-63 > acpiec0 at acpi0 > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus -1 (PEG_) > acpiprt2 at acpi0: bus 2 (EXP1) > acpiprt3 at acpi0: bus 3 (EXP2) > acpiprt4 at acpi0: bus 5 (EXP4) > acpiprt5 at acpi0: bus 13 (EXP5) > acpiprt6 at acpi0: bus -1 (EXP7) > acpibtn0 at acpi0: LID_ > acpibtn1 at acpi0: SLPB > acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001 > acpicmos0 at acpi0 > tpm0 at acpi0 TPM_ addr 0xfed4/0x5000, device 0x104a rev 0x4e > acpibat0 at acpi0: BAT0 model "42T4861" serial 17065 type LION oem "SANYO" > acpiac0 at acpi0: AC unit online > acpithinkpad0 at acpi0: version 1.0 > "PNP0C14" at acpi0 not configured > "PNP0C14" at acpi0 not configured > acpicpu0 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS > acpicpu1 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS > acpicpu2 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS > acpicpu3 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS > acpipwrres0 at acpi0: PUBS, resource
Re: [SOLVED] Canon Lide 300 scanner
I got my Canon Lide 300 scannner working. Here are the things that had to be done. 1) Read /usr/local/share/doc/pkg-readmes/sane-backends 2) My scanner was inadvervently detecting /dev/video0, Loaded backend: v4l. To prevent that, comment out the v4l entry in /etc/sane.d/dll.conf like so: # dll.conf - Configuration file for the SANE dynamic backend loader # # Backends can also be enabled by configuration snippets under the dll.d/ # directory -- third party backends can drop their configuration file in # this in this directory, named after the backend. # # The next line enables the network backend; comment it out if you don't # need to use a remote SANE scanner over the network -- see sane-net(5) # and saned(8) for details. net abaton umax umax1220u #umax_pp #v4l < xerox_mfp 3) Add the account that is going to do the scanning to group wheel, in /etc/group like so: wheel:*:0:root,$MY_ACCOUNT 4) Do, as root, # chmod 660 /dev/usb0. You may have to do this for /dev/usb1. 5) Do, as root, chmod 660 /dev/ugen1.?? Your scanner should now work for your normal user account. Run $ xsane and check File -> Info, located in the upper left hand portion of xsane. It should give the correct driver and location. You can check the output using # scanimage -L and # sane-find-scanner -v -- Kind regards, Jonathan
Re: Canon Lide 300 scanner
On Sun, Jul 11, 2021 at 08:36:45PM -0600, Jonathan Drews wrote: > I did #pkg_add -u and got the latest update to sane-backends. I also > changed the permissions on the devive nodes on /dev/ugen0*, as that > was the driver revealed with # usbdevs -s > > addr 03: 04a9:1913 Canon, LiDE 300 > high speed, power 500 mA, config 1, rev 1.00, iSerial 4B8A99 > driver: ugen0 Just for curiousity I ran xsane as root. I discovered xsane is trying to use /dev/video!!! Here is the output Vendor: Noname Model: Integrated Camera Type: Virtual Device Device: /dev/video0 Loaded backend: v4l Sane version: 1.0.32 -- Kind regards, Jonathan
Re: Canon Lide 300 scanner
I did #pkg_add -u and got the latest update to sane-backends. I also changed the permissions on the devive nodes on /dev/ugen0*, as that was the driver revealed with # usbdevs -s addr 03: 04a9:1913 Canon, LiDE 300 high speed, power 500 mA, config 1, rev 1.00, iSerial 4B8A99 driver: ugen0 I then changed the permissions on the /dev/ugen0.?? files root:27# ls -lh ugen0* crw-rw 1 root wheel 63, 0 Jul 3 12:48 ugen0.00 crw-rw 1 root wheel 63, 1 Jul 3 12:48 ugen0.01 crw-rw 1 root wheel 63, 2 Jul 3 12:48 ugen0.02 crw-rw 1 root wheel 63, 3 Jul 3 12:48 ugen0.03 crw-rw 1 root wheel 63, 4 Jul 3 12:48 ugen0.04 crw-rw 1 root wheel 63, 5 Jul 3 12:48 ugen0.05 crw-rw 1 root wheel 63, 6 Jul 3 12:48 ugen0.06 crw-rw 1 root wheel 63, 7 Jul 3 12:48 ugen0.07 crw-rw 1 root wheel 63, 8 Jul 3 12:48 ugen0.08 crw-rw 1 root wheel 63, 9 Jul 3 12:48 ugen0.09 crw-rw 1 root wheel 63, 10 Jul 3 12:48 ugen0.10 crw-rw 1 root wheel 63, 11 Jul 3 12:48 ugen0.11 crw-rw 1 root wheel 63, 12 Jul 3 12:48 ugen0.12 crw-rw 1 root wheel 63, 13 Jul 3 12:48 ugen0.13 crw-rw 1 root wheel 63, 14 Jul 3 12:48 ugen0.14 crw-rw 1 root wheel 63, 15 Jul 3 12:48 ugen0.15 I still get: root:31# scanimage > image.pnm Output format is not set, using pnm as a default. scanimage: sane_start: Invalid argument Any idea what I am missing? -- Kind regards, Jonathan
Canon Lide 300 scanner
Hi Folks: I can't get my Canon Lide 300 scanner to work on OpenBSD 6.9. When I do # sane-find-scanner - v, then I get: This is sane-find-scanner from sane-backends 1.0.32 # sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer. searching for SCSI scanners: checking /dev/uk0... failed to open (Invalid argument) checking /dev/uk1... failed to open (Invalid argument) checking /dev/uk2... failed to open (Invalid argument) checking /dev/uk3... failed to open (Invalid argument) checking /dev/uk4... failed to open (Invalid argument) checking /dev/uk5... failed to open (Invalid argument) checking /dev/uk6... failed to open (Invalid argument) # No SCSI scanners found. If you expected something different, make sure that # you have loaded a kernel SCSI driver for your SCSI adapter. searching for USB scanners: checking /dev/uscanner... failed to open (Invalid argument) checking /dev/uscanner0... failed to open (Invalid argument) checking /dev/uscanner1... failed to open (Invalid argument) checking /dev/uscanner2... failed to open (Invalid argument) checking /dev/uscanner3... failed to open (Invalid argument) checking /dev/uscanner4... failed to open (Invalid argument) checking /dev/uscanner5... failed to open (Invalid argument) checking /dev/uscanner6... failed to open (Invalid argument) checking /dev/uscanner7... failed to open (Invalid argument) checking /dev/uscanner8... failed to open (Invalid argument) checking /dev/uscanner9... failed to open (Invalid argument) checking /dev/uscanner10... failed to open (Invalid argument) checking /dev/uscanner11... failed to open (Invalid argument) checking /dev/uscanner12... failed to open (Invalid argument) checking /dev/uscanner13... failed to open (Invalid argument) checking /dev/uscanner14... failed to open (Invalid argument) checking /dev/uscanner15... failed to open (Invalid argument) found USB scanner (vendor=0x04a9 [Canon], product=0x1913 [LiDE 300]) at libusb:000:003 # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. # Not checking for parallel port scanners. # Most Scanners connected to the parallel port or other proprietary ports # can't be detected by this program. done The last line says it was found: found USB scanner (vendor=0x04a9 [Canon], product=0x1913 [LiDE 300]) at libusb:000:003 # Your USB scanner was (probably) detected. It may or may not be supported I have saned running as root: root 88678 0.0 0.0 724 1200 ?? S 4:04PM0:00.07 /usr/local/libexec/saned -a _saned http://sane-project.org/sane-mfgs.html says the Canon Lide 300 is supported by sane-pixma. I read /usr/local/share/doc/pkg-readmes/sane-backends What am I doing wrong here? -- Kind regards, Jonathan
Re: Sharing desktop with Jitsi and pledge
On Wed, Jun 30, 2021 at 08:02:51AM -, Stuart Henderson wrote: > > To use screen sharing, you'll need to disable pledge, it is specifically > mentioned in the pkg-readme for firefox. Stuart thanks so much for the insight. I should have been more perceptive and consulted the pkg_readme. I am going to leave pledge and unveil alone. I'll just send out the *.odp in advance. Kind regards, Jonathan > >
Re: Sharing desktop with Jitsi and pledge
On Tue, Jun 29, 2021 at 01:36:35PM -0600, Theo de Raadt wrote: > Jonathan Drews wrote: > > > However when I attempt to share my desktop, through Jitsi, then > > Firefox crashes. I get this message in my dmesg output: > > > > firefox[17370]: pledge "", syscall 289 > > > > It looks like pledge is stopping Jitsi, as it should. Any suggestions > > at to how I could share a presentation through OpenBSD? I've tried > > Zoom but it doesn't work as well as Jitsi. > > I have never found a happy way to handle this in pledge > > /sys/sys/syscall.h:#define SYS_shmget 289 > > There is only 1 application which uses it. After a little thought, I came up with a solution. Email the Libreoffice *.odp presentation to the attendees before the Jitsi presentation. They can each look at it on their OpenBSD desktop. This is for a *BSD user group meeting. -- Kind regards, Jonathan
Sharing desktop with Jitsi and pledge
Hi Folks: I am running OpenBSD 6.9 GENERIC.MP#4 amd64 and have Jitsi working well here on OpenBSD. The audio and video work fine. So do the typing of comments in Jitsi However when I attempt to share my desktop, through Jitsi, then Firefox crashes. I get this message in my dmesg output: firefox[17370]: pledge "", syscall 289 It looks like pledge is stopping Jitsi, as it should. Any suggestions at to how I could share a presentation through OpenBSD? I've tried Zoom but it doesn't work as well as Jitsi. Kind regards, Jonathan
Re: Grouping windows in CWM
On Fri, May 21, 2021 at 07:00:13PM -0600, Jonathan Drews wrote: > Hi Folks: > > I am looking for a tutorial on grouping xterms in CWM. I Never mind. I found a good tutorial: Getting started with cwm https://undeadly.org/cgi?action=article&sid=20090502141551 I just have to figure out some other minor details. > the sticky function (CM-s) and it's use in creating virtual desktops. > > I am running OpenBSD 6.9 GENERIC.MP#0 amd64 > > Kind regards, > Jonathan > > >
Grouping windows in CWM
Hi Folks: I am looking for a tutorial on grouping xterms in CWM. I undestand how to group one set of xterms using CM-g and CM-a. How do I do it if I have two sets of xterms? How would I designate a group "A" and group "B". I looked at the man page for cwm and read the section in Michael Lucas' "absolute OpenBSD' but I am still not sure how to do this. Also I am not understanding the use of the sticky function (CM-s) and it's use in creating virtual desktops. I am running OpenBSD 6.9 GENERIC.MP#0 amd64 Kind regards, Jonathan
Error making 002_libx11.patch.sig
OpenBSD 6.9 GENERIC.MP#473 amd64 Hi Folks: I am trying to patch Xenocara with 002_libx11.patch.sig. I first applied make -f Makefile.bsd-wrapper obj. Afterwards I get the following error message when I do make -f Makefile.bsd-wrapper build: checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating include/Makefile rm: include/Makefile: Permission denied config.status: error: could not create include/Makefile *** Error 1 in . (/usr/X11R6/share/mk/bsd.xorg.mk:158 'config.status') *** Error 2 in /usr/xenocara/lib/libX11 (/usr/X11R6/share/mk/bsd.xorg.mk:196 'build') my /usr/include has the following permissions jack# ls -lhd /usr/include/ drwxr-xr-x 32 root bin 3.0K May 1 20:24 /usr/include/ My xenocara directory has the following permissions jack# ls -lhd /usr/xenocara/ drwxr-xr-x 16 root wheel 512B Apr 17 16:16 /usr/xenocara/ Any ideas as to what I am doing wrong? Kind regards, Jonathan
Re: Disable Unveil
On Mon, May 10, 2021 at 02:02:30AM -0600, Jonathan Drews wrote: > Hello Folks: > > I am using OpenBSD 6.9 GENERIC.MP#473 amd64 Hi Guys: Disregard the first email. I ran firefox as an ordinary user with the url http://localhost:631 and I was able to upload the *.ppd from my ~/Downloads > I need to disable unveil so I can load files into Firefox from > other directories. I also cannot load my *.ppd when using my > webbrowser in root. In the past, I have configured CUPS with the > URL http://localhost:631. I need to be able to upload my *.ppd as > my laser printer is not in the list of Xerox printers . I used > this method in OpenBSD 6.8 and it worked fine. > > I read the man page for unveil but it only gives programming > instructions. How can I disable unveil? > > > Kind regards, > Jonathan >
Disable Unveil
Hello Folks: I am using OpenBSD 6.9 GENERIC.MP#473 amd64 I need to disable unveil so I can load files into Firefox from other directories. I also cannot load my *.ppd when using my webbrowser in root. In the past, I have configured CUPS with the URL http://localhost:631. I need to be able to upload my *.ppd as my laser printer is not in the list of Xerox printers . I used this method in OpenBSD 6.8 and it worked fine. I read the man page for unveil but it only gives programming instructions. How can I disable unveil? Kind regards, Jonathan
Re: suggestions for USB printer (maybe even with scanner)?
Hi Claus: USB printers are kind of difficult to set up on OpenBSD. You can read the instructions on USB setup in /usr/local/share/doc/pkg-readmes/cups. I never get USB printing to work on my OpenBSD 6.6. Instead I used a wireless Xerox Laser printer. Here is how I did it for a Xerox 6022 laser printer. I paid $150.00 USD for my Xerox 6022 Phasor To get this laser printer running over WiFi do: 0) Connect the Xerox Phaser 6022 to your wireless access point. I did this using a spare windows computer. I suppose you can do this through the little setup screen, on top of the laser printer. 1) Install the CUPS package. 2) Add the following line to your /etc/rc.conf.local file: pkg_scripts=cupsd. Reboot the computer to make sure CUPS is running. See man (8) rc.conf.local 3) From the CD that came with my Phaser 6022, I removed the file xerox-phaser-6022_1.0-22_all.deb. 4) This is an archive file. It contains your *.ppd. Do $ ar x xerox-phaser-6022_1.0-22_all.deb (See man (1) ar) 5) After extraction you will see data.tar.gz. That tarball contains the Xerox_Phaser_6022.ppd. Get the *.ppd with $ tar zxvf data.tar.gz 6) Move Xerox_Phaser_6022.ppd to /root. 7) Start a web browser and point it to "http://localhost:631";. 8) Select add a printer and login. I had to use my user account to login. Logging in as root would not work. You CUPS will probe your wireless network and you should see an address like 192.168.1.X, where X can be any number. It will also identify the printer as Xerox Phaser 6022. 9) Since there is no entry for Xerox, load the Xerox_Phaser_6022.ppd. 10) Complete the CUPS setup and you are ready to print You have to use the absolute path name /usr/local/bin/lpr, /usr/local/bin/lprm, /usr/local/bin/lpq and /usr/local/bin/lp to print with CUPS. LibreOffice prints with out modification. You can print photos and graphics (*jpeg, *.png , etc) with Firefox xpdf reguires the following line in the .xpdfrc: # Set the default PostScript file or command. psFile "|/usr/local/bin/lpr" # Set the default PostScript paper size -- this can be letter, legal, # A4, or A3. You can also specify a paper size as width and height # (in points). Sent: Wednesday, February 05, 2020 at 12:56 PM From: "Claus Assmann" To: misc@openbsd.org Subject: suggestions for USB printer (maybe even with scanner)? I need to buy a printer to connect to one of my OpenBSD machines and I prefer a USB connection (as I don't control the network at my current place). Can I just buy any USB printer or are there printers which do not work with OpenBSD? If so, what do I need to check / avoid? Any suggestion for something "cheap" (to print just a few documents as needed)? I never had to buy a printer before, so I'm not familiar with this area -- if possible I would like to get a printer/scanner but I have no idea what I can buy locally :-( A HP laserjet (which was a gift but broke today) worked only with one of my OpenBSD machines which seemingly was related to the USB HW, using a printcap entry like this: usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D: -- Address is valid for this mailing list only, please do not reply to it direcly, but to the list.
Re: OpenBSD's extremely poor network/disk performance?
Sent: Tuesday, January 07, 2020 at 7:35 AM From: "Hamd" To: misc@openbsd.org Subject: OpenBSD's extremely poor network/disk performance? It's 2020 and it's -still- sad to see OpenBSD -still- has the lowest/poorest (general/overall) performance ever: https://www.phoronix.com/scan.php?page=article&item=8-linux-bsd&num=1 My reference is not -only- that url, of course. My reference is my OpenBSD, giving ~8 MB/s file transfer/network/disk speed. A Linux distro, on the same computer (dual boot), providing 89 MB/s speed. (Longest) sad story of the year: When it comes to OpenBSD; security - great! Performance - horrible! I truly wish it was much better.. -- I did a test using bonnie++ on my T420 ThinkPad. I have softdep inabled for my /Home filesystem Here are the results: Version 1.97 --Sequential Output-- --Sequential Input- --Random- Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- MachineSize K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP leo.cats.domain 8G 313 98 25039 5 7747 3 364 98 93950 31 86.6 10 Latency 49275us 315ms1024ms 58491us 76221us4459ms K/sec means KiloBytes/second. If am reading this correctly, it looks like reading at ~25 Mb/sec. Since it is sequential, it didn't use soft updates. My abbreviated dmesg: OpenBSD 6.6 (GENERIC.MP) #4: Wed Dec 18 06:44:06 MST 2019 clee...@leo.cats.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4156157952 (3963MB) avail mem = 4017496064 (3831MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.30 MHz, 06-2a-07 cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.92 MHz, 06-2a-07 cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0: naa.5000c500441a1cbd sd0: 305245MB, 512 bytes/sector, 625142448 sectors >From man 8 mount: softdep(FFS only) Mount the file system using soft dependencies. Instead of metadata being written immediately, it is written in an ordered fashion to keep the on-disk state of the file system consistent. This results in significant speedups for file create/delete operations. This option is ignored when using the -u flag and a file system is already mounted read/write. Here is what my fstab looks like removed.b none swap sw removed.a / ffs rw 1 1 removed.k /home ffs rw,nodev,nosuid,softdep 1 2 removed.d /tmp ffs rw,nodev,nosuid,softdep 1 2 removed.f /usr ffs rw,nodev,softdep 1 2 removed.g /usr/X11R6 ffs rw,nodev,softdep 1 2 removed.h /usr/local ffs rw,wxallowed,nodev,softdep 1 2 removed.j /usr/obj ffs rw,nodev,nosuid,softdep 1 2 removed.i /usr/src ffs rw,nodev,nosuid,softdep 1 2 removed.e /var ffs rw,nodev,nosuid 1 2
Error in chflags man page
I am posting this to misc as I am not sure if sending a bug reportthrough GMX mail will be parsed. To: b...@openbsd.org Subject: Small error in chflags man page From: Jonathan Cc: cleetus Reply-To: easyfashioncloth...@gmx.com>Synopsis: chflags man page has an error >Category: Documentation >Environment: System : OpenBSD 6.6 Details : OpenBSD 6.6 (GENERIC.MP) #1: Sun Oct 27 16:19:23 MDT 2019 clee...@leo.cats.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP Architecture: OpenBSD.amd64 Machine : amd64 >Description: The man page for chflags says to prepend "no" to one of the flags. To unset the nodump flag you would then do: $chlags nonodump file.txt However this does not work. >How-To-Repeat: leo$ ls -lohd mp3/ drwxr-xr-x 15 cleetus cleetus uchg,nodump 512B May 6 14:33 mp3/ leo$ chflags -R nonodump mp3/ chflags: invalid flag: nonodump leo$ chflags -R dump mp3/ leo$ ls -lohd mp3/ drwxr-xr-x 15 cleetus cleetus uchg 512B May 6 14:33 mp3/ leo$>Fix: The man page should say: Putting the letters no before a flag name causes the flag to be turned off except in the case of the nodump flag. To turn off nodump, use dump. Do not use nonodump. EXAMPLE: chflags dump somefile.txt
Re: Skype alternatives for OpenBSD
> Sent: Sunday, November 03, 2019 at 7:51 AM > From: "Stuart Longland" > To: misc@openbsd.org > Subject: Re: Skype alternatives for OpenBSD > > On 3/11/19 7:35 am, Jonathan Drews wrote: > > Is there an alternative to Skype that runs on OpenBSD? I looked in > > http://openports.se/ > > and didn't see anything. I want to take online classes nad need a video > > conferencingsoftware > > Do you need any video conferencing software (i.e. the group running the > online class is willing to switch to whatever you can get working?), or > do you specifically need Skype? The woman offering the class uses Skype so I am probably going to have to use Windows. I have a laptop with Windows 10 but I hardly ever use it. Windows is a big step down in performance when compared to OpenBSD. I thought Skype used a protocol that allowed other clients to connect to it then I read the Wikipedia page on Skype. The technology is owned by Microsoft. > -- > Stuart Longland (aka Redhatter, VK4MSL) > > I haven't lost my mind... > ...it's backed up on a tape somewhere. > >
Skype alternatives for OpenBSD
Is there an alternative to Skype that runs on OpenBSD? I looked in http://openports.se/ and didn't see anything. I want to take online classes nad need a video conferencingsoftware. --Kind regards,Jonathan
Re: When will be created a great desktop experience for OpenBSD?
> > ‐‐‐ Original Message ‐‐‐ > On Wednesday, May 8, 2019 12:23 AM, ropers wrote: > > > Tangentially related: Does anyone here routinely use the default fvwm? > > Yes, FVWM works just fine. > > Now for a really noobish question: Those that do, do you also launch > > graphical apps by typing something like this in xterm: > > > > > $ firefox > /dev/null 2>&1 & > > > I do: $ firefox I want to see the output. 0penBSD works just fine as a desktop.
Re: Xerox Phaser printing with CUPS
On Fri, Sep 06, 2019 at 12:57:07PM +0100, Raf Czlonka wrote: > Hi Jonathan, > > Doesn't the printer work with base lpd? Is CUPS necessary? > > Cheers, > > Raf I tried CUPS first and it discovered my printers IP address automatically. Plus LibreOffice printed documents with CUPS without needing any print configuration. I printed some spreadsheets out. They turned out fine.
Re: Xerox Phaser printing with CUPS
On Thu, Sep 05, 2019 at 09:51:47PM -0400, Ian Darwin wrote: > Nice post but: > > On 9/5/19 20:41, Jonathan Drews wrote: > > 2) Add the following line to your /etc/rc.conf.local file: > > pkg_scripts=cupsd. > > No need to manually edit that. Just do > > ?? doas rcctl enable cupsd > > > Reboot the computer to make sure CUPS is > > running. > > No need to reboot at that point. Just do: > > ?? doas rcctl start cupsd > I used the above configuration because the man page for rc.conf.local said to. From man (8) rc.conf: EXAMPLES Do not start the dhcpd(8) daemon when booting the system: dhcpd_flags=NO . . Run /etc/rc.d/messagebus then /etc/rc.d/cupsd with the start argument at boot time, and in reverse order with the stop argument at shutdown: pkg_scripts=messagebus cupsd I don't use the message bus so I just used: pkg_scripts=cupsd I use the advice of the man pages first and foremost. My main purpose in posting this was to show you where to get the *.ppd file. The other steps are just for context.
Re: Postscript printer recommendations
On Tue, Jul 16, 2019 at 11:18:16AM -0700, BSD user wrote: > > > On 7/16/19 11:03 AM, Jonathan Drews wrote: > > > > *** WARNING *** > > ulpt(4) needs to be disabled in the kernel (see config(8)) or the printer > > will not be available to libusb. > > > > > > I read the manpage for config (8) and I can't seem to find the appropriate > > configuration file in /usr/src/sys/arch/amd64/compile. I'll have to > > read up on compiling the kernel and modifying it's configuration file. > > Once again thanks for all the generous help form you guys. > > > > Regards, > > Jonathan > > > > I think you can temporarily disable ulpt via ukc, but I can't confirm as > I'm currently travelling. > > As sthen@ said (IIRC) earlier in the thread, if your printer has > networking (ethernet or wifi) support, it's usually easiest to just > print over the network as it saves having to mess with kernel configs > and device node permissions. > > Thanks for your suggestion. I got a Xerox Phaser 6022 Laser printer. It's working great. I made a separate post about configuring it using CUPS.
Xerox Phaser printing with CUPS
I am posting this to help others with setting up CUPS printing on OpenBSD. I bought a Xerox wireless color laser printer, a Phaser 6022. Being wireless gets around the USB difficulties. Here are the steps I took: 1) Install the CUPS package. 2) Add the following line to your /etc/rc.conf.local file: pkg_scripts=cupsd. Reboot the computer to make sure CUPS is running. 3) From the CD that came with my Phaser 6022, I removed the file xerox-phaser-6022_1.0-22_all.deb. 4) This is an archive file. It contains your *.ppd. Do $ ar x xerox-phaser-6022_1.0-22_all.deb (See man (1) ar) 5) After extraction you will see data.tar.gz. That tarball contains the Xerox_Phaser_6022.ppd. 6) Move Xerox_Phaser_6022.ppd to /root. 7) Start a web browser and point it to "http://localhost:631"; 8) Select add a printer and login. I had to use my user account to login. Logging in as root would not work. 9) Since there is no entry for Xerox, load the Xerox_Phaser_6022.ppd. I tested the printing and it works with the commannd line /usr/local/bin/lpr and it printed just fine. I also printed from LibreOffic and it worked fine too. You have to use the absolute path name /usr/local/bin/lpr, /usr/local/bin/lprm, /usr/local/bin/lpq and /usr/local/bin/lp to print with CUPS.
Re: Postscript printer recommendations
On Tue, Jul 16, 2019 at 10:36:03AM -0700, BSD user wrote: > > > On 7/16/19 4:13 AM, Jonathan Drews wrote: > > On Tue, Jul 16, 2019 at 08:06:20AM +, Roderick wrote: > > > > At this point, I am going to look for another printer that is more > > OpenBSD friendly. My Desjet 6940 is pretty old and the cartridges > > cost a lot (> USD $120.00) > > > > Kind regards, > > Jonathan > > > > I may just be a luddite, but after wasting multiple days messing around > with cups, ghostscript, hplip et al, I decided it was just easier to > print everything via postscript. > . . . > This solution doesn't offer the convenience of automagically converting > arbitrary file formats to PCL or whatever the printer format of the day > is, but it works for me without having to have add a ridiculous number > of packages and configs. > Thanks Roderick: I got to this instruction in the CUPS Readme: *** WARNING *** ulpt(4) needs to be disabled in the kernel (see config(8)) or the printer will not be available to libusb. I read the manpage for config (8) and I can't seem to find the appropriate configuration file in /usr/src/sys/arch/amd64/compile. I'll have to read up on compiling the kernel and modifying it's configuration file. Once again thanks for all the generous help form you guys. Regards, Jonathan
Re: Postscript printer recommendations
On Tue, Jul 16, 2019 at 08:06:20AM +, Roderick wrote: > > On Tue, 16 Jul 2019, Jonathan Drews wrote: > > > These are the notes I made for printing on my old OpenBSD computer: [...] > > It seems too complicated. In principle only the a field "if" to > printcap should be necessary. > > > 1) Go to http://openprinting.org/printer_list.cgi?make=HP > > and look for the Deskjet 6940 > > Unfortunately dj6940 uses hplip. A filter from HP. That is not > ghostscript. > > Does hplip run in OpenBSD? Do someone know how to configure a > printer with hplip? Ist it possible with lpd or only cups? > > Rodrigo > Hi Rodrigo: I spent most of tonight and into the early morning trying to get printing working on OpenBSD, without using CUPS. I downloaded and compiled foomatic-rip and got it installed. It worked but the *.ppd file could not be read. I got this message from lpd-errs: foomatic-rip version 4.0.12.246 running... called with arguments: '-w132', '-l66', '-i0', '-n', 'root', '-j', 'PrintTest.txt', '-h', +'jaguar.users.co', '/usr/local/sbin/hp-deskjet_6940_series.ppd . . . CUPS filter for this PPD file not found so the *.ppd files depend on CUPS, it seems. At this point, I am going to look for another printer that is more OpenBSD friendly. My Desjet 6940 is pretty old and the cartridges cost a lot (> USD $120.00) Kind regards, Jonathan
Re: Postscript printer recommendations
On Mon, Jul 15, 2019 at 04:49:47AM +, Roderick wrote: > > > On Sun, 14 Jul 2019, Adam Thompson wrote: > > > Nearly every printer sold today (including cheap inkjets AND b&w > > printers) have these tracking dots. [...] > > > The absolute highest resolution graphics today are mostly printed using > > ESC/P (if Epson), PCL3 (if HP), or whatever Canon uses (if Canon). [...] > > Thanks for the nice review! I thing the OP was interested in unexpensive > printing. There play some other factors a role: price of toner, price > of drum, if the cartridge contain both or not, if there are other > producers of the cartidge than the producer of the printer, etc. > > Rodrigo > Folks: Thanks for your helpful replies. I wanted to implement something like this. These are the notes I made for printing on my old OpenBSD computer: 1) Go to http://openprinting.org/printer_list.cgi?make=HP and look for the Deskjet 6940 *.ppd. Download the *.ppd from here: http://openprinting.org/show_printer.cgi?recnum=HP-DeskJet_6940 2) Install a2ps from packages. pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/a2ps*.tgz (where the * denotes the appropriate version. 3) pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/hpijs*.tgz to install the HP print driver 4) Copy HP-DeskJet_6940-hpijs.ppd to /usr/local/sbin/ 5) Modify your /etc/printcap so that it looks like this: lp|HP6940:\ :lp=/dev/ulpt0:\ :af=/usr/local/sbin/HP-DeskJet_6940-hpijs.ppd:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/output/lp:\ :lf=/var/spool/output/lp/log:\ :mx#0:\ :sh: This assumes that you are using a USB printer. 6) Go to /var/spool/output # cd /var/spool/output do: #mkdir lp then do: #chown daemon:daemon lp/ as root. 7) As root do: # touch /var/spool/output/lp/log 8) edit /etc/rc.conf by changing the variable lpd_flags=NO to lpd_flags="" 9) Add your hostname to /etc/hosts.lpd. Your entry should look similar to this: # $OpenBSD: hosts.lpd,v 1.2 1996/07/20 00:28:28 deraadt Exp $ # as described in lpd(8), place one legal access hostname per line my.computer.us 10) Reboot the computer and printing should be working. Unfortunately, the package foomatic-rip is no longer available. Once again, thanks for all the helpful advice. Kind Regards, Jonathan
Re: Postscript printer recommendations
On Sun, Jul 14, 2019 at 06:03:05AM +0200, Tomasz Rola wrote: > On Sat, Jul 13, 2019 at 08:06:07AM +0200, Jonathan Drews wrote: > > Hi Folks: I need some recommendations on what brand of printers will > > work > > with Ghostscript (Postscript). The cartridges for my 15 year old HP > > Deskjet have gotten too expensive. I know Xerox makes some > > Postscript printers. Are there any other manufactureres of Postscript > > printers? I am running OpenBSD 6.5 as a desktop. Any advice would be > > appreciated. Also, I just want to use printcap and lpd. I would like to > > avoid CUPS. Kind Regards, > > Jonathan > > I am not sure why you want to avoid CUPS. I have had difficulty getting cups to work in the past. I am just a simple desktop user, so I really don't have a great grasp of computer fundamentals. That begs the question as to why a desktop user would use a complicated system like OpenBSD. Short answer: 1)Speed and stability. OpenBSD is fast! What prompted this post was that my Windows 10 computer completely mangled a simple print job when I needed to get a shipment off. I am so done with things being constantly broken by Windows updates. 2) OpenBSD man pages are the best! 3) OpenBSD is very stable. 4) Utilities like dc, mg, pdksh, Vi and EMACS are indispensible. 5) Dump and restore are important because I have a lot of expensive embroidery files on my OpenBSD computer. 6) Xterm based Mplayer plays videos better than Windows! That is super important because I have a lot of video classes. So for all those reasons, I want to get printing working. I never could get CUPS working in previous versions of OpenBSD. Also, IIRC CUPS requires chown and chmod to certain /dev files. I am loathe to do that. I really don't want to mess with root file permissions. IMHO, if you need a service, then add your account to the appropriate group in /etc/groups. > In case it is not clear, Postscript is just a programming language > (stack based, somewhat like contorted Forth with graphics > instructions, go have a /usr/bin/less on your favourite *.ps file and > see). The printer "supporting Postscript" is just the one with CPU and > enough memory to run interpreter inside the box. > > Thus, just like one feeds txt file to raw printer and gets raw txt > display, so - I think - one feeds ps file and printer runs it, > resulting in printing page (consecutive pages). I believe no special > filter is necesary, because ps files start with magic line (well, some > do not, possibly those produced by some proprietary programs, but I > cannot recall right now) and chances are, PS-printer will recognize > such line and act accordingly. > > However, I have seen documents, even single pages, with so many > details that Ghostview running on relatively recent computer choked on > it. I have no idea how much memory PS-printer can have, but I would > not count on it having enough. My current desktop has 12gigs and four > cores (not very fast), but obviously only one is tired by GV. > > I would try going with CUPS and printer with good resolution. Unless > you have very specific needs requiring exactly such device (hard to > tell, specific people have specific needs). But why running an > interpreter and producing a bitmap onboard a printer would be better > than running an interpreter (possibly up-to-dated) and sending a > bitmap to the printer? Would one be able to spot a difference? Just > curious. > According to Xerox's web page on Postscript, they claim that Postscript gives higher quality renderings: "Unlike PCL, PostScript is device independent. This means that the PostScript language creates all of the print data and does not rely on the printer for print data. This allow the output to be consistent when printed on more than one type of printer or print device. Specifically, the graphic objects will be consistent and in some cases of higher quality than PCL." > -- > Regards, > Tomasz Rola > > -- > ** A C programmer asked whether computer had Buddha's nature. ** > ** As the answer, master did "rm -rif" on the programmer's home** > ** directory. And then the C programmer became enlightened... ** > ** ** > ** Tomasz Rola mailto:tomasz_r...@bigfoot.com **
Re: Postscript printer recommendations
On Sat, Jul 13, 2019 at 03:22:16PM -, Christian Weisgerber wrote: > On 2019-07-13, "Jonathan Drews" wrote: > > > Hi Folks: I need some recommendations on what brand of printers will > > work > > with Ghostscript (Postscript). The cartridges for my 15 year old HP > > Deskjet have gotten too expensive. I know Xerox makes some > > Postscript printers. Are there any other manufactureres of Postscript > > printers? > > Your question is confused and self-contradictory. > > A "Postscript printer" processes Postscript itself. > > By contrast, Ghostscript is used to process Postscript on the host > computer and send the raster data to a dumb printer that cannot > handle Postscript by itself. > > So which type of printer are you asking about? > > -- > Christian "naddy" Weisgerber na...@mips.inka.de > Thanks Christian: I am not familiar with Postsript printers. Thanks for correcting me. I want something that will work with Ghostscript and not depend on Printer Command Language (PCL). There are two reasons for this: The printcap is easy to configure. Here is a sample printcap I came across in misc: 1) lp|xerox|Xerox_WorkCenter_3225:\ :lp=/dev/ulpt0:\ :sh:sd=/var/spool/output/lpd:\ :lf=/var/log/lpd-errs: 2) I read that Postscript printers produce superior graphics (from Xerox website): Pros: Graphical objects are often more detailed. The same print file should print identically on two or more different print devices. (This most beneficial when used for printing drafts on one printer then sending out to a printing company for production.) Cons: Print processing can be slow. Not found in as many platforms as PCL. Print file and memory requirements are larger.
Postscript printer recommendations
Hi Folks: I need some recommendations on what brand of printers will work with Ghostscript (Postscript). The cartridges for my 15 year old HP Deskjet have gotten too expensive. I know Xerox makes some Postscript printers. Are there any other manufactureres of Postscript printers? I am running OpenBSD 6.5 as a desktop. Any advice would be appreciated. Also, I just want to use printcap and lpd. I would like to avoid CUPS. Kind Regards, Jonathan
Re: Segmentation fault / firefox (core dumped)
You can try Otter-browser. It is a fork of the Opera browser. My bank website and a few other websites refuse secure logins but in general it works well. I am using it on OpenBSD 6.1. It won't play videos until you install the necessary plugins. Here is how to fix it. >Description: The Otter Browser cannot play videos such as at YouTube >How-To-Repeat: Go to YouTube and try to play a video. You will get an error message. >Fix: The fix is to install gstreamer1-plugins-good-1.* and gstreamer1-plugins-libav-1.* as root do the following: # export PKG_PATH=https://mirrors.syringanetworks.net/pub/OpenBSD/6.1/packages/amd64/ # pkg_add gstreamer-plugins-good-0.10.31p18v0.tgz and # pkg_add gstreamer1-plugins-libav-1.10.4.tgz The above is only an example. Your OpenBSD system may have different versions. The Otter-Browser will now play videos On Jan 26, 2018 10:51 AM, "Kevin Chadwick" wrote: On Fri, 26 Jan 2018 17:13:47 + (GMT) > (1) "even *running* firefox on an i386 netbook with 1Gb of memory is > unbearable." We still have a 1.73 Ghz 1.5 Gigabyte Ram laptop that does OK with firefox. It is running fvwm 1 as a desktop though which requires clicks occasionally for some windows to show these days?
Fix for Otter Browser
Just a help here for those of you using the Otter-Browser on OpenBSD. Problem: YouTube and other videos will not play in the Otter-Browser. Solution: Install gstreamer1-plugins-good-1.* #pkg_add gstreamer1-plugins-good-1.* install gstreamer1-plugins-libav-1.* #pkg_add gstreamer1-plugins-libav-1.* Otter-Browser will now play YouTube and other videos -- Kind Regards, Jonathan
OpenBSD 6.0 Success
I just wanted to thank the developers and contributors for making OpenBSD possible. I have it installed on a Lenovo Thinkpad T420. Sound, X and the mouse are working great. The volume and brightness buttons work too. This was installed from the official CD set. OpenBSD 6.0 GENERIC.MP#1 amd64 OpenBSD 6.0 (GENERIC.MP) #1: Tue Sep 20 23:37:35 MDT 2016 clee...@moggy.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4156157952 (3963MB) avail mem = 4025724928 (3839MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (63 entries) bios0: vendor LENOVO version "83ET78WW (1.48 )" date 01/21/2016 bios0: LENOVO 4180AP3 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA SSDT SSDT UEFI UEFI UEFI acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EHC1(S3) EHC2(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 797.53 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX ,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A ES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 797.41 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX ,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A ES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 1, core 0, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 797.41 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX ,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A ES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 1, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 797.41 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX ,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A ES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpimcfg0 at acpi0 addr 0xf800, bus 0-63 acpiec0 at acpi0 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PEG_) acpiprt2 at acpi0: bus 2 (EXP1) acpiprt3 at acpi0: bus 3 (EXP2) acpiprt4 at acpi0: bus 5 (EXP4) acpiprt5 at acpi0: bus 13 (EXP5) acpicpu0 at acpi0: C3(200@109 io@0x416), C2(500@80 io@0x414), C1(1000@1 halt), PSS acpicpu1 at acpi0: C3(200@109 io@0x416), C2(500@80 io@0x414), C1(1000@1 halt), PSS acpicpu2 at acpi0: C3(200@109 io@0x416), C2(500@80 io@0x414), C1(1000@1 halt), PSS acpicpu3 at acpi0: C3(200@109 io@0x416), C2(500@80 io@0x414), C1(1000@1 halt), PSS acpipwrres0 at acpi0: PUBS, resource for EHC1, EHC2 acpitz0 at acpi0: critical temperature is 98 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB "PNP0303" at acpi0 not configured "LEN0015" at acpi0 not configured "SMO1200" at acpi0 not configured acpibat0 at acpi0: BAT0 model "42T4801" serial 9026 type LION oem "Panasonic" acpiac0 at acpi0: AC unit offline acpithinkpad0 at acpi0 "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured acpivideo0 at acpi0: VID_ acpivout at acpivideo0 not configured acpivideo1 at acpi0: VID_ cpu0: Enhanced SpeedStep 797 MHz: speeds: 2501, 2500, 2200, 2000, 1800, 1600, 1400, 1200, 1000, 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09 inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09 drm0 at inteldrm0 inteldrm0: msi inteldrm0: 1366x768 wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation) wsdisplay0: screen 1-5 added (std, vt100 emulation) "Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address 00:21:cc:6c:a2:4b ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 16 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 ad