[131099110010] |NetBSD Serial Port Gateway [131099110020] |Hello, everyone! [131099110030] |I have an old Toshiba Satellite 4015CDT, with Pentium II MMX, 32MB RAM, 4GB HDD. [131099110040] |It also has one USB 1.0 port, parallel and serial ports, a 3.5" floppy drive and a CD-ROM drive (almost dead). [131099110050] |Also, NetBSD 5.1 is installed on the machine.* [131099110060] |Is it possible to connect the NetBSD machine to a Windows machine (Windows XP) through a serial port, so that the Windows machine will serve as a gateway to the Internet for the NetBSD machine? [131099110070] |If so, how? [131099110080] |If it is of any help, here is the page from the NetBSD documentation on serial connections. [131099110090] |I would very much appreciate any help on this matter. [131099110100] |Thanks in advance. [131099110110] |*This is the same computer as in here. [131099120010] |I've done this on Linux. [131099120020] |I had an old laptop that had no ethernet port, and I had no USB-ethernet port or PCMCIA ethernet adapters, but it did have a serial port. [131099120030] |You need a null modem cable, and your NetBSD needs to be running a PPP daemon (it's called pppd on Linux). [131099120040] |You then set up serial port in Windows XP as a modem. [131099120050] |You need to go to the "Phone and Modem Options" in the Control Panel and create a new modem based on the COM port you want to use and set the baud rate, etc. options accordingly. [131099120060] |This then lets you use the "modem" as an Internet interface and you can enable Internet Connection sharing and all that good stuff. [131099120070] |Only caveat is that Windows thinks it's dialing a modem, so it will send modem commands to the serial port that pppd normally wouldn't expect. [131099120080] |But you can use a chat script with pppd to basically tell pppd to pretend to be a modem to Windows. [131099120090] |After all this, you'll have an interface ppp0 or whatever NetBSD calls it forwarded through Windows Internet Connection Sharing running at the astonishing speed of 115Kbps. [131099120100] |Basically, this script fragment is the essence of what I'm running on the Linux box. $LOCAL_IP is the IP address of my router/DNS server, which is 10.0.0.1/24, and $LOCAL_NET_MASK is it's netmask which is 255.255.255.0 in this situation. [131099120110] |You need two consecutive IP addresses on the same subnet to form the "tunnel" that PPP depends on. [131099120120] |That is then your IP address on the NetBSD box. [131099120130] |and winclient.chat contains this text: [131099120140] |with an extra newline at the end of it. [131099120150] |But that's Linux. [131099120160] |Don't know if pppd works on NetBSD the same way. [131099130010] |pears php_uml throws errors [131099130020] |When i run phpuml on command line i get many of these errors... what can i do? what did i wrong? [131099140010] |How to delete line if longer then XY? [131099140020] |How can i delete a line, if it's longer then e.g.: 2048 chars? [131099160010] |Something like this should work in Python. [131099170010] |Maemo: how to get system information/specifications? [131099170020] |How can I find the maximum resolution, processor type and RAM capacity of my device in Maemo? [131099180010] |It's a full linux system, so in an xterm you can: [131099180020] |For the resolution, it's 800x480. [131099180030] |But xdpyinfo doesn't exist on the system so I think you need to look in the X log file to get it. [131099190010] |You might want to check out Conky. [131099190020] |It's a really nice and useful system metrics vizualisation app for Maemo. [131099200010] |How can i "wget" the content of this site [131099200020] |If I run: [131099200030] |I can't see the news...why? [131099200040] |How can i wget or curl this site, so that i can see the news on it? [131099200050] |I can't even browse it with elinks :( [131099210010] |That site requires JavaScript to be enabled. [131099210020] |None of the tools you mention can interpret JavaScript. [131099220010] |I suspect you might like Fake.app, but I have no idea to what extent it offers saving/output. [131099220020] |Perhaps with Fake and Automator you could load the page, save a snapshot, move to the next page number? [131099230010] |Links2 with a trigger of -g should take care of that JavaScript problem. [131099230020] |You'll might need some tweaking to do to meet your monitor or terminal for that there is always a man page. [131099240010] |Configure wget to not clobber good data with empty data [131099240020] |I currently have a setup where I have an emergency server which on a scheduled basis grabs files from my main webserver using wget. [131099240030] |If all goes well I want wget to clobber the old cached file. [131099240040] |However, if the request returns 404 or something else goes wrong where data cannot be retrieved (e.g. my main server goes down), I don't want the cached data to get clobbered. [131099240050] |I've tried using -N which correctly clobbers the data if a new version is available. [131099240060] |However, if there is a 404 it clobbers that data with 0 byte files. [131099250010] |Make a copy of the file before calling wget. [131099250020] |(There doesn't seem to be a way to tell wget to unlink and recreate rather than clobber the file.) [131099260010] |If you can modify your web server's configuration or allowed to have .htaccess, you can setup custom error pages. [131099260020] |For example, assuming apache as webserver, make an error page /var/www/error-pages/404-error.html and add the following to your .htaccess or vhosts section. [131099260030] |Together with the alias directive, you can use the same error pages for multiple vhosts if you have more than one. [131099260040] |This alone should help not clobbering, but you can also add -X error-pages to your wget parameters to skip all custom error pages in general. [131099270010] |Resources for portable shell programming [131099270020] |What resources exist for portable shell programming? [131099270030] |The ultimate answer is to test on all targeted platforms, but that's rarely practical. [131099270040] |The POSIX / Single UNIX specification is a start, but it tells neither you what the level of support of each implementation is, nor what common extensions exist. [131099270050] |You can read the documentation of each implementation, but that's very time consuming and not completely accurate. [131099270060] |I seems to me that an ideal format would be some kind of community-annotated version of the POSIX spec, where each feature is annotated by its support level amongst the different implementations. [131099270070] |Is there such a thing? [131099270080] |Or are there other useful resources? [131099270090] |For example, there is Sven Mascheck's shell portability pages, but it's only about syntactic elements and a few built-ins, and only covers old shells. [131099270100] |I'm looking for a more comprehensive resource. [131099280010] |Writing your scripts using dash might be a start. [131099290010] |How to guarantee the integrity of an OS? [131099290020] |In information security, integrity means that data cannot be modified undetectably. [131099290030] |This answer raised my interest, of course, I want to guarantee the integrity of my OS, outlined here. [131099290040] |Suppose a security camera project where you store every photo to a folder. [131099290050] |I used fswebcam -program, crontab and some bash scripts to automatically to shoot photos. [131099290060] |I did it for second-hand store on very low budget, re-used old laptops and old cameras, and with limitations such as no internet connection. [131099290070] |I am unsure whether the os, obsd, offers some extra features not in use which I could use, perhaps some sort of paranoia mode. [131099290080] |Basically, each comp had clearly predefined schedule: take a photo (execute a script, ...), save it to a file, ... -- if anything different, alarm. [131099290090] |I don't know whether there is any way to freeze the rest of the os in a way that it is totally unusable in other services. [131099290100] |Some of the laptops could be shooters while one laptop could be a receiver or core data center. [131099290110] |
  • How can you do it with obsd laptops that can work in concert?
  • [131099290120] |
  • How could you guarantee the integrity of the OS so that no picture cannot be removed or if removed it will leave traces?
  • [131099290130] |
  • In which mode would you put a shooter and a receiver obsds? [131099290140] |Are they in different modes and why?
  • [131099290150] |Related but not the same [131099290160] |
  • favourite integrity monitoring software?
  • [131099290170] |
  • Verifying server software integrity?
  • [131099300010] |Just an off-the-side idea for your particular example and to keep things simple: you could send off-site a hash of every picture (if you cannot afford the whole picture). [131099300020] |Make sure that the off-site service has "add" capability only (and read of course), i.e. that the source system cannot remove existing records. [131099300030] |Lastly have a trip-wire style off-site script to compare the source server with the off-site hash history. [131099300040] |Not sure this answers your question, but to me there is no easy way to absolutely guarantee one system's integrity without having recourse to the outside world (third-party). [131099300050] |Even then it cannot be a 100% guarantee ever, but at least you are significantly reducing the risks of all systems being compromised. [131099310010] |Unless you can block unauthorized access to the OS and hardware, I don't see how anyone could guarantee the integrity of any system without using only Write-Once storage. [131099320010] |You don't necessarily need OS level integrity for the application you describe - you could just use a Write Once Read Many drive (WORM) which physically will not allow any file to be deleted/overwritten. [131099320020] |Alternately, you can buy machines with TPM for not too much money (still more than buying a WORM drive) [131099320030] |Or use tripwire in conjunction with a chrooted environment. [131099330010] |Debian lenny 5 install php-dev [131099330020] |I'm trying to install apt-get install php5-dev but when I run the command [131099330030] |How can I solve this situation? [131099340010] |The problem is that you are trying to install php5-dev from squeeze instead of lenny. [131099340020] |The lenny version of php5-dev doesn't depend on any particular version of libtool or autoconf the way that the squeeze version does. [131099340030] |If I were to guess how you got into this situation, I'd guess that you got into this because you now or at some time had "squeeze" in your sources.list and installed some stuff, or perhaps you are referencing "stable" instead of "lenny" or "squeeze" in your sources.list and now you might be running some mix of lenny in squeeze.apt-cache policy php5-dev should tell you where you are getting php5-dev from, which might help.