Re: Custom release ISO questions.
On 09/04/13 10:27, Sergey wrote: Hi all! Is there a way to create custom ISO without buildworld? I just want to edit some configs and bsdinstall scripts for silent automated install - why need to recompile whole world? It will be great if you'll share some useful links about this process. Thanks. Hi, To create a custom ISO, download the ISO you want to use as your base, use tar to extract the ISO into a new directory, make the changes you want and then run mkisofs -V FreeBSD9 -J -R -b boot/cdboot -no-emul-boot -o ../freebsd_custom.iso . from the new directory. That will create a bootable CD. What I did when making a custom install CD for my server (it's 1000s of miles away in a datacenter) was a slightly different approach. I created a sparse file (sparse to save on disk space) the exact size of my server harddrive on my running BSD box, used mdconfig to give me a md device and pointed VirtualBox at it. Within a VBox session, I did a normal install (manually created the ZFS filing systems), made all the config changes I wanted, installed the apps I wanted then shut the VBox session down. I DD-ed in the md device and piped it to bzip2, creating a bz2 file. Added the bz2 file to the custom BSD install ISO and modified /etc/rc.local file to un-bzip the bz2 file, pipe it to mbuffer (so the opperator could see something was happening) and write the output to the harddrive, popping the reset line when complete. When the server restarted, it was configured with all the right user accounts, ip addresses, nameserver settings etc. Just my 2 pence worth... Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
On 06/17/13 20:40, Greg Larkin wrote: Hi Chris, I prepared a new patch that incorporates my fixes, yours and Michael's. I found the coredump - multiple missing right parens on line 1170. Then I ran into another problem on line 430 and made an educated guess with the fix. The new patch is here, and you'll need to apply it to the original version of the program: http://people.freebsd.org/~glarkin/diffs/prog.bas.2.diff Hope that works, Greg Hi Chris and Greg, I have gone through the code and found a load more differences. I dont know if the sun and moon positions are correct though As a side note, the the first page of code on the PDF page number 5 is different from the PDF page number 34. I have used page numbers 34 - 38 as my code reference. I have a patch file at http://www.caspersworld.co.uk/FreeBSD/basic.diff HTH Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Any BASIC Gurus around?
On 06/18/13 15:01, Chris Maness wrote: On Tue, Jun 18, 2013 at 4:31 AM, Paul Wootton paul-free...@fletchermoorland.co.uk wrote: On 06/17/13 20:40, Greg Larkin wrote: Hi Chris, I prepared a new patch that incorporates my fixes, yours and Michael's. I found the coredump - multiple missing right parens on line 1170. Then I ran into another problem on line 430 and made an educated guess with the fix. The new patch is here, and you'll need to apply it to the original version of the program: http://people.freebsd.org/~**glarkin/diffs/prog.bas.2.diffhttp://people.freebsd.org/~glarkin/diffs/prog.bas.2.diff Hope that works, Greg Hi Chris and Greg, I have gone through the code and found a load more differences. I dont know if the sun and moon positions are correct though As a side note, the the first page of code on the PDF page number 5 is different from the PDF page number 34. I have used page numbers 34 - 38 as my code reference. I have a patch file at http://www.caspersworld.co.uk/**FreeBSD/basic.diffhttp://www.caspersworld.co.uk/FreeBSD/basic.diff HTH Paul Paul, which version did you patch for? It doesn't seem to be the latest or the original. If you want to post the whole file. I can figure out if you are missing any of the other contributions out there. I think there were a total of three patches before yours. Thanks, Paul Chris Maness Hi Chris, I used the code from the first post and compared against the PDF. I did try checking against the various diffs and I think I have them all covered. I full file is at http://www.caspersworld.co.uk/FreeBSD/basic-moon.bas Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Test
Just a test message ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: a new hard-drive in a 2y/o laptop
On 12/28/10 16:02, Chris Brennan wrote: Boot a LiveFS CD, then at a root prompt do: sysctl kern.geom.debugflags=16 and: dd if=/dev/zero of=/dev/adx oseek=1 bs=512 count=1 where x equals your drive number. This will zero out any old MBR. [..] GARBAGEInvalid partition tableError loading operating systemMissing operating systemGARBAGEGARBAGEGARBAGE1+0 records in 1+0 records out 512 bytes transferred in 2.712151 secs (189 bytes/sec) [..] Hi Chris, Are you sure that you got the command right when DDing If you saw Invalid partition tableError loading operating systemMissingoperating system, that suggests to me that you had the equivalent of dd if=/dev/ad4 oseek=1 bs=512 count=1 Here is what I get is I run that DD command on a Windows HDD demophon# dd if=/dev/ada2 bs=512 count=1 3Àм|ûPPü¾¿W¹åó¤Ë½¾±8n| uÅâôÍ▒õÆIt8,tö µ´ð¬tü»´ÍëòNèFs*þF~ t ~ t ¶uÒFV è!s ¶ë¼þ}Uªt ~tÈ ·ë©üWõË¿VÍr#Á$?ÞüC÷ãÑÖ±ÒîB÷â9V w#r9s¸»|NVÍsQOtN2äVÍëäV`»ªU´AÍr6ûUªu0öÁt+a`jjÿv ÿjh|jj´BôÍaasOt 2äVÍëÖaùÃInvalid partition tableError loading operating systemMissing operating system,Dcéêþÿÿ?Á¥P Uª1+0 records in 1+0 records out 512 bytes transferred in 0.363712 secs (1408 bytes/sec) demophon# Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Archiving directories / zip format
On 12/06/10 08:33, andrew clarke wrote: In Windows I use 7-Zip. It's open source and supports .tar.gz, .tar.xz, .zip, .rar and a number of other archive formats. http://www.7-zip.org/ For Windows, I use use WinRAR for .tar and .tar.gz files Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD and large harddrives
On 11/18/10 18:23, Chuck Swiger wrote: On Nov 18, 2010, at 5:51 AM, Mike Tancsa wrote: On 11/18/2010 7:16 AM, Andy Wodfer wrote: Harddrive speed is not so important so a 5400rpm drive would be OK. Seems like the green line of WD harddrives use both 5400rpm and 7200rpm. I will use RAID 5. I would stay away from the green series hard drives for this application. There have been a number of reports of issues with the drive's power saving design causing problems when used in raid arrays. Search the list for more details. Use their black series instead. While the WDC green drives are unsuitable for any RAID application From my own personal experience, I will not use WD Green drives again, be it for RAID or not. I have a one as my boot up and OS drive on a home server configured as a single drive in a ZFS pool (so none RAID). The load/unload cycle is rated at 300,000. Here is a copy from smartctl 9 Power_On_Hours 0x0032 092 092 000Old_age Always - 5958 193 Load_Cycle_Count0x0032 001 001 000Old_age Always - 885346 The drive has less than 250 days online, but is nearly at tripple the rated load/unload cycle. While the drive is still working, I have NO faith in it anymore and am just waiting for it to die. Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Mother board compatibility and CF card usage as main storage device for small DNS server
On 09/30/10 14:54, Kaya Saman wrote: On 30/09/2010 17:54, Brent Bloxam wrote: Kaya Saman wrote: From what you mention it sounds like a bad idea as the system disk will have many R/W's going through it it seems as /tmp and Swap get written to all the time. You can skip swap altogether and use MFS (memory filesystem) like Brian mentioned for other high write partitions that don't need to be persistent (/tmp, /var/log). See the following article on the freebsd.org website about using solid state storage: http://www.freebsd.org/doc/en/articles/solid-state/article.html Keep in mind though that Brian's setup was for slave nameservers that would be caching from another master. If your nameserver is acting as master, you'll be storing your records on flash since you need persistent storage, but I don't imagine those files will be write intensive. Also, if you make /var/log MFS, you'll want to have an external syslog server set up ;) Thanks a lot so it should be ok then! :-) Yeah sounds like a good setup, and also a syslog server :- this is exactly what I need in order to check my IOS logs coming from my Cisco boxes. I had previously imagined it to be a simple tftpboot server but sounds like it's standalone. That's cool! I mean I really like having logwatch mailing me all necessary information anyway so that coupled with a syslog server should be pretty good :-) Nice ideas need to do some Google'ing now as I don't know what MFS is yet but I will :-D Cheers and best regards, Kaya I have been using a Soekris Net5501-70 box since June 2008 with a CF card running FreeBSD 7. This is being used for DNS, DHCP, NNTP, network firewall and a small asterisk server I have turned off writing messages to logs, and in June this year, I started using an MD for /var/db/dhcpd (as that was getting written to a fair amount) Im still on my original CF card, and as of yet, have not seen any problems (touch wood)... Its not the fastest box in the world, but it certainly does what I want it to do. Just takes a long time compiling a world and kernel Just another option for you... Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: this is probably a little touchy to ask...
On 09/10/10 15:16, Chip Camden wrote: Perhaps someone could provide specific use cases for which Java is the only good solution? Take a look at some online games. For example Runescape (www.runescape.com) Taken from Wikipedia /*RuneScape*/ is a fantasy http://en.wikipedia.org/wiki/Fantasy massively multiplayer online role-playing game http://en.wikipedia.org/wiki/Massively_multiplayer_online_role-playing_game (MMORPG) released in January 2001 by Andrew http://en.wikipedia.org/wiki/Andrew_Gower and Paul Gower,^[2] http://en.wikipedia.org/wiki/RuneScape#cite_note-ProquestGower-1 and developed by Jagex Ltd. http://en.wikipedia.org/wiki/Jagex It is a graphical http://en.wikipedia.org/wiki/Graphical_game browser game http://en.wikipedia.org/wiki/Browser_game implemented on the client-side http://en.wikipedia.org/wiki/Client_%28computing%29 in Java http://en.wikipedia.org/wiki/Java_%28programming_language%29, and incorporates 3D rendering http://en.wikipedia.org/wiki/3D_rendering. The game has approximately 10 million active accounts, over 130 million registered accounts,^[3] http://en.wikipedia.org/wiki/RuneScape#cite_note-TechRadar-2 and is recognised by the Guinness World Records http://en.wikipedia.org/wiki/Guinness_World_Records as the world's most popular free MMORPG.^[4] http://en.wikipedia.org/wiki/RuneScape#cite_note-Guinness_Records-3 Using Java, Jagex have made Runescape available to most computer users, not just Windows users A lot of IP-KVMs also use client side Java apps. Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org