Ana içeriğe atla

Kayıtlar

openbsd etiketine sahip yayınlar gösteriliyor

PXEing with iPXE,SmartOS,OpenBSD

Today I needed to install SmartOS and OpenBSD onto an old server whose dvdrom is not working. Because dvdrom is not working, I didnt have much options to install an iso then pxe booting. According to instructions on this site, I set up an ubuntu tftp and pxe server and managed to start live version of SmartOS on that server. But I realised after that I cant install SmartOS that way. It was just for booting as far as I understood. So I changed my way  and installed OpenBSD by pxeing. OpenBSD is installed with using file sets on remote ftp sites. Actually I made a local http server to broadcast those sets but because of ethernet problems on that old server, I couldnt manage to connect to local http server. They were some strange ethernet problems. But at last I managed to connect to a remote ftp server and loaded these sets smoothly. I learned that iPXE is a powerfull opensource pxe program by this journey.

Merge Ps,Pdf Files and A4 into A5

I was trying to print man pages of OpenBSD. They were in .ps format and the paper size was a4. I wanted to convert the man pages so that two a5 pages lie onto an a4 page for the sake of being printer/environment friendly. I also want to combine them as a single document. Here are the commands 1) Making OpenBSD man file a .ps file mandoc -Tps /usr/share/man/man4/route.4 > route.ps 2)Converting 2 a4 pages into 2 a5 pages on a single a4 page psnup -2 -Pa4 -pa4 input.ps output.ps  This command converts 2 a4 pages into a5 ones and put them o a single a4 page. Magic isnt it? 3) Convert .ps files to pdf ps2pdf input.ps output.pdf 4) Combine .pdf files pdftk file1.pdf file2.pdf cat output outfile.pdf There is also a psmerge command. But it gave me some errors. So I chose converting them into pdf and then combining way. Ps: Here is a command for making 2 pages of a pdf file into one page: The package is called pdjam in Ubuntu pdfnup --nup 2x1 --outfile output.pdf ...

Draytek Router logs to central OpenBSD syslog server

OMG I spent 4-5 hours trying to send Draytek logs to an OpenBSD box. At last succeeded. Damn syslog has no information about facilities, previledeges etc.Without knowing anything about what kind of logs (I mean facilites,priviledeges etc) Draytek sends to openbsd I found a web page finally talking about the same problem. Inspired with this web page and after much time realising that syslog.conf DONT accept SPACES but TABS (OMG this made me crazy) I have succeeded relaying logs to OpenBSD box. Thanks to this web page   which enlightened me that it is mandatory to use tabs. Now I have lines like local0.* /var/log/router-firewall.log local1.* /var/log/router-vpn.log local2.* /var/log/router-user.log local3.* /var/log/router-call.log local4.* /var/log/router-wan.log local5.* /var/log/router-adsl.log in syslog.conf which are seperated by TABS not SPACES. I still dont know what happens if I put another router into the same scheme or if another program sends logs to such damn faci...

OpenBSD AMP install

I continue to work with mysql and php install on openbsd. I made some progress. After installing mysql and php one must install php5-mysql package too. Then making some soft links, mysql extension is made readable by php.Inside /var/www directory there must exist a /tmp directory writable by others for storing session info etc. Adding required directives to apache's,php's config files it began working. I have some minor problems to be solved.