UTF-8 locale support
Hello! My servers keep many files in cyrillic naming. Serving big user loads it is hard to keep files in old encodings with outside world is already living in UTF-8. Storing files not in UTF-8 cause some problems with Samba and fatal problems with Linux & NFS, which don't have conversions at all. So I feel there is time to move on UTF-8 on NetBSD too, and it seems NetBSD 6 has ru_RU.UTF-8 support, however it is still is not complete. Fresh installed 6.1.4 can store files in UTF-8. It also can share these via SMB or NFS, but I can't make it work in shell. As I see it has support only for LC_CTYPE and LC_MESSAGES via locale.alias having no native ru_RU.UTF-8 support. My linux rxvt-unicode terminal (working locally as expected) with ssh to NetBSD box show: [kab00m@gloria ~]$ locale LANG="ru_RU.UTF-8" LC_CTYPE="ru_RU.UTF-8" LC_COLLATE="C" LC_TIME="C" LC_NUMERIC="C" LC_MONETARY="C" LC_MESSAGES="ru_RU.UTF-8 This cause cyrillic filenamse being shown good, but I cannot access it, because shell print hex code (f.e. \:\262\321\320) instead of letters. Bash is 4.3.0(1) out of the box. (By the way https://wiki.netbsd.org/unicode/ says it will work out of the box) Two questions on that: Am I right and aliasing ru_RU.UTF-8 to en_US.UTF-8 make this that bad? If I am right - what I shall do to complete ru_RU.UTF-8 locale and have no problems in writing cyrillic filenames? -- Sincerelly yours
MariaDB
Hi, Does anyone know if MariaDB has been added to the pkgsrc? Thanks, Al
Apache stops listening
Hi, I really hope that someone can help me. I have been having a problem for at least 2 weeks and am unable to solve it. I keep getting errors when I go to datazap.net Connection reset by peer and this is what I found in the log: [Thu Aug 14 14:15:55.284359 2014] [:error] [pid 9020] [client 108.9.211.95:2045] PHP Notice: A session had already been started - ignoring session_start() in /var/www/imagehostplus.com/v2/ i.user.status.php on line 2, referer: http://www.imagehostplus.com/v2/ image.manager.php [Thu Aug 14 14:15:55.286818 2014] [:error] [pid 9020] [client 108.9.211.95:2045] PHP Notice: Undefined variable: topnav in /var/www/ imagehostplus.com/v2/i.header.php on line 14, referer: http:// www.imagehostplus.com/v2/image.manager.php [Thu Aug 14 14:15:55.323329 2014] [:error] [pid 9020] [client 108.9.211.95:2045] PHP Notice: Undefined variable: size_in_bytes in / var/www/imagehostplus.com/v2/pf.code.php on line 57, referer: http:// www.imagehostplus.com/v2/image.manager.php [Thu Aug 14 14:15:57.164502 2014] [:error] [pid 9020] [client 108.9.211.95:2045] PHP Notice: A session had already been started - ignoring session_start() in /var/www/imagehostplus.com/v2/ i.user.status.php on line 2, referer: http://www.imagehostplus.com/v2/ image.list.php?fid=76684&jbl=d41d8cd98f00b204e9800998ecf8427e [Thu Aug 14 14:15:57.166512 2014] [:error] [pid 9020] [client 108.9.211.95:2045] PHP Notice: Undefined variable: topnav in /var/www/ imagehostplus.com/v2/i.header.php on line 14, referer: http:// www.imagehostplus.com/v2/image.list.php? fid=76684&jbl=d41d8cd98f00b204e9800998ecf8427e [Thu Aug 14 14:16:19.297614 2014] [autoindex:error] [pid 20217] [client 162.233.255.185:55367] AH01276: Cannot serve directory /var/ www/datazap.net/sites/2582/auction-images/: No matching DirectoryIndex (index.html,index.htm,index.php) found, and server- generated directory index forbidden by Options directive, referer: http://vi.vipr.ebaydesc.com/ws/eBayISAPI.dll? ViewItemDescV4&item=261551214995&t=1390852511000&tid=10&category=164315& seller=oldvintageshopaholic&excSoj=1&excTrk=1&lsite=0&ittenable=false&do main=ebay.com&descgauge=1 [Thu Aug 14 14:16:27.690236 2014] [:error] [pid 2515] [client 108.198.192.202:55340] PHP Notice: Undefined variable: _SESSION in / var/www/cgi.datazap.net/core/include/user-status.php on line 2, referer: http://cgi.datazap.net/list/ [Thu Aug 14 14:17:53.270261 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:17:54.280086 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:17:55.289943 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:17:56.300010 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:17:57.319987 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:17:58.330016 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:17:59.340058 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:18:00.350006 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:18:01.359966 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:18:02.369974 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:18:03.379988 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:18:04.390015 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:18:05.399988 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 [Thu Aug 14 14:18:06.410001 2014] [core:warn] [pid 27503] (54) Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80 I updated Apache, openssl, and apr today, which did not help. The problem seemed to start sometime after I updated apache last time, to fix the openssl issue and when I put in a new ssl certificate for imagehostplus.com (I also added and removed some domains at that same time). It sometimes runs for a few hours and other times only 20-30 minutes before needing to restart apache again. What is strange is that everything that I tried seemed to help at first, but then it would go back to needing more frequent restarts. I really need to get this fixed ASAP. Thanks, Al
Re: Reliable way to run emulated Linux under NetBSD
On 14 August 2014 18:16, Kamil Rytarowski wrote: > Hello, > > So nobody actually uses qemu? > I will give a try to XEN. I use qemu on my laptop to boot occasional WindowsXP VMs for IE6/7/8 testing (thankfully much less now than I ever did). I have a 3Ghz i7 K875 NetBSD/amd64 6.x box running 9 CentOS VMs for QA purposes (running a selection of Jboss java apps and one Jira). Memory is a little tight, and running something on the dom0 which pages heavily does quite awful things to the I/O throughput on the DOMUs (ahem, "Then Dont Do That"), but I've been extremely happy with it. In the three years or so its been running its saved its costs many many times over compared to running those VMs on a cloud hoster :) I did start with the free version of VMware Vsphere to run the Linux VMs, but oh god was the I/O lousy. With four VMs up, running 'yum update' in one VM would render the others unusable, plus the interface was... quirky at best.
Re: Reliable way to run emulated Linux under NetBSD
At date and time Thu, 14 Aug 2014 19:16:15 +0200, Kamil Rytarowski wrote: > Hello, > > So nobody actually uses qemu? > I will give a try to XEN. > > Thanks, I think Xen is a better choice myself. I tested it a couple of years ago and found it stable and fast. I had the following domUs running under a NetBSD dom0: NetBSD (x3) -- paravirtualised Slackware (x1) -- paravirtualised Windows 2008 (x1) -- HVM Windows XP (x1) -- HVM The Slackware domU was very interesting. I'll try to explain from memory, but it's been a while so I don't have all the details. I do have notes but they're not accessible to me right now. If you get stuck i'll dig them out and see if they help. What I did was to install NetBSD first, using just 5 or 10 GB of the disk, and then set up Xen. I then installed Slackware on the remainder of the disk, making sure to install Lilo to /boot, not MBR. I installed Slackware on Logical Volumes (LVM) - lvm-root, lvm-home, etc. I compiled a new kernel and initrd in Slackware with Xen support (leaving out all hardware and other options not relevant to a Xen domU), and I copied this kernel and the initrd to NetBSD's / . I did not delete the old kernel, but left it as the first option for Lilo. I aslo configured the NetBSD bootloader to boot into Slackware, using the fdisk -b option. I then made sure to configure /etc/fstab in Slackware with blkid references, to ensure Slackware would be able to boot as a domU and as a physical machine. Another thing I did was to set up Slackware with a VNC server and also XDMCP. I also set up NFS to share files between the dom0 and domU. After all this I was able to return to NetBSD and configure a domU for Slackware, running in paravirtualised mode (PV is lightning fast). To access the Slackware domU from the dom0 I used either VNC or XDMCP. Both of these were fast; the only thing I couldn't configure at the time was audio. But the icing on the cake for me was also being able to boot into the same Slackware as a physical machine, by using the first kernel. So I had a physical Linux setup dual-booting with NetBSD which also served as a domU inside NetBSD's Xen! To my mind this was incredible. I fully intend to replicate this setup as my day-to-day working setup when NetBSD 7 is released. I've learnt a lot about NetBSD since that I didn't know then. I recommend NetBSD Xen highly: you have all the benefits of NetBSD and with a paravirtualised Linux domU you also have the benefit of a very fast Linux setup. And if you do what I did, you can also dual-boot into this Linux setup whenver you want, if there is something you find you can't do while it is running under Xen as a domU. Hope this helps. -- Gerard Lally
Re: Reliable way to run emulated Linux under NetBSD
Hello, So nobody actually uses qemu? I will give a try to XEN. Thanks,
Re: Reliable way to run emulated Linux under NetBSD
On Thu, Aug 14, 2014 at 08:33:03AM +0100, Matthias Scheler wrote: |On Wed, Aug 13, 2014 at 10:22:16AM +0200, Kamil Rytarowski wrote: |> I'm looking for a reliable and flawless way to run emulated Linux |> (GNU/Linux distribution under some tool). I'm using i386 and amd64. | |A Xen domU under a NetBSD dom0 would do that job. just curious - has anyone thought of creating a Linux Docker API work-alike layer for NetBSD to act as either a guest or host? I understand that Xen is probably a preferred solution for the moment, but I would be curious as to whether that might be useful as an approach it is definitely flavour of the month in DevOps circles now but might be worth a look ... I'm not a dev, so I have no idea how much work that would entail behind the scenes to implement as far as I understand it, in order to get any sort of widespread adoption the Docker API would need to be fairly stable and consistent among the various Linux flavours and kernel versions out there, which might make it a good target to work toward from the *BSD side ... Regards, Malcolm -- Malcolm Herbert m...@mjch.net pgpmako12v3wY.pgp Description: PGP signature
Re: Reliable way to run emulated Linux under NetBSD
On Wed, Aug 13, 2014 at 10:22:16AM +0200, Kamil Rytarowski wrote: > I'm looking for a reliable and flawless way to run emulated Linux > (GNU/Linux distribution under some tool). I'm using i386 and amd64. A Xen domU under a NetBSD dom0 would do that job. Kind regards -- Matthias Scheler https://zhadum.org.uk/