Re: Reformatting little USB-harddisks
Most of these that I've used work just fine. You end up mounting them as /dev/sdXe and use mount_msdos. /dev/sdXe is just a made up disklabel that the machine makes to temporarily deal with it. Some come formatted with ExFAT now which is not compatible with NetBSD, and might never be as far as I know. You can wipe them and use fdisk and disklabel to turn them into "real" NetBSD disks without any problem. There might be a few that cause issues but most work in my experience. Andy Ok, thats fairly easy - fdisk and disklabel. Will be a 1T harddisk. Just for keeping backups in a separate location. Not the fastest solution I guess. Rsync will take care of it - and I still have the slower USB2 on my server... Cheers herb langhans
Re: Reformatting little USB-harddisks
From: Travis Paul[160308 18:36] > They come FAT formatted, right? Has anyone of you tried to > reformat them for NetBSD? I guess its not a big thing, but I wonder if I > can buy any brand (need it for portable server backup and need GID/UID) or > there are some models what make trouble with formatting, partitioning or > mounting. > I have used several brands, WD, Seagate, Kingston and they have all worked with NetBSD. I've even used a Kingston SATA to USB converter with an SanDisk SSD and had no issues. Best of luck, Travis Thats great, thanks for the hint, Travis. I will fetch a WD or Seagate. Will miss my tape streamer though, it has style... Cheers herb langhans
Reformatting little USB-harddisks
Hi List, you sure know these little external USB-harddisks, often used for laptops or basic backups. Like WD-Passport and Seagate Expansion and whatever they name them. They come FAT formatted, right? Has anyone of you tried to reformat them for NetBSD? I guess its not a big thing, but I wonder if I can buy any brand (need it for portable server backup and need GID/UID) or there are some models what make trouble with formatting, partitioning or mounting. I had some trouble with USB-Sticks. Thats another story, but close enough the be alert just buying any plug n play solution what may not work later. Any experience? Thanks! herb langhans
Bitcoins, wallet
Good Morning List, has any of you got such a 'bitcoin wallet' running on NetBSD? Or any idea how I can manage bitcoin payments on a local NetBSD setup. Maybe via Linux emulation? Thanks, herb langhans
Re: NetBSD as first introduction to BSD and generic book recommendation on basic Unix concepts to learn?
From: Joseph[151106 00:22] Hi there, I am new here. I'm interested in BSD in general, Hi Joseph, you come from the Windows world. If you want to start with the Unix basics, try something short like O'Reilly - Learning the Unix Operating System (about 170 pages). You have to get an idea of the Unix concept, the big books for system administration wont help much (unless you want to spend plenty of time try making sense of a 900 page thing). And get comfortable with a text editor like nano, emacs or vi (latter is a little hard to get used to). You will work with lots of text files for settings). And get comfortable with the Unix filesystem (hierarchy). But you will find all this in the book. And then you can skip straight to the NetBSD-Doku. Its well written, you will like it. Cheers herb langhans
Howto stream audio from server to local client?
Hi List, there is one thing I like to do on a local network. On my server I have a good collection of mp3 files. I use to play them via mpc/ncmpc and the output comes from a soundcard what is installed in the server. Very conventional. All works. I would like to stream these mp3 files to local clients, i.e my laptop. On the laptop there would be something like xmms what allows to play streams via URL or just an ip-number. Like for web-radio, you know. What is a lean method to feed /dev/audio into a stream what I can listen via laptop or other clients on my local network? I found the package audio/icecast - but it rather looks like a full radio station software. Is there some simple solution too? Like some driver where I can use instead of /dev/audio something like /dev/audionetstream or whatsever? Any ideas? Experiences? Cheers herb langhans
Re: system temperatures
From: Martin Husemann mar...@duskware.de [150830 18:34] On Sun, Aug 30, 2015 at 10:54:58AM -0453, William A. Mahaffey III wrote: It is convenient on my various linux boxen to use lm_sensors to retrieve apparently accurate temps. for various system components (CPU's), as well as data on fan speeds, etc. Under FreeBSD (9.3R-p21), sysctl provides some of this info, but apparently inaccurately. Under NetBSD 6.1.5, I see no references to temperatures at all :-(. You are looking for envstat(8) Martin Hi William, some inspiration maybe? Here is an excerpt of my /etc/envsys.conf aiboost0 { sensor0 { warning-max = 75C; } sensor1 { warning-max = 70C; } sensor6 { critical-min = 1200; warning-min = 1400; warning-max = 3500; } sensor7 { critical-min = 1800; warning-min = 2000; warning-max = 3500; } } # amdtemp0 { sensor0 { critical-max = 90C; warning-max = 85C; } } The sensors will be different, the man page will tell you about it. Be aware of Celsius/Farenheit - Celsius needs 'C'. The 1000-something is the revolutions of the fans. Hot summer at your place too? ;) Cheers herb langhans
Re: system temperatures
Indeed, works as advertised, temps seem to be good, *BYAH* I only see CPU0 temperature right now (precisely what I asked for, no problema), how do I get it to monitor display other stuff ? TIA have a good one. William A. Mahaffey III If you put the right data into /etc/envsys.conf it will send you an e-mail if some value is out of the range. herb langhans
Re: PulseAudio high CPU usage on NetBSD 7_RC1/amd64
From: William D. Jones thor0...@comcast.net [150727 08:31] Hello all, Can anyone who is using NetBSD in a desktop setting confirm whether PulseAudio uses 100% of one CPU core while a video is playing either in a web browser (such as Firefox) or a media player? I'm currently unable to diagnose the issue, but since I installed it, any time I do either of the things listed above, a PulseAudio instance will consume 100% of WCPU/CPU according to top. Starting PulseAudio with log-level=debug does not show anything out of the ordinary, such as (many) buffer over/underruns. Copying the default daemon.conf from pkgsrc into ~/.config/pulse and changing the resampler to trivial does not fix the problem. PulseAudio already crackles/glitches slightly as is, with the default high-priority/realtime settings, so I would prefer not to mess with that. Even taking realtime/high priority scheduling into account, something just doesn't seem right about the high CPU usage. At the very least, I can play an HTML5 video in Firefox on Linux, using a system with a slightly slower CPU, and pulse's CPU usage barely registers in top (realtime). Does anyone have suggestions on how to go about trying to fix these issues? I need a sound mixer, and for better or worse, PulseAudio seems to be the standard solution. As always, thanks for any help or steps in the right direction! Sincerely, William D. Jones thor0...@comcast.net Hi Willian, though I have an older version of NetBSD, and experienced the same issue - pulseaudio took 100% of the CPU. Same here, using Firefox and the videos. Have you tried fiddling with the settings of /usr/pkg/etc/pulse/daemon.conf? I have changed these settings from the defaults to: high-priority = no realtime-scheduling = no resample-method = trivial Still it hogs on the ressources, but at least it works. Cheers herb langhans
Re: NetBSD for the dekstop
I use NetBSD since many years on my servers and laptops. It works especially well on the older Thinkpads. NetBSD compensates the slow processor and little RAM I have in these Thinkpads. NetBSD 5.1.2 with X11 and Fluxbox works great and takes only few ressources. Though I am not happy with the browsers, as the others mentioned too. Some older version of Firefox is doing well though, but I dont dare to update anything ... Cheers herb langhans
Re: Keep trace of ping request
From: Rocky Hotas rockyho...@post.com [140825 14:01] Hello! I am sorry if my question looks trivial, but is there any way to keep trace of ping requests in NetBSD? No file in my /var/log directory has been modified after a ping request sended from another host. Can I add some settings in a configuration file in order to log these events? And (if yes) what is the log file to be considered? Thank you anyway Rocky I am not sure you look for such an advanced solution. But with snort (an intruder dedection program) you can log such events easily. herb langhans
Re: How do you build a domain blacklist file on Netbsd?
From: Ottavio Caruso ottavio2006-usenet2...@yahoo.com [140427 14:55] I have a long list of banned domains that I would like to import into the host file. On Linux I had these entries mapped to 127.0.0.1 in /etc/hosts, but this doesn't seem to work on Netbsd. Any help appreciated. -- Ottavio Maybe a case for ipfilter? Do you want your local users not to be able to access certain pages or some certain ip-ranges out there cannot access your server? -- herb langhans
Re: How do you build a domain blacklist file on Netbsd?
From: Ottavio Caruso ottavio2006-usenet2...@yahoo.com [140427 18:41] On 27 April 2014 18:36, herbert langhans w...@langhans.com.pl wrote: Maybe a case for ipfilter? I can give it a look but I think ip filters blocks by IP not domains. Do you want your local users not to be able to access certain pages or some certain ip-ranges out there cannot access your serve No, I only want to block malware sites and annoying tracking website when I browse web pages. -- Ottavio Yes, that seems not to work with ipfilter (unless you write a script to scan all the domain's ip-numbers to gather a list). Ipfilter is very efficient though and low on ressources. For the case you use firefox, there is a great plugin - http://noscript.net/ I use noscript for quite a while and its flexible locking out some redirecting scripts. -- herb langhans
Re: NetBSD web server http://www.netbsd.org is down.
From: Patrick Welche pr...@cam.ac.uk [140306 11:15] On Thu, Mar 06, 2014 at 10:32:55AM +0100, Ivan Temp wrote: Can anybody access to the web? No... P Seems to be ok now at 12:15 CET from Warsaw. herb langhans
No subdirectory accepted in /var/run ?
Hi List, some behaviour surprised me: I create a subdirectory /var/run/snort I restart the server - subdirectory /snort is gone It would be good to have this, since snort's pidfile has trouble with it when I restart snort. Also I dont want to be to generous with the /var/run permissions. Any ideas? Thanks! herb langhans
Re: No subdirectory accepted in /var/run ?
From: Jeremy C. Reed r...@reedmedia.net [140228 21:24] On Fri, 28 Feb 2014, herbert langhans wrote: I create a subdirectory /var/run/snort I restart the server - subdirectory /snort is gone Removed by /etc/rc.d/mountcritlocal hier(7) says that the /var/run/ system information files are rebuilt after each reboot. If this is a package snort, then maybe it should be adjusted to use a different snort pid location? Or the snort.sh rc.d script can be adjusted to create if needed. Maybe as a workaround if you use a rc.d/snort script then maybe add /etc/rc.conf.d/snort containing: mkdir -p /var/run/snort Or add that mkdir to your /etc/rc.local Or use snort --pid-path to choose different location in your startup? Thanks Jeremy, I didnt find the reference for it. And the /usr/pkg/etc/snort.conf has the option to direct the pid file to any directory. But actually /var/run is the place where it belongs. Instead of asigning 757 to /var/run I wanted to create a subdirectory /var/run/snort where it can dump the pid file with owner/group snort:snort. Is it a bad idea to make /var/run 757 or 777? Its a webserver... herb langhans
Re: firefox17 dumps xulrunner.core but still works
From: David Lord net...@lordynet.org [140218 22:21] On 18 Feb 2014 at 16:26, herbert langhans wrote: Hi List, I have set up a Thinkpad T42, NetBSD 5.2.2 and its almost finished now. One annoying thing happens. The /www/firefox17 - compiled from pkgsrc - starts, runs well, but dumps xulrunner.core in /herbs/home. The pkgsrc is updated, I compiled firefox a second time - no change. Surprisingly the same happens with /www/seamonkey, but it dumps seamonkey.core - and seamonkey works as well. Still I can use these browsers, but I wonder whats wrong. Anybody with similar experiences out there? Any guru who wants to take a look to the core files? Any ideas? I have same with firefox.core NetBSD-6 i386 and 2013Q3 then 2013Q4 but no problem with firefox in use. David Good to know, I wasnt sure its just on my laptop or some bug. I will notify the maintainers on pkgsrc-us...@netbsd.org. herb langhans
Re: Install i386 or amd64?
From: Ottavio Caruso ottavio2006-usenet2...@yahoo.com [140125 14:50] On 25 January 2014 12:52, herbert langhans w...@langhans.com.pl wrote: I have to change my laptop, my nostalgic Thinkpad x31 blew up (I really liked it). Successor will be a Lenovo B590. I wonder what NetBSD will be ideal for it. Beware, if it comes with Windows 8, it will have a GPT partition. I would make sure that model can also boot in BIOS legacy mode before investing any money. -- Ottavio They're selling, at least here in Poland, the B590 without any operating system - one of the reasons to buy it. Its really quite a low price. The BIOS legacy mode I havent heard of yet (my equipment is quite vintage). Does it mean a non-legacy mode computer doesnt boot anything but MS-stuff? Or some funny partition table you cannot get rid of? -- herb
Re: Install i386 or amd64?
From: Ottavio Caruso ottavio2006-usenet2...@yahoo.com [140125 15:12] On 25 January 2014 14:58, herbert langhans w...@langhans.com.pl wrote: The BIOS legacy mode I havent heard of yet (my equipment is quite vintage). Does it mean a non-legacy mode computer doesnt boot anything but MS-stuff? Or some funny partition table you cannot get rid of? I still would check with the manufacturer or reseller what kind of firmware they use. I would expect any modern laptop would come with a new UEFI-compliant firmware and not the old fashioned BIOS. I suspect that model would come with legacy mode (Lenovo uses the term CSM -Compatibility Support Module). I am not sure about the status of Netbsd with UEFI firmware but I am sure somebody will clarify this point. -- Ottavio Thanks, I found some detail by googling. The B590 has also such legacy mode, there are Linux distributions what confirm it works (I guess the partitioning thing will work universal with non-MS systems, also NetBSD). Still wonder if I should try the NetBSD/amd64. -- herb
Re: Install i386 or amd64?
From: Volkmar Seifert v...@nifelheim.info [140125 16:20] Hello there, Still wonder if I should try the NetBSD/amd64. The only reason to install a 32-bit OS on an otherwise 64-bit capable hardware would be, if the system-ram is 2GB or less. Otherwise, you'd waste resources and CPU-capabilities. The 64-bit mode comes with a couple registers unavaible in 32-bit mode. Most software compiles on 64-bit just as fine as on 32-bit. Just my 2-cents... Best regards, Volkmar -- http://www.dimensionv.de/ http://tech.nifelheim.info/ Actually the B590 comes with 2GB RAM, its the cheapo-edition. But my demands are not high, most ressources go for Firefox with Javascript or some movie player like xine. I hope just 2GB doesnt slow down the amd64 or get it stuck. Did you try such combination, Volkmar? -- herb langhans
Re: Install i386 or amd64?
From: Volkmar Seifert v...@nifelheim.info [140125 16:34] I hope just 2GB doesnt slow down the amd64 or get it stuck. Did you try such combination, Volkmar? Well, RAM isn't expensive, so I guess I'd install the 64-bit version anyway. Indeed I did that on a set-top-box (with a Windows 7 64-bit), while it had 2 GB RAM. I upgraded to 4GB later (more the board can't handle). Just make sure your swap-area is big enough from the start. Changing that later is...well...kind of a pain. It's not really slowing down anything, it's just that all pointers etc. are 64-bit, not 32. Might seem like a captain obvious statement, but the consequence is a higher RAM-consumption, something most people are really aware of. Best regards, Volkmar That sounds good, I will give it a try, care for enough cache (laptop comes with such half a terabyte hd - no problem) and keep an eye on the RAM allocation. The only thing what annoys me is the leak of a three button mouse (that touchpad under the keyboard I mean). Was standard on older Thinkpads and its gone on all the new laptops. But thats another story ... I will let you know, how this model performs with NetBSD. Thanks for all your suggestions, its great advice! -- herb langhans
Re: I need a tool to manipulate a large pdf file
From: Ottavio Caruso ottavio2006-usenet2...@yahoo.com [140105 03:12] Hello, I have a book in the form of a large pdf file (over 500 pages) which I would like to convert into many plain text files, to be used on a cheap portable mp3/mp4 reader. The pdf was not scanned, it's the original pdf that came from the publisher but pdf is not supported by the reader. Of course I could buy a proper e-book reader but that would be for later on. So what I would ideally like to do is: - split the pdf into many pdf files according to bookmarks (chapters) - convert the resulting pdf's into nicely formatted plain txt files, preserving some sort of formatting. The book does not contain advanced graphics but a few simple tables. I've spent the whole day trying all free online tools but they all produced nasty results. I am not sure if this is possible on Netbsd (I know it's possible on other platforms with very expensive proprietary applications) but I hope you can help. Thanks -- Ottavio For such cases I just convert the files with pdftotext. If its just a single book it should not be a huge effort to split the resulting file into one textfile a chapter - I would simply use a text editor. Just with the tables you will have no luck. But even simple ones are anyway to complex to make an ascii table out of them. Cheers herb langhans
Re: I need a tool to manipulate a large pdf file
From: Ottavio Caruso ottavio2006-usenet2...@yahoo.com [140105 10:12] On 5 January 2014 08:08, herbert langhans w...@langhans.com.pl wrote: For such cases I just convert the files with pdftotext. If its just a single book it should not be a huge effort to split the resulting file into one textfile a chapter - I would simply use a text editor. Thanks Herbert, after long searching (and by the way, how do you dig in all the available packages? I tried 'pkgin search pdftotext' but I couldn't find it) it looks like this application is both in: - converters/doc2html - print/poppler-utils As the former is much smaller package than the latter, are they the same tools? Thanks -- Ottavio I am not absolutely sure, but xpdf might contain pdftotext. If you have xpdf not installed, try this package. herb langhans
Re: Thinkpad T42 and NetBSD - Experiences?
I have been using a T42 ThinkPad for several years ... Thanks for all the input. Just took a closer look at the T42 offer and decided to look for another one (you know, internet auctions are like flea markets). Now I also registered at http://forum.thinkpads.com - quite a good ressource about the hardware. Will be probably back with 'how does NetBSD perform on a Thinkpad xxx'. Merry Christmas! herb langhans
Thinkpad T42 and NetBSD - Experiences?
Hi List, I have to replace my current laptop I have found an IBM Thinkpad T42 with 1.5GB RAM and a small Hardisk. Its a sturdy built thing what fits my needs. My question - is anybody out there who had ever used one with NetBSD? Anything I should know about this model before I buy it and install NetBSD on? Are there known incompatibilities or is this Thinkpad a safe choice? Thank you! herb langhans
Re: Stupid question about startup script.
From: ASV a...@inhio.eu [131030 12:42] Hi everyone, I'm newbie with NetBSD (few days) but worked with FreeBSD and OpenBSD for long now. I've a stupid question: I've used pkgsrc for the first time and after compiling and installing everything (successfully) I see that startup scripts of the installed services are somehow stuck into /usr/pkg/share/examples/rc.d which looks a bit odd to me. As in FBSD all the installed ones would go to /usr/local/etc/rc.d I'm asking if the place where those scripts are now /usr/pkg/share/examples/rc.d is where they're supposed to be or I should manually copy/link them on /etc/rc.d ??? Thanks in advance. Yes, that's the idea of it - the ../examples.rc.d files are just a model, how they should appear in /etc/rc.d. After installation they should be copied over and sometimes need some little change. Some are for /etc/rc.d, some for the /home/user directories. They have no function as long they reside in the examples directory. Cheers herb langhans
libXinerama.so.2 - where to find this one?
Hi List, strange things happen here. I updated some binaries via pkg_add and lost somewhere the file libXinerama.so.2 - just libXinerama.so.1 remains. Now seamonkey, firefox, pidgin and other programs dont run. The error is the same: $seamonkey XPCOMGlueLoad error for file /usr/pkg/lib/seamonkey/libxpcom.so: Shared object libXinerama.so.2 not found Couldn't load XPCOM. $ firefox XPCOMGlueLoad error for file /usr/pkg/lib/xulrunner/libxpcom.so: Shared object libXinerama.so.2 not found Couldn't load XPCOM. In what package is this libxpcom.so.2 hidden? The usual glib and gtk2+ is there. Any hints? I am really lost ... Thanks! herb langhans
Re: browsers and core dumps
From: Paulo Geyer pauloge...@gmail.com [130528 19:44] I've installed netbsd few days ago, and couldn't do much in it yet the OS is fast, what is awesome for this old computer (1.6ghz, 2gb ram), but I coulnd't install or use Midori/Epiphany, and Firefox (17) is too slow these are the problems I have here * firefox binary package is broken * Midori binary package is broken (core dumps, and missing libicu library) * Midori compiled using pkgsrc gives me core dump when I try to use * Epiphany binary package core dumps too I installed netbsd using the netbsd-INSTAlL via netboot, did a full install for 6.1 kernel and sets, amd64 Other issues: wpi driver loses connection sometimes networking boot is too slow, (can't set to run in the background while booting?) emacs core dumps sometimes too What can I do to solve these problems? Hi Paulo, with Midori I had the same trouble. Though its such a nice browser, it hangs up often with a core dump. Firefox takes some time to start, but should not be too slow - I am fine with it on a 1.5ghz laptop. Did you try Seamonkey? Thats my favorite what I use daily. Cheers herb langhans
ftp.netbsd.org offline
Hi List, I see that ftp.netbsd.org is not on the net. Anything I missed or just some downtime for service? Thanks herb langhans
Re: rss2email - keeps cron instances open on timeout
Niels, Matthew, I am still wrenching on this. These timeout errors occur to rarely to provoke it by running rss2email. I have restarted the server and wait for the 'timeout' what is caused by this rss2email. Then I try to trace it back by the timestamp of the cron log file. They are not Python processes, these what I found relate to mailman (top shows the user 'mailman'). Python is not the culprit. There are these 'cron' as well as 'sh' processes open after the timeout. I think so and will wait and count these processes. I do not understand it fully myself, Niels. One question though. This is /var/log/cron: snip Apr 11 18:15:00 manul cron[1124]: (herbs) CMD START (/usr/pkg/bin/r2e run) /snip The number in the square bracket[1124] is the PID of the cron instance, yes? Or the /bin/sh it opens? Just to be sure. I let you know after some further observation. Thanks! herb langhans On Thu, Apr 11, 2013 at 02:04:37PM +0200, Niels Dettenbach wrote: Am Donnerstag, 11. April 2013, 13:20:58 schrieben Sie: Is there some easy way to make cron and sh show the pid it just has opened? So that I can invoke rss2email and know for sure on what occasion it keeps the process? With top I just get a list of some more 'crons' opened ... hmm, not shure if i understand you fully here (do you mean the PID of the rss2email procs?) - you might write a short wrapper shell script in between which starts rss2email and writes out the PIDs i.e. into a file. rss2email R2E_PID=$! echo $R2E_PID /some/file/with/rss2email.pids Why not trying to get the rss2email error from the shell directly (i know that it may take some time / many starts to un into that error in practice...)? Then you can see what / where it is hanging there... hth a little best regards, Niels. -- --- Niels Dettenbach Syndicat IT Internet http://www.syndicat.com PGP: https://syndicat.com/pub_key.asc --- -- sprachtraining langhans herbert langhans, warschau herbert.raimund[at]gmx.net herbert[at]langhans.com.pl http://www.langhans.com.pl +0048 603 341 441 | jabber:herbs | icq:414500866 | yahoo_im:herbert.raimund
Spin Down/Hibernate SATA harddisk
Hi List, a question about SATA disks under NetBSD. If you have two SATA HDs connected and you have to use only SATA1 - is there an option to spin down or hibernate SATA2? SATA1 is always in use (for server), SATA2 can be unmounted (archive or backup, rarely required). Is there some command/utility/method to stop SATA2 spinning? Or may it stop when umounted (hardware of harddisk)? Any experience or ideas about it? Thanks! herb langhans