Re: rctl within jail
David Demelier wrote: Hello there, I wanted to use rctl within a jail to add more fine grained setting for some users, and default ones to. But it does not seem to work. Is it supported? Do we need to add a special flag to the jail creation? # rctl -a loginclass:default:maxproc:deny=30 rctl: rctl_add_rule: Operation not permitted Regards, David The rctl command is brand new. It does not have a group of users yet, so that is why you have not received any replies to your post. As far as I know you can not issue the "rctl" command from within the running jail. The "rctl" command is issued on the HOST only. You can apply rules to an entire jail if you want to, for example; to limit the amount of memory a jail can use: # rctl -a jail::memoryuse:deny=1G (where is the name of your jail). This would make sure the jail can't use more than (approximately) 1 gigabyte of memory. To enable rctl on the host, you need to compile a custom kernel that contains the following 2 parameters; options RACCT options RCTL I think your rctl command would look like this when issued from the host rctl -a jail::loginclass:default:maxproc:deny=30 ___ 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: initialize msdosfs on memory stick?
Gary Aitken wrote: On 09/12/13 16:26, Polytropon wrote: On Thu, 12 Sep 2013 16:13:11 -0600, Gary Aitken wrote: On 09/12/13 15:51, Polytropon wrote: On Thu, 12 Sep 2013 15:39:26 -0600, Gary Aitken wrote: I can't seem to find how to do this in the handbook or man pages. I need to initialize a usb memory stick with an msdos file system. Is it possible, or do I have to find a windoze system? It is possible. The OS provides the newfs_msdos tool. There is no need to deal with "Windows" for this task. Great, thanks. I checked the newfs manpage but didn't look too carefully when the summary line said "construct a new UFS1/UFS2 file system" That's correct: newfs "refers to newfs_ufs" (which obviously initializes a UFS file system), but there are other newfs_* just as there are corresponding (and more) mount_* commands. See "man newfs_msdos" for more details. I see that; but was surprised newfs didn't see-also newfs_msdosfs. Anyhoo... ugh, I think I just screwed it up, not thinking things through. After doing # newfs_msdos -F 32 -S 4096 /dev/da0 newfs_msdos: trim 62 sectors to adjust to a multiple of 63 /dev/da0: 979584 sectors in 30612 FAT32 clusters (131072 bytes/cluster) BytesPerSec=4096 SecPerClust=32 ResSectors=4 FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=979650 FATsecs=30 RootCluster=2 FSInfo=1 Backup=2 I can't mount it, and there are no partitions: # ls /dev/da0* /dev/da0 # mount -t msdosfs /dev/da0 /mnt/memstick mount_msdosfs: /dev/da0: Invalid argument Normally there is a /dev/da0s1. I suspect I *should* have used /dev/da0s1 in the newfs_msdos cmd. So, attempting to re-establish the partitions: #gpart create -s MBR da0 da0 created # gpart show -l da0 => 63 7837633 da0 MBR (3.8G) 63 7837633 - free - (3.8G) # gpart add -t mbr da0 gpart: Invalid argument now what? Is mbr the wrong kind of partition type? man gpart indicates the MBR scheme requires the GEOM_PART_MBR kernel option; since the create succeeded, I'm assuming this is present? ___ 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" read this how to http://forums.freebsd.org/showthread.php?t=13780 ___ 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: distfiles changed to new path
ill...@gmail.com wrote: On 27 August 2013 20:13, Fbsd8 wrote: I just did a portsnap run that updated the base port system. Now I see a port's distfile going to /var/ports/distfiles instead of /usr/ports/distfiles. Is this a error in the newly updated base port system which contains the default port make environment? Nothing seems to set it like that here. (ports svn r325494 right now on 9.2-RC3) Are you sure you don't have a spurious DISTDIR declaration somewhere? I just installed 9.2-RC3 .iso and the problem went away. I must have shot myself in the foot somehow on my old 9.1-release system. Not worth the effort to look for the cause on my old system. Thanks for verifying location of distfile directory has not changed. ___ 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"
distfiles changed to new path
I just did a portsnap run that updated the base port system. Now I see a port's distfile going to /var/ports/distfiles instead of /usr/ports/distfiles. Is this a error in the newly updated base port system which contains the default port make environment? ___ 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: jail.conf ignoring exec.fib?
Karl Pielorz wrote: --On 14 August 2013 08:58 -0400 Fbsd8 wrote: The jail(8) man page lacks details about how to use exec.fib. It requires either a new kernel (with "options ROUTETABLES=2" or however many you want), or a boot-time setting with "net.fibs=2" in /boot/loader.conf (requiring a reboot). Yup, done that :) setfib 1 route add default 198.192.64.21 creates routing table number 1 with that IP address. In this example exec.fib="1" would be coded. See setfib(8) and setfib(2) for details. Yeah, I do that as well - but 'netstat -r -n' from within the jail shows the systems default routing table. As opposed to 'setfib 1 netstat -r -n' (outside the jail) which shows fib either has no default gateway, or the one I set (which is right). Just within the jail, it only every shows it's using the systems default routing table :( Fib's work fine outside the jail (i.e. I can show them, set differing default gateways) - but no matter what I do, the 'exec.fib=' line in jail.conf seems to be ignored, when the jail is run up - it only ever sees the default routing table :( -Karl What your describing seems that the netstat command issued from within the jail is not "JAIL" aware. Develop another way from the host to verify that jail's 'exec.fib=' parameter is working or not. ___ 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: jail.conf ignoring exec.fib?
Karl Pielorz wrote: I'm running 9.2-RC2 amd64 on a system, with a number of jails. The jails are setup using '/etc/jail.conf' - but the exec.fib in jail.conf seems to be being ignored? e.g. in /etc/jail.conf I have: " testjail { jid = 100; exec.fib = 1; < Set FIB 1 path = /usr2/jails/testjail; host.hostname = testjail.somedomain.com; ip4.addr = 192.168.0.40; mount.devfs; } " But if I run up that jail and connect to it, 'netstat -r -n' shows it's still using fib 0 (i.e. the default gateway is set). If before running the jail, I do 'setfib 1 route add default 192.186.0.90' - when the jail is run up, again - netstat within it still shows the systems default gateway, not the gateway from fib 1? -Karl The jail(8) man page lacks details about how to use exec.fib. It requires either a new kernel (with "options ROUTETABLES=2" or however many you want), or a boot-time setting with "net.fibs=2" in /boot/loader.conf (requiring a reboot). setfib 1 route add default 198.192.64.21 creates routing table number 1 with that IP address. In this example exec.fib="1" would be coded. See setfib(8) and setfib(2) for details. ___ 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: sysvipc only for one jail
Terje Elde wrote: On 12. aug. 2013, at 19.46, Trond Endrestøl wrote: If you start the jail manually using jail(8), then /etc/jail.conf comes into play, whereas the lines in /etc/rc.conf is used during automatic startup of the jails when the host is rebooted. The whole arrangement seems unnecessary redundant, and I truly wish this can be merged sooner rather than later. It *is* unnecessary redundant. If you're using /etc/rc.conf to define the jails, then start them with: /etc/rc.d/jail start jailname That is, if you're mostly using /etc/rc.conf to define the jails, then start them manually using that as well? Problem solved? Terje Here is a writeup about jails that you may find useful. It includes a boot time jail startup script for jail(8) defined jails. http://www.a1poweruser.com/35.00-Jails_guide_article.php ___ 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: sysvipc only for one jail
Shane Ambler wrote: On 12/08/2013 21:39, Trond Endrestøl wrote: While it is currently in beta maybe you could also try 9.3 and verify that the shared memory update works or eliminates this configuration? If you missed the change, 9.3 is implementing shared memory using mmap. What 9.3 are you talking about 9.2-RC1 is the newest available. Is 9.3 a typo and you really mean 9.2?? ___ 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: if_bridge and ng_netflow
Volodymyr Kostyrko wrote: Hi all. I have one machine with bridge configured. Recently I thinked about capturing all traffic on the bridge with ng_netflow. 1. ng_ether doesn't attach to bridge0 interface: # ngctl list | grep ether Name: rl0 Type: ether ID: 0034 Num hooks: 2 Name: ste0Type: ether ID: 0035 Num hooks: 2 Name: wlan0 Type: ether ID: 0036 Num hooks: 2 2. If I attach all physical interfaces to netflow I get no statistics for data originating from server. I.e. I see all inbound traffic but I see no outbound traffic. Maybe I'm just doing everything wrong? I'm adding interfaces to netflow this way: connect wlan0: netflow0: upper iface2 connect wlan0: netflow0: lower iface3 connect netflow0: netflow0: out2 out3 3. Ok, I can do this other way (sorry, I'm bad at netflow scripting): mkpeer eiface ether ether rmhook ngeth0: ether ifconfig ngeth0 up ifconfig bridge0 span ngeth0 And again I see only inbound packets. I see no packets coming from me. Is there any other working way to get stats from bridge interface? if_bridge is relatively new in FreeBSD. Netgraph precedes if_bridge and is un-aware of if_bridge. Change your if_bridge definition to a ng bridge definition and everything your trying to do should fall into place. ___ 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: Static Jail ID's (JID's) for use with IPFW?
Karl Pielorz wrote: Hi, I have a number of jailed systems running - and I've been setting up ipfw rules for them. This is on FBSD 9.1. 'ipfw' lets you match on traffic to/from a Jail ID (JID) - however every time jails get started / stopped their JID changes [thus breaking the firewall rules]. I can't see anywhere to 'statically' configure a JID to a Jail (i.e. in /etc/rc.conf). Is this possible? / How? Thanks, -Karl Use the jails IP address in the hosts IPFW rules. ___ 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"
.sh script code to determine IPv4 or IPv6
I have a .sh script that I need to determine if the entered IP address is IPv4 or IPv6. Is there some .sh command that does this? Thanks ___ 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"
9.2-BETA1 iso is available
Just down loaded the 9.2-BETA1 iso. Thought others would be interested to know it is available. ___ 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: jls usage
Teske, Devin wrote: On Jul 11, 2013, at 6:19 PM, Fbsd8 wrote: In a .sh script I'm trying to get the jid for a single jail using this code jid=`jls -j jailname | cut -f 1- | awk '{print $1}'` Looks a little over complicated... why not just.. jls -j jailname jid Thanks Devin. Thats what I was looking for. ___ 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"
jls usage
In a .sh script I'm trying to get the jid for a single jail using this code jid=`jls -j jailname | cut -f 1- | awk '{print $1}'` The first line output by jls is a title line which the cut command is suppose to cut out so the first field on line 2 gets selected by the awk command. This is not working as I want, I get the first field of the title line. Is the cut command the correct command to us here? This is what the jls command shows # /root >jls -j dir2 JID IP Address Hostname Path 15 10.0.10.24 dir2 /usr/jails/dir2 I am after the number 15 Thanks in advance ___ 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: Per-IP Bandwidth Monitoring
Kenta Suzumoto wrote: Hello. I'm running a FreeBSD machine with 5 IP addresses, each of them attached to a specific jail. I'm wondering if there is an easy way to monitor the bandwidth usage of each of them individually. Upon googling, I ran into a lot of suggestions like bandwidthd. I gave it a try and it seemed very broken and basically didn't work at all. I'm basically looking for a "vnstat that works per IP instead of per interface" kind of thing. jnettop wasn't what I was looking for. It doesn't have to make pretty graphs(but that's nice too), just human-readable text is fine. Anyone have a recommendation? Some links I came across that were unhelpful: http://freebsd.1045724.n5.nabble.com/how-to-measure-bandwidth-per-jail-td5797422.html http://forum.pfsense.org/index.php?&topic=32256.0 http://www.daemonforums.org/showthread.php?t=1199 Thanks Check the "questions" archive. This question was answered in the last 2 months. ___ 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: upgrade qjail
Masayoshi Fujimoto wrote: Hi. Could you tell me how to upgrade qjail-1.7 to qjail-3.0 ? I can not start "www". So I have to use qjail-1.7 now. >_> root@freebsd:/root # pkg_info | grep qjail qjail-1.7 Utility to quickly deploy and manage jails root@freebsd:/root # jls JID IP Address Hostname Path 1 192.168.0.20www /usr/jails/www root@freebsd:/root # portmaster qjail root@freebsd:/root # rehash root@freebsd:/root # pkg_info | grep qjail qjail-3.0 Utility to quickly deploy and manage jails root@freebsd:/root # reboot I got the following message. jail: qjail: path : not an absolute pathname Error: /usr/sbin/jail failed to start jail www. because of errors in jail.conf file. root@freebsd:/root # cat /etc/jail.conf qjail { host.hostname = "qjail"; path= ""; mount.fstab = ""; exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.consolelog = "/var/log/qjail.qjail.console.log"; devfs_ruleset = "4"; allow.mount.devfs; } So I edited /etc/jail.conf : www { host.hostname = "www"; path= "/usr/jails/www"; mount.fstab = ""; exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.consolelog = "/var/log/qjail.qjail.console.log"; devfs_ruleset = "4"; allow.mount.devfs; ip4.addr = 192.168.0.20; interface = "alc0"; } root@freebsd:/root # /usr/local/etc/rc.d/qjail.bootime restart jail: qjail: path : not an absolute pathname Error: /usr/sbin/jail failed to start jail www. because of errors in jail.conf file. I got same massage. My /etc/jail.conf has been changed default one. qjail-1.7 is way out of date. you have to delete all your 1.7 jails then do pkg_delete qjail-1.7 then portsnap fetch portsnap extract cd /usr/ports/sysutils/qjail ee Makefile and make sure it says qjail-3.0 make install clean man qjail recreate your 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"
why is ports web page so far out of date
I can not get current version of the ports system. The ports web page http://www.freebsd.org/ports/ is almost 2 years out of date. Says the port I am interested in is at 1.7 version when just 2 weeks ago it was at 2.2. Portsnap is also messed up showing the 1.7 version. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
kldload mrouting.ko
kldload mrouting.ko command gives not found message. How do I load mrouting beside compiling the kernel with option MROUTING in kernel source? ___ 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"
Max top end computer for Freebsd to run on
I'm a sub second speed freak. What is the max number of cpu's and memory size that Freebsd can handle? Can it handle 16 4ghz cpu's and 32gb of memory? I need a gaming server with some really big balls for hundreds of jails. Money is not a deciding factor here, horse power is. ___ 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"
kernel config file
Back around 4.x there was a File that had all the available kernel compile options with their meanings as comments. On 9.1 I don't see that file any more. Where can I find that file that lists all the kernel compile options? The 9.1 NOTES file is not that file. I have "makeoptions NO_MODULES=yes" statement in my kernel config file and the "blanktime" and "warp_saver" load modules don't get created. I need the options statements for those items so I can compile then into the kernel. Thanks ___ 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"
Handbook Jail Chapter rewrite available for critique
To all interested parties; I have completed the final draft of the total rewrite of FreeBSD's handbook Chapter 16 on Jails. Before submitting my work for submission to the documentation group for insertion in the handbook I am looking for critique of the work to find errors in concept, wrong use of words, or anything to make it better. All feedback welcomed. Use this URL to access it http://www.jails.a1poweruser.com/ 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: Upgrade from 6.4 to 9.1?
Dan Nelson wrote: In the last episode (Mar 16), Drew Tomlinson said: I have an old system happily running 6.4 but am finding that it can no longer download or build a ports index. Thus I guess it's time to upgrade. What "gotchas" do I need to look out for? In the past my upgrades have always been simply downloading new source, reviewing kernel config file, and then rebuilding the system. Any ports that didn't work after that I would just rebuild as well. However I've never waited this long to upgrade. Do I need to do anything different? You won't be able to do a straight source build from 6.4 to 9.1; too many low-level changes like Makefile syntax and compiler options have changed. If you are comfortable with temporarily disabling non-essential things that fail to build, it is definitely possible to do a long jump to 9.1, but it'd be safer to either hop from 6.4 -> (7-stable or 8-stable) -> 9 doing buildkernels and buildworlds, or just do a binary upgrade of kernel and base system to 9.1. The best approach is to backup your user data and do a fresh install from 9.1 cdrom. You will bypass a bunch of headaches which may in the end force you to do a fresh install anyway. And it will save you a lot of compile time. It's alway a good feeling to know you have a pristine system when you start having problems. ___ 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: day light saving time happened today
Jerry wrote: On Mon, 11 Mar 2013 09:18:23 -0500 Noel articulated: On 3/11/2013 7:49 AM, Fbsd8 wrote: Even though the system is now on DST the date command still displays EDT. Does the date command ever show DST? EDT = Eastern Daylight Time timezone not to be confused with EST = Eastern Standard Time timezone not to be confused with DST = daylight savings time, not a timezone, never shown on a computer. Your system correctly switched to daylight savings time, as verified by the EDT timezone indicator. Most likely the clock was already an hour slow before the time change. Just wondering, but do you have NTP running to keep the time accurate? no but I do run ntpd -q a few times a year to keep the tine accurate. ___ 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: day light saving time happened today
Ben Cottrell wrote: On Mar 10, 2013, at 19:18, Fbsd8 wrote: What is really needed is for the tzsetup program to state which east coast selections have day light saving included. Maybe a pr is in order. Nope, you pretty conclusively proved that you're using the right time zone setting. Trust me. :-) That md5 you posted is the exact same md5 that's on my own system. My own America/New_York is doing just fine, thank you. ;-) Something else is going on. *What*, I don't know. But you chose the right time zone in tzsetup and that time zone description file definitely does have DST rules in it. I never use the wall_cmos_clock setting, because I don't trust it -- at least with the traditional behavior (wall_cmos_clock=0) I know *exactly* what's going on. I really don't know what is happening under the hood when that's turned on, so I have no idea if it could be related or not. But I'm curious what it shows if you run: sysctl machdep.wall_cmos_clock ~Ben sysctl machdep.wall_cmos_clock returned 0 Ran this little test. Last night before turning off my system I used the date command to set the date to 3/9 with the correct DST. This morning when I turned on my system the time had advanced by one hour. So this proves that the time zone setting does have DST in it and every thing worked as expected. Even though the system is now on DST the date command still displays EDT. Does the date command ever show DST? Now about the question of why did the time not jump forward on the date it was suppose to? It all boils down to this, On 3/9 I did not check the time. I just expected it to be correct. Even though the date and time is displayed every morning when I boot my system, I have never in 20 years taken the time to verify if its correct on any of the many PCs I have used. It is totally possible that the system time was incorrect and I was just not aware of it before DST went into effect, after which I checked the time as I did with all the other clocks in the house. So for now, thats how I am leaving things. ___ 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: [Bulk] Re: day light saving time happened today
Mike Jeays wrote: On Sun, 10 Mar 2013 21:42:52 -0400 Fbsd8 wrote: Lowell Gilbert wrote: The next test is to check the clock in GMT. I expect it to be off, which means that the timezone rules are not the problem. If this is not the case, the diagnosis gets more interesting. And how do you purpose I check the clock in GMT? date -u should do it. date -u shows Mon Mar 11 01:08:39 UTC 2013 date shows Sun Mar 10 01:08:47 EDT 2013 In tzsetup I selected north America, EDT. It's the first one on the list. What is really needed is for the tzsetup program to state which east coast selections have day light saving included. Maybe a pr is in order. ___ 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: day light saving time happened today
Lowell Gilbert wrote: The next test is to check the clock in GMT. I expect it to be off, which means that the timezone rules are not the problem. If this is not the case, the diagnosis gets more interesting. And how do you purpose I check the clock in GMT? ___ 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: day light saving time happened today
Ben Cottrell wrote: On Mar 10, 2013, at 14:50, Fbsd8 wrote: # /root >find /usr/share/zoneinfo -type f -print | xargs md5 | grep `md5 -q /etc /localtime` MD5 (/usr/share/zoneinfo/America/New_York) = e4ca381035a34b7a852184cc0dd89baa That's really, really odd. I'm confused. If you run "date" does it show the time zone as EST or EDT? If you have python installed, you might also try: python -c 'import time; print time.localtime().tm_isdst' (it should be 1) Is the year correct? I mean, could it be thinking it's some different year, where the time zone rules are different? Now *I'm* curious. :-) I've honestly never seen a system do that before. If you figure it out, I hope you'll let either me, or the list, know what it was! ~Ben date command shows Sun Mar 10 16:50:33 EDT 2013 No python on my system. The real question is does New York State have day light saving 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"
Re: day light saving time happened today
Ben Cottrell wrote: On Mar 10, 2013, at 10:37, Fbsd8 wrote: day light saving time happened early sunday morning and the time shown by the date command is still one hour behind. I just did a clean 9.1 install from cdrom and selected the correct time zone for my location. The DST change worked fine for me...! I'm curious what it prints if you run the command: find /usr/share/zoneinfo -type f -print | xargs md5 | grep `md5 -q /etc/localtime` It used to be that /etc/localtime was, by convention if nothing else, a symlink so you could easily see what it pointed to, but not anymore... the above is the easiest way I can think of to figure out what time zone your system is *really* set to. Yes, it should have happened automatically. There's no special setting you have to enable. It should have "just worked". So my suspicion is that your /etc/localtime isn't pointing to what you think it's pointing to... ~Ben This is what that find produced # /root >find /usr/share/zoneinfo -type f -print | xargs md5 | grep `md5 -q /etc /localtime` MD5 (/usr/share/zoneinfo/America/New_York) = e4ca381035a34b7a852184cc0dd89baa MD5 (/usr/share/zoneinfo/posixrules) = e4ca381035a34b7a852184cc0dd89baa echo $TZ undefined variable ___ 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: svn & new pkg system
Steve O'Hara-Smith wrote: On Sun, 10 Mar 2013 13:18:04 -0400 Fbsd8 wrote: No body has made a case for NOT including svn in the base system. If it can be a port there is no reason why it can not be included in the base system. Giorgos did when he said "Subversion is a large system, with a ton of dependencies" which translates to a lot of work to keep it up to date in the base system, and all sorts of fun and games when other things using those dependencies need a newer version. And how is that any different from any other package or pkgng situation. ___ 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"
day light saving time happened today
day light saving time happened early sunday morning and the time shown by the date command is still one hour behind. I just did a clean 9.1 install from cdrom and selected the correct time zone for my location. I don't see any entry for daylight saving time in tzsetup I though the EDT had daylight saving time built in. How do I configure time for auto daylight saving time corrections? ___ 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: svn & new pkg system
Giorgos Keramidas wrote: On 2013-03-09 22:04, Robert Huff wrote: Giorgos Keramidas writes: > Is svn going to become part of the base system in 9.2-RELEASE? No. [good reasons for not including subversion ellided] On the other hand ... The traditional - and I believe still canonical - way of updating the system is to recompile from source. I know I am not alone in feeling the system is substantially incomplete if it does not come with all the tools necessary to do that. (Not slighting freebsd-update (don't know enough about it to have an opinion); just pointing out it has limitations.) This has been traditionally true with CVS, which was also a complex piece of software, but still merged periodically into FreeBSD src. I think it's always a small annoyance when things break away from 'tradition', but on the other hand tradition shouldn't be able to put a stop to moving along or act as an impediment for doing our 'real' work. And the real work of the team is to develop FreeBSD, not to develop a version control system. There's a lot of know-how and development happening in the main Subversion development process; a lof of experience that we do not necessarily need to duplicate in our own team to do what we like best: that is, develop FreeBSD. It's understandable that having to install a package to check-out the sources is a diversion from previous practice, and it may be somewhat annoying -- like every change is annoying at first. But the package is not going to go away and it won't stop working, at least as long as we are using it ourselves to develop the system. So other than the difference that now the sources of the VCS used for development are not part of src/, conceptually there isn't a lot of difference from before. The previous state of things was: FreeBSD developers use CVS to check out the sources, and develop the system itself. CVS is available [as part of the base system] to everyone else who wants to grab a copy of the source tree. WHat happens now is quite similar, except for the bracketed text: FreeBSD developers use SVN to check out the sources, and develop the system itself. SVN is available [as part of the official packages] to everyone else who wants to grab a copy of the source tree. Your thinking is way to narrow. Besides source, svn can also grab a copy to the ports tree or just a single port. This a much quicker and a more flexible approach than using portsnap. No body has made a case for NOT including svn in the base system. If it can be a port there is no reason why it can not be included in the base system. Just because developers us it is no reason to make life difficult of those who are not devolopers and have other uses for it. ___ 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"
svn & new pkg system
Is svn going to become part of the base system in 9.2-RELEASE? Is the new pkg system going to totally replace the pkg_ system in the base 9.2-Release? ___ 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: Jailed process listening to broadcast address of host system - possible?
Matthias Petermann wrote: Hello, is there any way to listen to a networks broadcast adress from within a Jail? Given ist the following setup: * The host (IP 192.168.2.127) * The jail (same IP as host, 192.168.2.127) When I do: $ nc -l 192.168.2.255 I got the following results: root@host # nc -l 192.168.2.255 root@jail # nc -l 192.168.2.255 nc: Can't assign requested address The latter is the problem. I already sat security.jail.allow_raw_sockets=1 and now not sure if I am trying to do something which is not allowed by design? Thanks in advance, Matthias # Additional Information: ## ifconfig (host): root@host # ifconfig -a em0: flags=8843 metric 0 mtu 1500 options=9b ether 08:00:27:b3:64:f2 inet 192.168.2.127 netmask 0xff00 broadcast 192.168.2.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=63 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff00 inet 10.0.0.1 netmask 0x inet 10.0.0.2 netmask 0x inet 10.0.0.3 netmask 0x inet 10.0.0.4 netmask 0x inet 10.0.0.5 netmask 0x nd6 options=21 pflog0: flags=141 metric 0 mtu 33152 nd6 options=21 ## ifconfig (jail): root@jail # ifconfig -a em0: flags=8843 metric 0 mtu 1500 options=9b ether 08:00:27:b3:64:f2 inet 192.168.2.127 netmask 0xff00 broadcast 192.168.2.255 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=63 pflog0: flags=141 metric 0 mtu 33152 Since your talking about a jail process, you really need to provide details on how you configured the jail and if your using the interface 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: Limiting jail CPU & memory resources
Mark Felder wrote: On Fri, 01 Mar 2013 09:52:41 -0600, wrote: Read that all ready and left me with more question than answers. Its experimental and has to be compiled into the kernel. Need solutions that are provided as part of the base system. Such as a loadable kernel module. Can not be risking the security of production jails on some experimental software. Unfortunately there's nothing else available yet. You'd be better off using full-fledged hypervisors like Xen, KVM, or ESXi. I'm also anxiously awaiting some improvement in this area. What do you think about the new jail.conf parameter cpuset.id from jail(8)? Seems to me it's a way to dedicate one or more CPUs to a single jail for increased jail performance. Really the opposite of limiting cpu resources to a jail. ___ 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: https://wiki.freebsd.org/ certificate error
Mark Felder wrote: On Fri, 01 Mar 2013 09:23:25 -0600, wrote: I am not sure what he gets, but I receive this: That Gandi certificate is correct. I wonder if he's got some strange MITM going on. Heres the link I followed https://wiki.freebsd.org/Hierarchical_Resource_Limits My xp browser showed me the cirt and also exported it to a file which I am attaching. ___ 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: Limiting jail CPU & memory resources
Mark Felder wrote: On Fri, 01 Mar 2013 08:38:05 -0600, wrote: Is there anything in 9.1 to Limit jail CPU & memory resources? https://wiki.freebsd.org/Hierarchical_Resource_Limits Read that all ready and left me with more question than answers. Its experimental and has to be compiled into the kernel. Need solutions that are provided as part of the base system. Such as a loadable kernel module. Can not be risking the security of production jails on some experimental software. ___ 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: https://wiki.freebsd.org/ certificate error
Javad Kouhi wrote: Also no problem with FreeBSD 9.1 and chromium. But sometimes ago I have this problem with all https sites. because the government forged the wrong SSL certificate and my browser and my browser warned me about it. Do you have this problem with other websites? On Fri, Mar 1, 2013 at 6:02 PM, Zyumbilev, Peter wrote: On 01/03/2013 16:14, Ralf Mardorf wrote: [1] $ firefox -version Mozilla Firefox 19.0 No problem with SeaMonkey 2.16. Peter I use xp browser and it's certificate checking is enabled. Maybe the browsers running from xorg desktops are NOT certificate aware so them not getting the error warning would be expected. The fact remains, the ms/browsers do find the wiki.freebsd.org wedsite's certificate invalid because the certificate ip address does not match the ip address the public dns points to. ___ 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"
Limiting jail CPU & memory resources
Is there anything in 9.1 to Limit jail CPU & memory resources? ___ 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"
https://wiki.freebsd.org/ certificate error
When my browser access wiki.freebsd.org I get certificate error message. Who should I notify about this problem? ___ 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: sh script & files
Polytropon wrote: On Wed, 20 Feb 2013 07:40:08 -0500, Fbsd8 wrote: # write to file > "${file}" I'm thinking the file is never closed so on power failure I loose the contents of the file. How would I code a command to close the file? The file is closed when the write operation has been finished. You can use the "sync" command to flush pending writes to the file (as writing is handled asynchronously by the system). When the program that writes to the file exits, it will close the file it's writing to. This depends on the command you're using infront of >, as the command you've shown will simply generate a null file (file with no actual content). The problem is there may be a great time lag between reading the file and the writing to the file, IE: days or months depending on how long between host reboots. I would just like to close the file right after the file gets read. Is there a way to code that? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
sh script & files
I noticed that when power fails I loose the contents of some files I am using in a sh script. I read and write the file this way file="/usr/local/etc/filename" # read file . "${file}" # write to file > "${file}" I'm thinking the file is never closed so on power failure I loose the contents of the file. How would I code a command to close the file? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How to add zfs support to FreeBSD?
Polytropon wrote: On Mon, 18 Feb 2013 16:57:14 -0500, Fbsd8 wrote: Fbsd8 wrote: The handbook does not cover how to add zfs support. How is it done? Let me reword. If zfs is in the base system why does it not show up when I look for it this way? if config -x $( sysctl -n kern.bootfile ) | grep -q '^[[:space:]]*options[[:space:]]\{1,\}ZFS\>'; then echo "yes zfs is in the kernel" fi Without the ability to check this, I strongly assume that if you enable ZFS as described in the Handbook, the module /boot/kernel/zfs.ko (part of the default system) will be loaded. That's why it won't show up in a sysctl query aimed at the _kernel_ itself -- because it isn't in the kernel. Also, "sysctl -n kern.bootfile" will return the actual kernel file, /boot/kernel/kernel, which is a binary. If the exact config list (from the kernel _configuration_ file) is not plain-text part of that file, grep will not find the text you're grepping for. So the next question is there any sh script code I can use to check if zfs has been enabled by the rc.conf zfs_enable statement. I need to determine if zfs is enabled on the host. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How to add zfs support to FreeBSD?
Fbsd8 wrote: The handbook does not cover how to add zfs support. How is it done? Let me reword. If zfs is in the base system why does it not show up when I look for it this way? if config -x $( sysctl -n kern.bootfile ) | grep -q '^[[:space:]]*options[[:space:]]\{1,\}ZFS\>'; then echo "yes zfs is in the kernel" fi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
How to add zfs support to FreeBSD?
The handbook does not cover how to add zfs support. How is it done? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
9.1 kernel src only
Before the install media format changed at 9.0, sysinstall had option to only install kernel source. Can I use 9.1 svn to just checkout the kernel src necessary to compile a custom kernel? If so, how would I code the svn command to make it happen? Thanks ___ 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"
Quota as a boot time module
I was reading the handbook quota section and it says quota has to be compiles into the kernel. I thought it can also be loaded as a boot time module? If so, how is it done. If so, I will also file a pr to get the handbook quota section updated. Thanks ___ 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: pkg_add -r broken for 9.1
elhosots wrote: Because of a missing link at freebsd.org, pkg_add -r pkgname does not work I hand modify the source code and put 9-stable above 9.1-RELEASE to get around the problem in main.c Works fine for me. You did not scan the questions archives. This problem has been covered many times and it has nothing to do with modifying main.c source. ___ 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: vnet without epair
Nikos Vassiliadis wrote: On 2/9/2013 5:57 PM, Fbsd8 wrote: Has any one been able to get RELEASE 9.1 to enable jail vnet without having to use epair? Yes, you can use vnet-enabled jails with several types of interfaces. Physical ones like em0 etc, virtual ones like vlan0 etc, netgraph ethernet-like interfaces like ngeth etc and if_epair interfaces. What all these have in common is that they all are ethernet-like. You don't mention what kind of use and more or less most interfaces are usable in a vnet jail. Could you share more on what you are trying to achieve? Nikos Thanks for your reply and interest. What I am doing is writing documentation that describes the new 9.1 jail extensions for jail.conf and the rc.conf jail statements. I am going to submit changes to /etc/defaults/rc.conf and as long as I was on the jail subject thought I may as well include vnet because it was missing from /etc/defaults/rc.conf. I did google search and could only find 9.0 vnet jails using epair. It was my understanding that epair was not necessary to use vnet and thanks to you, you confirmed it. As part of this self-appointed project I plan to also update "man jail" and the handbook jail section which is really way out of date. I plan to include vnet in all aspects of this project. I must point out this is not just a writing project. I have been using rc.conf jail statements to configure jails for some time now, and have a test bed to test things I write about so I can verify what I write is true and valid. I am working with the author of the jail environment and already have discovered bugs which are being addressed. I have never played with vimage as it's labeled as experimental because it is not scp aware. IE: can not use more than a single cpu. One of the 9.1 jail extensions deals with being able to use quotas inside of jails. I am excited to begin testing this new function. During my jail research I have come across posts where people have to use a kernel patch to get xorg desktops to work inside of a jail. I have a separate post to questions list trying to mine some info on that subject. I am always open to input. If you have the background to support my efforts in this project its welcomed. Joe ___ 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"
jails running xorg desktop, is it possible?
Has anyone been able to get a xorg desktop to run inside of a jail? All information and links to howto's welcome. ___ 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"
vnet without epair
Has any one been able to get RELEASE 9.1 to enable jail vnet without having to use epair? ___ 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"
file-descriptor file system?
What is a fdescfs file-descriptor file system? Is it still a normal part of 9.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: NcFTPd on 9.1 64-bit
Jim Pazarena wrote: Jim Pazarena wrote, On 2013-01-27 7:58 PM: I have found that on the two machines which I installed 9.1 on, NcFTPd fails system logins for non-root attempts with "Password wrong for user from 192.168.1.51" These are logins which previously on 9.0 worked as expected, and now fail on 9.1. Has anyone else experienced this? Any suggestions? Thanks! No one has answered on this question, and supp...@ncftp.com is also silent. I *do* see an error go by during boot, which states "unable to open /etc/auth.conf" FreeBSD 9.1 does not HAVE auth.conf (9.0 DOES) failing getting NcFTPd working, what is the next ftpd recommended ? Did you try moving the 9.0 /etc/auth.conf to your 9.1 system? ___ 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: sysctl security.jail.* descriptions
Jamie Gritton wrote: On 02/06/13 09:59, Fbsd8 wrote: > Fbsd8 wrote: >> Waitman Gobble wrote: >>> On Feb 6, 2013 7:17 AM, "Fbsd8" wrote: >>>> Waitman Gobble wrote: >>>>> On Feb 6, 2013 7:02 AM, "Fbsd8" wrote: >>>>>> Where do I find the descriptions of what these jail MIBs do? ... >>>>>> security.jail.param.securelevel: 0 >>>>>> security.jail.param.path: 1024 >>>>>> security.jail.param.name: 256 >>>>>> security.jail.param.parent: 0 >>>>>> security.jail.param.jid: 0 ... >> >> What about the other security.jail.param.* MIBs >> where are they documented at? In the jail(8) main page, there's the following tidbit: | Jails have a set a core parameters, and kernel modules can add their | own jail parameters. The current set of available parameters can be | retrieved via ``sysctl -d security.jail.param''. Any parameters not | set will be given default values, often based on the current | environment. The sysctls do not themselves have values. Their useful parts are the associated types and descriptions (as well as their very existence). The descriptions are good for the above-mentioned "sysctl -d", and the types are used by jail(8) to know how to set a particular parameter. Rereading the "man jail" for 9.1 talks about securelevel as a jail parammeter. So correct me if I an wrong. All the security.jail.param.* MIBs are set in rc.conf or /etc/jail.conf file on a per jail bases by changing the word "parm" to the jailname? There's not always a direct connection between the jail parameters and the current rc.conf values. The jail parameters are what you'd use in a jail.conf(5) file, or in the "jail_jailname_parameters" rc variable. - Jamie Yes I read man jail and issued the "sysctl -d" to get the list of MIBs I posted. So I am still left with no explanation of HOW to code these new jail MIBs in 9.X to enable them on a per jail bases. Any thoughts on how to do that? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: sysctl security.jail.* descriptions
Fbsd8 wrote: Waitman Gobble wrote: On Feb 6, 2013 7:17 AM, "Fbsd8" wrote: Waitman Gobble wrote: On Feb 6, 2013 7:02 AM, "Fbsd8" wrote: Where do I find the descriptions of what these jail MIBs do? security.jail.param.allow.mount.zfs: 0 security.jail.param.allow.mount.procfs: 0 security.jail.param.allow.mount.nullfs: 0 security.jail.param.allow.mount.devfs: 0 security.jail.param.allow.mount.: 0 security.jail.param.allow.socket_af: 0 security.jail.param.allow.quotas: 0 security.jail.param.allow.chflags: 0 security.jail.param.allow.raw_sockets: 0 security.jail.param.allow.sysvipc: 0 security.jail.param.allow.set_hostname: 0 security.jail.param.ip6.saddrsel: 0 security.jail.param.ip6.: 0 security.jail.param.ip4.saddrsel: 0 security.jail.param.ip4.: 0 security.jail.param.cpuset.id: 0 security.jail.param.host.hostid: 0 security.jail.param.host.hostuuid: 64 security.jail.param.host.domainname: 256 security.jail.param.host.hostname: 256 security.jail.param.host.: 0 security.jail.param.children.max: 0 security.jail.param.children.cur: 0 security.jail.param.dying: 0 security.jail.param.persist: 0 security.jail.param.devfs_ruleset: 0 security.jail.param.enforce_statfs: 0 security.jail.param.securelevel: 0 security.jail.param.path: 1024 security.jail.param.name: 256 security.jail.param.parent: 0 security.jail.param.jid: 0 security.jail.devfs_ruleset: 0 security.jail.enforce_statfs: 2 security.jail.mount_zfs_allowed: 0 security.jail.mount_procfs_allowed: 0 security.jail.mount_nullfs_allowed: 0 security.jail.mount_devfs_allowed: 0 security.jail.mount_allowed: 0 security.jail.chflags_allowed: 0 security.jail.allow_raw_sockets: 0 security.jail.sysvipc_allowed: 0 security.jail.socket_unixiproute_only: 1 security.jail.set_hostname_allowed: 1 security.jail.jail_max_af_ips: 255 security.jail.jailed: 0 Did you try the man page? Also there is often interesting comments in /usr/src Hope that helps. Waitman Gobble San Jose California There are no man pages for any MIBs Sorry, but im not at a computer now to check, but I believe it would be in the «jail» man page. Hopefully that's the right 411. Waitman man jail only talks about these few MIBs security.jail.mount_zfs_allowed: 0 security.jail.mount_procfs_allowed: 0 security.jail.mount_nullfs_allowed: 0 security.jail.mount_devfs_allowed: 0 security.jail.mount_allowed: 0 security.jail.chflags_allowed: 0 security.jail.allow_raw_sockets: 0 security.jail.sysvipc_allowed: 0 security.jail.socket_unixiproute_only: 1 security.jail.set_hostname_allowed: 1 security.jail.jail_max_af_ips: 255 security.jail.jailed: 0 which are set from the host only. What about the other security.jail.param.* MIBs where are they documented at? Rereading the "man jail" for 9.1 talks about securelevel as a jail parammeter. So correct me if I an wrong. All the security.jail.param.* MIBs are set in rc.conf or /etc/jail.conf file on a per jail bases by changing the word "parm" to the jailname? ___ 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: setting MIBs on a per jail bases
Fleuriot Damien wrote: Running 8.3 here and the answer is no. On Feb 6, 2013, at 5:39 PM, Fbsd8 wrote: Is there a way to set these MIBs on a per jail bases? allow.mount.nullfs allow.raw_sockets cpuset.id securelevel Rereading the "man jail" for 9.1 talks about securelevel as a jail parammeter. So correct me if I an wrong. All the security.jail.param.* MIBs are set in rc.conf or /etc/jail.conf file on a per jail bases by changing the word "parm" to the jailname? ___ 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 MIBs on a per jail bases
Is there a way to set these MIBs on a per jail bases? allow.mount.nullfs allow.raw_sockets cpuset.id securelevel ___ 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: sysctl security.jail.* descriptions
Waitman Gobble wrote: On Feb 6, 2013 7:17 AM, "Fbsd8" wrote: Waitman Gobble wrote: On Feb 6, 2013 7:02 AM, "Fbsd8" wrote: Where do I find the descriptions of what these jail MIBs do? security.jail.param.allow.mount.zfs: 0 security.jail.param.allow.mount.procfs: 0 security.jail.param.allow.mount.nullfs: 0 security.jail.param.allow.mount.devfs: 0 security.jail.param.allow.mount.: 0 security.jail.param.allow.socket_af: 0 security.jail.param.allow.quotas: 0 security.jail.param.allow.chflags: 0 security.jail.param.allow.raw_sockets: 0 security.jail.param.allow.sysvipc: 0 security.jail.param.allow.set_hostname: 0 security.jail.param.ip6.saddrsel: 0 security.jail.param.ip6.: 0 security.jail.param.ip4.saddrsel: 0 security.jail.param.ip4.: 0 security.jail.param.cpuset.id: 0 security.jail.param.host.hostid: 0 security.jail.param.host.hostuuid: 64 security.jail.param.host.domainname: 256 security.jail.param.host.hostname: 256 security.jail.param.host.: 0 security.jail.param.children.max: 0 security.jail.param.children.cur: 0 security.jail.param.dying: 0 security.jail.param.persist: 0 security.jail.param.devfs_ruleset: 0 security.jail.param.enforce_statfs: 0 security.jail.param.securelevel: 0 security.jail.param.path: 1024 security.jail.param.name: 256 security.jail.param.parent: 0 security.jail.param.jid: 0 security.jail.devfs_ruleset: 0 security.jail.enforce_statfs: 2 security.jail.mount_zfs_allowed: 0 security.jail.mount_procfs_allowed: 0 security.jail.mount_nullfs_allowed: 0 security.jail.mount_devfs_allowed: 0 security.jail.mount_allowed: 0 security.jail.chflags_allowed: 0 security.jail.allow_raw_sockets: 0 security.jail.sysvipc_allowed: 0 security.jail.socket_unixiproute_only: 1 security.jail.set_hostname_allowed: 1 security.jail.jail_max_af_ips: 255 security.jail.jailed: 0 Did you try the man page? Also there is often interesting comments in /usr/src Hope that helps. Waitman Gobble San Jose California There are no man pages for any MIBs Sorry, but im not at a computer now to check, but I believe it would be in the «jail» man page. Hopefully that's the right 411. Waitman man jail only talks about these few MIBs security.jail.mount_zfs_allowed: 0 security.jail.mount_procfs_allowed: 0 security.jail.mount_nullfs_allowed: 0 security.jail.mount_devfs_allowed: 0 security.jail.mount_allowed: 0 security.jail.chflags_allowed: 0 security.jail.allow_raw_sockets: 0 security.jail.sysvipc_allowed: 0 security.jail.socket_unixiproute_only: 1 security.jail.set_hostname_allowed: 1 security.jail.jail_max_af_ips: 255 security.jail.jailed: 0 which are set from the host only. What about the other security.jail.param.* MIBs where are they documented at? ___ 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: sysctl security.jail.* descriptions
Waitman Gobble wrote: On Feb 6, 2013 7:02 AM, "Fbsd8" wrote: Where do I find the descriptions of what these jail MIBs do? security.jail.param.allow.mount.zfs: 0 security.jail.param.allow.mount.procfs: 0 security.jail.param.allow.mount.nullfs: 0 security.jail.param.allow.mount.devfs: 0 security.jail.param.allow.mount.: 0 security.jail.param.allow.socket_af: 0 security.jail.param.allow.quotas: 0 security.jail.param.allow.chflags: 0 security.jail.param.allow.raw_sockets: 0 security.jail.param.allow.sysvipc: 0 security.jail.param.allow.set_hostname: 0 security.jail.param.ip6.saddrsel: 0 security.jail.param.ip6.: 0 security.jail.param.ip4.saddrsel: 0 security.jail.param.ip4.: 0 security.jail.param.cpuset.id: 0 security.jail.param.host.hostid: 0 security.jail.param.host.hostuuid: 64 security.jail.param.host.domainname: 256 security.jail.param.host.hostname: 256 security.jail.param.host.: 0 security.jail.param.children.max: 0 security.jail.param.children.cur: 0 security.jail.param.dying: 0 security.jail.param.persist: 0 security.jail.param.devfs_ruleset: 0 security.jail.param.enforce_statfs: 0 security.jail.param.securelevel: 0 security.jail.param.path: 1024 security.jail.param.name: 256 security.jail.param.parent: 0 security.jail.param.jid: 0 security.jail.devfs_ruleset: 0 security.jail.enforce_statfs: 2 security.jail.mount_zfs_allowed: 0 security.jail.mount_procfs_allowed: 0 security.jail.mount_nullfs_allowed: 0 security.jail.mount_devfs_allowed: 0 security.jail.mount_allowed: 0 security.jail.chflags_allowed: 0 security.jail.allow_raw_sockets: 0 security.jail.sysvipc_allowed: 0 security.jail.socket_unixiproute_only: 1 security.jail.set_hostname_allowed: 1 security.jail.jail_max_af_ips: 255 security.jail.jailed: 0 Did you try the man page? Also there is often interesting comments in /usr/src Hope that helps. Waitman Gobble San Jose California There are no man pages for any MIBs ___ 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"
sysctl security.jail.* descriptions
Where do I find the descriptions of what these jail MIBs do? security.jail.param.allow.mount.zfs: 0 security.jail.param.allow.mount.procfs: 0 security.jail.param.allow.mount.nullfs: 0 security.jail.param.allow.mount.devfs: 0 security.jail.param.allow.mount.: 0 security.jail.param.allow.socket_af: 0 security.jail.param.allow.quotas: 0 security.jail.param.allow.chflags: 0 security.jail.param.allow.raw_sockets: 0 security.jail.param.allow.sysvipc: 0 security.jail.param.allow.set_hostname: 0 security.jail.param.ip6.saddrsel: 0 security.jail.param.ip6.: 0 security.jail.param.ip4.saddrsel: 0 security.jail.param.ip4.: 0 security.jail.param.cpuset.id: 0 security.jail.param.host.hostid: 0 security.jail.param.host.hostuuid: 64 security.jail.param.host.domainname: 256 security.jail.param.host.hostname: 256 security.jail.param.host.: 0 security.jail.param.children.max: 0 security.jail.param.children.cur: 0 security.jail.param.dying: 0 security.jail.param.persist: 0 security.jail.param.devfs_ruleset: 0 security.jail.param.enforce_statfs: 0 security.jail.param.securelevel: 0 security.jail.param.path: 1024 security.jail.param.name: 256 security.jail.param.parent: 0 security.jail.param.jid: 0 security.jail.devfs_ruleset: 0 security.jail.enforce_statfs: 2 security.jail.mount_zfs_allowed: 0 security.jail.mount_procfs_allowed: 0 security.jail.mount_nullfs_allowed: 0 security.jail.mount_devfs_allowed: 0 security.jail.mount_allowed: 0 security.jail.chflags_allowed: 0 security.jail.allow_raw_sockets: 0 security.jail.sysvipc_allowed: 0 security.jail.socket_unixiproute_only: 1 security.jail.set_hostname_allowed: 1 security.jail.jail_max_af_ips: 255 security.jail.jailed: 0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
new committed port > svn or portsnap
When a port gets committed where is it really being committed to? Why is there such a delay before svn.freebsd.org/ports/head gets updated with the newly committed port? How often is the portsnap file updated? ___ 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"
svn for 9.1
What is the category / port name to install svn? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: zoneedit.com
Nick K wrote: There doesn't seem to be a way to create a new account at the "new" interface - as far as I can tell there is no "sign up" method at zoneedit.com. On Sunday, February 3, 2013, Fbsd8 wrote: Nick K wrote: I am posting here hoping that a "Dan" from ZoneEdit.com still monitors this mailing list. I am in a very bad situation and my mail forwarding has been down for over a week -- no response from ZoneEdit support. I found references to people getting help from "Dan" here: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2011-01/msg00504.html My issue(s): 1.) I can't login to zoneedit.com's "new" interface. I used to be able to log in to the "legacy" interface -- but apparently I'm in the same boat as Mr. Jack L. Stone was -- in that you can no longer manage zones from the legacy interface. The legacy interface tells me my account is active at the new interface, but the new interface tells me my account does not even exist. 2.) My mail forwarding service provided by zoneedit.com stopped working approximately last week monday. It has been working fine since 2002. Don't you just love it when this stuff happens. 3.) I can't change my DNS / mail forwarding service, because the email I used for my domain registration at my registrar is one of the emails that gets forwarded (and the forwarding is not working). If Jack L. Stone or "Dan" from ZoneEdit can get in contact with me I would be very grateful. I don't know what else to do at this point. The company that currently owns ZoneEdit (Dotster) won't help me -- they say they don't have the ability to provide support for ZoneEdit customers. This is my last hope pretty much. Dan or Jack if you're out there, please get back to me. sur...@gmail.com Have you tried to create a new account on the new interface and try to access your domains from there? After reviewing zoneedit new website looks like they are no longer free and there now in the domain register business. Time to return to the register where your domain name is hosted and change the dns servers your using from zoneedit back to your register's dns servers. If your register does not provide the dns services you were using at zoneedit then time to look at other registers. I use http://www.enom.com and godaddy.com will have ads during the super bowl game on tonight. ___ 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: zoneedit.com
Nick K wrote: I am posting here hoping that a "Dan" from ZoneEdit.com still monitors this mailing list. I am in a very bad situation and my mail forwarding has been down for over a week -- no response from ZoneEdit support. I found references to people getting help from "Dan" here: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2011-01/msg00504.html My issue(s): 1.) I can't login to zoneedit.com's "new" interface. I used to be able to log in to the "legacy" interface -- but apparently I'm in the same boat as Mr. Jack L. Stone was -- in that you can no longer manage zones from the legacy interface. The legacy interface tells me my account is active at the new interface, but the new interface tells me my account does not even exist. 2.) My mail forwarding service provided by zoneedit.com stopped working approximately last week monday. It has been working fine since 2002. Don't you just love it when this stuff happens. 3.) I can't change my DNS / mail forwarding service, because the email I used for my domain registration at my registrar is one of the emails that gets forwarded (and the forwarding is not working). If Jack L. Stone or "Dan" from ZoneEdit can get in contact with me I would be very grateful. I don't know what else to do at this point. The company that currently owns ZoneEdit (Dotster) won't help me -- they say they don't have the ability to provide support for ZoneEdit customers. This is my last hope pretty much. Dan or Jack if you're out there, please get back to me. sur...@gmail.com Have you tried to create a new account on the new interface and try to access your domains from there? ___ 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: http://localhost/phpmyadmin
Rasel Ahmed wrote: Please help me what the applied host in website ? Sent from my iPhone You have to provide details of your problem before some one can help 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: Booting Problem
Doug Hardie wrote: On 29 January 2013, at 07:18, Mario Lobo wrote: On Mon, 28 Jan 2013 15:16:14 -0800 Doug Hardie wrote: I have a relatively old machine that I am trying to boot 9.1 on. The bios will not boot from USB stick. I am using an external CD drive. It starts the boot process fine and gets to the Bootstrap loader message with revision 1.1. Then it puts out the machine, date, time the CD was created and starts the spinner. It spins around about 2 times and stops. The system continues to read from the drive for another couple minutes. Then everything stops. Nothing more happens. The CD is good. I can boot it just fine using the same external drive on another machine. While I could remove the drive and temporarily mount in in the working machine and build it there, I would like to find a way to successfully boot from CD. This will become a remote machine and taking it apart later is not a viable option. ___ 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 you boot a different OS (Win, Ububtu, gparted, etc ...) from the same drive on the same machine? Not so far. The drive works fine on other systems. You said in your orginal post "The bios will not boot from USB stick." I see no reason why you would think your PC would BOOT from any USB attached devices. Since you have another PC that does boot off of usb cd drive, swap hard drives and use that pc to load FreeBSD to the hard drive. This method will work for 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: /etc/rc.d/jail script
Fbsd8 wrote: I have noticed that the /etc/rc.d/jail script will not start a jail that has the same ip address as a jail that is already running. But if I define 2 jails the manual way in rc.conf that have the same ip address they will start. So is this a bug in the "jail" script or is there some reason for this restriction? On deeper inspection of the /etc/rc.d/jail script, it seems the above only occurs if one or more jails are assigned the same ip address and one or more of the jails bound the shared ip address to a NIC device name. IE the auto creation and deletion of ip address aliases. ___ 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.d/jail script
I have noticed that the /etc/rc.d/jail script will not start a jail that has the same ip address as a jail that is already running. But if I define 2 jails the manual way in rc.conf that have the same ip address they will start. So is this a bug in the "jail" script or is there some reason for this restriction? ___ 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: sh & export
kpn...@pobox.com wrote: On Mon, Jan 28, 2013 at 07:41:35PM -0500, Fbsd8 wrote: This is what I am looking at in a sh script echo export jail_${jailname}_hostname=\"${jailname}\" puts it into the env and this brings it back out eval jailname=\"\$jail_${jailname}_hostname\" Question is how can I display from the console command line what has been exported? env issued on the console command line does not show any thing named jail. Environment variables are only exported to children of the shell that created or inherited them. When you run a script you normally have your command line shell start a child shell which then executes the script. When the child shell that runs the script finishes the script it ends and control returns to the parent. The child's environment at this point is gone, but the parent couldn't have looked at it anyway. Parents don't really know what their children are doing. So, to answer your question above, "You can't display from the console what was set in a script." OK then from within a script what single command would show everything? I tested with a script with only the env command and did not get any thing more than issuing env from the console command 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: sh & export
Lowell Gilbert wrote: Fbsd8 writes: I'm reading a script and i see a lot of exports. Is there some command to display the exported environment? The env command does not show them. Only see things made by setenv command. You're not clear on which shell the script is using. The subject line implies /bin/sh, but that doesn't have a setenv command. I don't think there's a direct way to show exported variables in /bin/sh, but starting an inferior shell and looking at the environment there should do it. This is what I am looking at in a sh script echo export jail_${jailname}_hostname=\"${jailname}\" puts it into the env and this brings it back out eval jailname=\"\$jail_${jailname}_hostname\" Question is how can I display from the console command line what has been exported? env issued on the console command line does not show any thing named jail. ___ 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"
sh & export
I'm reading a script and i see a lot of exports. Is there some command to display the exported environment? The env command does not show them. Only see things made by setenv command. ___ 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"
who am i logged in as
I know there is a command that will give me the name of the account I am logged in on. But I can not recall the name of this command. What is the name of this command? Thanks ___ 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: jails bind ip
Zyumbilev, Peter wrote: Are you saying you installed the Debian 6.0 operating system inside of a Freebsd jail and expect it to function? on top of all works ;-) Look at mailing list archives earlier ...See mails from me. Peter Ok I read the archive thread subject "jails". You read a reply pointing you to a French howto. http://blog.etoilebsd.net/post/Emprisonner_une_debian_dans_un_FreeBSD I don't read French so have no idea what you did. In another post you said you did this procedure 1. Use http://download.openvz.org/template/precreated/debian-6.0-x86.tar.gz instead of the file listed in the French howto. 2. Run sysctl compat.linux.osrelease=2.6.32 in Freebsd shell before starting the jail, otherwise you will get error "kernel too old". Don't understand what you mean by "shell" in the the above #2 sentence. The info you provided is so lacking in details. People here on the list are not going to try to duplicate your steps just to get a understanding of your situation. When asking a question it's your job to describe in detail what your situation is. What your trying to achieve by using a jail. What applications you installed in your jail. The jail statements you used to create your jail. So on and so forth. No details results in no replies. If you want helpful replies start with more and better details. From a very general point of view. You can populate a jails directory tree with anything you want and the jail will still start. Having the jail start does not mean anything you put in side of the jail is working. Which is what I think is happening in your case. With out details I can not help you any further. Good luck. ___ 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: jails bind ip
Zyumbilev, Peter wrote: Hi, I have successfully run multiple jails on freebsd 9.1 Two of the jails are FreeBSD and I have no problems with them. However I havesome strange problem with Debian 6.0 Jail. This is my config jail_debian_rootdir="/jail/debian" jail_debian_hostname="debian.bivol.net" jail_debian_ip="192.168.30.12,127.0.0.1" jail_debian_interface="bge0" jail_debian_devfs_enable="YES" jail_debian_devfs_ruleset="devfsrules_jail" jail_debian_flags="-n debian" #jail_debian_mount_enable="YES" # mount YES|NO jail_debian_fstab="/jail/conf/fstab.debian" # File with Filesystems to mount I tried with and without 127.0.0.1. This is how ifconfig looks from inside debian: root@debian:/# ifconfig eth0 Link encap:Ethernet HWaddr e8:39:35:25:d2:ef inet addr:192.168.30.12 Bcast:192.168.30.12 Mask:255.255.255.255 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:425676061 errors:0 dropped:0 overruns:0 frame:0 TX packets:483122783 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:478459387769 (445.6 GiB) TX bytes:190485214007 (177.4 GiB) eth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 UP MULTICAST MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) lo0 Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MULTICAST MTU:16384 Metric:1 RX packets:1273268 errors:0 dropped:0 overruns:0 frame:0 TX packets:1273274 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:103125473 (98.3 MiB) TX bytes:103125585 (98.3 MiB) usbus0Link encap:Ethernet HWaddr 00:00:00:00:00:00 UP MTU:0 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) usbus1Link encap:Ethernet HWaddr 00:00:00:00:00:00 UP MTU:0 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) usbus2Link encap:Ethernet HWaddr 00:00:00:00:00:00 UP MTU:0 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) usbus3Link encap:Ethernet HWaddr 00:00:00:00:00:00 UP MTU:0 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) usbus4Link encap:Ethernet HWaddr 00:00:00:00:00:00 UP MTU:0 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) usbus5Link encap:Ethernet HWaddr 00:00:00:00:00:00 UP MTU:0 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) However, applications have problem binding. Two applications that fail are plexmedia server and psmedia server. 1. PS3 media server throws crazy errors like that it canncot bind - no matter which IP I choose: [main] INFO 2013-01-26 16:03:02.833 Loading configuration file: Panasonic.conf [main] DEBUG 2013-01-26 16:03:02.833 Base path set to file:///etc/ps3mediaserver/renderers/Panasonic.conf [main] INFO 2013-01-26 16:03:02.855 Loading configuration file: PS3.conf [main] DEBUG 2013-01-26 16:03:02.855 Base path set to file:///etc/ps3mediaserver/renderers/PS3.conf [main] INFO 2013-01-26 16:03:02.861 Loading configuration file: AirPlayer.conf [main] DEBUG 2013-01-26 16:03:02.862 Base path set to file:///etc/ps3mediaserver/renderers/AirPlayer.conf [main] INFO 2013-01-26 16:03:02.864 Checking MPlayer font cache. It can take a minute or so. [main] DEBUG 2013-01-26 16:03:02.865 launching: /usr/lib/ps3mediaserver/linux/mplayer [main] INFO 2013-01-26 16:03:03.008 Done! [main] INFO 2013-01-26 16:03:03.016 Searching for plugins in /usr/lib/ps3mediaserver/plugins [main] INFO 2013-01-26 16:03:03.029 No plugins found [main] INFO 2013-01-26 16:03:03.060 Registering transcoding engine: FFmpeg Audio [main] INFO 2013-01-26 16:03:03.078 Registering transcoding engine: MEncoder [main] INFO 2013-01-26 16:03:03.079 Registering transcoding engine: MPlayer Audio [main] INFO 2013-01-26 16:03:03.079 Registering transcoding engine: MEncoder Web [main] INF
Re: sh script ?
Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Thu Jan 24 12:11:42 2013 Date: Thu, 24 Jan 2013 13:07:40 -0500 From: Fbsd8 To: FreeBSD questions Subject: sh script ? I get this message [: 10.0.10.21: bad number on this code [ "${saved_ip}" -eq "${used_ip}" ] && echo "good match" Both variables have valid ip addresses in them. Why does it think the variable content is a number and not text? Why?? BECAUSE YOU TOld IT TO. RTFM applies. Specifically 'man test'. You need to either read some books on BASIC shell programming or take a course or two on that subject. This may sound harsh, but you will save yourself a -lot- of future aggravation with some structured education. It will also assist you in getting maximum value from the manpages. Programming _is_ an art-form. You have to train yourself to think the way the machine does. When it complains about 'something', it is *AlMOST*ALWAYS* correct, and something you -think- is correct is actually wrong. the hard thing to learn in troubleshooting problems is to set aside what you "know" is correct, and look for anything that could possibly cause the complaint. Remember, you're looking for something "impossible". Quit fishing for a flame. You know nothing about my background and years of experience. I have forgotten more about IT and programming than you will ever learn in a life time. You already read the 3 other reply posts and there was no need to say what you did. You added nothing to the info in the thread. The thread was basically ended already. This is not the first time you have replied to posts in this condescending manner. I am putting you on notice, your manner and tone is not acceptable on this list. Please take more time to consider your replies before posting again. Any further reply from you about this will be considered as flaming and 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"
sh script ?
I get this message [: 10.0.10.21: bad number on this code [ "${saved_ip}" -eq "${used_ip}" ] && echo "good match" Both variables have valid ip addresses in them. Why does it think the variable content is a number and not text? What am I doing wrong? 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"
jails & ip addresses
Is there any situation where assigning the same IP address to a new jail that has already been assigned to a previous jail valid? I think not, but want verification. What are your thoughts? ___ 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: creating new user account password.
Matthew Seaman wrote: On 23/01/2013 20:06, Fbsd8 wrote: I know I can create a new user account having a password same as the user name. After logging in the first time using the user account name as the password, I want to force the user to create a new password. Is there a way to do that? You can set the password to expire virtually immediately: pw usermod -n username -p +1m or add the '-p +1m' bit to the 'pw useradd' line used to create the account. I believe this will mean the user is required to set a new password on login after the password has expired. Might be an idea to test that though. Cheers, Matthew Thank you both, Matthew and Greg I added -p 12-12-12 as a date in the past day 12 month 12 year 12. I tested and right after entering the account name pw I was asked for a new password. That is what I wanted. Matthew gave me the -p option to use on the pw adduser command and Greg gave me the clue to use a date in the past. ___ 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"
creating new user account password.
I know I can create a new user account having a password same as the user name. After logging in the first time using the user account name as the password, I want to force the user to create a new password. Is there a way to do that? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 9.1-RELEASE w/ SanDisk ImageMate S11202
Waitman Gobble wrote: On Fri, Jan 18, 2013 at 12:10 AM, Waitman Gobble wrote: Hi, I have a PCI Express card with VIA VL800 chipset which seems to work OK with a Seagate drive, so I presume the interface is working. If I boot with a SanDisk ImageMate S11202 plugged into the USB 3.0 card, the display shows messages about the SanDisk device, appears to properly identify it, and with like 'querying ...' slots on the card reader, which all fail - (there are no cards in the reader). Then the machine sails into outerspace, kind of just sits there until (perhaps) the end of time, or until I kill the power. It never gets the network interface up, so no ssh. It would be great to be able to paste the log here but when I reboot there is nothing about the activity in the log, it's like the entire boot process never happened. Anyone have any experience with this card reader? I appreciate any suggestions or tips. Below is pertinent system information. Thank you, # uname -a FreeBSD kamira.waitman.net 9.1-RELEASE FreeBSD 9.1-RELEASE #1 r245537: Thu Jan 17 22:10:56 PST 2013 r...@kamira.waitman.net:/usr/obj/usr/src/sys/BURPLEX amd64 kernel built with: deviceahci# AHCI-compatible SATA controllers deviceuhci# UHCI PCI->USB interface deviceohci# OHCI PCI->USB interface deviceehci# EHCI PCI->USB interface (USB 2.0) devicexhci# XHCI PCI->USB interface (USB 3.0) pciconf output: xhci0@pci0:2:0:0:class=0x0c0330 card=0x34321106 chip=0x34321106 rev=0x03 hdr=0x00 vendor = 'VIA Technologies, Inc.' class = serial bus subclass = USB interesting log entries: Jan 17 23:10:48 kamira kernel: usbus0: 5.0Gbps Super Speed USB v3.0 Jan 17 23:11:32 kamira kernel: ugen0.3: at usbus0 Jan 17 23:11:32 kamira kernel: umass1: on usbus0 Jan 17 23:11:32 kamira kernel: da1 at umass-sim1 bus 1 scbus6 target 0 lun 0 Jan 17 23:11:32 kamira kernel: da1: Fixed Direct Access SCSI-0 device Jan 17 23:11:32 kamira kernel: da1: 400.000MB/s transfers Jan 17 23:11:32 kamira kernel: da1: 2861588MB (732566645 4096 byte sectors: 255H 63S/T 45600C) -- Waitman Gobble San Jose California USA 510-830-7975 After experimenting a bit, A follow up, when I plug the device in after booting it's no problem. nothing bad happens. Jan 18 20:58:20 kamira kernel: ugen0.4 (: at usbus0 Jan 18 20:58:20 kamira kernel: umass2: on usbus0 Jan 18 20:58:20 kamira kernel: umass2: SCSI over Bulk-Only; quirks = 0x4000 Jan 18 20:58:20 kamira kernel: umass2:7:2:-1: Attached to scbus7 Jan 18 20:58:20 kamira kernel: da2 at umass-sim2 bus 2 scbus7 target 0 lun 0 Jan 18 20:58:20 kamira kernel: da2: Removable Direct Access SCSI-0 device Jan 18 20:58:20 kamira kernel: da2: 400.000MB/s transfers Jan 18 20:58:20 kamira kernel: da2: Attempt to query device size failed: NOT READY, Medium not present Jan 18 20:58:20 kamira kernel: da3 at umass-sim2 bus 2 scbus7 target 0 lun 1 Jan 18 20:58:20 kamira kernel: da3: Removable Direct Access SCSI-0 device Jan 18 20:58:20 kamira kernel: da3: 400.000MB/s transfers Jan 18 20:58:20 kamira kernel: da3: Attempt to query device size failed: NOT READY, Medium not present Jan 18 20:58:20 kamira kernel: da4 at umass-sim2 bus 2 scbus7 target 0 lun 2 Jan 18 20:58:20 kamira kernel: da4: Removable Direct Access SCSI-0 device Jan 18 20:58:20 kamira kernel: da4: 400.000MB/s transfers Jan 18 20:58:20 kamira kernel: da4: Attempt to query device size failed: NOT READY, Medium not present Jan 18 20:58:20 kamira kernel: da5 at umass-sim2 bus 2 scbus7 target 0 lun 3 Jan 18 20:58:20 kamira kernel: da5: Removable Direct Access SCSI-0 device Jan 18 20:58:20 kamira kernel: da5: 400.000MB/s transfers Jan 18 20:58:20 kamira kernel: da5: Attempt to query device size failed: NOT READY, Medium not present when i do a shutdown now, it takes 9:51-9:57 about 6 minutes to disappear from ping and shut down, then it finally comes back up 10:12, so 15 minutes. So reboot = 21 minutes. While it's not the end of time scenario, something is hanging up this machine on boot up and shutdown, with that device... If anyone has a pointer or suggestion I totally appreciate it! definitely need this machine to boot/shutdown much faster! Thank you, I did google lookup on SanDisk uSD SDDR-289, this is a external 4 slot sd card reader that is usb 3 ready and usb 2 compatible. If I understand your post above correctly you can boot your Freebsd system from internal disk or from external usb disk with this external sd card reader plugged in but empty of sd memory cards. The problem is you want to boot off of a sd memory card you have plugged into the external sd card reader. And when you do it takes for ever to boot up. When you plug in your sd memory card, Freebsd reads this info from it. If I remember correctly the 1.00 is the usb standard that card was designed to work with. Since your external 4 slot sd card reader is usb3 ready and usb2 compat
Re: sh script code to get file size.
Chris Hill wrote: On Fri, 18 Jan 2013, Fbsd8 wrote: In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is "ls -lh" The "du -h" command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that "ls -lh" command to pickup the file size value. Is there some other way to do this? To parse it out, I've used something like: $ ls -lh npviewer.bin.core | cut -d \ -f 9 186M After the backslash are two spaces: one being the space that's being escaped to make it the delimiter, the other to separate the options. The number after the '-f' determines which "field" of the output is displayed, which may vary. HTH. Yes that works real nice. Thanks to all who replied. ___ 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: sh script code to get file size.
In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is "ls -lh" The "du -h" command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that "ls -lh" command to pickup the file size value. Is there some other way to do this? reza wrote: > Does this work for you > > $ ls -lh | awk '{print $5}' > > 132B > 0B > 3.8k > 512B > 3.9k > 512B > 512B > 14M > 512B > > Thanks that works for me. ___ 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"
sh script code to get file size.
In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is "ls -lh" The "du -h" command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that "ls -lh" command to pickup the file size value. Is there some other way to do this? ___ 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"
pax error message
I use pax this way. cd dir-path pax -wzX -x cpio -f path-file-name . The period at end of above command is part of the command. When dir-path contains data over 7G in size pax issues this error msg, pax: file is to large for cpio format ./dir-path How do I correct this? ___ 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: tar & compression
Georg Reilinger wrote: If it doesn't necessarily have to be tar, then I'd recommend using 7zip: archivers/p7zip It has among the best compression ratios. The man page for tar command says there a 4 different compress types you can use, xz, bzip, bzip2 and gzip. Which one is the fastest and compresses the most? I am using -z option for gzip and it sure is slow. Hoping one of the other zip options are better. What do you guys use? Another question about tar is can I have tar create a compressed bkup of 2 files and a directory tree all in single tar command? Sorry,that will not work for me. Has to be something that comes as part of the base system. ___ 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"
tar & compression
The man page for tar command says there a 4 different compress types you can use, xz, bzip, bzip2 and gzip. Which one is the fastest and compresses the most? I am using -z option for gzip and it sure is slow. Hoping one of the other zip options are better. What do you guys use? Another question about tar is can I have tar create a compressed bkup of 2 files and a directory tree all in single tar command? ___ 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"
understanding sparse files
I want to understand what is going on inside of sparse files. I have a test case set up. I have a small directory tree set up containing just the systems running libraries. The directory tree contains a copy of the following systems directories, /bin. /lib, /libexec, /sbin, and /usr which has a combined size of 195M. This directory tree is what gets copied into the sparse files I create. Now I create a sparse file with a allocated file size of 300M and copy that 195M directory tree into it. ls -lh shows 300M as the allocation size du -h shows 270M as the occupied size I would expect the occupied size to be 195M, the size of the source loaded into that sparse file. Now I reran the same test again changing only the allocation size to 1G. ls -lh shows 1G as the allocation size du -h shows 463M as the occupied size So my question is, why does the occupied size not match the real size of the data content in the sparse file? Also why as the allocated space increases does the occupied size increase? ___ 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: sh script problem with capturing return code
Lowell Gilbert wrote: Fbsd8 writes: Lowell Gilbert wrote: This fixes the problem that was bothering you, but the interactions of different features are complicated, and many of them are documented in fairly loose language. Is that the diplomatic way of saying the manpage for mtree sucks, and leaves a great deal to be desired? Not really; I was looking at the code at the time I wrote that. To be fair, I'm not sure what I would *expect* for some of the possible interactions. When it comes to testing your patch sure I would like to. But here again I have a problem. For security reasons I can not use source code to install or update any operating system. I have no sources on my system to compile from. I use the fresh install method from a downloaded disc1.iso burned to cdrom. I was thinking you could extend the shell scripts using your existing mtree executable. Well I have already played with all the mtree(8) options you are interested in -u, -U, -q, -d, and different combinations of them including the specification keywords of "nochange", and "ignore", and in all cases the return code is always zero even when the test case should result in a return code of 1 or 2. I had no requirements to use the "optional" keyword, but after the 15+ combinations I ran I see no reason to expect the "optional", keyword to change the results I got. ___ 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: sh script problem with capturing return code
Lowell Gilbert wrote: Fbsd8 writes: Lowell Gilbert wrote: Lowell Gilbert writes: I think it's a real bug, and the test cases don't cover "extra" elements at all. Now I just have to figure out the right fix. I'm pretty sure that the fix is just to set rval on jumping to the "extra" tag in vwalk() in src/usr.sbin/mtree/verify.c. But my hot water heater just exploded, so I may not look at code for a few more days. Hello Lowell, Thank you very much. I was going crazy trying different combinations of options and script logic. I want to thank you for taking my problem seriously and taking the time to do your own test cases to verify my findings. Now that I know it's a genuine bug in mtree, I can make my plans accordingly. Any fix to the mtree utility will take some time to filter down to a regular RELEASE. Maybe 9.2 or the big jump to 10.0 by the end of 2013. I will leave it up to you the file a PR on this and follow through. Thanks again, people like you are what makes this questions list so valuable and FreeBSD such a great OS. You did outstanding work. Actually, in retrospect I think it was pretty trivial. I think the following patch is the right fix for the problem, although I am not completely certain. Index: /usr/src/usr.sbin/mtree/verify.c === --- /usr/src/usr.sbin/mtree/verify.c(revision 245177) +++ /usr/src/usr.sbin/mtree/verify.c(working copy) @@ -149,6 +149,7 @@ } (void)fts_set(t, p, FTS_SKIP); } + rval = MISMATCHEXIT; (void)fts_close(t); if (sflag) warnx("%s checksum: %lu", fullpath, (unsigned long)crc_total); This fixes the problem that was bothering you, but the interactions of different features are complicated, and many of them are documented in fairly loose language. > Is that the diplomatic way of saying the manpage for mtree sucks, and leaves a great deal to be desired? Would you be interested in extending the test suite for this program? There are some tests in /usr/src/usr.sbin/mtree/test/, but they don't cover your issue. I'm particularly concerned with interactions between mtree(8) options like -u, -U, -q, -d, and specification keywords like "optional", "nochange", and "ignore". I would feel more comfortable if someone else wrote up new test cases (because programmers generally don't -- can't -- test their own blind spots), although I'll certainly do it if no one else does. I haven't submitted a PR yet, but I'll do so as soon as I've translated my test case into a form that can be used in the PR. Lowell here is my situation, I support a port and needed a method to interrogate the content of a small directory tree for correctness before processing it's content. I first developed a coding logic using mtree for this purpose, but that brought to light this mtree bug which is the subject of this post. Since my port only uses utilities that are contained in the base system of a RELEASE I could not very well wait for any patches to mtree to filter down into a RELEASE before updating my port. So instead I developed a coding logic using diff that does the same thing I was doing with mtree but diff issues the correct return codes. I have since updated my port in the ports system. When it comes to testing your patch sure I would like to. But here again I have a problem. For security reasons I can not use source code to install or update any operating system. I have no sources on my system to compile from. I use the fresh install method from a downloaded disc1.iso burned to cdrom. This way I know beyond a shadow of a doubt I have an un-compromised, clean, virgin system to start with and nothing present or left over from previous running systems that can be used to compromise the system. Now if you would use gzip to compress the binary patched version of mtree you have been testing with and email it directly to me offline of this list, then sure I will test it inside a jail and even play around with the other option flags your interested in and provide you feed back off list. Joe ___ 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: sh script problem with capturing return code
Lowell Gilbert wrote: Adam Vande More writes: On Wed, Jan 9, 2013 at 7:23 PM, Lowell Gilbert < freebsd-questions-lo...@be-well.ilk.org> wrote: Lowell Gilbert writes: I think it's a real bug, and the test cases don't cover "extra" elements at all. Now I just have to figure out the right fix. I'm pretty sure that the fix is just to set rval on jumping to the "extra" tag in vwalk() in src/usr.sbin/mtree/verify.c. But my hot water heater just exploded, so I may not look at code for a few more days. I think they are importing NetBSD's updated mtree, perhaps already fixed there. It isn't. Which means I probably should submit fixes to multiple places. Although NetBSD's changes seem fairly minor to me, from a quick look. The merge should not be difficult, no matter how it's approached. Let me be sure I understand you correctly. Your saying you tested the NetBSD version of mtree that was committed into 10.0 head and it also has the bug we found? ___ 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: Reading the handbook from console
Robert Bonomi wrote: Date: Sun, 13 Jan 2013 21:48:01 +0100 From: Polytropon To: Fbsd8 Subject: Re: Reading the handbook from console Cc: scotteb...@gmail.com, dte...@freebsd.org, questi...@freebsd.org On Sun, 13 Jan 2013 15:15:23 -0500, Fbsd8 wrote: What do you mean by "enable console graphics"? Is this something different than x11? The is a famous library, svgalib, a "low level console graphics library" which can - under _very_ specific circumstances - display graphics "on" the text mode console. There are few browsers, image viewers and even media players that can use this interface to display "console graphics" while _not_ needing X. However, this only works for local displays. As soon as there is a serial or SSH connection involved, it doesn't work anymore. I've actually never seen this working on FreeBSD; maybe it's just a Linuxism. Maybe it's just because I've never tried. :-) Works fine on FreeBSD -- graphics-mode screen-savers (like 'fire') use it. How do you activate graphics-mode screen-savers (like 'fire')? ___ 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: Reading the handbook from console
Polytropon wrote: On Sun, 13 Jan 2013 15:15:23 -0500, Fbsd8 wrote: What do you mean by "enable console graphics"? Is this something different than x11? The is a famous library, svgalib, a "low level console graphics library" which can - under _very_ specific circumstances - display graphics "on" the text mode console. There are few browsers, image viewers and even media players that can use this interface to display "console graphics" while _not_ needing X. However, this only works for local displays. As soon as there is a serial or SSH connection involved, it doesn't work anymore. I've actually never seen this working on FreeBSD; maybe it's just a Linuxism. Maybe it's just because I've never tried. :-) I use links/svgalib on my host without problems, the worst I can say is the mouse pointer is jumpy. So console graphics = any thing that uses this single svgalib. I understand now. ___ 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: Reading the handbook from console
Polytropon wrote: On Thu, 10 Jan 2013 14:48:33 -0800, dte...@freebsd.org wrote: -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Polytropon Sent: Thursday, January 10, 2013 2:33 PM To: Fbsd8 Cc: scotteb...@gmail.com; questi...@freebsd.org Subject: Re: Reading the handbook from console On Thu, 10 Jan 2013 13:57:47 -0500, Fbsd8 wrote: Scott Eberl wrote: I went ahead and installed the FreeBSD handbook onto my system and I was able to find it on disk per the motd notes but I'm wondering if there is a preferred method for reading these since they are in html format. I tried w3m and lynx and it looks like they are both not installed. Is there something i'm missing for reading these or do I just need to install a cli browser? Viewing html takes some form of browser. There is no text mode web browser in the base system. Installing one is easy: As the HTML files generated for the Handbook are good quality, they display nicely in lynx, links, and w3m (probably the most prominent three text mode web browsers). I must know... What is Polytropon's favorite of those listed? (and perhaps also "elinks" ?) Hard to say, now that X is everywhere... :-) In the past, I've started using lynx because it was "the default". Somehow I even tend to remember that it was part of the default installation in around FreeBSD 4 or so... but that could be wrong. Later on I tried w3m and also found it usable. Today I'd say I prefer links for interactive text mode browsing. Still "lynx -dump" is a welcome tool in some of my scripts, and never change a running system. :-) Reading the pkg-descr of elinks it seems to bring lots of extensions, some interesting, some not that interesting (at least for the use discussed here: reading FreeBSD supplied local documentation: no need for cookies, scripts, or HTTP referers). Other features like the ability to render tables might be a reason not to use a browser that cannot do this (maybe lynx can't?). (and do you enable console graphics?) No, I have to admit that I've never even _tried_ that. Somehow deep inside my brain there's the statement that "graphics in console mode is libvga which is for Linux, not for FreeBSD", but that might not apply anymore. However, The FreeBSD Handbook and the FAQ mostly contain text, I mean, that's what they are about, and for reading text I don't see a need for graphics. If I want graphics, I have X. :-) What do you mean by "enable console graphics"? Is this something different than x11? ___ 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: manpage -> html
Fbsd8 wrote: Polytropon wrote: On Sat, 12 Jan 2013 19:52:06 -0500, Fbsd8 wrote: OK let me be more specific. Using just commands that are in the base system. IE; come with the 9.1 system Very well: zcat `man -w ls` | groff -Thtml -dpaper=a4 -P-pa4 > ls.html zcat `man -w ls` | groff -Thtml > ls.html However, the output looks a bit strange here (tested with lynx and Opera), so maybe some additional options are required. I've just derived this from my man2pdf script and read "man groff" for the -T parameter. zcat `man -w ls` | groff -T html > ls.html That kind of worked. It did create html code but it dropped all the indentations and blank lines. .Pp commands in the man page source. zcat `man -w ls` | groff -mdoc -T html > ls.html The -mdoc is the FBSD style and it worked. Got indentations for all sections plus the high-intensity stuff converted to bold. The blank lines also can out. Thanks for the pointer. You're da man. ___ 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: manpage -> html
Polytropon wrote: On Sat, 12 Jan 2013 19:52:06 -0500, Fbsd8 wrote: OK let me be more specific. Using just commands that are in the base system. IE; come with the 9.1 system Very well: zcat `man -w ls` | groff -Thtml -dpaper=a4 -P-pa4 > ls.html zcat `man -w ls` | groff -Thtml > ls.html However, the output looks a bit strange here (tested with lynx and Opera), so maybe some additional options are required. I've just derived this from my man2pdf script and read "man groff" for the -T parameter. zcat `man -w ls` | groff -T html > ls.html That kind of worked. It did create html code but it dropped all the indentations and blank lines. .Pp commands in the man page source. ___ 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: manpage -> html
Mehmet Erol Sanliturk wrote: On Sat, Jan 12, 2013 at 4:24 PM, Fbsd8 <mailto:fb...@a1poweruser.com>> wrote: Is there any command line command to convert a port's manpage to html? Well really any manpage. http://en.wikipedia.org/wiki/Mandoc http://mdocml.bsd.lv/ Thank you very much . Mehmet Erol Sanliturk OK let me be more specific. Using just commands that are in the base system. IE; come with the 9.1 system ___ 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"
manpage -> html
Is there any command line command to convert a port's manpage to html? Well really any manpage. ___ 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"
pax command and sparse files
I have a sparse file allocated to 1G ls -lh test.img shows 1.0G du -h test.img shows 5.9M This is what I was expecting. Now after pax on that single test.img file ls -lh test.img.tar.gz shows 1.4M du -h test.img.tar.gz shows 1.4M This is what I was expecting. Here is the problem: Running pax on a native directory tree takes 2 seconds to archive it. I put that same directory tree into a sparse file and now pax takes 35 seconds to archive it. The resulting archive file is good and restores correctlly. Why does pax take so long to archive a sparse file? ___ 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: make install package?
Gökşin Akdeniz wrote: Thu, 10 Jan 2013 14:04:59 -0500 tarihinde Fbsd8 yazmış: What is the default path for the packages to be stored in? Is it /usr/packages? It is "/usr/ports/packages/All". If that is indeed the default location, how do I get the "make install package" command put it there automatically? All packages will be stored in /usr/ports/packages/All/relevant/sub/directory. There is no need for any any configuration or files. "# make package" is the proper command for building packages which are/is installed via ports. Is the upcoming pkgng going to have any effect on this? ___ 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: Unable to install xorg using pkg_add
Ralf Mardorf wrote: On Thu, 2013-01-10 at 10:30 -0600, Scott Eberl wrote: [snip] I then updated to 9.1-RELEASE using freebsd-update. Everything seems to have gone smoothly but now I'm getting the below error when trying to isntall xorg. I upgraded from 8.3 to 9.1, http://lists.freebsd.org/pipermail/freebsd-questions/2012-December/247579.html , without fixing anything until now, it was possible to build X today from /usr/ports/x11/xorg. Regarding to your issue, take a look at ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/ , there's no 9.1, IIUC you need to use stable. Regards, Ralf Add this to your /root/.cshrc file setenv PACKAGESITE "ftp://ftp.FreeBSD.org/pub/FreeBSD/ports /i386/packages-current/Latest/" and when you su to root your pkg_add -r command will now get current packages. Its still 6 weeks old, but it's the best FreeBSD has to offer right now for 9.1 users. Works for me. ___ 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"
make install package?
When I do a "make install package" command the package gets stored in the directory I am in. What is the default path for the packages to be stored in? Is it /usr/packages? If that is indeed the default location, how do I get the "make install package" command put it there automatically? ___ 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"