Re: trouble setting up wireless
On 06/09/13 01:24, Warren Block wrote: First, check the easy things: is there a physical switch to enable wireless? Is it on? There is no physical switch to enable wireless there. Please post the output of 'ifconfig -a'. root@box0:/root # ifconfig -a ath0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 00:24:2c:5e:06:f2 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE ether 00:23:8b:b2:e5:1f inet 192.168.1.3 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=63RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0xb inet 127.0.0.1 netmask 0xff00 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:24:2c:5e:06:f2 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid channel 12 (2467 MHz 11g) regdomain 103 indoor ecm authmode WPA1+WPA2/802.11i privacy OFF txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL bintval 0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: trouble setting up wireless
On 06/09/13 01:24, Warren Block wrote: First, check the easy things: is there a physical switch to enable wireless? Is it on? There is no physical switch to enable wireless there. Notebooks also have function-key combinations to enable and disable the radio. I've been able to use wireless on this laptop on FreeBSD 9.0. I just followed the instructions in the handbook and that was it. This time round, I seem to have done the same thing, but there's probably something I must be doing wrong. Please post the output of 'ifconfig -a'. root@box0:/root # ifconfig -a ath0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 00:24:2c:5e:06:f2 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:24:2c:5e:06:f2 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid channel 12 (2467 MHz 11g) regdomain 103 indoor ecm authmode WPA1+WPA2/802.11i privacy OFF txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL bintval 0 I don't see anything obviously wrong. Is an access point within range? Has someone set it to have a hidden SSID? The reason why ssid is empty in the output of ifconfig above, is because I've omitted it in /etc/rc.conf. Here's my /etc/rc.conf: cat /etc/rc.conf hostname=box0 ifconfig_re0=DHCP sshd_enable=YES moused_enable=YES ntpd_enable=YES powerd_enable=YES # Set dumpdev to AUTO to enable crash dumps, NO to disable dumpdev=AUTO wlans_ath0=wlan0 ifconfig_wlan0=WPA DHCP hald_enable=YES dbus_enable=YES linux_enable=YES I didn't put anything related to the Atheros drivers in the /boot/loader.conf as support for them is compiled into the kernel and loaded at boot time: kldstat -v|egrep 'wlan|ath_' 98 pci/ath_pci 434 wlan 433 wlan_wep 432 wlan_tkip 431 wlan_ccmp 430 wlan_amrr 436 wlan_sta 435 wlan_ratectl_none Quick question... The ath_hal(4) man page says that the support for my wireless card is handled via ath_hal. It seems to be compiled into the kernel, but I'm not seeing it being loaded like the wpa_ and ath_pci modules are. dmesg|grep -i Ath ath0: Atheros 5424/2424 mem 0xd600-0xd600 irq 16 at device 0.0 on pci2 ath0: AR2425 mac 14.2 RF5424 phy 7.0 egrep 'ath_|wlan_' GENERIC device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device ath_pci # Atheros pci/cardbus glue device ath_hal # pci/cardbus chip support device ath_rate_sample # SampleRate tx rate control for ath Also, here's my /etc/wpa_supplicant.conf just in case I overlooked something: cat /etc/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant eapol_version=2 ap_scan=1 fast_reauth=1 network={ ssid=plan9 psk=wpa_passphrase-generated psk } 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: trouble setting up wireless
On 06/09/13 18:44, Warren Block wrote: The ath_hal(4) man page says that the support for my wireless card is handled via ath_hal. It seems to be compiled into the kernel, but I'm not seeing it being loaded like the wpa_ and ath_pci modules are. 'kldstat' should show it. It doesn't. kldstat -v | grep ath_ 101 pci/ath_pci I tried disabling ifconfig_ath0=DHCP in /etc/rc.conf, rebooting the system, with wlan0 still being reported as having no carrier. Running out of things to try... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: BSD sleep
what is stopping from interpreting 1h in similar manner to 3600? i.e. from now No, this is user-friendly, and thus can't be done :) But if think a second, sleep is used rarely by average users, mostly by programmers and other scripts, and they should know better what they are doing. Seriously, that explanation about different hours is not enough to prevent at least useful option. like sleep -f 1h (-f means force convert, without it you can see good explanation why sleep for 1 hour will be not sleep for 1 hour, and etc, and not get sleep at all.). Exact units in which sleeps happens (seconds, ticks, minutes, years) can be described in manual page, even without accepting m,h - that info would be useful for one. P.S. There is already non-portable feature in sleep - non-integer, and I'm sure that no one thought about some financists from various countries, who used to specify long numbers with separator, e.g. 3.600, and this means for them one hour and not 3 point 6 seconds. -- Regards, Alexander Yerenkow ___ freebsd-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: BSD sleep
I'm just saying that there's pretty space for discussion. If someone raised this now, why not discuss it now. If you sleep one hour, do you sleep one hour from now or one hour from the system clock which may change in the next hour? If it's the system clock, you may sleep for ten minutes or ten hours. If you need to sleep for 3600 seconds, that's simple and understandable. How about rephrase it: If you sleep 3600 seconds, do you sleep 3600 seconds from now or 3600 seconds from the system clock which may change in the next hour? If it's the system clock, you may sleep for ten minutes or ten hours. How way of specifying period changing the fact that internal minimal unit of sleep is not clearly specified in manpage? Also, there no info on how DST/ ntp time changes affects of running sleeps. I don't see right now how new flag (which currently if specified makes `sleep` exit with help), could break something, but I see that this is could be useful in some cases. This also raise question what sleep should do if something specified incorrectly, like sleep 2h30m30m , or 1h1h or else. And also if any changes would be accepted, this should be specified in manpage (that one about `m` as month). About non-portable feature with non-integers, it was just side observation. -- Regards, Alexander Yerenkow ___ freebsd-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: Tell me how to increase the virtual disk with ZFS?
There's no mature (or flexible, or can do what I want ) way to increase/decrease disk sizes in FreeBSD for now {ZFS,UFS}. Best and quickest way - to have twice spare space, copy data, create new sufficient disk and copy back. 2013/5/11 Vladislav Prodan univers...@ukr.net I have a Debian server virtual ok with Proxmox. In one of the virtual machines is FreeBSD 9.1 ZFS with one disk to 100G. Free space is not enough, how to extend the virtual disk without losing data? Add another virtual disk and do a RAID0 - not an option. It is not clear how to distribute the data from the old virtual disk to the new virtual disk. The manual of the Proxmox http://pve.proxmox.com/wiki/Resizing_disksFreeBSD is not mentioned :( You may have to do a Native ZFS for Linux on Proxmox and it will be easier to resize the virtual disk for the virtual machines? -- Vladislav V. Prodan System Network Administrator http://support.od.ua +380 67 4584408, +380 99 4060508 VVP88-RIPE ___ freebsd-curr...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org -- Regards, Alexander Yerenkow ___ freebsd-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: Tell me how to increase the virtual disk with ZFS?
2013/5/11 Paul Kraus p...@kraus-haus.org On May 11, 2013, at 10:03 AM, Alexander Yerenkow yeren...@gmail.com wrote: There's no mature (or flexible, or can do what I want ) way to increase/decrease disk sizes in FreeBSD for now {ZFS,UFS}. Best and quickest way - to have twice spare space, copy data, create new sufficient disk and copy back. Is this a statement or a question ? If a statement, then it is factually FALSE. If it is supposed to be a question, it does not ask anything. It was a statement, and luckily I was partially wrong, as Vladislav did made what he wanted to. However, last time I checked there were no such easy ways to decrease zpools or increase/decrease UFS partitions. Or grow mirrored ZFS as easily as single zpool. Or (killer one) remove added by mistake vdev from zpool ;) Of course I'm not talking about real hw, rather virtual one. If you happen to point me somewhere to have such task solved I'd be much appreciated. -- Paul Kraus Deputy Technical Director, LoneStarCon 3 Sound Coordinator, Schenectady Light Opera Company -- Regards, Alexander Yerenkow ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Is this an SSD problem or a controller problem?
The analysis done by Jeremy is probably right. The device return errors in response to commands disabling capability that it reported as suppoted and enabled. That is not fatal, but just annoying. Send me please output of the 'camcontrol identify ada15 -v' to check. In case of smartctl I guess there is some more problem causing command timeout and following device reinitialization with the same errors. That may already be fixed in 9-stable branch. 15.02.2013 3:13 пользователь Jeremy Chadwick j...@koitsu.org написал: (Please keep me CC'd as I am not subscribed to this list) (Also CC'ing mav@ since he can shed some light on this too) Re: http://lists.freebsd.org/pipermail/freebsd-questions/2013-February/249183.html It is neither an SSD problem nor a controller problem. FreeBSD is issuing a specific ATA CDB command to the SSD, and the SSD rejects this request, returning ABRT status. This is perfectly normal per ATA specification; the error is harmless. You should open a PR on this matter, as FreeBSD should be adjusted in some manner to deal with this situation, either via appropriate workarounds or a drive quirk. mav@ would know what's best. You will need to provide output from the following commands in your PR: * dmesg * camcontrol identify ada15 * pciconf -lvcb * Same lines you did in your Email Further technical details, which you can put into the PR if you want: Looking at src/sys/cam/ata/ata_all.c we can see that the output of the ACB is in bytes, output per ata_cmd_string(). Thus: ACB: ef 90 00 00 00 40 00 00 00 00 02 00 Decoding per T13/2015-D rev 3 (ATA8-ACS2) working draft spec: 0xef = command = SET FEATURES 0x90 = features = Disable use of SATA feature 0x00 0x00 0x00 = lba_*= n/a 0x40 = device = n/a 0x00 0x00 0x00 = lba_*_exp= n/a 0x00 = features_exp = n/a 0x02 = sector_count = Enable/Disable DMA Setup FIS Auto-Activate Optimisation 0x00 = sector_count_exp = n/a DMA Setup FIS is defined as: 7.50.16.3 Enable/Disable DMA Setup FIS Auto-Activate Optimization A Count field value of 02h is used to enable or disable DMA Setup FIS Auto-Activate optimization. See SATA 2.6 for more information. The enable/disable state for the auto-activate optimization shall be preserved across software reset. The enable/disable state for the auto-activate optimization shall be reset to its default state upon COMRESET. This feature has to do with NCQ capability for certain types of DMA transfers. src/sys/cam/ata/ata_xpt.c contains the responsible code. I could be wrong here (mav@ please correct me), but in probestart(), there is: 452 case PROBE_SETDMAAA: 453 cam_fill_ataio(ataio, 454 1, 455 probedone, 456 CAM_DIR_NONE, 457 0, 458 NULL, 459 0, 460 30*1000); 461 ata_28bit_cmd(ataio, ATA_SETFEATURES, 462 (softc-caps CTS_SATA_CAPS_H_DMAAA) ? 0x10 : 0x90, 463 0, 0x02); 464 break; CTS_SATA_CAPS_H_DMAAA is defined per include/cam/cam_ccb.h as Auto-activation, and its name implies DMA, so this would match the feature in question. This would explain why you see it when the machine boots (xpt(4) probe), as well as when smartctl is run or smartd starts (uses xpt(4)). However, I noticed this piece of code in probedone(): 739 /* 740 * Some HP SATA disks report supported DMA Auto-Activation, 741 * but return ABORT on attempt to enable it. 742 */ 743 } else if (softc-action == PROBE_SETDMAAA 744 status == CAM_ATA_STATUS_ERROR) { 745 goto noerror; Which makes me scratch my head -- the comment and logic seems to imply there shouldn't be any error condition reported, but you do see one. This also implies that the drive advertises per SATA protocol DMA AA yet when xpt(4) tries to disable it the drive rejects that request with ABRT. I don't know why OCZ rejects disabling that feature, but whatever. Addendum note for mav@ -- we also need to add an ADA_Q_4K quirk entry to ata_da.c for Vertex 4 SSDs (OCZ-VERTEX4). -- | Jeremy Chadwick j...@koitsu.org | | UNIX Systems Administratorhttp://jdc.koitsu.org/ | | Mountain View, CA, US| | Making life hard for others since 1977. PGP 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD-9.1-RELEASE-i386 geom mirror+stripe question.
Hi. Is it possible to configure geom mirror+stripe (looks like RAID10)? Trying to do it in VirtualBox: gmirror label -v gm11 /dev/ada0s2 /dev/ada1s2 gmirror label -v gm12 /dev/ada2s2 /dev/ada3s2 gstripe label -v gs0 /dev/mirror/gm11 /dev/mirror/gm12 newfs -U /dev/stripe/gs0 mount /dev/stripe/gs0 /mnt 'shutdown -r now' stucks in 'GEOM_MIRROR: cannot destroy gm11' I also tried to BSD label /dev/stripe/gs0: gpart create -s BSD /dev/stripe/gs0 gpart add -t freebsd-ufs /dev/stripe/gs0 after newfs -U /dev/stripe/gs0a got GEOM_PART: partition 1 has end offset beyond last LBA: 4193919 2097079 GEOM_PART: integrity check failed (mirror/gm11, BSD) mount /dev/stripe/gs0a /mnt 'shutdown -r now' stucks in 'GEOM_MIRROR: cannot destroy gm11' Any idea? --- Best regards, Alexander. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Pinta - fix an error or find an alternative
Hello. I've recently installed Pinta (a lightweight graphical editor) from ports, but when I run it, it crashes with the following error: GLib.GException: Icon 'gtk-dialog-error' not present in theme at Gtk.IconTheme.LoadIcon (System.String icon_name, Int32 size, IconLookupFlags flags) [0x0] in filename unknown:0 at Pinta.ErrorDialog.Build () [0x0] in filename unknown:0 at Pinta.ErrorDialog..ctor (Gtk.Window parent) [0x0] in filename unknown:0 at Pinta.MainClass.ExceptionManager_UnhandledException (GLib.UnhandledExceptionArgs args) [0x0] in filename unknown:0 at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, Boolean is_terminal) [0x0] in filename unknown:0 Cairo.Context: called from finalization thread, programmer is missing a call to Dispose How can I fix this? FreeBSD asus.home 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 Or maybe someone could suggest any alternative to Pinta? I tried to find one, but I failed. I need a graphical editor to use it in my script for making a screenshot, editing it and uploading to ImageShak.us. Gimp is not suitable in this case, because it needs too much time to start and has too complicated interface. I just need to crop an image and draw a few lines or rectangles. If someone is interested, here is a script: #!/bin/sh scrot /tmp/new-screenshot.png pinta /tmp/new-screenshot.png chrome `yfrog-upload /tmp/new-screenshot.png | grep imageshack.us | cut -f 2` yfrom-upload can be found here: http://eax.me/mini-notes-issue-7/ -- Best regards, Alexander Alexeev ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Strange mouse behavior in Gnome2
Hi, I have a strange problem with my mouse while using Gnome2 (same problem with KDE) on FreeBSD 9: mouseclicks aren't working if I open another window, my testcase is opening the keyboard-settings and trying to add another Layout, but its the same with other windows. I can't even open an terminal without loosing control of the panel and the other windows. I can close and manipulate the windows with my keyboard. I tried everything I could find about HAL and X, but nothing helped. I hope you can help me. Alexander Lindemann ___ freebsd-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 needs Git to ensure repo integrity [was: 2012 incident]
http://www.fossil-scm.org/ I'm not fossil user, but it's BSD licensed in written in C. Baptise Daroussin probably could tell us more about fossil pro and cons. -- Regards, Alexander Yerenkow ___ freebsd-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: No sound from speaker, using Realtek ALC269 and snd_hda
On 31.10.2012 03:00, Big Yuuta wrote: Yes, actually I'm using sysctl hw.snd.verbose=4 to understand what's happening inside. From my tests, it's not a sense redirection problem. Because, when I unmute everything, and then I plug a headphone, the sound goes to the headphone and the internal speaker is mutted, and when I unplug it, the internal speaker gets the sound, and (nid 26: the headphone) is mutted. So, anyway, I'm still debugging it and I found out that I don't have to unmute everything, I just have to make sure that nid=15 is never mutted. i.e. the test I wrote in my last email could be more precise like this: hdaa_audio_ctl_amp_set_internal(struct hdaa_devinfo *devinfo, nid_t nid, int index, int lmute, int rmute, int left, int right, int dir) { uint16_t v = 0; if(nid == 15){ //just don't mute nid15, and it works lmute = 0; rmute = 0; } Strange thing is from my dmesg here: http://dpaste.com/818967/plain/ I thought that nid 15 wasn't used. hdaa0: nid: 15 [DISABLED] hdaa0:Name: audio mixer hdaa0: Widget cap: 0x0020010a hdaa0: Input amp: 0x8000 hdaa0: mute=1 step=0 size=0 offset=0 hdaa0: connections: 2 hdaa0: | hdaa0: + [DISABLED] - nid=2 [audio output] hdaa0: + [DISABLED] - nid=11 [audio mixer] Maybe it's disabled because others were disabled for other reasons? I honestly don't grok the whole thing yet. The driver reports as disabled all parts of the CODEC that are unused in specific configuration. It is quite usual to have half of CODEC unused. To avoid unexpected effects driver mutes all disabled controls. According to information reported by CODEC, this mixer is really unused. I see no problem from the driver side there. We, IMVHO, probably just should add a patch inside hdaa_patches.c for this case: case HDA_CODEC_ALC269: if (subid == 0x10438437){ //0x10438437 is my subsystem id. w = hdaa_widget_get(devinfo, 15); if(w != NULL) //some magic to unmute it ? } break; What do you think? I think Realtek engineers got crazy. They not only created several different CODECs sharing the same ID (my laptop also uses variant of ALC269, but it has no such problem), but also violated their own specs and information reported by CODEC. Patch below should hide problematic muter from the driver. Solution is far from perfect, but that is best I can propose without having more information. Please test it and report about results. --- hdaa_patches.c (revision 242352) +++ hdaa_patches.c (working copy) @@ -541,6 +541,21 @@ hdaa_patch(struct hdaa_devinfo *devinfo) if (w != NULL) w-connsenable[0] = 0; break; + case HDA_CODEC_ALC269: + /* +* ASUS EeePC 1001px has strange variant of ALC269 CODEC, +* that mutes speaker if unused mixer at NID 15 is muted. +* Probably CODEC incorrectly reports internal connections. +* Hide that muter from the driver. There are several CODECs +* sharing this ID and I have not enough information about +* them to implement more universal solution. +*/ + if (subid == 0x10438437) { + w = hdaa_widget_get(devinfo, 15); + if (w != NULL) + w-param.inamp_cap = 0; + } + break; case HDA_CODEC_CX20582: case HDA_CODEC_CX20583: case HDA_CODEC_CX20584: -- Alexander Motin ___ freebsd-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: No sound from speaker, using Realtek ALC269 and snd_hda
On 31.10.2012 18:24, Big Yuuta wrote: No, that patch didn't do the trick for the simple reason that my actual subid was 0x84371043 and not 0x1043837 -you spot my mistake? ;-) So here's the one that finally got me sound with my Asus EeePC 1001px on the internal speaker: Now I can have a good nap thinking that somehow I contributed a tiny little bit to my favorite OS. Thank you so much, Alexander! Not only you helped me solve this problem that I had for several months, but you also got me interested in FreeBSD's internal code! Thank you for your contribution, it is really valuable, as there is no other way to handle such kind of hardware issues. I've just committed the patch to the HEAD branch and will merge it down to 8/9-STABLE in two weeks. -- Alexander Motin ___ freebsd-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: No sound from speaker, using Realtek ALC269 and snd_hda
On 30.10.2012 09:17, Big Yuuta wrote: Hi Alexander, I got the sound out of that speaker!! :) I actually started to read your code, and I'm still trying to understand the stuff in it (I never wrote a device driver) Anyway, so I did a little hack'ish modification (just to test) in function hdaa_audio_ctl_amp_set_internal(struct hdaa_devinfo *devinfo, nid_t nid, int index, int lmute, int rmute, int left, int right, int dir) { uint16_t v = 0; // Do not mute, even if asked for. Test to be removed of course lmute = 0; rmute = 0; I know, this is absolutely NOT the way to do it, but I wanted to see if the speaker wasn't muted (or the mixer that controls it) and it -actually- WAS muted! Now, I guess I'll have to read the whole code, try to understand its internals, and I hope to be able to write a patch to add to hdaa_patches.c Speaker should be muted on headphones connection. That is one of two ways of handling playback redirection. But it should be unmuted on disconnection. You may try to set sysctl hw.snd.verbose=4 and connect/disconnect headphones. It should report which controls are affected and how. You may try this hack to use pin controls instead of muters for redirection: --- hdaa.c (revision 242315) +++ hdaa.c (working copy) @@ -260,7 +260,7 @@ /* (Un)Mute headphone pin. */ ctl = hdaa_audio_ctl_amp_get(devinfo, w-nid, HDAA_CTL_IN, -1, 1); - if (ctl != NULL ctl-mute) { + if (ctl != NULL ctl-mute 0) { /* If pin has muter - use it. */ val = connected ? 0 : 1; if (val != ctl-forcemute) { @@ -290,7 +290,7 @@ hdaa_hpredir_handler(struct hdaa_widget *w) continue; ctl = hdaa_audio_ctl_amp_get(devinfo, as-pins[j], HDAA_CTL_IN, -1, 1); - if (ctl != NULL ctl-mute) { + if (ctl != NULL ctl-mute 0) { /* If pin has muter - use it. */ val = connected ? 1 : 0; if (val == ctl-forcemute) -- Alexander Motin ___ freebsd-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: Portupgrade now supports pkgng [/usr/ports/UPDATING]
On 10/28/2012 03:00 AM, Bryan Drewery wrote: PKGNG is a replacement for the pkg_* tools that record package data in /var/db/pkg. It also allows for binary package upgrades. If you are wanting to use pkgng for binary packages, there's no need to use portupgrade anymore. Just 'pkg install name', 'pkg upgrade', etc. Understood. Thanks. For some reason I thought I could use the PKGNG tool set together with portupgrade the same way the pkg_* tools are used. Is there a straightforward way to go back to using the pkg_* tools in 9.1? 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: Portupgrade now supports pkgng [/usr/ports/UPDATING]
Got it. 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: Portupgrade now supports pkgng [/usr/ports/UPDATING]
On 10/28/2012 04:27 PM, Patrick Lamaiziere wrote: pkg is able to make packages upgrade by itself. I think the good way to update with packages is pkg updgrade then portupgrade to build the ports without packages avalaible. Anyway I had many problems with portupgrade and pkg (basically It was not able to build its database because of inconsistency in ports dependencies), portmaster with pkgng patch looks better. Regards. Understood. Thanks. I'll look into 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: Problem with connecting FreeBSD 8.3 to wireless network
On 10/28/12 20:50, Manish Jain wrote: # dmesg | grep -i ath Empty output Doesn't look like your atheros network card has been detected by your system. Did you check the ath(4) man page to see if your particular piece of hardware is supported on FreeBSD 8.3? http://www.freebsd.org/cgi/man.cgi?query=athsektion=4manpath=FreeBSD+8.3-RELEASE HARDWARE The ath driver supports all Atheros Cardbus and PCI cards, except those that are based on the AR5005VL chipset. I'm running: box0=; uname -a FreeBSD box0.my.domain 9.1-RC2 FreeBSD 9.1-RC2 #0 r241133: Tue Oct 2 17:11:45 UTC 2012 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 And my atheros card is supported. box0=; dmesg | grep ath ath0: Atheros 5424/2424 mem 0xd600-0xd600 irq 16 at device 0.0 on pci2 ath0: AR2425 mac 14.2 RF5424 phy 7.0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: No sound from speaker, using Realtek ALC269 and snd_hda
On 28.10.2012 17:12, Big Yuuta wrote: I have an asus eeepc 1001px, on which I installed 9-stable. I, since day one, never had any sound coming out of the speaker, but when I plug a headphone in the jack, I have the sound -in the headphones. The chipset is a Realtek ALC269 which some people said is supported. Now driver support most of CODECs. I don't know cases when specific CODEC would be a problem, and Realtek CODECs from functional side are better then many others. But many systems have custom wiring and laptops are usually more problematic there. I read, and re-read the man page for snd_hda so many times, but I just can't make it work. Here's what I have right now in my device.hints Code: hint.hdaa.0.nid20.config=as=1 seq=0 device=Speaker hint.hdaa.0.nid26.config=as=1 seq=15 device=Headphones hint.hdaa.0.nid18.config=as=2 seq=0 As I see, these three hints are replicating existing configuration and effectively useless. #hint.hdaa.0.gpio_config=0=set hint.hdaa.0.config=forcestereo,ivref50,ivref80,ivref100,ivref,vref hint.pcm.0.config=gpio0,gpio1,gpio2,gpio3,gpio4,gpio5,gpio6,gpio7 hint.pcm.0.vol=100 This is my n'th attempt, I pretty tried everything I could imagine. Here's my verbose dmesg http://dpaste.com/818967/plain/ Am I missing something? Is my understanding of pinouts correct? CODEC configuration looks good and I see no problems in driver output. I think most likely problem is in CODEC wiring and power amplifier. Your CODEC has two GPIO lines and EAPD line. That gives 8 possible combinations. I would recommend you to try them all. GPIOs, as you tried could be set with hint.hdaa.0.gpio_config tunable. EAPD line can be controlled (0 or 100) by the ogain mixer control. Unluckily with this output I can't completely identify your system to check what Linux does for it. Could you send me `devinfo -vr` output. -- Alexander Motin ___ freebsd-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: No sound from speaker, using Realtek ALC269 and snd_hda
On 28.10.2012 22:09, Big Yuuta wrote: CODEC configuration looks good and I see no problems in driver output. I think most likely problem is in CODEC wiring and power amplifier. Your CODEC has two GPIO lines and EAPD line. That gives 8 possible combinations. I would recommend you to try them all. GPIOs, as you tried could be set with hint.hdaa.0.gpio_config tunable. EAPD line can be controlled (0 or 100) by the ogain mixer control. You mean combinations like: hint.hdaa.0.gpio_config=0=set 1=set 2=set As I've told, there are only two GPIO pins, so only 0=X 1=Y, plus ogain mixer control. Where the values could be set or keep? But then again, the man also cites clear, disable, input. So that'd make more than 8 possible permutations? Or is it something else? Can you please give me an example? GPIO pins are bidirectional, but I have doubt that input or high impedance (disable) state could be used to control something. keep is also useless, as by default these pins are disabled. So you have only set and clear. Also, can I, after booting, just try with: kenv hint.hdaa.0.gpio_config=0=set 1=set 2=set kdunload snd_hda.ko kdload snd_hda.ko Yes, that should work. or should I reboot each time? I don't think it is required. -- Alexander Motin ___ freebsd-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: No sound from speaker, using Realtek ALC269 and snd_hda
On 28.10.2012 23:20, Big Yuuta wrote: Unfortunately, trying with the different combinations didn't work. I wrote this tiny script just to make sure I'm not forgetting a case: #!/bin/sh echo testing with: $1 - $2; kenv hint.hdaa.0.gpio_config=0=$1 1=$2; kldunload snd_hda.ko; kldload snd_hda.ko; mplayer song.mp3; and I run it like this: ./test.sh set set ./test.sh set clear ./test.sh clear set ./test.sh clear clear And nothing came out of the speaker, alas :( Alas. I'll just remind one more time about `mixer ogain`. Also check that pin sensing is working. Try to plug in/out headphones. With verbose messages enabled, you should see messages about that on console and in logs. What's strange is that the speaker actually works with OSS from ports, but when I use it (OSS) with mplayer it crashes the whole system whenever I try to skip in a video/audio file On Sun, Oct 28, 2012 at 9:58 PM, Big Yuuta init...@gmail.com wrote: On Sun, Oct 28, 2012 at 9:42 PM, Alexander Motin m...@freebsd.org wrote: On 28.10.2012 22:09, Big Yuuta wrote: CODEC configuration looks good and I see no problems in driver output. I think most likely problem is in CODEC wiring and power amplifier. Your CODEC has two GPIO lines and EAPD line. That gives 8 possible combinations. I would recommend you to try them all. GPIOs, as you tried could be set with hint.hdaa.0.gpio_config tunable. EAPD line can be controlled (0 or 100) by the ogain mixer control. You mean combinations like: hint.hdaa.0.gpio_config=0=set 1=set 2=set As I've told, there are only two GPIO pins, so only 0=X 1=Y, plus ogain mixer control. So that would be: hint.hdaa.0.gpio_config=0=set 1=set hint.hdaa.0.gpio_config=0=set 1=clear hint.hdaa.0.gpio_config=0=clear 1=set hint.hdaa.0.gpio_config=0=clear 1=clear which I try with: mixer ogain 0:0 mixer ogain 100:100 I'm going to check once again, but I think that unfortunately that didn't work. I hope that I forgot a combination! Thanks again, Alexander -- Alexander Motin ___ freebsd-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: Portupgrade now supports pkgng [/usr/ports/UPDATING]
Quick question about portupgrade's support for pkgng. The /usr/ports/UPDATING says: 20121015: AFFECTS: users of ports-mgmt/portupgrade AUTHOR: bdrew...@freebsd.org Portupgrade now supports pkgng. To use pkgng, enable it in your make.conf, and convert your databases. This is optional and not currently required. # make -C /usr/ports/ports-mgmt/pkg install clean # echo 'WITH_PKGNG=yes' /etc/make.conf # pkg2ng # pkgdb -fu Having done all of the above, I ran portupgrade to update all the pkgs that needed upgrading on my system, and got the message below: root@box0:/root/tmp # portupgrade -varRP --batch -L '%s_%s' USING PKGNG Packages are not yet suported. Use pkg(8) directly. That doesn't sound like portupgrade supports pkgng, or did I misread the message in the UPDATING file? box0=; uname -a FreeBSD box0.my.domain 9.1-RC2 FreeBSD 9.1-RC2 #0 r241133: Tue Oct 2 17:11:45 UTC 2012 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Thanks. Alexander Kapshuk. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Fwd: re: Portupgrade now supports pkgng [/usr/ports/UPDATING]
If my reading the code snippet below is right, portupgrade-2.4.10.2 does not support pkgng yet if pkgdb has been converted for use with pkgng using pkg2ng. /usr/ports/ports-mgmt/portupgrade/work/pkgtools-2.4.10.2/bin/portupgrade:561,565 # FIXME: pkgng if $use_packages $pkgdb.with_pkgng? STDERR.puts Packages are not yet suported. Use pkg(8) directly. return 0 end Original Message Subject:re: Portupgrade now supports pkgng [/usr/ports/UPDATING] Date: Sat, 27 Oct 2012 21:22:32 +0300 From: Alexander Kapshuk alexander.kaps...@gmail.com To: freebsd-questions@freebsd.org Quick question about portupgrade's support for pkgng. The /usr/ports/UPDATING says: 20121015: AFFECTS: users of ports-mgmt/portupgrade AUTHOR: bdrew...@freebsd.org Portupgrade now supports pkgng. To use pkgng, enable it in your make.conf, and convert your databases. This is optional and not currently required. # make -C /usr/ports/ports-mgmt/pkg install clean # echo 'WITH_PKGNG=yes' /etc/make.conf # pkg2ng # pkgdb -fu Having done all of the above, I ran portupgrade to update all the pkgs that needed upgrading on my system, and got the message below: root@box0:/root/tmp # portupgrade -varRP --batch -L '%s_%s' USING PKGNG Packages are not yet suported. Use pkg(8) directly. That doesn't sound like portupgrade supports pkgng, or did I misread the message in the UPDATING file? box0=; uname -a FreeBSD box0.my.domain 9.1-RC2 FreeBSD 9.1-RC2 #0 r241133: Tue Oct 2 17:11:45 UTC 2012 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Thanks. Alexander Kapshuk. ___ freebsd-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: Firefox install problem
On 09/04/2012 08:11 PM, Mario Lobo wrote: /bin/mv -f /usr/ports/www/firefox/work/fake/lib/pkgconfig /usr/ports/www/firefox/work/fake/libdata/ || true mv: rename /usr/ports/www/firefox/work/fake/lib/pkgconfig to /usr/ports/www/firefox/work/fake/libdata/pkgconfig: No such file or directory /bin/rm -f /usr/ports/www/firefox/work/fake/lib/pkgconfig This might help... /usr/ports/UPDATING 20120726: AFFECTS: users of devel/pkg-config AUTHOR: b...@freebsd.org devel/pkg-config has been replaced by devel/pkgconf # portmaster -o devel/pkgconf devel/pkg-config or # portupgrade -fo devel/pkgconf pkg-config-\* pkgng: # pkg set -o devel/pkg-config:devel/pkgconf # pkg install -f devel/pkgconf ___ freebsd-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: Firefox install problem
On 09/04/2012 10:29 PM, Mario Lobo wrote: Thank Alexander but been there, done that. pkg_info | grep pkg pkgconf-0.8.7 pkg-config compatible utility which does not depend on glib Hopefully, somebody else on the list will be of more help than I have been. ___ freebsd-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: Wrong version of sources?
On 09/02/12 16:19, Walter Hurry wrote: Thanks for the reply. No, I haven't rebuilt kernel and world, nor do I intend to for the moment. I'm happy to stick with generic. By using the RELENG_9 tag, you're tracking the STABLE development branch. By pulling in the sources for the STABLE development branch and rebuilding the kernel and the world by following the instructions given in the Handbook, you are sticking with the GENERIC kernel configuration, unless you build a custom kernel. I'm still slightly confused by this tag stuff though; sorry (despite perusal of the handbook). Are you saying that until RELENG_9_1 is made available I won't be able to compile kernel modules? Or that I should have a different tag in my standard-supfile? That's right. RELENG_9_1 isn't available yet. The options available to you now, as far as I can tell, are: (1). Do not recompile the kernel and the world, if you want to track 9.1-RC, to be followed by RELENG_9_1, once it becomes available. You may use freebsd-update(8), to keep the system up-to-date by way of binary updates. Once release 9.1 is out, you may change RELENG_9 in your sup-file to RELENG_9_1, and then you'll be tracking the release branch and you'll be able to keep the kernel and the world up-to-date by way of source updates. Use pkg_add(1) to install VBox. (2). Stick with RELENG_9, which is the STABLE development branch. Pull in the latest sources. Rebuild the kernel and the world. You may be prompted to rebuild the ports installed on your system as well. Use pkg_add(1) or the ports to install software. If any one else on the list thinks otherwise, as they are more experienced folk on the list than I, I'd be happy to stand corrected. Hope the above helps. Alexander Kapshuk. ___ freebsd-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: Wrong version of sources?
On 09/02/2012 03:21 AM, Walter Hurry wrote: My standard- supfile (copied from examples with only the default host changed) says 'tag=RELENG_9'. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html RELENG_9 The line of development for FreeBSD-9.X, also known as FreeBSD 9-STABLE You're running 9.1-RC1, which doesn't have the RELENG_9_1 tag available yet, as this is a release candidate. Thus the trouble when compiling VBox from sources. Have you rebuilt your kernel and the world once you'd pulled in the sources for RELENG_9? Anyway, that's my take on it. Alexander Kapshuk. ___ freebsd-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: /root/bin and /usr/local/i386-portbld-freebsd9.0
I've found the two directories below on my system. I don't remember creating them. So I'd like to be able to find out what package(s) has/have created them, if possible. # ls -ld /root/bin/ drwxr-xr-x 2 root wheel 512 Aug 29 22:52 /root/bin/ # ls -Rl /root/bin/ total 0 # ls -dl /usr/local/i386-portbld-freebsd9.0 drwxr-xr-x 4 root wheel 512 Jul 8 22:32 /usr/local/i386-portbld-freebsd9.0 # ls -Rl /usr/local/i386-portbld-freebsd9.0 total 8 drwxr-xr-x 2 root wheel 512 Jul 8 22:32 bin drwxr-xr-x 3 root wheel 512 Jul 8 22:32 lib /usr/local/i386-portbld-freebsd9.0/bin: total 10816 -r-xr-xr-x 2 root wheel 604172 Jul 8 22:32 ar -r-xr-xr-x 2 root wheel 1036440 Jul 8 22:32 as -r-xr-xr-x 4 root wheel 879860 Jul 8 22:32 ld -r-xr-xr-x 4 root wheel 879860 Jul 8 22:32 ld.bfd -r-xr-xr-x 2 root wheel 3463684 Jul 8 22:32 ld.gold -r-xr-xr-x 2 root wheel 587808 Jul 8 22:32 nm -r-xr-xr-x 2 root wheel 733004 Jul 8 22:32 objcopy -r-xr-xr-x 2 root wheel 1098644 Jul 8 22:32 objdump -r-xr-xr-x 2 root wheel 604172 Jul 8 22:32 ranlib -r-xr-xr-x 2 root wheel 733004 Jul 8 22:32 strip /usr/local/i386-portbld-freebsd9.0/lib: total 4 drwxr-xr-x 2 root wheel 1024 Jul 8 22:32 ldscripts /usr/local/i386-portbld-freebsd9.0/lib/ldscripts: total 228 -r--r--r-- 1 root wheel 7375 Jul 8 22:32 elf_i386.x -r--r--r-- 1 root wheel 7158 Jul 8 22:32 elf_i386.xbn -r--r--r-- 1 root wheel 7188 Jul 8 22:32 elf_i386.xc -r--r--r-- 1 root wheel 7303 Jul 8 22:32 elf_i386.xd -r--r--r-- 1 root wheel 7133 Jul 8 22:32 elf_i386.xdc -r--r--r-- 1 root wheel 7123 Jul 8 22:32 elf_i386.xdw -r--r--r-- 1 root wheel 7375 Jul 8 22:32 elf_i386.xn -r--r--r-- 1 root wheel 4658 Jul 8 22:32 elf_i386.xr -r--r--r-- 1 root wheel 6897 Jul 8 22:32 elf_i386.xs -r--r--r-- 1 root wheel 6727 Jul 8 22:32 elf_i386.xsc -r--r--r-- 1 root wheel 6717 Jul 8 22:32 elf_i386.xsw -r--r--r-- 1 root wheel 4704 Jul 8 22:32 elf_i386.xu -r--r--r-- 1 root wheel 7178 Jul 8 22:32 elf_i386.xw -r--r--r-- 1 root wheel 7476 Jul 8 22:32 elf_i386_fbsd.x -r--r--r-- 1 root wheel 7259 Jul 8 22:32 elf_i386_fbsd.xbn -r--r--r-- 1 root wheel 7289 Jul 8 22:32 elf_i386_fbsd.xc -r--r--r-- 1 root wheel 7404 Jul 8 22:32 elf_i386_fbsd.xd -r--r--r-- 1 root wheel 7234 Jul 8 22:32 elf_i386_fbsd.xdc -r--r--r-- 1 root wheel 7224 Jul 8 22:32 elf_i386_fbsd.xdw -r--r--r-- 1 root wheel 7476 Jul 8 22:32 elf_i386_fbsd.xn -r--r--r-- 1 root wheel 4682 Jul 8 22:32 elf_i386_fbsd.xr -r--r--r-- 1 root wheel 6998 Jul 8 22:32 elf_i386_fbsd.xs -r--r--r-- 1 root wheel 6828 Jul 8 22:32 elf_i386_fbsd.xsc -r--r--r-- 1 root wheel 6818 Jul 8 22:32 elf_i386_fbsd.xsw -r--r--r-- 1 root wheel 4728 Jul 8 22:32 elf_i386_fbsd.xu -r--r--r-- 1 root wheel 7279 Jul 8 22:32 elf_i386_fbsd.xw -r--r--r-- 1 root wheel 838 Jul 8 22:32 i386bsd.x -r--r--r-- 1 root wheel 849 Jul 8 22:32 i386bsd.xbn -r--r--r-- 1 root wheel 843 Jul 8 22:32 i386bsd.xn -r--r--r-- 1 root wheel 642 Jul 8 22:32 i386bsd.xr -r--r--r-- 1 root wheel 682 Jul 8 22:32 i386bsd.xu Any pointers would be much appreciated. Alexander Kapshuk. ___ freebsd-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: /root/bin and /usr/local/i386-portbld-freebsd9.0
On 08/31/12 22:26, lokada...@gmx.de wrote: Which program do you use to upgrade/ build ports? portupgrade. I had a look at the link you'd included in your previous email. I'm still unclear as to where the two directories came from. 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: /root/bin and /usr/local/i386-portbld-freebsd9.0
On 08/31/12 22:41, lokada...@gmx.de wrote: I think it comes from portupgrade. I use portmaster, but when i look at google, i found some thinks with portupgrade and portbld. I think, portbld is building for some ports, but on different places. Kick it (or rename it), look that all ok and make a upgrade, if available. If one port need it, it will create it. Understood. Thanks. Any ideas about /root/bin? ___ freebsd-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: /root/bin and /usr/local/i386-portbld-freebsd9.0
On 08/31/2012 11:10 PM, lokada...@gmx.de wrote: Not really. It looks like an error like my tool [. I get this after i would go to head (in february?) and get back this linking. No chance to get of it. Every new buildworld will look for it. :( No worries. I didn't think it was there when I first installed the system. So I thought I'd ask. /root/bin/ does seem to be defined in the $PATH environment variable for the root user account in both .cshrc and .profile. Thanks for your prompt response. ___ freebsd-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: built-in mic configuration [compaq presario laptop]
I would like to be able to use the built-in mic to record audio and to use Skype with. An external mic seems to work out-of-the-box. Any input would be appreciated. :; uname -a FreeBSD box2 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #0: Fri Aug 17 21:53:39 EEST 2012 root@box2:/usr/obj/usr/src/sys/GENERIC i386 :; dmesg | grep pcm pcm0: HDA IDT 92HD75B3 PCM #0 Analog at cad 0 nid 1 on hdac0 pcm1: HDA NVidia (Unknown) PCM #0 Digital at cad 2 nid 1 on hdac0 ___ freebsd-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: built-in mic configuration [compaq presario laptop]
On 08/25/12 19:26, Waitman Gobble wrote: you need to specify the device, take a look at # ls /dev/dsp* /dev/dsp0.0/dev/dsp0.1/dev/dsp1.0/dev/dsp2.0 /dev/dsp2.1 for example, i can send audio output to headphone jack: # mplayer -zoom -x 1280 -y 720 -fs -ao oss:/dev/dsp1 -mixer /dev/mixer2 /path/to/file Haven't tried skype on FreeBSD but there should be a device setting. I've noticed that some machines seem to automatically switch, ie when I plug in headphones to the headphone jack or a mic into a microphone jack it just works. But other machines don't work automatically and I have to set the device manually as above. A simple way, you can try setting each device to see which one works. :) # cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: ATI R6xx (HDMI) (play) pcm1: IDT 92HD81B1X (Analog 2.0+HP/2.0) (play/rec) default pcm2: IDT 92HD81B1X (Analog Mic) (rec) # mixer Mixer vol is currently set to 90:90 Mixer pcm is currently set to 85:85 Mixer speaker is currently set to 100:100 Mixer mic is currently set to 67:67 Mixer mix is currently set to 1:1 Mixer rec is currently set to 1:1 Mixer ogainis currently set to 100:100 Recording source: mic OK. Thanks. I'll give that a try. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: built-in mic configuration [compaq presario laptop]
On 08/25/2012 09:50 PM, Matthias Apitz wrote: For tests you might even record and playback the recorded with, for example: # dd if=/dev/dsp0 of=/tmp/recorded # cat /tmp/recorded /dev/dsp0 Thanks. I'll fiddle with 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: adding Mercurial CA Certificates
How do I add an CA Certificate for Mercurial on FreeBSD please? :; uname -a FreeBSD box2 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #0: Fri Aug 17 21:53:39 EEST 2012 root@box2:/usr/obj/usr/src/sys/GENERIC i386 :; pkg_info -xc mercurial | sed 1q Information for mercurial-2.3: 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: for the impatient: Linux LibreOffice works on FreeBSD
On 07/19/12 09:41, Vaclav Kadlcik wrote: Hi, since there has been various issues building LibreOffice from ports lately and not everyone can or wants follow all the patches flying around, I'd like to share that the Linux binary build runs fine for me. I downloaded Linux' x86 tar package, did tar xf to get RPMs and finally: for i in *rpm; do rpm2cpio $i | cpio -ivd; done That created opt/libreoffice3.5. You can move where you like and start it using libreoffice3.5/program/soffice. (I'm tracking 9-STABLE with Linux compatibility enabled it this matters.) May this help someone lazy or impatient like me... Oli ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org libreoffice-3.5.5 Just upgraded libreoffice to version 3.5.5 using ports. Didn't have any trouble installing is, nor upgrading it. :; uname -a FreeBSD box2 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 :; pkg_info -x libreoffice Information for libreoffice-3.5.5 What sort of errors did you encounter while building the package using the ports? ___ freebsd-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: for the impatient: Linux LibreOffice works on FreeBSD
On 07/19/12 15:46, Robert Huff wrote: Check the last few weeks of office@ and ports@; there are multiple people (including me) reporting problems, especially with 9.recent and -Current. Robert Huff Could be because I'm running the RELEASE version then. ___ freebsd-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: Patch failed to apply cleanly [chromium-20.0.1132.57] FreeBSD 9.0-RELEASE
When attempting to upgrade chromium-19.0.1084.56_1 to chromium-20.0.1132.57 on FreeBSD9.0 (FreeBSD box2 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386), one of the patches failed to apply: -- === Applying extra patch /usr/ports/www/chromium/files/extra-patch-gcc === Applying FreeBSD patches for chromium-20.0.1132.57 patch: malformed patch at line 15: #if PLATFORM(CHROMIUM) = Patch patch-third_party__WebKit__Source__WebCore__config.h failed to apply cleanly. -- There seems to be a patch available that has been reported as having worked on a 9.0-RELEASE/amd64: http://www.mail-archive.com/freebsd-chromium@freebsd.org/msg00340.html - www/chromium/files/patch-third_party__WebKit__Source__WebCore__config.h.orig 2012-07-12 09:19:26.0 + +++ www/chromium/files/patch-third_party__WebKit__Source__WebCore__config.h 2012-07-12 10:49:20.0 + @@ -1,6 +1,6 @@ third_party/WebKit/Source/WebCore/config.h.orig2012-05-30 10:05:35.0 +0300 -+++ third_party/WebKit/Source/WebCore/config.h 2012-06-05 22:32:48.0 +0300 -@@ -127,6 +127,11 @@ +--- third_party/WebKit/Source/WebCore/config.h.orig2012-07-10 07:52:48.0 + third_party/WebKit/Source/WebCore/config.h 2012-07-12 10:48:15.0 + +@@ -127,6 +127,14 @@ #define WTF_USE_NEW_THEME 1 #endif // PLATFORM(MAC) - Is there a patch available to an x86 based system? Thanks. Alexander Kapshuk. ___ freebsd-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: order of source_dirs in cp(1)
On Thu Apr 5 12, Matthias Apitz wrote: Hello, I was doing $ cp -Rv 10 11 12 13 14 15 16 17 2 /mnt/osm and was surprised seeing that source_dir 17 was done before 16; the man page does not specify the order, but I was thinking it just goes through the list in the given order... Why this is done this way? i can't remember the reason, but the question has been raised quite often. try searching the archives. i think it had something to do with performance or getting better disk locality, but i'm not sure. however people were argueing whether copying the files in reverse order is really a benefit or not. cheers. alex Thanks matthias -- Matthias Apitz e g...@unixarea.de - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-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: question regarding geom labels
On Fri Mar 30 12, Warren Block wrote: On Fri, 30 Mar 2012, Alexander Best wrote: i have a question regarding a label for a swap partition. when should i do the labeling? after or before creating the partition scheme? when i label before creating the partition scheme, likes this: glabel label -v swap /dev/da0 gpart create -s GPT /dev/da0 i get the following warning: GEOM: da1: the secondary GPT header is not in the last LBA. which is obvious, because the label is being written into the last LBA and thus the backup GPT header gets written into the last-1 LBA. Right. Don't do that, the GPT backup header needs to be at the end of the physical device. If you're using that whole disk for swap, there's no need for a partition anyway. if i create the partitioning scheme before labeling the device, like this: gpart create -s GPT /dev/da0 glabel label -v swap /dev/da0 or gpart create -s GPT /dev/da0 gpart add -t freebsd-swap /dev/da0 glabel label -v swap /dev/da0p1 the label gets written into da0 or da0p1 and is at constant risk of being overwritten by userdata. No. The swap device entered in /etc/fstab would be /dev/label/swap, which is one block smaller than da0p1. That's the last-block metadata, it's safe. thanks for the info. :) But if the whole disk is for swap, skip the partitioning entirely. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
question regarding geom labels
hi there, i have a question regarding a label for a swap partition. when should i do the labeling? after or before creating the partition scheme? when i label before creating the partition scheme, likes this: glabel label -v swap /dev/da0 gpart create -s GPT /dev/da0 i get the following warning: GEOM: da1: the secondary GPT header is not in the last LBA. which is obvious, because the label is being written into the last LBA and thus the backup GPT header gets written into the last-1 LBA. if i create the partitioning scheme before labeling the device, like this: gpart create -s GPT /dev/da0 glabel label -v swap /dev/da0 or gpart create -s GPT /dev/da0 gpart add -t freebsd-swap /dev/da0 glabel label -v swap /dev/da0p1 the label gets written into da0 or da0p1 and is at constant risk of being overwritten by userdata. cheers. alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
issue with limiting java's memory usage
hi there, maybe i'm missing something obvious, but i don't quite understand the following top(1) output: last pid: 13875; load averages: 0.73, 0.75, 0.68 65 processes: 2 running, 62 sleeping, 1 waiting CPU 0: 19.5% user, 0.0% nice, 13.3% system, 0.0% interrupt, 67.2% idle CPU 1: 20.3% user, 0.0% nice, 7.8% system, 0.0% interrupt, 71.9% idle Mem: 1365M Active, 185M Inact, 323M Wired, 69M Cache, 213M Buf, 32M Free Swap: 10G Total, 2494M Used, 7746M Free, 24% Inuse, 4K In PIDUIDTHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 6913 1001 32 200 4252M 1312M uwait 0 18.3H 39.06% /usr/local/diablo-jdk1.6.0/bin/java -Xmx512m -jar JDownloade ...how can the size of the resident memory of pid 6913 be 512 megabytes? this is wth a very recent HEAD on amd64. cheers. alex ___ freebsd-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: issue with limiting java's memory usage
On Sun Jan 29 12, Patrick Lamaiziere wrote: Le Sun, 29 Jan 2012 19:34:11 +, Alexander Best arun...@freebsd.org a écrit : hi there, Hello, maybe i'm missing something obvious, but i don't quite understand the following top(1) output: last pid: 13875; load averages: 0.73, 0.75, 0.68 65 processes: 2 running, 62 sleeping, 1 waiting CPU 0: 19.5% user, 0.0% nice, 13.3% system, 0.0% interrupt, 67.2% idle CPU 1: 20.3% user, 0.0% nice, 7.8% system, 0.0% interrupt, 71.9% idle Mem: 1365M Active, 185M Inact, 323M Wired, 69M Cache, 213M Buf, 32M Free Swap: 10G Total, 2494M Used, 7746M Free, 24% Inuse, 4K In PIDUIDTHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 6913 1001 32 200 4252M 1312M uwait 0 18.3H 39.06% /usr/local/diablo-jdk1.6.0/bin/java -Xmx512m -jar JDownloade ...how can the size of the resident memory of pid 6913 be 512 megabytes? I don't know but you can inspect the java application with the java console (jconsole). There are several stats on memory usage. jconsole doesn't seem to work for me. all i get is a blank white X window. :( cheers. alex With JDownloader (doing nothing), I see 57 MB of non heap memory usage, and only 30 MB of heap memory. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: nss_ldap and the linuxulator
Hi, if you look at the message of the linux base port, you will see that this part is discussed there. FreeBSD does not come with ldap by default, so does the linux base port. So far nobody complained loudly about the lack of a nss ldap port for the linuxulator, and nobody felt the pressure to create such a port and talk about it on the emulation list. Anyone who uses ldap in the linuxulator is free to create a corresponding port, quesions in case of problems creating such a port can be asked on the emulation mailinglist. Bye, Alexander. -- Send via an Android device, please forgive brevity and typographic and spelling errors. per...@pluto.rain.com hat geschrieben:Forwarding to emulation@, which is where the linuxulator gurus hang out (AFAIK). Please keep Da Rock in the Cc: Date: Mon, 02 Jan 2012 21:59:57 +1000 From: Da Rock freebsd-questi...@herveybayaustralia.com.au To: freebsd-questions@freebsd.org Subject: nss_ldap and the linuxulator I've just run into this snag again which I've resolved back in 7.x/8.1: the linuxulator cannot handle nss lookups from ldap. I ran a search for nss_ldap fedora 10 and simply extracted from the rpm the libnss_ldap*.so* in the usr/lib into the corresponding directory under /compat/linux. One then only has to copy or setup the ldap.conf in /compat/linux/etc/ and change /compat/linux/etc/nsswitch.conf so the it will check files and ldap as in the base. It works a charm when you have issues like the missus with acroread and others not working inexplicably. Run acroread from the command line will give you the clue: getpwuid_r(): failed due to unknown user id. This solution does fix this categorically. I hope this helps others, but I do have one question: why isn't this included in the ports already? I still haven't yet figured out cups and printer selection yet, but I have made some progress... :) Cheers ___ freebsd-emulat...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Port, Packages, and Patching, Upgrading
you may want to look up this section of the handbook: Chapter 5 Installing Applications: Packages and Ports How to upgrade your applications is explained there; long story short, there are three utilities i know of that may be used to keep your applications up-to-date irrespective of the installation method; they are portupgrade, portmanager and portmaster; i personally use portupgrade; with this tool you may specify whether you want you applications updated in the binary or in the source form; hope this helps; sasha On Tue, Dec 20, 2011 at 8:19 AM, Allen unix.hac...@comcast.net wrote: Hi, I've been trying to find info about this, so I'm Hoping someone here will know about this; I use FreeBSD 8.2-RELEASE, and basically, the normal way I do things, is like this: I grab the CD, boot, and install the Base System. Once I've booted, I'll then use one of the two: pkg_add -r bunch of packages or sysinstall Configure Packages Then I go through the menus, and select what software I want, and, eventually, I'll tell it to start installing. Now, I've been reading about Ports more and more, and thought about maybe just using those instead, but even with upgrade_pkg from bsdaminscripts, I just can NOT seem to upgrade anything. I'd like to have my system fully patched, but most of the data I find, is about how to keep ports up to date, and has very little on Packages / Binaries. I don't think it matters much why I choose Binary Packages over Ports, I'm just looking to make sure the emails I get every once in a while on the root account will FINALLY not have a huge list of stuff that I need to either delete / uninstall, or upgrade and have no idea how. I mainly used Linux, so I AM a little more used to everything being patched at once, like Slackware, where you can type one command and install patches and stuff to everything you have installed, be it the Kernel, or an Xterm, or X itself, or Pidgin. Any of you that use pkg_add and Sysinstall to install packages, can you maybe describe what you do to install updates, Patches, or just in general, keep your system patched? I'd really appreciate that. -Allen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Port, Packages, and Patching, Upgrading
On Tue, Dec 20, 2011 at 11:40 AM, Allen unix.hac...@comcast.net wrote: On 12/20/2011 4:19 AM, Alexander Kapshuk wrote: you may want to look up this section of the handbook: Chapter 5 Installing Applications: Packages and Ports How to upgrade your applications is explained there; I actually am doing so right now. I started cleaning out the CPU cooling system on my old test machine, and after getting crap out of the Fan, I got it to boot, and started installing FreeBSD 8.2-RELEASE on it, then did a Net Install over FTP. While I let that run, I decided to start looking at the web site for FreeBSD, and reading up on Ports. I guess I'm on the right track, as you pretty much told me to do exactly what I was already doing right before checking my Email, so that's a great sign. long story short, there are three utilities i know of that may be used to keep your applications up-to-date irrespective of the installation method; they are portupgrade, portmanager and portmaster; i personally use portupgrade; with this tool you may specify whether you want you applications updated in the binary or in the source form; I'm currently reading about Portmanager, because I like the simple portmanager -u option I see. I'm going to probably try that one out first to see how it goes. Right now the machine is running portsnap fetch portsnap extract portsnap update Once that's done I'm going to start installing some stuff on it to try out. Hopefully FVWM2 works out; For some reason, my other FreeBSD install says it's installed but I can't use it. I'm probably going to just reinstall it because I LOVE it. I've been using Window Maker and Enlightenment mostly. hope this helps; sasha Thanks, -Allen about FVWM2 not working on your other FreeBSD install... i'm not sure how you set up your X11 system and your window manager, but this section of the handbook, Chapter 6 The X Window System, has instructions for setting up a desktop environment as well as a window manager of your choice; it's a matter of specifying the path to the executable for your window manager either in $HOME/.xsession or in $HOME/.xinitrc depending on whether you use XDM or some other display manager; sasha ___ freebsd-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: Setenv PACKAGESITE thepathtoftp, in boot time how to do it?
you may want to define the PACKAGESITE variable in the .cshrc file in your $HOME; On Wed, Nov 30, 2011 at 1:27 PM, Edgar Rodolfo cybernaut...@gmail.comwrote: Hi guys, currently i have a machine with freebsd 9 rc2, for default when i try to use pkg_add -r wget, for example, i can not install because the path is freebsd# pkg_add -r xscreensaver Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-current/Latest/xscreensaver.tbz : File unavailable (e.g., file not found, no access) pkg_add: unable to fetch ' ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-current/Latest/xscreensaver.tbz ' by URL but i put : freebsd# setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/ freebsd# pkg_add -r xscreensaver Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/xscreensaver.tbz. .. Done. it works, pero i want to use for default, without put again it, when the machine reboot and i want to use again pkg i am puting the path manually :(, what is the file when i should put the path? to use pkg_add -r package?, without put again PACKAGESITE?, thank in advance! http://cybernautape.blogspot.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-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: Quick build of stripped-down kernel
On Fri Nov 25 11, Thomas Mueller wrote: from b. f. bf1...@googlemail.com: If you are going to build most of the modules, but only want to exclude a few, then add the directories of the modules to be excluded (relative to /usr/src/sys/modules) to WITHOUT_MODULES, for example in /etc/make.conf. If you are only going to build a few modules, and want to exclude the majority of the modules, then add the directories of the modules that are to be built to MODULES_OVERRIDE. For no modules at all, set NO_MODULES. See /usr/src/sys/modules/Makefile and /usr/src/sys/conf/kern.post.mk for details. You may also save some time by using one of your faster machines to build the OS for the slower machines. Suppose you want to build more than one kernel so as to be able to choose at boot time. Then you might not want to build modules redundantly. So how would you make the modules from /boot/kernel accessible when booting /boot/kernel2? irrc there was a patch posted on some of the mailinglists not a long time ago, which added support for building only those modules, which aren't part of the kernel. this might be a good alternative, if you want a small footprint, but want to take advantage of all the freebsd kernel drivers/etc. cheers. alex Tom ___ freebsd-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-update upgrade -r 9.0-RC2: incorrect hash error [SOLVED]
i'd like to call off my call for help with the problem reported below. i was able to upgrade to 9.0-RC2 today without any trouble. my internet connection got cut off temporarily as i was pulling the files. some of the files might have got corrupted or something. Original Message Subject:re: freebsd-update upgrade -r 9.0-RC2: incorrect hash error Date: Sun, 20 Nov 2011 20:57:50 +0200 From: Alexander Kapshuk alexander.kaps...@gmail.com To: freebsd-questions@freebsd.org when performing a binary upgrade from 9.0-RC1 to 9.0-RC2 by following the instructions found here: http://lists.freebsd.org/pipermail/freebsd-current/2011-November/029373.html i've had this error: Applying patches... done. Fetching 5612 files... gunzip: (stdin): unexpected end of file 137c71ff94c207e764b910e3b7dca9a4fe282e43104bdeb18af4377014033116 has incorrect hash. has anyone else has this error? what can be done to fix it? :; uname -a FreeBSD localhost 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:30:38 UTC 2011 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 thanks. sasha kapshuk ___ freebsd-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: Problem with X
On 11/06/2011 06:42 PM, Zantgo wrote: The synaptics mouse and the keyboard not found when I tap startx in my user, this is the mensaje: xauth: file /home/user/.Xauthority does not exist___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org did you put this in your /etc/rc.conf: hald_enable=YES dbus_enable=YES see 6.4.2 Configuring X11 of the handbook, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html, for details. sasha ___ freebsd-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: Problem with X
On 11/06/2011 07:36 PM, Zantgo wrote: El 06-11-2011, a las 14:31, Alexander Kapshukalexander.kaps...@gmail.com escribió: On 11/06/2011 06:42 PM, Zantgo wrote: The synaptics mouse and the keyboard not found when I tap startx in my user, this is the mensaje: xauth: file /home/user/.Xauthority does not exist___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org did you put this in your /etc/rc.conf: hald_enable=YES dbus_enable=YES Yes but does not yet work see 6.4.2 Configuring X11 of the handbook, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html, for details. sasha ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org did you restart 'hald' and 'dbus' after putting hald_enable=YES dbus_enable=YES in your /etc/rc.conf? ___ freebsd-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: trouble setting timezone for ukraine
On 11/05/11 00:55, Lowell Gilbert wrote: Alexander Kapshukalexander.kaps...@gmail.com writes: On 11/04/11 22:46, Lowell Gilbert wrote: Alexander Kapshukalexander.kaps...@gmail.com writes: the actual current time is 10.21 pm. Your system's clock may be off as well... any idea when an updated time zone file will become available? It's already in the FreeBSD tree: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/tzdata/europe?rev=1.7.2.2;content-type=text%2Fplain To install it, you'll need something like # zic europe (where europe is the file from the URL above) and then tzsetup(8) should install the correct information. Or you could update your system to anything after October 26. thanks. here's what i did based on my understanding of the instructions given above: # cd $HOME # fetch -o europe http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/tzdata/europe?rev=1.7.2.2;content-type=text%2Fplain # zic europe # tzsetup -r :; date Sat Nov 5 00:54:32 EET 2011 the timezone did change from 'FET' to 'EET', but the time is still wrong by being 1 hour ahead of the actual ukraine time. another thing i tried, which didn't seem to help was set these environment variables in my /etc/rc.conf: (as suggested here: http://forums.freebsd.org/showthread.php?t=10276 [post # 6]) ntpdate_enable=YES ntpdate_flags=-u -b ntpdate_hosts=ua.pool.ntp.org That will only do anything at startup. To do the same thing without needing to reboot, the command line would be # ntpdate -u -b ua.pool.ntp.org i must be doing something wrong. just don't know what is it. can anyone please suggest what it is i should be doing? Well, start with what I suggested a while back: try date -u and see whether that is the correct UTC time. If not, the ntpdate command will solve you problems. If it is, there's still something else wrong. thanks for your replies. running 'date -u' indicated that the system clock on my machine was out of sync as well. running 'ntpdate -u -b ua.pool.ntp.org' set both the system clock and the local time to the right time. :; date -u Sat Nov 5 07:24:23 UTC 2011 :; date Sat Nov 5 09:24:26 EET 2011 then i read somewhere that 'ntpdate' is bound to become deprecated at some stage. it was suggested that 'ntpd' be used instead. so i removed the 'ntpdate' variables from my '/etc/rc.conf' and replaced them with: :; grep ntpd /etc/rc.conf ntpd_enable=YES ntpd_sync_on_start=YES http://www.freebsd.org/doc/handbook/network-ntp.html talks about modifying the '/etc/ntp.conf' file by adding information on what servers to use. it also said that 'By default, your NTP server will be accessible to all hosts on the Internet. The restrict option in /etc/ntp.conf allows you to control which machines can access your server' i'm not sure i clearly understand what has to be done to make the ntp server on my system to be inaccessible to anyone but me. a sample /etc/ntp.conf would be appreciated. thanks. sasha ___ freebsd-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: trouble setting timezone for ukraine
On 11/05/11 10:06, Matthew Seaman wrote: On 05/11/2011 07:48, Alexander Kapshuk wrote: i'm not sure i clearly understand what has to be done to make the ntp server on my system to be inaccessible to anyone but me. a sample /etc/ntp.conf would be appreciated. You need the 'restrict' keyword to control access to ntpd -- add a block something like this to the beginning of ntp.conf: restrict default nomodify nopeer noquery notrap # everyone can go away... restrict -6 default nomodify nopeer noquery notrap restrict 127.0.0.1 # except me ... restrict -6 ::1 restrict 81.187.76.160 mask 255.255.255.248 nomodify notrap nopeer # or the local net restrict -6 2001:8b0:151:1:: mask ::::: nomodify notrap nopeer Except, obviously, replace the network addresses and netmasks in the last two lines with appropriate settings for your environment. See ntp.conf(5). Note these restrictions apply to outgoing as well as incoming queries, so you can block your own access to NTP servers on the net if not careful. Cheers, Matthew understood. thanks. sasha ___ freebsd-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: ntpdate on boot problem
On Sat Nov 5 11, Robert Simmons wrote: Is there a way to make sure that the interface is UP and working before running ntpdate at boot on a box with a static IP address? After setting ntpdate_enable=YES in rc.conf, I get the following error on boot: Setting date via ntp. Error : hostname nor servname provided, or not known 5 Nov 17:11:05 ntpdate[786]: can't find host 0.freebsd.pool.ntp.org Error : hostname nor servname provided, or not known 5 Nov 17:11:05 ntpdate[786]: can't find host 1.freebsd.pool.ntp.org Error : hostname nor servname provided, or not known 5 Nov 17:11:05 ntpdate[786]: can't find host 2.freebsd.pool.ntp.org 5 Nov 17:11:05 ntpdate[786]: no servers can be used, exiting I've had this problem with machines using DHCP and the solution was to use SYNCDHCP rather than DHCP in rc.conf. However, this box is using a static IP address. But the problem seems to be similar. same here. simply add something like the following to your crontab: 0 10 * * */2 /etc/rc.d/ntpdate onestart cheers. alex Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
re: trouble setting timezone for ukraine
i'm based in ukraine. on 29 Oct 2011 ukraine went to winter time, i.e. we put our clocks one hour back. the current time in ukraine is 8.49 pm; the output of 'date' is: :; date Fri Nov 4 22:49:48 FET 2011 i tried resetting my timezone via 'sysinstall', but to no avail. do i use 'date' to set my system time to the right time, or is there a better way of doing it? :; uname -a FreeBSD localhost 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:30:38 UTC 2011 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 thanks. sasha. ___ freebsd-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: trouble setting timezone for ukraine
On 11/04/11 22:15, Lowell Gilbert wrote: Ivan Klymenko fi...@ukr.net writes: В Fri, 04 Nov 2011 15:43:57 -0400 Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org пишет: Alexander Kapshuk alexander.kaps...@gmail.com writes: i'm based in ukraine. on 29 Oct 2011 ukraine went to winter time, i.e. we put our clocks one hour back. the current time in ukraine is 8.49 pm; the output of 'date' is: :; date Fri Nov 4 22:49:48 FET 2011 i tried resetting my timezone via 'sysinstall', but to no avail. do i use 'date' to set my system time to the right time, or is there a better way of doing it? :; uname -a FreeBSD localhost 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:30:38 UTC 2011 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 I think that your government changed its mind about staying on standard time this year, but only did so at the last minute. So you probably have an outdated timezone file. That would lead the computer to be one hour late rather than two, but it's probably a change you need to make. Also check the system's time in UTC to see whether the clock itself is off. run tzsetup... He already did that, using sysinstall. You can tell that he did it correctly because his date(1) output says FET which is the correct time zone for him. His time zone file is, almost certainly, too old, and will remain so no matter how many times he reinstalls it. I think the decision to change the rules was only made about two weeks ago, and the updated time zone file couldn't have been available until after that. I believe the updated tzdata files were brought into the tree on October 25. thank you all for replying to my email. here's what i tried after reading your replies: tzsetup /usr/share/zoneinfo/Europe/Kiev tzsetup -r didn't help. i believe that sysinstall calls tzsetup as well, but i thought i'd try Ivan's suggestion anyway. here's the output of 'date' i get now: Sat Nov 5 00:21:52 FET 2011 the actual current time is 10.21 pm. any idea when an updated time zone file will become available? thanks. sasha ___ freebsd-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: trouble setting timezone for ukraine
On 11/04/11 22:46, Lowell Gilbert wrote: Alexander Kapshukalexander.kaps...@gmail.com writes: the actual current time is 10.21 pm. Your system's clock may be off as well... any idea when an updated time zone file will become available? It's already in the FreeBSD tree: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/tzdata/europe?rev=1.7.2.2;content-type=text%2Fplain To install it, you'll need something like # zic europe (where europe is the file from the URL above) and then tzsetup(8) should install the correct information. Or you could update your system to anything after October 26. thanks. here's what i did based on my understanding of the instructions given above: # cd $HOME # fetch -o europe http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/tzdata/europe?rev=1.7.2.2;content-type=text%2Fplain # zic europe # tzsetup -r :; date Sat Nov 5 00:54:32 EET 2011 the timezone did change from 'FET' to 'EET', but the time is still wrong by being 1 hour ahead of the actual ukraine time. another thing i tried, which didn't seem to help was set these environment variables in my /etc/rc.conf: (as suggested here: http://forums.freebsd.org/showthread.php?t=10276 [post # 6]) ntpdate_enable=YES ntpdate_flags=-u -b ntpdate_hosts=ua.pool.ntp.org i must be doing something wrong. just don't know what is it. can anyone please suggest what it is i should be doing? thanks. sasha ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
question regarding style(9) and field initialisers in structs
hi there, i found hundreds of the following cases in the FreeBSD src: [...] struct periph_driver { periph_init_func_t init; char*driver_name; TAILQ_HEAD(,cam_periph) units; u_int generation; u_int flags; #define CAM_PERIPH_DRV_EARLY0x01 }; [...] static struct periph_driver dadriver = { dainit, da, TAILQ_HEAD_INITIALIZER(dadriver.units), /* generation */ 0 }; ...is it proper programming practice to forget about the last field, if it would have been initialised to 0? cheers. alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Fwd: re: thefish-0.6.6_5 is marked as broken: does not build [FreeBSD9.0]
howdy, when attempting to build x11/gnome2-power-tools from ports on my FreeBSD9.0 desktop, the package failed to build spitting out the error message below: gnome2-power-tools-2.32.1_2 depends on executable: thefish - not found === Verifying install for thefish in /usr/ports/sysutils/thefish === thefish-0.6.6_5 is marked as broken: does not build. *** Error code 1 Stop in /usr/ports/sysutils/thefish. *** Error code 1 Stop in /usr/ports/x11/gnome2-power-tools :; uname -a FreeBSD localhost 9.0-BETA3 FreeBSD 9.0-BETA3 #0: Sat Sep 24 20:46:57 UTC 2011 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 is there a fix for this? thanks. Alexander Kapshuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
small du(1) question
hi there, the du(1) man page states the following: -B blocksize Calculate block counts in blocksize byte blocks. This is differ- ent from the -k, -m options or setting BLOCKSIZE and gives an estimate of how much space the examined file hierarchy would require on a filesystem with the given blocksize. Unless in -A mode, blocksize is rounded up to the next multiple of 512. is this a doc bug, or does du(1) really always assume that every filesystem's blocksize == 512? cheers. alex ___ freebsd-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: small du(1) question
On Wed Oct 19 11, Chuck Swiger wrote: On Oct 19, 2011, at 12:34 PM, Alexander Best wrote: the du(1) man page states the following: -B blocksize Calculate block counts in blocksize byte blocks. This is differ- ent from the -k, -m options or setting BLOCKSIZE and gives an estimate of how much space the examined file hierarchy would require on a filesystem with the given blocksize. Unless in -A mode, blocksize is rounded up to the next multiple of 512. is this a doc bug, or does du(1) really always assume that every filesystem's blocksize == 512? The default blocksize is 512 bytes. The -B option flag lets you tell du to assume a different filesystem blocksize. so when running freebsd on a hdd with a blocksize of 4k, a simple 'du -h' will always display incorrect results, unless '-B 4096' was also specified? isn't there a way to automatically query the blocksize of the underlying device, instead of always asuming the blocksize is 512 byte? cheers. alex Regards, -- -Chuck ___ freebsd-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: small du(1) question
On Wed Oct 19 11, Alexander Best wrote: On Wed Oct 19 11, Chuck Swiger wrote: On Oct 19, 2011, at 12:34 PM, Alexander Best wrote: the du(1) man page states the following: -B blocksize Calculate block counts in blocksize byte blocks. This is differ- ent from the -k, -m options or setting BLOCKSIZE and gives an estimate of how much space the examined file hierarchy would require on a filesystem with the given blocksize. Unless in -A mode, blocksize is rounded up to the next multiple of 512. is this a doc bug, or does du(1) really always assume that every filesystem's blocksize == 512? The default blocksize is 512 bytes. The -B option flag lets you tell du to assume a different filesystem blocksize. so when running freebsd on a hdd with a blocksize of 4k, a simple 'du -h' will always display incorrect results, unless '-B 4096' was also specified? isn't there a way to automatically query the blocksize of the underlying device, instead of always asuming the blocksize is 512 byte? ...also: since -A is supposed to take the actual file size into account and not the blocksize of the underlying filesystem, shouldn't the output of 'du -A -B4096' and 'du -A' be the same? just tested this on freebsd 7 and freebsd 10 and the outputs differ. cheers. alex cheers. alex Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Can't access a music CD
On Thu Oct 13 11, Lowell Gilbert wrote: Alexander Best arun...@freebsd.org writes: ano ther thought might be to implement an audio cd filesystem, so one could do 'mount -o audiocdfs /dev/cd0 /media/cd' and then all tracks appear as RAW pcm audio files. maybe fuse comes with something like this? /dev/acdntm is no longer supported? nope. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Can't access a music CD
On Wed Oct 12 11, Lowell Gilbert wrote: Michael D. Norwick mnorw...@centurytel.net writes: Thank You for the replies. Got the part about not mounting an audio CD. I wasn't trying to. Inserting the disc in the drive brought up the error message. Mounting a data CD or DVD acts normally and the filesystem on it can be accessed. Okay, so what *are* you you using to try to play the CD? Someone suggested cdcontrol, but these days a lot of computers don't come with the cable to get analog audio directly off the drive. That's why the FAQ suggests xmcd, although it's far from the only option; most of the big desktop environments come with a CD playing application that gets the data digitally. For example, I think the Gnome application is brasero. i think cdcontrol(1) should be adjusted, so that it supports digital audio CD playback. actually analog audio hasn't really been supported by mainboard manufacturers for 10 years. i have a board which comes with an audio connector, but attaching a cable to it, which is attached to a dvd drive doesn't work, for whatever reasons. i also believe newer dvd and br sata devices don't even come with an analog connector nowadays. another application which supports digitally playing audio cds is mplayer(1) via 'mplayer cdda:://' or 'mplayer cddb://'. ano ther thought might be to implement an audio cd filesystem, so one could do 'mount -o audiocdfs /dev/cd0 /media/cd' and then all tracks appear as RAW pcm audio files. maybe fuse comes with something like this? cheers. alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Can't access a music CD
On Thu Oct 13 11, Polytropon wrote: On Thu, 13 Oct 2011 16:25:24 +, Alexander Best wrote: ano ther thought might be to implement an audio cd filesystem, so one could do 'mount -o audiocdfs /dev/cd0 /media/cd' and then all tracks appear as RAW pcm audio files. maybe fuse comes with something like this? What about /dev/acd0t[01,02,03,...] - aren't those supposed to represent the individual audio tracks that could then be interpreted as what they basically are, raw pcm (of cd-audio specification)? i inserted an audio cd and they didn't turn up. i guess ATA_CAM doesn't support individual nodes for tracks. cheers. alex -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Can't access a music CD
On Fri Oct 14 11, Polytropon wrote: On Thu, 13 Oct 2011 22:03:29 +, Alexander Best wrote: On Thu Oct 13 11, Polytropon wrote: On Thu, 13 Oct 2011 16:25:24 +, Alexander Best wrote: ano ther thought might be to implement an audio cd filesystem, so one could do 'mount -o audiocdfs /dev/cd0 /media/cd' and then all tracks appear as RAW pcm audio files. maybe fuse comes with something like this? What about /dev/acd0t[01,02,03,...] - aren't those supposed to represent the individual audio tracks that could then be interpreted as what they basically are, raw pcm (of cd-audio specification)? i inserted an audio cd and they didn't turn up. i guess ATA_CAM doesn't support individual nodes for tracks. When using the (now default) CAM methods (ATAPICAM), I think this is true. Example with a regular music CD: % cdcontrol info Starting track = 1, ending track = 19, TOC size = 162 bytes track start duration block length type - 1 0:02.00 2:05.01 09376 audio 2 2:07.01 1:45.5393767928 audio 3 3:52.54 2:37.49 17304 11824 audio 4 6:30.28 1:52.00 291288400 audio 5 8:22.28 2:08.29 375289629 audio 6 10:30.57 2:23.01 47157 10726 audio 7 12:53.58 4:01.01 57883 18076 audio 8 16:54.59 3:12.37 75959 14437 audio 9 20:07.21 2:09.00 903969675 audio 10 22:16.21 4:19.67 100071 19492 audio 11 26:36.13 3:28.00 119563 15600 audio 12 30:04.13 3:48.73 135163 17173 audio 13 33:53.11 3:51.38 152336 17363 audio 14 37:44.49 1:27.72 1696996597 audio 15 39:12.46 2:15.15 176296 10140 audio 16 41:27.61 2:35.01 186436 11626 audio 17 44:02.62 2:11.00 1980629825 audio 18 46:13.62 2:37.01 207887 11776 audio 19 48:50.63 2:48.01 219663 12601 audio 170 51:38.64 - 232264 - - cdcontrol info Starting track = 1, ending track = 9, TOC size = 82 bytes track start duration block length type - 1 0:02.00 5:58.35 0 26885 audio 2 6:00.35 5:06.06 26885 22956 audio 3 11:06.41 5:40.57 49841 25557 audio 4 16:47.23 5:52.37 75398 26437 audio 5 22:39.60 4:14.09 101835 19059 audio 6 26:53.69 5:16.25 120894 23725 audio 7 32:10.19 3:14.54 144619 14604 audio 8 35:24.73 6:24.15 159223 28815 audio 9 41:49.13 6:16.51 188038 28251 audio 170 48:05.64 - 216289 - - % ls /dev/acd0* /dev/acd0 /dev/acd0t04 /dev/acd0t08 /dev/acd0t12 /dev/acd0t16 /dev/acd0t01 /dev/acd0t05 /dev/acd0t09 /dev/acd0t13 /dev/acd0t17 /dev/acd0t02 /dev/acd0t06 /dev/acd0t10 /dev/acd0t14 /dev/acd0t18 /dev/acd0t03 /dev/acd0t07 /dev/acd0t11 /dev/acd0t15 /dev/acd0t19 otaku% ls|grep cd cd0 cdrom % ls /dev/cd0* /dev/cd0 Maybe obtaining a TOC listing of the CD is required to make the track files appear? However, they are only present for the ATAPI based access (acd0), not for the SCSI CAM based one (cd0). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Can't access a music CD
On Fri Oct 14 11, Polytropon wrote: On Thu, 13 Oct 2011 22:38:45 +, Alexander Best wrote: On Fri Oct 14 11, Polytropon wrote: % ls /dev/acd0* /dev/acd0 /dev/acd0t04 /dev/acd0t08 /dev/acd0t12 /dev/acd0t16 /dev/acd0t01 /dev/acd0t05 /dev/acd0t09 /dev/acd0t13 /dev/acd0t17 /dev/acd0t02 /dev/acd0t06 /dev/acd0t10 /dev/acd0t14 /dev/acd0t18 /dev/acd0t03 /dev/acd0t07 /dev/acd0t11 /dev/acd0t15 /dev/acd0t19 otaku% ls|grep cd cd0 cdrom % dmesg | grep ^acd acd0: DVDR HL-DT-ST DVDRAM GSA-H42N/RL00 at ata1-master UDMA66 acd1: DVDROM HL-DT-STDVD-ROM GDR8163B/0L30 at ata1-slave UDMA33 Those are parallel ATA drives, accessed by the ATAPI drivers. Because I can either access them as ATAPI drives as well as SCSI drives, they show up in both subsystems: % atacontrol list ATA channel 1: Master: acd0 HL-DT-ST DVDRAM GSA-H42N/RL00 ATA/ATAPI revision 7 Slave: acd1 HL-DT-STDVD-ROM GDR8163B/0L30 ATA/ATAPI revision 6 % camcontrol devlist HL-DT-ST DVDRAM GSA-H42N RL00at scbus0 target 0 lun 0 (pass0,cd0) HL-DT-ST DVD-ROM GDR8163B 0L30 at scbus0 target 1 lun 0 (pass1,cd1) In the kernel configuration, I have the following relevant settings: # ATA and ATAPI devices device ata device atadisk # ATA disk drives device ataraid # ATA RAID drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID # Static device numbering device atapicam# For SCSI over ATA # SCSI peripherals device scbus # SCSI bus (required for SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass# Passthrough device (direct SCSI access) device ses # SCSI Environmental Services (and SAF-TE) options SCSI_DELAY=100 # Delay (in ms) before probing SCSI [5000] So I can use both /dev/cd0 and /dev/acd0 to access the same drive, just are required, e. g. /dev/cd0 (equals /dev/dvd for consistency with the growisofs manpage) for burning CDs, and /dev/acd0 for audio playback (when accessed with cdcontrol). OS is x86 v8.2 STABLE of August 2011 with (obviously) custom kernel. If I remember correctly, the cdcontrol utility talks to the ATAPI subsystem which now has been melted somehow with the ATAPICAM (SCSI) way of accessing devices... yeah. you have device atapicam in your config, which creates cam emulation nodes under /dev and enables you to use cam specific software, such as camcontrol, cdrecord or growisofs. i'm running freebsd 10 and here the whole ata subsystem was merged into the cam subsystem. so atacontrol doesn't report anything. so the ata subsystem has been abandoned in favour of cam. that's why e.g. burncd is now unusable under freebsd. cheers. alex -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: problems with IRQ
On Thu Oct 6 11, KES wrote: system work fine, but systat -v show wrong results in compare with vmstat -i seems counter overflow or so.. i'd rather suspect that systat(1) is querying different variables/structures than vmstat(8). their output is different on my system too and after only a few hours of uptime and very little interrupts, i would rule out a counter overflow. cheers. alex systat -v 2 usersLoad 0.95 1.13 1.15 Oct 6 17:36 Mem:KBREALVIRTUAL VN PAGER SWAP PAGER Tot Share TotShareFree in out in out Act 3425966396 813716 9244 1395872 count All 527128 10356 300289639336 pages Proc:Interrupts r p d s w Csw Trp Sys Int Sof Flt 31 cow254k total 50 557k 2614 14k 237k 4028 449127 zfodatkbd0 1 2 ozfod12 ata0 14 9.1%Sys 21.7%Intr 1.6%User 0.0%Nice 67.6%Idle 1%ozfod 221k ehci0 16 ||||||||||| daefr 2 ehci1 23 =++ 37 prcfr 4130 cpu0:timer 42 dtbuf 314 totfr 15799 re0 256 Namei Name-cache Dir-cache142271 desvn react 4131 cpu1:timer Callshits %hits % 87941 numvn pdwak 4129 cpu3:timer 61585762 94 35563 frevn pdpgs 4130 cpu2:timer intrn Disks ad0 da0 pass0298480 wire KB/t 18.79 0.00 0.00193600 act tps 12 0 0 2103500 inact MB/s 0.22 0.00 0.00 9180 cache %busy 0 0 0 1386692 free # vmstat -i interrupt total rate irq1: atkbd02536 0 irq14: ata0 8516926 9 irq16: ehci0 2233740154 2585 irq23: ehci1 2594742 3 cpu0:timer3562265448 4122 irq256: re0 2291967374 2652 cpu1:timer3562481709 4123 cpu3:timer3479157511 4026 cpu2:timer3555645238 4115 Total18696371638 21638 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: Volume control in mplayer resetting 50% when starting / stopping video clips
On Thu Sep 29 11, Antonio Olivares wrote: try 'sysctl hw.snd.vpc_autoreset=0'. Question, On one of my home machines, I have mixer pcm vol set to 100% : [olivares@tricorehome /usr/home/olivares]$ mixer Mixer vol is currently set to 100:100 Mixer pcm is currently set to 100:100 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer rec is currently set to 81:81 Mixer igainis currently set to 0:0 Mixer ogainis currently set to 50:50 Mixer monitor is currently set to 75:75 Recording source: mic in /boot/device.hints hint.pcm.0.vol=100 hint.pcm.1.vol=100 hint.pcm.2.vol=100 But when I play with mplayer, the pcm setting is at 48% I then increase the sound level by using the (*) key to increase it and the (/) key to lower it. I had reason to believe that once I would set up the sound using /boot/device.hints, it would be (set in stone) forever, but on starting up the system, mplayer puts it back at 48%. Will the systcl hw.snd.vpc autoreset=0 command cure this illness as well? If it does, do I add it to /boot/device.hints? and it is a done deal! or no deal! :( I have always wanted to ask but was not sure it it was freebsd or mplayer's configuration. try the following: rm /var/db/mixer*-state sysctl hw.snd.vpc_reset=1 systcl hw.snd.vpc_autoreset=0 echo hw.snd.vpc_autoreset=0 /etc/sysctl.conf cheers. alex Regards, Antonio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Volume control in mplayer resetting 50% when starting / stopping video clips
On Thu Sep 29 11, Polytropon wrote: Since I've installed OS v8.2 (STABLE of late August), mplayer has developed an annoying habit: It accidentally resets its volume settings. I have the following configuration: The vol (master) channel of the mixer is controlled by the volume keys on the top right of my keyboard (Sun Type 7 USB) by issuing mixer vol +5, mixer vol -5 and mixer vol 0 respectively. Worked for many years. When I use the keys 9 and 0 in mplayer, they _should_ modify the volume of the pcm channel - at least they did this in the previous mplayer 0.9something version I've been using many years on on OS v7. They do - as it seems - now too, but: when I move within the movie clip, they reset to some 50% value. Example: I set the volume slider to this value: [|||---] Now I press the left or right arrow key, or the space bar twice, then the volume gets up to the 50% value: [--] This is ANNOYING. Does anyone know a solution for this? try 'sysctl hw.snd.vpc_autoreset=0'. cheers. alex I'm using mplayer-1.0.r20110329_3 compiled from ports. Audio driver is: pcm0: HDA VIA VT1708_8 PCM #0 Analog (play/rec) default pcm1: HDA VIA VT1708_8 PCM #1 Analog (rec) pcm2: HDA VIA VT1708_8 PCM #2 Digital (play) Strangest thing: I can see values change in the output of the mixer command when changing the vol volume, but not if I change the volume from inside mplayer. NB: The _difference_ between pcm and vol is known to me. I _intendedly_ use different setting mechanisms, i. e. vol defines the maximum output level transmitted to the amplifier, and pcm can be used to change the volume within the range from zero up that preset master value. I know that it's possible to have the 9/0 keys change the vol (master) channel, but that's not intended - nor does it seem to be a solution here. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Odd error when doing pkg_version
On Tue Sep 20 11, Ron (Lists) wrote: Starting a couple of days ago, when I run pkg_version I get the following error: /libexec/ld-elf.so.1: Shared object libgdbm.so.3 not found, required by httpd Everything seems to run OK except for this message appearing in the middle of the run. I've tried to narrow it down with no real luck. I've tried searching for ports with libgdbm or ld-elf in them and am not finding any (installed or not). Does anyone know where this is coming from and how to fix it? maybe portupgrade -f httpd\* ? Ron ___ freebsd-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: Odd error when doing pkg_version
On Tue Sep 20 11, Ron (Lists) wrote: Starting a couple of days ago, when I run pkg_version I get the following error: /libexec/ld-elf.so.1: Shared object libgdbm.so.3 not found, required by httpd Everything seems to run OK except for this message appearing in the middle of the run. I've tried to narrow it down with no real luck. I've tried searching for ports with libgdbm or ld-elf in them and am not finding any (installed or not). Does anyone know where this is coming from and how to fix it? maybe portupgrade -f httpd\* ? Yeah, I tried looking at that, but I don't have the httpd port installed or any of the other variations of httpd. Or if I do, it doesn't show up anywhere that I can see. hmmmno idea then. sorry. ___ freebsd-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: files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431db398.gz not found -- snapshot corrupt.
On Sun Aug 14 11, Niclas Zeising wrote: On 2011-08-13 12:08, Roland Smith wrote: On Sat, Aug 13, 2011 at 09:51:41AM +0200, Hartmann, O. wrote: On 08/13/11 09:26, Roland Smith wrote: On Sat, Aug 13, 2011 at 12:43:52AM +0200, Hartmann, O. wrote: On 08/12/11 22:54, Roland Smith wrote: On Fri, Aug 12, 2011 at 08:44:07PM +0200, Hartmann, O. wrote: files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431db398.gz Does this file actually exist if you extract the snapshot? And are the permissions et cetera OK? Roland No, it does not. What I did so far over night: I deleted /var/db/portsnap as well as /usr/ports/. Then I tried again. Again failure. After that it got the ports tree via CVS (make update in /usr/ports). Everything seems all right. I tried portsnap again. portsnap compalins about a non-portsnap-created /usr/ports and please me to use 'extract'. I do ... but then I run into the very same failure: (portsnap fetch extract:) /usr/ports/devel// /usr/ports/devel/ccdoc/ /usr/ports/devel/ccrtp/ /usr/ports/devel/cdash/ files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431db398.gz not found -- snapshot corrupt. I've been looking at the portsnap shellscript. This error message is generated by the shell's built-in test command, specifically '[ -r'. It is looking for a file that was extracted with tar. So the place to look for the bug is IMO 1) the portsnap script itself (differences between 8.2 and 9?) 2) the sh(1)'s built-in test command (ditto) 3) tar (ditto) When you run 'portsnap fetch' it downloads a tgz archive and unpacks it with tar(1). What you could try is to comment out the line 'rm ${SNAPSHOTHASH}.tgz' in portsnap, and test if the tgz file extracts differently using an 8.2-RELEASE tar and the 9-CURRENT tar. If so, that would be a bug! Roland Just a me too!. It happens for me on a recently updated 9-current virtual machine, built with clang. same here: /usr/ports/databases/gigabase/ /usr/ports/databases/godis/ files/39644d98f9e9b9d9a362cbfc075a996683e8a611a4362d883247c9a2e2fa2658.gz not found -- snapshot corrupt. running r224841 on amd64 built with base clang. Regards! -- Niclas ___ freebsd-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: files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431db398.gz not found -- snapshot corrupt.
On Sun Aug 14 11, Olivier Smedts wrote: 2011/8/14 Alexander Best arun...@freebsd.org: On Sun Aug 14 11, Niclas Zeising wrote: On 2011-08-13 12:08, Roland Smith wrote: On Sat, Aug 13, 2011 at 09:51:41AM +0200, Hartmann, O. wrote: On 08/13/11 09:26, Roland Smith wrote: On Sat, Aug 13, 2011 at 12:43:52AM +0200, Hartmann, O. wrote: On 08/12/11 22:54, Roland Smith wrote: On Fri, Aug 12, 2011 at 08:44:07PM +0200, Hartmann, O. wrote: files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431db398.gz Does this file actually exist if you extract the snapshot? And are the permissions et cetera OK? Roland No, it does not. What I did so far over night: I deleted /var/db/portsnap as well as /usr/ports/. Then I tried again. Again failure. After that it got the ports tree via CVS (make update in /usr/ports). Everything seems all right. I tried portsnap again. portsnap compalins about a non-portsnap-created /usr/ports and please me to use 'extract'. I do ... but then I run into the very same failure: (portsnap fetch extract:) /usr/ports/devel// /usr/ports/devel/ccdoc/ /usr/ports/devel/ccrtp/ /usr/ports/devel/cdash/ files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431db398.gz not found -- snapshot corrupt. I've been looking at the portsnap shellscript. This error message is generated by the shell's built-in test command, specifically '[ -r'. It is looking for a file that was extracted with tar. So the place to look for the bug is IMO 1) the portsnap script itself (differences between 8.2 and 9?) 2) the sh(1)'s built-in test command (ditto) 3) tar (ditto) When you run 'portsnap fetch' it downloads a tgz archive and unpacks it with tar(1). What you could try is to comment out the line 'rm ${SNAPSHOTHASH}.tgz' in portsnap, and test if the tgz file extracts differently using an 8.2-RELEASE tar and the 9-CURRENT tar. If so, that would be a bug! Roland Just a me too!. It happens for me on a recently updated 9-current virtual machine, built with clang. same here: /usr/ports/databases/gigabase/ /usr/ports/databases/godis/ files/39644d98f9e9b9d9a362cbfc075a996683e8a611a4362d883247c9a2e2fa2658.gz not found -- snapshot corrupt. running r224841 on amd64 built with base clang. Aparently fixed with latest HEAD *kernel* : # svn log -v -r224842 r224842 | rwatson | 2011-08-13 18:03:40 +0200 (sam 13 aoû 2011) | 10 lignes Chemins modifiés : M /head/sys/kern/vfs_syscalls.c When falloc() was broken into separate falloc_noinstall() and finstall(), a bug was introduced in kern_openat() such that the error from the vnode open operation was overwritten before it was passed as an argument to dupfdopen(). This broke operations on /dev/{stdin,stdout,stderr}. Fix by preserving the original error number across finstall() so that it is still available. Approved by:re (kib) Reported by:cognet You won't be able to buildworld with the buggy kernel, but you can buildkernel and reboot on the new kernel. No problems with portsnap after that (don't know if you have to clean the old portsnap files, I did it). thanks. switching to a newer revision alone didn't solve the issue. however after doing rm -r /var/db/portsnap/files/; rm /var/db/portsnap/t*; portsnap fetch update everything's back to normal. :) -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: oliv...@gid0.org - against HTML email vCards X www: http://www.gid0.org - against proprietary attachments / \ Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas. ___ freebsd-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 sync a file on FreeBSD?
On Fri Jul 22 11, C. P. Ghost wrote: On Fri, Jul 22, 2011 at 8:44 AM, Unga unga...@yahoo.com wrote: Hi all How to sync a file on FreeBSD (esp. on 8.1) to disk? I used fsync(2), but does not immediately flush to disk. I want my writing to a file (a log file) immediately available to other users to read. if you *really* want to see data being written to disk immediately and don't care about performance, do the following: 1) disable the write cache of your hdd (see ada(4) and ata(4) man pages) 2) mount your partition(s) with '-o sync' cheers. alex It shouldn't matter: as soon as write(2) completes, the system-wide file cache -- not the disk -- is updated, and other users will transparently read(2) from that cache, not from the disk. What you probably want is to flush the userspace buffers of your I/O library as soon as you write a line of output: See fflush(3), set[v]buf(3)... You may also use a non-buffered stream for writing logs. fsync(2) has other uses. In particular, it is of NO use as long as the logging application doesn't flush its I/O caches itself. Best regards Unga -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-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: ncal(1) prints control sequences on stdout if stdout is not a tty
On Thu Jul 7 11, Tobias Rehbein wrote: Hi list, being the maintainer of www/nanoblogger, which uses cal(1) to generate the blog calendar, I noticed that ncal(1), and therefore cal(1), prints control sequences to stdout in order to highlight the current date. This scrambles the calendar generated by nanoblogger. I fixed this issue in the port but talking to one of the folks of our local unix user group I was asked why I am not fixing this in ncal(1) as the sane behaviour would be to omit control sequences if stdout is not a tty. Thinking about that I decided to create a patch: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/158580 I just wanted to ask you fellow FreeBSD users what you think about this issue as feedback in PRs tends to be slow. hi there, i've assigned your PR to Edwin Groothuis, who has been dealing with ncal(1) a lot lately. I think chances are pretty high he's going to commit your patch this month. cheers. alex Regards Tobias ___ freebsd-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: Heavy I/O blocks FreeBSD box for several seconds
On Wed Jul 6 11, arrowdodger wrote: 2011/7/6 O. Hartmann ohart...@zedat.fu-berlin.de When performing an update on the ports tree via portsnap fetch update or when checking out (or) large Subversion repositories or when copying large data files (~ 50 to 250 GB in size, results from numerical modelings) or when compiling world, FreeBD 9.0 and FreeBSD 8.2-STABLE tend to freeze for several seconds or drop overall performance dramatically for seconds. On boxes with only console- or terminal access (no GUI) a running 'vi' gets stuck for seconds while one of the processes producing heavy I/O is running, or the output of a 'cat' of a large file stops for several seconds. this might be a scheduling issue. iirc i/o intensive tasks have higher priority than cpu intensive tasks, because they are expected to only issue a i/o request and then free the processor, while cpu intensive tasks occupy the cpu a lot longer. so maybe a process whith cyclic i/o requests blocks processes which aren't doing i/o. maybe playing with ULE's options can improve the situation. since you're running GENERIC, preemption *should* be enabled. however you should double check. i once tried running ULE without preemption and experienced exactly the same situation you described in your mail. for ULE preemption is pretty much mandatory. for the old 4bsd scheduler, running without preemtion doesn't really make that much of a difference, compared to running with preemption. you might also want to try enabling options IPI_PREEMPTION. no idea, if this improves your situation, though. cheers. alex Using X11, this phenomenon gets even worse and the 'freezing' tends to persist sometimes for more than 10 or 15 seconds. I've also had (and still having) this problem on FreeBSD 7.2-RELEASE and 8-STABLE with both UFS and ZFS. Though, i've been running FreeBSD not on powerful servers, but on laptops (2-core CPU's, 2 GB of RAM). But still, KDE4 on Linux performs much better during high disk IO. ___ freebsd-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: gpu support for modern systems
On Thu Jun 23 11, Christopher Bergström wrote: On Thu, Jun 23, 2011 at 6:43 AM, Alexander Best arun...@freebsd.org wrote: hi there, modern systems with their suffisticated gpus provide quite a potential for moving some of the workload from cpu to gpu. for certain stuff gpus are much faster than cpus, like number crunching or encoding/decoding multimedia contents. anybody who is using mplayer(1) in combination with nvidia cards and vdpau has probably experienced how much faster and less cpu intensive things can work out when decoding HD video stuff e.g. since opencl/cuda isn't available under freebsd, it doesn't seem possible to somehow hook the nvidia gpu into the every day freebsd workload that easily. PathScale has HMPP and partial CUDA support on FreeBSD now. Some caveats to this 1) Non-free (We could possibly make the tools free for FreeBSD community, but I'd have to get approval for it) 2) CUDA support isn't complete (Basic core is there and HMPP C/Fortran works) 3) Tesla 20xx series only We offer real support for FreeBSD and it's not using any linux emulator hacks. Let me know if anyone is interested. (If we get enough positive feedback I'll pursue some resolution to #1) i'd really love to see this stuff being made available to the community. i think this could pose a huge advantage to all kinds of audiences: home users, servers people, etc. basically every modern computer comes with a gpu that performs much better at certain tasks than the installed CPU. not making use of the gpu is a huge waste of ressources. i think microsoft had a video on their channel 9 platform demonstrating the huge advantages that one can get when offloading certain tasks onto the gpu. just think of gimp being able to perform 10 times faster! ..or being able to compile world 10 times faster...or...or... ;) cheers. alex ./C ___ freebsd-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: gpu support for modern systems
On Sat Jun 25 11, C. Bergström wrote: On 06/25/11 05:45 PM, Alexander Best wrote: On Thu Jun 23 11, Christopher Bergström wrote: On Thu, Jun 23, 2011 at 6:43 AM, Alexander Bestarun...@freebsd.org wrote: hi there, modern systems with their suffisticated gpus provide quite a potential for moving some of the workload from cpu to gpu. for certain stuff gpus are much faster than cpus, like number crunching or encoding/decoding multimedia contents. anybody who is using mplayer(1) in combination with nvidia cards and vdpau has probably experienced how much faster and less cpu intensive things can work out when decoding HD video stuff e.g. since opencl/cuda isn't available under freebsd, it doesn't seem possible to somehow hook the nvidia gpu into the every day freebsd workload that easily. PathScale has HMPP and partial CUDA support on FreeBSD now. Some caveats to this 1) Non-free (We could possibly make the tools free for FreeBSD community, but I'd have to get approval for it) 2) CUDA support isn't complete (Basic core is there and HMPP C/Fortran works) 3) Tesla 20xx series only We offer real support for FreeBSD and it's not using any linux emulator hacks. Let me know if anyone is interested. (If we get enough positive feedback I'll pursue some resolution to #1) i'd really love to see this stuff being made available to the community. i think this could pose a huge advantage to all kinds of audiences: home users, servers people, etc. basically every modern computer comes with a gpu that performs much better at certain tasks than the installed CPU. not making use of the gpu is a huge waste of ressources. i think microsoft had a video on their channel 9 platform demonstrating the huge advantages that one can get when offloading certain tasks onto the gpu. just think of gimp being able to perform 10 times faster! ..or being able to compile world 10 times faster...or...or... ;) You missed the part where I said it's *Tesla* only. This is really only useful for HPC/life sciences/financial/server market. This isn't to say we're not excited about it, but I'm still unsure who if anyone is using FreeBSD in those areas. ...but is the CUDA api for tesla so much different than the CUDA geforce api? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
gpu support for modern systems
hi there, modern systems with their suffisticated gpus provide quite a potential for moving some of the workload from cpu to gpu. for certain stuff gpus are much faster than cpus, like number crunching or encoding/decoding multimedia contents. anybody who is using mplayer(1) in combination with nvidia cards and vdpau has probably experienced how much faster and less cpu intensive things can work out when decoding HD video stuff e.g. since opencl/cuda isn't available under freebsd, it doesn't seem possible to somehow hook the nvidia gpu into the every day freebsd workload that easily. however the newer generations of CPUs, like intel sandybridge include hardwired gpus (quick sync?) and i guess intel provides an open api for that. it would be really great to do something like: `kldload intel_gpu.ko` ...and have the kernel offload certain computations to the gpu. maybe, with the gpu serving as a second cpu, it would be even possible to ensure 100% uptime with loading a copy of the kernel to the gpu, pointing the instruction pointer at it, loading a new kernel version onto the cpu and switching to the new kernel. :) cheers. alex ps: sorry for not being that accurate here and there, just reading up on sandybridge cpus and the z68 chipset, because i'm in the middle of upgrading my box. ;) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
shmget failed: error 28 (No space left on device)
hi there, i'm running HEAD on amd64. when executing certain linux apps, as well as native freebsd gimp i get the following warnings: (gimp:56100): Gdk-WARNING **: shmget failed: error 28 (No space left on device) shmget() failed: No space left on device Disabling shared memory tile transport ...or similar. can anybody please help me with this and advise me which values are not set properly? i think the following output should give you a clue about my current settings in connection with the warnings. thanks in advance. alex otaku% limits Resource limits (current): cputime infinity secs filesize infinity kB datasize 33554432 kB stacksize 524288 kB coredumpsize infinity kB memoryuseinfinity kB memorylocked infinity kB maxprocesses 5547 openfiles 11095 sbsize infinity bytes vmemoryuse infinity kB pseudo-terminals infinity swapuse infinity kB otaku% sysctl kern.ipc kern.ipc.maxsockbuf: 16777216 kern.ipc.sockbuf_waste_factor: 8 kern.ipc.somaxconn: 1024 kern.ipc.max_linkhdr: 40 kern.ipc.max_protohdr: 40 kern.ipc.max_hdr: 80 kern.ipc.max_datalen: 88 kern.ipc.nmbclusters: 25600 kern.ipc.nmbjumbop: 12800 kern.ipc.nmbjumbo9: 6400 kern.ipc.nmbjumbo16: 3200 kern.ipc.maxpipekva: 33157120 kern.ipc.pipekva: 884736 kern.ipc.pipefragretry: 0 kern.ipc.pipeallocfail: 0 kern.ipc.piperesizefail: 0 kern.ipc.piperesizeallowed: 1 kern.ipc.msgmax: 16384 kern.ipc.msgmni: 40 kern.ipc.msgmnb: 2048 kern.ipc.msgtql: 40 kern.ipc.msgssz: 8 kern.ipc.msgseg: 2048 kern.ipc.semmap: 30 kern.ipc.semmni: 50 kern.ipc.semmns: 340 kern.ipc.semmnu: 150 kern.ipc.semmsl: 340 kern.ipc.semopm: 100 kern.ipc.semume: 50 kern.ipc.semusz: 632 kern.ipc.semvmx: 32767 kern.ipc.semaem: 16384 kern.ipc.shmmax: 536870912 kern.ipc.shmmin: 1 kern.ipc.shmmni: 192 kern.ipc.shmseg: 128 kern.ipc.shmall: 131072 kern.ipc.shm_use_phys: 0 kern.ipc.shm_allow_removed: 0 kern.ipc.numopensockets: 189 kern.ipc.maxsockets: 25600 kern.ipc.nsfbufs: 0 kern.ipc.nsfbufspeak: 0 kern.ipc.nsfbufsused: 0 -- a13x ___ freebsd-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: problem with german umlauts and gtk apps (maybe unicode issue)
On Thu Jun 9 11, Polytropon wrote: On Wed, 8 Jun 2011 19:57:05 +, Alexander Best arun...@freebsd.org wrote: otaku% ls|grep html|hd c3 84 c3 96 c3 9c c3 a4 c3 b6 c3 bc c3 9f 2e 68 |Ã.Ã.Ã.ÀöÌÃ..h| 0010 74 6d 6c 0a |tml.| 0014 [...] is gtk maybe switching to unicode when saving non-asciichars, instead to ISO8859-15? Yes, it looks that way. You _could_ try to use the traditional (non-european) settings: setenv LC_ALL en_US.ISO8859-1 setenv LC_MESSAGES en_US.ISO8859-1 setenv LC_COLLATE de_DE.ISO8859-1 setenv LC_CTYPEde_DE.ISO8859-1 setenv LC_MONETARY de_DE.ISO8859-1 setenv LC_NUMERIC de_DE.ISO8859-1 setenv LC_TIME de_DE.ISO8859-1 (I set them per /ect/csh.cshrc systemwide, and don't set $LANG). The downside is that there is no Euro symbol with this setting, but nobody needs that. :-) however when it accesses a filename it can understand unicode as well as ISO8859-15? I would assume that as ISO-Umlauts and UTF-Umlauts have different byte representation, (iso)öäü.html and (utf)öäü.html would be different file names, so files with the same file name would be possible. can i instruct gtk to always use ISO8859-15 when saving filenames? As I'm not a Gnome user, I can't be specific on that question. Maybe there is a setting available through the gconf tool? A workaround, of course NOT a solution, is to NOT use non-standard characters in file names. I have trained my kids... erm users. Users! :-) to exactly do that, so there won't be problems in file name representation. And only lowercase. And no spaces. If you use, for example, das_uebel_vom_fasz.html instead of Das Übel vom Faß.html, you don't need to care for character representation (as everything will always be ASCII). i think the problem is gtk. when i set LC_ALL=ISO8859-15, gimp complaints about it: (gimp:56139): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. when i set it to lets say LC_ALL=de_DE.ISO8859-15 or LC_ALL=de_DE.ISO8859-1, it doesn't complain. so it recognises that locale. however for some reason it switches to UTF-8 when using chars like ö or ä, although they are perfectly valid chars for the locale i defined. this seems like a gtk bug imho. cheers. alex -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... -- a13x ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
problem with german umlauts and gtk apps (maybe unicode issue)
hi there, for me the output of `locale -a` looks like this: LANG=en_GB.ISO8859-15 LC_CTYPE=de_DE.ISO8859-15 LC_COLLATE=en_GB.ISO8859-15 LC_TIME=de_DE.ISO8859-15 LC_NUMERIC=de_DE.ISO8859-15 LC_MONETARY=de_DE.ISO8859-15 LC_MESSAGES=en_GB.ISO8859-15 LC_ALL= when i do `touch ÄÖÜäöüß` this works great. i can see the correct characters under the console, X term and in gtk file dialogs. *however* when i save a file via the gtk save dialog (lets say from within chromium), the filename only gets displayed correctly in the gtk open dialog. saving a file ÄÖÜäöüß.html from chromium's gtk dialog returns the following under the console or an X term: otaku% ls|grep html|hd c3 84 c3 96 c3 9c c3 a4 c3 b6 c3 bc c3 9f 2e 68 |Ã.Ã.Ã.ÀöÌÃ..h| 0010 74 6d 6c 0a |tml.| 0014 when i start gnome and use the open dialog both the `touch`ed ÄÖÜäöüß file as well as the ÄÖÜäöüß.html saved by chromium looks fine. is gtk maybe switching to unicode when saving non-asciichars, instead to ISO8859-15? however when it accesses a filename it can understand unicode as well as ISO8859-15? can i instruct gtk to always use ISO8859-15 when saving filenames? cheers. alex -- a13x ___ freebsd-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: UDF and DVD's
On Thu May 19 11, Jeremy Chadwick wrote: On Thu, May 19, 2011 at 12:36:02AM -0400, grarpamp wrote: Greetings... :) The first filesystem DVD... other than a movie DVD (DVD-VIDEO?), and the FreeBSD make release DVD's (iso9660)... that I've ever tried to mount, well... don't. It is: Windows 7 Ultimate with Service Pack 1 (x64) - DVD (English) 5/12/2011 You can find the SHA-1 hash here: http://msdn.microsoft.com/en-us/subscriptions/downloads/default.aspx and a sample image, if needed for reference purposes, via any search engine. Anyways, after a little reasearch, does FreeBSD not, in fact, support this UDF version? (I don't yet know how to supply the version of this image for you?) Can the FreeBSD team implement it? Perhaps by porting from NetBSD 5.1's seemingly near complete implementation? http://en.wikipedia.org/wiki/Universal_Disk_Format http://www.osta.org/specs/index.htm As perhaps even a GSOC or Foundation project? Because reading retail optical filesystem formats would seem to be a rather expected capability? I'm guessing the current state within FreeBSD means that I can neither read, nor create, or write, readable (compatible) images at this, or any given, UDF level? As I've no other DVD's to test with... what UDF versions are most DVD data ROM's published in? Is this a blocker for FreeBSD? For me, at least, minimally, that seems to be the case... as I now have no way to rip, mount and add the files to this DVD that I would like to add. Except to use Windows, which I consider to be unreliable at best. Thoughts? Thanks :) freebsd as of now has two problems: 1) it only supports UDF 1.x and *not* UDF 2.x. 2) it does not properly support iso9660 with files 4gb via multiple extents. whenever you mount such a dvd, you see each 4gb file twice. cheers. alex ps: for 2) see http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/95222 Thoughts: please provide commands, full output, etc. that show how you're trying to mount the disc, as well as relevant /dev entries pertaining to your DVD drive. dmesg might also be helpful. And I assume you have looked at mount_udf(8)? -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB | -- a13x ___ freebsd-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: Skype with sound and video support :)
On Tue, 17 May 2011 09:01:41 -0700 Kevin Oberman ober...@es.net wrote: Please put the information in this message (or at least most of it) into ports/UPDATING so a few less people running old kernels will be bitten by the installation of the new Skype port. And what about a wiki page? This way we can extend it in case something important is uncovered. Bye, Alexander. -- http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Input file for shutdown warning?
Hello, Is it possible to do something like this: shutdown -p now /root/somefile How would I do that, or is it even possible? Thanks, Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Boot from DVD to install hangs
Hello, I have burned a DVD (I was out of CDs) image of PowerPC 8.2 to install on my old iMac G3. However, it stops at the line that reads: acd0: DVDROM MATSHITADVD-ROM SR-8184/AA32 at ata0-slave UDMA33 What the heck does that mean, and why does it get stuck? Thanks for any help, Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
CD Boot to install hangs
Hello, I am re-asking as it's rather urgent. I have burned a CD of PowerPC 8.2 to install on my old iMac G3. It boots, but it stops at the line that reads: acd0: DVDROM MATSHITADVD-ROM SR-8184/AA32 at ata0-slave UDMA33 What the heck does that mean, and why does it get stuck? More importantly, how do I fix it? Thanks for any help, Alex ___ freebsd-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 delete a line from setenv?
Hi list, This is a very basic question, but how do I delete a value from setenv? I screwed up when changing a few things...don't ask. Thanks for any help! -Alex ___ freebsd-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: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD
On Fri Apr 22 11, Devin Teske wrote: -Original Message- From: Bruce Cran [mailto:br...@cran.org.uk] Sent: Friday, April 22, 2011 9:35 AM To: Alexander Best Cc: Devin Teske; freebsd-hack...@freebsd.org; freebsd-questions@freebsd.org; 'Teske, Devin' Subject: Re: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD On Fri, 22 Apr 2011 15:41:46 + Alexander Best arun...@freebsd.org wrote: FreeBSD 9.0-CURRENT amd64 A new version of dialog was imported a few days ago - maybe something broke? Looks like `--hline' is not supported anymore. Thinking this should either be patched or documented in ERRATA/UPGRADING. what would be the equivalent to --hline in the new dialog(1) package? -- Bruce Cran _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _ -- a13x ___ freebsd-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: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD
On Thu Apr 21 11, Devin Teske wrote: Hi List Members! I'm proud to announce the first update to my host-setup utility (a dialog(1)-based host configurator for FreeBSD). The following changes have been made: - fixed bug where /etc/resolv.conf would be created with 0600 permissions - fixed bug when switching from one default gateway to NO default gateway - fixed typo in the title of netmask prompt and ifconfig options dialog - fixed bug that prevented entry of netmask if no netmask is configured You can get the updated version here: http://druidbsd.sourceforge.net/download/host-setup.txt otaku% sudo ./host-setup.txt User cancelled. otaku% echo $? 1 otaku% or http://druidbsd.sourceforge.net/download/host-setup.gz or http://druidbsd.sourceforge.net/ For those not familiar with my host-setup(1) utility, it is a 2,500+ line shell script that utilizes the dialog(1) utility to walk the system administrator through setting up their TimeZone, Hostname, Network Interfaces, Default Gateway, and DNS. Our custom FreeBSD installer sets this script as the root login shell, making it very easy for field engineers to quickly get a system on the network without having to use the command-line (and without having to reboot either). Underneath the hood - behind the system of prompts and dialogs - this script manages both the contents of /etc/rc.conf, /etc/resolv.conf, and others as well as utilizing ifconfig(8), route(8), and many other tools to avoid requiring a reboot, prompting you if you would like to make the new changes effective when values are changed from their active settings. Here's the patch to show the details: --- host-setup.3_0 2011-02-10 19:14:30.0 -0800 +++ host-setup 2011-04-21 13:38:58.0 -0700 @@ -2,12 +2,12 @@ # -*- tab-width: 4 -*- ;; Emacs # vi: set tabstop=4 :: Vi/ViM # -# Revision: 3.0 +# Revision: 3.1 # Created: September 21st, 2010 -# Last Modified: December 6th, 2010 +# Last Modified: April 21st, 2011 COPYRIGHT # -# Devin Teske (c)2006-2010. All Rights Reserved. +# Devin Teske (c)2006-2011. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -1353,8 +1353,10 @@ dialog_input_hostname() # permissions and ownership to match resolv.conf(5) before # we write it out and mv(1) it into place). # - quietly chmod $( stat -f '%#Lp' $RESOLV_CONF ) $tmpfile - quietly chown $( stat -f '%u:%g' $RESOLV_CONF ) $tmpfile + local mode=$( stat -f '%#Lp' $RESOLV_CONF 2 /dev/null ) + local owner=$( stat -f '%u:%g' $RESOLV_CONF 2 /dev/null ) + quietly chmod ${mode:-0644} $tmpfile + quietly chown ${owner:-root:wheel} $tmpfile # # Operate on resolv.conf(5), replacing only the last @@ -1646,7 +1648,7 @@ dialog_input_netmask() # while :; do - dialog --title $brand${band:+}${progname:-$0} \ + dialog --title $brand${brand:+ }${progname:-$0} \ --hline Use numbers, punctuation, TAB or ENTER \ --inputbox $msg 10 50 \ $_netmask \ @@ -1664,7 +1666,7 @@ dialog_input_netmask() [ $retval -eq $SUCCESS ] || return $retval # Return success if NULL value was entered - [ $_netmask ] || return $SUCCESS + [ $_input ] || return $SUCCESS # Take only the first word of the user's input _netmask=$_input @@ -1705,7 +1707,7 @@ dialog_input_options() msg=Please enter additional network media options to be msg=$msg passed to ifconfig(8) for the $interface interface: -dialog --title $brand${band:+}${progname:-$0} \ +dialog --title $brand${brand:+ }${progname:-$0} \ --hline Use numbers, punctuation, TAB or ENTER \ --inputbox $msg 9 70 \ $options \ @@ -2183,9 +2185,12 @@ dialog_menu_netdev_edit() local dr=$( sysrc_get defaultrouter ) err err=$( ifconfig $interface inet $ipaddr \ netmask $netmask $options 21 ) - if [ $? -eq $SUCCESS -a $dr ]; then -err=$( route add default $dr 21 ) -[ $? -eq $SUCCESS ] || dialog_msgbox $err + if [ $? -eq $SUCCESS ]; then +if [ $dr -a $dr != NO ]; then + err=$( route add default $dr 21 ) + [ $? -eq $SUCCESS ] || \
Re: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD
On Fri Apr 22 11, Devin Teske wrote: -Original Message- From: Alexander Best [mailto:arun...@freebsd.org] Sent: Friday, April 22, 2011 7:55 AM To: Devin Teske Cc: freebsd-hack...@freebsd.org; freebsd-questions@freebsd.org; Teske, Devin Subject: Re: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD On Thu Apr 21 11, Devin Teske wrote: Hi List Members! I'm proud to announce the first update to my host-setup utility (a dialog(1)-based host configurator for FreeBSD). The following changes have been made: - fixed bug where /etc/resolv.conf would be created with 0600 permissions - fixed bug when switching from one default gateway to NO default gateway - fixed typo in the title of netmask prompt and ifconfig options dialog - fixed bug that prevented entry of netmask if no netmask is configured You can get the updated version here: http://druidbsd.sourceforge.net/download/host-setup.txt otaku% sudo ./host-setup.txt User cancelled. otaku% echo $? 1 otaku% Can you provide me with the output of uname -spr? FreeBSD 9.0-CURRENT amd64 It's working fine for me on FreeBSD 8.1-RELEASE i386. Where you're bombing out is line 2403: [ $retval -eq 0 ] || die User cancelled. Functionally, that is testing the return status of dialog(1) for the initial menu. See if you can execute this (a rough approximation of the initial menu): dialog --clear --title foo --hline bar --menu abc 17 55 9 1 a 2 b 3 c 4 d 5 e X x 2 /tmp/dialog.menu.foo doesn't work. :( otaku% echo $? 255 otaku% cat /tmp/dialog.menu.foo Error: Unknown option --hline. Use --help to list options. otaku% taku% whereis dialog dialog: /usr/bin/dialog /usr/share/man/en.ISO8859-15/man1/dialog.1.gz /usr/src/gnu/usr.bin/dialog otaku% /usr/bin/dialog cdialog (ComeOn Dialog!) version 1.1-20100428 Copyright 2000-2007,2008 Thomas E. Dickey This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [...] A menu should appear. Select an item and then execute for me: echo $? If the above doesn't work, then I suspect that your dialog(1) is not working properly. I'd then go and try this as a sanity check: cd /usr/share/examples/dialog otaku% cd /usr/share/examples/dialog cd: no such file or directory: /usr/share/examples/dialog sh menubox echo $? The result in both cases (as long as you actually select a menu item) should be 0. Also... (just as a sanity check for me) your /bin/sh is not a symlink to bash is it? otaku% file /bin/sh /bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 9.0 (900034), stripped -- Devin or http://druidbsd.sourceforge.net/download/host-setup.gz or http://druidbsd.sourceforge.net/ For those not familiar with my host-setup(1) utility, it is a 2,500+ line shell script that utilizes the dialog(1) utility to walk the system administrator through setting up their TimeZone, Hostname, Network Interfaces, Default Gateway, and DNS. Our custom FreeBSD installer sets this script as the root login shell, making it very easy for field engineers to quickly get a system on the network without having to use the command-line (and without having to reboot either). Underneath the hood - behind the system of prompts and dialogs - this script manages both the contents of /etc/rc.conf, /etc/resolv.conf, and others as well as utilizing ifconfig(8), route(8), and many other tools to avoid requiring a reboot, prompting you if you would like to make the new changes effective when values are changed from their active settings. Here's the patch to show the details: --- host-setup.3_0 2011-02-10 19:14:30.0 -0800 +++ host-setup 2011-04-21 13:38:58.0 -0700 @@ -2,12 +2,12 @@ # -*- tab-width: 4 -*- ;; Emacs # vi: set tabstop=4 :: Vi/ViM # -# Revision: 3.0 +# Revision: 3.1 # Created: September 21st, 2010 -# Last Modified: December 6th, 2010 +# Last Modified: April 21st, 2011 COPYRIGHT # -# Devin Teske (c)2006-2010. All Rights Reserved. +# Devin Teske (c)2006-2011. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -1353,8 +1353,10 @@ dialog_input_hostname() # permissions and ownership to match resolv.conf(5) before # we write it out and mv(1) it into place). # - quietly chmod $( stat -f '%#Lp' $RESOLV_CONF ) $tmpfile - quietly
Re: dialog(1) changed in RELENG_9 (was RE: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD)
On Fri Apr 22 11, Devin Teske wrote: -Original Message- From: Alexander Best [mailto:arun...@freebsd.org] Sent: Friday, April 22, 2011 8:42 AM To: Devin Teske Cc: freebsd-hack...@freebsd.org; freebsd-questions@freebsd.org; 'Teske, Devin' Subject: Re: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD On Fri Apr 22 11, Devin Teske wrote: -Original Message- From: Alexander Best [mailto:arun...@freebsd.org] Sent: Friday, April 22, 2011 7:55 AM To: Devin Teske Cc: freebsd-hack...@freebsd.org; freebsd-questions@freebsd.org; Teske, Devin Subject: Re: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD On Thu Apr 21 11, Devin Teske wrote: Hi List Members! I'm proud to announce the first update to my host-setup utility (a dialog(1)-based host configurator for FreeBSD). The following changes have been made: - fixed bug where /etc/resolv.conf would be created with 0600 permissions - fixed bug when switching from one default gateway to NO default gateway - fixed typo in the title of netmask prompt and ifconfig options dialog - fixed bug that prevented entry of netmask if no netmask is configured You can get the updated version here: http://druidbsd.sourceforge.net/download/host-setup.txt otaku% sudo ./host-setup.txt User cancelled. otaku% echo $? 1 otaku% Can you provide me with the output of uname -spr? FreeBSD 9.0-CURRENT amd64 I haven't yet had a chance to pull that one down and install it yet. Hopefully you can help me out with this one here. It's working fine for me on FreeBSD 8.1-RELEASE i386. Where you're bombing out is line 2403: [ $retval -eq 0 ] || die User cancelled. Functionally, that is testing the return status of dialog(1) for the initial menu. See if you can execute this (a rough approximation of the initial menu): dialog --clear --title foo --hline bar --menu abc 17 55 9 1 a 2 b 3 c 4 d 5 e X x 2 /tmp/dialog.menu.foo doesn't work. :( Bummer! We'll have to fix that. otaku% echo $? 255 otaku% cat /tmp/dialog.menu.foo Error: Unknown option --hline. Use --help to list options. Aha! I think I remember seeing in the list a thread related to swapping out dialog(1) for something new. This must be it. otaku% taku% whereis dialog dialog: /usr/bin/dialog /usr/share/man/en.ISO8859-15/man1/dialog.1.gz /usr/src/gnu/usr.bin/dialog otaku% /usr/bin/dialog cdialog (ComeOn Dialog!) version 1.1-20100428 Copyright 2000-2007,2008 Thomas E. Dickey This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I can't recall as I don't have the thread in front of me, but why was dialog(1) replaced with cdialog? licensing? performance? I guess I could code my script to support this new dialog(1), but... can you see if the below works (I removed the --hline option): dialog --clear --title foo --menu abc 17 55 9 1 a 2 b 3 c 4 d 5 e X x 2 /tmp/dialog.menu.foo If that succeeds, then I can modify my script to not use `--hline' on RELENG_9 and higher (referencing `sysctl -n kern.osreldate` for example). that works with $? == 0 [...] A menu should appear. Select an item and then execute for me: echo $? If the above doesn't work, then I suspect that your dialog(1) is not working properly. I'd then go and try this as a sanity check: cd /usr/share/examples/dialog otaku% cd /usr/share/examples/dialog cd: no such file or directory: /usr/share/examples/dialog Really? I would have thought that the examples in that directory (which are merely shell scripts) would have been recoded for cdialog rather than altogether removed. Maybe there was licensing issues there too. Was there? sh menubox echo $? The result in both cases (as long as you actually select a menu item) should be 0. Also... (just as a sanity check for me) your /bin/sh is not a symlink to bash is it? otaku% file /bin/sh /bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 9.0 (900034), stripped Cool. Though I'm still disappointed that my beloved dialog(1) has gone missing (rather, replaced with something doesn't accept the same arguments and/or options)(which is the problem that we're experiencing here). Is there anybody familiar with the changing-out dialog(1) that can bring me up to speed with reasoning and specifics for RELENG_9? Also, might it be prudent -- before cutting 9_0_RELEASE -- to add the fact that dialog(1) no longer accepts `--hline' to the UPGRADING and/or ERRATA documents? -- Devin -- Devin
How to customize login?
Hello list, I have set a banner welcoming anybody on the console. I still see the FreeBSD/i386 (Amnesiac) (ttyvX) message. How can I stop this from displaying? I'd like the banner to be the only thing displayed. Thanks to anybody helping!___ freebsd-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 customize login?
Yes, but by banner I mean /etc/issue. Here's what I get now when I boot up/switch to a new console: Welcome to the Magnolia/Foothill FreeBSD Portable! This system running FreeBSD 8.2-RELEASE Please log in with the username and password provided to you: /*Note: Until this point it's all been /etc/issue. This next part I want to get rid of.*/ FreeBSD/i386 (Amnesiac) (ttyvX /*where X is the console number*/) Then it is followed by the login prompt. On Apr 15, 2011, at 11:16 PM, Erich Dollansky erichfreebsdl...@ovitrap.com wrote: Hi, you have changed the file /etc/motd? Erich On Saturday 16 April 2011 13:06:16 Alexander Lardner wrote: Hello list, I have set a banner welcoming anybody on the console. I still see the FreeBSD/i386 (Amnesiac) (ttyvX) message. How can I stop this from displaying? I'd like the banner to be the only thing displayed. Thanks to anybody helping!___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to customize login?
Alright, got it done. Thanks! On Apr 15, 2011, at 11:28 PM, Manolis Kiagias son...@otenet.gr wrote: On 04/16/2011 09:06 AM, Alexander Lardner wrote: Hello list, I have set a banner welcoming anybody on the console. I still see the FreeBSD/i386 (Amnesiac) (ttyvX) message. How can I stop this from displaying? I'd like the banner to be the only thing displayed. Thanks to anybody helping!___ This is controlled by the im parameter in /etc/gettytab: default:\ :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\ :if=/etc/issue: I guess you can remove it altogether. Have a look at man gettytab ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
No login prompt when ssh-ing into my machine.
Hi list, Sorry to bother you with two questions in 24hrs :P. I have set up sshd so I can access my FreeBSD box anywhere on my LAN. I've noticed a problem, though, when I try to get in. If I'm in my OS X terminal: alex$ ssh 192.168.2.7 Password: That's the issue. No login, no banner. From the reading and Googling I've done it seems that it's trying to login as my current OS X user, and when I type *ssh alardner@192.168.2.7 *it connects fine, but I don't want to have to do it that way. How can I get it to show the login prompt as well? -Alex ___ freebsd-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: Question : Developing/Making FreeBSD derivative.
On Mon, Apr 11, 2011 at 6:38 AM, Traiano Welcome traiano.welc...@mtnbusiness.co.za wrote: Hi The FreeBSD from scratch article has a lot of good ideas on how to do this. The article is somewhat dated, however, so your going to have to check that some of the methods are still current, and adapt them to your taste: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/article.html Regards, Traiano From: owner-freebsd-questi...@freebsd.org [ owner-freebsd-questi...@freebsd.org] on behalf of Stefan N [ stefanbsd...@yahoo.com] Sent: Monday, April 11, 2011 6:44 AM To: freebsd-questions@FreeBSD.org Subject: Question : Developing/Making FreeBSD derivative. Hi All, My name is Stefan and I am newbie with FreeBSD but I'm interested to learn more about FreeBSD . I am keen to know and learn more on the process to make a new BSD's derivative/fork from FreeBSD ? How is the method for customizing/remastering FreeBSD ? The most interesting part is that if we could make the new fork of FreeBSD with its own uname. If I could make my own BSD derivative and used StefanBSD as its uname, it would be awesome. Thank you in advance. Regards, Stefan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Please, no top posting. Also, thanks for the article. May make an interesting read. ___ freebsd-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: Mailing list etiquette (Was: Re: Linksys-E4200 Wireless N-router)
Can we just drop this matter? It's bad enough that iPhone mail makes this whole ordeal a pain in the butt to read, but in the grand scheme of things, it _just doesn't matter_. I'm subscribed to the list, I expect lots of email from the list that I probably won't read anyway, but at least it's helpful to someone, somehow. My 2 cents. -Alex___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org