Re: [patch] bgpctl more info in terse format
> If you do that, then you can also just parse the output of "bgpctl show > sum", no? > Of course but I would have to parse day/hour/minute/second. It is simpler if bgpd can give me the value straight. Denis
Re: remove password advice in afterboot.8 and passwd.1
On Sun, Apr 17, 2016 at 11:23:14PM -0400, Rob Pierce wrote: > Stop giving password advice. Instead, make a general statement about password > strength in passwd.1. > > Rob > i don;t see why we should not try to give advice. jmc > Index: afterboot.8 > === > RCS file: /cvs/src/share/man/man8/afterboot.8,v > retrieving revision 1.153 > diff -u -p -r1.153 afterboot.8 > --- afterboot.8 8 Dec 2015 13:36:05 - 1.153 > +++ afterboot.8 18 Apr 2016 03:18:04 - > @@ -103,10 +103,6 @@ Change the password for the root user. > (Note that throughout the documentation, the term > .Dq superuser > is a synonym for the root user.) > -Choose a password that has digits and special characters > -as well as from the upper and lower case alphabet. > -Do not choose any word in any language. > -It is common for an intruder to use dictionary attacks. > Type the following command to change it: > .Pp > .Dl $ doas passwd root > @@ -594,6 +590,7 @@ is contained within > .Xr doas 1 , > .Xr ksh 1 , > .Xr man 1 , > +.Xr passwd 1 , > .Xr pkg_add 1 , > .Xr ps 1 , > .Xr vi 1 , > > Index: passwd.1 > === > RCS file: /cvs/src/usr.bin/passwd/passwd.1,v > retrieving revision 1.44 > diff -u -p -r1.44 passwd.1 > --- passwd.1 26 Nov 2015 19:01:47 - 1.44 > +++ passwd.1 18 Apr 2016 03:18:42 - > @@ -49,13 +49,10 @@ First, the user is prompted for their cu > If the current password is correctly typed, a new password is requested. > The new password must be entered twice to avoid typing errors. > .Pp > -The new password should be at least six characters long and not > -purely alphabetic. > -Its total length must be less than > +Password strength is a function of length and complexity. > +The total password length must be less than > .Dv _PASSWORD_LEN > (currently 128 characters). > -A mixture of both lower and uppercase letters, numbers, and > -meta-characters is encouraged. > .Pp > The quality of the password can be enforced by specifying an external > checking program via the
Re: Quick APU2 review
On Mon, Apr 18, 2016 at 12:02 AM, Eric Furman wrote: > These requests for 'Real World' numbers are almost always > stupid, because the people asking are almost certain to never > need the max amount of bandwidth even a modest machine > can supply. Really? Are you actually considering this box > for use at the telecommunications provider you work for? Mm... I think you should have left out this paragraph. (1) It's true: technically most people really do not "need" computers. Some food, and a place to sleep - those are things people actually need. (2) That said, there are other circumstances where bandwidth or throughput might matter to someone's opinion of how well they are doing (for example when they have to deal with a number of local machines -- perhaps because they are working with groups of other people, or perhaps because they have a variety of machines at home -- and are moving large things between these machines). (3) Machine performance can matter even when neither bandwidth nor throughput is a bottleneck, if the machine is multipurpose. (4) Being stupid should be thought of as a part of the learning process - something to get over, certainly, but an aspect of something everyone has to go through. And, I imagine I am being stupid, here, myself - since I have nothing to contribute about the actual performance of any APU2 machines. So: if you want to tell me about how stupid I am, please do it by emailing me directly, and do not burden this list with your reactions to my stupidity. Thanks, -- Raul
Re: Quick APU2 review
On Sun, Apr 17, 2016, at 08:26 PM, Stuart Henderson wrote: > On 2016-04-15, Daniel Ouellet wrote: > >> That's nice. I don't have a ferrari, I have a rather basic truck. > >> > >> You are off topic. > > > > Sorry Theo, > > > > He asked for > > > > "real world through put?" > > > > I provided some to be helpful. > > From a different machine though. Compared to APU1 the APU2 has 4x the L2 > cache, RAM is clocked a quarter faster, twice the number of cpu cores, > and a few more cpu features (e.g. AES-NI, RDRAND). On the downside the > bios is still a bit in flux (note it should be possible to flash from > OpenBSD, but you need a patched version of pciutils). > > It depends on the workload but in certain cases these changes will make > a huge difference. > But his point is still valid. He knew he had an inferior machine but it was still able to saturate a 150Mb/s line. That means unless the person asking for throughput data is using a DS4/NA then he probably will be Okay. These requests for 'Real World' numbers are almost always stupid, because the people asking are almost certain to never need the max amount of bandwidth even a modest machine can supply. Really? Are you actually considering this box for use at the telecommunications provider you work for?
remove password advice in afterboot.8 and passwd.1
Stop giving password advice. Instead, make a general statement about password strength in passwd.1. Rob Index: afterboot.8 === RCS file: /cvs/src/share/man/man8/afterboot.8,v retrieving revision 1.153 diff -u -p -r1.153 afterboot.8 --- afterboot.8 8 Dec 2015 13:36:05 - 1.153 +++ afterboot.8 18 Apr 2016 03:18:04 - @@ -103,10 +103,6 @@ Change the password for the root user. (Note that throughout the documentation, the term .Dq superuser is a synonym for the root user.) -Choose a password that has digits and special characters -as well as from the upper and lower case alphabet. -Do not choose any word in any language. -It is common for an intruder to use dictionary attacks. Type the following command to change it: .Pp .Dl $ doas passwd root @@ -594,6 +590,7 @@ is contained within .Xr doas 1 , .Xr ksh 1 , .Xr man 1 , +.Xr passwd 1 , .Xr pkg_add 1 , .Xr ps 1 , .Xr vi 1 , Index: passwd.1 === RCS file: /cvs/src/usr.bin/passwd/passwd.1,v retrieving revision 1.44 diff -u -p -r1.44 passwd.1 --- passwd.126 Nov 2015 19:01:47 - 1.44 +++ passwd.118 Apr 2016 03:18:42 - @@ -49,13 +49,10 @@ First, the user is prompted for their cu If the current password is correctly typed, a new password is requested. The new password must be entered twice to avoid typing errors. .Pp -The new password should be at least six characters long and not -purely alphabetic. -Its total length must be less than +Password strength is a function of length and complexity. +The total password length must be less than .Dv _PASSWORD_LEN (currently 128 characters). -A mixture of both lower and uppercase letters, numbers, and -meta-characters is encouraged. .Pp The quality of the password can be enforced by specifying an external checking program via the
Re: man pages diff
> From: "Alexander Hall" > To: "Jason McIntyre" , "misc" > Cc: "Ingo Schwarze" > Sent: Saturday, April 9, 2016 4:15:10 AM > Subject: Re: man pages diff > On April 7, 2016 10:40:24 PM GMT+02:00, Jason McIntyre > wrote: > >On Thu, Apr 07, 2016 at 10:13:02PM +0200, Ingo Schwarze wrote: > >> Hi, > >> Jason McIntyre wrote on Thu, Apr 07, 2016 at 08:35:52PM +0100: > >> > On Thu, Apr 07, 2016 at 03:15:01PM -0400, Rob Pierce wrote: > >> >> Change "super user" to "superuser". > >> > hmm. you have the weight of the man pages behind you, since they > >> > overwhelmingly use "superuser". > >> In that case, ... > >> > the trouble is, i don;t think "super > >> > user" is wrong, and i'm reluctant to do this... I just noticed this in afterboot.1 under the "Root password" section: "Note that throughout the documentation, the term "superuser" is a synonym for the root user." Rob
Re: Quick APU2 review
On 2016-04-15, Daniel Ouellet wrote: >> That's nice. I don't have a ferrari, I have a rather basic truck. >> >> You are off topic. > > Sorry Theo, > > He asked for > > "real world through put?" > > I provided some to be helpful. >From a different machine though. Compared to APU1 the APU2 has 4x the L2 cache, RAM is clocked a quarter faster, twice the number of cpu cores, and a few more cpu features (e.g. AES-NI, RDRAND). On the downside the bios is still a bit in flux (note it should be possible to flash from OpenBSD, but you need a patched version of pciutils). It depends on the workload but in certain cases these changes will make a huge difference.
Re: Quick APU2 review
On 2016-04-15, Heine Lysemose wrote: > Can you give some real world through put? How much can you push through it > from a NAT’et device? And what is the device stats when doing so? This depends on several things. IPsec or not (and how is it configured). pppoe or routing or bridging. kern.pool_debug or not. PF rulesets. Packet sizes.
Re: Upgrade to 5.9 full disk encryption
 J o âl Sent from my Phone.  Original Message  From: Predrag Punosevap â Sent: Sunday, April 17, 2016 09:11 To: erling.westen...@gmail.com Cc: misc@openbsd.org Subject: Re: Upgrade to 5.m. J9 full disk encryption Erling Westenvik wrote: Tn. Iâ > On Sat, Apr 16, 2016 at 11:02:36PM -0400, Predrag Punosevac wrote: > > Bryan Everly wrote: > > > > > > Boot the installer. Exit to the shell. Then do: > > > > > > bioctl -c C -l /dev/sd0a softraid0 > > > > > > > Unless I did something really stupid I would swear that I upgraded fully > > encrypted laptop running 5.8 to 5.9 easier. > > > > I downloaded bsd.rd for 5.9 and put into /. Then I rebooted the laptop. > > When prompted for boot password and entered it. Then I booted from > > bsd.rd and chose the upgrade option. When upgrade manager asked me what > > is the installation disk I pointed it to the crypto disk. In my case > > physical device is > > > > /dev/sd0 > > > > and crypto device is /dev/sd1 > > > > No softraid passwords were needed. > > Actually it was but you referred to it as "boot password" above, > something which may sound confusing to new users. The correct term would > be "passphrase". There is no such thing as a "boot password" unless one > refers to the machine's BIOS password. > > After downloading a ramdisk (bsd.rd) kernel and after rebooting, I prefer > to exit to the boot(8) prompt when it asks for the passphrase: > > Using drive 0, partition 3. > Loading. > probing: pc0 apm pci mem[639K 254M a20=on] > disk: hd0+ sr0* > >> OpenBSD/i386 BOOT 3.21 > Passphrase: > ^^ > Then I enter: > > boot> boot sr0a:/bsd.rd > ^ > And the passphrase: > > Passphrase: > > I easily get distracted and this way I make sure that the system doesn't > start with the old system (bsd) kernel in case I miss the five second > delay offered by boot(8). Having to wait for a system to finish booting > just so you can log in and reboot again, can be an annoying waste of > time.. :-) > > Regards, > > Erling Hi Erling, Thanks for posting. I was very tired when I sent the original message and reading it over this morning I sounded like a drunken mathematician. Of course one has to enter the passphrase. The only step I avoided comparing to the original post was dropping into the shell before starting the upgrade process. For the people who might be reading these posts I was explicitly to state that I don't use a password to protect my BIOS. Predrag > > > After upgrade was finished I booted > > into 5.9 and did usual sysmerge, cleaning files and upgrading packages. > > > > Best, > > Predrag [demime 1.01d removed an attachment of type image/png] [demime 1.01d removed an attachment of type application/octet-stream] [demime 1.01d removed an attachment of type application/octet-stream]
Re: jabber client with conference history saving
On 17 Apr 2016, Joseph Oficre wrote: > Can someone give me an advice about xmpp client on OpenBSD, Im using Psi > for now, but it doesnt save messages history properly (errors only). > So i want to try another one. > Doesnt matter if console or gui, just with chatroom/private chats history > saving ability. On the console irssi is pretty featureful and the irssi-xmpp plugin is packaged for OpenBSD. That's been working well for me. pidgin's always an option if you prefer GUI. I think I used to save all chat logs with that. -- Mark
Re: jabber client with conference history saving
Le 2016-04-17 21:42, Joseph Oficre a écrit : Hello, @misc. Can someone give me an advice about xmpp client on OpenBSD, Im using Psi for now, but it doesnt save messages history properly (errors only). So i want to try another one. Doesnt matter if console or gui, just with chatroom/private chats history saving ability. OpenBSD-current. Hello, I am using emacs with jabber.el as xmpp client and it works pretty well. You can configure it to log history of chats and groupchats as explained here : http://emacs-jabber.sourceforge.net/manual-0.8.0/Message-history.html#Message-history Kind regards
jabber client with conference history saving
Hello, @misc. Can someone give me an advice about xmpp client on OpenBSD, Im using Psi for now, but it doesnt save messages history properly (errors only). So i want to try another one. Doesnt matter if console or gui, just with chatroom/private chats history saving ability. OpenBSD-current.
Re: library-specs(7) erratum
On Sat, Apr 16, 2016 at 01:44:27AM -0600, Bob NW8L wrote: > Hello, > > Now that architectures without shared libraries aren't supported [1], > shouldn't the reference to them should be removed from library-specs(7)? > fixed, thanks. jmc > Index: library-specs.7 > === > RCS file: /cvs/src/share/man/man7/library-specs.7,v > retrieving revision 1.11 > diff -u -p -r1.11 library-specs.7 > --- library-specs.7 27 Sep 2015 14:27:52 - 1.11 > +++ library-specs.7 16 Apr 2016 07:18:00 - > @@ -92,16 +92,6 @@ If a specific major number is needed, us > If the minor component is left empty, any minor will do. > If both components are left empty, any version will do. > .Pp > -If a given architecture does not support shared libraries, all > -.Ev LIB_DEPENDS > -will be turned into simple > -.Ev BUILD_DEPENDS > -checks, and so, > -failure to mention > -.Ev RUN_DEPENDS > -if the port needs anything beyond libraries from the dependent port will > -lead to strange errors on such architectures. > -.Pp > Most specifications won't mention a > .Pa path : > .Xr resolve-lib 1 > > [1] http://article.gmane.org/gmane.os.openbsd.cvs/154333
Re: new
Hi, Tito Mari Francis Escano wrote on Sat, Apr 16, 2016 at 11:28:29PM +0800: > 0 > C Philippines > P National Capital Region > T Taguig City > Z 1633 > O EDGEKIT Computer Systems > I Tito Mari Francis H. Escano > A Block 1 Lot 24 Zone 1 Central Bicutan > M titomarifran...@edgekit.com > U http://www.edgekit.com/ > B +63 916 640 2020 Committed. Good luck for your projects! Ingo > X N/A > N EDGEKIT Computer Systems is proudly the only company in the Philippines > that provides professional support, consultancy and training services on > OpenBSD and PostgreSQL, the best in their class free and open source > enterprise platforms. > > EDGEKIT Computer Systems provides small and medium scale businesses > with simple, secure and functional solutions built on our href='http://www.edgekit.com/p/our-offerings_6.html'>Weapon of > Choice selection of secure platforms, tools, methodologies and > resources to give them the competitive edge. P.S. I shortened the desciption a bit, though, cutting it down to substantial information and dropping arguable claims and buzzwords. No other company has two paragraphs of notes, and there does appear to be one other OpenBSD consultant in the National Capital Region - not sure whether he regards himself as as a company, but let's simply avoid any possible argument over it.
Re: smtpd : reject with a message
On Wed, Apr 13, 2016 at 06:14:36PM +, Peter Fraser wrote: > Is there any method of added extra information when rejecting an email with > smtpd > > I am looking for an equivalent effect to the .REDIRECT or error message in > sendmail's virtualusertable > > for example I had the following in sendmail's virtualusertable. > > @thinkage.on.ca error:5.1.1:553 " Please use > thinkage.ca not > thinkage.on.ca" > > and > > t...@thinkage.ca supp...@thinkage.ca.REDIRECT > from aliases(5): error:code message A status code and message to return. The code must be 3 digits, starting 4XX (TempFail) or 5XX (PermFail). The message must be present and can be freely chosen. note that only single-line messages are supported (for now ?) -- Gilles Chehade https://www.poolp.org @poolpOrg
Re: openbsd vs freebsd NAT performance
> hmm ... in the end i see two big "problems" of OpenBSD: > a) SMP of network stack/pf. > b) a modern file system like ZFS or Hammer. Yay! I just won a bet (from a friend of mine) that this was going to turn into a troll. Thanks for the confirmation, dude! (My friend is not happy with you, though. ;)
[patch] bgpctl more info in terse format
Hello, When monitoring my bgpd, I need to check the session duration and the number of prefixes. Here is a patch that add these informations to "bgpctl show sum terse" Before : # bgpctl show sum terse 10.20.30.254 65003 Established After : # bgpctl show sum terse 10.20.30.254 65003 Established 10 3 Denis Index: bgpctl/bgpctl.c === RCS file: /cvs/src/usr.sbin/bgpctl/bgpctl.c,v retrieving revision 1.187 diff -u -p -r1.187 bgpctl.c --- bgpctl/bgpctl.c 5 Dec 2015 13:17:05 - 1.187 +++ bgpctl/bgpctl.c 17 Apr 2016 15:55:59 - @@ -186,11 +186,9 @@ main(int argc, char *argv[]) /* NOTREACHED */ case SHOW: case SHOW_SUMMARY: - imsg_compose(ibuf, IMSG_CTL_SHOW_NEIGHBOR, 0, 0, -1, NULL, 0); show_summary_head(); - break; case SHOW_SUMMARY_TERSE: - imsg_compose(ibuf, IMSG_CTL_SHOW_TERSE, 0, 0, -1, NULL, 0); + imsg_compose(ibuf, IMSG_CTL_SHOW_NEIGHBOR, 0, 0, -1, NULL, 0); break; case SHOW_FIB: if (!res->addr.aid) { @@ -584,8 +582,9 @@ show_summary_terse_msg(struct imsg *imsg p = imsg->data; s = fmt_peer(p->conf.descr, &p->conf.remote_addr, p->conf.remote_masklen, nodescr); - printf("%s %s %s\n", s, log_as(p->conf.remote_as), - p->conf.template ? "Template" : statenames[p->state]); + printf("%s %s %s %llu %u\n", s, log_as(p->conf.remote_as), + p->conf.template ? "Template" : statenames[p->state], + (time(NULL) - p->stats.last_updown), p->stats.prefix_cnt); free(s); break; case IMSG_CTL_END: Index: bgpd/bgpd.h === RCS file: /cvs/src/usr.sbin/bgpd/bgpd.h,v retrieving revision 1.292 diff -u -p -r1.292 bgpd.h --- bgpd/bgpd.h 6 Nov 2015 16:23:26 - 1.292 +++ bgpd/bgpd.h 17 Apr 2016 15:55:59 - @@ -374,7 +374,6 @@ enum imsg_type { IMSG_CTL_SHOW_RIB_COMMUNITY, IMSG_CTL_SHOW_NETWORK, IMSG_CTL_SHOW_RIB_MEM, - IMSG_CTL_SHOW_TERSE, IMSG_CTL_SHOW_TIMER, IMSG_CTL_LOG_VERBOSE, IMSG_CTL_SHOW_FIB_TABLES, Index: bgpd/control.c === RCS file: /cvs/src/usr.sbin/bgpd/control.c,v retrieving revision 1.82 diff -u -p -r1.82 control.c --- bgpd/control.c 5 Dec 2015 18:28:04 - 1.82 +++ bgpd/control.c 17 Apr 2016 15:55:59 - @@ -245,7 +245,6 @@ control_dispatch_msg(struct pollfd *pfd, case IMSG_CTL_SHOW_RIB_MEM: case IMSG_CTL_SHOW_RIB_COMMUNITY: case IMSG_CTL_SHOW_NETWORK: - case IMSG_CTL_SHOW_TERSE: case IMSG_CTL_SHOW_TIMER: break; default: @@ -306,12 +305,6 @@ control_dispatch_msg(struct pollfd *pfd, imsg_ctl_rde(IMSG_CTL_END, imsg.hdr.pid, NULL, 0); } - break; - case IMSG_CTL_SHOW_TERSE: - for (p = peers; p != NULL; p = p->next) - imsg_compose(&c->ibuf, IMSG_CTL_SHOW_NEIGHBOR, - 0, 0, -1, p, sizeof(struct peer)); - imsg_compose(&c->ibuf, IMSG_CTL_END, 0, 0, -1, NULL, 0); break; case IMSG_CTL_FIB_COUPLE: case IMSG_CTL_FIB_DECOUPLE:
Re: openbsd vs freebsd NAT performance
> So, please can you say me how to activate SMP pf support in OpenBSD ? You can write the code for SMP, test and compile it at home, then send it to the project for commit. The other way is sponsor someone to write it. > hmm ... in the end i see two big "problems" of OpenBSD: > a) SMP of network stack/pf. > b) a modern file system like ZFS or Hammer. Somebody lied to you. There is no problem with OpenBSD, it is doing fine.
Re: amd5.9 mp softdep bufcachepercent
On Sun, Apr 17, 2016 at 12:43:27AM -0400, Predrag Punosevac wrote: > I rm -rf /usr/ports on the newly upgraded laptop running generic 5.9 amd > MP kernel. /usr is mounted with the option softdep. It took ages for rm > to finish. Laptop has 4GB of RAM. The HDD is SSD with the capacity 931 > GB and fully encrypted. > > Playing little bit with > > sysctl bufcacheparcent > > and BUFCACHEPERCENT in > > /sys/conf/param.c > > I noticed that it is at least somewhat faster using value 10 instead of > default value 20. Has anybody noticed anything strange with rm and du -h > -s on the directories with lots of small files. Any suggestions how to > speed things up? > > Predrag I don't know if you have enough unallocated space to do it, but this is why it's recommended to have /usr/ports (and /usr/src, and maybe /usr/ports/pobj, etc) as separate partitions: newfs is much quicker than rm -rf. If you have enough room left in your disks you can throw in an extra partition and mount /usr/ports there (incidentally this is also why sometimes it's a good idea to leave some free space when setting up your disks in the first place, in case you find out you need an extra partition later on). --
Re: assigning ipv6 addresses to interfaces
Stuart Henderson @ 2016-02-01T11:44:49 +0100: > On 2016-02-01, LÉVAI Dániel wrote: > > Interesting. I even tried to specifically request a prefix with > > ia_pd 1/::/64 [...] > > ... but alas it didn't make any difference. > > > > Could it be that this is the error of dhcpcd's implementation of the > > request, and not the ISP's? Before I try the customer services, I just > > want to make sure this is not PEBKAC. > > I think the ISP are probably only handing out one /64, and while I'm > not sure how dhcpcd copes in that situation (you could ask on the dhcpcd > mailing list), it's probably doing the best it can under the conditions > (but not good enough for SLAAC). > > Our tcpdump(8) doesn't decode dhcpv6 but if you use e.g. wireshark > you'll see something like this in the ISP's reply, > > # tshark -i pppoe1 -V port 546 or port 547 > [...] > Identity Association for Prefix Delegation > Option: Identity Association for Prefix Delegation (25) > Length: 41 > Value: 0002001a0019... > IAID: 0002 > T1: infinity > T2: infinity > IA Prefix > Option: IA Prefix (26) > Length: 25 > Value: 302a028011700300... > Preferred lifetime: infinity > Valid lifetime: infinity > Prefix length: 48 > Prefix address: 2a02:8011:7003:: > > And in your case I think it will probably have "Prefix length: 64". > If so, I'd start by asking the ISP if they can configure things to > let you have a /48 or /56. And that is exactly what's happening. However, with dhcpcd 6.10.1, I could get away with configuring `ia_pd 1 em1/0`, and just distributing my /64, upgrading the port to 6.10.2 resulted in this: Issue: http://roy.marples.name/projects/dhcpcd/info/7461677bd0 Patch: http://roy.marples.name/projects/dhcpcd/info/59cdbb6e777c4bec I'm currently using that patch on top of the 6.10.2 port from -current, and getting the same result as before. (Just in case someone will run into this) Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: diff for help.1
On Fri, Apr 15, 2016 at 07:42:05PM -0400, Rob Pierce wrote: > On Fri, Apr 15, 2016 at 04:16:59PM -0400, Rob Pierce wrote: > > Recent FAQ cleanup lost a reference to mg(1) (section 2.2). > > > > Text editors seem fundamental enough to include in help.1. > > > > While here, make consistent use of references to command arguments (Ar). > > > > Rob > > Sorry - clean diff with stray comments removed. > > Rob > committed, thanks. jmc > Index: help.1 > === > RCS file: /cvs/src/share/man/man1/help.1,v > retrieving revision 1.1 > diff -u -p -r1.1 help.1 > --- help.127 Mar 2015 01:59:26 - 1.1 > +++ help.115 Apr 2016 23:40:33 - > @@ -88,7 +88,7 @@ in the system password file > .It Cm man > Interface to the system manual pages. > For any of the commands listed below, type > -.Ic man > +.Ic man Ar command > for detailed information on what it does and how to use it. > .It Cm pwd > Print working directory. > @@ -109,12 +109,18 @@ Type > for a detailed listing. > .It Cm cat > Although it has many more uses, > -.Ic cat filename > +.Ic cat Ar filename > will print the contents of a plain-text file to the screen. > +.It Cm vi > +Edit text files. > +For example, > +.Ic vi Ar filename . > +See also > +.Xr mg 1 . > .It Cm mkdir > Make a directory. > For example, > -.Ic mkdir foobar . > +.Ic mkdir Ar dirname . > .It Cm rmdir > Remove a directory. > .It Cm rm
Re: Upgrade to 5.9 full disk encryption
Erling Westenvik wrote: > On Sat, Apr 16, 2016 at 11:02:36PM -0400, Predrag Punosevac wrote: > > Bryan Everly wrote: > > > > > > Boot the installer. Exit to the shell. Then do: > > > > > > bioctl -c C -l /dev/sd0a softraid0 > > > > > > > Unless I did something really stupid I would swear that I upgraded fully > > encrypted laptop running 5.8 to 5.9 easier. > > > > I downloaded bsd.rd for 5.9 and put into /. Then I rebooted the laptop. > > When prompted for boot password and entered it. Then I booted from > > bsd.rd and chose the upgrade option. When upgrade manager asked me what > > is the installation disk I pointed it to the crypto disk. In my case > > physical device is > > > > /dev/sd0 > > > > and crypto device is /dev/sd1 > > > > No softraid passwords were needed. > > Actually it was but you referred to it as "boot password" above, > something which may sound confusing to new users. The correct term would > be "passphrase". There is no such thing as a "boot password" unless one > refers to the machine's BIOS password. > > After downloading a ramdisk (bsd.rd) kernel and after rebooting, I prefer > to exit to the boot(8) prompt when it asks for the passphrase: > > Using drive 0, partition 3. > Loading. > probing: pc0 apm pci mem[639K 254M a20=on] > disk: hd0+ sr0* > >> OpenBSD/i386 BOOT 3.21 > Passphrase: > ^^ > Then I enter: > > boot> boot sr0a:/bsd.rd > ^ > And the passphrase: > > Passphrase: > > I easily get distracted and this way I make sure that the system doesn't > start with the old system (bsd) kernel in case I miss the five second > delay offered by boot(8). Having to wait for a system to finish booting > just so you can log in and reboot again, can be an annoying waste of > time.. :-) > > Regards, > > Erling Hi Erling, Thanks for posting. I was very tired when I sent the original message and reading it over this morning I sounded like a drunken mathematician. Of course one has to enter the passphrase. The only step I avoided comparing to the original post was dropping into the shell before starting the upgrade process. For the people who might be reading these posts I was explicitly to state that I don't use a password to protect my BIOS. Predrag > > >After upgrade was finished I booted > > into 5.9 and did usual sysmerge, cleaning files and upgrading packages. > > > > Best, > > Predrag
Re: owncloud - external files directory
It sounds really nice, ill try, thank you a lot! 2016-04-17 15:07 GMT+03:00 Erling Westenvik : > On Sun, Apr 17, 2016 at 02:20:23PM +0300, Joseph Oficre wrote: > > I want to store all my files centralized. I have some windows pc's at > home, > > some notebooks and my work laptop. So i want to be able to put and take > the > > files from any of this PC's. But /var/ partition only 100gb size, so i > > think it's good idea to move datadir to /home/ partition(or even to > > external large disk, that i can just put in my pocket) > > Then I would recommend an external disk and mount it somewhere inside > the chroot, like /var/www/data. I have a setup like that on an old > OpenBSD server running owncloud version 6-or-something. > > $ cat /etc/fstab | grep data > f1e6a6c8d1b4fc94.p /var/www/data ffs rw,nodev,nosuid 1 2 > > $ mount > ... > /dev/sd3p on /var/www/data type ffs (local, nodev, nosuid) > ... > > Regards, > > Erling > > > > > 2016-04-17 14:12 GMT+03:00 Erling Westenvik >: > > > > > On Sun, Apr 17, 2016 at 12:40:59PM +0300, Joseph Oficre wrote: > > > > Hello misc. > > > > I've installed ownCloud with this guide > > > > > > > > https://github.com/reyk/httpd/wiki/Running-ownCloud-with-httpd-on-OpenBSD > > > > > > > > Everything looks fine, but i want to store all my files not in > > > > /var/www/owncloud/data but in /home/USER/owncloud/data/ > > > > Moving datadir to home and reconfiguring config/config.php > > > "datadirectory" > > > > did nothing, only error: > > > > > > httpd(8) is chroot(8)'ed to /var/www by default. Your options include: > > > > > > - disabling chroot, which isn't a very recommended option, or > > > - set up /home as the new chroot, which probably isn't a very > recommended > > > option either. > > > > > > What are you trying to achive? > > > > > > Regards, > > > > > > Erling > > > > > > > > > > > PHP message: > > > > > > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"index","message":"Exception: > > > > > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > > > > to connect to the database: An exception occured in driver: > > > SQLSTATE[HY000] > > > > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > > > > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > > > > OCDBConnection->connect()\\n#1 > > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > > > > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', > > > Array, > > > > Array)\\n#2 > > > > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > > > > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > > > > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > > > > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > > > > OCDBConnection->__cons... > > > > PHP message: > > > > > > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: > > > > > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > > > > to connect to the database: An exception occured in driver: > > > SQLSTATE[HY000] > > > > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > > > > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > > > > OCDBConnection->connect()\\n#1 > > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > > > > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', > > > Array, > > > > Array)\\n#2 > > > > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > > > > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > > > > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > > > > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > > > > OCDBConnection->__const... > > > > PHP message: > > > > > > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: > > > > > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > > > > to connect to the database: An exception occured in driver: > > > SQLSTATE[HY000] > > > > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > > > > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > > > > OCDBConnection->connect()\\n#1 > > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > > > > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', > > > Array, > > > > Array)\\n#2 > > > > > > > > \\\/owncloud\\\/3rdparty\\
Re: scanner HP scanjet4370 not working
On 2016-04-17 13:03, EdaSky wrote: I have scanner HP scanjet4370 tested on 5.8 RELEASE and 5.9 GENERIC.MP#1690 i386 with the same result scanner is detected $ dmesg OpenBSD 5.9-current (GENERIC.MP) #1690: Thu Mar 31 09:41:46 MDT 2016 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Genuine Intel(R) CPU U2500 @ 1.20GHz ("GenuineIntel" 686-class) 1.20 GHz ... ugen1 at uhub0 port 5 "hewlett packard hp scanjet" rev 2.00/1.00 addr 2 $ scanimage -L device `hp3900:libusb:000:002' is a Hewlett-Packard Scanjet 4370 flatbed scanner But the scan does not work. When I start previewing or scanning. Head will start move but stops immediately. $ scanimage -T scanimage: scanning image of size 433x590 pixels at 24 bits/pixel scanimage: acquiring RGB frame, 8 bits/sample scanimage: reading one scanline, 1299 bytes... FAIL Error: End of file reached $ hp-scan HP Linux Imaging and Printing System (ver. 3.16.3) Scan Utility ver. 2.2 .. warning: No destinations specified. Adding 'file' destination by default. Using device hp3900:libusb:000:002 Opening connection to device... Resolution: 300dpi Mode: gray Compression: JPEG Scan area (mm): Top left (x,y): (0.00mm, 0.00mm) Bottom right (x,y): (220.00mm, 300.00mm) Width: 220.00mm Height: 300.00mm Destination(s): file Output file: warning: File destination enabled with no output file specified. Setting output format to PNG for greyscale mode. warning: Defaulting to '/home/edasky/hpscan001.png'. Warming up... Scanning... Reading data: [\ ] 0% error: No data read. Closing device. xane the same result. Please what should I even try? full debug $ export SANE_DEBUG_HP3900=4 http://185.47.222.11/scanner-debug.txt $ pkg_info on snapshot sane-backends-1.0.25p2 xsane-0.999p2 $ pkg_info on 5.8 release sane-backends-1.0.24p6 xsane-0.999p2 On Debian linux with sane-backends-1.0.24 and xsane-0.998 works fine. Don't have OpenBSD here but have you a) Read /usr/local/share/doc/pkg_readme/cups and any hplip documents? b) disabled ulpt in the kernel? Good Luck Moss
Re: owncloud - external files directory
On 04/17/16 13:20, Joseph Oficre wrote: > I want to store all my files centralized. I have some windows pc's at home, > some notebooks and my work laptop. So i want to be able to put and take the > files from any of this PC's. But /var/ partition only 100gb size, so i > think it's good idea to move datadir to /home/ partition(or even to > external large disk, that i can just put in my pocket) You could set chroot voor httpd and php-fpm to /home/USER/owncloud. This however would mean that both daemons are stuck within that directory. Keep user-permissions in mind when doing this. See httpd.conf(5) and /etc/php-fpm.conf. > > 2016-04-17 14:12 GMT+03:00 Erling Westenvik : > >> On Sun, Apr 17, 2016 at 12:40:59PM +0300, Joseph Oficre wrote: >>> Hello misc. >>> I've installed ownCloud with this guide >>> >> https://github.com/reyk/httpd/wiki/Running-ownCloud-with-httpd-on-OpenBSD >>> >>> Everything looks fine, but i want to store all my files not in >>> /var/www/owncloud/data but in /home/USER/owncloud/data/ >>> Moving datadir to home and reconfiguring config/config.php >> "datadirectory" >>> did nothing, only error: >> >> httpd(8) is chroot(8)'ed to /var/www by default. Your options include: >> >> - disabling chroot, which isn't a very recommended option, or >> - set up /home as the new chroot, which probably isn't a very recommended >> option either. >> >> What are you trying to achive? >> >> Regards, >> >> Erling >> >>> >>> PHP message: >>> >> {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"index","message":"Exception: >>> {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed >>> to connect to the database: An exception occured in driver: >> SQLSTATE[HY000] >>> [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 >>> >> \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): >>> OCDBConnection->connect()\\n#1 >>> \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): >>> DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', >> Array, >>> Array)\\n#2 >>> >> \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): >>> OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 >>> \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): >>> DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 >>> >> \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): >>> OCDBConnection->__cons... >>> PHP message: >>> >> {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: >>> {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed >>> to connect to the database: An exception occured in driver: >> SQLSTATE[HY000] >>> [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 >>> >> \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): >>> OCDBConnection->connect()\\n#1 >>> \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): >>> DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', >> Array, >>> Array)\\n#2 >>> >> \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): >>> OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 >>> \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): >>> DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 >>> >> \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): >>> OCDBConnection->__const... >>> PHP message: >>> >> {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: >>> {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed >>> to connect to the database: An exception occured in driver: >> SQLSTATE[HY000] >>> [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 >>> >> \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): >>> OCDBConnection->connect()\\n#1 >>> \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): >>> DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', >> Array, >>> Array)\\n#2 >>> >> \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): >>> OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 >>> \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): >>> DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 >>> >> \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): >>> OCDBConnection->__const... >>> >>> PHP message: >>> >> {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"PHP","message":"touch(): >>> Unable to create file \/home\/usf\/owncloud\/data\/owncloud.log because >> No >>> such file or directory at >
Re: owncloud - external files directory
El Sun, 17 Apr 2016 14:20:23 +0300, Joseph Oficre escribió: > I want to store all my files centralized. I have some windows pc's at > home, > some notebooks and my work laptop. So i want to be able to put and take > the files from any of this PC's. But /var/ partition only 100gb size, so > i think it's good idea to move datadir to /home/ partition(or even to > external large disk, that i can just put in my pocket) If you only want to upload and download, a more simple protocol such as FTP or SFTP might be easier to set and more secure. You can use your / home for keeping the files easily with those. Nowadays, there are quality clients for every popular platform, even in default installs. If you plan to have much Owncloud service data, your best option is to make your /var larger. Seriously. No point in messing with chroot or binded mounts, online mounts or whatever if you can just remake the filesystem layout.
Re: owncloud - external files directory
On Sun, Apr 17, 2016 at 02:20:23PM +0300, Joseph Oficre wrote: > I want to store all my files centralized. I have some windows pc's at home, > some notebooks and my work laptop. So i want to be able to put and take the > files from any of this PC's. But /var/ partition only 100gb size, so i > think it's good idea to move datadir to /home/ partition(or even to > external large disk, that i can just put in my pocket) Then I would recommend an external disk and mount it somewhere inside the chroot, like /var/www/data. I have a setup like that on an old OpenBSD server running owncloud version 6-or-something. $ cat /etc/fstab | grep data f1e6a6c8d1b4fc94.p /var/www/data ffs rw,nodev,nosuid 1 2 $ mount ... /dev/sd3p on /var/www/data type ffs (local, nodev, nosuid) ... Regards, Erling > > 2016-04-17 14:12 GMT+03:00 Erling Westenvik : > > > On Sun, Apr 17, 2016 at 12:40:59PM +0300, Joseph Oficre wrote: > > > Hello misc. > > > I've installed ownCloud with this guide > > > > > https://github.com/reyk/httpd/wiki/Running-ownCloud-with-httpd-on-OpenBSD > > > > > > Everything looks fine, but i want to store all my files not in > > > /var/www/owncloud/data but in /home/USER/owncloud/data/ > > > Moving datadir to home and reconfiguring config/config.php > > "datadirectory" > > > did nothing, only error: > > > > httpd(8) is chroot(8)'ed to /var/www by default. Your options include: > > > > - disabling chroot, which isn't a very recommended option, or > > - set up /home as the new chroot, which probably isn't a very recommended > > option either. > > > > What are you trying to achive? > > > > Regards, > > > > Erling > > > > > > > > PHP message: > > > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"index","message":"Exception: > > > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > > > to connect to the database: An exception occured in driver: > > SQLSTATE[HY000] > > > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > > > OCDBConnection->connect()\\n#1 > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > > > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', > > Array, > > > Array)\\n#2 > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > > > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > > > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > > > OCDBConnection->__cons... > > > PHP message: > > > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: > > > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > > > to connect to the database: An exception occured in driver: > > SQLSTATE[HY000] > > > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > > > OCDBConnection->connect()\\n#1 > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > > > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', > > Array, > > > Array)\\n#2 > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > > > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > > > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > > > OCDBConnection->__const... > > > PHP message: > > > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: > > > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > > > to connect to the database: An exception occured in driver: > > SQLSTATE[HY000] > > > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > > > OCDBConnection->connect()\\n#1 > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > > > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', > > Array, > > > Array)\\n#2 > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > > > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > > > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > > > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctri
Re: Upgrade to 5.9 full disk encryption
On Sat, Apr 16, 2016 at 11:02:36PM -0400, Predrag Punosevac wrote: > Bryan Everly wrote: > > > > Boot the installer. Exit to the shell. Then do: > > > > bioctl -c C -l /dev/sd0a softraid0 > > > > Unless I did something really stupid I would swear that I upgraded fully > encrypted laptop running 5.8 to 5.9 easier. > > I downloaded bsd.rd for 5.9 and put into /. Then I rebooted the laptop. > When prompted for boot password and entered it. Then I booted from > bsd.rd and chose the upgrade option. When upgrade manager asked me what > is the installation disk I pointed it to the crypto disk. In my case > physical device is > > /dev/sd0 > > and crypto device is /dev/sd1 > > No softraid passwords were needed. Actually it was but you referred to it as "boot password" above, something which may sound confusing to new users. The correct term would be "passphrase". There is no such thing as a "boot password" unless one refers to the machine's BIOS password. After downloading a ramdisk (bsd.rd) kernel and after rebooting, I prefer to exit to the boot(8) prompt when it asks for the passphrase: Using drive 0, partition 3. Loading. probing: pc0 apm pci mem[639K 254M a20=on] disk: hd0+ sr0* >> OpenBSD/i386 BOOT 3.21 Passphrase: ^^ Then I enter: boot> boot sr0a:/bsd.rd ^ And the passphrase: Passphrase: I easily get distracted and this way I make sure that the system doesn't start with the old system (bsd) kernel in case I miss the five second delay offered by boot(8). Having to wait for a system to finish booting just so you can log in and reboot again, can be an annoying waste of time.. :-) Regards, Erling >After upgrade was finished I booted > into 5.9 and did usual sysmerge, cleaning files and upgrading packages. > > Best, > Predrag
Re: openbsd vs freebsd NAT performance
hmm ... in the end i see two big "problems" of OpenBSD: a) SMP of network stack/pf. b) a modern file system like ZFS or Hammer. -- View this message in context: http://openbsd-archive.7691.n7.nabble.com/openbsd-vs-freebsd-NAT-performance-tp294095p294143.html Sent from the openbsd user - misc mailing list archive at Nabble.com.
scanner HP scanjet4370 not working
I have scanner HP scanjet4370 tested on 5.8 RELEASE and 5.9 GENERIC.MP#1690 i386 with the same result scanner is detected $ dmesg OpenBSD 5.9-current (GENERIC.MP) #1690: Thu Mar 31 09:41:46 MDT 2016 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Genuine Intel(R) CPU U2500 @ 1.20GHz ("GenuineIntel" 686-class) 1.20 GHz ... ugen1 at uhub0 port 5 "hewlett packard hp scanjet" rev 2.00/1.00 addr 2 $ scanimage -L device `hp3900:libusb:000:002' is a Hewlett-Packard Scanjet 4370 flatbed scanner But the scan does not work. When I start previewing or scanning. Head will start move but stops immediately. $ scanimage -T scanimage: scanning image of size 433x590 pixels at 24 bits/pixel scanimage: acquiring RGB frame, 8 bits/sample scanimage: reading one scanline, 1299 bytes... FAIL Error: End of file reached $ hp-scan HP Linux Imaging and Printing System (ver. 3.16.3) Scan Utility ver. 2.2 .. warning: No destinations specified. Adding 'file' destination by default. Using device hp3900:libusb:000:002 Opening connection to device... Resolution: 300dpi Mode: gray Compression: JPEG Scan area (mm): Top left (x,y): (0.00mm, 0.00mm) Bottom right (x,y): (220.00mm, 300.00mm) Width: 220.00mm Height: 300.00mm Destination(s): file Output file: warning: File destination enabled with no output file specified. Setting output format to PNG for greyscale mode. warning: Defaulting to '/home/edasky/hpscan001.png'. Warming up... Scanning... Reading data: [\ ] 0% error: No data read. Closing device. xane the same result. Please what should I even try? full debug $ export SANE_DEBUG_HP3900=4 http://185.47.222.11/scanner-debug.txt $ pkg_info on snapshot sane-backends-1.0.25p2 xsane-0.999p2 $ pkg_info on 5.8 release sane-backends-1.0.24p6 xsane-0.999p2 On Debian linux with sane-backends-1.0.24 and xsane-0.998 works fine.
Re: owncloud - external files directory
I want to store all my files centralized. I have some windows pc's at home, some notebooks and my work laptop. So i want to be able to put and take the files from any of this PC's. But /var/ partition only 100gb size, so i think it's good idea to move datadir to /home/ partition(or even to external large disk, that i can just put in my pocket) 2016-04-17 14:12 GMT+03:00 Erling Westenvik : > On Sun, Apr 17, 2016 at 12:40:59PM +0300, Joseph Oficre wrote: > > Hello misc. > > I've installed ownCloud with this guide > > > https://github.com/reyk/httpd/wiki/Running-ownCloud-with-httpd-on-OpenBSD > > > > Everything looks fine, but i want to store all my files not in > > /var/www/owncloud/data but in /home/USER/owncloud/data/ > > Moving datadir to home and reconfiguring config/config.php > "datadirectory" > > did nothing, only error: > > httpd(8) is chroot(8)'ed to /var/www by default. Your options include: > > - disabling chroot, which isn't a very recommended option, or > - set up /home as the new chroot, which probably isn't a very recommended > option either. > > What are you trying to achive? > > Regards, > > Erling > > > > > PHP message: > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"index","message":"Exception: > > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > > to connect to the database: An exception occured in driver: > SQLSTATE[HY000] > > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > > OCDBConnection->connect()\\n#1 > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', > Array, > > Array)\\n#2 > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > > OCDBConnection->__cons... > > PHP message: > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: > > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > > to connect to the database: An exception occured in driver: > SQLSTATE[HY000] > > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > > OCDBConnection->connect()\\n#1 > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', > Array, > > Array)\\n#2 > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > > OCDBConnection->__const... > > PHP message: > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: > > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > > to connect to the database: An exception occured in driver: > SQLSTATE[HY000] > > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > > OCDBConnection->connect()\\n#1 > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', > Array, > > Array)\\n#2 > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > > > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > > OCDBConnection->__const... > > > > PHP message: > > > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"PHP","message":"touch(): > > Unable to create file \/home\/usf\/owncloud\/data\/owncloud.log because > No > > such file or directory at > > > \/owncloud\/lib\/private\/log\/owncloud.php#53","level":3,"time":"2016-04-16T22:26:45+00:00"} > > > > > > Symlinking does the same. > > Can someone tell me how can i move my datadir without moving all my > > owncloud installation files to abother location? > > > > > > OpenBSD-current, ownCloud 8.2, httpd, php-5.6, php-f
Re: owncloud - external files directory
On Sun, Apr 17, 2016 at 12:40:59PM +0300, Joseph Oficre wrote: > Hello misc. > I've installed ownCloud with this guide > https://github.com/reyk/httpd/wiki/Running-ownCloud-with-httpd-on-OpenBSD > > Everything looks fine, but i want to store all my files not in > /var/www/owncloud/data but in /home/USER/owncloud/data/ > Moving datadir to home and reconfiguring config/config.php "datadirectory" > did nothing, only error: httpd(8) is chroot(8)'ed to /var/www by default. Your options include: - disabling chroot, which isn't a very recommended option, or - set up /home as the new chroot, which probably isn't a very recommended option either. What are you trying to achive? Regards, Erling > > PHP message: > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"index","message":"Exception: > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > to connect to the database: An exception occured in driver: SQLSTATE[HY000] > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > OCDBConnection->connect()\\n#1 > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', Array, > Array)\\n#2 > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > OCDBConnection->__cons... > PHP message: > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > to connect to the database: An exception occured in driver: SQLSTATE[HY000] > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > OCDBConnection->connect()\\n#1 > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', Array, > Array)\\n#2 > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > OCDBConnection->__const... > PHP message: > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: > {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed > to connect to the database: An exception occured in driver: SQLSTATE[HY000] > [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): > OCDBConnection->connect()\\n#1 > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): > DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', Array, > Array)\\n#2 > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): > OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 > \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): > DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 > \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): > OCDBConnection->__const... > > PHP message: > {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"PHP","message":"touch(): > Unable to create file \/home\/usf\/owncloud\/data\/owncloud.log because No > such file or directory at > \/owncloud\/lib\/private\/log\/owncloud.php#53","level":3,"time":"2016-04-16T22:26:45+00:00"} > > > Symlinking does the same. > Can someone tell me how can i move my datadir without moving all my > owncloud installation files to abother location? > > > OpenBSD-current, ownCloud 8.2, httpd, php-5.6, php-fpm
owncloud - external files directory
Hello misc. I've installed ownCloud with this guide https://github.com/reyk/httpd/wiki/Running-ownCloud-with-httpd-on-OpenBSD Everything looks fine, but i want to store all my files not in /var/www/owncloud/data but in /home/USER/owncloud/data/ Moving datadir to home and reconfiguring config/config.php "datadirectory" did nothing, only error: PHP message: {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"index","message":"Exception: {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): OCDBConnection->connect()\\n#1 \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', Array, Array)\\n#2 \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): OCDBConnection->__cons... PHP message: {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): OCDBConnection->connect()\\n#1 \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', Array, Array)\\n#2 \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): OCDBConnection->__const... PHP message: {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"core","message":"Exception: {\"Exception\":\"DoctrineDBALDBALException\",\"Message\":\"Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [14] unable to open database file\",\"Code\":0,\"Trace\":\"#0 \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(973): OCDBConnection->connect()\\n#1 \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(203): DoctrineDBALConnection->executeUpdate('PRAGMA read_unc...', Array, Array)\\n#2 \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(621): OCDBConnection->executeUpdate('PRAGMA read_unc...')\\n#3 \\\/owncloud\\\/lib\\\/private\\\/db\\\/connection.php(135): DoctrineDBALConnection->setTransactionIsolation(2)\\n#4 \\\/owncloud\\\/3rdparty\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DriverManager.php(172): OCDBConnection->__const... PHP message: {"reqId":"HMQmV6NKyZ0Af967TUia","remoteAddr":"192.168.0.102","app":"PHP","message":"touch(): Unable to create file \/home\/usf\/owncloud\/data\/owncloud.log because No such file or directory at \/owncloud\/lib\/private\/log\/owncloud.php#53","level":3,"time":"2016-04-16T22:26:45+00:00"} Symlinking does the same. Can someone tell me how can i move my datadir without moving all my owncloud installation files to abother location? OpenBSD-current, ownCloud 8.2, httpd, php-5.6, php-fpm
Re: Odd (incorrect?) zsh output
On Sun, 17 Apr 2016, Geoff Wozniak wrote: > # zsh -c 'x=$(false); echo $?' > 0 Same thing here, same arch/release, different hardware: > $ uname -mr > 5.9 amd64 > $ sysctl hw.vendor hw.product > hw.vendor=Dell Inc. > hw.product=PowerEdge T20 > $ zsh -c 'x=$(false); echo $?' > 0 > $ pkg_info -I zsh > zsh-5.2p2 Z shell, Bourne shell-compatible No rc files in sight: > $ ls .zsh* > ls: .zsh*: No such file or directory Seems like a fault with zsh, not false: > $ zsh -c 'x=$(ls xxx); echo $?' > ls: xxx: No such file or directory > 0 Built latest release from http://www.zsh.org/: > $ ./Src/zsh --version > zsh 5.2 (x86_64-unknown-openbsd5.9) > $ ./Src/zsh -c 'x=$(false); echo $?' > 0 Looks like zsh bug. K.