Re: denyhosts, fail2ban, or something else?
On 11/27/12 22:25, Aleksandr Miroslav wrote: Finally got sick of seeing tons of ssh break-in attempts in my logs. Am considering using denyhosts, or fail2ban. Anyone have any experience with these? I'm already using the AllowUsers facility of ssh to only allow specific users in, so I'm not overly concerned about the attempts. This is for a FreeBSD 8.x box running pf, btw. It's probably major overkill and may not fit your needs but this article by Colin Percival is an interesting enhancement to the non-standard port solution. http://www.daemonology.net/blog/2012-08-30-protecting-sshd-using-spiped.html ___ 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
set connection to a modem
hello guys, i want to connect my freebsd system to modem and configure it via my freebsd. i thought that i should change /etc/ttys file to set speed and other configuration. in order to check if i am right or not, i comment ttyu line in ttys file and expect the modem got disconnected but the modem still works and can access to it. i googled and found that there are three files in /etc that we can edit them to configure our devices: /etc/ttys, /etc/gettytab and /etc/rc.d/serial.sh. moreover we can edit init file for each device in /dev to set default speed and other configuration by stty command. now i am confused and don't know which file i should edit to set speed and flow control and other setting to have a connection to my modem. i mean from which file i can configure my connection? i know it's too easy but please clear it for me. yours, sam ___ 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: When Is The Ports Tree Going To Be Updated?
jb jb.1234abcd at gmail.com writes: ... I tested and compared results on FreeBSD 9.0 and FreeBSD 9.1-RC3 (done here earlier) and this is a summary. Please review it, in particular the conclusions, as they are intended to be the base for filing a PR#. Test on FreeBSD 9.0 --- $ uname -a FreeBSD localhost.localdomain 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 # ls /var/db/pkg/portmaster-3.11/ # portsnap fetch update Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found. Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done. Latest snapshot on server matches what we already have. No updates needed. Ports tree is already up to date. # ls -al /usr/ports/IN* -rw-r--r-- 1 root wheel 26912299 Nov 28 08:53 /usr/ports/INDEX-7 -rw-r--r-- 1 root wheel 26796230 Nov 28 08:53 /usr/ports/INDEX-8 -rw-r--r-- 1 root wheel 26777464 Nov 28 08:53 /usr/ports/INDEX-9 -rw-r--r-- 1 root wheel 1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2 # portmaster -L | egrep '(ew|ort) version|total install' ... === New version available: xorg-7.5.2 === 452 total installed ports === 194 have new versions available # portmaster -L --index | egrep '(ew|ort) version|total install' ... === New version available: xorg-7.5.2 === 452 total installed ports === 194 have new versions available # portmaster -L --index-only | egrep '(ew|ort) version|total install' ... === New version available: xorg-7.5.2 === 452 total installed ports === 194 have new versions available # # rm -rf /usr/ports # portsnap extract ... Building new INDEX files... done. # ls -al /usr/ports/IN* -rw-r--r-- 1 root wheel 26912299 Nov 28 09:07 /usr/ports/INDEX-7 -rw-r--r-- 1 root wheel 26796230 Nov 28 09:07 /usr/ports/INDEX-8 -rw-r--r-- 1 root wheel 26777464 Nov 28 09:07 /usr/ports/INDEX-9 # portmaster -L | egrep '(ew|ort) version|total install' ... === New version available: xorg-7.5.2 === 452 total installed ports === 194 have new versions available # portmaster -L --index | egrep '(ew|ort) version|total install' /tmp/d-32794-index/INDEX-9.bz2100% of 1615 kB 173 kBps ... === New version available: xorg-7.5.2 === 452 total installed ports === 193 have new versions available # ls -al /usr/ports/IN* -rw-r--r-- 1 root wheel 26912299 Nov 28 09:07 /usr/ports/INDEX-7 -rw-r--r-- 1 root wheel 26796230 Nov 28 09:07 /usr/ports/INDEX-8 -rw-r--r-- 1 root wheel 26665016 Nov 28 09:12 /usr/ports/INDEX-9 -rw-r--r-- 1 root wheel 1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2 # portmaster -L --index-only | egrep '(ew|ort) version|total install' ... === New version available: xorg-7.5.2 === 452 total installed ports === 193 have new versions available # The result shows that after this step: # portmaster -L --index | egrep '(ew|ort) version|total install' /tmp/d-32794-index/INDEX-9.bz2100% of 1615 kB 173 kBps the uncompressed INDEX-9 -rw-r--r-- 1 root wheel 26665016 Nov 28 09:12 /usr/ports/INDEX-9 is different from the prior original INDEX-9 -rw-r--r-- 1 root wheel 26777464 Nov 28 09:07 /usr/ports/INDEX-9 The cause of it could be: - either portmaster gets identical size-wise, but not necessarily content-wise INDEX-9.bz2 - or portmaster uncompresses INDEX-9.bz2 incorectly and loses some content Test on FreeBSD 9.1-RC3 --- $ uname -a ... 9.1-RC3 ... $ cat /usr/ports/ports-mgmt/portmaster/distinfo ... portmaster-portmaster-3.14-31009f6.tar.gz ... # portsnap fetch extract # ls -al /usr/ports/IN* -rw-r--r-- 1 root wheel 26879597 Nov 26 15:37 /usr/ports/INDEX-7 -rw-r--r-- 1 root wheel 26763600 Nov 26 15:38 /usr/ports/INDEX-8 -rw-r--r-- 1 root wheel 26744834 Nov 26 15:38 /usr/ports/INDEX-9 -rw-r--r-- 1 root wheel 1654048 Nov 11 11:45 /usr/ports/INDEX-9.bz2 # portsnap fetch update Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found. Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done. Latest snapshot on server matches what we already have. No updates needed. Ports tree is already up to date. # portmaster -L | egrep '(ew|ort) version|total install' === New version available: java-zoneinfo-2012.j === New version available: liberation-fonts-ttf-2.00.1,1 === New version available: libxul-10.0.11 === New version available: firefox-17.0,1 === New version available: libreoffice-3.5.7 === New version available: vigra-1.9.0 === 545 total installed ports === 6 have new versions available # portmaster -L --index | egrep '(ew|ort) version|total install' === New version available: java-zoneinfo-2012.j === New version available: liberation-fonts-ttf-2.00.1,1 === New version available: libxul-10.0.11 === New version available: firefox-17.0,1 ===
Re: set connection to a modem
El día Wednesday, November 28, 2012 a las 01:44:18PM +0330, s m escribió: hello guys, i want to connect my freebsd system to modem and configure it via my freebsd. i thought that i should change /etc/ttys file to set speed and other configuration. in order to check if i am right or not, i comment ttyu line in ttys file and expect the modem got disconnected but the modem still works and can access to it. i googled and found that there are three files in /etc that we can edit them to configure our devices: /etc/ttys, /etc/gettytab and /etc/rc.d/serial.sh. moreover we can edit init file for each device in /dev to set default speed and other configuration by stty command. now i am confused and don't know which file i should edit to set speed and flow control and other setting to have a connection to my modem. i mean from which file i can configure my connection? i know it's too easy but please clear it for me. The answer higly depends on what you want todo with your modem; if you want to dial-out, you do not need the above files; your terminal application (for example 'kermit') will do this; or the ppp/chat will do; if you want to offer dial-in service (for fax or for data/login), check the ports for 'HylaFAX' or for 'mgetty' and follow the installation guide; HIH matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: g...@unixarea.de | - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | - No proprietary attachments phone: +49-170-4527211 | - Respect for open standards ___ 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
Fwd: set connection to a modem
i want to connect my freebsd system to modem and configure it via my freebsd. i thought that i should change /etc/ttys file to set speed and other configuration. in order to check if i am right or not, i comment ttyu line in ttys file and expect the modem got disconnected but the modem still works and can access to it. i googled and found that there are three files in /etc that we can edit them to configure our devices: /etc/ttys, /etc/gettytab and /etc/rc.d/serial.sh. moreover we can edit init file for each device in /dev to set default speed and other configuration by stty command. now i am confused and don't know which file i should edit to set speed and flow control and other setting to have a connection to my modem. i mean from which file i can configure my connection? i know it's too easy but please clear it for me. yours, sam ___ 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 Hello, Modem configuration itself has nothing to do with getty and ttys (terminals). You only need them if you want to configure modem for plain dial-in: i.e. somebody dials you, FreeBSD starts getty on this line, and lets your peer enter your system. If you want your peer to use PPP (to use IP over it, for example) you would not need to configure ttys also. And you do not need it if you want to dial-up somewhere too. What exactly you want to do? Ilya. ___ 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
Next csup tool to fetch src/ and ports/
Hi, I'm fan of csup, I've been using it for years, since 7.0-RELEASE, however it will be disabled on February 2013.. I don't care about using portsnap instead, but how to fetch src/ then ? I will need to use portsnap, to fetch ports build subversion and then I can fetch the src, fetch the ports again using svn this time, that's a little bit painful. Maybe we can try to write something like srcsnap with the same behavior / features as portsnap ? Cheers, -- Demelier David ___ 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: Next csup tool to fetch src/ and ports/
On 11/28/12 12:24, David Demelier wrote: Hi, I'm fan of csup, I've been using it for years, since 7.0-RELEASE, however it will be disabled on February 2013.. I don't care about using portsnap instead, but how to fetch src/ then ? I will need to use portsnap, to fetch ports build subversion and then I can fetch the src, fetch the ports again using svn this time, that's a little bit painful. Maybe we can try to write something like srcsnap with the same behavior / features as portsnap ? It's called freebsd-update. :-) Provided you're happy with RELEASE and don't want to track STABLE or CURRENT, you can use freebsd-update to update just /usr/src. Simply find the line in /etc/freebsd-update.conf that reads Components src world kernel and change it to read Components src and it will only touch /usr/src. If do you want to track anything other than RELEASE you'll have to use svn. ___ 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
Este SABADO - El Eneagrama - Última Tertulia 2012 - No te la pierdas!
Si no visualiza correctamente este E-Mail haga Click Aquí (Link-http://v2.envialosimple.com/campaign/htmlversion?AdministratorID=12453CampaignID=43StatisticID=20MemberID=51387s=50b07966dcd452cd3268364dc609ed5fisDemo=0) Normal 0 21 false false false ES-AR X-NONE X-NONE (Link-http://medicinaintegrativa.org.ar) Secretaría - Asociación Argentina de Medicina Integrativa Tel: +5411 - 4788 - 4929 aami.medicina.integrat...@gmail.com facebook.com/aamimedicinaintegrativa (Link-http://medicinaintegrativa.org.ar) Para desuscribirse de nuestra lista haga Click aquí (Link-http://v2.envialosimple.com/member/publicunsubscribe?AdministratorID=12453MemberID=51387StatisticID=20CampaignID=43isDemo=0MailListsIds[]=2MailListsIds[]=3MailListsIds[]=4MailListsIds[]=5MailListsIds[]=6MailListsIds[]=8MailListsIds[]=9MailListsIds[]=10MailListsIds[]=14s=8ad6434b2aa234b8ea9a6edf645ad6d2) Archivos Adjuntos: ___ 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
Este SABADO - El Eneagrama - Última Tertulia 2012 - No te la pierdas!
Si no visualiza correctamente este E-Mail haga Click Aquí (Link-http://v2.envialosimple.com/campaign/htmlversion?AdministratorID=12453CampaignID=43StatisticID=20MemberID=51387s=50b07966dcd452cd3268364dc609ed5fisDemo=0) Normal 0 21 false false false ES-AR X-NONE X-NONE (Link-http://medicinaintegrativa.org.ar) Secretaría - Asociación Argentina de Medicina Integrativa Tel: +5411 - 4788 - 4929 aami.medicina.integrat...@gmail.com facebook.com/aamimedicinaintegrativa (Link-http://medicinaintegrativa.org.ar) Para desuscribirse de nuestra lista haga Click aquí (Link-http://v2.envialosimple.com/member/publicunsubscribe?AdministratorID=12453MemberID=51387StatisticID=20CampaignID=43isDemo=0MailListsIds[]=2MailListsIds[]=3MailListsIds[]=4MailListsIds[]=5MailListsIds[]=6MailListsIds[]=8MailListsIds[]=9MailListsIds[]=10MailListsIds[]=14s=8ad6434b2aa234b8ea9a6edf645ad6d2) Archivos Adjuntos: ___ 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: just thought of a new gui port!
On Nov 27, 2012 5:20 PM, Robert Bonomi bon...@mail.r-bonomi.com wrote: Date: Tue, 27 Nov 2012 15:10:50 -0800 From: Gary Kline kl...@thought.org Subject: just thought of a new gui port! 2. I live so close to the airport weather station that im sure that would tell me tons more stuff that I could pick up outside the house. Iremember seeing the weather bureau for the entire US. pretty sure there are global sites with similar data. www.wunderground.com has more than you could want to know. Odds are good that somebody near you has a private weather station on line already. If not, lots of info about weather station equipment with computer interface. ___ 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 It looks like Oregon Scientific has some cool weather station models with USB connectivity, might work well with a FreeBSD system... wunderground is definitely a great site however at least in my location the temperature can be off as much as ten degrees, its almost like they are reading from a station on top of the mountain, and I.m in the valley. Its an issue of being on the coast I suppose, for example it could be 80 degrees inland but a ten mile drive and your down to 50 degrees. Waitman Gobble San Jose California ___ 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
how to Save your mony you credit card expences to increase your bussiness
== we send special offers Unsubscribe freebsd-questions@freebsd.org from this list: http://blogspot.us6.list-manage.com/unsubscribe?u=37964f600b3d95d5cb34024a4id=1bd9b49122e=0c68642962c=1f7c6f988b Our mailing address is: the Merchant Solutions alfalh town sadiq Abad 64350 Our telephone: Forward this email to a friend: http://us6.forward-to-friend1.com/forward?u=37964f600b3d95d5cb34024a4id=1f7c6f988be=0c68642962 Update your profile: http://blogspot.us6.list-manage.com/profile?u=37964f600b3d95d5cb34024a4id=1bd9b49122e=0c68642962 ___ 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
how to Save your mony you credit card expences to increase your bussiness
== we send special offers Unsubscribe questi...@freebsd.org from this list: http://blogspot.us6.list-manage.com/unsubscribe?u=37964f600b3d95d5cb34024a4id=1bd9b49122e=503302b349c=1f7c6f988b Our mailing address is: the Merchant Solutions alfalh town sadiq Abad 64350 Our telephone: Forward this email to a friend: http://us6.forward-to-friend1.com/forward?u=37964f600b3d95d5cb34024a4id=1f7c6f988be=503302b349 Update your profile: http://blogspot.us6.list-manage.com/profile?u=37964f600b3d95d5cb34024a4id=1bd9b49122e=503302b349 ___ 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
weather info (was Re: just thought of a new gui port!)
On Wed, 28 Nov 2012, Waitman Gobble wrote: It looks like Oregon Scientific has some cool weather station models with USB connectivity, might work well with a FreeBSD system... wunderground is definitely a great site however at least in my location the temperature can be off as much as ten degrees, its almost like they are reading from a station on top of the mountain, and I.m in the valley. Its an issue of being on the coast I suppose, for example it could be 80 degrees inland but a ten mile drive and your down to 50 degrees. Some of that may be due to the installation. In the sun, on the sheltered side of a building, that sort of thing. I found some code to use an Arduino as a USB wireless receiver for inexpensive temperature/humidity sensors like the Meade TS34C. It requires some modification to a common wireless module. So far, I have not got it working. http://jeelabs.net/projects/cafe/wiki/Receiving_OOKASK_with_a_modified_RFM12B http://forum.jeelabs.net/node/309 https://bitbucket.org/fuzzillogic/433mhzforarduino/src/7fadcc1199ad/RemoteSensor%20library/RemoteSensor/SensorReceiver.h ___ 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: set connection to a modem
On Wed, 28 Nov 2012 13:44:18 +0330, s m wrote: hello guys, i want to connect my freebsd system to modem and configure it via my freebsd. For doing _what_ exactly? I ask because depending on your goal there might be different approaches neccessary: a) dial out to connect to the Internet b) dial out to dial in to something else (e. g. shell access) c) dial out to send a fax d) dial out to make annoying phone calls :-) e) dial in so people can dial your system and log in f) dial in so people can send you fax g) dial in so you can control something using DTMF ... There are many possibilities, each requiring a different thing to do on FreeBSD (because they are obviously different(. And of course: Are you talking about a real modem (external serial modem), some modem card (often dysfunctional WinModem), or a USB modem? Brand and model? i thought that i should change /etc/ttys file to set speed and other configuration. Wouldn't you better do this with ppp.conf? Just assuming you want to dial _out_. in order to check if i am right or not, i comment ttyu line in ttys file and expect the modem got disconnected but the modem still works and can access to it. The /etc/ttys file doesn't restrict you in controlling the modem from your host system. i googled and found that there are three files in /etc that we can edit them to configure our devices: /etc/ttys, /etc/gettytab and /etc/rc.d/serial.sh. moreover we can edit init file for each device in /dev to set default speed and other configuration by stty command. Also depends on _what_ you are going to do. now i am confused and don't know which file i should edit to set speed and flow control and other setting to have a connection to my modem. i mean from which file i can configure my connection? i know it's too easy but please clear it for me. Really, I assume you're talking about dialing out with a serial modem in order to connect to the Internet (or some other system), and then be networked with it. In that case you would add an entry to /etc/ppp/ppp.conf. Allow me to provide an example that I've been using on FreeBSD 4 and 5: # PPP Configuration File # See /usr/share/examples/ppp/ for some examples # $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp $ default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) set device /dev/cuaa0 set speed 115200 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \\ AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT set ifaddr 10.0.0.1/0 10.0.0.2/0 set timeout 180 enable dns papchap: # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. set phone PHONE_NUM set authname USERNAME set authkey PASSWORD set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR mymodem: set phone 01234567890 set authname myname set authkey mypass add default HISADDR The example name I've chosen here is mymodem. Change it to something meaningful. :-) The essential authorisation data here is the phone number of 01234567890, the username 'myname' and the password 'mypass' Note that today it may be required to change the device name! I haven't tried to do anything with a modem on current FreeBSD, so I can't be more specific, sorry. The device name /dev/cuaa0 will probably need a change. And then set speed 115200 sets the speed you need. If you've done everything properly, you would do something like # ppp mymodem ppp dial Then the modem should dial. With close you close the connection. There are options for /etc/rc.conf (the ppp_* variables) that allow you to automate things, like dial on demand. In contradiction, in /etc/ttys something like ttyd0 /usr/libexec/getty std.9600 dialup on secure would enable you a serial console access (e. g. to connect a serial terminal to) at a speed of 9k6 (e. g. a DEC vt100). When connected via serial cable, you would receive a login prompt. Again, note that ttyd0 might not be valid here. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: How to create a partition for FreeBSD 9.0?
On Wed, 2012-11-28 at 08:06 +0100, Ralf Mardorf wrote: On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote: # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. Thank you, so this should work and if it doesn't work, I can't install FreeBSD? Anything else I can try? I'm downloading PC-BSD 8.2 x64, assumed partitioning should work, will it be possible to update to FreeBSD 9.x or do they differ, similar as different Linux distros can differ? Regards, Ralf ___ 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: How to create a partition for FreeBSD 9.0?
On Wed, 28 Nov 2012, Ralf Mardorf wrote: On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote: # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. Thank you, so this should work and if it doesn't work, I can't install FreeBSD? I tried a few experiments just now, and it still looks to me like the EBR is the problem. Unfortunately, I don't know how to work around it. Certainly it should be possible to do this. It's a matter of getting the partitioning tools to do it. Anything else I can try? Share sda10 with FreeBSD swap. Then use slice 1 for one bare FreeBSD filesystem with no subpartitioning at all. # gpart modify -i1 -t freebsd-ufs da0 It will require some work with the installer. Probably you'll have to newfs and mount it as mentioned before. After FreeBSD boots, figure out which is the swap partition and add that to /etc/fstab. spinymouse@q:~$ sudo fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000f2fc6 Device Boot Start End Blocks Id System /dev/sda1 63 12127468460637311 a5 FreeBSD /dev/sda2 * 121274746 625137344 251931299+ 5 Extended /dev/sda5 121274748 183751469312383617 HPFS/NTFS/exFAT /dev/sda6 183751533 24642103431334751 83 Linux /dev/sda7 246421098 30928337931431141 83 Linux /dev/sda8 309283443 36196761526342086+ 83 Linux /dev/sda9 361969664 43561779136824064 83 Linux /dev/sda10 435618603 440164934 2273166 82 Linux swap / Solaris /dev/sda11 440164998 56187337460854188+ 83 Linux /dev/sda12 561873438 569215079 3670821 83 Linux /dev/sda13 569215143 61551440923149633+ 83 Linux /dev/sda14 615514473 625137344 4811436 83 Linux ___ 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: How to create a partition for FreeBSD 9.0?
On Wed, 28 Nov 2012, Ralf Mardorf wrote: On Wed, 2012-11-28 at 08:06 +0100, Ralf Mardorf wrote: On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote: # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. Thank you, so this should work and if it doesn't work, I can't install FreeBSD? Anything else I can try? I'm downloading PC-BSD 8.2 x64, assumed partitioning should work, will it be possible to update to FreeBSD 9.x or do they differ, similar as different Linux distros can differ? PC-BSD is FreeBSD, and there is a 9.x version. I don't know what it uses for partitioning code, but if you value your data, back up first. ___ 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
(OT) Re: just thought of a new gui port!
wunderground is definitely a great site however at least in my location the temperature can be off as much as ten degrees, its almost like they are reading from a station on top of the mountain, and I.m in the valley. Its an issue of being on the coast I suppose, for example it could be 80 degrees inland but a ten mile drive and your down to 50 degrees. Waitman Gobble San Jose California You might try tailoring the National Weather Service's model to interpolate to your exact location. Modify the link below to contain your latitude (textField1) and longitude (textField2). Note that longitude is negative in the U.S. You can get lat and long via google maps or a gps. Don't know how accurate it will be, but where I am it seems to take care of the change due to mountains and elevation pretty well. http://forecast.weather.gov/MapClick.php?CityName=San+Josestate=CAsite=MTRtextField1=37.3394textField2=-121.894e=0 ___ 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: How to create a partition for FreeBSD 9.0?
On Wed, 2012-11-28 at 09:25 -0700, Warren Block wrote: On Wed, 28 Nov 2012, Ralf Mardorf wrote: On Wed, 2012-11-28 at 08:06 +0100, Ralf Mardorf wrote: On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote: # gpart create -s bsd ada0s1 gpart: geom 'ada0s1': File exists Sorry, no idea on that. Because of the extended partitions, maybe. Thank you, so this should work and if it doesn't work, I can't install FreeBSD? Anything else I can try? I'm downloading PC-BSD 8.2 x64, assumed partitioning should work, will it be possible to update to FreeBSD 9.x or do they differ, similar as different Linux distros can differ? PC-BSD is FreeBSD, and there is a 9.x version. I don't know what it uses for partitioning code, but if you value your data, back up first. I chose 8.2, to get another version for partitioning. However, I'll also test your recommendation from your previous mail. # gpart modify -i1 -t freebsd-ufs da0 And I'll avoid to use the cursor keys next time, to get a better log file. Thank you for your help, Ralf ___ 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: using new pkgng system on 9.0 system
Matthew Seaman wrote: On 23/11/2012 19:19, Fbsd8 wrote: Where do I find the url for the beta-test server repositories? Can I use ftp or browser to see index content? pkg.conf as supplied in the port-mgmt/pkg port comes with the right URL for the FreeBSD pkg repo[*], which is currently pointing at the beta-test repo, but which will in the fullness of time be changed to point at the actual production repo. There is no pkg.conf supplied. It's named as pkg.conf.sample this fact is not mentioned anywhere. pkg should be released with a default pkg.conf not a pkg.conf.sample so pkg is ready to function right from the original install of pkg. No, in general you can't assume that you'll be able to browse the repo using a web browser or similar. Even if you could, all you'ld see is a lot of pkg tarballs which would tell you the package names and versions and how much data you'll need to download and not a lot else. Use the repo catalogue. It can tell you almost anything you might want to know about the available packages in the repo. Cheers, Matthew [*] Note: the default URL uses an SRV record in the DNS, which typical web browsers don't know how to handle. You'll just get NXDOMAIN if you try and point Firefox at it. For those who know how to handle SRV records, it looks like this: worm:~:% dig _http._tcp.pkg.freebsd.org IN SRV ; DiG 9.8.3-P4 _http._tcp.pkg.freebsd.org IN SRV ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 48300 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;_http._tcp.pkg.freebsd.org.IN SRV ;; ANSWER SECTION: _http._tcp.pkg.freebsd.org. 3600 IN SRV 10 10 80 pkgbeta.FreeBSD.org. ;; Query time: 44 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Fri Nov 23 21:13:50 2012 ;; MSG SIZE rcvd: 83 Yes the url pkgbeta.FreeBSD.org can be browsed using a browser. As of Nov 28 pkgbeta.FreeBSD.org only contains the pkg package. So in conclusion, pkg is not ready for testing. ___ 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
i386 vs amd64
About to build a replacement system for an older i386 setup. A few years ago I had tried the amd64 port on it and found it was frustrating as things that just worked on i386 did not on amd64. IIRC ports were large annoyance too. Now I have a new system with 8GB, etc,etc and wonder if I am best off to stick with i386 and PAE or is the amd64 version finally on a par or close enough that I would not likely have many issues like in the past? Thanks for your thoughts/(recent) experiences. ___ 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: i386 vs amd64
On Nov 28, 2012, at 6:36 PM, mike miskulin birdf...@yahoo.com wrote: About to build a replacement system for an older i386 setup. A few years ago I had tried the amd64 port on it and found it was frustrating as things that just worked on i386 did not on amd64. IIRC ports were large annoyance too. Now I have a new system with 8GB, etc,etc and wonder if I am best off to stick with i386 and PAE or is the amd64 version finally on a par or close enough that I would not likely have many issues like in the past? Thanks for your thoughts/(recent) experiences. What port was that ? I've never had a *single* problem due to using amd64 over i386. From a professional point of view, we're using over 60 amd64 fbsd 8.0 8.1 8.2 and 8.3 boxes at work and they work just fine. I for one can recommend the 64 bits version. ___ 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: i386 vs amd64
On Wed, 28 Nov 2012, mike miskulin wrote: About to build a replacement system for an older i386 setup. A few years ago I had tried the amd64 port on it and found it was frustrating as things that just worked on i386 did not on amd64. IIRC ports were large annoyance too. Now I have a new system with 8GB, etc,etc and wonder if I am best off to stick with i386 and PAE or is the amd64 version finally on a par or close enough that I would not likely have many issues like in the past? Thanks for your thoughts/(recent) experiences. Do you use emulators/wine? If not, switch to amd64. In fact, even if you do, switch to amd64 to use that 8G of memory. Building 32-bit Wine on amd64 is a hassle, but packages are available and I think there is a 64-bit port on the way. ___ 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: i386 vs amd64
What port was that ? I've never had a *single* problem due to using amd64 over i386. Well I have to apologize, I've reached senility! My past bad experience was with netbsd amd64 afterwhich I bailed and went to FreeBSD i386 (thanks google). But I guess the basic question remains - are there any considerations in regards ports, linux emulation, etc that would sway me to remain i386? Sorry about that! ___ 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: Is http://pkgbeta.freebsd.org/ down??
Matthew Seaman wrote: On 27/11/2012 15:49, C. L. Martinez wrote: Is this server down?? Yes. Is being reinstalled. Cheers, Matthew ___ 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 Well here it is 11/28 and it only has one package in it. Being rebuilt containing only the pkg package. When is it going to be populated with the package tree content? ___ 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: i386 vs amd64
On Wed, 28 Nov 2012 12:53:26 -0500, mike miskulin wrote: But I guess the basic question remains - are there any considerations in regards ports, linux emulation, etc that would sway me to remain i386? The only problem might be if you want to use wine. As it has been said, there are binary packages (wine_amd64, if I remember correctly), but the rest of the system should run good on amd64 as it did on i386. Sidenote: I switched back from 8.2/amd64 to 8.2/i386 because of three reasons (in fact, two reasons and one justification): I had problems with wine, problems with nVidia's driver (plus a faulty GPU), and I only have 2 GB RAM. Anywhere else, I have not experienced problems with amd64. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: i386 vs amd64
On 11/28/12 18:49, Warren Block wrote: On Wed, 28 Nov 2012, mike miskulin wrote: About to build a replacement system for an older i386 setup. A few years ago I had tried the amd64 port on it and found it was frustrating as things that just worked on i386 did not on amd64. IIRC ports were large annoyance too. Now I have a new system with 8GB, etc,etc and wonder if I am best off to stick with i386 and PAE or is the amd64 version finally on a par or close enough that I would not likely have many issues like in the past? Thanks for your thoughts/(recent) experiences. Do you use emulators/wine? If not, switch to amd64. In fact, even if you do, switch to amd64 to use that 8G of memory. Building 32-bit Wine on amd64 is a hassle, but packages are available and I think there is a 64-bit port on the way. I heard valgrind is another... in case you are a developer. bye av. ___ 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: i386 vs amd64
On Wed, 28 Nov 2012 19:25:59 +0100 Polytropon free...@edvax.de wrote: On Wed, 28 Nov 2012 12:53:26 -0500, mike miskulin wrote: But I guess the basic question remains - are there any considerations in regards ports, linux emulation, etc that would sway me to remain i386? The only problem might be if you want to use wine. As it has been said, there are binary packages (wine_amd64, if I remember correctly), but the rest of the system should run good on amd64 as it did on i386. Sidenote: I switched back from 8.2/amd64 to 8.2/i386 because of three reasons (in fact, two reasons and one justification): I had problems with wine, problems with nVidia's driver (plus a faulty GPU), and I only have 2 GB RAM. Anywhere else, I have not experienced problems with amd64. The nvidia driver works fine now. Linux emulation is only 32 bit though. -- Just because it can been done, does not mean it should be done. ___ 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: just thought of a new gui port!
Date: Wed, 28 Nov 2012 07:26:25 -0800 Subject: Re: just thought of a new gui port! From: Waitman Gobble gobble...@gmail.com On Nov 27, 2012 5:20 PM, Robert Bonomi bon...@mail.r-bonomi.com wrote: Date: Tue, 27 Nov 2012 15:10:50 -0800 From: Gary Kline kl...@thought.org Subject: just thought of a new gui port! 2. I live so close to the airport weather station that im sure that would tell me tons more stuff that I could pick up outside the house. Iremember seeing the weather bureau for the entire US. pretty sure there are global sites with similar data. www.wunderground.com has more than you could want to know. Odds are good that somebody near you has a private weather station on line already. If not, lots of info about weather station equipment with computer interface. wunderground is definitely a great site however at least in my location the temperature can be off as much as ten degrees, its almost like they are reading from a station on top of the mountain, and I.m in the valley. Its an issue of being on the coast I suppose, for example it could be 80 degrees inland but a ten mile drive and your down to 50 degrees. You mean none of the *19* wunderground stations listed as being in San Jose proper, or the =40+= in the metro area, are 'accurate' for your location? http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=San+Jose+California#stations ___ 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: just thought of a new gui port!
On Wed, Nov 28, 2012 at 1:01 PM, Robert Bonomi bon...@mail.r-bonomi.com wrote: Date: Wed, 28 Nov 2012 07:26:25 -0800 Subject: Re: just thought of a new gui port! From: Waitman Gobble gobble...@gmail.com On Nov 27, 2012 5:20 PM, Robert Bonomi bon...@mail.r-bonomi.com wrote: Date: Tue, 27 Nov 2012 15:10:50 -0800 From: Gary Kline kl...@thought.org Subject: just thought of a new gui port! 2. I live so close to the airport weather station that im sure that would tell me tons more stuff that I could pick up outside the house. Iremember seeing the weather bureau for the entire US. pretty sure there are global sites with similar data. www.wunderground.com has more than you could want to know. Odds are good that somebody near you has a private weather station on line already. If not, lots of info about weather station equipment with computer interface. wunderground is definitely a great site however at least in my location the temperature can be off as much as ten degrees, its almost like they are reading from a station on top of the mountain, and I.m in the valley. Its an issue of being on the coast I suppose, for example it could be 80 degrees inland but a ten mile drive and your down to 50 degrees. You mean none of the *19* wunderground stations listed as being in San Jose proper, or the =40+= in the metro area, are 'accurate' for your location? http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=San+Jose+California#stations Hi, It may be better lately, last time I checked was a couple of years ago! http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=los+altos+hills Station #1 on the map comes up as being on the other side of the 280, and it looks like it's up on top of the mountain. I don't remember station 3 or 4 being there a few years ago, maybe it was. Right now I'm approximately in the center of 1,2,3,4. At the moment there's about a 5 to 6 degrees difference between 3 and 1. It wasn't a scientific comparison :-), i remember looking at the weather on the site one day and noticed the temp was about 10 degrees different at that moment :) Waitman ___ 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: Anyone using squid and pf?
On 27 November 2012 22:01, Leslie Jensen les...@eskk.nu wrote: Volodymyr Kostyrko skrev 2012-11-26 21:50: 26.11.2012 20:40, Leslie Jensen: Rules from pf.conf # macros ext_if=xl0 int_if=bge0 tcp_services={ 22, 993, 5910:5917 } tcp_priv_services={ 389, 443 } proxy_services = { 21, 80 } icmp_types={ echoreq unreach squench timex } internal_net = 172.18.0.0/16 proxy = 172.18.0.1 proxyport=8021 # tables table goodguys persist table sshguard persist # options set block-policy return # ports are closed but can be seen set loginterface $ext_if set skip on lo0 # scrub scrub in rdr pass proto tcp from any to any port ftp - 127.0.0.1 port 8021 # redirect www trafic to proxy rdr on $int_if inet proto tcp from $internal_net to any port $proxy_services - $proxy port 8080 I could be wrong here but I think you have a loop. You are redirecting from local interface to local interface i.e. the result of redirect is still subject for redirect. Could you try one of the following: 1. Make this a `rdr in on $int_if`. 2. Make this a `rdr pass ... - 127.0.0.1 port 8080`. I prefer this way so port for transparent forwarding is unreachable except when explicitly redirecting to it. Personally I newer allow such ambiguity in my configs. #1 gives a syntax error when I try to load it. #2 My intention is to redirect only ftp traffic with this rule so that's why I use port 8021. Do you mean that I should redirect even ftp traffic to port 8080? Thanks! /Leslie Well, that depends on what you want to do. If you want FTP traffic to go to ftp-proxy running on the firewall, then redirect to 8021. If you want it to go to your squid proxy, then send it to port 8080 on $proxy. Let's redo your redirects correctly. I'll expand upon Volodymyr's idea of not confusing normal rules with ones matching a packet that was redirected, through the use of tags. # 1/ redirect web traffic to the proxy $proxy on port $proxyport rdr in on $int_if inet proto tcp from !$proxy to any port 80 - $proxy port $proxyport tag rdr_proxy # 2/ redirect FTP traffic to the ftp-proxy running on the local machine on port 8021 rdr in on $int_if inet proto tcp from $int_if:network to any port 21 - 127.0.0.1 port 8021 tag rdr_ftp # 3/ access rule to allow traffic from the local net to your proxy pass in quick on $int_if inet proto tcp flags S/SAFR tagged rdr_proxy # 4/ access rule to allow traffic from the local net to your FTP proxy pass in quick on $int_if inet proto tcp flags S/SAFR tagged rdr_ftp # 5/ access rule to allow your proxy to do whatever it wants in a very limited fashion pass in quick on $int_if inet proto tcp from $proxy to any port { 80 443 } flags S/SAFR I liked Volodymyr's original intent behind the rdr pass, the use of tags here allows you to setup actual pass/block rules and still match packets coming from a redirect. This has many advantages, including: - quick keyword - flags matching - use of labels to keep stats, if you'd like to Well basically it only has advantages. Let me know if that helped. ___ 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: Advanced Format Drive ?
In message alpine.bsf.2.00.1211272215360.62...@wonkity.com, Warren Block wbl...@wonkity.com wrote: I tried to do as you suggest and change the partition type to freebsd-ufs, but there's a problem... # gpart modify -i 1 -t freebsd-ufs /dev/da1 gpart: Invalid argument da1 is the drive. da1s1 is the first slice. Yeabut that's what I thought that the -i option was for! I mean isn't the parameter for that supposed to tell gpart which sub-part of the whole geom thing that is named on the command line is supposed to be modified? Well, now I'm totally confused, but I'll try it again in the way I think you are suggesting... # gpart modify -i 1 -t freebsd-ufs /dev/da1s1 gpart: geom '/dev/da1s1': Invalid argument U... What else should I try? ___ 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: Advanced Format Drive ?
On Wed, 28 Nov 2012, Ronald F. Guilmette wrote: In message alpine.bsf.2.00.1211272215360.62...@wonkity.com, Warren Block wbl...@wonkity.com wrote: I tried to do as you suggest and change the partition type to freebsd-ufs, but there's a problem... # gpart modify -i 1 -t freebsd-ufs /dev/da1 gpart: Invalid argument da1 is the drive. da1s1 is the first slice. Yeabut that's what I thought that the -i option was for! I mean isn't the parameter for that supposed to tell gpart which sub-part of the whole geom thing that is named on the command line is supposed to be modified? Doh, you are right, and I misread it. It's the type that is the problem: freebsd-ufs is a not an MBR partition type, it should be just freebsd: # gpart modify -i1 -t freebsd /dev/da1 ___ 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: Advanced Format Drive ?
In message alpine.bsf.2.00.1211281735290.69...@wonkity.com, Warren Block wbl...@wonkity.com wrote: On Wed, 28 Nov 2012, Ronald F. Guilmette wrote: In message alpine.bsf.2.00.1211272215360.62...@wonkity.com, Warren Block wbl...@wonkity.com wrote: I tried to do as you suggest and change the partition type to freebsd-ufs, but there's a problem... # gpart modify -i 1 -t freebsd-ufs /dev/da1 gpart: Invalid argument da1 is the drive. da1s1 is the first slice. Yeabut that's what I thought that the -i option was for! I mean isn't the parameter for that supposed to tell gpart which sub-part of the whole geom thing that is named on the command line is supposed to be modified? Doh, you are right, and I misread it. It's the type that is the problem: freebsd-ufs is a not an MBR partition type, it should be just freebsd: # gpart modify -i1 -t freebsd /dev/da1 Thank you again Warren. Success! I am a happy camper! % gpart show /dev/da1 =63 1953525104 da1 MBR (931G) 631985 - free - (992k) 2048 19535196161 freebsd (931G) 19535216643503 - free - (1.7M) ___ 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
Cannot boot - creating partition and installing FreeBSD is [solved]
Installing PC-BSD 8.2 x64 did work without issues. I unchecked the bootloader install. Linux grub legacy until now is unable to boot BSD, because of Error17: Cannot mount selected partition spinymouse@q:~$ cat /boot/grub/menu.lst timeout 8 default 0 color light-blue/black light-cyan/blue title FreeBSD root (hd0,a) kernel /boot/loader [snip] Linux only recognize the slice, but not what's inside it: spinymouse@q:~$ sudo fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000f2fc6 Device Boot Start End Blocks Id System /dev/sda1 63 12127468460637311 a5 FreeBSD /dev/sda2 * 121274746 625137344 251931299+ 5 Extended [snip] spinymouse@q:~$ sudo parted -l Model: ATA SAMSUNG HD321KJ (scsi) Disk /dev/sda: 320GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End SizeType File system Flags 1 32.3kB 62.1GB 62.1GB primary freebsd-ufs 2 62.1GB 320GB 258GB extended boot [snip] From the FreeBSD 9.0 DVD shell: # gpart show = 63 625142385 ada0 MBR (298G) 63 121274622 1 freebsd (57G) 121274685 61- free - (30k) 121274746 503862599 2 ebr [active] (240G) 625137345 5103- free - (2.5M) = 63 976773105 ada1 MBR (465G) 63 42973812 1 linux-data (20G) 42973875 61- free - (30k) 42973936 933794129 2 ebr (445G) 976768065 5103- free - (2.5M) =0 121274622 ada0s1 BSD (57G) 04194304 1 freebsd-ufs (2.0G) 4194304 19922944 2 freebsd-swap (9.5G) 241172484194304 4 freebsd-ufs (2.0G) 28311552 92952576 5 freebsd-ufs (44G) 121264128 10494 - free - (5.1M) =0 503862599 ada0s2 EBR (240G) 0 62476724 1 ntfs (29G) 62476724 62669565 991695 linux-data (29G) 125146289 62862345 1986450 linux-data (30G) 188008634 52684236 2984265 linux-data (25G) 240692870 73650176 3820522 linux-data (35G) 314343046748 - free - (374k) 3143437944546395 4989585 linux-swap (2.2G) 318890189 121708440 5061750 linux-data (58G) 4405986297341705 6993630 linux-data (3.5G) 447940334 46299330 7110165 linux-data (22G) 4942396649622935 7845075 linux-data (4.6G) =0 933794129 ada1s2 EBR (445G) 0 42957749 1 linux-data (20G) 42957749 42765030 681870 linux-data (20G) 857227795092605 1360680 linux-swap (2.4G) 90815384 42154560 1441515 linux-data (20G) 132969944 43246980 2110635 linux-data (20G) 1762169241020340 2797095 linux-data (498M) 177237264 26476544 2813290 linux-data (12G) 203713808 100861952 3233553 linux-data (48G) 304575760514 - free - (257k) 304576274 209759742 4834545 linux-data (100G) 514336016963 - free - (481k) 514336979 419456061 8164080 linux-data (200G) 933793040 1089 - free - (544k) = 63 46299204 ada0s13 MBR (22G) 63 46299204 - free - (22G) = 63 46299204 ext2fs/backs MBR (22G) 63 46299204- free - (22G) Regards, Ralf ___ 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: Cannot boot - creating partition and installing FreeBSD is [solved]
PS: spinymouse@q:/boot$ grep CONFIG_UFS_FS config-3.6.5-rt14 CONFIG_UFS_FS=m # CONFIG_UFS_FS_WRITE is not set spinymouse@q:/boot$ lsmod | grep ufs spinymouse@q:/boot$ sudo modprobe ufs [sudo] password for spinymouse: spinymouse@q:/boot$ lsmod | grep ufs ufs74797 0 So for write access I've got to build the kernel again. No problem, since I anyway build the kernel-rt myself. Still strange, when I try to mount it by using Nautilus I get: Unable to mount 62 GB Volume Error mounting /dev/sda1 at /media/spinymouse/disk: Command-line `mount -t ufs -o uhelper=udisks2,nodev,nosuid /dev/sda1 /media/spinymouse/disk' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so However, I'll ask on a Linux mailing list what to do. There's still the multi-boot issue. How to boot FreeBSD and Linux. ___ 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
How to allow httpd to run 'ipfw table 7 add ... '
Hi. How to allow httpd to run this command 'ipfw table 7 add ... '? -- Eugen mailto:kes-...@yandex.ru ___ 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: How to allow httpd to run 'ipfw table 7 add ... '
On Nov 28, 2012, at 7:48 PM, Eugen Konkov wrote: Hi. How to allow httpd to run this command 'ipfw table 7 add ... '? imho the most secure way is to add an entry to sudoers(5) (you can use visudo(8) to edit sudoers(5)) allowing the apache privilege-separation user (www? we use apache here -- check your httpd.conf for User) to execute that specific command without a password. The entry might look something like this: apache ALL=(ALL) NOPASSWD: /sbin/ipfw That will allow the apache user to do things like: sudo ipfw table 7 add … because sudo will allow password-less privilege escalation to root (but only for ipfw, nothing else, for security reasons naturally). -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: Cannot boot - creating partition and installing FreeBSD is [solved]
On Thu, 29 Nov 2012, Ralf Mardorf wrote: PS: spinymouse@q:/boot$ grep CONFIG_UFS_FS config-3.6.5-rt14 CONFIG_UFS_FS=m # CONFIG_UFS_FS_WRITE is not set spinymouse@q:/boot$ lsmod | grep ufs spinymouse@q:/boot$ sudo modprobe ufs [sudo] password for spinymouse: spinymouse@q:/boot$ lsmod | grep ufs ufs74797 0 So for write access I've got to build the kernel again. No problem, since I anyway build the kernel-rt myself. Still strange, when I try to mount it by using Nautilus I get: Unable to mount 62 GB Volume Error mounting /dev/sda1 at /media/spinymouse/disk: Command-line `mount -t ufs -o uhelper=udisks2,nodev,nosuid /dev/sda1 /media/spinymouse/disk' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so It's trying to mount the whole slice rather than individual FreeBSD partitions inside that slice. I don't know how--or if--Linux has a way to refer to those partitions. The FreeBSD notation would be ada0s1a, ada0s1b (swap), ada0s1d, ada0s1e. c refers to the whole disk, not an individual partition. There's still the multi-boot issue. How to boot FreeBSD and Linux. Grub can do it, as can others. Can't speak to the details, though. ___ 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: Cannot boot - creating partition and installing FreeBSD is [solved]
Ralf Mardorf ralf.mard...@rocketmail.com writes: Installing PC-BSD 8.2 x64 did work without issues. I unchecked the bootloader install. Linux grub legacy until now is unable to boot BSD, because of Error17: Cannot mount selected partition spinymouse@q:~$ cat /boot/grub/menu.lst timeout 8 default 0 color light-blue/black light-cyan/blue title FreeBSD root (hd0,a) kernel /boot/loader [snip] Linux only recognize the slice, but not what's inside it: spinymouse@q:~$ sudo fdisk -l You might want to try a chainloader boot from grub. The following is a chainloader rule that I have used, as well as a normal loader boot. I use the loader boot, but I also tested the chainloader boot. You will need a ufs2_stage1_5 file in your grub directory for a loader boot, and linux grub might not have it available. title FreeBSD, sda3 (oak) chainloader root(hd1,2) chainloader +1 boot title FreeBSD, sda3 (oak) /boot/loader root(hd1,2,a) kernel /boot/loader boot -- Carl Johnsonca...@peak.org ___ 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
audio CD/CD-TEXT
Hi, A girl sent me her CD and it appears that she created a mixed mode disc with CD-TEXT info of her lyrics. I can't recall playing/noticing such a disc in the past 10 years so I'm at a loss. I can dump the audio tracks (cdda2wav) and/or play the audio disc with mplayer. Anyone with a pointer on how to get at the CD-TEXT info? ie, read the lyrics. THANKS! # cd-info /dev/cd0 cd-info version 0.83 amd64-portbld-freebsd9.0 CD location : /dev/cd0 CD driver name: FreeBSD access mode: CAM Vendor : hp Model : CDDVDW SN-208BB Revision: HH01 Hardware : CD-ROM or DVD __ Disc mode is listed as: CD-ROM Mixed CD-ROM Track List (1 - 12) #: MSF LSNType Green? Copy? Channels Premphasis? 1: 00:02:00 00 audio false no2no 2: 03:51:30 017205 audio false no2no 3: 08:25:73 037798 audio false no2no 4: 13:10:19 059119 audio false no2no 5: 17:19:00 05 audio false no2no 6: 22:24:01 100651 audio false no2no 7: 27:24:54 123204 audio false no2no 8: 32:41:17 146942 audio false no2no 9: 37:41:26 169451 audio false no2no 10: 40:48:05 183455 audio false no2no 11: 44:18:38 199238 audio false no2no 12: 51:36:41 232091 data false no 170: 51:42:43 232543 leadout (521 MB raw, 518 MB formatted) Media Catalog Number (MCN): 0 TRACK 1 ISRC: TRACK 2 ISRC: TRACK 3 ISRC: TRACK 4 ISRC: TRACK 5 ISRC: TRACK 6 ISRC: TRACK 7 ISRC: TRACK 8 ISRC: TRACK 9 ISRC: TRACK 10 ISRC: TRACK 11 ISRC: TRACK 12 ISRC: Last CD Session LSN: failed audio status: no status volume level port 0: 216 (0..255) 84 (0..100) volume level port 1: 216 (0..255) 84 (0..100) volume level port 2: 0 (0..255) 0 (0..100) volume level port 3: 0 (0..255) 0 (0..100) __ CD Analysis Report Audio CD, CDDB disc ID is 9f0c1c0c ++ WARN: command data missing cd-info: Found 0 matches in CDDB CD-TEXT for Disc: PERFORMER: Anomie Belle TITLE: sleeping patterns CD-TEXT for Track 1: PERFORMER: TITLE: down CD-TEXT for Track 2: PERFORMER: TITLE: how can i be sure CD-TEXT for Track 3: PERFORMER: TITLE: american view CD-TEXT for Track 4: PERFORMER: TITLE: john q public CD-TEXT for Track 5: PERFORMER: TITLE: cascade CD-TEXT for Track 6: PERFORMER: TITLE: greenhouse CD-TEXT for Track 7: PERFORMER: TITLE: bedtime stories CD-TEXT for Track 8: PERFORMER: TITLE: before you leave me CD-TEXT for Track 9: PERFORMER: TITLE: february sun CD-TEXT for Track 10: PERFORMER: TITLE: dox amsterdam CD-TEXT for Track 11: PERFORMER: TITLE: amy song CD-TEXT for Track 12: CD-Plus/Extra session #2 starts at track 12, LSN: 232091, ISO 9660 blocks: 232190 ISO 9660: 232190 blocks, label `SLEEPING_PATTERNS_LYRICS' Something strange, sleeve lists 11 tracks. 12 is identified as data. if i try # mplayer -cdrom-device /dev/cd0 cdda://12 MPlayer SVN-r35192-4.6.4 (C) 2000-2012 MPlayer Team Playing cdda://12. Found audio CD with 12 tracks. ...It sits there for a really, really long time, possibly waiting until the end of time (but I bailed). however, when I use cdda2wav to dump all the tracks I get 12 wav files. # mplayer audio_12.wav plays a recording of a telephone operator saying press 9 over and over again like 50 times maybe. which is odd because info claims it's txt (?) and i can't ... Thank you, Waitman Gobble San Jose California ___ 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
Bubu
Bubu ___ 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: set connection to a modem
thanks guys for your replies, now i understand two types of connections are available by modem, dial-in and dial-out. honestly, i should do it for my boss and don't know what he should want exactly to do but i am sure that he has an external serial modem and wants to config it by AT commands via a freebsd system; therefore i think our connection is dial-out. now which files i should edit? just ppp.conf? and because our modem supports specific speed and flow control, is it necessary to set these parameters in my freebsd? and if yes, how i can do that? please help me to do that thanks On Wed, Nov 28, 2012 at 7:35 PM, Polytropon free...@edvax.de wrote: On Wed, 28 Nov 2012 13:44:18 +0330, s m wrote: hello guys, i want to connect my freebsd system to modem and configure it via my freebsd. For doing _what_ exactly? I ask because depending on your goal there might be different approaches neccessary: a) dial out to connect to the Internet b) dial out to dial in to something else (e. g. shell access) c) dial out to send a fax d) dial out to make annoying phone calls :-) e) dial in so people can dial your system and log in f) dial in so people can send you fax g) dial in so you can control something using DTMF ... There are many possibilities, each requiring a different thing to do on FreeBSD (because they are obviously different(. And of course: Are you talking about a real modem (external serial modem), some modem card (often dysfunctional WinModem), or a USB modem? Brand and model? i thought that i should change /etc/ttys file to set speed and other configuration. Wouldn't you better do this with ppp.conf? Just assuming you want to dial _out_. in order to check if i am right or not, i comment ttyu line in ttys file and expect the modem got disconnected but the modem still works and can access to it. The /etc/ttys file doesn't restrict you in controlling the modem from your host system. i googled and found that there are three files in /etc that we can edit them to configure our devices: /etc/ttys, /etc/gettytab and /etc/rc.d/serial.sh. moreover we can edit init file for each device in /dev to set default speed and other configuration by stty command. Also depends on _what_ you are going to do. now i am confused and don't know which file i should edit to set speed and flow control and other setting to have a connection to my modem. i mean from which file i can configure my connection? i know it's too easy but please clear it for me. Really, I assume you're talking about dialing out with a serial modem in order to connect to the Internet (or some other system), and then be networked with it. In that case you would add an entry to /etc/ppp/ppp.conf. Allow me to provide an example that I've been using on FreeBSD 4 and 5: # PPP Configuration File # See /usr/share/examples/ppp/ for some examples # $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp $ default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) set device /dev/cuaa0 set speed 115200 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \\ AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT set ifaddr 10.0.0.1/0 10.0.0.2/0 set timeout 180 enable dns papchap: # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. set phone PHONE_NUM set authname USERNAME set authkey PASSWORD set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR mymodem: set phone 01234567890 set authname myname set authkey mypass add default HISADDR The example name I've chosen here is mymodem. Change it to something meaningful. :-) The essential authorisation data here is the phone number of 01234567890, the username 'myname' and the password 'mypass' Note that today it may be required to change the device name! I haven't tried to do anything with a modem on current FreeBSD, so I can't be more specific, sorry. The device name /dev/cuaa0 will probably need a change. And then set speed 115200 sets the speed you need. If you've done everything properly, you would do something like # ppp mymodem ppp dial Then the modem should dial. With close you close the connection. There are options for /etc/rc.conf (the ppp_* variables) that allow you to automate things, like dial on demand. In contradiction, in /etc/ttys something like ttyd0 /usr/libexec/getty std.9600 dialup on secure would enable you a serial console access (e. g. to connect a serial terminal to) at a speed of 9k6 (e. g. a DEC vt100). When connected via serial cable, you would receive a login prompt. Again, note that ttyd0 might not be valid here. -- Polytropon Magdeburg,