Re: /etc/jail.conf for automatically started jails listed in /etc/rc.conf
2013/5/14 Joe fb...@a1poweruser.com: David Demelier wrote: Le lundi 13 mai 2013 16:32:01 Joe a écrit : David Demelier wrote: Hello dear, Does jail.conf(5) does not work for jails listed in the rc.conf ? I've added in /etc/jail.conf: foo { hostname=Foo; path=/jails/foo; allow.sysvipc=1; } And in /etc/rc.conf only foo in the jail_list parameter, but when I try to start the jail it still complain about missing hostname. Regards, There are 2 methods for configuring jails. The legacy method which you put the jail config statements in the hosts /etc/rc.conf file and start and stop control is done by the hosts /etc/rc.d/jail script at boot time. The jail(8) method which has it's own jail config statements in the hosts /etc/jail.conf file and uses the jail(8) program for starting and stopping. You can create a jail.conf file for each jail(8) and start it using jail -c -f /etc/jailname.jail.conf and stop by issuing jail -f /etc/jailname.jail.conf -r jailname You can not mix the 2 methods. My real problem is that I wanted to add allow.sysvipc only for *one* jail and I can't find a real solution by jail_* flags in /etc/rc.conf There is jail_allow_sysvipc but it enable it for all jails. The jail(8) method does have a allow_sysvipc on a per jail basis. To use it you have to use the jail(8) method. The 9.1-RELEASE legacy method is a work in process to incorporate the jail(8) parameters into the rc.conf config statements. About the allow_sysvipc parameter, this breaks the security the jail is designed to provide and should NOT be used on any jails having public internet access. What are you trying to do that you think you need to use the allow_sysvipc parameter? PostgreSQL, usually I install it on the host instead of jails, but I needed a second instance on a different port for a public access.. Regards, -- 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: /etc/jail.conf for automatically started jails listed in /etc/rc.conf
David Demelier wrote: 2013/5/14 Joe fb...@a1poweruser.com: David Demelier wrote: Le lundi 13 mai 2013 16:32:01 Joe a écrit : David Demelier wrote: Hello dear, Does jail.conf(5) does not work for jails listed in the rc.conf ? I've added in /etc/jail.conf: foo { hostname=Foo; path=/jails/foo; allow.sysvipc=1; } And in /etc/rc.conf only foo in the jail_list parameter, but when I try to start the jail it still complain about missing hostname. Regards, There are 2 methods for configuring jails. The legacy method which you put the jail config statements in the hosts /etc/rc.conf file and start and stop control is done by the hosts /etc/rc.d/jail script at boot time. The jail(8) method which has it's own jail config statements in the hosts /etc/jail.conf file and uses the jail(8) program for starting and stopping. You can create a jail.conf file for each jail(8) and start it using jail -c -f /etc/jailname.jail.conf and stop by issuing jail -f /etc/jailname.jail.conf -r jailname You can not mix the 2 methods. My real problem is that I wanted to add allow.sysvipc only for *one* jail and I can't find a real solution by jail_* flags in /etc/rc.conf There is jail_allow_sysvipc but it enable it for all jails. The jail(8) method does have a allow_sysvipc on a per jail basis. To use it you have to use the jail(8) method. The 9.1-RELEASE legacy method is a work in process to incorporate the jail(8) parameters into the rc.conf config statements. About the allow_sysvipc parameter, this breaks the security the jail is designed to provide and should NOT be used on any jails having public internet access. What are you trying to do that you think you need to use the allow_sysvipc parameter? PostgreSQL, usually I install it on the host instead of jails, but I needed a second instance on a different port for a public access.. Regards, -- Demelier David That all sounds logical and is what jails are designed to do. Why would running PostgreSQL in a jail need sysvipc? Have you tried it? Did you get some PostgreSQL error? ___ 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: /etc/jail.conf for automatically started jails listed in /etc/rc.conf
On 05/14/2013 8:20 am, Joe wrote: David Demelier wrote: 2013/5/14 Joe fb...@a1poweruser.com: David Demelier wrote: Le lundi 13 mai 2013 16:32:01 Joe a écrit : David Demelier wrote: Hello dear, Does jail.conf(5) does not work for jails listed in the rc.conf ? I've added in /etc/jail.conf: foo { hostname=Foo; path=/jails/foo; allow.sysvipc=1; } And in /etc/rc.conf only foo in the jail_list parameter, but when I try to start the jail it still complain about missing hostname. Regards, There are 2 methods for configuring jails. The legacy method which you put the jail config statements in the hosts /etc/rc.conf file and start and stop control is done by the hosts /etc/rc.d/jail script at boot time. The jail(8) method which has it's own jail config statements in the hosts /etc/jail.conf file and uses the jail(8) program for starting and stopping. You can create a jail.conf file for each jail(8) and start it using jail -c -f /etc/jailname.jail.conf and stop by issuing jail -f /etc/jailname.jail.conf -r jailname You can not mix the 2 methods. My real problem is that I wanted to add allow.sysvipc only for *one* jail and I can't find a real solution by jail_* flags in /etc/rc.conf There is jail_allow_sysvipc but it enable it for all jails. The jail(8) method does have a allow_sysvipc on a per jail basis. To use it you have to use the jail(8) method. The 9.1-RELEASE legacy method is a work in process to incorporate the jail(8) parameters into the rc.conf config statements. About the allow_sysvipc parameter, this breaks the security the jail is designed to provide and should NOT be used on any jails having public internet access. What are you trying to do that you think you need to use the allow_sysvipc parameter? PostgreSQL, usually I install it on the host instead of jails, but I needed a second instance on a different port for a public access.. Regards, -- Demelier David That all sounds logical and is what jails are designed to do. Why would running PostgreSQL in a jail need sysvipc? Have you tried it? Did you get some PostgreSQL error? ___ 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 I can confirm that PostgreSQL will not run in a jail without sysvipc enabled, I just setup a jail running PostgreSQL a few weeks ago and had to do that as well. PostgreSQL will not start without it enabled, though perhaps there is some setting change in PostgreSQL that will make it not require this. In my case its the only jail, and I am the only user with access to both the base system and the jail so I wasn't to concerned about it allowing more access to the base system from the jail. -- Thanks, Dean E. Weimer http://www.dweimer.net/ ___ 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: /etc/jail.conf for automatically started jails listed in /etc/rc.conf
2013/5/14 Joe fb...@a1poweruser.com: David Demelier wrote: 2013/5/14 Joe fb...@a1poweruser.com: David Demelier wrote: Le lundi 13 mai 2013 16:32:01 Joe a écrit : David Demelier wrote: Hello dear, Does jail.conf(5) does not work for jails listed in the rc.conf ? I've added in /etc/jail.conf: foo { hostname=Foo; path=/jails/foo; allow.sysvipc=1; } And in /etc/rc.conf only foo in the jail_list parameter, but when I try to start the jail it still complain about missing hostname. Regards, There are 2 methods for configuring jails. The legacy method which you put the jail config statements in the hosts /etc/rc.conf file and start and stop control is done by the hosts /etc/rc.d/jail script at boot time. The jail(8) method which has it's own jail config statements in the hosts /etc/jail.conf file and uses the jail(8) program for starting and stopping. You can create a jail.conf file for each jail(8) and start it using jail -c -f /etc/jailname.jail.conf and stop by issuing jail -f /etc/jailname.jail.conf -r jailname You can not mix the 2 methods. My real problem is that I wanted to add allow.sysvipc only for *one* jail and I can't find a real solution by jail_* flags in /etc/rc.conf There is jail_allow_sysvipc but it enable it for all jails. The jail(8) method does have a allow_sysvipc on a per jail basis. To use it you have to use the jail(8) method. The 9.1-RELEASE legacy method is a work in process to incorporate the jail(8) parameters into the rc.conf config statements. About the allow_sysvipc parameter, this breaks the security the jail is designed to provide and should NOT be used on any jails having public internet access. What are you trying to do that you think you need to use the allow_sysvipc parameter? PostgreSQL, usually I install it on the host instead of jails, but I needed a second instance on a different port for a public access.. Regards, -- Demelier David That all sounds logical and is what jails are designed to do. Why would running PostgreSQL in a jail need sysvipc? Have you tried it? Did you get some PostgreSQL error? Yes, unfortunately this is a very very old issue that has been reported so much often.. -- 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: /etc/jail.conf for automatically started jails listed in /etc/rc.conf
On 14/05/2013 14:31, dweimer wrote: I can confirm that PostgreSQL will not run in a jail without sysvipc enabled, I just setup a jail running PostgreSQL a few weeks ago and had to do that as well. PostgreSQL will not start without it enabled, though perhaps there is some setting change in PostgreSQL that will make it not require this. In my case its the only jail, and I am the only user with access to both the base system and the jail so I wasn't to concerned about it allowing more access to the base system from the jail. postgresql-9.3beta1 was announced a few days ago, and one of the key new features is switching largely away from sysvipc to mmap for shared memory. http://www.postgresql.org/docs/devel/static/release-9-3.html Unfortunately I don't think it's entirely sysV IPC free yet. But postgresql93 is available in ports. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
/etc/jail.conf for automatically started jails listed in /etc/rc.conf
Hello dear, Does jail.conf(5) does not work for jails listed in the rc.conf ? I've added in /etc/jail.conf: foo { hostname=Foo; path=/jails/foo; allow.sysvipc=1; } And in /etc/rc.conf only foo in the jail_list parameter, but when I try to start the jail it still complain about missing hostname. Regards, ___ 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: /etc/jail.conf for automatically started jails listed in /etc/rc.conf
David Demelier wrote: Hello dear, Does jail.conf(5) does not work for jails listed in the rc.conf ? I've added in /etc/jail.conf: foo { hostname=Foo; path=/jails/foo; allow.sysvipc=1; } And in /etc/rc.conf only foo in the jail_list parameter, but when I try to start the jail it still complain about missing hostname. Regards, There are 2 methods for configuring jails. The legacy method which you put the jail config statements in the hosts /etc/rc.conf file and start and stop control is done by the hosts /etc/rc.d/jail script at boot time. The jail(8) method which has it's own jail config statements in the hosts /etc/jail.conf file and uses the jail(8) program for starting and stopping. You can create a jail.conf file for each jail(8) and start it using jail -c -f /etc/jailname.jail.conf and stop by issuing jail -f /etc/jailname.jail.conf -r jailname You can not mix the 2 methods. ___ 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: /etc/jail.conf for automatically started jails listed in /etc/rc.conf
Le lundi 13 mai 2013 16:32:01 Joe a écrit : David Demelier wrote: Hello dear, Does jail.conf(5) does not work for jails listed in the rc.conf ? I've added in /etc/jail.conf: foo { hostname=Foo; path=/jails/foo; allow.sysvipc=1; } And in /etc/rc.conf only foo in the jail_list parameter, but when I try to start the jail it still complain about missing hostname. Regards, There are 2 methods for configuring jails. The legacy method which you put the jail config statements in the hosts /etc/rc.conf file and start and stop control is done by the hosts /etc/rc.d/jail script at boot time. The jail(8) method which has it's own jail config statements in the hosts /etc/jail.conf file and uses the jail(8) program for starting and stopping. You can create a jail.conf file for each jail(8) and start it using jail -c -f /etc/jailname.jail.conf and stop by issuing jail -f /etc/jailname.jail.conf -r jailname You can not mix the 2 methods. My real problem is that I wanted to add allow.sysvipc only for *one* jail and I can't find a real solution by jail_* flags in /etc/rc.conf There is jail_allow_sysvipc but it enable it for all jails. ___ 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: /etc/jail.conf for automatically started jails listed in /etc/rc.conf
David Demelier wrote: Le lundi 13 mai 2013 16:32:01 Joe a écrit : David Demelier wrote: Hello dear, Does jail.conf(5) does not work for jails listed in the rc.conf ? I've added in /etc/jail.conf: foo { hostname=Foo; path=/jails/foo; allow.sysvipc=1; } And in /etc/rc.conf only foo in the jail_list parameter, but when I try to start the jail it still complain about missing hostname. Regards, There are 2 methods for configuring jails. The legacy method which you put the jail config statements in the hosts /etc/rc.conf file and start and stop control is done by the hosts /etc/rc.d/jail script at boot time. The jail(8) method which has it's own jail config statements in the hosts /etc/jail.conf file and uses the jail(8) program for starting and stopping. You can create a jail.conf file for each jail(8) and start it using jail -c -f /etc/jailname.jail.conf and stop by issuing jail -f /etc/jailname.jail.conf -r jailname You can not mix the 2 methods. My real problem is that I wanted to add allow.sysvipc only for *one* jail and I can't find a real solution by jail_* flags in /etc/rc.conf There is jail_allow_sysvipc but it enable it for all jails. The jail(8) method does have a allow_sysvipc on a per jail basis. To use it you have to use the jail(8) method. The 9.1-RELEASE legacy method is a work in process to incorporate the jail(8) parameters into the rc.conf config statements. About the allow_sysvipc parameter, this breaks the security the jail is designed to provide and should NOT be used on any jails having public internet access. What are you trying to do that you think you need to use the allow_sysvipc parameter? ___ 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: rc.conf and loader.conf
On Fri, 26 Oct 2012 07:37:09 +0200 (CEST), Trond Endrestøl wrote: However, I like to keep the lines in the /etc/rc.conf file in the same order as they appear in the /etc/defaults/rc.conf file, and place local stuff (from /usr/local/etc/rc.d) in alphabetical order at the bottom of the file. Slight deviation: I tend to group settings according to their functionality (network, server stuff, console settings etc.), and also have local additions at the end of the file. However, FreeBSD also supports rc.conf.local to keep them. The rc.conf file can be seen as a shell script, containing variable assignments. It is that simple. It implies that you can arrange everything (with newlines, comments, in groups, as you wish) as long as it is valid shell syntax. -- 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
rc.conf and loader.conf
hi, what is the best order of items in rc.conf and loader.conf? actually items order is important? Best regards, Ashkan ___ 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: rc.conf and loader.conf
On Oct 25, 2012, at 5:17 PM, Ashkan Rahmani wrote: hi, what is the best order of items in rc.conf and loader.conf? actually items order is important? order does not matter (unless you have duplicates -- in which case later assignments override previous ones). -- 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: rc.conf and loader.conf
Hi, On Fri, 26 Oct 2012 03:47:29 +0330 Ashkan Rahmani ashkan...@gmail.com wrote: hi, what is the best order of items in rc.conf and loader.conf? actually items order is important? as you know already, the order does not matter at all. But there some modules which cannot coexist. I prefer to build a custom kernel over loading modules. Of course, as this does not always lead to a perfect solution, I still have some kernel modules which are loaded at boot time or even after the system is up and running via a script I start manually. With other words, FreeBSD gives you all the freedom you need to get the best solution for your needs. Erich Best regards, Ashkan ___ 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 ___ 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: rc.conf and loader.conf
On Fri, 26 Oct 2012 03:47+0330, Ashkan Rahmani wrote: hi, what is the best order of items in rc.conf and loader.conf? actually items order is important? Order is not important, as explained by someone else on the list. However, I like to keep the lines in the /etc/rc.conf file in the same order as they appear in the /etc/defaults/rc.conf file, and place local stuff (from /usr/local/etc/rc.d) in alphabetical order at the bottom of the file. Just my $0.02. -- +---++ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +---++___ 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
rc.conf ifconfig ipv6 address fails at boot
Hello questions, I can't figure out what I'm doing wrong here. Trying to get a static IPv6 on a server at boot time from rc.conf, and that fails. Notice I haven't set ipv6_network_interfaces , so it defaults to auto. = ipv6_enable=YES ipv6_defaultrouter=2a01:e35:2f1b:e2a0::1 # VLAN 99 = WAN / CISCO INTERCONNECTION ifconfig_vlan99=vlan 99 vlandev re0 up ipv4_addrs_vlan99=192.168.99.3/24 ipv6_addrs_vlan99=2a01:e35:2f1b:e2a0::dead:beef/64 = I resorted to adding the IPv6 and default gateway via a @reboot line in /etc/crontab , but this is really not right... The machine is running 8.3-PRERELEASE from february. Should I instead try the following ? ifconfig_vlan99=inet 192.168.99.3/24 vlan 99 vlandev re0 up ipv6_ifconfig_vlan99=2a01:e35:2f1b:e2a0::dead:beef/64 I'm not really at liberty to reboot the server to test during work time ;) ___ 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
Adding a Static Route to rc.conf?
On Tue, May 1, 2012 at 8:31 AM, Chris Maness chris at chrismaness.com wrote: How do add a static route to rc.conf? Thanks, Chris Maness http://www.freebsd.org/doc/handbook/network-routing.html see section 32.2.5.2 Persistent Configuration -- Noel Jones I added: # Add Internal Net 2 as a static route static_routes=internalnet2 route_internalnet2=-net 44.18.44.0/24 192.168.1.33 to rc.conf per the section above. I rebooted and it was a no go. Did I miss something? Thanks, Chris Maness ___ 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: Adding a Static Route to rc.conf?
On 5/3/2012 11:45 AM, Chris Maness wrote: On Tue, May 1, 2012 at 8:31 AM, Chris Maness chris at chrismaness.com wrote: How do add a static route to rc.conf? Thanks, Chris Maness http://www.freebsd.org/doc/handbook/network-routing.html see section 32.2.5.2 Persistent Configuration -- Noel Jones I added: # Add Internal Net 2 as a static route static_routes=internalnet2 route_internalnet2=-net 44.18.44.0/24 192.168.1.33 to rc.conf per the section above. I rebooted and it was a no go. Did I miss something? Looks OK, and works for me. Wild guess is you need to enable netwait in rc.conf http://www.freebsd.org/cgi/man.cgi?query=rc.confsektion=5 (near the bottom) -- Noel Jones ___ 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: Adding a Static Route to rc.conf?
# Add Internal Net 2 as a static route static_routes=internalnet2 route_internalnet2=-net 44.18.44.0/24 192.168.1.33 to rc.conf per the section above. I rebooted and it was a no go. Did I miss something? Looks OK, and works for me. Wild guess is you need to enable netwait in rc.conf http://www.freebsd.org/cgi/man.cgi?query=rc.confsektion=5 (near the bottom) -- Noel Jones I will check that option out. I don't reboot that often, but when I do, I always forget to go back in and add my static routes. Thanks, Chris Maness ___ 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: Adding a Static Route to rc.conf?
On 5/3/2012 1:08 PM, Michael Sierchio wrote: On Thu, May 3, 2012 at 10:34 AM, Noel noeld...@gmail.com mailto:noeld...@gmail.com wrote: On 5/3/2012 11:45 AM, Chris Maness wrote: On Tue, May 1, 2012 at 8:31 AM, Chris Maness chris at chrismaness.com http://chrismaness.com wrote: How do add a static route to rc.conf? Thanks, Chris Maness http://www.freebsd.org/doc/handbook/network-routing.html see section 32.2.5.2 Persistent Configuration -- Noel Jones I added: # Add Internal Net 2 as a static route static_routes=internalnet2 route_internalnet2=-net 44.18.44.0/24 http://44.18.44.0/24 192.168.1.33 to rc.conf per the section above. I rebooted and it was a no go. Did I miss something? Looks OK, and works for me. Wild guess is you need to enable netwait in rc.conf http://www.freebsd.org/cgi/man.cgi?query=rc.confsektion=5 http://www.freebsd.org/cgi/man.cgi?query=rc.confsektion=5 (near the bottom) This is 9.X-specific advice, and this option doesn't exist in 8- or prior. Indeed, I should have mentioned that if you have freebsd-8x or earlier, this feature isn't built-in but can be easily added: http://freebsd.1045724.n5.nabble.com/Re-rc-8-script-waiting-for-the-network-to-become-usable-td4242157.html Or the earlier discussion: http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056521.html -- Noel Jones ___ 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: Adding a Static Route to rc.conf?
On Thu, May 3, 2012 at 11:17 AM, Noel noeld...@gmail.com wrote: Indeed, I should have mentioned that if you have freebsd-8x or earlier, this feature isn't built-in but can be easily added: http://freebsd.1045724.n5.nabble.com/Re-rc-8-script-waiting-for-the-network-to-become-usable-td4242157.html Or the earlier discussion: http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056521.html The link to the script in this thread is dead. ___ 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: Adding a Static Route to rc.conf?
On 5/3/2012 1:54 PM, Michael Sierchio wrote: On Thu, May 3, 2012 at 11:17 AM, Noel noeld...@gmail.com mailto:noeld...@gmail.com wrote: Indeed, I should have mentioned that if you have freebsd-8x or earlier, this feature isn't built-in but can be easily added: http://freebsd.1045724.n5.nabble.com/Re-rc-8-script-waiting-for-the-network-to-become-usable-td4242157.html Or the earlier discussion: http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056521.html The link to the script in this thread is dead. Then use the second thread, which includes the script in-line. ___ 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: Adding a Static Route to rc.conf?
On Tue, May 1, 2012 at 8:31 AM, Chris Maness ch...@chrismaness.com wrote: How do add a static route to rc.conf? Thanks, Chris Maness http://www.freebsd.org/doc/handbook/network-routing.html see section 32.2.5.2 Persistent Configuration -- Noel Jones Thanks, Noel Chris ___ 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
Adding a Static Route to rc.conf?
How do add a static route to rc.conf? Thanks, Chris Maness ___ 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: Adding a Static Route to rc.conf?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/1/2012 10:31 AM, Chris Maness wrote: How do add a static route to rc.conf? Thanks, Chris Maness ___ 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 http://www.freebsd.org/doc/handbook/network-routing.html see section 32.2.5.2 Persistent Configuration -- Noel Jones -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPoAWnAAoJEHIluGOd3V4F/U8H/i+OnN2OKmKxEPYjK7TKovie iXQX2AD8ddvUWsxrsoeJX03clg6sjzS+yF3pIGqC/IvhX+dwkpu8+55ZnzXNCQmW chVQs2uUixUxBugUSK79bR0pXJfBvnfgEXD42Fgxd8C4Yb+b9nrscFOmOzStt5XX FssudAAS2G+mHJlAUT+q8SJqI4ebQQsSXID3O2CrTx9081gqQEyvSrhJI5JhlOl8 IB6Q+pQ9rcO3bsXTF0THTWMYPbu9wxLaU0uqyCGLwAn6w3d26dfrbAFMxeIHDOi1 YrgeIVsVHtwiuMqcvvhW0iZN4ijbSkr+zchzzY38TUJ3aGL7I+Nu+C6sgMK1XiM= =as2f -END PGP SIGNATURE- ___ 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
8.2-RELEASE sysinstall creates duplicate rc.conf lines
Hi all, We recently discovered that sysinstall appears to be adding it's own lines to /etc/rc.conf which are duplicates of lines that we are inserting during builds. For example, on one of our hosts, we are adding defaultrouter and ifconfig_em0 with certain network configurations. When we reboot the system we find that sysinstall also inserted a defaultrouter and ifconfig_em0 populated with the data that existed on the interface during the build. See a sample of the rc.conf below. We are making use of the keeprcconf in the install.cfg, but this does not prevent sysinstall from adding those lines. Is there some way to prevent this behavior? # Sample rc.conf after sysinstall build defaultrouter=10.0.0.1 defaultrouter=192.168.0.1 hostname=bsdtest ifconfig_em0=inet 10.0.0.2 netmask 255.255.252.0 ifconfig_em0=inet 192.168.0.2 netmaks 255.255.255.0 sshd_enable=YES -- Take care Rick Miller ___ 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: Urgent!. Problem with / etc / rc.conf
On 06/11/2011 04:10, Zantgo wrote: Without wanting to erase all contents of / etc / rc.conf, by running echo slim_enable = YES / etc / rc.conf. Please help!. You could have used the following: echo slim_enable = YES /etc/rc.conf The appends the line instead of replacing the existing contents. -- Bruce Cran ___ 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: Urgent!. Problem with / etc / rc.conf
Le Sun, 6 Nov 2011 01:52:36 -0300, Zantgo zan...@gmail.com a écrit : Hello, Two other things, use rather than to append to the file (better yet, learn vi, it's much safer), and always backup any changes from default you make to config files. I keep them all on pastebin.com for convenience, but you can keep them anywhere, even scribbled on a postit note stuck to the front of the server in question (what I used to do). Rob I gave up, and now reinstall everything again :( You really don't need to reinstall. All the default rc.conf settings are in /etc/default/rc.conf You may also use sysinstall(8), Configure|Do post-install configuration (networking) and Keymap. It will update rc.conf Regards. ___ 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: Urgent!. Problem with / etc / rc.conf
From: Zantgo zan...@gmail.com To: Robert Simmons rsimmo...@gmail.com Cc: freebsd-questions@FreeBSD.org freebsd-questions@freebsd.org Sent: Sunday, November 6, 2011 12:52 AM Subject: Re: Urgent!. Problem with / etc / rc.conf El 06-11-2011, a las 1:29, Robert Simmons rsimmo...@gmail.com escribió: On Sun, Nov 6, 2011 at 12:10 AM, Zantgo zan...@gmail.com wrote: Without wanting to erase all contents of / etc / rc.conf, by running echo slim_enable = YES / etc / rc.conf. Please help!. Well, the absolute basics would be: hostname=YourHostNameHere ifconfig_NameOfNicCardDeviceHere=inet IPADDRESS netmask NETMASK defaultrouter=IPOfGateway/Router You may also have had: sshd_enable=YES You can also look at dmesg -a and get a grasp over what other services you had started. Two other things, use rather than to append to the file (better yet, learn vi, it's much safer), and always backup any changes from default you make to config files. I keep them all on pastebin.com for convenience, but you can keep them anywhere, even scribbled on a postit note stuck to the front of the server in question (what I used to do). Rob I gave up, and now reinstall everything again :( ___ 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 Wow, to reinstall everything is like throwing the baby out with the bath water. Rather drastic. There are some simple steps you could have taken to get things back to normal but without knowing what you had in your original rc.conf file that's probably oversimplifying things. I keep a little script in my /root/bin folder to backup my config files periodically to another server. This is something you should look into. We all make mistakes and when we do, a backup copy can make the difference between oh wow and oh f***. ___ 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: Urgent!. Problem with / etc / rc.conf
On Sun, 6 Nov 2011 05:23:54 -0800 (PST), Bill Tillman wrote: Wow, to reinstall everything is like throwing the baby out with the bath water. Rather drastic. There are some simple steps you could have taken to get things back to normal but without knowing what you had in your original rc.conf file that's probably oversimplifying things. The defaults in /etc/defaults/rc.conf should be fully sufficient to bring the system up. From this state, running sysinstall could be used to choose settings that will cause /etc/rc.conf to be updated. Furthermore /etc/defaults/rc.conf can be used as a template for settings. Depending on what a system actually will be used for, there can be some strange settings required, such as keymap or services to be enabled at boot. Using some web web search, usabe /etc/rc.conf templates can also be revealed. Of course they need changes to conform to local needs. I keep a little script in my /root/bin folder to backup my config files periodically to another server. This is something you should look into. We all make mistakes and when we do, a backup copy can make the difference between oh wow and oh f***. I also have a copy /root/etc for the files I have changed, and I keep my changes in a CVS repository. I know this may sound overcomplex at _this_ particular problem, but it helps when you have to deal with various systems and sometimes need to undo changes. From that repository, I can restore any version from any system. Even in worst case obtaining a complete set of configuration files is possible. The difference in the RESULT between and can be immense, and having a backup you can _quickly_ access is really a happy oh wow, which is more pleasant than oh f***, especially if the last one is expressed by others. :-) Politely I'd also like to mention that there are no things called folder on FreeBSD in particular, and on operating systems in general. Those things are properly called directories. ;-) PS. Please wrap your lines 72. Some MUAs don't do that automatically. Thanks! -- 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: Urgent!. Problem with / etc / rc.conf
On Sun, Nov 06, 2011 at 01:10:28AM -0300, Zantgo wrote: Without wanting to erase all contents of / etc / rc.conf, by running echo slim_enable = YES / etc / rc.conf. Please help!. First, please learn to break your lines at about 70 characters. It makes it easier to reply appropriately. Second, you should learn to use a text editor - most particularly the vi(1) editor wihch is distributed in /usr/bin/vi That will help your system administration a whole lot. Here is a web page with simplified info on using vi on a basic level. http://z2.cl.msu.edu/~jerrymc/project/editvi/ Third, to append to a file instead of replacing it when using echo double the '' character - as in In your example, it would be: echo 'slim_enable=YES' /etc/rc.conf jerry ___ 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 ___ 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
Urgent!. Problem with / etc / rc.conf
Without wanting to erase all contents of / etc / rc.conf, by running echo slim_enable = YES / etc / rc.conf. Please help!. ___ 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: Urgent!. Problem with / etc / rc.conf
From owner-freebsd-questi...@freebsd.org Sat Nov 5 23:10:17 2011 From: Zantgo zan...@gmail.com Date: Sun, 6 Nov 2011 01:10:28 -0300 To: freebsd-questions@FreeBSD.org freebsd-questions@freebsd.org Subject: Urgent!. Problem with / etc / rc.conf Without wanting to erase all contents of / etc / rc.conf, by running echo slim_enable = YES / etc / rc.conf. Please help!. If you don't want to erase all contents of / etc / rc.conf, DO NOT RUN echo slim_enable = YES / etc / rc.conf. END OF HELP!. ___ 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: Urgent!. Problem with / etc / rc.conf
On Sun, Nov 6, 2011 at 12:10 AM, Zantgo zan...@gmail.com wrote: Without wanting to erase all contents of / etc / rc.conf, by running echo slim_enable = YES / etc / rc.conf. Please help!. Well, the absolute basics would be: hostname=YourHostNameHere ifconfig_NameOfNicCardDeviceHere=inet IPADDRESS netmask NETMASK defaultrouter=IPOfGateway/Router You may also have had: sshd_enable=YES You can also look at dmesg -a and get a grasp over what other services you had started. Two other things, use rather than to append to the file (better yet, learn vi, it's much safer), and always backup any changes from default you make to config files. I keep them all on pastebin.com for convenience, but you can keep them anywhere, even scribbled on a postit note stuck to the front of the server in question (what I used to do). Rob ___ 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: Urgent!. Problem with / etc / rc.conf
El 06-11-2011, a las 1:29, Robert Simmons rsimmo...@gmail.com escribió: On Sun, Nov 6, 2011 at 12:10 AM, Zantgo zan...@gmail.com wrote: Without wanting to erase all contents of / etc / rc.conf, by running echo slim_enable = YES / etc / rc.conf. Please help!. Well, the absolute basics would be: hostname=YourHostNameHere ifconfig_NameOfNicCardDeviceHere=inet IPADDRESS netmask NETMASK defaultrouter=IPOfGateway/Router You may also have had: sshd_enable=YES You can also look at dmesg -a and get a grasp over what other services you had started. Two other things, use rather than to append to the file (better yet, learn vi, it's much safer), and always backup any changes from default you make to config files. I keep them all on pastebin.com for convenience, but you can keep them anywhere, even scribbled on a postit note stuck to the front of the server in question (what I used to do). Rob I gave up, and now reinstall everything again :( ___ 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: Passing additional options to jail(8) via rc.conf
Hello, if it really is impossible to pass parameters like ip4=inherit to jail(8) via the rc.conf mechanism, I consider this a serious limitation. Can I possibly make this a feature request? :) Best regards, Moritz ___ 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: Passing additional options to jail(8) via rc.conf
On Tue, Sep 20, 2011 at 12:59:48 +0200, Moritz Wilhelmy wrote: if it really is impossible to pass parameters like ip4=inherit to jail(8) via the rc.conf mechanism, I consider this a serious limitation. Can I possibly make this a feature request? :) Alright, just for the record, apparently there is a (suspended) PR (conf/142972) which requests /etc/rc.d/jail to be switched over to new style jail(8) invocation (with -c/-m parameters), which, unlike old-style invocation supports passing additional parameters, which has worked for me in the past, when done by hand. On previous servers, I ended up putting something in my rc.local, but as already mentioned, I'd very much prefer the rc.conf-sugar. This PR was filed about a year ago, and I'm a bit disappointed, because one of the main reasons for me to pick FreeBSD was the jail support, which is pretty amazing if you ask me, if only there was a way to start them *with* parameters... :-( Please do something. I know freebsd-questions is the wrong list for this (so I will be posting it to freebsd-jail as well), but my initial post ended up there. I don't care whether you end up with an /etc/jail.d as proposed in conf/116416, but IMHO, there should be some *documented* way, which is officially supported and available on a default installation of FreeBSD, to start a jail with all parameters advertised in the manpage. Please keep me in CC, I am not subscribed to freebsd-jail. Best regards, Moritz ___ 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: Passing additional options to jail(8) via rc.conf
On Sep 20, 2011, at 3:21 PM, Moritz Wilhelmy wrote: Please keep me in CC, I am not subscribed to freebsd-jail. Which is your problem as the real solution is being discussed there and is really looking for more eyes. Search for Jamie's posts in the list archive. -- Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family. ___ 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: Passing additional options to jail(8) via rc.conf
On Tue, Sep 20, 2011 at 16:54:33 +, Bjoern A. Zeeb wrote: On Sep 20, 2011, at 3:21 PM, Moritz Wilhelmy wrote: Please keep me in CC, I am not subscribed to freebsd-jail. Which is your problem as the real solution is being discussed there and is really looking for more eyes. Search for Jamie's posts in the list archive. I wasn't subscribed to freebsd-questions either, back in July. I had some FreeBSDs running before, but I really wasn't reading any mailing lists. I thought I should ask -questions first, because it is the most busy one, with all the chatter and noise. Guess I will either patch jail(8) or do it via rc.local on 8.2 and wait for the release of 9, which seems to be quite an improvement in general. I'm also not that actively involved in FreeBSD, and I try not to subscribe too many mailing lists in general. I thought the PR was the only thing there was, and google tricked me into believing this. Maybe someone could close the PR in case this is resolved. My apologies. Thanks to Jamie for adding support for the config file. Best regards, Moritz ___ 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
Passing additional options to jail(8) via rc.conf
Hello, let's say I want to pass additional options like ip4=inherit to my jails configured via /etc/rc.conf. How do I get this to work? Apparently, setting jail_www_flags=-l -U root ip4=inherit is the wrong order, because these parameters are expected after -c, which is apparently inserted by the rc-script *after* the flags passed via the variable. Has anyone else had this problem, and is there a way to solve it rather than setting the jail up things by hand in rc.local? I'd prefer using the sugar rc.conf offers me. Maybe there is another, undocumented variable for this kind of options? Am I overlooking something? Thanks in advance, Moritz ___ 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: can't determine sound card driver to use in /etc/rc.conf
On Wed, 20 Apr 2011 14:52:56 -0500, Antonio Olivares olivares14...@gmail.com wrote: Here's output from shell [olivares@grulla ~]$ mplayer dvd://1 MPlayer SVN-r32577-snapshot-4.2.1 (C) 2000-2010 MPlayer Team Playing dvd://1. libdvdread: Using libdvdcss version 1.2.10 for DVD access libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.BU. Can't open VMG info! No stream found to handle url dvd://1 Exiting... (End of file) This looks like mplayer is accessing the drive, but cannot play the file. A missing codec error should look different. I have tried different movies and get similar results :( So you can exclude media error. Maybe this diagnostic script from my outbox can help you to track down the error. It has been made on 7-STABLE i386 with mplayer-0.99.11_3 - a quite old system. See if the steps described here can be reproduced on your system in a similar way. *** Here's an example of my THX 1138 movie DVD: Step 1: Identify media % cdcontrol info Starting track = 1, ending track = 1, TOC size = 18 bytes track start duration block length type - 1 0:02.00 206:28.68 0 929168 data 170 206:30.68 - 929168 - - Step 2: Identify file system % file - /dev/acd0 /dev/stdin: UDF filesystem data (version 1.5) 'THX_1138' Step 3: Mount file system and check content % sudo mount -t cd9660 -o ro /dev/acd0 /mnt % ls -R /mnt audio_ts/ video_ts/ /mnt/audio_ts: /mnt/video_ts: video_ts.bup* vts_01_1.vob* vts_02_0.bup* vts_03_0.vob* vts_05_0.bup* video_ts.ifo* vts_01_2.vob* vts_02_0.ifo* vts_03_1.vob* vts_05_0.ifo* video_ts.vob* vts_01_3.vob* vts_02_0.vob* vts_04_0.bup* vts_05_0.vob* vts_01_0.bup* vts_01_4.vob* vts_02_1.vob* vts_04_0.ifo* vts_05_1.vob* vts_01_0.ifo* vts_01_5.vob* vts_03_0.bup* vts_04_0.vob* vts_01_0.vob* vts_01_6.vob* vts_03_0.ifo* vts_04_1.vob* % sudo umount /mnt Step 4: Play DVD content - ATTENTION - DVD not mounted for that! % mplayer -alang de -aid 129 dvd://2 MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team CPU: Intel(R) Celeron(R) CPU 2.00GHz (Family: 15, Model: 2, Stepping:9) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. Playing dvd://2. There are 21 titles on this DVD. There are 50 chapters in this DVD title. There are 1 angles in this DVD title. audio stream: 0 format: ac3 (5.1) language: en aid: 128. audio stream: 1 format: ac3 (5.1) language: de aid: 129. audio stream: 2 format: ac3 (5.1) language: es aid: 130. audio stream: 3 format: ac3 (stereo) language: en aid: 131. audio stream: 4 format: ac3 (5.1) language: en aid: 132. number of audio channels on disk: 5. subtitle ( sid ): 0 language: en subtitle ( sid ): 1 language: de subtitle ( sid ): 2 language: es subtitle ( sid ): 3 language: fr subtitle ( sid ): 4 language: it subtitle ( sid ): 5 language: pt subtitle ( sid ): 6 language: da subtitle ( sid ): 7 language: fi subtitle ( sid ): 8 language: iw subtitle ( sid ): 9 language: is subtitle ( sid ): 10 language: no subtitle ( sid ): 11 language: sv subtitle ( sid ): 12 language: hr subtitle ( sid ): 13 language: cs subtitle ( sid ): 14 language: el subtitle ( sid ): 15 language: pl subtitle ( sid ): 16 language: hu subtitle ( sid ): 17 language: tr subtitle ( sid ): 18 language: sl subtitle ( sid ): 19 language: en subtitle ( sid ): 20 language: de number of subtitles on disk: 21 MPEG-PS file format detected. VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9800.0 kbps (1225.0 kbyte/s) == Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) ==
Re: can't determine sound card driver to use in /etc/rc.conf
So you can exclude media error. Maybe this diagnostic script from my outbox can help you to track down the error. It has been made on 7-STABLE i386 with mplayer-0.99.11_3 - a quite old system. See if the steps described here can be reproduced on your system in a similar way. *** Here's an example of my THX 1138 movie DVD: Step 1: Identify media % cdcontrol info Starting track = 1, ending track = 1, TOC size = 18 bytes track start duration block length type - 1 0:02.00 206:28.68 0 929168 data 170 206:30.68 - 929168 - - Step 2: Identify file system % file - /dev/acd0 /dev/stdin: UDF filesystem data (version 1.5) 'THX_1138 ' Step 3: Mount file system and check content % sudo mount -t cd9660 -o ro /dev/acd0 /mnt % ls -R /mnt audio_ts/ video_ts/ /mnt/audio_ts: /mnt/video_ts: video_ts.bup* vts_01_1.vob* vts_02_0.bup* vts_03_0.vob* vts_05_0.bup* video_ts.ifo* vts_01_2.vob* vts_02_0.ifo* vts_03_1.vob* vts_05_0.ifo* video_ts.vob* vts_01_3.vob* vts_02_0.vob* vts_04_0.bup* vts_05_0.vob* vts_01_0.bup* vts_01_4.vob* vts_02_1.vob* vts_04_0.ifo* vts_05_1.vob* vts_01_0.ifo* vts_01_5.vob* vts_03_0.bup* vts_04_0.vob* vts_01_0.vob* vts_01_6.vob* vts_03_0.ifo* vts_04_1.vob* % sudo umount /mnt Step 4: Play DVD content - ATTENTION - DVD not mounted for that! % mplayer -alang de -aid 129 dvd://2 MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team CPU: Intel(R) Celeron(R) CPU 2.00GHz (Family: 15, Model: 2, Stepping:9) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. Playing dvd://2. There are 21 titles on this DVD. There are 50 chapters in this DVD title. There are 1 angles in this DVD title. audio stream: 0 format: ac3 (5.1) language: en aid: 128. audio stream: 1 format: ac3 (5.1) language: de aid: 129. audio stream: 2 format: ac3 (5.1) language: es aid: 130. audio stream: 3 format: ac3 (stereo) language: en aid: 131. audio stream: 4 format: ac3 (5.1) language: en aid: 132. number of audio channels on disk: 5. subtitle ( sid ): 0 language: en subtitle ( sid ): 1 language: de subtitle ( sid ): 2 language: es subtitle ( sid ): 3 language: fr subtitle ( sid ): 4 language: it subtitle ( sid ): 5 language: pt subtitle ( sid ): 6 language: da subtitle ( sid ): 7 language: fi subtitle ( sid ): 8 language: iw subtitle ( sid ): 9 language: is subtitle ( sid ): 10 language: no subtitle ( sid ): 11 language: sv subtitle ( sid ): 12 language: hr subtitle ( sid ): 13 language: cs subtitle ( sid ): 14 language: el subtitle ( sid ): 15 language: pl subtitle ( sid ): 16 language: hu subtitle ( sid ): 17 language: tr subtitle ( sid ): 18 language: sl subtitle ( sid ): 19 language: en subtitle ( sid ): 20 language: de number of subtitles on disk: 21 MPEG-PS file format detected. VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9800.0 kbps (1225.0 kbyte/s) == Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) == == Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform Using MMX optimized resampler AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000-192000) Selected audio codec: [a52] afm: liba52 (AC3-liba52) == AO: [oss] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO: [xv] 720x576 =
Re: can't determine sound card driver to use in /etc/rc.conf
On Thu, Apr 21, 2011 at 07:38, Antonio Olivares olivares14...@gmail.comwrote: So you can exclude media error. Maybe this diagnostic script from my outbox can help you to track down the error. It has been made on 7-STABLE i386 with mplayer-0.99.11_3 - a quite old system. See if the steps described here can be reproduced on your system in a similar way. FreeBSD Questions freebsd-questions@freebsd.org *** Here's an example of my THX 1138 movie DVD: Step 1: Identify media % cdcontrol info Starting track = 1, ending track = 1, TOC size = 18 bytes track start duration block length type - 1 0:02.00 206:28.68 0 929168 data 170 206:30.68 - 929168 - - Step 2: Identify file system % file - /dev/acd0 /dev/stdin: UDF filesystem data (version 1.5) 'THX_1138' Step 3: Mount file system and check content % sudo mount -t cd9660 -o ro /dev/acd0 /mnt % ls -R /mnt audio_ts/ video_ts/ /mnt/audio_ts: /mnt/video_ts: video_ts.bup* vts_01_1.vob* vts_02_0.bup* vts_03_0.vob* vts_05_0.bup* video_ts.ifo* vts_01_2.vob* vts_02_0.ifo* vts_03_1.vob* vts_05_0.ifo* video_ts.vob* vts_01_3.vob* vts_02_0.vob* vts_04_0.bup* vts_05_0.vob* vts_01_0.bup* vts_01_4.vob* vts_02_1.vob* vts_04_0.ifo* vts_05_1.vob* vts_01_0.ifo* vts_01_5.vob* vts_03_0.bup* vts_04_0.vob* vts_01_0.vob* vts_01_6.vob* vts_03_0.ifo* vts_04_1.vob* % sudo umount /mnt Step 4: Play DVD content - ATTENTION - DVD not mounted for that! % mplayer -alang de -aid 129 dvd://2 MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team CPU: Intel(R) Celeron(R) CPU 2.00GHz (Family: 15, Model: 2, Stepping:9) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. Playing dvd://2. There are 21 titles on this DVD. There are 50 chapters in this DVD title. There are 1 angles in this DVD title. audio stream: 0 format: ac3 (5.1) language: en aid: 128. audio stream: 1 format: ac3 (5.1) language: de aid: 129. audio stream: 2 format: ac3 (5.1) language: es aid: 130. audio stream: 3 format: ac3 (stereo) language: en aid: 131. audio stream: 4 format: ac3 (5.1) language: en aid: 132. number of audio channels on disk: 5. subtitle ( sid ): 0 language: en subtitle ( sid ): 1 language: de subtitle ( sid ): 2 language: es subtitle ( sid ): 3 language: fr subtitle ( sid ): 4 language: it subtitle ( sid ): 5 language: pt subtitle ( sid ): 6 language: da subtitle ( sid ): 7 language: fi subtitle ( sid ): 8 language: iw subtitle ( sid ): 9 language: is subtitle ( sid ): 10 language: no subtitle ( sid ): 11 language: sv subtitle ( sid ): 12 language: hr subtitle ( sid ): 13 language: cs subtitle ( sid ): 14 language: el subtitle ( sid ): 15 language: pl subtitle ( sid ): 16 language: hu subtitle ( sid ): 17 language: tr subtitle ( sid ): 18 language: sl subtitle ( sid ): 19 language: en subtitle ( sid ): 20 language: de number of subtitles on disk: 21 MPEG-PS file format detected. VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9800.0 kbps (1225.0 kbyte/s) == Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) == == Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform Using MMX optimized resampler AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000-192000) Selected audio codec: [a52] afm: liba52 (AC3-liba52) == AO: [oss] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... VDec: vo
Re: can't determine sound card driver to use in /etc/rc.conf
On Thu, 21 Apr 2011 07:38:57 -0500, Antonio Olivares olivares14...@gmail.com wrote: Tried to mount the dvd, but sadly the system rebooted and I had to fsck three to 4 times to get the system back :(, I will try to not to mount it, don't want to go through that. This indicates a major problem. Under ANY circumstances, you should be ABLE to mount a DVD. If this causes the system to reboot, find out what's causing this. Maybe a defective drive? Can you check with different drive? Tried to put in another dvd that works on other computers, and I get : [olivares@grulla /usr/home/olivares]$ mplayer dvdnav:// MPlayer SVN-r32577-snapshot-4.2.1 (C) 2000-2010 MPlayer Team Playing dvdnav://. libdvdnav: Using dvdnav version MPlayer-custom libdvdread: Using libdvdcss version 1.2.10 for DVD access libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.IFO. libdvdnav: vm: failed to read VIDEO_TS.IFO Couldn't open DVD device: /dev/acd0 (Input/output error) No stream found to handle url dvdnav:// Exiting... (End of file) [olivares@grulla /usr/home/olivares]$ mplayer dvd:// MPlayer SVN-r32577-snapshot-4.2.1 (C) 2000-2010 MPlayer Team Playing dvd://. libdvdread: Using libdvdcss version 1.2.10 for DVD access libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.BU. Can't open VMG info! No stream found to handle url dvd:// Exiting... (End of file) [olivares@grulla /usr/home/olivares]$ It's the same problem as in your previous description, and I assume that is has nothing to do with codecs. In combination with the inability of mounting DVDs (which should work), there may be a SERIOUS problem hiding in the background. Have you been able to perform the first steps of my checklist, i. e. the cdcontrol and media identification part? I have to blame mplayer or is it FreeBSD? I think it's the hardware - your description of rebooting when trying to mount lets me think into this direction. Try to find out the reason. Work with AS FEW variables as possible, i. e. start with plain simple tests as I mentioned them. If you get THAT done without error, the problem is somewhere else. Another thing: Can you check device permissions for the acd* devices, as well as for cd* and xpt* if you're using ATAPICAM? Just to make sure and MINIMIZE the variables involved in this diagnostic process. The movie is good, it plays on my other FreeBSD box, is something wrong or should I try to go for vlc? Well, VLC isn't bad, although I really prefer mplayer as I'm using it since the earliest days. But I doubt VLC will play without the codecs (that are, as far as I understood, an independent part and port). -- 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: can't determine sound card driver to use in /etc/rc.conf
On Thu, Apr 21, 2011 at 9:55 PM, Polytropon free...@edvax.de wrote: On Thu, 21 Apr 2011 07:38:57 -0500, Antonio Olivares olivares14...@gmail.com wrote: Tried to mount the dvd, but sadly the system rebooted and I had to fsck three to 4 times to get the system back :(, I will try to not to mount it, don't want to go through that. This indicates a major problem. Under ANY circumstances, you should be ABLE to mount a DVD. If this causes the system to reboot, find out what's causing this. Maybe a defective drive? Can you check with different drive? Tried to put in another dvd that works on other computers, and I get : [olivares@grulla /usr/home/olivares]$ mplayer dvdnav:// MPlayer SVN-r32577-snapshot-4.2.1 (C) 2000-2010 MPlayer Team Playing dvdnav://. libdvdnav: Using dvdnav version MPlayer-custom libdvdread: Using libdvdcss version 1.2.10 for DVD access libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.IFO. libdvdnav: vm: failed to read VIDEO_TS.IFO Couldn't open DVD device: /dev/acd0 (Input/output error) No stream found to handle url dvdnav:// Exiting... (End of file) [olivares@grulla /usr/home/olivares]$ mplayer dvd:// MPlayer SVN-r32577-snapshot-4.2.1 (C) 2000-2010 MPlayer Team Playing dvd://. libdvdread: Using libdvdcss version 1.2.10 for DVD access libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.BU. Can't open VMG info! No stream found to handle url dvd:// Exiting... (End of file) [olivares@grulla /usr/home/olivares]$ It's the same problem as in your previous description, and I assume that is has nothing to do with codecs. In combination with the inability of mounting DVDs (which should work), there may be a SERIOUS problem hiding in the background. Have you been able to perform the first steps of my checklist, i. e. the cdcontrol and media identification part? This is on mt TODO list, I was going to try and swap another dvd drive (SATA) which is my suspicion :( I have to blame mplayer or is it FreeBSD? I think it's the hardware - your description of rebooting when trying to mount lets me think into this direction. I'd think I'd have to agree :(, the damn dvd drive, it is new but old IDE does not work as well as SATA. Try to find out the reason. Work with AS FEW variables as possible, i. e. start with plain simple tests as I mentioned them. If you get THAT done without error, the problem is somewhere else. Another thing: Can you check device permissions for the acd* devices, as well as for cd* and xpt* if you're using ATAPICAM? Just to make sure and MINIMIZE the variables involved in this diagnostic process. I have a /etc/devfs.conf file with the following: # Commonly used by many ports linkacd0cdrom linkacd0dvd # Allow all users to access CD’s perm /dev/acd0 0666 perm /dev/acd1 0666 perm /dev/cd0 0666 perm /dev/cd1 0666 # Allow all USB Devices to be mounted perm /dev/da0 0666 perm /dev/da1 0666 perm /dev/da2 0666 perm /dev/da3 0666 perm /dev/da4 0666 # Misc other devices perm /dev/pass0 0666 perm /dev/xpt0 0666 perm /dev/agpart 0666 perm /dev/uscanner0 0666 The movie is good, it plays on my other FreeBSD box, is something wrong or should I try to go for vlc? Well, VLC isn't bad, although I really prefer mplayer as I'm using it since the earliest days. But I doubt VLC will play without the codecs (that are, as far as I understood, an independent part and port). VLC did not play the dvds either, took a while to compile it(for troubleshooting this dvd problem). I like both players just to be honest. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... I have a similar amd64 machine that does play mostly everything in it, but I installed mplayer differently # pkg_add -r mplayer ** had problems with KDE and lib???.so not working and startx refused to work, last time I used ports. But this time everything is working beautifully have installed gkrellm, mplayer, vlc and texmaker fine via ports. I am getting some confidence back. *However* that machine has SATA cables not IDE like this one, this is my take on the issue. If i install/try a SATA dvd drive, it will work* Thanks for helping/advising. Regards, Antonio ___ 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: can't determine sound card driver to use in /etc/rc.conf
On Thu, 21 Apr 2011 23:02:27 -0500, Antonio Olivares olivares14...@gmail.com wrote: This is on mt TODO list, I was going to try and swap another dvd drive (SATA) which is my suspicion :( Cross-testing would always be good - especially as you've mentioned an impossible behaviour, i. e. mounting a DVD causes a system reboot. I'd think I'd have to agree :(, the damn dvd drive, it is new but old IDE does not work as well as SATA. I can't confirm that. In my machine which is more than 7 years old now, I'm using (P)ATA / ATAPI stuff only (because it doesn't have any SATA inside), and it keeps working as intended. Still it may be possible that modern hardware doesn't play that good anymore. :-) If possible, just try a different DVD drive, as you've eleminated the reason bad DVD already. I have a /etc/devfs.conf file with the following: # Commonly used by many ports linkacd0cdrom linkacd0dvd # Allow all users to access CD’s perm /dev/acd0 0666 perm /dev/acd1 0666 perm /dev/cd0 0666 perm /dev/cd1 0666 # Allow all USB Devices to be mounted perm /dev/da0 0666 perm /dev/da1 0666 perm /dev/da2 0666 perm /dev/da3 0666 perm /dev/da4 0666 # Misc other devices perm /dev/pass0 0666 perm /dev/xpt0 0666 perm /dev/agpart 0666 perm /dev/uscanner0 0666 Fully okay. So the reason wrong permissions is also out of scope now. VLC did not play the dvds either, took a while to compile it(for troubleshooting this dvd problem). I like both players just to be honest. I really think it's the drive. Also make sure that the codecs are installed. If you're on x64, try to use the COMPAT32 facility. As I'm not owning x64 at home, I sadly can't be more specific about this idea. I have a similar amd64 machine that does play mostly everything in it, but I installed mplayer differently # pkg_add -r mplayer This installs mplayer with the default options which may not be optimal in some situations, especially if it's illegal in one's country to watch DVDs. :-) ** had problems with KDE and lib???.so not working and startx refused to work, last time I used ports. I always use ports for this. Although I'm a big fan of precompiled packages, mplayer and gmencoder are the tools I *insist* on building from source, both with a custom Makefile.local that defines ALL the codecs I want, which is _all_ of them. :-) *However* that machine has SATA cables not IDE like this one, this is my take on the issue. If i install/try a SATA dvd drive, it will work* Really, try a different drive, and if you can, also try different cables, just to make sure it's NOT the cables causing trouble. -- 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: can't determine sound card driver to use in /etc/rc.conf
This MAY be a codec problem. You can try the following: First mount the DVD (cd_9660), then use mplayer on one of the VOB files directly. Choose one of the bigger files for this test, and maybe use mplayer's -v option to get an idea what may be wrong - the program should tell you about this. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... Here's output from shell [olivares@grulla ~]$ mplayer dvd://1 MPlayer SVN-r32577-snapshot-4.2.1 (C) 2000-2010 MPlayer Team Playing dvd://1. libdvdread: Using libdvdcss version 1.2.10 for DVD access libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.BU. Can't open VMG info! No stream found to handle url dvd://1 Exiting... (End of file) [olivares@grulla ~]$ I have tried different movies and get similar results :( [olivares@grulla ~]$ uname -a FreeBSD grulla 8.2-RELEASE-p0 FreeBSD 8.2-RELEASE-p0 #0: Sat Apr 2 15:06:58 UTC 2011 r...@hybrid.freebsdgr.org:/usr/obj/usr/src/sys/GENERIC amd64 [olivares@grulla ~]$ uname -m amd64 Regards, Antonio ___ 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: can't determine sound card driver to use in /etc/rc.conf
On Mon, Apr 18, 2011 at 9:32 PM, Polytropon free...@edvax.de wrote: On Mon, 18 Apr 2011 20:53:41 -0500, Antonio Olivares olivares14...@gmail.com wrote: Apparently it works, but I put in some small speakers, but could not get music to play. On some machines, speakers do not activate automatically, they need a driver that switches the connector to active. Also check mixer settings. ALWAYS check them. :-) Installed mplayer from within ports, # cd /usr/ports/multimedia/mplayer # make install clean and tried to play some mp3's and got a codec error :(, since machine is 64 bit installing codecs from mplayer site does not work :(, and linux compatibility is not installed. Use command line tools like madplay or mpg123 for testing. Also consider using xmms as a versatile MP3 (and OGG/Vorbis) media player. Mplayer played some ogg files that I had correctly and sound is working :) snd_hda did the trick :) Sorry for drifting out of original sound problem, but I also tried to play a dvd and it failed to load since atapi cam was not in /boot/loader.conf because cd/dvd drive is old style(not SATA) This is now working correctly :), added the command in /boot/loader.conf That doesn't matter. I have parallel ATA devices here that play nicely with ATAPICAM (mainly in use for CD and DVD recording). But you shouldn't need to have ATAPICAM in order to play DVDs. I know that mplayer has a configuration option for that... maybe it's sufficient to link /dev/acd0 to /dev/dvd link exists /dev/dvd - /dev/acd0 but dvd does not play :( (per /etc/devfs.conf) to provide the default location, or use -dvd-device dev to name it on the command line. Also make sure you have the required codecs installed. Since the machine is 64 bit having the codecs does no good :(, I ran the configuration and tried to install Realplayer which tried to pull linux compatibility which I did not want and reran config. Going through make config in mplayer (or mencoder) is always a good choice. However, playing dvd's does not seem to work :( I try to run $ mplayer dvd://1 -dvd-device /dev/acd0 and it complains about not finding some vob Sorry for not posting exact error will do so tomorrow as soon as I can. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... Thanks to all folks who have advised me. I am close to setting up the system to my liking. Regards, Antonio ___ 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: can't determine sound card driver to use in /etc/rc.conf
On Tue, 19 Apr 2011 20:31:23 -0500, Antonio Olivares olivares14...@gmail.com wrote: (per /etc/devfs.conf) to provide the default location, or use -dvd-device dev to name it on the command line. Also make sure you have the required codecs installed. Since the machine is 64 bit having the codecs does no good :(, I ran the configuration and tried to install Realplayer which tried to pull linux compatibility which I did not want and reran config. You can try to use the 32 bit compatibility (COMPAT32) and then run the 32 bit version of mplayer. As I do not own a 64 bit system, I can't be more specific. Going through make config in mplayer (or mencoder) is always a good choice. However, playing dvd's does not seem to work :( I try to run $ mplayer dvd://1 -dvd-device /dev/acd0 and it complains about not finding some vob Sorry for not posting exact error will do so tomorrow as soon as I can. This MAY be a codec problem. You can try the following: First mount the DVD (cd_9660), then use mplayer on one of the VOB files directly. Choose one of the bigger files for this test, and maybe use mplayer's -v option to get an idea what may be wrong - the program should tell you about this. -- 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
can't determine sound card driver to use in /etc/rc.conf
Dear folks, On a new machine running AMD-64 XFCE custom by Manolis, I can't determine which sound driver to use for the sound card: grulla# kldload snd_driver grulla# cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: HDA VIA VT1708B_1 PCM #0 Analog (play/rec) default pcm1: HDA VIA VT1708B_1 PCM #1 Analog (play) pcm2: HDA VIA VT1708B_1 PCM #2 Digital (play) grulla# pciconf -l none0@pci0:0:0:0: class=0x05 card=0xcb8410de chip=0x03ea10de rev=0xa1 hdr=0x00 isab0@pci0:0:1:0: class=0x060100 card=0x34071565 chip=0x03e010de rev=0xa2 hdr=0x00 none1@pci0:0:1:1: class=0x0c0500 card=0x34071565 chip=0x03eb10de rev=0xa2 hdr=0x00 none2@pci0:0:1:2: class=0x05 card=0x34071565 chip=0x03f510de rev=0xa2 hdr=0x00 ohci0@pci0:0:2:0: class=0x0c0310 card=0x34071565 chip=0x03f110de rev=0xa3 hdr=0x00 ehci0@pci0:0:2:1: class=0x0c0320 card=0x34071565 chip=0x03f210de rev=0xa3 hdr=0x00 pcib1@pci0:0:4:0: class=0x060401 card=0xcb8410de chip=0x03f310de rev=0xa1 hdr=0x01 hdac0@pci0:0:5:0: class=0x040300 card=0x81081565 chip=0x03f010de rev=0xa2 hdr=0x00 atapci0@pci0:0:6:0: class=0x01018a card=0x34071565 chip=0x03ec10de rev=0xa2 hdr=0x00 nfe0@pci0:0:7:0:class=0x068000 card=0x25051565 chip=0x03ef10de rev=0xa2 hdr=0x00 atapci1@pci0:0:8:0: class=0x010185 card=0x54051565 chip=0x03f610de rev=0xa2 hdr=0x00 pcib2@pci0:0:9:0: class=0x060400 card=0x10de chip=0x03e810de rev=0xa2 hdr=0x01 pcib3@pci0:0:11:0: class=0x060400 card=0x10de chip=0x03e910de rev=0xa2 hdr=0x01 pcib4@pci0:0:12:0: class=0x060400 card=0x10de chip=0x03e910de rev=0xa2 hdr=0x01 vgapci0@pci0:0:13:0:class=0x03 card=0x14051565 chip=0x03d010de rev=0xa2 hdr=0x00 hostb0@pci0:0:24:0: class=0x06 card=0x chip=0x12001022 rev=0x00 hdr=0x00 hostb1@pci0:0:24:1: class=0x06 card=0x chip=0x12011022 rev=0x00 hdr=0x00 hostb2@pci0:0:24:2: class=0x06 card=0x chip=0x12021022 rev=0x00 hdr=0x00 hostb3@pci0:0:24:3: class=0x06 card=0x chip=0x12031022 rev=0x00 hdr=0x00 hostb4@pci0:0:24:4: class=0x06 card=0x chip=0x12041022 rev=0x00 hdr=0x00 ral0@pci0:1:6:0:class=0x028000 card=0x25611814 chip=0x03011814 rev=0x00 hdr=0x00 mixer gives me the following: grulla# mixer Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer rec is currently set to 75:75 Mixer igainis currently set to 0:0 Mixer ogainis currently set to 50:50 Mixer monitor is currently set to 75:75 Recording source: mic Thanks for your help/advice. Regards, Antonio ___ 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: can't determine sound card driver to use in /etc/rc.conf
On Mon, 2011-04-18 at 08:40 -0500, Antonio Olivares wrote: Dear folks, On a new machine running AMD-64 XFCE custom by Manolis, I can't determine which sound driver to use for the sound card: grulla# kldload snd_driver grulla# cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: HDA VIA VT1708B_1 PCM #0 Analog (play/rec) default pcm1: HDA VIA VT1708B_1 PCM #1 Analog (play) pcm2: HDA VIA VT1708B_1 PCM #2 Digital (play) grulla# pciconf -l none0@pci0:0:0:0: class=0x05 card=0xcb8410de chip=0x03ea10de rev=0xa1 hdr=0x00 isab0@pci0:0:1:0: class=0x060100 card=0x34071565 chip=0x03e010de rev=0xa2 hdr=0x00 none1@pci0:0:1:1: class=0x0c0500 card=0x34071565 chip=0x03eb10de rev=0xa2 hdr=0x00 none2@pci0:0:1:2: class=0x05 card=0x34071565 chip=0x03f510de rev=0xa2 hdr=0x00 ohci0@pci0:0:2:0: class=0x0c0310 card=0x34071565 chip=0x03f110de rev=0xa3 hdr=0x00 ehci0@pci0:0:2:1: class=0x0c0320 card=0x34071565 chip=0x03f210de rev=0xa3 hdr=0x00 pcib1@pci0:0:4:0: class=0x060401 card=0xcb8410de chip=0x03f310de rev=0xa1 hdr=0x01 hdac0@pci0:0:5:0: class=0x040300 card=0x81081565 chip=0x03f010de rev=0xa2 hdr=0x00 atapci0@pci0:0:6:0: class=0x01018a card=0x34071565 chip=0x03ec10de rev=0xa2 hdr=0x00 nfe0@pci0:0:7:0: class=0x068000 card=0x25051565 chip=0x03ef10de rev=0xa2 hdr=0x00 atapci1@pci0:0:8:0: class=0x010185 card=0x54051565 chip=0x03f610de rev=0xa2 hdr=0x00 pcib2@pci0:0:9:0: class=0x060400 card=0x10de chip=0x03e810de rev=0xa2 hdr=0x01 pcib3@pci0:0:11:0:class=0x060400 card=0x10de chip=0x03e910de rev=0xa2 hdr=0x01 pcib4@pci0:0:12:0:class=0x060400 card=0x10de chip=0x03e910de rev=0xa2 hdr=0x01 vgapci0@pci0:0:13:0: class=0x03 card=0x14051565 chip=0x03d010de rev=0xa2 hdr=0x00 hostb0@pci0:0:24:0: class=0x06 card=0x chip=0x12001022 rev=0x00 hdr=0x00 hostb1@pci0:0:24:1: class=0x06 card=0x chip=0x12011022 rev=0x00 hdr=0x00 hostb2@pci0:0:24:2: class=0x06 card=0x chip=0x12021022 rev=0x00 hdr=0x00 hostb3@pci0:0:24:3: class=0x06 card=0x chip=0x12031022 rev=0x00 hdr=0x00 hostb4@pci0:0:24:4: class=0x06 card=0x chip=0x12041022 rev=0x00 hdr=0x00 ral0@pci0:1:6:0: class=0x028000 card=0x25611814 chip=0x03011814 rev=0x00 hdr=0x00 mixer gives me the following: grulla# mixer Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer rec is currently set to 75:75 Mixer igainis currently set to 0:0 Mixer ogainis currently set to 50:50 Mixer monitor is currently set to 75:75 Recording source: mic Thanks for your help/advice. Regards, Antonio ___ 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 Hi Antonio Think you'll find it's a hda device... add snd_hda_load=YES to /boot/loader.conf and it should be loaded next time you boot the machine. If your not getting any sound, you might have to change the hw.snd.default_auto sysctl to match your other inputs. Regards Craig B ___ 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: can't determine sound card driver to use in /etc/rc.conf
On Mon, Apr 18, 2011 at 9:32 AM, Craig Butler craig...@lerwick.hopto.org wrote: On Mon, 2011-04-18 at 08:40 -0500, Antonio Olivares wrote: Dear folks, On a new machine running AMD-64 XFCE custom by Manolis, I can't determine which sound driver to use for the sound card: grulla# kldload snd_driver grulla# cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: HDA VIA VT1708B_1 PCM #0 Analog (play/rec) default pcm1: HDA VIA VT1708B_1 PCM #1 Analog (play) pcm2: HDA VIA VT1708B_1 PCM #2 Digital (play) grulla# pciconf -l none0@pci0:0:0:0: class=0x05 card=0xcb8410de chip=0x03ea10de rev=0xa1 hdr=0x00 isab0@pci0:0:1:0: class=0x060100 card=0x34071565 chip=0x03e010de rev=0xa2 hdr=0x00 none1@pci0:0:1:1: class=0x0c0500 card=0x34071565 chip=0x03eb10de rev=0xa2 hdr=0x00 none2@pci0:0:1:2: class=0x05 card=0x34071565 chip=0x03f510de rev=0xa2 hdr=0x00 ohci0@pci0:0:2:0: class=0x0c0310 card=0x34071565 chip=0x03f110de rev=0xa3 hdr=0x00 ehci0@pci0:0:2:1: class=0x0c0320 card=0x34071565 chip=0x03f210de rev=0xa3 hdr=0x00 pcib1@pci0:0:4:0: class=0x060401 card=0xcb8410de chip=0x03f310de rev=0xa1 hdr=0x01 hdac0@pci0:0:5:0: class=0x040300 card=0x81081565 chip=0x03f010de rev=0xa2 hdr=0x00 atapci0@pci0:0:6:0: class=0x01018a card=0x34071565 chip=0x03ec10de rev=0xa2 hdr=0x00 nfe0@pci0:0:7:0: class=0x068000 card=0x25051565 chip=0x03ef10de rev=0xa2 hdr=0x00 atapci1@pci0:0:8:0: class=0x010185 card=0x54051565 chip=0x03f610de rev=0xa2 hdr=0x00 pcib2@pci0:0:9:0: class=0x060400 card=0x10de chip=0x03e810de rev=0xa2 hdr=0x01 pcib3@pci0:0:11:0: class=0x060400 card=0x10de chip=0x03e910de rev=0xa2 hdr=0x01 pcib4@pci0:0:12:0: class=0x060400 card=0x10de chip=0x03e910de rev=0xa2 hdr=0x01 vgapci0@pci0:0:13:0: class=0x03 card=0x14051565 chip=0x03d010de rev=0xa2 hdr=0x00 hostb0@pci0:0:24:0: class=0x06 card=0x chip=0x12001022 rev=0x00 hdr=0x00 hostb1@pci0:0:24:1: class=0x06 card=0x chip=0x12011022 rev=0x00 hdr=0x00 hostb2@pci0:0:24:2: class=0x06 card=0x chip=0x12021022 rev=0x00 hdr=0x00 hostb3@pci0:0:24:3: class=0x06 card=0x chip=0x12031022 rev=0x00 hdr=0x00 hostb4@pci0:0:24:4: class=0x06 card=0x chip=0x12041022 rev=0x00 hdr=0x00 ral0@pci0:1:6:0: class=0x028000 card=0x25611814 chip=0x03011814 rev=0x00 hdr=0x00 mixer gives me the following: grulla# mixer Mixer vol is currently set to 75:75 Mixer pcm is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer rec is currently set to 75:75 Mixer igain is currently set to 0:0 Mixer ogain is currently set to 50:50 Mixer monitor is currently set to 75:75 Recording source: mic Thanks for your help/advice. Regards, Antonio Hi Antonio Think you'll find it's a hda device... add snd_hda_load=YES to /boot/loader.conf and it should be loaded next time you boot the machine. If your not getting any sound, you might have to change the hw.snd.default_auto sysctl to match your other inputs. Regards Craig B Thanks Craig, Apparently it works, but I put in some small speakers, but could not get music to play. Installed mplayer from within ports, # cd /usr/ports/multimedia/mplayer # make install clean and tried to play some mp3's and got a codec error :(, since machine is 64 bit installing codecs from mplayer site does not work :(, and linux compatibility is not installed. Sorry for drifting out of original sound problem, but I also tried to play a dvd and it failed to load since atapi cam was not in /boot/loader.conf because cd/dvd drive is old style(not SATA) 18.6.9 Using the ATAPI/CAM Driver Contributed by Marc Fonvieille. This driver allows ATAPI devices (CD-ROM, CD-RW, DVD drives etc...) to be accessed through the SCSI subsystem, and so allows the use of applications like sysutils/cdrdao or cdrecord(1). To use this driver, you will need to add the following line to the /boot/loader.conf file: NEEDED to add atapicam_load=YES to /boot/loader.conf http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html have added this to machine and will check tomorrow to see if sound is output by machine. Thanks for helping/advising. Regards, Antonio ___ 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: can't determine sound card driver to use in /etc/rc.conf
On Mon, 18 Apr 2011 20:53:41 -0500, Antonio Olivares olivares14...@gmail.com wrote: Apparently it works, but I put in some small speakers, but could not get music to play. On some machines, speakers do not activate automatically, they need a driver that switches the connector to active. Also check mixer settings. ALWAYS check them. :-) Installed mplayer from within ports, # cd /usr/ports/multimedia/mplayer # make install clean and tried to play some mp3's and got a codec error :(, since machine is 64 bit installing codecs from mplayer site does not work :(, and linux compatibility is not installed. Use command line tools like madplay or mpg123 for testing. Also consider using xmms as a versatile MP3 (and OGG/Vorbis) media player. Sorry for drifting out of original sound problem, but I also tried to play a dvd and it failed to load since atapi cam was not in /boot/loader.conf because cd/dvd drive is old style(not SATA) That doesn't matter. I have parallel ATA devices here that play nicely with ATAPICAM (mainly in use for CD and DVD recording). But you shouldn't need to have ATAPICAM in order to play DVDs. I know that mplayer has a configuration option for that... maybe it's sufficient to link /dev/acd0 to /dev/dvd (per /etc/devfs.conf) to provide the default location, or use -dvd-device dev to name it on the command line. Also make sure you have the required codecs installed. Going through make config in mplayer (or mencoder) is always a good choice. -- 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
Hierachical jails devfs and rc.conf
Hi all, in FreeBSD 8.2-RELEASE it does not seem to be possible to pass children.max=X to a jail via rc.conf. What would be the best way of doing this? The next issue is what kind of security review/testing is needed to declare nullfs jailsafe but for now I can still bind my paths. My biggest problem right now is the devfs. Is it possible to have /dev statically populated and have it work inside a jail? E.g. an attempt to create /dev/null and have it available to the jail is failing, I was cheating and binding (via nullfs) a /dev from another jail and it started but I am having difficulties when building things from the ports tree and it seems to be /dev related. So really quick question. Is there a way to statically populate the dev tree with the minimum of needed descriptors? A first try with mknod /jail/dev/null c 0... did not seem to work. regards holger ___ 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: Hierachical jails devfs and rc.conf
On Mon, Mar 28, 2011 at 10:14 AM, Holger Freyther hol...@freyther.dewrote: So really quick question. Is there a way to statically populate the dev tree with the minimum of needed descriptors? A first try with mknod /jail/dev/null c 0... did not seem to work. http://www.freebsd.org/doc/handbook/jails-build.html -- Adam Vande More ___ 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: Hierachical jails devfs and rc.conf
On 03/28/2011 07:06 PM, Adam Vande More wrote: On Mon, Mar 28, 2011 at 10:14 AM, Holger Freyther hol...@freyther.de mailto:hol...@freyther.de wrote: So really quick question. Is there a way to statically populate the dev tree with the minimum of needed descriptors? A first try with mknod /jail/dev/null c 0... did not seem to work. http://www.freebsd.org/doc/handbook/jails-build.html The question is about hierarchical jails. Having jail_NAME_devfs_enable=YES inside a jail is not working as devfs is not a jail friendly fs. So I mount devfs as part of the /etc/fstab.MYJAIL on 'root' but then by default the whole devfs will be visible to child jails. So my two questions are really: - In rc.conf is there a variable I can use to pass children.max=N to one of the jails? - Is there a way to have a 'default' devfs rule for certain mountpoints? E.g. can a rule be applied at mount time? ___ 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
webcamd vs rc.conf
I have enable_webcamd=YES in rc.conf If I comment it out, it complains, and in, it complains. None of these are going into any log file. They do not get reported by a subsequent invocation of dmesg. ___ 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: webcamd vs rc.conf
I think you're backwards. I think it should be: webcamd_enable=YES What happens when you use that? -- Ryan On Mar 28, 2011, at 6:18 PM, Steven Friedrich wrote: I have enable_webcamd=YES in rc.conf If I comment it out, it complains, and in, it complains. None of these are going into any log file. They do not get reported by a subsequent invocation of dmesg. ___ 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 ___ 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: webcamd vs rc.conf
It was just a typo. I had been using this for awhile, and recent changes made it act weird. It didn't act weird under 8.1. ___ 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: why do I require WPA in rc.conf even for open networks.
I use WPA and have no urge to run tests for someone else on this right now, but are you sure something like ifconfig_wlan0=ssid ForteanJungle wepmode mixed wepkey 8675309 DHCP doesn't work at all these days? I had ifconfig_wlan0=ssid MySSID DHCP and attempted to connect to an OPEN network without being able to do so. When I added ifconfig_wlan0=ssid MySSID WPA DHCP I was able to connect to the same network. -- Eitan Adler ___ 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: why do I require WPA in rc.conf even for open networks.
On 22 July 2010 22:03, Eitan Adler li...@eitanadler.com wrote: For some reason I can not connect to *any* wireless network regardless of the connection type unless I have WPA in /etc/rc.conf right before DHCP. Why would I require this to connect to open networks? -- Eitan Adler ___ 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 I use WPA and have no urge to run tests for someone else on this right now, but are you sure something like ifconfig_wlan0=ssid ForteanJungle wepmode mixed wepkey 8675309 DHCP doesn't work at all these days? -- -- ___ 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: why do I require WPA in rc.conf even for open networks.
On 23 July 2010 03:03, Eitan Adler li...@eitanadler.com wrote: For some reason I can not connect to *any* wireless network regardless of the connection type unless I have WPA in /etc/rc.conf right before DHCP. Why would I require this to connect to open networks? -- Eitan Adler WPA means that wpa_supplicant is used, which can connect to any type of network, not just WPA. I suggest you read the man page at man 8 wpa_supplicant Chris ___ 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
why do I require WPA in rc.conf even for open networks.
For some reason I can not connect to *any* wireless network regardless of the connection type unless I have WPA in /etc/rc.conf right before DHCP. Why would I require this to connect to open networks? -- Eitan Adler ___ 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
cron_flags in jails rc.conf
I found this statement in the rc.conf file of a jail. cron_flags=$cron_flags -J 15 I checked the cron manpage and found info on this. The -J 15 is the range cron is to sleep before launching the cron jobs for the superuser. The -j option does the same thing for non-superuser jobs. Looking at the system's /etc/crontab file are those superuser jobs? Also is the above rc.conf statement coded correctly? ___ 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: cron_flags in jails rc.conf
On Mon, Jul 12, 2010 at 10:22 PM, Fbsd8 fb...@a1poweruser.com wrote: I found this statement in the rc.conf file of a jail. cron_flags=$cron_flags -J 15 I checked the cron manpage and found info on this. The -J 15 is the range cron is to sleep before launching the cron jobs for the superuser. The -j option does the same thing for non-superuser jobs. Looking at the system's /etc/crontab file are those superuser jobs? Yes Also is the above rc.conf statement coded correctly? can't to say without seeing what $cron_flags was set to, but mostly likely yes. -- Adam Vande More ___ 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: rc.conf: gnome_enable=YES - which instructions executed?
On Wed, 30 Jun 2010 21:10:41 -0700 (PDT), Chris Stankevitz chrisstankev...@yahoo.com wrote: My rc.conf file has this entry: gnome_enable=YES Q: Where on my hard drive can I find the instructions executed to enable GNOME? A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist] gnome_enable is a 'default' option that enables some services that make GNOME desktop experience a bit more useful pleasurable. You can see which services default to YES by running: keram...@kobe:/home/keramida$ cd /usr/local/etc/rc.d keram...@kobe:/usr/local/etc/rc.d$ fgrep -l gnome_enable * avahi-daemon avahi-dnsconfd dbus gdm hald keram...@kobe:/usr/local/etc/rc.d$ ___ 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: rc.conf: gnome_enable=YES - which instructions executed?
Date: Wed, 30 Jun 2010 21:10:41 -0700 (PDT) From: Chris Stankevitz chrisstankev...@yahoo.com Subject: rc.conf: gnome_enable=YES - which instructions executed? My rc.conf file has this entry: gnome_enable=YES Q: Where on my hard drive can I find the instructions executed to enable GNOME? A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist] rc.conf is sourced by -every- script in the rc.d directory. cd /etc/rc.d grep gnome_enable * should give some hints. ___ 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: rc.conf: gnome_enable=YES - which instructions executed?
On Wed, 30 Jun 2010 22:03:04 -0700 (PDT) Chris Stankevitz chrisstankev...@yahoo.com wrote: I would like to learn more about how rc operates. I want to know where on the hard drive the instructions are located that activate when I say gnome_enable=YES. I naively thought I would find a file called /usr/local/etc/rc.d/gnome -- but I did not. Something more complicated is going on. So my question is -- how is this working? Normally it works they way you thought it did - this is special case. Mostly *_enable variables are defaulted to NO, but those five scripts set their default from gnome_enable, which in turn is defaulted to NO. By setting gnome_enable=YES you can start all the daemons that Gnome needs without having to know which they are, and without having to keep track of them as Gnome is upgraded. And you can still turn-off things you don't want e.g.: gnome_enable=YES gdm_enable=NO ___ 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
rc.conf: gnome_enable=YES - which instructions executed?
My rc.conf file has this entry: gnome_enable=YES Q: Where on my hard drive can I find the instructions executed to enable GNOME? A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist] Thank you, Chris ___ 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: rc.conf: gnome_enable=YES - which instructions executed?
In the last episode (Jun 30), Chris Stankevitz said: My rc.conf file has this entry: gnome_enable=YES Q: Where on my hard drive can I find the instructions executed to enable GNOME? A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist] Thank you, Try: grep name=.*gnome /usr/local/etc/rc.d/* Most rc scripts are named the same as their rc.subr enable_* variables, but they don't have to be. If no rc.d scripts have name=gnome in them, then your gnome_enable line doesn't do a thing. Maybe you had installed a port at some point in the past that required it, but the port has been uninstalled since then? -- Dan Nelson dnel...@allantgroup.com ___ 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: rc.conf: gnome_enable=YES - which instructions executed?
On Wed, Jun 30, 2010 at 9:10 PM, Chris Stankevitz chrisstankev...@yahoo.com wrote: My rc.conf file has this entry: gnome_enable=YES Q: Where on my hard drive can I find the instructions executed to enable GNOME? This enables dbus, avahi, hal, and gdm (assuming that they are installed, of course). See the files for those things in /usr/local/etc/rc.d for the details of what is run. See: http://www.freebsd.org/gnome/docs/faq2.html#full-gnome -- Rob Farmer A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist] Thank you, Chris ___ 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 ___ 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: rc.conf: gnome_enable=YES - which instructions executed?
From: Dan Nelson dnel...@allantgroup.com Q: Where on my hard drive can I find the instructions executed to enable GNOME? Try: grep name=.*gnome /usr/local/etc/rc.d/* Thank you. This command returns nothing, but it got me looking in the right place. There are multiple references to gnome_enable within files in this directory: /usr/local/etc/rc.d/ The references appear like so: grep gnome /usr/local/etc/rc.d/* hald:. /usr/local/etc/gnome.subr hald:hald_enable=${hald_enable-${gnome_enable}} Thank you, Chris ___ 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: rc.conf: gnome_enable=YES - which instructions executed?
From: Rob Farmer rfar...@predatorlabs.net Q: Where on my hard drive can I find the instructions executed to enable GNOME? This enables dbus, avahi, hal, and gdm (assuming that they are installed, of course). See the files for those things in /usr/local/etc/rc.d for the details of what is run. See: http://www.freebsd.org/gnome/docs/faq2.html#full-gnome Rob, Thank you for your response. I also saw that comment in the docs; however, I am actually not interested in knowing what gnome_enable=YES does. I should have been more clear. I would like to learn more about how rc operates. I want to know where on the hard drive the instructions are located that activate when I say gnome_enable=YES. I naively thought I would find a file called /usr/local/etc/rc.d/gnome -- but I did not. Something more complicated is going on. So my question is -- how is this working? Thank you, Chris ___ 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: rc.conf: gnome_enable=YES - which instructions executed?
Chris Stankevitz wrote: From: Rob Farmer rfar...@predatorlabs.net Q: Where on my hard drive can I find the instructions executed to enable GNOME? This enables dbus, avahi, hal, and gdm (assuming that they are installed, of course). See the files for those things in /usr/local/etc/rc.d for the details of what is run. See: http://www.freebsd.org/gnome/docs/faq2.html#full-gnome Rob, Thank you for your response. I also saw that comment in the docs; however, I am actually not interested in knowing what gnome_enable=YES does. I should have been more clear. I would like to learn more about how rc operates. I want to know where on the hard drive the instructions are located that activate when I say gnome_enable=YES. I naively thought I would find a file called /usr/local/etc/rc.d/gnome -- but I did not. Something more complicated is going on. So my question is -- how is this working? Thank you, Err, Magic? More seriously, `man rc` and several hours of cross-references (rc.subr., rc.conf., rc.local, etc. etc.) might be enlightening. HTH, Kevin Kinsey ___ 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
newsyslog not reading /ect/rc.conf arguments?
Greetings again. Running FreeBSD 8.0, I have added the following to /etc/rc.conf: newsyslog_flags=-a /usr/old-log/ I have stopped and started newsyslog. However, the rotated logs are still being written into /var/log. No errors appear in /var/log/messages or in dmesg. Any clues? --Paul Hoffman ___ 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: newsyslog not reading /ect/rc.conf arguments?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Hoffman wrote: Greetings again. Running FreeBSD 8.0, I have added the following to /etc/rc.conf: newsyslog_flags=-a /usr/old-log/ I have stopped and started newsyslog. However, the rotated logs are still being written into /var/log. No errors appear in /var/log/messages or in dmesg. Any clues? --Paul Hoffman Hi Paul, newsyslog is invoked at boot time by the /etc/rc.d/newsyslog script to create missing log files, but after that, it's invoked regularly by cron to do the actual rotations. Check the /etc/crontab file and add your flags there, and you should be all set. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFL4Ys+0sRouByUApARAoYwAJ9VjG0SH6fOmlil+kvJtadlg+VX3QCgl7aq 7be/1LJn4coaeF12O9G49Vc= =0zhA -END PGP SIGNATURE- ___ 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: newsyslog not reading /ect/rc.conf arguments?
On Wed, 5 May 2010 08:01:26 -0700, Paul Hoffman phoff...@proper.com wrote: Greetings again. Running FreeBSD 8.0, I have added the following to /etc/rc.conf: newsyslog_flags=-a /usr/old-log/ I have stopped and started newsyslog. However, the rotated logs are still being written into /var/log. No errors appear in /var/log/messages or in dmesg. How did you start newsyslog? There's an rc.d script that should *read* the flags from rc.conf: /etc/rc.d/newsyslog start ___ 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: newsyslog not reading /ect/rc.conf arguments?
At 6:14 PM +0300 5/5/10, Giorgos Keramidas wrote: How did you start newsyslog? There's an rc.d script that should *read* the flags from rc.conf: /etc/rc.d/newsyslog start Yes, exactly. I did '/etc/rc.d/newsyslog stop', then '/etc/rc.d/newsyslog start'. At 11:14 AM -0400 5/5/10, Greg Larkin wrote: newsyslog is invoked at boot time by the /etc/rc.d/newsyslog script to create missing log files, but after that, it's invoked regularly by cron to do the actual rotations. Check the /etc/crontab file and add your flags there, and you should be all set. Thanks, I see that now. This seems like a broken model: intial boot and later restarts uses arguments from /etc/rc.conf, but the periodic call does not. I don't think we want people modifying /etc/crontab, do we? Shouldn't /etc/crontab be calling '/etc/rc.d/newsyslog restart' instead? --Paul Hoffman ___ 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: newsyslog not reading /ect/rc.conf arguments?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Hoffman wrote: At 6:14 PM +0300 5/5/10, Giorgos Keramidas wrote: How did you start newsyslog? There's an rc.d script that should *read* the flags from rc.conf: /etc/rc.d/newsyslog start Yes, exactly. I did '/etc/rc.d/newsyslog stop', then '/etc/rc.d/newsyslog start'. At 11:14 AM -0400 5/5/10, Greg Larkin wrote: newsyslog is invoked at boot time by the /etc/rc.d/newsyslog script to create missing log files, but after that, it's invoked regularly by cron to do the actual rotations. Check the /etc/crontab file and add your flags there, and you should be all set. Thanks, I see that now. This seems like a broken model: intial boot and later restarts uses arguments from /etc/rc.conf, but the periodic call does not. I don't think we want people modifying /etc/crontab, do we? Shouldn't /etc/crontab be calling '/etc/rc.d/newsyslog restart' instead? --Paul Hoffman Hi Paul, The problem here is that the /etc/rc.d/newsyslog script is used to initialize the system at boot time with missing log files specified by /etc/newsyslog.conf and not do any log rotation. The arguments passed to that invocation of newsyslog are (by default): - -C If specified once, then newsyslog will create any log files which do not exist, and which have the C flag specified in their config file entry. If specified multiple times, then newsyslog will create all log files which do not already exist. If log files are given on the command-line, then the -C or -CC will only apply to those specific log files. - -N Do not perform any rotations. This option is intended to be used with the -C or -CC options when creating log files is the only objective. Because -N is not used under normal circumstances, but should be used at boot time, you would need two different specifications for newsyslog flags in /etc/rc.conf, one for boot time and one for invocation from cron. That would complicate the rc system somewhat, so I would lean toward simply adding your preferred arguments to the crontab file. I modify the system crontab file on my machines, and I don't think there's a big problem doing that. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFL4b4w0sRouByUApARArxgAJ4gvUbJK69ApZ9tr1LNE1fWd20fjgCfc4db qyR2z9wgv53vIAYGQ+2u0HU= =8qby -END PGP SIGNATURE- ___ 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
geli_devices entry in rc.conf
Hi freebsd-questions@, I made some encryption on my USB mass storage, so I wanted to know if we can geli {attach,detach} as user ? Since we can mount devices as user it would be great for geli too. And what about the geli_devices in rc.conf the manpage says it attaches at the boot process, so if the storage disk is not here will the geli attach if I plug it after the boot ? King regards, 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: geli_devices entry in rc.conf
On Tue, Apr 27, 2010 at 12:26:16PM +0200, Demelier David wrote: Hi freebsd-questions@, I made some encryption on my USB mass storage, so I wanted to know if we can geli {attach,detach} as user ? Since we can mount devices as user it would be great for geli too. It seems that GEOM works by calling ioctl on /dev/geom.ctl. Maybe it it possible to get non-root access by changing the permissions on the /dev/geom.ctl device? But that would possibly enable those users to carry out all geom actions, which is probably not a good thing from a security standpoint. And what about the geli_devices in rc.conf the manpage says it attaches at the boot process, so if the storage disk is not here will the geli attach if I plug it after the boot ? No. It just lists and handles the devices available at that time. You might be able to do something with devd? It should be possible to write a script that is to be called via devd once a disk device is available. That script then should prompt the user (e.g. via xdialog) if a geli-encrypted device is found. I'm not sure how to distinguish geli devices from non-geli devices, though. Additionally, even though the disk system in 8.x doesn't panic anymore when one removes a mounted USB drive, I'm not sure how well geli would handle that. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpZuer2hunxg.pgp Description: PGP signature
Re: Setting ucastrate in /etc/rc.conf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/22/10 8:32 PM, Christopher Theodore; RHODES wrote: Hello; $ uname -rs FreeBSD 8.0-RELEASE-p2 I have setup ral0/wlan0 in /etc/rc.conf thusly: wlans_ral0=wlan0 create_args_wlan0=wlanmode sta mcastrate 54 ssid linksys channel 6 ifconfig_wlan0=inet 10.0.0.10 netmask 255.255.255.0 This provides a working interface but ucastrate is not being set and I have to manually set it after I login with: # ifconfig wlan0 ucastrate 54 How can I effectively set ucastrate in rc.conf? is this a typo? mcastrate != ucastrate Have you tried this one create_args_wlan0=wlanmode sta ucastrate 54 ssid linksys channel 6 instead this? create_args_wlan0=wlanmode sta mcastrate 54 ssid linksys channel 6 - -- Adam PAPAI -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJLqMjJAAoJEGq0EWvh5uiI89AIAL/zRdFyBi0ZsF/jZTwN3ndL rMlli/x4W+i9q1F3vjc5jVhMC80xexw2qsionnqqRRooq8ptE40+1WD0o2XKi26v vbcrGJw5Mns/IefwjKUBwVNjnkmbODuUDhRYfSR38e4M3BkikUPgGQoCSUTrOYRt OAAj4n0aaFwzMnh6IuVlmqtrwUR4R8Xbr9rZjFNYNSvajHBnwerOOfSssoZXVsDd 3E874lHIwiNXKbEo00tWzn94dnQQJ6XP5+8vdGj0nHmkP+ZVddY0l3v3jsT/z0uc wwqCkwyy84qLa+i9evUzMtvv/GetK4XFRi9YgxVqknuyFZwG/Ck25vlck79NUgU= =5Fkt -END PGP SIGNATURE- ___ 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: Wireless access point rc.conf syntax in FreeBSD 8?
On 2010-03-21 22:19, Modulok wrote: I have a wireless network card. But I can't configure it. I read in UPDATING that this had to do with some split up of the wireless drivers into software/hardware interfaces? Something to do with me having to clone the interface before I can configure it? There was no mention of this in the handbook wireless section that I saw. Anyway, I want to run it as an access point, not a client. The ral driver supports this, but I'm not sure on the rc.conf synax for creating an access point out of it. Could anyone point to some access-point-like examples? Thanks! -Modulok- ___ 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 What I myself missed when I installed 8.0 was the need for the following line in rc.conf. wlans_iwn0=wlan0 Where iwn0 is the driver for my Intel 5100. You could post your /boot/loader.conf and the lines related networking from your /etc/rc.conf It'll be easier to give you good advise then. /Leslie ___ 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
Setting ucastrate in /etc/rc.conf
Hello; $ uname -rs FreeBSD 8.0-RELEASE-p2 I have setup ral0/wlan0 in /etc/rc.conf thusly: wlans_ral0=wlan0 create_args_wlan0=wlanmode sta mcastrate 54 ssid linksys channel 6 ifconfig_wlan0=inet 10.0.0.10 netmask 255.255.255.0 This provides a working interface but ucastrate is not being set and I have to manually set it after I login with: # ifconfig wlan0 ucastrate 54 How can I effectively set ucastrate in rc.conf? Magnanimously, Christopher Theodore ___ 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
Wireless access point rc.conf syntax in FreeBSD 8?
I have a wireless network card. But I can't configure it. I read in UPDATING that this had to do with some split up of the wireless drivers into software/hardware interfaces? Something to do with me having to clone the interface before I can configure it? There was no mention of this in the handbook wireless section that I saw. Anyway, I want to run it as an access point, not a client. The ral driver supports this, but I'm not sure on the rc.conf synax for creating an access point out of it. Could anyone point to some access-point-like examples? Thanks! -Modulok- ___ 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: /etc/rc.conf and NFS
RW wrote: On Mon, 15 Mar 2010 21:38:39 -0400 Joe Auty j...@netmusician.org wrote: Hello, I have my /usr/local partition hosted on an NFS share which is mounted at boot. Do you have any theories as to why my various services (Apache, Postfix, MySQL) listed in /etc/rc.conf do not start up automatically at boot, and I have to do this manually? When /usr/local is hosted locally these services start up fine on their own at boot time. You probably need to set early_late_divider. rc reads in and orders the scripts in /etc/rc.d before it executes any of them, and this list is fixed. When it reaches $early_late_divider, it creates a new list that includes the local directory obviously /usr/local/etc must be mounted at this point. Bear in mind that a local script that's ordered before early_late_divider is ignored. Cool, I need to learn about this and, from the looks of things, rcorder. I suppose I just want to make sure that the /usr/local startup scripts start last. Thanks for your help! ___ 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 -- Joe Auty, NetMusician NetMusician helps musicians, bands and artists create beautiful, professional, custom designed, career-essential websites that are easy to maintain and to integrate with popular social networks. www.netmusician.org http://www.netmusician.org j...@netmusician.org mailto:j...@netmusician.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
Re: /etc/rc.conf and NFS
Adam Vande More wrote: On Mon, Mar 15, 2010 at 8:38 PM, Joe Auty j...@netmusician.org mailto:j...@netmusician.org wrote: Hello, I have my /usr/local partition hosted on an NFS share which is mounted at boot. Do you have any theories as to why my various services (Apache, Postfix, MySQL) listed in /etc/rc.conf do not start up automatically at boot, and I have to do this manually? When /usr/local is hosted locally these services start up fine on their own at boot time. What does /var/log/messages say? May be that /usr/local isn't available when scripts are called. That's what I'm thinking too... I'll play around the adjusting the startup order and see if that fixes this, thanks! -- Adam Vande More -- Joe Auty, NetMusician NetMusician helps musicians, bands and artists create beautiful, professional, custom designed, career-essential websites that are easy to maintain and to integrate with popular social networks. www.netmusician.org http://www.netmusician.org j...@netmusician.org mailto:j...@netmusician.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
Re: /etc/rc.conf and NFS
On Mon, 15 Mar 2010 21:38:39 -0400 Joe Auty j...@netmusician.org wrote: Hello, I have my /usr/local partition hosted on an NFS share which is mounted at boot. Do you have any theories as to why my various services (Apache, Postfix, MySQL) listed in /etc/rc.conf do not start up automatically at boot, and I have to do this manually? When /usr/local is hosted locally these services start up fine on their own at boot time. You probably need to set early_late_divider. rc reads in and orders the scripts in /etc/rc.d before it executes any of them, and this list is fixed. When it reaches $early_late_divider, it creates a new list that includes the local directory obviously /usr/local/etc must be mounted at this point. Bear in mind that a local script that's ordered before early_late_divider is ignored. ___ 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
wlan0 + hostap + rc.conf
Hi Hackers, From man rc.conf: If a wlans_⟨interface⟩ variable is set, an wlan(4) interface will be created for each item in the list with the wlandev argument set to interface. Further wlan cloning arguments may be passed to the ifconfig(8) create command by setting the create_args_⟨interface⟩ variable. One or more wlan(4) devices must be created for each wireless devices as of FreeBSD 8.0. So, this is my rc.conf ifconfig_sis0=up wlans_ath0=wlan0 create_args_wlan0=wlanmode ap ifconfig_wlan0=ssid nombre channel X mode 11g up cloned_interfaces=bridge0 ifconfig_bridge0=addm wlan0 addm sis0 inet A.B.C.D netmask W.X.Y.Z up However, when I run /etc/rc.d/netif restart, an error says: ifconfig: create: bad value the create command fails and everything related to the AP initialization. When I run the command in the CLI it works fine # ifconfig wlan0 create wlandev ath0 wlanmode ap What could be wrong? Thanks in advance. Alberto Mijares ___ 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: wlan0 + hostap + rc.conf
Dnia wtorek, 16 marca 2010 o 21:50:05 Alberto Mijares napisał(a): ifconfig_sis0=up wlans_ath0=wlan0 create_args_wlan0=wlanmode ap ifconfig_wlan0=ssid nombre channel X mode 11g up cloned_interfaces=bridge0 ifconfig_bridge0=addm wlan0 addm sis0 inet A.B.C.D netmask W.X.Y.Z up However, when I run /etc/rc.d/netif restart, an error says: ifconfig: create: bad value the create command fails and everything related to the AP initialization. When I run the command in the CLI it works fine # ifconfig wlan0 create wlandev ath0 wlanmode ap What could be wrong? Try putting channel and mode definition in create_args_wlan0 not in ifconfig_wlan0. Maciek ___ 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: wlan0 + hostap + rc.conf
On Tue, Mar 16, 2010 at 5:37 PM, Maciej Milewski m...@dat.pl wrote: Dnia wtorek, 16 marca 2010 o 21:50:05 Alberto Mijares napisał(a): ifconfig_sis0=up wlans_ath0=wlan0 create_args_wlan0=wlanmode ap ifconfig_wlan0=ssid nombre channel X mode 11g up cloned_interfaces=bridge0 ifconfig_bridge0=addm wlan0 addm sis0 inet A.B.C.D netmask W.X.Y.Z up However, when I run /etc/rc.d/netif restart, an error says: ifconfig: create: bad value the create command fails and everything related to the AP initialization. When I run the command in the CLI it works fine # ifconfig wlan0 create wlandev ath0 wlanmode ap What could be wrong? Try putting channel and mode definition in create_args_wlan0 not in ifconfig_wlan0. I did, but doesn't work either. ifconfig_sis0=up ifconfig_wlan0=up wlans_ath0=wlan0 create_args_wlan0=wlanmode ap channel x mode 11g ssid kraken2 cloned_interfaces=bridge0 ifconfig_bridge0=addm wlan0 addm sis0 inet netmask up Any other suggestion? Alberto Mijares ___ 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
/etc/rc.conf and NFS
Hello, I have my /usr/local partition hosted on an NFS share which is mounted at boot. Do you have any theories as to why my various services (Apache, Postfix, MySQL) listed in /etc/rc.conf do not start up automatically at boot, and I have to do this manually? When /usr/local is hosted locally these services start up fine on their own at boot time. -- Joe Auty, NetMusician NetMusician helps musicians, bands and artists create beautiful, professional, custom designed, career-essential websites that are easy to maintain and to integrate with popular social networks. www.netmusician.org http://www.netmusician.org j...@netmusician.org mailto:j...@netmusician.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
Re: /etc/rc.conf and NFS
On Mon, Mar 15, 2010 at 8:38 PM, Joe Auty j...@netmusician.org wrote: Hello, I have my /usr/local partition hosted on an NFS share which is mounted at boot. Do you have any theories as to why my various services (Apache, Postfix, MySQL) listed in /etc/rc.conf do not start up automatically at boot, and I have to do this manually? When /usr/local is hosted locally these services start up fine on their own at boot time. What does /var/log/messages say? May be that /usr/local isn't available when scripts are called. -- Adam Vande More ___ 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 can I repair wrong /etc/rc.conf ?
On 9 March 2010 06:10, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: oscar Seo oscar...@gmail.com writes: I'm using FreeBSD 6.4 + windowmaker in IBM notebook. I edited /etc/rc.conf to use LAN other ip address is different from my home address in my school. I got error message from this [ /etc/rc.conf: 131: Syntax error: Unterminated quoted string Enter full pathname of shell or RETURN for /bin/sh: ] so that I returned, I decided to edit /etc/rc.conf using vi. But freebsd didn't find vi, less any other application. I can't modify even if read /etc/rc.conf. fortunately I can use cat so I found my fault sting from /etc/rc.conf but I can't modify any files cause the system changed into read only file system. How can I repair /etc/rc.conf file with fault statements using any editor? Thanks in advanced. Oscar There is an entry in the FreeBSD FAQ titled I made a mistake in rc.conf, or another startup file, and now I cannot edit it because the file system is read-only. What should I do? It's exactly what you need. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/http://be-well.ilk.org/%7Elowell/ ___ 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 try doing a mount -uw / then a mount -a ___ 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 can I repair wrong /etc/rc.conf ?
On Tue, Mar 09, 2010 at 02:45:22PM +0900, oscar Seo wrote: I'm using FreeBSD 6.4 + windowmaker in IBM notebook. I edited /etc/rc.conf to use LAN other ip address is different from my home address in my school. I got error message from this [ /etc/rc.conf: 131: Syntax error: Unterminated quoted string Enter full pathname of shell or RETURN for /bin/sh: ] so that I returned, I decided to edit /etc/rc.conf using vi. But freebsd didn't find vi, less any other application. I can't modify even if read /etc/rc.conf. fortunately I can use cat so I found my fault sting from /etc/rc.conf but I can't modify any files cause the system changed into read only file system. How can I repair /etc/rc.conf file with fault statements using any editor? It is because not all of your filesystems are mounted. Probably you can gett away with just doing fsck -a mount -u mount -a From then you can edit. If it will not run the fsck or the mount -a, then you will have to reboot in to single user mode and do the above. jerry Thanks in advanced. Oscar ___ 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 ___ 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 can I repair wrong /etc/rc.conf ?
I'm using FreeBSD 6.4 + windowmaker in IBM notebook. I edited /etc/rc.conf to use LAN other ip address is different from my home address in my school. I got error message from this [ /etc/rc.conf: 131: Syntax error: Unterminated quoted string Enter full pathname of shell or RETURN for /bin/sh: ] so that I returned, I decided to edit /etc/rc.conf using vi. But freebsd didn't find vi, less any other application. I can't modify even if read /etc/rc.conf. fortunately I can use cat so I found my fault sting from /etc/rc.conf but I can't modify any files cause the system changed into read only file system. How can I repair /etc/rc.conf file with fault statements using any editor? Thanks in advanced. Oscar ___ 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 can I repair wrong /etc/rc.conf ?
On Mon, Mar 8, 2010 at 11:45 PM, oscar Seo oscar...@gmail.com wrote: I'm using FreeBSD 6.4 + windowmaker in IBM notebook. I edited /etc/rc.conf to use LAN other ip address is different from my home address in my school. I got error message from this [ /etc/rc.conf: 131: Syntax error: Unterminated quoted string Enter full pathname of shell or RETURN for /bin/sh: ] so that I returned, I decided to edit /etc/rc.conf using vi. But freebsd didn't find vi, less any other application. I can't modify even if read /etc/rc.conf. fortunately I can use cat so I found my fault sting from /etc/rc.conf but I can't modify any files cause the system changed into read only file system. How can I repair /etc/rc.conf file with fault statements using any editor? Thanks in advanced. Oscar The are multiple ways to do this, easiest is to type in at the sh prompt: mount -a You would then have access to /usr, vi is in /usr/bin/vi -- Adam Vande More ___ 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 can I repair wrong /etc/rc.conf ?
oscar Seo oscar...@gmail.com writes: I'm using FreeBSD 6.4 + windowmaker in IBM notebook. I edited /etc/rc.conf to use LAN other ip address is different from my home address in my school. I got error message from this [ /etc/rc.conf: 131: Syntax error: Unterminated quoted string Enter full pathname of shell or RETURN for /bin/sh: ] so that I returned, I decided to edit /etc/rc.conf using vi. But freebsd didn't find vi, less any other application. I can't modify even if read /etc/rc.conf. fortunately I can use cat so I found my fault sting from /etc/rc.conf but I can't modify any files cause the system changed into read only file system. How can I repair /etc/rc.conf file with fault statements using any editor? Thanks in advanced. Oscar There is an entry in the FreeBSD FAQ titled I made a mistake in rc.conf, or another startup file, and now I cannot edit it because the file system is read-only. What should I do? It's exactly what you need. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ 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 ipv6 rc.conf settings issue
On Sat, Jan 09, 2010 at 10:56:31AM +, Matthew Seaman wrote: Gary Kline wrote: This caught my interest this morning so I set up a commented-out trial in /etc/rc.d for my ipv6 entry; the one I had in my database /etc/namedb/* files blew my connection sky-high recently. Does this seem plausible: # ## ipv6 config # # ipv6_enable=YES # ipv6_defaultrouter=2002:d1b4:d5d2:: # ipv6_default_interface=em0 # ipv6_gateway_enable=YES given that my Adress record is 209.180.213.210 ? tia, gents, So you're using 6to4 tunnelling as described in stf(4)? That's a quite different setup to what has been discussed previously in this thread. I think 6to4 is, if not deprecated, certainly not the normal way of getting IPv6 connectivity nowadays. Generally you'ld get an address space allocation from your ISP, or failing that, a tunnel broker like Hurricane Electric[*]. Anyhow, as stf(4) says, you need to encode your IPv4 address as hex in the 6to4 address -- that looks correct: % perl -e 'map { printf %x\n, $_ } split( /\./, shift );' 209.180.213.210 d1 b4 d5 d2 However 2002:d1b4:d5d2:: is *your* network address, and having it as the default router sounds wrong to me. You need to assign addresses from that range to your hosts -- which you can do automatically by enabling rtadvd(8) on your gateway machine and rtsold(8) on your clients. Also, to use 6to4 you need to create a 'stf0' interface and make that the ipv6_default_interface. Errp! Matthew, you lost me entirely. I *do* want to use IPv6 eventually. I have it sent up, latenly, in my mail and DNS files. I do understand the need to go to v6 in a few years, but it is probably going to take me that long to get mi mind around the workings of the whole set of issues. [[I'm learning new+exciting things about pfSEnse and networking-in-detail while getting X11 running on my new server]] Are there any IPv6-for-Dummies around? The man pages are things you read for reference; or at least that's been my experience! This is all independent of setting up IPv6 related items in your DNS. Get the IPv6 connectivity working first -- use ping6 and traceroute6 with IPv6 numbers to confirm connectivity, and then worry about DNS settings. I'll google around for some insights of things-v6; but you may know what's best. thanks, gary Cheers, Matthew [*] Which is pretty crazy given that the prediction is IPv4 space is going to run out around 2012[+]. All of the major ISPs and NSPs really should be providing IPv6 natively by now. [+] Potential for another IT-feeding-frenzy-panic scenario like the run up to Y2K. Make sure IPv6 is on your CV... -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix ___ 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 ipv6 rc.conf settings issue
Gary Kline wrote: This caught my interest this morning so I set up a commented-out trial in /etc/rc.d for my ipv6 entry; the one I had in my database /etc/namedb/* files blew my connection sky-high recently. Does this seem plausible: # ## ipv6 config # # ipv6_enable=YES # ipv6_defaultrouter=2002:d1b4:d5d2:: # ipv6_default_interface=em0 # ipv6_gateway_enable=YES given that my Adress record is 209.180.213.210 ? tia, gents, So you're using 6to4 tunnelling as described in stf(4)? That's a quite different setup to what has been discussed previously in this thread. I think 6to4 is, if not deprecated, certainly not the normal way of getting IPv6 connectivity nowadays. Generally you'ld get an address space allocation from your ISP, or failing that, a tunnel broker like Hurricane Electric[*]. Anyhow, as stf(4) says, you need to encode your IPv4 address as hex in the 6to4 address -- that looks correct: % perl -e 'map { printf %x\n, $_ } split( /\./, shift );' 209.180.213.210 d1 b4 d5 d2 However 2002:d1b4:d5d2:: is *your* network address, and having it as the default router sounds wrong to me. You need to assign addresses from that range to your hosts -- which you can do automatically by enabling rtadvd(8) on your gateway machine and rtsold(8) on your clients. Also, to use 6to4 you need to create a 'stf0' interface and make that the ipv6_default_interface. This is all independent of setting up IPv6 related items in your DNS. Get the IPv6 connectivity working first -- use ping6 and traceroute6 with IPv6 numbers to confirm connectivity, and then worry about DNS settings. Cheers, Matthew [*] Which is pretty crazy given that the prediction is IPv4 space is going to run out around 2012[+]. All of the major ISPs and NSPs really should be providing IPv6 natively by now. [+] Potential for another IT-feeding-frenzy-panic scenario like the run up to Y2K. Make sure IPv6 is on your CV... -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: FreeBSD ipv6 rc.conf settings issue
I'm having problems with the /etc/rc.conf setup of a ipv6 tunnel on my FreeBSD 7.2-RELEASE-p6 It`s a particular issue on the ipv6_defaultrouter config, it jost does not work... Upon network and routing restart ipv6 is enabled the gif interface are given ip's and everything but the defaultrouter does not. Researching a bit i found some say that gif1 sould work and tried both ipv6_defaultrouter=-interface gif1 and ipv6_defaultrouter=2001:0470:1f0a:d40::1 but no joy... here is the basic comand line config from tunnelbroker.net http://pastebin.ca/1736599 here's the rc.conf defaultrouter=86.122.121.129 gateway_enable=YES hostname=pgn.ro ifconfig_nfe0=inet . [...] ipv6_enable=YES ipv6_network_interfaces=lo0 gif1 ipv6_gateway_enable=YES gif_interfaces=gif1 gifconfig_gif1=86.122.121.171 216.66.80.30 ipv6_ifconfig_gif1=2001:0470:1f0a:d40::2/64 ipv6_defaultrouter=-interface gif1 [...] after that i do a quick network restart http://pastebin.ca/1736601 as ipv6 does not work i use route to add the gateaway : http://pastebin.ca/1736604 Hi Bogdan, This is what I use on FreeBSD 7.2 i386 with HE tunnel: rc.conf: # # IPv6 # ipv6_enable=YES ipv6_gateway_enable=YES cloned_interfaces=gif0 ipv6_network_interfaces=auto ipv6_ifconfig_rl1=2001:470:f8a3:25a::1 prefixlen 64 ipv6_ifconfig_rl2=2001:470:19:25a:3::1 prefixlen 64 ipv6_defaultrouter=2001:470:18:25a::1 ifconfig_gif0=tunnel 219.95.208.53 216.218.221.6 up ipv6_ifconfig_gif0=2001:470:18:25a::2 2001:470:18:25a::1 prefixlen 128 rtadvd_enable=YES rtadvd_interfaces=rl1 rl2 -Darryl ___ 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