Re: attaching new nvme* (AWS EBS)
> How do I get the new nvme to be discovered without > rebooting? Just a guess, but perhaps "drvctl -r {device}" on the parent pci bus? Gary Duzan
Re: Keyboards
> Ump-teen years ago there was an analog-keyboard. > It actually when 'click' when one pressed the key. > > Do these still exist?? > Do they last longer then the current keyboards? > I'm still using a classic UNICOMP keyboard, and it is doing fine. https://www.pckeyboard.com/page/category/UKBD I think the original IBM model that it was based on is a bit heftier, but the difference isn't enough for me to complain about, anyway. Gary Duzan
Re: How big should wd0e (/var) be
I may have missed it, but I don't think this thread would be complete without bringing up LVM. Assigning the bulk of your storage to LVM allows you to start with more small partitions and grow them over time as needed. That would get you a step closer to your accustomed FreeBSD/ZFS scheme. Gary Duzan p.s. NetBSD does have ZFS, but I haven't tried it, and I seem to recall some discussion of stability issues. > I think a fourth of the disk should be for /var and a fourth for / > and the rest for /home > > > xu...@sdf.org > SDF Public Access UNIX System - http://sdf.org > > On Wed, 13 Dec 2023, jo...@sdf.org wrote: > >> >>> I look at it in exactly the opposite way - it fills me with joy to >>> see that something has gone wild and filled a partition, and I didn't >>> even notice, as everything I'm doing is elsewhere, not being bothered. >>> [Turn on process accounting, and do a few full builds, and /var/account >>> will soon take over whatever space you have allowed it to occupy.] >> >> I stopped using many partitions on my BSD servers (except OpenBSD router >> where I use defaults), and my Rock64 type devices have only 1 partition >> (plus tmpfs etc); but for those Aarch64 devices that's how the image >> comes. >> >> It's interesting though that my (FreeBSD) ZFS server has many mount >> points >> because of various datasets. So, I decreased the OS partitions generally >> but more than made up for it in datasets. >> >> -Joel >> >> >> >
Re: NetBSD-10.0RC
> " What does print this ? " > > Funny -- I had a screen widget floating across the screen. > The error " Recommended Mode 1920x1081 " was inside of this. Perhaps that is your monitor saying that it doesn't like the resolution of the signal it is getting? Gary Duzan > On Tue, Dec 5, 2023 at 12:56â¯PM Manuel Bouyer > wrote: >> >> On Tue, Dec 05, 2023 at 12:40:31PM -0500, Todd Gruhn wrote: >> > Found problem with NetBSD-10.0RC >> > >> > I play DOOM, screen goes black. >> > I see error: >> > >> > Recommended Mode >> > 1920x1080 >> >> What does print this ? >> >> > >> > I think I know "what it is" -- but how do I set this (or several >> Modes) ? >> >> with the xrandr command >> >> -- >> Manuel Bouyer >> NetBSD: 26 ans d'experience feront toujours la difference >> -- >
Re: Is this normal floppy behavior?
> On 1/5/23 21:32, Michael Cheponis wrote: >> fascinatingly, now, when I try to "umount" the filesystem: >> >> *# umount /a >> umount: /a: Device busy* > > Fascinating, from what you wrote you might still "be" in /a > > regards, > chris > It could also be that some program is still running which has a file in /a open. That would also explain why the space is still shown as allocated. Gary Duzan
Re: cvs better than git?
> On 2020-06-21 16:07, Rhialto wrote: >> On Sun 21 Jun 2020 at 15:20:39 +0200, Johnny Billquist wrote: >>> I am still curious about how to manage well in git the scenario where >>> you do >>> have a central repository that holds the actual source of truth, and >>> where >>> you want to review and approve anything that gets committed. >> >> Let me point you to the hell that is called "Gerrit"... >> Example: https://review.opendev.org/ > > Like I said. We are using gerrit. It's not without a bunch of issues all > on its own... :-) > > Any other options around with similar functionality? > >Johnny Our group at work uses Gerrit. We have had some trouble maintaining it, so we have been considering moving to Bitbucket, which already exists in the company. Bitbucket seems nice enough, though of course it is commercial. If I were looking for a solution today I would consider Phabricator/Differential, as it is open source, supports Mercurial, and appears decent enough. Gary Duzan
Re: Generating static htmls with interactive plots
=> I have a NetBSD based web server which serves mainly static contents and => files. There is one requirement to include some time series plots with => some monthly data points - so, the plots do not need to take any => parameters from a browser and can be statically generated. => => Only requirement is for the plots to have some interactivity, such as => zooming, panning, mouseover text and so on. => => I hear nodejs has a collection of packages for this. But not sure about => ability to generate a static html. => => Came across python plotly and it seems to have the ability to generate => static htmls the way I want. => => Just wanted to know if there are more options to explore if someone has => tried in similar situations. => => Mayuresh => It is only an idea, not a solution, but I'm reminded of Flame Graphs[1], which manage to pull off something similar in a static SVG file. I would assume that a similar approach could get you what you want, but it would require some design and coding. Gary Duzan [1] http://www.brendangregg.com/flamegraphs.html
Re: pthread_mutexattr_setpshared ??
=> => In summary, people should use simpler/better designs, i.e. single => process with multiple threads and that is it. No need to over-engineer => it. My $DAYJOB is working on an open source database/runtime system which has run with multiple processes and shared memory from day one, where day one was over 25 years ago. I introduced PSHARED mutexes/conditions to the software as an alternative to existing spin/yield/sleep locks, which are known to perform pretty badly in userland at scale. (I.e., large systems with tens of thousands of processes context switching themselves to death.) The PSHARED mutexes and the robust futex implementation underlying them provided some much needed stability at the top end. To be clear, I have no need to run this software on NetBSD, but I wanted to present a case where this facility can be used to solve Real World problems. Gary Duzan
Re: Non-blocking socket bug
=> On Sat, 26 Oct 2019 15:20:42 -0500 => Edgar Pettijohn wrote: => =>> =>> On Oct 26, 2019 2:44 PM, Sad Clouds =>> wrote: =>> > =>> > I've come across an issue when testing networking code, which looks =>> > like a bug. This is on NetBSD-8.1 =>> > =>> > When a listening socket is set non-blocking and we call accept() on =>> > that socket, the new socket returned by accept() will also be =>> > non-blocking. =>> > =>> > I think this is a bug. I thought all new sockets/file descriptors =>> > would be non-blocking by default. I've attached a test program to =>> > demonstrate the issue. =>> =>> That is how the manual describes it to be. => => Can you be more specific please, which manual and which case does it => describe, accept() returning blocking or non-blocking socket? => => I'm not sure at this stage if this is a bug or BSD specific feature. => https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_10_07 2.10.7 Socket I/O Mode The I/O mode of a socket is described by the O_NONBLOCK file status flag which pertains to the open file description for the socket. This flag is initially off when a socket is created, but may be set and cleared by the use of the F_SETFL command of the fcntl() function. https://pubs.opengroup.org/onlinepubs/9699919799/functions/accept.html DESCRIPTION The accept() function shall extract the first connection on the queue of pending connections, create a new socket with the same socket type protocol and address family as the specified socket, and allocate a new file descriptor for that socket. So accept() creates a socket, and O_NONBLOCK is initially off when a socket is created, so it should be off. Gary Duzan
Re: Alternative DVCS to git: hg?
=> => Came across this: plan to use rust for hg: => https://www.mercurial-scm.org/wiki/OxidationPlan => => Quite interesting. Would be good to see A. hg using a compiled language B. => rust getting another big user. => => Mayuresh Rust can be quite a pig when compiling, and it would be nice to have something that could be run with existing tools. I've started looking into what it would take to convert Mercurial/hg from Python into Lua, which might make it a good fit for NetBSD. Not sure how far I'll get with it, but presumably it could keep me occupied for a while. Gary Duzan
Re: Links crashed when open a https site?
"Martin Husemann" wrote: => On Mon, Jan 14, 2019 at 08:40:36AM +0100, Csányi Pál wrote: =>> All right, I want to upgrade My NetBSD 8.0 system to netbsd-8 daily. =>> =>> I am searching it to download, but not sure which one is it? =>> Is the following: =>> https://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/installation/cdrom/boot.iso =>> the netbsd-8 daily cd iso image for me? => => The "boot" one does not include installer bits, I would use this: => => https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/images/NetBSD-8.99.30-i386.iso => => if you have previously installed the i386 port (your CPU was 64bit so you => probably should be running the amd64 port). You can check with "uname -m". => => Martin => Those are HEAD links. If you want the latest netbsd-8 branch, you want http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-8/latest/images/NetBSD-8.0_STABLE-i386.iso or if you think you can boot off of a USB flash drive, http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-8/latest/images/NetBSD-8.0_STABLE-i386-install.img.gz Gary Duzan
Re: Mailing list manager on NetBSD
=> On Tue, Jan 08, 2019 at 09:45:16PM +0530, Mayuresh wrote: => => After going through the nuances of some available solutions, I wonder: => => - Do I really need a specialized mail manager software or can I just use => .forward (or procmail) to bounce the mails to registered members? It is a brave new world of email that we live in, where certain large providers get to call the shots. For example, mail from Yahoo has its header signed, and bouncing it can invalidate the signature, causing Gmail to reject it. I had to configure my mailman to mangle the From header to appear as if it was from my server to get the mail to go through, and I don't think you can do that with .forward . Maybe I was doing something wrong, but it is something to watch out for. Good luck. Gary Duzan => - I do not need automated subscribe / unsubscribe, this being for a closed => group of size not exceeding 300/350. Manual registration, with very => occasional changes is fine. => => - I need "member-only" restriction for posting to the list email id, which => I think procmail can manage. => => - I do need a web archiver with thread view etc. (and ability to write => text pattern searches of my own on the mail texts), for which there => might be alternatives that do just that - archiving. (E.g. HyperKitty => which mailman uses, which can be used standalone also.) => => Would appreciate views on whether I am missing something, if I do not use => a proper mailing list software for above requirement. => => Mayuresh => => =>
Re: PCI passthrough not working with bhyve and NetBSD
"Farid Joubbi" wrote: => I tried the install CD for the latest HEAD-201807121210Z. => It can see both the NICs, but they don't work. => Trying to configure them with DHCP, it looks as if the NIC is sending a => DISCOVERY but timing out never receiving anything back (I doubt that it is => actually sending anything on the wire). => Then it constantly throws this on the console: "wm0: device timeout (lost => interrupt)". That sounds like the kernel missing interrupts from the NIC, in which case it may actually be sending out the requests but failing to see the replies. Perhaps posting the dmesg, or at least the lines about the NICs, could help. Gary Duzan => On Sat, Jul 14, 2018 at 8:34 PM Farid Joubbi wrote: => =>> I have a working configuration for NetBSD on bhyve. It's not a problem =>> with vm-bhyve https://github.com/churchers/vm-bhyve =>> =>> NetBSD 7.1.2 does not initiate the bge0 nor wm0 at all under bhyve, as I =>> wrote earlier. =>> It seems to run perfectly fine other than that. =>> The "normal" vioif0 works fine. =>> =>> I tried NetBSD 8.0 RC2. =>> It finds both NICs! All of a sudden I feel hope ;-) =>> Unfortunately I can only get link-local addresses on both NICs. =>> And I also get this printed on the console every now and then: "bge0: =>> watchdog timeout -- resetting". =>> =>> I will try and get it to NetBSD-current and see. =>> =>> =>> On Tue, Jul 10, 2018 at 5:30 AM Travis Paul wrote: =>> =>>> =>>> =>>> > On 9 Jul 2018, at 5:58 AM, Farid Joubbi wrote: =>>> > =>>> > Thanks for the reply. =>>> > After reading it, I realize that the learning curve for me to =>>> understand what is going on is a bit too steep. =>>> > I know only some basic C programming from university courses several =>>> years ago. =>>> > This kind of learning was not what I had in mind when I figured that =>>> I =>>> want to run a new NetBSD installation this summer... ;-( =>>> =>>> FWIW, NetBSD runs fine on Bhyve without PCI passthru. I'm running a few =>>> NetBSD 7 and 8 VMs on FreeBSD 11. =>>> =>>> I can share some commands to get a NetBSD system up if you're =>>> interested =>>> but I'm not using PCI passthru so I can't assist there. =>>> =>>> Best, =>>> Travis =>>> =>> =>
Re: Using a 4TB (Now 3TB) SATA disk with i386?
You want a GPT: man gpt. I also found an example at https://wiki.netbsd.org/users/mlelstv/using-large-disks/#index4h1 . Those should be enough to get you started. Good luck... Gary Duzan => On Thu, Nov 2, 2017 at 6:15 AM, Jonathan A. Kollasch => <jakll...@kollasch.net> wrote: =>> On Thu, Nov 02, 2017 at 05:56:07AM -0700, Andy Ruhl wrote: =>> It's not uncommon for newer USB drives to present themselves with 4KiB =>> logical sectors, despite the fact that the disks within are actually =>> 4KiB physical sectors with 512-byte logical sectors. Some of our tools, =>> particularly back in the netbsd-6 days, do not deal well with =>> non-DEV_BSIZE logical sectors. =>> =>> You should have little to no issue with internal SATA drives, as most =>> of them present themselves with 512-byte logical sectors. => => I now have a NetBSD-8/i386 machine with a 3TB disk: => => wd1 at atabus1 drive 0 => wd1: => wd1: drive supports 16-sector PIO transfers, LBA48 addressing => wd1: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 => sectors => wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) => wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 => (Ultra/133) (using DMA) => => When I try to use fdisk to create a partition, it won't let me go => higher than 2TB. => => I tried just using disklabel as well, and I have the same problem. => => I see a Wiki page about creating wedges but it's talking about using => ccd and raid which I don't want to do. I just want a regular 3TB disk => with 1 ffsv2 partition. => => Where should I start? I'm not finding "official" documentation (in the => guide for example). => => Andy =>
Re: VPN - almost got it
"D'Arcy Cain" <da...@netbsd.org> wrote: => I am trying to set up a VPN between two NetBSD boxes, one of which has a => public address. Here is what I do on the public machine in rc.local: => => ifconfig tun0 create => ifconfig tun0 10.0.0.1 10.0.0.2 netmask 0xfffc => route add 10.0.0.2/32 10.0.0.1 # should this be necessary? => route add 192.168.215.0/24 10.0.0.2 => => On the internal machine I do this: => => ifconfig tun0 create => ifconfig tun0 10.0.0.2 10.0.0.1 netmask 0xfffc => route add 10.0.0.1/32 10.0.0.2 # should this be necessary? => route add 192.168.0.0/24 10.0.0.1 => /usr/bin/ssh -f -w 0:0 queen.vex.net true => => The IP address of the first machine is 192.168.0.57 and I can get there => fine from any machine in the 215 network. However I can't get to any => other machine on the 0 side. Both machines show "net.inet.ip.forwarding => = 1". Am I missing something else? Do the other machines on the 0 side have a route through their tunnel endpoint machine? Gary Duzan
Re: Compiling a hello world X program
"Ivan \"Rambius\" Ivanov" <rambiusparkisan...@gmail.com> wrote: => Hello, => => I am trying to compile a Hello World program for X Window, but it => fails with an error on NetBSD 7.1 => => [...] => => Full error is => => $ make => cc -I/usr/x11R7/include -c xhello.c => xhello.c:2:22: fatal error: X11/Xlib.h: No such file or directory => #include => ^ => compilation terminated. => *** Error code 1 I believe you want X11R7, not x11R7. Gary Duzan
Re: NetBSD 8.0-BETA NFS Server over OpenVPN: mount_nfs: can't access /: Permission denied
=> Hello, => => i want to use nfsd via openvpn (openvpn runs on udp). => Both, Server and Client are NetBSD8-BETA => => When I want to mount from the client, i get this error: => mount_nfs: can't access /: Permission denied => => [...] => => /etc/exports => / -network 10.8.0.0 -mask 255.255.255.255 -maproot=root => => Ive created for testing a hosts.allow with ALL: ALL. => There is no hosts.deny. => => Best Regards, => Andreas => Does "/etc/rc.d/mountd reload" or "/etc/rc.d/mountd restart" help? If the openvpn network doesn't exist when mountd starts then it may not be setting up the exports properly. Gary Duzan
Re: creating a netbsd router
"Johnny Billquist" <b...@update.uu.se> wrote: => On 2017-07-22 16:38, dieter roelants wrote: =>> On Wed, 19 Jul 2017 22:33:36 +0200 =>> Johnny Billquist <b...@update.uu.se> wrote: =>> =>>> No. You should not set an ip address on any of the interfaces. You =>>> create a bridge interface, connect all the physical interfaces to the =>>> bridge interface, and you set an ip address on the bridge interface. =>> =>> That's not how it works in NetBSD. You cannot add IP addresses to the =>> bridge interface itself. => => Thanks for the correction. Interesting and unexpected (for me). I believe the NetBSD way would be to create a tun interface, add that to the bridge, and configure the IP address on that. Gary Duzan
Re: failure to build Firefox 54
In Message <2b33a67e-722d-a6df-699f-a46735890...@libero.it>, Riccardo Mottola <riccardo.mott...@libero.it>wrote: =>Hi, => =>Gary Duzan wrote: =>> =>Hi, =>> => =>> =>building Firefox fails for me due to undefined symbol. Error below. this =>> =>is on x86 =>> =>How is it for others? =>> =>> I'm on x86_64, but I get a similar symptom from xenkernel4[68]. =>> It looks like cwrappers is overriding -fno-stack-protection, leading to =>> the errors. => =>do you mean you get a similar error when building xenkernel? Yes. =>I did a complete pkg_rolling-update today, but firefox still fails. => =>Any other has this issue? workarounds? Yes, at least for xenkernel4[68]. Try adding PKGSRC_USE_SSP=no to the package Makefile and rebuilding. Gary Duzan
Re: failure to build Firefox 54
In Message <e49c94ad-af34-1a6f-73e1-e416ec3e3...@libero.it>, Riccardo Mottola <riccardo.mott...@libero.it>wrote: =>Hi, => =>building Firefox fails for me due to undefined symbol. Error below. this =>is on x86 =>How is it for others? I'm on x86_64, but I get a similar symptom from xenkernel4[68]. It looks like cwrappers is overriding -fno-stack-protection, leading to the errors. Gary Duzan =>Thanks - Riccardo => => =>Executing: ../../../../.cwrapper/bin/c++ -std=gnu++11 -I/usr/pkg/include =>-I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss =>-I/usr/X11R7/include -I/usr/X11R7/include/libdrm =>-I/usr/X11R7/include/freetype2 -I/usr/pkg/include/ffmpeg3 -Wall =>-Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual =>-Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code =>-Wwrite-strings -Wno-invalid-offsetof -Wno-error=maybe-uninitialized =>-Wno-error=deprecated-declarations -Wno-error=array-bounds -Wformat -O2 =>-D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include =>-I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include =>-I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 =>-I/usr/pkg/include/ffmpeg3 -march=i586 -mstackrealign -fno-exceptions =>-fno-strict-aliasing -Dunix -fno-rtti -fno-exceptions -fno-math-errno =>-pthread -pipe -I/usr/pkg/include -O2 -fomit-frame-pointer -fPIC -DPIC =>-shared -Wl,-soname,libmozsqlite3.so -o libmozsqlite3.so -lpthread =>-Wl,-R/usr/pkg/lib/firefox -Wl,-R/usr/pkg/lib =>-L/usr/pkg/gcc49/lib/gcc/i486--netbsdelf/4.9.4 =>-Wl,-R/usr/pkg/gcc49/lib/gcc/i486--netbsdelf/4.9.4 -L/usr/pkg/gcc49/lib =>-Wl,-R/usr/pkg/gcc49/lib -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib =>-L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/pkg/lib/nss =>-Wl,-R/usr/pkg/lib/nss -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib =>-L/usr/pkg/lib/ffmpeg3 -Wl,-R/usr/pkg/lib/ffmpeg3 -Wl,-z,noexecstack =>-Wl,-z,text -Wl,--build-id =>-Wl,-rpath-link,/usr/pkgsrc/www/firefox/work/build/dist/bin =>-Wl,-rpath-link,/usr/pkg/lib =>/usr/pkgsrc/www/firefox/work/build/config/external/sqlite/tmpdvYoWO.list =>-Wl,--version-script,libmozsqlite3.so.symbols =>/usr/pkgsrc/www/firefox/work/build/config/external/sqlite/tmpdvYoWO.list: => INPUT("../../../db/sqlite3/src/sqlite3.o") => =>../../../db/sqlite3/src/sqlite3.o: In function `putVarint64': =>sqlite3.c:(.text+0x140f): undefined reference to `__stack_chk_fail_local' =>../../../db/sqlite3/src/sqlite3.o: In function `remove_diacritic': =>sqlite3.c:(.text+0x7547): undefined reference to `__stack_chk_fail_local' =>../../../db/sqlite3/src/sqlite3.o: In function `readMasterJournal': =>sqlite3.c:(.text+0xa79d): undefined reference to `__stack_chk_fail_local' =>../../../db/sqlite3/src/sqlite3.o: In function `vdbePmaWriteVarint': =>sqlite3.c:(.text+0xda65): undefined reference to `__stack_chk_fail_local' =>../../../db/sqlite3/src/sqlite3.o: In function `readJournalHdr': =>sqlite3.c:(.text+0xf161): undefined reference to `__stack_chk_fail_local' =>../../../db/sqlite3/src/sqlite3.o:sqlite3.c:(.text+0x1637d): more =>undefined references to `__stack_chk_fail_local' follow =>/usr/bin/ld: libmozsqlite3.so: hidden symbol `__stack_chk_fail_local' =>isn't defined =>/usr/bin/ld: final link failed: Bad value =>collect2: error: ld returned 1 exit status =>/usr/pkgsrc/www/firefox/work/firefox-54.0.1/config/rules.mk:804: recipe =>for target 'libmozsqlite3.so' failed =>gmake[3]: *** [libmozsqlite3.so] Error 1 =>gmake[3]: Leaving directory =>'/usr/pkgsrc/www/firefox/work/build/config/external/sqlite' =>/usr/pkgsrc/www/firefox/work/firefox-54.0.1/config/recurse.mk:71: recipe =>for target 'config/external/sqlite/target' failed =>gmake[2]: *** [config/external/sqlite/target] Error 2 =>gmake[2]: Leaving directory '/usr/pkgsrc/www/firefox/work/build' =>/usr/pkgsrc/www/firefox/work/firefox-54.0.1/config/recurse.mk:32: recipe =>for target 'compile' failed =>gmake[1]: *** [compile] Error 2 =>gmake[1]: Leaving directory '/usr/pkgsrc/www/firefox/work/build' =>/usr/pkgsrc/www/firefox/work/firefox-54.0.1/config/rules.mk:525: recipe =>for target 'all' failed =>gmake: *** [all] Error 2 =>*** Error code 2 => =>
Re: NetBSD 8.0-BETA hangs at boot at xHCI (so does netbsd-7)
In Message
Re: Problem with httpd and openssl on NetBSD-7.1
In Message <10926.1493743...@secondfloor.xyz>, Christopher Pinon <cjpi...@secondfloor.xyz>wrote: =>J. Lewis Muir <jlm...@imca-cat.org> wrote: => =>> On 05/02, Christopher Pinon wrote: =>> > By the way, another (easier) question about httpd: is there a way for =>> > httpd to listen to both plain http (port 80) requests and https (port =>> > 443) requests? (Like apache.) At the moment, as far as I can tell, it's =>> > either or, depending on whether or not '-Z ...' is set. =>> =>> I've not tried, but can't you just run two instances of it: one =>> listening on port 80 and the other listening on port 443? => =>Thanks, Lewis: indeed, this works. :-) I guess that I was focused on =>doing this from /etc/rc.conf, but for no good reason, really. Am =>beginning to warm up to httpd after a long time with apache! You still can use rc.conf, if you'd like. Copy /etc/rc.d/httpd to /etc/rc.d/httpsd (or something like that), and tweak the copy to have a different name, rcvar, and command_args. Then you can specify httpsd=YES in /etc/rc.conf, along with other variables you need for command_args. Gary Duzan
pvmove
re: https://mail-index.netbsd.org/netbsd-users/2013/05/27/msg012890.html Did the pvmove target ever get included in the NetBSD LVM? I'm on the netbsd-7 branch, and it doesn't seem to be working. If it was added to -current I could try that out in a VM, but I would like it on my desktop, and the xhci functionality in -current doesn't agree with my system. Thanks. Gary Duzan
Re: What is th ....
=> => ... of the FreeBSD 'adduser' command under NetBSD 6.1.5 ? Bad brain fart => :-/ useradd? Gary Duzan => -- => => William A. Mahaffey III => => -- => => "The M1 Garand is without doubt the finest implement of war => ever devised by man." => -- Gen. George S. Patton Jr. => =>
Re: upgrading an old system
=> I have two servers I have just retrieved from their regular home in a => data centre some distance away. (Less tha opportune interventions by => the staff there meant they would not accept remote logins). => => While I have them here I want to upgrade them to 7.0 (i386). But one is => 2.0, the other 3.0 at present. Wow. => It looks as though they will not boot from their USB ports, the => CD-ROM drives seem not to be DVD-compatible (and I'm not sure I can => find any blank CD-ROM disks). They have floppy drives, but I'm not => sure I have a working floppy drive on a working machine any more. I would think CD-ROM would be the way to go. Surely someone in the area has a stack in the back closet. => I have both the machines running normally, and I've backed up everything I => need to keep. Is there a way of upgrading these machines by placing => initial installation files on their hard drives, say in a /altboot => directory, bootin from there and doing the rest over NFS or FTP? I => have to do an install because I think both machines need new boot => blocks to even boot newer releases. I also need to change the disk => layout to add more swap space and create /tmp on disk rather than in an => MFS. Upgrading via installer from the hard drive was easier up to NetBSD 6, as you could boot an INSTALL kernel and point it at the sets on your hard drive as /targetroot. Since NetBSD 7 I've just dumped an install image on USB flash and booted that. That still wouldn't help restructuring the partitions, though; you want to boot from alternate media for that. => I am under time pressure because these two machines form the backbone => of live 24/7/365 services, now being run on VPSs in their absence. This seems exactly the sort of thing you don't want to do under time pressure. Good luck... Gary Duzan => -- => Steve Blinkhorn <st...@prd.co.uk> => =>
Re: USB img NetBSD-7.0.1-amd64-install.img does not boot
In Message <20160704105315.GA1856@c720-r292778-amd64>, Matthias Apitz <g...@unixarea.de>wrote: => => =>Hello, => =>I'm a long time user of FreeBSD (since 1995) and run CURRENT on my =>laptops and netbooks, all compiled from SVN. I only say this to =>underline that I have certain experience with such stuff. => =>I wanted to give NetBSD a try on my Acer C720 (aka Chromebook, but =>switched to LegacyBoot mode) and fetched the USB image. I wrote it with =>dd(1) to the USB key and it is there and even mountable in FreeBSD: => => [...] => =>but it does not boot: => =>Booting from Hard Disk ... =>NetBSD MBR boot =>Error Disk read error =>Booting from Floppy =>Boot failed: could not read the boot disk => =>No bootable device. => =>What could I have done wrong? Thanks I see that the C720 has both USB 2.0 and 3.0 ports. If you are using the 3.0 port, try the 2.0 port. Unfortunately, NetBSD's USB 3.0 support is experimental at best. Good luck... Gary Duzan
Re: NPF single NIC & NAT
In Message <loom.20160626t181533-...@post.gmane.org>, Ryan Brackenbury <ryan.brackenb...@gmail.com>wrote: =>Hopefully someone can shed some light on what I'm doing wrong - and =>hopefully there is a way to do this that doesn't require a second NIC. I can't speak to the NPF issue, but you could try using a vlan interface between your servers as a workaround. /etc/ifconfig.vlan0: create vlan {vlan-id} vlanif ale0 inet 172.16.0.2 !route add -host 172.16.0.3 192.168.0.3 and something similar on the opposite end. I do something like this at home, but inverted, putting external traffic on a vlan (via a hardware switch) and routing it out on the native interface. Good luck. Gary Duzan
Re: wireless configuration
=> I have a machine running amd64 7.0 that has an Intel Centrino type => wireless device. This is recognised and configured at boot time at => iwn0 as one would expect, but shows up in ifconfig -a with "No => network". The router with the specified SSID is running properly, => and other wireless devices access it normally. But the router is too => modern to support WEP encryption. Is encryption likely to be the => problem? Other suggestions? Do you have wpa_supplicant configured and running? See the man page, https://wiki.netbsd.org/tutorials/how_to_use_wpa_supplicant/ , and/or /usr/share/examples/wpa_supplicant/*. Gary Duzan => -- => Steve Blinkhorn <st...@prd.co.uk> => =>
Re: Change default compat_linux path ?
In Message <dub112-w116b3c8a6fa58c3658711abd5...@phx.gbl>, Adrien Fernandes <adrien_fernand...@hotmail.com>wrote: =>Hello,is it possible to change /emul/linux path ? I downloaded =>by myself Arch Linux operating system and I put it in my home =>directory (~/Linux) and I wish to be able to use binaries from =>there. The fact is that if I move Arch Linux root to /emul/linux/, =>I can use binaries but if I move it elsewhere, it won't work =>anymore.I didn't install any emulators/suse package. I wished to =>do it all by myself. Yes, I can still create a symlink but before, =>I wish to know if it can be changed. =>Adrien Fernandes It looks like it is hard-coded: compat/linux/common/linux_exec.c: .e_path = "/emul/linux", NetBSD recognizes the executable as Linux and modifies the process to look for executables under the e_path before looking under the real root. Gary Duzan
Re: How to install NetBSD on a USB stick
In Message <20160214054548.070dd115...@xen1.duzan.org>, "Gary Duzan" <g...@duzan.org>wrote: =>In Message <20160214052012.ga...@internode.on.net>, => Brett Lymn <bl...@internode.on.net>wrote: => =>=>On Sun, Feb 14, 2016 at 08:34:37AM +0530, Mayuresh wrote: =>=> =>=>> - Will the end result be different with your method vs creating a live =>=>> image (as Gary's reply suggested)? =>=>> =>=> =>=>IIRC Gary pointed you at an install image which has a cut down set of =>=>tools on it, just sufficient to install the operating system. If you =>=>are looking for a fully functioning NetBSD system then you don't want an =>=>install image. => => Not that it matters much at this point, since Mayuresh appears =>to have managed a normal install to USB, but I had suggested building =>a live-image, which appears to be pretty complete. From a -current =>build in January: => =># df -k /mnt =>Filesystem1K-blocks Used Avail %Cap Mounted on =>/dev/dk01416942 894948 451148 66% /mnt =># ls -l /mnt/etc/mtree/ =>total 13400 =>-r--r--r-- 1 root wheel59623 Jan 3 01:40 NetBSD.dist =>-r--r--r-- 1 root wheel 812361 Jan 3 01:56 set.base =>-r--r--r-- 1 root wheel 2605531 Jan 3 01:56 set.comp =>-r--r--r-- 1 root wheel44485 Jan 3 01:56 set.etc =>-r--r--r-- 1 root wheel44126 Jan 3 01:56 set.games =>-r--r--r-- 1 root wheel 840260 Jan 3 01:56 set.man =>-r--r--r-- 1 root wheel98679 Jan 3 01:56 set.misc =>-r--r--r-- 1 root wheel 104099 Jan 3 01:56 set.modules =>-r--r--r-- 1 root wheel 416694 Jan 3 01:56 set.tests =>-r--r--r-- 1 root wheel93113 Jan 3 01:57 set.text =>-r--r--r-- 1 root wheel 213721 Jan 3 01:57 set.xbase =>-r--r--r-- 1 root wheel 489084 Jan 3 01:57 set.xcomp =>-r--r--r-- 1 root wheel11608 Jan 3 01:57 set.xetc =>-r--r--r-- 1 root wheel 780017 Jan 3 01:57 set.xfont =>-r--r--r-- 1 root wheel36002 Jan 3 01:57 set.xserver =>-r--r--r-- 1 root wheel19264 Jan 3 01:40 special => => Gary Duzan => => =>p.s., Interestingly, it was a bit more difficult to mount the wd0 =>image than I expected. It has an MBR partition table, but the =>disklabel on the vnd device I attached to it was garbage, with =>partitions a-p all covering the whole disk. I had to use dkctl =>addwedge with the offset and size from the fdisk to get a device =>I could mount. This was on 7.0_STABLE from mid-December. Sorry, FWIW, this was actually an sd0 live-image. Gary Duzan
Re: How to install NetBSD on a USB stick
In Message <20160214052012.ga...@internode.on.net>, Brett Lymn <bl...@internode.on.net>wrote: =>On Sun, Feb 14, 2016 at 08:34:37AM +0530, Mayuresh wrote: => =>> - Will the end result be different with your method vs creating a live =>> image (as Gary's reply suggested)? =>> => =>IIRC Gary pointed you at an install image which has a cut down set of =>tools on it, just sufficient to install the operating system. If you =>are looking for a fully functioning NetBSD system then you don't want an =>install image. Not that it matters much at this point, since Mayuresh appears to have managed a normal install to USB, but I had suggested building a live-image, which appears to be pretty complete. From a -current build in January: # df -k /mnt Filesystem1K-blocks Used Avail %Cap Mounted on /dev/dk01416942 894948 451148 66% /mnt # ls -l /mnt/etc/mtree/ total 13400 -r--r--r-- 1 root wheel59623 Jan 3 01:40 NetBSD.dist -r--r--r-- 1 root wheel 812361 Jan 3 01:56 set.base -r--r--r-- 1 root wheel 2605531 Jan 3 01:56 set.comp -r--r--r-- 1 root wheel44485 Jan 3 01:56 set.etc -r--r--r-- 1 root wheel44126 Jan 3 01:56 set.games -r--r--r-- 1 root wheel 840260 Jan 3 01:56 set.man -r--r--r-- 1 root wheel98679 Jan 3 01:56 set.misc -r--r--r-- 1 root wheel 104099 Jan 3 01:56 set.modules -r--r--r-- 1 root wheel 416694 Jan 3 01:56 set.tests -r--r--r-- 1 root wheel93113 Jan 3 01:57 set.text -r--r--r-- 1 root wheel 213721 Jan 3 01:57 set.xbase -r--r--r-- 1 root wheel 489084 Jan 3 01:57 set.xcomp -r--r--r-- 1 root wheel11608 Jan 3 01:57 set.xetc -r--r--r-- 1 root wheel 780017 Jan 3 01:57 set.xfont -r--r--r-- 1 root wheel36002 Jan 3 01:57 set.xserver -r--r--r-- 1 root wheel19264 Jan 3 01:40 special Gary Duzan p.s., Interestingly, it was a bit more difficult to mount the wd0 image than I expected. It has an MBR partition table, but the disklabel on the vnd device I attached to it was garbage, with partitions a-p all covering the whole disk. I had to use dkctl addwedge with the offset and size from the fdisk to get a device I could mount. This was on 7.0_STABLE from mid-December.
Re: cvs update hangs 'amd' in tstile when 'firefox' is running
In Message <pine.neb.4.64.1602112120290.1...@david.technoskunk.fur>, "John D. Baker" <jdba...@mylinuxisp.com>wrote: =>On Fri, 12 Feb 2016 03:08:04 + (UTC), chris...@astron.com (Christos =>Zoulas) wrote: => =>> Ok, do a cvs update (which is what triggers it), wait a bit and then =>> do the unmount. => =>I'm not quite sure about to what you refer. On a non-stuck client, =>during 'cvs update' on the NFS server or even arbitrarily long afterward, =>one can umount/mount an NFS filesystem at will. If the mount point is =>the PWD or otherwise in use, the umount attempt returns "Device busy". => =>Even on a quiescent 'amd'-managed NFS mount, access to files on that =>mount during or slightly after a 'cvs update' on the file server will =>succeed, albeit with some disconcerting delay--as long as 'firefox' =>isn't running. => =>Pondering other scenarios that could trigger the behavior. Something =>with a file open on the 'amd'-managed mount during 'cvs update' on the =>server? The directory is already open as PWD in the shell. Something =>that writes to a file? I have another client on which I was editing an =>email during 'cvs update' and it survived (albeit with the aforementioned =>delay). Just a random thought: maybe mmap a file on the mount? If just the mmap doesn't do it, dirty at least one page and see if that does. Gary Duzan
Re: Support for Intel P3500 PCIe SSD drive
In Message <alpine.neb.2.11.1601281556410.26...@m83.parsec.com>, Swift Griggs <swiftgri...@gmail.com>wrote: =>On Thu, 28 Jan 2016, Derrick Lobo wrote: =>> Trying this new toy and would to have support for it.. vendor 0x8086 =>> product 0x0953 (Flash mass storage, interface 0x02, revision 0x01) at =>> pci1 dev 0 function 0 not configured => =>Personally, I've never seen these PCIe adapters work unless they implement =>a standard SATA controller (and most don't). I know for certain-sure that =>the OCZ Revo series will NOT work. Sorry I can't be more helpful. Looks like that's an NVMe SSD, which requires an NVMe driver, and I don't believe NetBSD has added one yet. It looks like -current has the PCI id, but that's about it. Gary Duzan
Re: xHCI not working on ASUS F555 laptop
=> On Jan 7, 2016, at 5:08, Gary Duzan <g...@duzan.org> wrote: =>> =>> In Message <47820a2c8eb.b1d4...@mail.owl.de>, =>> Frank Wille <fr...@phoenix.owl.de>wrote: =>> =>> =>Hi, =>> => =>> =>I was given an Asus F555L laptop for installing NetBSD. It came with =>> FreeDOS =>> =>preinstalled and looked like it could be a nice NetBSD laptop. The =>> intel =>> =>graphics and HD audio are working great. =>> => =>> =>WLAN (AR9485) does not work, but I expected nothing else. =>> => =>> =>A serious problem though, is the lack of USB. The intel xHCI USB =>> device is =>> =>not recognized by a generic 7.0 kernel. Here is the complete dmesg: =>> => =>> => [...] =>> =>> xhci is commented-out in the GENERIC kernel, even on -current: =>> =>> # xhci* at pci? dev ? function ?# eXtensible Host Controller =>># xhci is at best experimental =>> # usb* at xhci? =>> =>> If you want to try it, uncomment these or try an ALL kernel. => => Is the problem a complete lack of USB, or just lack of xHCI? I'd expect => ehci to work with a GENERIC kernel and provide USB 2.0 support. Good question. According to https://www.asus.com/Notebooks/X555LA/specifications/ , this machine has two USB 3.0 ports and one USB 2.0 port. Does the USB 2.0 port work? Not having full USB 3.0 support is IMHO a serious black mark against NetBSD on modern hardware. Is anyone actively working on it? Are there particular known obstacles? I could perhaps spend some time on it myself if pointed in the right direction. Gary Duzan
Re:
=> At Wed, 25 Nov 2015 10:00:00 + (UTC) I had a cron job run: => => for tz in America/Los_Angeles America/Chicago America/New_York \ => Asia/Tokyo Europe/Berlin ; do => TZ=$tz date -d "Wednesday 22:00utc" +"%A %B %d %I:%M %p %z %Z ${tz}" ; => done => => This resulted in: => => Wednesday November 25 12:00 PM -0800 PST America/Los_Angeles => Wednesday November 25 02:00 PM -0600 CST America/Chicago => Wednesday November 25 03:00 PM -0500 EST America/New_York => Wednesday December 02 05:00 AM +0900 JST Asia/Tokyo => Wednesday November 25 09:00 PM +0100 CET Europe/Berlin => => => Notice the December 02 above. => => An easy workaround is to also add today's date to the -d parsedate => string above. => => Is this expected behavior? Undefined? A bug? FWIW, I get similar results on my Linux box (Ubuntu 14.04). Wednesday November 25 02:00 PM -0800 PST America/Los_Angeles Wednesday November 25 04:00 PM -0600 CST America/Chicago Wednesday November 25 05:00 PM -0500 EST America/New_York Thursday December 03 07:00 AM +0900 JST Asia/Tokyo Wednesday November 25 11:00 PM +0100 CET Europe/Berlin Gary Duzan
Re: (tutorial) How to use PulseAudio on NetBSD
In Message <20151118T202054Z@localhost>, Izaac <iz...@setec.org>wrote: =>On Wed, Nov 18, 2015 at 05:04:20PM +0100, Adrien Fernandes wrote: =>> Since Mozilla stopped support of OSS, NetBSD users have no sound on =>> Firefox anymore so here is one the way to get back sound on Internet, =>> very easy. => =>For your next trick, can you figure out how to get audio for =>adobe-flash-plugin11 working? Because that business about a tmpfs on =>/emul/linux/dev/shm doesn't do it. I had adobe-flash-plugin11 working ok until I recently upgraded to 7.0_STABLE from 7.0_RC3. Initially flash wasn't working at all (with firefox38 or firefox). A pkg_rolling-replace on a freshly updated pkgsrc got it mostly working again, but the audio has intermittent static, at least with YouTube, and Facebook videos aren't working. FWIW, I have the following in my /etc/fstab: procfs /usr/pkg/emul/linux/procprocfs rw,linux procfs /usr/pkg/emul/linux32/proc procfs rw,linux tmpfs /usr/pkg/emul/linux/dev/shm tmpfs rw,-m1777 tmpfs /usr/pkg/emul/linux32/dev/shm tmpfs rw,-m1777 Gary Duzan
Re: How do I start mixerctl as first daemon?
=> On Mon, 28 Sep 2015, Ottavio Caruso wrote: => =>> Can I alter the init sequence to make mixerctl start as first daemon? => => See the special tags at the top of the rc.d scripts, like PROVIDE, => REQUIRE, KEYWORD, and BEFORE. => => Try adding a # BEFORE: line in the mixerctl rc.d script, for example: => => # BEFORE: DAEMON => => Look at output from: => => rcorder /etc/rc.d/* => => Adjust BEFORE to get mixerctl to happen earlier. => => (Look at other rc.d scripts to get some ideas.) => However, this can easily be undone by your next upgrade. You might consider creating a new /etc/rc.d script which has a REQUIRES entry for mixerctl and a BEFORE entry for whatever is making the noise. That should inject the proper ordering, and since it is a new file it won't get overwritten by a "standard" version later. Gary Duzan
Re: How do I start mixerctl as first daemon?
=> On 28 September 2015 at 19:46, Jeremy C. Reed <r...@reedmedia.net> wrote: =>> On Mon, 28 Sep 2015, Ottavio Caruso wrote: =>> =>>> Can I alter the init sequence to make mixerctl start as first daemon? =>> =>> See the special tags at the top of the rc.d scripts, like PROVIDE, =>> REQUIRE, KEYWORD, and BEFORE. =>> =>> Try adding a # BEFORE: line in the mixerctl rc.d script, for example: =>> =>> # BEFORE: DAEMON => => => What if I want to run it even before networking? => => Would: => => # BEFORE: NETWORKING => => make sense at all? Possibly. You can always run "rcorder /etc/rc.d/*" to see what the resulting startup order would look like. Gary Duzan
Re: How do I start mixerctl as first daemon?
=> On 28 September 2015 at 19:55, <g...@duzan.org> wrote: =>> => On Mon, 28 Sep 2015, Ottavio Caruso wrote: =>> => =>> =>> Can I alter the init sequence to make mixerctl start as first =>> daemon? =>> => =>> => See the special tags at the top of the rc.d scripts, like PROVIDE, =>> => REQUIRE, KEYWORD, and BEFORE. =>> => =>> => Try adding a # BEFORE: line in the mixerctl rc.d script, for example: =>> => =>> => # BEFORE: DAEMON =>> => =>> => Look at output from: =>> => =>> => rcorder /etc/rc.d/* =>> => =>> => Adjust BEFORE to get mixerctl to happen earlier. =>> => =>> => (Look at other rc.d scripts to get some ideas.) =>> => =>> =>>However, this can easily be undone by your next upgrade. You might =>> consider creating a new /etc/rc.d script which has a REQUIRES entry for =>> mixerctl and a BEFORE entry for whatever is making the noise. That =>> should inject the proper ordering, and since it is a new file it won't =>> get overwritten by a "standard" version later. =>> => => If I understand correctly this would be a dummy file, like => /etc/rc.d/SERVERS ? Exactly. Maybe call it QUIET. Good luck... Gary Duzan => => -- => Ottavio =>
Re: system temperatures
= On 08/30/15 12:10, Leonardo Taccari wrote: = Hello William! = = Regarding hard disk temperatures they are usually availables via SMART, = e.g.: = = # atactl wd0 smart status = [...] = 194 1000 no online positiveTemperature = 35 Lifetime min/max 12/50 = [...] = = HTH! = Ciao, = L. = = Does indeed help, no apparent way to query all installed drives, I tried = 'wd[0-5]' it balked, but useful nonetheless :-). Thanks. It isn't hard to script, though, with sysctl hw.disknames. Gary Duzan
Re: 7.0_RC2 pkg_summary.gz not found
In Message can+fjhmzcrvvdop-ttnk5dweuhchwhw8kq52lazcv2wbu2q...@mail.gmail.com, Benny Siegert bsieg...@gmail.comwrote: =On Sat, Aug 1, 2015 at 1:14 AM, ron georgia rong1...@gmail.com wrote: = my /usr/pkg/etc/pkgin/repositories.conf. = ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/7.0/All = =You should be able to substitute 6.0 for 7.0 and get working packages. 7.0 should be fine, though. Maybe try http: instead of ftp:? Gary Duzan
Re: dhcpcd / IPv6 question
In Message pine.neb.4.64.1504080912040.22...@vps1.whooppee.com, Paul Goyette p...@vps1.whooppee.comwrote: =OK, then off to plan B - let's see if I can get a tunnel broker to work =with my dynamic IP address. (Fixed/Static IP not available here in the =Philippines for residential service, as far as I can tell.) (If that =doesn't work, I'll just disable IPv6...) = =Anyone got suggestions for a simple tunnel set-up? With tunnelbroker.net (Hurricane Electric, which has PoPs in Hong Kong and Singapore) I use the following /etc/ifconfig.gif0 file: create tunnel a.b.c.d w.x.y.z inet6 2001:feed:dead:beef::2 2001:feed:dead:beef::1 prefixlen 128 !route add -inet6 default ::1 !route change -inet6 default -ifp $int where a.b.c.d is your local IPv4 address, w.x.y.z is the tunnel endpoint IPv4 address, 2001:feed:dead:beef::2 is your local IPv6 address, and 2001:feed:dead:beef::1 is the IPv6 address of the other end of the tunnel. Gary Duzan
Re: dhcpcd / IPv6 question
In Message pine.neb.4.64.1504080833110.24...@vps1.whooppee.com, Paul Goyette p...@vps1.whooppee.comwrote: =I'm finally getting my NetBSD environment reestablished, and am running =into a little problem. I started dhcpcd from /etc/rc.d without any =special options, and this is what I get in /var/run/rc.log = =... =[running /etc/rc.d/dhcpcd] =Starting dhcpcd. =DUID 00:01:00:01:1c:b2:4c:b2:78:24:af:3d:64:10 =re0: IAID af:3d:64:10 =re0: rebinding lease of 192.168.1.7 =re0: soliciting an IPv6 router =re0: Router Advertisement from fe80::1a1e:78ff:fe97:11ad =re0: requesting DHCPv6 information =re0: leased 192.168.1.7 for 86400 seconds =re0: adding route to 192.168.1.0/24 =re0: adding default route via 192.168.1.1 =forked to background, child pid 412 =... = =It appears that I got a RouterAdvert from somewhere, but never got any =IPv6 routing information. My IPv6 route table looks like this: = = =Destination Gateway Flags Refs UseMtu =Interface =::/104::1 UGRS - - 33648 lo0 =::/96 ::1 UGRS - - 33648 lo0 =::1 ::1 UH - - 33648 lo0 =::127.0.0.0/104 ::1 UGRS - - 33648 lo0 =::224.0.0.0/100 ::1 UGRS - - 33648 lo0 =::255.0.0.0/104 ::1 UGRS - - 33648 lo0 =:::0.0.0.0/96 ::1 UGRS - - 33648 lo0 =2001:db8::/32 ::1 UGRS - - 33648 lo0 =2002::/24 ::1 UGRS - - 33648 lo0 =2002:7f00::/24::1 UGRS - - 33648 lo0 =2002:e000::/20::1 UGRS - - 33648 lo0 =2002:ff00::/24::1 UGRS - - 33648 lo0 =fe80::/10 ::1 UGRS - - 33648 lo0 =fe80::%re0/64 link#1UC - - - re0 =fe80::7a24:afff:fe3d:6410 78:24:af:3d:64:10 UHLl - - - lo0 =fe80::%lo0/64 fe80::1 U- - - lo0 =fe80::1 fe80::1 UHl - - - lo0 =ff01:1::/32 link#1UC - - - re0 =ff01:2::/32 ::1 UC - - 33648 lo0 =ff02::%re0/32 link#1UC - - - re0 =ff02::%lo0/32 ::1 UC - - 33648 lo0 = = =I have no idea where the 2001:... and 2002:...entries came from... Those are standard routes; I have those, too. =Any clue on how to get a valid IPv6 default route? I don't think you have a real IPv6 address yet. ifconfig re0 will most likely show a fe80::7a24:afff:fe3d:6410%re0 link local address, which is generated from your MAC, but nothing else. It looks like your router is IPv6 capable, but isn't actually providing IPv6 service. Gary Duzan
Re: py-usb problems
In Message 54e5210d.6030...@anduin.org.uk, Dave Tyson dty...@anduin.org.ukwrote: =On 02/18/15 19:05, Jonathan A. Kollasch wrote: = On Wed, Feb 18, 2015 at 05:58:22PM +, Dave Tyson wrote: = recent pkgsrc. /dev/usb* is readable/writeable by all = What about /dev/ugen*.*? Any ugen devices in dmesg? = =Forgot to add that /dev/uhid0-/dev/uhid18 as also =read-write all. ktrace showed that ioctl(,USB_DEVICEINFO,) is returning devices, but a debug vesion of PyUSB shows that the usb_device::devices pointer is coming back null, which points to a libusb problem. A debug version of libusb shows that bsd.c:usb_os_find_devices() is skipping anything that isn't ugen, so any USB devices you have drivers for won't show up. Not terribly helpful, but there it is. Gary Duzan
Re: After device resize in DOM-0, DOM-U disklabel unchanged
In Message 543aeeda.6070...@zabrico.com, Louis Guillaume lo...@zabrico.comwrote: =DOM-U = =# dmesg | grep xbd0 =xbd0 at xenbus0 id 1: Xen Virtual Block Device Interface =xbd0: using event channel 6 =xbd0: 32768 MB, 512 bytes/sect x 67108864 sectors =boot device: xbd0 =root on xbd0a dumps on xbd0b = =# disklabel xbd0 | egrep (total sectors| d:) =total sectors: 33554432 = d: 33554432 0 unused 0 0 # (Cyl. 0 - 16383) = = = =How do I get disklabel to know about the new device info? I expect you could simply fix it using disklabel -e in the DOMU. Gary Duzan
Re: xentools42 compilation error
In Message 20140825021651.GA24538@odin, Mayuresh mayur...@acm.orgwrote: =menu=Boot Xen:load /netbsd.XEN3PAE_DOM0 console=pc; multiboot =/usr/pkg/xen41-kernel/xen-debug.gz dom0_mem=3000M root=sd0a dump=sd0i = =Also tried /dev/sd0a in place of sd0a. Didn't work. = =I am using xen 4.1 as I faced compilation error for 4.2. Is root= a later =feature? man page on my system doesn't show root=. Try putting bootdev=sd0 after console=pc. See the boot(8) man page, and the load command section. Gary Duzan
Re: ixg(4) performances
In Message 1lo4dze.1ihmarucmavkvm%m...@netbsd.org, m...@netbsd.org (Emmanuel Dreyfus)wrote: =Hisashi T Fujinaka ht...@twofifty.com wrote: = = No, this was a file copy over NFS. = Step one, don't use NFS. = =What should I use instead? Regardless of alternatives to NFS, it seems to me that the first thing to do is isolate the interface performance from the NFS performance. If you can use ttcp or something similar to measure the TCP/UDP performance over the same link, that should help determine whether it is an NFS-specific problem or a more general networking problem. Gary Duzan
Re: LD_PRELOAD and mixed architectures
= Thanks Greg; it works. I hadn't appreciated what directory structure = was needed under /emul. I'd still love to find a way that doesn't = require superuser, but this may be good enough for now. Good to hear. Sorry I didn't explain the requirements in more detail up front. Good luck... Gary Duzan
Re: LD_PRELOAD and mixed architectures
In Message 53a6f6d7.5040...@grammatech.com, Dave Vitek dvi...@grammatech.comwrote: =Hi all, = =I'm on an amd64 machine that has a mixture of i386 and amd64 binaries =present. I want to build a shared object file and use LD_PRELOAD to =inject it into every process in some process tree. The executables in =the tree could be a mixture of amd64 and i386 executables. Many other =operating systems have a way of using LD_PRELOAD in a mixed architecture =environment, but I'm not seeing a path to victory on netbsd. = =I had a look at the source code for ld.so (the elf one anyway). It =doesn't search search LD_LIBRARY_PATH -- it just tries to open() the =filename in LD_PRELOAD relative to CWD and blows up if the architecture =doesn't match the process. Other operating systems facilitate this sort =of thing in various ways: = =Solaris: LD_PRELOAD_32 and LD_PRELOAD_64 =Linux: Search LD_LIBRARY_PATH, only fail if every attempt fails. Also, =$LIB is magical. =Mac OS X: Universal binaries = =One (ugly) thought I had is to have the shared object file hook every =function in the exec family and fix LD_PRELOAD so it points at the =architecture of the binary about to be exec'd before delegating to the =real exec. Anyone have a less ugly alternative that doesn't require =modifying system files (e.g., adjusting ld.so)? Just a thought, but have you tried putting a 32-bit version of the library under /emul/netbsd32 ? Gary Duzan
Re: openbsd - netbsd : same yet feels different ...
= hello, = = it's been 3 days since i took advice from aaron b and migrated = to netbsd from openbsd. = = i won't go overboard and say that i'm an instant fan-boy, but = frankly, the system feels the same, yet quite different. = = for one, the responsiveness while using the operating system is = much better than under openbsd (or even freebsd). = secondly, the community (mailing list) isn't grumpy. :) = = i migrated primarily because of the upcoming support for lua = throughout the operating system, hope it materializes. = = what else could someone who's not so much into system setup and = administration, nor into systems programming do with netbsd? = ah yes, i am not much of a 'gui' user, so will be working at the = console, primarily, but would be nice to know if there's anyone = here using or carrying over 'cwm' from openbsd, it's kinda nice. It looks like it is available in pkgsrc under wm/cwm. See https://www.pkgsrc.org/ to get started with pkgsrc. Good luck, and welcome. Gary Duzan = in closing, thanks for gracious support i have received ever = since i started pestering the list with questions of a naive type. = = warm regards, = = ~mayuresh = =
Re: email management under netbsd : any simple strategies?
= hello, = = i have been using mutt under various linux based systems as = well as under freebsd. = = looks like the mutt under netbsd (via pkgin) doesn't support = smtp (yet). = = may i know what kind of strategy mutt aficionados use to get = mutt working well under netbsd? = = if there isn't a simple way, may i know what would be a good = approach to email (imap + smtp) at the netbsd console? = = thanks, = = ~mayuresh The down side to using binary packages is that they only support a single set of configuration options. If you build mutt from source you can specify the mutt-smtp build option. http://www.netbsd.org/docs/pkgsrc/configuring.html#selecting-build-options Personally, I use nmh from the shell and squirrelmail (on top of imap-uw) from the browser. Gary Duzan
Re: [RAIDframe] system hangs while manipulating large files
In Message alpine.neb.2.00.1401032034540.15...@korriban.imil.net, Emile `iMil' Heitor i...@home.imil.netwrote: = = asynchronous + log should be impossible. = =I've just discovered that the hard way :) FWIW, it is documented in mount(8): log (FFS only) Mount the file system with wapbl(4) meta- data journaling, also known simply as logging. It provides rapid metadata updates and eliminates the need to check file system consistency after a system outage. A file system mounted with log can not be mounted with async. [...] Gary Duzan
Re: OT: Reliable Email/Web hosting service - recommendations?
= Some time next year, I'll be moving from the US to the Philippines. It = is next-to-impossible to get static-IPv4 addresses, and IPv6-access for = residential service is (apparently) even less likely. = = So, I've got a couple of options. One would be to lease a fixed = address from a US-based company and set up a VPN-over-tunnel = (HideMyAss.com for example). = = It seems easier to just have someone host my domain's mail and web = services, and probably less expensive,too. But I really don't want to = have to use web-based application for Email; I would much prefer using = POP3 (via pkgsrc/fetchmail or similar) to pull mail, and send directly = (via postfix). = = I would also prefer NOT to retain my current DNS services, and not have = to transfer them the Email/Web hosting service. = = So, with all these requirements, does anyone have any suggestions or = recommendations? For the do-it-yourself-er, maybe a Xen VPS on prgmr.com? You get lots of flexibility, but cost and maintenance are likely higher than a hosted services solution. I run a NetBSD 6.1 VPS there now, and they offer static IPv4 and IPv6, and I have an HE/tunnelbroker.net IPv6 tunnel (w/ipsec) from there to my home network. I think their stock NetBSD image is still 5.x, but it should be easy to boot up a 6.x or current DOMU install kernel and do a fresh install. Good luck... Gary Duzan
flactag core in realpath(), PR#46618 Pullup?
Is there any chance this fix will be pulled up to the netbsd-6 branch? http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46618 I'm on 6.1_RC3 and had to hack a patch into pkgsrc to get flactag to work. Thanks. Gary Duzan