Re: pkgng and the old pkg_* programs
On Sun 2012-10-21 18:10:06 UTC+0100, Arthur Chance (free...@qeng-ho.org) wrote: Now that portmaster officially supports pkgng I've converted to using it. Is there any reason to keep the old pkg_* programs around, or can I delete them and add WITHOUT_PKGTOOLS to my /etc/src.conf? I'm running RELEASE-9.0 on amd64 and will update to REL-9.1 as soon as it arrives if that matters. I don't think there's any harm in leaving the pkg_* programs there? Of course if you delete them, a binary upgrade with freebsd-update will most likely put them back. I've switched to pkgng on two machines here. Working well so far, although pkg2ng had some initial problems with the conversion due to some conflicting files that had been installed by different packages... ___ freebsd-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: pkgng and the old pkg_* programs
I have tried it. There's my report ;) Without pkg_*, pkg2ng doesn't work. pkg info shows only himself (pkg-1.0.1). And I have no idea how to register all this stuff which I have already into pkgng database. New [re]installations from ports and directly from pkg work fine. So for new installation it seems to be fine, for old you have to run pkg2ng before you will remove pkg_* binaries. On Sun, 2012-10-21 at 18:36 +0100, Matthew Seaman wrote: On 21/10/2012 18:10, Arthur Chance wrote: Now that portmaster officially supports pkgng I've converted to using it. Is there any reason to keep the old pkg_* programs around, or can I delete them and add WITHOUT_PKGTOOLS to my /etc/src.conf? I'm running RELEASE-9.0 on amd64 and will update to REL-9.1 as soon as it arrives if that matters. There is no particularly good reason to keep pkg_tools around once you've made the switch to pkgng. pkgng should provide replacements for all the pkg_tool functionality and slot into its place quite smoothly. However, I'm not sure that there's been adequate testing on a pkg_tools-free setup, so it is not entirely outside the bounds of possibility that you might run into some odd problems. If you do, please report what happens, as that's definitely a bug that needs fixing. Cheers, Matthew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkgng and the old pkg_* programs
On 22/10/2012 11:57, mbsd wrote: I have tried it. There's my report ;) Without pkg_*, pkg2ng doesn't work. pkg info shows only himself (pkg-1.0.1). And I have no idea how to register all this stuff which I have already into pkgng database. Correct. You need pkg_tools to run pkg2ng. But that's the last thing you'll ever need pkg_tools for... Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: pkgng and the old pkg_* programs
On 10/22/12 11:17, andrew clarke wrote: On Sun 2012-10-21 18:10:06 UTC+0100, Arthur Chance (free...@qeng-ho.org) wrote: Now that portmaster officially supports pkgng I've converted to using it. Is there any reason to keep the old pkg_* programs around, or can I delete them and add WITHOUT_PKGTOOLS to my /etc/src.conf? I'm running RELEASE-9.0 on amd64 and will update to REL-9.1 as soon as it arrives if that matters. I don't think there's any harm in leaving the pkg_* programs there? I doubt whether there's any harm either, it's just the principle of not having useless binaries lying around. Partly it's an old (and obsolete) habit developed in the days when the largest disks were a handful of megabytes in size, but it's also good security practice not to install anything that's unnecessary. Of course if you delete them, a binary upgrade with freebsd-update will most likely put them back. I always upgrade from source, and cut out unused subsystems with the WITHOUT_* knobs in /etc/src.conf, so that's not going to be a problem. I've switched to pkgng on two machines here. Working well so far, although pkg2ng had some initial problems with the conversion due to some conflicting files that had been installed by different packages... Ditto. ___ freebsd-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: pkgng and the old pkg_* programs
On 10/21/12 18:36, Matthew Seaman wrote: On 21/10/2012 18:10, Arthur Chance wrote: Now that portmaster officially supports pkgng I've converted to using it. Is there any reason to keep the old pkg_* programs around, or can I delete them and add WITHOUT_PKGTOOLS to my /etc/src.conf? I'm running RELEASE-9.0 on amd64 and will update to REL-9.1 as soon as it arrives if that matters. There is no particularly good reason to keep pkg_tools around once you've made the switch to pkgng. pkgng should provide replacements for all the pkg_tool functionality and slot into its place quite smoothly. However, I'm not sure that there's been adequate testing on a pkg_tools-free setup, so it is not entirely outside the bounds of possibility that you might run into some odd problems. If you do, please report what happens, as that's definitely a bug that needs fixing. Will do. Thanks to all who worked on pkgng. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
pkgng and the old pkg_* programs
Now that portmaster officially supports pkgng I've converted to using it. Is there any reason to keep the old pkg_* programs around, or can I delete them and add WITHOUT_PKGTOOLS to my /etc/src.conf? I'm running RELEASE-9.0 on amd64 and will update to REL-9.1 as soon as it arrives if that matters. ___ freebsd-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: pkgng and the old pkg_* programs
On 21/10/2012 18:10, Arthur Chance wrote: Now that portmaster officially supports pkgng I've converted to using it. Is there any reason to keep the old pkg_* programs around, or can I delete them and add WITHOUT_PKGTOOLS to my /etc/src.conf? I'm running RELEASE-9.0 on amd64 and will update to REL-9.1 as soon as it arrives if that matters. There is no particularly good reason to keep pkg_tools around once you've made the switch to pkgng. pkgng should provide replacements for all the pkg_tool functionality and slot into its place quite smoothly. However, I'm not sure that there's been adequate testing on a pkg_tools-free setup, so it is not entirely outside the bounds of possibility that you might run into some odd problems. If you do, please report what happens, as that's definitely a bug that needs fixing. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: older version of programs in freebsd
2012. szeptember 29. 13:16 napon Polytropon free...@edvax.de írta: On Sat, 29 Sep 2012 12:48:49 +0200, Istvan Gabor wrote: Hello: ... But I would like to use/keep with libreoffice 3.4 (since I don't like the interface changes they made in version 3.5 and 3.6). How can I do it in FreeBSD? ... Use portdowngrade. This tool is excellent in obtaining older versions of a specific port, for example to make it functional again (like the xzgv image viewer where the last usable version has been xzgv-0.8_9). Thank you. I will try it. Istvan ___ freebsd-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: older version of programs in freebsd
On Sunday 30 September 2012 10:14:23 Istvan Gabor wrote: 2012. szeptember 29. 13:16 napon Polytropon free...@edvax.de írta: Use portdowngrade. This tool is excellent in obtaining older versions of a specific port, for example to make it functional again (like the xzgv image viewer where the last usable version has been xzgv-0.8_9). Thank you. I will try it. If you use portsnap to keep your ports up to date then you can add a REFUSE line in /etc/portsnap.conf to stop new versions of the port being downloaded in the future. -- Mike Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
older version of programs in freebsd
Hello: I am a freebsd beginner. As I understood correctly there is only one ports tree which contains the most up to date (and stable) versions of programs. And there are compiled packages for the different releases, which reflect the version at the time of the release. For example the ports tree currently has libreoffice 3.5.6 version. I guess when FreeBSD RELEASE-9.1 will be final it will also have libreoffice 3.5.x (or 3.6). But I would like to use/keep with libreoffice 3.4 (since I don't like the interface changes they made in version 3.5 and 3.6). How can I do it in FreeBSD? Do I have to build it independently from the ports tree? Or is there an older package that can be installed on newer system? Thanks, Istvan ___ freebsd-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: older version of programs in freebsd
On Sat, 29 Sep 2012 12:48:49 +0200, Istvan Gabor wrote: Hello: I am a freebsd beginner. As I understood correctly there is only one ports tree which contains the most up to date (and stable) versions of programs. And there are compiled packages for the different releases, which reflect the version at the time of the release. Yes. There are both the RELEASE packages (as found on the installation CDs and DVDs) as well as the STABLE packages, regularly created from a snapshot of the continuously developing ports tree. But I would like to use/keep with libreoffice 3.4 (since I don't like the interface changes they made in version 3.5 and 3.6). How can I do it in FreeBSD? Easily. :-) Do I have to build it independently from the ports tree? Use portdowngrade. This tool is excellent in obtaining older versions of a specific port, for example to make it functional again (like the xzgv image viewer where the last usable version has been xzgv-0.8_9). Or is there an older package that can be installed on newer system? If you find the version you want has been distributed with RELEASE, you can use that ports tree or binary packages. You can set PACKAGEROOT (see man pkg_add) in order to install from the RELEASE precompiled package collection instead of from the one updated to reflect the current ports tree. -- 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
X broken - top quarter of the screen not updated by *some* programs - EXA/XAA issue?
Hi This is on HP Compaq 6715s laptop, amd64, r236740M. At some point (prior to the recent png- triggered update) I started seeing this strainge behaviour: The top part of the screen, about 1/4, is not updated by some windows, and the exact behaviour is affected by Option AccelMethod. For example if I have Option AccelMethod EXA Then xterm and xpdf don't update the top part of their windows, which happens to be in top 1/4 of the screen. If I resize the windows such that the top 1/4 of screen is not used, then the whole window is updated. However other programs, e.g. firefox, are not affected. If I switch to XAA: Option AccelMethod XAA then the situation is partly reversed. Now xterm is not affected, but firefox can't update the top part of it's window, if it happens to occupy the top 1/4 of the screen. xpdf behaviour is unaffected - whether I use XAA or EXA, xpdf can't update the top part of its window if it lies in the top 1/4 of the screen. I'm not sure what to make of it. Below are my xorg.conf, xdm.log and Xorg.0.log when I use EXA option. Finally, not sure if it's related, but I have to disable DRI for X to work at all. Please advise Thanks *** xorg.conf *** Section ServerLayout Identifier X.org Configured Screen 0 Screen0 0 0 InputDeviceMouse0 CorePointer InputDeviceKeyboard0 CoreKeyboard EndSection Section Files ModulePath /usr/local/lib/xorg/modules FontPath /usr/local/lib/X11/fonts/misc/ FontPath /usr/local/lib/X11/fonts/TTF/ FontPath /usr/local/lib/X11/fonts/OTF FontPath /usr/local/lib/X11/fonts/Type1/ FontPath /usr/local/lib/X11/fonts/100dpi/ FontPath /usr/local/lib/X11/fonts/75dpi/ FontPath /usr/local/lib/X11/fonts/terminus-font/ EndSection Section InputDevice Identifier Keyboard0 Driver kbd EndSection Section InputDevice Identifier Mouse0 Driver mouse Option Protocol auto Option Device /dev/sysmouse Option ZAxisMapping 4 5 6 7 EndSection Section Monitor #DisplaySize 330 210 # mm Identifier Monitor0 VendorName LPL ModelNamed600 EndSection Section Device Identifier Card0 Driver radeon VendorName Advanced Micro Devices [AMD] nee ATI BoardName RS690M [Radeon X1200 Series] BusID PCI:1:5:0 Option DRI off Option AccelMethod EXA EndSection Section Screen Identifier Screen0 Device Card0 MonitorMonitor0 SubSection Display Viewport 0 0 Depth 24 Modes 1280x1280 EndSubSection EndSection *** xdm.log *** xdm info (pid 50419): Starting xdm info (pid 50419): Starting X server on :0 X.Org X Server 1.7.7 Release Date: 2010-05-04 X Protocol Version 11, Revision 0 Build Operating System: FreeBSD 10.0-CURRENT amd64 Current Operating System: FreeBSD mech-aslap239.men.bris.ac.uk 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r236740M: Tue Jun 12 15:17:21 BST 2012 r...@mech-aslap239.men.bris.ac.uk:/usr/obj/usr/src/sys/BUZI amd64 Build Date: 11 June 2012 12:11:20PM Current version of pixman: 0.24.2 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: /var/log/Xorg.0.log, Time: Wed Jun 20 12:38:59 2012 (==) Using config file: /etc/X11/xorg.conf XRANDR name: VGA-0 Connector: VGA CRT1: INTERNAL_KLDSCP_DAC1 DDC reg: 0x7e50 XRANDR name: LVDS Connector: LVDS LCD1: INTERNAL_LVTM1 DDC reg: 0x7e40 Dac detection success finished output detect: 0 finished output detect: 1 finished all detect Dac detection success Output LCD1 disable success Blank CRTC 0 success Disable CRTC 0 success Blank CRTC 1 success Disable CRTC 1 success Output CRT1 disable success Output LCD1 disable success Blank CRTC 0 success Disable CRTC 0 success Blank CRTC 1 success Disable CRTC 1 success Output LCD1 disable success Blank CRTC 0 success Disable CRTC 0 success Set CRTC 0 Source success Mode 1280x800 - 1440 823 10 Picked PLL 0 best_freq: 71152 best_feedback_div: 159 best_frac_feedback_div: 0 best_ref_div: 2 best_post_div: 16 Set CRTC 0 PLL success Set CRTC Timing success Set CRTC 0 Overscan success Not using RMX scaler 0 setup success
SOLVED - Re: KERNEL - knowing what programs use/need modules
On 1/1/12 9:10 AM, Matt Mullins wrote: On Tue, Dec 27, 2011 at 8:34 AM, Damien Fleuriot m...@my.gd wrote: Now, I'm wondering why in the world a server would need umass, ums and cam ? My understanding is that ums is the USB mouse, which we're never going to need. Umass would be USB mass storage, which again we're never going to need. You appear to be correct with these two. My gut tells me these types of things would be loaded when the corresponding devices are plugged into the system, but if that's wrong, surely someone here will speak up. Regarding CAM I have absolutely no idea why the module is loaded either. That's the SCSI/ATA subsystem; if this is the only of your firewalls to have this module, perhaps it has different disk adapter hardware than the others or another sysadmin decided to load it manually? They use mfi, like a few others which do not have CAM loaded. The best part is, after rebooting these firewalls on their new 8.2-RELEASE-p5 kernel, they haven't loaded neither of UMS, UMASS, or CAM, although I've clearly built them: MODULES_OVERRIDE=cam geom/geom_label if_lagg linprocfs linsysfs linux mfi/mfi_linux usb/umass usb/ums I doubt another admin would have loaded them manually, they don't touch the freebsd stuff very often ;) Ah well, I guess I'll just leave it at that. For anyone reading this thread, Matt's suggestion of using lsof to find what files/binaries could be using the devices seems to be the best one. Ty for the input Matt. ___ freebsd-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: KERNEL - knowing what programs use/need modules
On Tue, Dec 27, 2011 at 8:34 AM, Damien Fleuriot m...@my.gd wrote: Now, I'm wondering why in the world a server would need umass, ums and cam ? My understanding is that ums is the USB mouse, which we're never going to need. Umass would be USB mass storage, which again we're never going to need. You appear to be correct with these two. My gut tells me these types of things would be loaded when the corresponding devices are plugged into the system, but if that's wrong, surely someone here will speak up. Regarding CAM I have absolutely no idea why the module is loaded either. That's the SCSI/ATA subsystem; if this is the only of your firewalls to have this module, perhaps it has different disk adapter hardware than the others or another sysadmin decided to load it manually? Are there any ways of finding what programs, if any, require or use said modules ? I'd probably start with judicious use of sysutils/lsof to find any programs that have the relevant device nodes open. grep -Rl through your binary directories might also find something, but I'd expect a very high false-positive rate with that. Hope any of this helps, Matt Mullins ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
KERNEL - knowing what programs use/need modules
Hello list, I'm currently upgrading some firewalls following the 5 advisories we received on the 23rd. One of these firewalls shows, for no reason that I can fathom, the following kldstat: # kldstat Id Refs AddressSize Name 1 26 0x8010 8361c0 kernel 21 0x80a12000 4f9b if_lagg.ko 31 0x80a17000 5e99 umass.ko 41 0x80a1d000 42b27cam.ko 51 0x80a6 22f1 ums.ko Now, I'm wondering why in the world a server would need umass, ums and cam ? My understanding is that ums is the USB mouse, which we're never going to need. Umass would be USB mass storage, which again we're never going to need. Regarding CAM I have absolutely no idea why the module is loaded either. Are there any ways of finding what programs, if any, require or use said modules ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How can I disable Internet access for programs running in Wine?
I just can find any solution... Please help! thanks.. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How can I disable Internet access for programs running in Wine?
Nothing to do oh, freebsd-questions stay in bat! 2011/02/25 01:07:58 -0800 erikmccaskey64 erikmccaske...@zoho.com = To freebsd : e I just can find any solution... I was sure that ipfw can select packets by process name? at least there are pf and ipf options out there... You can always use jail(4) in conjunction with the separate IP address, like tap(4) or lo(4) whic can be aliased. Then you can provide any kind of internet access for your wine-drunk jail environment ;-) Oh, and... you can use the / as a root for your jail. You need to restrict the access of the application(s) to your internet interface(s) only, right? 73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB 12F8 0CE1 4AAC A0E2 6627) -- http://vereshagin.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
apache Perl CGI programs
I have Perl and apache installed on my system. Do I have to do anything additional to get apache to run Perl CGI programs? Is putting the perl script in the cgi-bin directory at /usr/local/www/data all it takes to make things work? ___ freebsd-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: apache Perl CGI programs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/04/2010 09:38:38, Fbsd1 wrote: I have Perl and apache installed on my system. Do I have to do anything additional to get apache to run Perl CGI programs? Is putting the perl script in the cgi-bin directory at /usr/local/www/data all it takes to make things work? Pretty much. Look at the apache documentation for 'ScriptAlias' and 'Options ExecCGI' and 'Add-Handler cgiscript .cgi' for details, but these should be set up already for the cgi-bin directory. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvUAwYACgkQ8Mjk52CukIzvfACfdEYDqJRFtyg+6IoLq1J0YTpK SEcAn0Z4+038CYWpkwz2etoHHWJJNPPL =sM0o -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Override overrides of X resources by various programs
Dear list, more and more annoying things are happening. Programs modify X defaults in an unacceptable manner. For example, the Acrobat Reader (e. g. acroread8 port) displays an ugly white mouse pointer where the normal black pointer should be. The same does Opera (e. g. opera-9.63 port) when doing some work; the mouse pointer gets a white shape again and is accompanied by an old fashioned hourglass. And Gimp is an example, too, allthough I can understand this behaviour when the mouse pointer should get the shape of a certain tool (e. g. fill tool), but it shouldn't change the setting just for simple things like the rectangular selection tool - white mouse cursor with a symbolized selection rectangle (which could be an addition to the standard cursor). My question: Is there any way to prohibit such modifications of resources, or do I have to live with this inconsistency? It worked in the past, why can't it work today? :-) -- 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
Fund Raising Programs
Dear Group Planner, A group sponsored event can be planned and promoted with very little work and practically no expense on your part. We have a large number of co-hosted and private customized group departures for you to consider. It is good to have guaranteed departures and high commission revenues that you can count on. Prices for 2010 are, in many cases, at 2007 rates. Airlines and hotels are ready to negotiate. Please take a look at the tour links below and call on me if there is anything that we can do to help you with future programs - no matter what the destination or theme of the package. Sincerely Yours, Tim Nyce Sales Manager/Pilgrim Tours tn...@pilgrimtours.com www.pilgrimtours.com Private Customized Packages World-wide Scheduled, Cohosted Packages to Israel, Egypt, Greece, Turkey, Italy, Jordan, Syria, Oberammergau, England, etc.. Example Itineraries Below: Florence Venice Spring Tour Cohosted or Private Tours $1799.00 per person double (commission - $180) http://pilgrimtours.com/alumni/tours/FlorenceVenice.htm Egypt Optional Nile Cruise Many Dates in 2010 $1298.00 per person double (commission - $130) Price Includes: Round trip airfare, 6 nights 4 star accommodations (buffet breakfast included), tour of Cairo, Egypt Museum, welcome and farewell dinners, roundtrip airport transfers. http://www.pilgrimtours.com/alumni/tours/cairo8.htm Spain Winter Break - First Class January 5-12, 2010 Other dates available. $1711.00 per person double (commission - $170) Price Includes: Round trip airfare, 6 nights first class accommodations (buffet breakfast included), tour of Malaga, welcome and farewell dinners, roundtrip airport transfers, morning tour of Malaga. http://www.pilgrimtours.com/broadcast/Alumni/Madrid_Malaga.htm Rome Winter Break January 5-12, 2010Many dates available. $1469.00 per person double (commission - $150) Price Includes: Roundtrip air, air taxes, 6 night's accommodations at the Beverly Hills Hotel (superior 4 star property), American breakfast daily, welcome and farewell dinners, roundtrip private airport transfers in Rome, full day tour of Rome. Optional excursions: Florence, Pompeii, Ostia Antica, theatre. http://www.pilgrimtours.com/alumni/tours/villanovarome.htm Athens Winter Break January 5-12, 2010Many dates available. $1498.00 per person double (commission - $150) Price Includes: Roundtrip air (bulk rates available nation-wide), air taxes, 6 night's accommodations (superior 4 star property), American breakfast daily, welcome and farewell dinners, roundtrip private airport transfers in Athens, day tour of Athens. Optional excursions: Islands day-cruise, Delphi, Cape Sounion, Mycenae, Athen Museums. http://www.pilgrimtours.com/alumni/tours/athens8.htm Winter in Southern Spain - Tourist Class November 2009 - March 2010A GREAT VALUE!! $1393.00 per person double (commission - $140) Price Includes: Round trip airfare, 6 nights accommodations at Villa Turistica de Priego (buffet breakfast included), 4 dinners at the hotel, 1 dinner at a local restaurant in Sevilla, 1 lunch at a local restaurant in Cordoba, Flamenco show in Sevilla, all sightseeing. http://www.pilgrimtours.com/alumni/tours/SouthernSpain.htm China Beijing Adventure March 23-30, 2010 Many dates available. $1849.00 per person double (commission - $185) Price Includes: Airfare from Chicago and NYC, first class lodging for 6 nights, 6 breakfasts, 1 lunch and 1 dinner, touring as appears on itinerary. http://www.pilgrimtours.com/alumni/tours/chinaBeijing.htm Peru and Amazon Adventure February 16-26, 2010 Many dates available. $2585.00 per person double (commission - $260) Price Includes: Roundtrip airfare from JFK, hotel first class accommodations, breakfast, lunch and dinner daily, full time tour manager, sightseeing and admissions per itinerary, deluxe motorcoach transportation, air taxes, baggage handling, taxes, hotel fees, and meal gratuities. http://www.pilgrimtours.com/alumni/tours/Peru.htm Many Tour Cruise Destinations Greece, Turkey, Italy, France, Malta, Sicily, Israel, Jordan, Egypt, British Isles, France, Germany, Switzerland, Scandinavia, Central E. Europe, Morocco, Tunisia, South Africa, Latin America, Mexico, Hawaii and many tours in the USA Canada. 8 Day Packages - Less then $1600: Pilgrim has numerous one week programs including meals, lodging, great sightseeing options for under $1600! SALES MANAGER - TIM NYCE Pilgrim has much to offer! You have the opportunity to travel on prospective alumni programs at below our cost, free web page construction, generous commissions, mail and advertising contribution, color brochures, posters, post cards, plus the security of error omission insurance with guaranteed departures and no minimum numbers. Information: 800.322.0788ext. 105 tn
Debugging multithreaded programs with gdb66 doesn't work
Hi there, I'm trying to debug some multithreaded programs with gdb 6.6, however commands such as info threads or threads apply all bt simply do nothing and show nothing. Am I missing something here? Is this the appropriate list to ask? Thanks, Raphael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
root user, graphical programs
FreeBSD 7, KDE 3.5 To install Matlab (in linux compat mode), one must execute the matlab install program as root. The installer is graphical. When from a KDE terminal window, I switch to root (# su -) and try a graphical program, e.g. # xpdf, I get Can't open display. The FreeBSD handbook (10.5.1) says in that case type setenv HOME ~USER (USER the username where the su command was given). This doesn't help I still get Can't open display. What's wrong and how to solve it? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: root user, graphical programs
Pieter Donche wrote: FreeBSD 7, KDE 3.5 To install Matlab (in linux compat mode), one must execute the matlab install program as root. The installer is graphical. When from a KDE terminal window, I switch to root (# su -) and try a graphical program, e.g. # xpdf, I get Can't open display. The FreeBSD handbook (10.5.1) says in that case type setenv HOME ~USER (USER the username where the su command was given). This doesn't help I still get Can't open display. What's wrong and how to solve it? That's the standard X Windows security stopping other users opening windows on your screen. In this case, something like: % xhost +LOCAL: % su # {...whatever you need to do to install your app...} # exit % xhost -LOCAL: However be aware of the risks: xhost +LOCAL: means that any other user of the same machine can access your display and potentially capture any input including (for instance) the root password. Hmmm... Actually, a more secure means of doing the same thing, that only grants access to your display by the local root user would be: % xauth extract - $DISPLAY ~/authtoken % su - # echo $HOME (This should return /root -- this is important so that the correct .Xauthority file gets updated.) # xauth merge /home/your-uid/authtoken # rm /home/your-uid/authtoken # setenv DISPLAY :0.0 # {...whatever you need to do to install your app...} Now any X programs run by root will open on your display. To revoke this permission you can simply remove /root/.Xauthority or for finer grained control you can use # xauth remove $DISPLAY Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: root user, graphical programs
No luck (yet) I tried both methods, (with xpdf as a graphical program) The first still gives # xpdf Can't open display The second method # xpdf No protocol specified Error: Can't open display: :0.0 (after su -, $HOME was indeed /root) (in /root .Xauthority was changed/created, $DISPLAY is :0.0) On Fri, 15 May 2009, Matthew Seaman wrote: Pieter Donche wrote: FreeBSD 7, KDE 3.5 To install Matlab (in linux compat mode), one must execute the matlab install program as root. The installer is graphical. When from a KDE terminal window, I switch to root (# su -) and try a graphical program, e.g. # xpdf, I get Can't open display. The FreeBSD handbook (10.5.1) says in that case type setenv HOME ~USER (USER the username where the su command was given). This doesn't help I still get Can't open display. What's wrong and how to solve it? That's the standard X Windows security stopping other users opening windows on your screen. In this case, something like: % xhost +LOCAL: % su # {...whatever you need to do to install your app...} # exit % xhost -LOCAL: However be aware of the risks: xhost +LOCAL: means that any other user of the same machine can access your display and potentially capture any input including (for instance) the root password. Hmmm... Actually, a more secure means of doing the same thing, that only grants access to your display by the local root user would be: % xauth extract - $DISPLAY ~/authtoken % su - # echo $HOME (This should return /root -- this is important so that the correct .Xauthority file gets updated.) # xauth merge /home/your-uid/authtoken # rm /home/your-uid/authtoken # setenv DISPLAY :0.0 # {...whatever you need to do to install your app...} Now any X programs run by root will open on your display. To revoke this permission you can simply remove /root/.Xauthority or for finer grained control you can use # xauth remove $DISPLAY Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW ___ freebsd-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 user, graphical programs
On Fri, 15 May 2009 10:38:34 +0200 (CEST), Pieter Donche pieter.don...@ua.ac.be wrote: No luck (yet) I tried both methods, (with xpdf as a graphical program) The first still gives # xpdf Can't open display The second method # xpdf No protocol specified Error: Can't open display: :0.0 (after su -, $HOME was indeed /root) (in /root .Xauthority was changed/created, $DISPLAY is :0.0) Maybe very unelegant, but has a chance to work: % su - Password: # cp /home/your-username/.Xauthority /root # setenv DISPLAY :0.0 # xpdf This assumes that csh is your dialog shell. If it's not, you may need another syntax to change DISPLAY, e. g. for BASH. It worked in the past, but who knows what still works in X... :-) -- Polytropon From 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: root user, graphical programs
On Friday 15 May 2009, Pieter Donche wrote: No luck (yet) I see from your original post that you're using KDE so you could try a third way: Use ALT + F2 to open the run dialog. Enter xpdf or whatever in the Command area. Click on Options, select Run as a different user and fill in the username and password for root. -- Mike Clarke ___ freebsd-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 user, graphical programs
On Fri, 15 May 2009, Mike Clarke wrote: On Friday 15 May 2009, Pieter Donche wrote: I see from your original post that you're using KDE so you could try a third way: Use ALT + F2 to open the run dialog. Enter xpdf or whatever in the Command area. Click on Options, select Run as a different user and fill in the username and password for root. OK, this works.. Also the other method (extract a $DISPLAY from ~/.Xauthority and nerging in /root/.Xauhtority also works now, but my DISPLAY was not :0.0 but MYPCHOSTNAME:0 (from a windows PC I was logged on to the FreeBSD machine using XMing X-windows terminal emulator) ___ freebsd-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 user, graphical programs
Pieter Donche wrote: On Fri, 15 May 2009, Mike Clarke wrote: On Friday 15 May 2009, Pieter Donche wrote: I see from your original post that you're using KDE so you could try a third way: Use ALT + F2 to open the run dialog. Enter xpdf or whatever in the Command area. Click on Options, select Run as a different user and fill in the username and password for root. OK, this works.. Also the other method (extract a $DISPLAY from ~/.Xauthority and nerging in /root/.Xauhtority also works now, but my DISPLAY was not :0.0 but MYPCHOSTNAME:0 (from a windows PC I was logged on to the FreeBSD machine using XMing X-windows terminal emulator) You do realise that you have now told the whole world that you use an unencrypted X session over a network? That's at least as bad -- probably worse -- than using rsh(1) or unencrypted telnet. I hope you haven't logged into any sensitive accounts or typed a credit card number into a web browser over that link... You'ld be well advised to install putty on your windows box and use the ability to tunnel X over a SSH connection. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: root user, graphical programs
Pieter Donche wrote: FreeBSD 7, KDE 3.5 To install Matlab (in linux compat mode), one must execute the matlab install program as root. The installer is graphical. When from a KDE terminal window, I switch to root (# su -) and try a graphical program, e.g. # xpdf, I get Can't open display. The FreeBSD handbook (10.5.1) says in that case type setenv HOME ~USER (USER the username where the su command was given). This doesn't help I still get Can't open display. What's wrong and how to solve it? Since you're using KDE there is an easy way. Type kdesu xpdf at the prompt in a terminal (konsole for example) and it will pop up a box asking for the root password. This is the canonical method of starting graphical programs under KDE as root. It is the same mechanism as setting the property Start as other user to root when editing an icon's settings. The former is best suited for ad hoc impromptu one off situations, while the latter would be for making permanent changes to how clicking an icon behaves. -Mike ___ freebsd-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 deceive programs as if I were a local user?
On Thu, Apr 23, 2009 at 11:17:11AM -0700, Chris Cowart wrote: This error means the program tried to look up some name information for your UID number and failed. You need to configure the data source in /etc/nsswitch.conf: group: files cache ldap passwd: files cache ldap I've already set like you showed. But, not for /compat/linux/etc/nsswitch.conf . Configuring nsswitch.conf in linux emulation environment, the program worked properly. I did't know I had to set /compat/linux/etc/nsswitch.conf for linux binary compatibility. Thanks. -- Iwao, Koichiro m...@club.kyutech.ac.jp ___ freebsd-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 deceive programs as if I were a local user?
On Sat, Apr 25, 2009 at 05:34:16PM +0900, Kouichiro Iwao typed: On Thu, Apr 23, 2009 at 11:17:11AM -0700, Chris Cowart wrote: This error means the program tried to look up some name information for your UID number and failed. You need to configure the data source in /etc/nsswitch.conf: group: files cache ldap passwd: files cache ldap I've already set like you showed. But, not for /compat/linux/etc/nsswitch.conf . Configuring nsswitch.conf in linux emulation environment, the program worked properly. I did't know I had to set /compat/linux/etc/nsswitch.conf for linux binary compatibility. That's interesting. Was there a /compat/linux/etc/nsswitch.conf before? I think that if it's not there, the linux emulation layer should take the system's /etc/nsswitch.conf as default. But I might be wrong(TM). ___ freebsd-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 deceive programs as if I were a local user?
On Sat, Apr 25, 2009 at 11:22:22AM +0200, Ruben de Groot wrote: Configuring nsswitch.conf in linux emulation environment, the program worked properly. I did't know I had to set /compat/linux/etc/nsswitch.conf for linux binary compatibility. That's interesting. Was there a /compat/linux/etc/nsswitch.conf before? I think that if it's not there, the linux emulation layer should take the system's /etc/nsswitch.conf as default. But I might be wrong(TM). What does TM mean? :-( Yes. I didn't make /compat/linux/etc/nsswitch.conf but just modified the file that had already existed. I also configured /compat/linux/etc/yp.conf and /compat/linux/etc/sysconfig/network to use NIS. I examined the linux emulator takes /compat/linux/etc/nsswitch.conf. /etc/nsswitch.conf: $ grep -v -e ^$ -e ^# /etc/nsswitch.conf group: compat group_compat: nis hosts: files dns networks: files passwd: compat passwd_compat: nis shells: files services: compat services_compat: nis protocols: files rpc: files /compat/linux/etc/nsswitch.conf: $ grep -v -e ^$ -e ^# /compat/linux/etc/nsswitch.conf passwd: files nis shadow: files nis group: files nis hosts: files dns bootparams: nisplus [NOTFOUND=return] files ethers: files netmasks: files networks: files protocols: files rpc:files services: files netgroup: nisplus publickey: nisplus automount: files nisplus aliases:files nisplus And the sample program sample.c: #includesys/types.h #includestdio.h #includepwd.h int main(){ struct passwd *pw; pw = getpwuid(getuid()); if(pw){ printf(success\n); } else { printf(error\n); } } I compiled the sample for both freebsd and linux binaries. With the setting above I ran each binary, both binaries resulted success. But when nis is not written in linux emulation environment's nsswitch.conf, the linux binary results error. -- Iwao, Koichiro m...@club.kyutech.ac.jp ___ freebsd-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 deceive programs as if I were a local user?
On Sat, Apr 25, 2009 at 11:22:22AM +0200, Ruben de Groot wrote: On Sat, Apr 25, 2009 at 05:34:16PM +0900, Kouichiro Iwao typed: On Thu, Apr 23, 2009 at 11:17:11AM -0700, Chris Cowart wrote: This error means the program tried to look up some name information for your UID number and failed. You need to configure the data source in /etc/nsswitch.conf: group: files cache ldap passwd: files cache ldap I've already set like you showed. But, not for /compat/linux/etc/nsswitch.conf . Configuring nsswitch.conf in linux emulation environment, the program worked properly. I did't know I had to set /compat/linux/etc/nsswitch.conf for linux binary compatibility. That's interesting. Was there a /compat/linux/etc/nsswitch.conf before? I think that if it's not there, the linux emulation layer should take the system's /etc/nsswitch.conf as default. But I might be wrong(TM). Sorry, I misunderstood what you meant. # cd /compat/linux/etc # mv nsswitch.conf nsswitch.conf.dummy And I ran the sample program, the linux binary resuled success. The linux emulator seems to take the /etc/nsswitch.conf. However, it is true that /compat/linux/etc/nsswitch.conf had already existed when I was going to edit. -- Iwao, Koichiro m...@club.kyutech.ac.jp ___ freebsd-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 deceive programs as if I were a local user?
Hi. I'm going to connect to the remote server with nxclient. But, net/linux-nx-client does't work with non-local (NIS or LDAP) account. Connecting the remote server, nxclient says connection error and I found out that it caused by nxssh. If nxssh was executed by a NIS account, nxssh says, [m...@trueno ~]$ nxssh You don't exist, go away! How to deceive programs as if I were a user in /etc/master.passwd? -- Iwao, Koichiro m...@club.kyutech.ac.jp ___ freebsd-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 deceive programs as if I were a local user?
On Thu, Apr 23, 2009 at 04:32:29PM +0900, Kouichiro Iwao typed: Hi. I'm going to connect to the remote server with nxclient. But, net/linux-nx-client does't work with non-local (NIS or LDAP) account. Connecting the remote server, nxclient says connection error and I found out that it caused by nxssh. If nxssh was executed by a NIS account, nxssh says, [m...@trueno ~]$ nxssh You don't exist, go away! How to deceive programs as if I were a user in /etc/master.passwd? I don't know anything of nxssh, but it sounds like a pam issue. Ruben ___ freebsd-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 deceive programs as if I were a local user?
Ruben de Groot wrote: On Thu, Apr 23, 2009 at 04:32:29PM +0900, Kouichiro Iwao typed: Hi. I'm going to connect to the remote server with nxclient. But, net/linux-nx-client does't work with non-local (NIS or LDAP) account. Connecting the remote server, nxclient says connection error and I found out that it caused by nxssh. If nxssh was executed by a NIS account, nxssh says, [m...@trueno ~]$ nxssh You don't exist, go away! How to deceive programs as if I were a user in /etc/master.passwd? I don't know anything of nxssh, but it sounds like a pam issue. This error means the program tried to look up some name information for your UID number and failed. You need to configure the data source in /etc/nsswitch.conf: group: files cache ldap passwd: files cache ldap -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley pgpfcq6FgaN0i.pgp Description: PGP signature
No sound with in Gnome gtk programs, qt programs do have sound
I can't get any sound with programs such as mplayer and exaile. However vlc (qt) and Gnash have working sound (on the same desktop!). Gnome's soundmixer doesn't recognize my soundcard (intel_hda). This appears to be the problem. I searched the FreeBSD Gnome project page but didn't find a answer. Any ideas what might be wrong? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Programs loading but sitting in limbo whilst not displaying
Im running FreeBSD 7.1-STABLE AMD64 KDE4.1.4 and recently for no reason i can think of when i try and load FireFox or Thunderbird, according to my process list, the applications are running, but yet they dont ever show up in KDE to use//liaise with. I have even started them from command line but again, nothing, it just sits there, no error msg, but process list again, sais there running. I have tried recompiling both ports with no success and im runnin gout of theorys as to whats happening. Any ideas/thoughts welcomed. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Programs loading but sitting in limbo whilst not displaying
Im running FreeBSD 7.1-STABLE AMD64 KDE4.1.4 and recently for no reason i can think of when i try and load FireFox or Thunderbird, according to my process list, the applications are running, but yet they dont ever show up in KDE to use//liaise with. I have even started them from command line but again, nothing, it just sits there, no error msg, but process list again, sais there running. I have tried recompiling both ports with no success and im runnin gout of theorys as to whats happening. Any ideas/thoughts welcomed. ___ freebsd-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: Programs loading but sitting in limbo whilst not displaying
Im running FreeBSD 7.1-STABLE AMD64 KDE4.1.4 and recently for no reason i can think of when i try and load FireFox or Thunderbird, according to my process list, the applications are running, but yet they dont ever show up in KDE to use//liaise with. I have even started them from command line but again, nothing, it just sits there, no error msg, but process list again, sais there running. I have tried recompiling both ports with no success and im runnin gout of theorys as to whats happening. Any ideas/thoughts welcomed. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Hi Warren I also had this problem, I resolved it by; portupgrade -Rf firefox My understanding is that this goes and forcibly builds all of the ports that firefox depends on, then firefox itself. If you run the commands with truss it will give you some debug information on what it is getting stuck on. Kind Regards Craig Butler ___ freebsd-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: Programs loading but sitting in limbo whilst not displaying
Hi Warren I also had this problem, I resolved it by; portupgrade -Rf firefox My understanding is that this goes and forcibly builds all of the ports that firefox depends on, then firefox itself. If you run the commands with truss it will give you some debug information on what it is getting stuck on. Kind Regards Craig Butler Thanks, i did this and everything works fine now, guess something in the packagaes got a bit screwd around somewhere. ___ freebsd-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: programs...
What about Miro? On Fri, 2009-01-09 at 23:19 -0800, Gary Kline wrote: On Fri, Jan 09, 2009 at 08:43:09AM -0600, David Kelly wrote: On Thu, Jan 08, 2009 at 11:03:29PM -0800, Gary Kline wrote: Guys, I've going to give away what I think could be at least a multi-thousand dollar idea, something we nearly have already. And a wish-list for a program that does not, AFAIK, exist. Its called iTunes. First, the wish-for:: given all the kinds of video and audio programs that are now on the web, how difficult would it be to have a GUI [interface] program pop up a screen with date of airing, and/or date of podcast? Not to exceed several hours worth of recorded podcasts... or live recording. iTunes will suck them down and has settings for when (if ever) to delete old podcasts. I can only give examples of thing I watch, but this will give you some idea. And bear in mind that at least FreeBSD cannot capture some programs. Like FRONTLINE on PBS. But for the sake of argument, let's say that firefox or whatever browser or kmplayer or another player did have the proper codecs. This GUI app would find, fetch, and store in /usr/local/tmp FRONTLINE, NOVA, In Our Time and Everyday Ethics [BBC], and Marketplace, Weekend, 10jan09. iTunes stores in ~/Music/iTunes/iTunes Music/Podcasts/ Music/audio only, or video too? When these programs were safely in /usr/local/tmp/Pods, the program would send mail or otherwise inform the user. Script from cron to detect presence of a new file in the above, send notification. There are FreeBSD ports for subscribing to podcasts that could do the same thing. How doable is this...? and, yes, i know that many of these audio files can be subscribed to as podcasts. I have several on my Google page. Get A Mac! Ha! Well, I stand to inherit my daughter's MacBook in a few years. Okay, so if Apple has this, can I use it? I mean for-free, not having to sub to some monthly deal or whatever? This is an idea I thought up a couple years ago when all the audio podcasts began appearing. At any rate, seems to me that the open-* community could do at least as well as our brother hackers at Apple. Just a thought. Come Monday, OZ-time, I'll let everybody know my major idea. ___ freebsd-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: [Fwd: Re: programs...]
On Fri, Jan 16, 2009 at 03:22:40PM +1000, Da Rock wrote: What about Miro? Somelike like miro is a start, but may need a special or different kind of interface. Say that you KNOW you want to hear a show on the BBC every week. [Sure, just set it up on Google, right...?] Have the same podcast-storing//link caching deal on miro. Or say that you missing a broadcast of NOVA on a few days,weeks back. You don't knoe if the show is webcast, it's name, it's date(s). Miro is one of the few streams that always just-works. Be great to have just-one-program whose stream never failed. If it were available for d/load, or if I could intercept/capture the stream somehow for when I had TIME to watch/listen... Outstanding. Feedback, anybody?? gary Guys, I've going to give away what I think could be at least a multi-thousand dollar idea, something we nearly have already. And a wish-list for a program that does not, AFAIK, exist. Its called iTunes. First, the wish-for:: given all the kinds of video and audio programs that are now on the web, how difficult would it be to have a GUI [interface] program pop up a screen with date of airing, and/or date of podcast? Not to exceed several hours worth of recorded podcasts... or live recording. iTunes will suck them down and has settings for when (if ever) to delete old podcasts. I can only give examples of thing I watch, but this will give you some idea. And bear in mind that at least FreeBSD cannot capture some programs. Like FRONTLINE on PBS. But for the sake of argument, let's say that firefox or whatever browser or kmplayer or another player did have the proper codecs. This GUI app would find, fetch, and store in /usr/local/tmp FRONTLINE, NOVA, In Our Time and Everyday Ethics [BBC], and Marketplace, Weekend, 10jan09. iTunes stores in ~/Music/iTunes/iTunes Music/Podcasts/ Music/audio only, or video too? When these programs were safely in /usr/local/tmp/Pods, the program would send mail or otherwise inform the user. Script from cron to detect presence of a new file in the above, send notification. There are FreeBSD ports for subscribing to podcasts that could do the same thing. How doable is this...? and, yes, i know that many of these audio files can be subscribed to as podcasts. I have several on my Google page. Get A Mac! Ha! Well, I stand to inherit my daughter's MacBook in a few years. Okay, so if Apple has this, can I use it? I mean for-free, not having to sub to some monthly deal or whatever? This is an idea I thought up a couple years ago when all the audio podcasts began appearing. At any rate, seems to me that the open-* community could do at least as well as our brother hackers at Apple. Just a thought. Come Monday, OZ-time, I'll let everybody know my major idea. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.23a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
[Fwd: Re: programs...]
---BeginMessage--- What about Miro? On Fri, 2009-01-09 at 23:19 -0800, Gary Kline wrote: On Fri, Jan 09, 2009 at 08:43:09AM -0600, David Kelly wrote: On Thu, Jan 08, 2009 at 11:03:29PM -0800, Gary Kline wrote: Guys, I've going to give away what I think could be at least a multi-thousand dollar idea, something we nearly have already. And a wish-list for a program that does not, AFAIK, exist. Its called iTunes. First, the wish-for:: given all the kinds of video and audio programs that are now on the web, how difficult would it be to have a GUI [interface] program pop up a screen with date of airing, and/or date of podcast? Not to exceed several hours worth of recorded podcasts... or live recording. iTunes will suck them down and has settings for when (if ever) to delete old podcasts. I can only give examples of thing I watch, but this will give you some idea. And bear in mind that at least FreeBSD cannot capture some programs. Like FRONTLINE on PBS. But for the sake of argument, let's say that firefox or whatever browser or kmplayer or another player did have the proper codecs. This GUI app would find, fetch, and store in /usr/local/tmp FRONTLINE, NOVA, In Our Time and Everyday Ethics [BBC], and Marketplace, Weekend, 10jan09. iTunes stores in ~/Music/iTunes/iTunes Music/Podcasts/ Music/audio only, or video too? When these programs were safely in /usr/local/tmp/Pods, the program would send mail or otherwise inform the user. Script from cron to detect presence of a new file in the above, send notification. There are FreeBSD ports for subscribing to podcasts that could do the same thing. How doable is this...? and, yes, i know that many of these audio files can be subscribed to as podcasts. I have several on my Google page. Get A Mac! Ha! Well, I stand to inherit my daughter's MacBook in a few years. Okay, so if Apple has this, can I use it? I mean for-free, not having to sub to some monthly deal or whatever? This is an idea I thought up a couple years ago when all the audio podcasts began appearing. At any rate, seems to me that the open-* community could do at least as well as our brother hackers at Apple. Just a thought. Come Monday, OZ-time, I'll let everybody know my major idea. ---End Message--- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: programs...
On Fri, Jan 09, 2009 at 08:43:09AM -0600, David Kelly wrote: On Thu, Jan 08, 2009 at 11:03:29PM -0800, Gary Kline wrote: Guys, I've going to give away what I think could be at least a multi-thousand dollar idea, something we nearly have already. And a wish-list for a program that does not, AFAIK, exist. Its called iTunes. First, the wish-for:: given all the kinds of video and audio programs that are now on the web, how difficult would it be to have a GUI [interface] program pop up a screen with date of airing, and/or date of podcast? Not to exceed several hours worth of recorded podcasts... or live recording. iTunes will suck them down and has settings for when (if ever) to delete old podcasts. I can only give examples of thing I watch, but this will give you some idea. And bear in mind that at least FreeBSD cannot capture some programs. Like FRONTLINE on PBS. But for the sake of argument, let's say that firefox or whatever browser or kmplayer or another player did have the proper codecs. This GUI app would find, fetch, and store in /usr/local/tmp FRONTLINE, NOVA, In Our Time and Everyday Ethics [BBC], and Marketplace, Weekend, 10jan09. iTunes stores in ~/Music/iTunes/iTunes Music/Podcasts/ Music/audio only, or video too? When these programs were safely in /usr/local/tmp/Pods, the program would send mail or otherwise inform the user. Script from cron to detect presence of a new file in the above, send notification. There are FreeBSD ports for subscribing to podcasts that could do the same thing. How doable is this...? and, yes, i know that many of these audio files can be subscribed to as podcasts. I have several on my Google page. Get A Mac! Ha! Well, I stand to inherit my daughter's MacBook in a few years. Okay, so if Apple has this, can I use it? I mean for-free, not having to sub to some monthly deal or whatever? This is an idea I thought up a couple years ago when all the audio podcasts began appearing. At any rate, seems to me that the open-* community could do at least as well as our brother hackers at Apple. Just a thought. Come Monday, OZ-time, I'll let everybody know my major idea. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org First update of http://transfinite.thought.org/ab/ in seven months. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: programs...
On Thu, Jan 08, 2009 at 11:03:29PM -0800, Gary Kline wrote: Guys, I've going to give away what I think could be at least a multi-thousand dollar idea, something we nearly have already. And a wish-list for a program that does not, AFAIK, exist. Its called iTunes. First, the wish-for:: given all the kinds of video and audio programs that are now on the web, how difficult would it be to have a GUI [interface] program pop up a screen with date of airing, and/or date of podcast? Not to exceed several hours worth of recorded podcasts... or live recording. iTunes will suck them down and has settings for when (if ever) to delete old podcasts. I can only give examples of thing I watch, but this will give you some idea. And bear in mind that at least FreeBSD cannot capture some programs. Like FRONTLINE on PBS. But for the sake of argument, let's say that firefox or whatever browser or kmplayer or another player did have the proper codecs. This GUI app would find, fetch, and store in /usr/local/tmp FRONTLINE, NOVA, In Our Time and Everyday Ethics [BBC], and Marketplace, Weekend, 10jan09. iTunes stores in ~/Music/iTunes/iTunes Music/Podcasts/ When these programs were safely in /usr/local/tmp/Pods, the program would send mail or otherwise inform the user. Script from cron to detect presence of a new file in the above, send notification. There are FreeBSD ports for subscribing to podcasts that could do the same thing. How doable is this...? and, yes, i know that many of these audio files can be subscribed to as podcasts. I have several on my Google page. Get A Mac! -- David Kelly N4HHE, dke...@hiwaay.net Whom computers would destroy, they must first drive mad. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
programs...
Guys, I've going to give away what I think could be at least a multi-thousand dollar idea, something we nearly have already. And a wish-list for a program that does not, AFAIK, exist. First, the wish-for:: given all the kinds of video and audio programs that are now on the web, how difficult would it be to have a GUI [interface] program pop up a screen with date of airing, and/or date of podcast? Not to exceed several hours worth of recorded podcasts... or live recording. I can only give examples of thing I watch, but this will give you some idea. And bear in mind that at least FreeBSD cannot capture some programs. Like FRONTLINE on PBS. But for the sake of argument, let's say that firefox or whatever browser or kmplayer or another player did have the proper codecs. This GUI app would find, fetch, and store in /usr/local/tmp FRONTLINE, NOVA, In Our Time and Everyday Ethics [BBC], and Marketplace, Weekend, 10jan09. When these programs were safely in /usr/local/tmp/Pods, the program would send mail or otherwise inform the user. How doable is this...? and, yes, i know that many of these audio files can be subscribed to as podcasts. I have several on my Google page. gary PS: oTher, larger idea next, separate post. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org First update of http://transfinite.thought.org/ab/ in seven months. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Image Programs
On Fri, 05 Dec 2008 07:00:43 +0100, Frank Bonnet [EMAIL PROTECTED] wrote: G magicman wrote: Hello does anyone know the following 1. Does Freebsd have a program like Photoshop avail to use a copy-left GNU license type ? and a form of Thumbsplus which allows me to do rudimentary picture manipulations changing file type, cropping etc. i have all the 3d programs but not these 2 basic ones. Thank you http://www.gimp.org For now, The Gimp has been suggested many times. I've heard from users that there's Gimpshop to make The Gimp's excellent interface look like the one of Photoshop for those users who want it. Personally, I find the original Gimp interface isn't as bad as claimed by many users who are spoiled by the Windows way of doing things. :-) Furthermore, there's Krita, if you're already using KDE. For automated image manipulations, ImageMagick and especially its convert command are very useful and powerful (!) tools. What about Inkscape? Tried this one? But finally, for professional use, The Gimp seems to be the best program availabe at the moment. -- Polytropon From 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 [EMAIL PROTECTED]
Image Programs
Hello does anyone know the following 1. Does Freebsd have a program like Photoshop avail to use a copy-left GNU license type ? and a form of Thumbsplus which allows me to do rudimentary picture manipulations changing file type, cropping etc. i have all the 3d programs but not these 2 basic ones. Thank you ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Image Programs
G magicman wrote: Hello does anyone know the following 1. Does Freebsd have a program like Photoshop avail to use a copy-left GNU license type ? and a form of Thumbsplus which allows me to do rudimentary picture manipulations changing file type, cropping etc. i have all the 3d programs but not these 2 basic ones. Thank you gimp, imagemagick. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Image Programs
On Thu, 4 Dec 2008, G magicman wrote: 1. Does Freebsd have a program like Photoshop avail to use a copy-left GNU license type ? and a form of Thumbsplus which allows me to do rudimentary picture manipulations changing file type, cropping etc. i have all the 3d programs but not these 2 basic ones. Like Photoshop, the best I can think of is the GIMP (/usr/ports/graphics/gimp or http://www.gimp.org/). I hear tell Photoshop is more capable, but I haven't used it in about 10 years so I don't really know. For basic editing (crop, resize, gamma, change file type) xv works just fine for me (/usr/ports/graphics/xv or http://www.trilon.com/xv/) BTW these are not part of FreeBSD, but developed and maintained by third parties. HTH. -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging | ]___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Image Programs
G magicman wrote: Hello does anyone know the following 1. Does Freebsd have a program like Photoshop avail to use a copy-left GNU license type ? and a form of Thumbsplus which allows me to do rudimentary picture manipulations changing file type, cropping etc. i have all the 3d programs but not these 2 basic ones. Thank you http://www.gimp.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
running linux programs
if i want to run a linux program that is not offered in the linux-* collection, can i compile it so that it will be run through the emulator rather than as a freebsd program? for instance, i want to run chessdb (a maintained version of scid which is in the ports) and there is a tarball for unix: ChessDB-3.6.18.tar.gz UNIX/Linux tarball. (http://chessdb.sourceforge.net/downloads/) but it doesn't seem to compile properly on freebsd. i was wondering if i could compile it in linux, but there doesn't seem to be any compiler present in /compat/linux ... -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: running linux programs
On Wed, Nov 5, 2008 at 6:19 PM, prad [EMAIL PROTECTED] wrote: if i want to run a linux program that is not offered in the linux-* collection, can i compile it so that it will be run through the emulator rather than as a freebsd program? You could use linux binary compatability. for instance, i want to run chessdb (a maintained version of scid which is in the ports) and there is a tarball for unix: ChessDB-3.6.18.tar.gz UNIX/Linux tarball. (http://chessdb.sourceforge.net/downloads/) but it doesn't seem to compile properly on freebsd. What errors do you get? What `./configure' options do you give it? i was wondering if i could compile it in linux, but there doesn't seem to be any compiler present in /compat/linux ... -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: running linux programs
On Wed, 5 Nov 2008 18:30:04 -0500 Glen Barber [EMAIL PROTECTED] wrote: but it doesn't seem to compile properly on freebsd. What errors do you get? What `./configure' options do you give it? i think i've solved the problem. there were certain alterations to the Makefile i had to do and twiddle with a couple of other things, but it works now compiled on freebsd. however, can i compile a linux program within the linux emulator instead of using the gcc in freebsd? -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: running linux programs
prad [EMAIL PROTECTED] writes: however, can i compile a linux program within the linux emulator instead of using the gcc in freebsd? emulators/linux_dist-gentoo-stage* are used for this. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: running linux programs
On Thu, 06 Nov 2008 09:47:21 +0300 Boris Samorodov [EMAIL PROTECTED] wrote: emulators/linux_dist-gentoo-stage* are used for this. so what i should do then is install one of the 3 dist-gentoo-stages? or do these work the same way as the gentoo stages - i seem to recall i just did gentoo from stage 2 or 3 many years ago. will this give me the gentoo emerge environment? will this be a separate /compat/linux directory from what i got when i simply put on linux-opera? is there a wiki on linux emulation anywhere? -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: running linux programs
prad [EMAIL PROTECTED] writes: On Thu, 06 Nov 2008 09:47:21 +0300 Boris Samorodov [EMAIL PROTECTED] wrote: emulators/linux_dist-gentoo-stage* are used for this. so what i should do then is install one of the 3 dist-gentoo-stages? Chroot to linux directory and compile the needed program. or do these work the same way as the gentoo stages - i seem to recall i just did gentoo from stage 2 or 3 many years ago. will this give me the gentoo emerge environment? will this be a separate /compat/linux directory from what i got when i simply put on linux-opera? is there a wiki on linux emulation anywhere? You'd have better chances if you ask those questions at freebsd-emulation@ ML. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Automatically starting user programs on boot
David Collins wrote: | Date: Thu, 4 Sep 2008 13:06:54 +0200 (CEST) | From: Sa?a Stupar [EMAIL PROTECTED] | Subject: Automatically starting user programs on boot | To: freebsd-questions@freebsd.org | Message-ID: |[EMAIL PROTECTED] | Content-Type: text/plain;charset=iso-8859-2 | | Hi! | | On my FBSD 7 server I also use screen with rtorrent. In case of server | reboot (power outage, server goes on UPS then power down) the user need | manually to login, then start screen and then rtorrent. Is it possible to | start this procedure automatically and of course as certain user and not | as root? | I was thinking about .startup file or something in users home directory. | | Regards, | Sasa Hi, I have been using rtorrent and screen for a while now, it is a great setup. Anyway, I found an rc.d file for debian that I have changed to make work for me on freebsd 7. I doubt it is as good as it could be, but hey, it works fine for me :) You will have to change some of the variables at the top of the file. It opens screen on boot, names it rtorrent and starts rtorrent, does its thing in the background. To connect to it type screen -r rtorrent I placed it in /usr/local/etc/rc.d since it isn't part of the base distribution. I also named it with a .sh suffix, I forget why but it is something to do with a controlling terminal, I think. I also have a nice .screenrc file if you would like since I know how much of a pain it is to figure out! $ cat /usr/local/etc/rc.d #!/bin/sh # PROVIDE: rtorrent # REQUIRE: DAEMON # ###Notes### # # This script depends on screen. # For the stop function to work, you must set an # explicit session directory using ABSOLUTE paths (no, ~ is not absolute) in your rtorrent.rc. # If you typically just start rtorrent with just rtorrent on the # command line, all you need to change is the user option. # Attach to the screen session as your user with # screen -dr rtorrent. Change rtorrent with srnname option. # Licensed under the GPLv2 by lostnihilist: lostnihilist _at_ gmail _dot_ com ## ###/Notes### ## ### ##Start Configuration## ### # You can specify your configuration in a different file # (so that it is saved with upgrades, saved in your home directory, # or whateve reason you want to) # by commenting out/deleting the configuration lines and placing them # in a text file (say /home/user/.rtorrent.init.conf) exactly as you would # have written them here (you can leave the comments if you desire # and then uncommenting the following line correcting the path/filename # for the one you used. note the space after the .. # . /etc/rtorrent.init.conf # system user to run as user=davidcollins # the system group to run as, not implemented, see d_start for beginning implementation # group=`id -ng $user` # the full path to the filename where you store your rtorrent configuration config=`su $user -c 'echo $HOME'`/.rtorrent.rc # set of options to run with options= # default directory for screen, needs to be an absolute path base=`su $user -c 'echo $HOME'` # name of screen session srnname=rtorrent # file to log to (makes for easier debugging if something goes wrong) logfile=/var/log/rtorrentInit.log ### ###END CONFIGURATION### ### . /etc/rc.subr PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin name=rtorrent rcvar=`set_rcvar` eval ${rcvar}=\${${rcvar}:-'NO'} start_precmd=checkcnfg start_cmd=${name}_start stop_cmd=${name}_stop checkcnfg() { exists=0 for i in `echo $PATH | tr ':' '\n'` ; do if [ -f $i/$name ] ; then exists=1 break fi done if [ $exists -eq 0 ] ; then err 3 cannot find rtorrent binary in PATH $PATH fi if ! [ -r ${config} ] ; then err 3 cannot find readable config ${config}. check that it is there and permissions are appropriate fi session=`getsession $config` if ! [ -d ${session} ] ; then err 3 cannot find readable session directory ${session} from config ${config}. check permissions fi } rtorrent_start() { echo Starting $name. [ -d ${base} ] cd ${base} stty stop undef stty start undef ## start screen with rtorrent inside su ${user} -c screen -dm -S ${srnname} ${name} ${options} 21 1/dev/null | tee -a $logfile 2 } rtorrent_stop() { echo Stopping $name. session=`getsession $config` if ! [ -s ${session}/rtorrent.lock ] ; then return fi pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed s/[^0-9]//g` ## make sure the pid doesn't belong to another process if ps -A | grep -sq ${pid}.*rtorrent ; then kill -s INT ${pid} fi } getsession() { session=`cat $1 | grep ^[[:space:]]*session[[:space:]]*= | sed s/^[[:space:]]*session[[:space:]]*=[[:space:]]*// ` echo $session } load_rc_config $name run_rc_command $1
Re: Automatically starting user programs on boot
Minda sharing your .screenrc? Sure, here it is. I have set the escape character to [ because it is easier on my little finger than the default ctrl-a. It is easily changed by changing escape to 'escape ^pP'. If you leave it as [ it will play havok when trying to paste text into a terminal since everytime it reads [ it reads the char after and does what ever that binding does. I haven't really changed much, but the important thing for me was the hard status line. I found the default difficult to remember what was open, I have set it up so that it shows all windows open with the current highlighted in red with the host and time and date on the right. There are probably other smart things that can be done, but this suits me for now :) $ cat ~/.screenrc ## to open multiple buffers: ## place dir and name in file in format ## screen -t name ## chdir dir ## screen -t name2 ## chdir dir2 ## chdir ## ## call from in screen with ## (current screen has high number) ## :source file ## or source it in .screenrc file #source /tmp/screen_open # COPY MODE #Emacs style movement keys can be customized by a # .screenrc command. (E.g. markkeys h=^B:l=^F:$=^E) #There is no simple method for a full emacs-style keymap, as # this involves multi-character codes. # # Example of a user's .screenrc file # # This is how one can set a reattach password: # password ODSJQf.4IJN7E# 1234 # no annoying audible bell, please vbell off # start in $HOME directory #chdir ${HOME} # set file to copy paste buffer to bufferfile /tmp/buf # set activity alert activity 'Activity in windown %n' # detach on hangup autodetach on # don't display the copyright page startup_message off # emulate .logout message pow_detach_msg Screen session of \$LOGNAME \$:cr:\$:nl:ended. # advertise hardstatus support to $TERMCAP # termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\' # make the shell in every window a login shell #shell -$SHELL # autoaka testing # shellaka ' |tcsh' # shellaka '$ |sh' # set every new windows hardstatus line to somenthing descriptive # defhstatus screen: ^En (^Et) defscrollback 1000 # don't kill window after the process died # zombie ^[ # enable support for the alternate screen capability in all windows # altscreen on # # xterm tweaks # # # #xterm understands both im/ic and doesn't have a status line. # #Note: Do not specify im and ic in the real termcap/info file as # #some programs (e.g. vi) will not work anymore. # termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l # terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l # # #80/132 column switching must be enabled for ^AW to work # #change init sequence to not switch width # termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l # # # Make the output buffer large for (fast) xterms. # #termcapinfo xterm* OL=1 # termcapinfo xterm* OL=100 # # # tell screen that xterm can switch to dark background and has function # # keys. # termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l' # termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~' # termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~' # # # special xterm hardstatus: use the window title. # termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' # # #terminfo xterm 'vb=\E[?5h$200/\E[?5l' # termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l' # # # emulate part of the 'K' charset # termcapinfo xterm 'XC=K%,%\E(B,[\304,\326,]\334,{\344,|\366,}\374,~\337' # # # xterm-52 tweaks: # # - uses background color for delete operations # termcapinfo xterm* be # terminfo and termcap for nice 256 color terminal # allow bold colors - necessary for some reason attrcolor b .I # tell screen how to set colors. AB = background, AF=foreground termcapinfo xterm 'Co#256:AB=\E8;5;%dm:AF=\E8;5;%dm' # erase background with current bg color defbce on # # # # # wyse terminals # # # # #wyse-75-42 must have flow control (xo = terminal uses xon/xoff) # #essential to have it here, as this is a slow terminal. # termcapinfo wy75-42 xo:hs@ # # # New termcap sequences for cursor application mode. # termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J # # # # # # other terminals # # # # # make hp700 termcap/info better # termcapinfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61p:ds=\E[62p\E[1$~\E[61p:ic@' # # # Extend the vt100 desciption by some sequences. # termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC # terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC # termcapinfo linux C8 # # old rxvt versions also need this # # termcapinfo rxvt C8 # # # # keybindings # # remap C-a to t #escape ^Zz escape [[ # try this !?! - press open bracket then cmd # nice if it stops me using
Automatically starting user programs on boot
Hi! On my FBSD 7 server I also use screen with rtorrent. In case of server reboot (power outage, server goes on UPS then power down) the user need manually to login, then start screen and then rtorrent. Is it possible to start this procedure automatically and of course as certain user and not as root? I was thinking about .startup file or something in users home directory. Regards, Sasa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Automatically starting user programs on boot
Saša Stupar wrote: Hi! On my FBSD 7 server I also use screen with rtorrent. In case of server reboot (power outage, server goes on UPS then power down) the user need manually to login, then start screen and then rtorrent. Is it possible to start this procedure automatically and of course as certain user and not as root? I was thinking about .startup file or something in users home directory. Regards, Sasa cron(8) seems to be a good candidate for this. Have a look at crontab(5). You can use @reboot to execute your script every time your PC starts. Just make sure your script sets the environment (PATH and so on) correctly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Automatically starting user programs on boot
On Thu, 4 Sep 2008 13:06:54 +0200 (CEST), Saša Stupar [EMAIL PROTECTED] wrote: Hi! On my FBSD 7 server I also use screen with rtorrent. In case of server reboot (power outage, server goes on UPS then power down) the user need manually to login, then start screen and then rtorrent. Is it possible to start this procedure automatically and of course as certain user and not as root? I was thinking about .startup file or something in users home directory. No need to reinvent the wheel. :-) The solution is quite simple, allthough it is to be considered a security risk, and maybe it's a bit ugly. Here's what I would suggest you to do: 1. Modify /etc/gettytab as follows: default:\ ... autologin:\ :al=USERNAME:tc=Pc: a|std.110|110-baud:\ ... where USERNAME is the name of the user who wants the screen and rtorrent running. 2. After that, go to this user's home directory and create or modify his ~/.login file to contain the proper commands to start the screen sessions and rtorrent. Please note that it might be possible to have another file changed if the C Shell is not this user's shell. BASH has another file for startup, I think. -- Polytropon From 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 [EMAIL PROTECTED]
Re: Automatically starting user programs on boot
man crontab @reboot option see screen options to start detached On Thu, 4 Sep 2008, Saša Stupar wrote: Hi! On my FBSD 7 server I also use screen with rtorrent. In case of server reboot (power outage, server goes on UPS then power down) the user need manually to login, then start screen and then rtorrent. Is it possible to start this procedure automatically and of course as certain user and not as root? I was thinking about .startup file or something in users home directory. Regards, Sasa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Automatically starting user programs on boot
On Thu, 4 Sep 2008 16:00:06 +0200 (CEST), Wojciech Puchar [EMAIL PROTECTED] wrote: man crontab @reboot option Much better than my autologin suggestion. :-) see screen options to start detached Or use the detach program (from ports) to launch any program detached from the user or his login shell. -- Polytropon From 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 [EMAIL PROTECTED]
Re: Automatically starting user programs on boot
| Date: Thu, 4 Sep 2008 13:06:54 +0200 (CEST) | From: Sa?a Stupar [EMAIL PROTECTED] | Subject: Automatically starting user programs on boot | To: freebsd-questions@freebsd.org | Message-ID: |[EMAIL PROTECTED] | Content-Type: text/plain;charset=iso-8859-2 | | Hi! | | On my FBSD 7 server I also use screen with rtorrent. In case of server | reboot (power outage, server goes on UPS then power down) the user need | manually to login, then start screen and then rtorrent. Is it possible to | start this procedure automatically and of course as certain user and not | as root? | I was thinking about .startup file or something in users home directory. | | Regards, | Sasa Hi, I have been using rtorrent and screen for a while now, it is a great setup. Anyway, I found an rc.d file for debian that I have changed to make work for me on freebsd 7. I doubt it is as good as it could be, but hey, it works fine for me :) You will have to change some of the variables at the top of the file. It opens screen on boot, names it rtorrent and starts rtorrent, does its thing in the background. To connect to it type screen -r rtorrent I placed it in /usr/local/etc/rc.d since it isn't part of the base distribution. I also named it with a .sh suffix, I forget why but it is something to do with a controlling terminal, I think. I also have a nice .screenrc file if you would like since I know how much of a pain it is to figure out! $ cat /usr/local/etc/rc.d #!/bin/sh # PROVIDE: rtorrent # REQUIRE: DAEMON # ###Notes### # # This script depends on screen. # For the stop function to work, you must set an # explicit session directory using ABSOLUTE paths (no, ~ is not absolute) in your rtorrent.rc. # If you typically just start rtorrent with just rtorrent on the # command line, all you need to change is the user option. # Attach to the screen session as your user with # screen -dr rtorrent. Change rtorrent with srnname option. # Licensed under the GPLv2 by lostnihilist: lostnihilist _at_ gmail _dot_ com ## ###/Notes### ## ### ##Start Configuration## ### # You can specify your configuration in a different file # (so that it is saved with upgrades, saved in your home directory, # or whateve reason you want to) # by commenting out/deleting the configuration lines and placing them # in a text file (say /home/user/.rtorrent.init.conf) exactly as you would # have written them here (you can leave the comments if you desire # and then uncommenting the following line correcting the path/filename # for the one you used. note the space after the .. # . /etc/rtorrent.init.conf # system user to run as user=davidcollins # the system group to run as, not implemented, see d_start for beginning implementation # group=`id -ng $user` # the full path to the filename where you store your rtorrent configuration config=`su $user -c 'echo $HOME'`/.rtorrent.rc # set of options to run with options= # default directory for screen, needs to be an absolute path base=`su $user -c 'echo $HOME'` # name of screen session srnname=rtorrent # file to log to (makes for easier debugging if something goes wrong) logfile=/var/log/rtorrentInit.log ### ###END CONFIGURATION### ### . /etc/rc.subr PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin name=rtorrent rcvar=`set_rcvar` eval ${rcvar}=\${${rcvar}:-'NO'} start_precmd=checkcnfg start_cmd=${name}_start stop_cmd=${name}_stop checkcnfg() { exists=0 for i in `echo $PATH | tr ':' '\n'` ; do if [ -f $i/$name ] ; then exists=1 break fi done if [ $exists -eq 0 ] ; then err 3 cannot find rtorrent binary in PATH $PATH fi if ! [ -r ${config} ] ; then err 3 cannot find readable config ${config}. check that it is there and permissions are appropriate fi session=`getsession $config` if ! [ -d ${session} ] ; then err 3 cannot find readable session directory ${session} from config ${config}. check permissions fi } rtorrent_start() { echo Starting $name. [ -d ${base} ] cd ${base} stty stop undef stty start undef ## start screen with rtorrent inside su ${user} -c screen -dm -S ${srnname} ${name} ${options} 21 1/dev/null | tee -a $logfile 2 } rtorrent_stop() { echo Stopping $name. session=`getsession $config` if ! [ -s ${session}/rtorrent.lock ] ; then return fi pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed s/[^0-9]//g` ## make sure the pid doesn't belong to another process if ps -A | grep -sq ${pid}.*rtorrent ; then kill -s INT ${pid} fi } getsession() { session=`cat $1 | grep ^[[:space:]]*session[[:space:]]*= | sed s/^[[:space:]]*session[[:space:]]*=[[:space:]]*// ` echo $session } load_rc_config $name run_rc_command $1
Re: problems using gdb on threaded programs
Ok let me try again (more explanation/question below). Also sorry that i screwed up the script output by having a copy of the text in it... not sure how that happened! On Sat, Nov 10, 2007 at 05:53:09PM +, Jurjen Middendorp wrote: Hello, when i try to debug a program with threads (with gdb) gdb complains about not being able to find thread start point and kind of hangs (see below). It is quite likely i misconfigured something, but i have no idea what that something would be (maybe forgot to put stuff in kernel?). I tried installing a newer version of gdb (6.6) but that fails in a different way, it can't get the thread info (breakpoints seem to work better though :) I also tried to recompile libpthread in /usr/src/lib with debug flag, but no potato. What else can i try now? i'm kind of stumped. - jurjen PS. Below is an output of the errors of gdb and a small program that fails. Script started on Sat Nov 10 16:51:32 2007 /home/jurjen/C $cat threadthingy.c #include stdio.h #include pthread.h void * start(void* blah) { printf(hello from a thread!\n); return NULL; } int main(void) { pthread_t tid; pthread_create(tid, NULL, start, NULL); pthread_join(tid, NULL); printf(done!\n); return 0; } /home/jurjen/C $gdb66 threadthingy GNU gdb 6.6 [GDB v6.6 for FreeBSD] Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-portbld-freebsd6.2... (gdb) b main Breakpoint 1 at 0x804860c: file threadthingy.c, line 11. (gdb) b start Breakpoint 2 at 0x80485d6: file threadthingy.c, line 5. (gdb) r Starting program: /stuff/backup/C/threadthingy Breakpoint 1, main () at threadthingy.c:11 11 pthread_create(tid, NULL, start, NULL); (gdb) c Continuing. Breakpoint 2, start (blah=0x0) at threadthingy.c:5 5 printf(hello from a thread!\n); (gdb) info threads (gdb) info thread (gdb) help info threads IDs of currently known threads. (gdb) thread 1 Thread ID 1 not known. (gdb) thread 0 Thread ID 0 not known. (gdb) thread [Current thread is 0 (process 53031)] (gdb) thread next No symbol next in current context. (gdb) thread 0 Thread ID 0 not known. (gdb) info thread (gdb) c Continuing. The problem is here i think, why can't gdb display the thread-info? (Or find thread creation points (?) using an older version of gdb). Do i need to use another library/compiler flags if i want to debug threaded programs? - jurjen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
problems using gdb on threaded programs
Hello, when i try to debug a program with threads (with gdb) gdb complains about not being able to find thread start point and kind of hangs (see below). It is quite likely i misconfigured something, but i have no idea what that something would be (maybe forgot to put stuff in kernel?). I tried installing a newer version of gdb (6.6) but that fails in a different way, it can't get the thread info (breakpoints seem to work better though :) I also tried to recompile libpthread in /usr/src/lib with debug flag, but no potato. What else can i try now? i'm kind of stumped. - jurjen PS. Below is an output of the errors of gdb and a small program that fails. Script started on Sat Nov 10 16:51:32 2007 /home/jurjen/C $cat threadthingy.c #include stdio.h #include pthread.h void * start(void* blah) { printf(hello from a thread!\n); return NULL; } int main(void) { pthread_t tid; pthread_create(tid, NULL, start, NULL); pthread_join(tid, NULL); printf(done!\n); return 0; } /home/jurjen/C $gdb -v GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-marcel-freebsd. /home/jurjen/C $gdb threadthingy (gdb) break main Breakpoint 1 at 0x804860c: file threadthingy.c, line 11. (gdb) r Starting program: /stuff/backup/C/threadthingy warning: Unable to get location for thread creation breakpoint: generic error [New LWP 100143] ^C^C^Chelp, gdb hang and now i have to kill it!!^C^C^C^CKilled /home/jurjen/C $gdb66 threadthingy GNU gdb 6.6 [GDB v6.6 for FreeBSD] Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-portbld-freebsd6.2... Hello, when i try to debug a program with threads (with gdb) gdb complains about not being able to find thread start point and kind of hangs (see below). It is quite likely i misconfigured something, but i have no idea what that something would be (maybe forgot to put stuff in kernel?). I tried installing a newer version of gdb (6.6) but that fails in a different way, it can't get the thread info (breakpoints seem to work better though :) I also tried to recompile libpthread in /usr/src/lib with debug flag, but no potato. What else can i try now? i'm kind of stumped. (gdb) b main Breakpoint 1 at 0x804860c: file threadthingy.c, line 11. (gdb) b start Breakpoint 2 at 0x80485d6: file threadthingy.c, line 5. (gdb) r Starting program: /stuff/backup/C/threadthingy Breakpoint 1, main () at threadthingy.c:11 11 pthread_create(tid, NULL, start, NULL); (gdb) c Continuing. Breakpoint 2, start (blah=0x0) at threadthingy.c:5 5 printf(hello from a thread!\n); (gdb) info threads (gdb) info thread (gdb) help info threads IDs of currently known threads. (gdb) thread 1 Thread ID 1 not known. (gdb) thread 0 Thread ID 0 not known. (gdb) thread [Current thread is 0 (process 53031)] (gdb) thread next No symbol next in current context. (gdb) thread 0 Thread ID 0 not known. (gdb) info thread (gdb) c Continuing. Breakpoint 2, start (blah=0x0) at threadthingy.c:5 5 printf(hello from a thread!\n); (gdb) c Continuing. Breakpoint 2, start (blah=0x0) at threadthingy.c:5 5 printf(hello from a thread!\n); (gdb) c Continuing. Breakpoint 2, start (blah=0x0) at threadthingy.c:5 5 printf(hello from a thread!\n); (gdb) n 0x2809373e in ?? () from /lib/libpthread.so.2 (gdb) d b Delete all breakpoints? (y or n) y (gdb) c Continuing. hello from a thread! done! Program exited normally. (gdb) quit Script done on Sat Nov 10 16:53:31 2007 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: installing programs
On Wed, 2007-11-07 at 15:46 -0800, Marc Fromm wrote: Hi James, Thanks for the extra tip on checking for installed packages. Here's another tip: use reply all, not reply. That way, we keep the whole list informed, which is a good thing :) I browsed the ftp site and found a firefox2. The default is firefox which is the 1.5 version. I ran the following: sudo pkg_add -r firefox2 Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/firefox2.tbz... Done. pkg_info -Ix firefox reports this: firefox-2.0.r2,1Web browser based on the browser portion of Mozilla When I go into the KDE GUI to kmenu _ internet _ and click on the newly created fierefox icon, nothing happens. Firefox does not start. Have you restarted your X session? The shortcuts sometimes need to be told what's going on, that things are updated. You can either reboot your computer, or use ctrl-alt-backspace to restart your x session. Or you can use your command line! Start a terminal, type which firefox and you should get the path to firefox, probably: /usr/local/bin/firefox Now type firefox And leave the terminal open. Firefox should start. If it doesn't, follow the old phrase When in doubt, reboot. I know it's not nice to be told to treat a FreeBSD box like a windows box that way, but until you get some more experience fooling around with the system and restarting things properly, it's the simplest way to make sure things get started fine. I do not know what shell I am using. I ssh into the box with Putty. I installed FreeBSD from the 6.2-RELEASE-i386 iso. echo $SHELL will tell you what shell you're using. Just to make sure I've got the right picture in my head: you've got a FreeBSD box that you're sitting at, which you've managed to install FreeBSD, gnome||kde, all that stuff correctly, but something's missing when it comes to starting firefox, right? You're not sshing into the box and using x-forwarding, you're physically sitting there, yeah? One last tip: this list has a pretty strong Don't top post mob in it. If you bottom post only, then when someone else wants to help you, it's easier for them to get up to speed. Bottom post FTW! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing programs
On Nov 7, 2007, at 11:15 AM, Marc Fromm wrote: I am new to the linux-type OS environment. For about a week now I have tried to do a task which I first thought would be simple-install a program like firefox. I did sudo pkg_add -r firefox as explained in chapter 4 of the handbook and received the message: pkg_add: package 'firefox-1.5.0.8,1' or its older version already installed I then tried to uninstall firefox like this: sudo pkg_delete -d -f firefox-1.5.0.8,1 It appeard to uninstall. I next did sudo pkg_add -r firefox again and it did this: [snip] Firefox now does not work at all and if I rerun the pkg_add command it states firefox-1.5.0.8 is still installed. Isn't the latest 2.0.0.9? I tried to instructions at firefox and they did not work: http://support.mozilla.com/kb/Installing+Firefox+on+Linux Marc, There are a couple of things you can try. First thing to note, however, is that Linux instructions for software installation will not, typically, work on FreeBSD systems. You should verify that the package is actually uninstalled. # ls /var/db/pkg | grep firefox You should get nothing back. If you do get something, remove each item with the following command # pkg_delete name name should be each item in the list from the previous command. Once you've verified it's uninstalled, try the pkg_add command again: # pkg_add -r firefox Now, if this doesn't work, try installing from your ports tree. Do this with the following command: # cd /usr/ports/www/firefox make install clean If you're using csh/tcsh as your shell, make sure you type rehash so that your PATH gets re-read for new binaries/etc. Let me know how this goes! - Eric F Crist Secure Computing Networks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
installing programs
I am new to the linux-type OS environment. For about a week now I have tried to do a task which I first thought would be simple-install a program like firefox. I did sudo pkg_add -r firefox as explained in chapter 4 of the handbook and received the message: pkg_add: package 'firefox-1.5.0.8,1' or its older version already installed I then tried to uninstall firefox like this: sudo pkg_delete -d -f firefox-1.5.0.8,1 It appeard to uninstall. I next did sudo pkg_add -r firefox again and it did this: Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest /firefox.tbz... Done. === Building Chrome's registry... == SMB issues: Network group, machine, and share browsing does not work correctly. SFTP: Only sftp access using public key authentication works. To easily setup public key authentication to remote_host: ssh-keygen -t dsa cat ~/.ssh/id_dsa.pub | ssh remote_host cat .ssh/authorized_keys The SSH sever on remote_host must allow pub key authentication. Firefox now does not work at all and if I rerun the pkg_add command it states firefox-1.5.0.8 is still installed. Isn't the latest 2.0.0.9? I tried to instructions at firefox and they did not work: http://support.mozilla.com/kb/Installing+Firefox+on+Linux Marc Fromm Information Technology Specialist II Financial Aid Department Western Washington University Phone: 360-650-3351 Fax: 360-788-0251 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing programs
On Wed, 2007-11-07 at 13:16 -0600, Eric Crist wrote: On Nov 7, 2007, at 11:15 AM, Marc Fromm wrote: I am new to the linux-type OS environment. For about a week now I have tried to do a task which I first thought would be simple-install a program like firefox. I did sudo pkg_add -r firefox as explained in chapter 4 of the handbook and received the message: pkg_add: package 'firefox-1.5.0.8,1' or its older version already installed I then tried to uninstall firefox like this: sudo pkg_delete -d -f firefox-1.5.0.8,1 It appeard to uninstall. I next did sudo pkg_add -r firefox again and it did this: [snip] Firefox now does not work at all and if I rerun the pkg_add command it states firefox-1.5.0.8 is still installed. Isn't the latest 2.0.0.9? I tried to instructions at firefox and they did not work: http://support.mozilla.com/kb/Installing+Firefox+on+Linux Marc, There are a couple of things you can try. First thing to note, however, is that Linux instructions for software installation will not, typically, work on FreeBSD systems. You should verify that the package is actually uninstalled. # ls /var/db/pkg | grep firefox You should get nothing back. If you do get something, remove each item with the following command # pkg_delete name name should be each item in the list from the previous command. Once you've verified it's uninstalled, try the pkg_add command again: # pkg_add -r firefox Now, if this doesn't work, try installing from your ports tree. Do this with the following command: # cd /usr/ports/www/firefox make install clean If you're using csh/tcsh as your shell, make sure you type rehash so that your PATH gets re-read for new binaries/etc. Let me know how this goes! - Eric F Crist Secure Computing Networks Just a quick note -- instead of ls /var/db/pkg, you can use pkg_info -Ix I'm betting it's a rehash issue, or if you're using a bourne type shell, just reload the shell. You're right that 2.0.0.9 is the latest version of firefox; I'm using 2.0.0.7 right now. My advice is that if you want newer packages, learn how to use ports. It's generally newer than the packages built remotely. If you're using FreeBSD -release branch, I think ports is the only way to get new new software. -release has a snapshot of packages for pkg_add and they're known to be stable and not updated much at all, if ever. -stable has newer packages for pkg_add, and -current breaks sometimes. James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing programs
Marc Fromm wrote: I am new to the linux-type OS environment. For about a week now I have tried to do a task which I first thought would be simple-install a program like firefox. I did sudo pkg_add -r firefox as explained in chapter 4 of the handbook and received the message: pkg_add: package 'firefox-1.5.0.8,1' or its older version already installed I then tried to uninstall firefox like this: sudo pkg_delete -d -f firefox-1.5.0.8,1 It appeard to uninstall. I next did sudo pkg_add -r firefox again and it did this: Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest /firefox.tbz... Done. === Building Chrome's registry... == SMB issues: Network group, machine, and share browsing does not work correctly. SFTP: Only sftp access using public key authentication works. To easily setup public key authentication to remote_host: ssh-keygen -t dsa cat ~/.ssh/id_dsa.pub | ssh remote_host cat .ssh/authorized_keys The SSH sever on remote_host must allow pub key authentication. Firefox now does not work at all and if I rerun the pkg_add command it states firefox-1.5.0.8 is still installed. Isn't the latest 2.0.0.9? I tried to instructions at firefox and they did not work: http://support.mozilla.com/kb/Installing+Firefox+on+Linux Marc Fromm Information Technology Specialist II Financial Aid Department Western Washington University Phone: 360-650-3351 Fax: 360-788-0251 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] FreeBSD is not a Linux type environment at all. It is a Unix type from which it was derived. I don't recall if you have to rehash after uninstalling or not. Did you? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: doubts regarding the kernel programs
Hello sir, Here we are forewording the source code for that we have to make modification in the command IPMI_REGISTER-FOR_CMD .This is uniplemented command so we want to iplement it and want to print a message like IPMI REGISTER FOR CMD has been called. Thank U and Regards Dhananjaya Hiremath - It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar./*- * Copyright (c) 2006 IronPort Systems Inc. [EMAIL PROTECTED] * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in the *documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include sys/cdefs.h __FBSDID($FreeBSD: src/sys/dev/ipmi/ipmi.c,v 1.5 2006/09/26 15:48:13 jhb Exp $); #include sys/param.h #include sys/systm.h #include sys/bus.h #include sys/condvar.h #include sys/conf.h #include sys/kernel.h #include sys/malloc.h #include sys/module.h #include sys/poll.h #include sys/rman.h #include sys/selinfo.h #include sys/sysctl.h #include sys/watchdog.h #ifdef LOCAL_MODULE #include ipmi.h #include ipmivars.h #else #include sys/ipmi.h #include dev/ipmi/ipmivars.h #endif #ifdef IPMB static int ipmi_ipmb_checksum(u_char, int); static int ipmi_ipmb_send_message(device_t, u_char, u_char, u_char, u_char, u_char, int) #endif static d_ioctl_t ipmi_ioctl; static d_poll_t ipmi_poll; static d_open_t ipmi_open; static d_close_t ipmi_close; int ipmi_attached = 0; #define IPMI_MINOR 0 static int on = 1; SYSCTL_NODE(_hw, OID_AUTO, ipmi, CTLFLAG_RD, 0, IPMI driver parameters); SYSCTL_INT(_hw_ipmi, OID_AUTO, on, CTLFLAG_RW, on, 0, ); static struct cdevsw ipmi_cdevsw = { .d_version =D_VERSION, .d_open = ipmi_open, .d_close = ipmi_close, .d_ioctl = ipmi_ioctl, .d_poll = ipmi_poll, .d_name = ipmi, }; MALLOC_DEFINE(M_IPMI, ipmi, ipmi); static int ipmi_open(struct cdev *cdev, int flags, int fmt, struct thread *td) { struct ipmi_device *dev; struct ipmi_softc *sc; if (!on) return (ENOENT); dev = cdev-si_drv1; sc = dev-ipmi_softc; IPMI_LOCK(sc); if (dev-ipmi_open) { IPMI_UNLOCK(sc); return (EBUSY); } dev-ipmi_open = 1; IPMI_UNLOCK(sc); return (0); } static int ipmi_poll(struct cdev *cdev, int poll_events, struct thread *td) { struct ipmi_device *dev; struct ipmi_softc *sc; int revents = 0; dev = cdev-si_drv1; sc = dev-ipmi_softc; IPMI_LOCK(sc); if (poll_events (POLLIN | POLLRDNORM)) { if (!TAILQ_EMPTY(dev-ipmi_completed_requests)) revents |= poll_events (POLLIN | POLLRDNORM); if (dev-ipmi_requests == 0) revents |= POLLERR; } if (revents == 0) { if (poll_events (POLLIN | POLLRDNORM)) selrecord(td, dev-ipmi_select); } IPMI_UNLOCK(sc); return (revents); } static void ipmi_purge_completed_requests(struct ipmi_device *dev) { struct ipmi_request *req; while (!TAILQ_EMPTY(dev-ipmi_completed_requests)) { req = TAILQ_FIRST(dev-ipmi_completed_requests); TAILQ_REMOVE(dev-ipmi_completed_requests, req, ir_link); dev-ipmi_requests--; ipmi_free_request(req); } } static int ipmi_close(struct cdev *cdev, int flags, int fmt, struct thread *td) { struct ipmi_request *req, *nreq; struct ipmi_device *dev; struct ipmi_softc *sc; #ifdef CLONING int bit; #endif dev = cdev-si_drv1; sc = dev-ipmi_softc; IPMI_LOCK(sc); if (dev-ipmi_requests) {
doubts regarding the kernel programs
Hello sir, Here we got the kernel source code and we want to modify the code so that we can print a some debug message.If we do this change where we will see this modification if we compile this again or is there any mothod to see weather modified method is correct or not. Thank U and Dhananjaya Hiremath - Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Find out startup programs execution order..
2007/5/16, Jack Barnett [EMAIL PROTECTED]: Look before and after the error messages What other messages you see? That'll give you a general idea on where it's at in the startup process when you get that error. On 5/15/07, Agus [EMAIL PROTECTED] wrote: Hi... i am trying to solve a problem with an error message during startup.. su: /bin/csh : Permission Denied so i am trying to find the way the programs start during boot thats it Thanxsss ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Yes..thats the way i found that the error was from mysql-server... but i thought that there might be a way to see the order programs boot...and maybe change it... Thanks... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Find out startup programs execution order..
On Tue, May 15, 2007 at 11:34:15PM -0300, Agus wrote: Hi... i am trying to solve a problem with an error message during startup.. su: /bin/csh : Permission Denied so i am trying to find the way the programs start during boot thats it Thanxsss AFAIK: Programs under /etc/rc.d/ and /usr/local/etc/rc.d/ start in alphanumerical order. So you can rename those startup shell scripts according to your needs. -- Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174 Worker bees can leave. Even drones can fly away. The Queen is their slave. pgpKRYNhHIrwq.pgp Description: PGP signature
Re: Find out startup programs execution order..
On 5/16/07, Agus [EMAIL PROTECTED] wrote: Yes..thats the way i found that the error was from mysql-server... but i thought that there might be a way to see the order programs boot...and maybe change it... man 8 rcorder /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Find out startup programs execution order..
Agus [EMAIL PROTECTED] writes: 2007/5/16, Jack Barnett [EMAIL PROTECTED]: Look before and after the error messages What other messages you see? That'll give you a general idea on where it's at in the startup process when you get that error. On 5/15/07, Agus [EMAIL PROTECTED] wrote: Hi... i am trying to solve a problem with an error message during startup.. su: /bin/csh : Permission Denied so i am trying to find the way the programs start during boot thats it Thanxsss ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Yes..thats the way i found that the error was from mysql-server... but i thought that there might be a way to see the order programs boot...and maybe change it... Sure. The documentation for this is under man rc.d. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Find out startup programs execution order..
2007/5/16, Lowell Gilbert [EMAIL PROTECTED]: Agus [EMAIL PROTECTED] writes: 2007/5/16, Jack Barnett [EMAIL PROTECTED]: Look before and after the error messages What other messages you see? That'll give you a general idea on where it's at in the startup process when you get that error. On 5/15/07, Agus [EMAIL PROTECTED] wrote: Hi... i am trying to solve a problem with an error message during startup.. su: /bin/csh : Permission Denied so i am trying to find the way the programs start during boot thats it Thanxsss ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Yes..thats the way i found that the error was from mysql-server... but i thought that there might be a way to see the order programs boot...and maybe change it... Sure. The documentation for this is under man rc.d. Great...thanks for everyonei will begin reading. thankks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Find out startup programs execution order..
Hi... i am trying to solve a problem with an error message during startup.. su: /bin/csh : Permission Denied so i am trying to find the way the programs start during boot thats it Thanxsss ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Find out startup programs execution order..
Look before and after the error messages What other messages you see? That'll give you a general idea on where it's at in the startup process when you get that error. On 5/15/07, Agus [EMAIL PROTECTED] wrote: Hi... i am trying to solve a problem with an error message during startup.. su: /bin/csh : Permission Denied so i am trying to find the way the programs start during boot thats it Thanxsss ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem of segmentation fault with a lot of KDE programs
Hi again ! Replying to myself, as I made some progress, and would like to share them. I put the line : libpthread.so.2 libpthread.so.1 (which are /lib/libpthread.so.2 and /usr/local/lib/compat/libpthread.so.1) in /etc/libmap.conf and now, kdevelop, kdvi and amarok work... but with this tuning, Terminal and Mozilla are not working, and I suspect that it's the case for lot of other programs. Error is : /libexec/ld-elf.so.1: /usr/local/lib/compat/libpthread.so.1: Undefined symbol __malloc_lock So how could I make it work ? How could I help the system to choose between both ? I tried to put things like : [/usr/local/bin/kdevelop-bin] libpthread.so.2 libpthread.so.1 in libmap.conf, but it does not work for all the programs, and that force me to add a lot of things manually to the libmap.conf file, which is not that good... Thanks ! Grégory 2007/2/1, Gregory Nou [EMAIL PROTECTED]: Hi, After trying to figure out how to solve the problem I have on my own, I'd like to submit it to you, to get some hints. Here it is: almost all programs related to kde (kdevelop, kghosviewer, kile, ...) and gaim are segfaulting, because of a problem which seems to be related to pthread. Please note that everything else is working fine : xfce-4.4, anjuta, firefox, etc... FreeBSD 7.0-CURRENT #6: Fri Feb 2 13:47:26 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYSMP i386 running gdb kile : Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 100060] 0x29d0f1f9 in pthread_join () from /lib/libpthread.so.2 (gdb) bt #0 0x29d0f1f9 in pthread_join () from /lib/libpthread.so.2 #1 0x29d0374a in pthread_self () from /lib/libpthread.so.2 #2 0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 #3 0x29d0f2b2 in pthread_join () from /lib/libpthread.so.2 #4 0x29d0374a in pthread_self () from /lib/libpthread.so.2 #5 0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 #6 0x29d0f2b2 in pthread_join () from /lib/libpthread.so.2 #7 0x29d0374a in pthread_self () from /lib/libpthread.so.2 #8 0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 ... and it goes far, repeating it ad vitam. (using ktrace and kdump, wc -l outputs 637047) By the way, the equivalent in the ktrace part is : 2913 kile CALL getpid 2913 kile RET getpid 2913/0xb61 2913 kile CALL getpid 2913 kile RET getpid 2913/0xb61 2913 kile CALL getpid 2913 kile RET getpid 2913/0xb61 Same for kdevelop-bin and all the kde-related who segfault (because some rare k(something) work, like konsole oder KDE System Guard) For gaim, the error message is a bit different, but bt gives the same output : Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 100079] 0x28b38d3e in sysctl () from /lib/libc.so.6 (gdb) bt #0 0x28b38d3e in sysctl () from /lib/libc.so.6 #1 0x28a852b2 in pthread_join () from /lib/libpthread.so.2 #2 0x28a7974a in pthread_self () from /lib/libpthread.so.2 #3 0x28a79dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 #4 0x28a852b2 in pthread_join () from /lib/libpthread.so.2 #5 0x28a7974a in pthread_self () from /lib/libpthread.so.2 #6 0x28a79dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 I experience these problems for more than a week now. Everything is up-to-date on my system (src + ports) - last cvsup a few hours ago. I recompiled everything a few time. As I did not see feedback on forums or on mailing lists, I assume I am the only one who has this problem. Which makes me feel a bit lonely ;) Could you please me help me ? Also, I would be glad to provide any further information like dmesg, bt, ktrace, whatever, ... Thanks ! Gregory ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem of segmentation fault with a lot of KDE programs
Hi, After trying to figure out how to solve the problem I have on my own, I'd like to submit it to you, to get some hints. Here it is: almost all programs related to kde (kdevelop, kghosviewer, kile, ...) and gaim are segfaulting, because of a problem which seems to be related to pthread. Please note that everything else is working fine : xfce-4.4, anjuta, firefox, etc... FreeBSD 7.0-CURRENT #6: Fri Feb 2 13:47:26 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYSMP i386 running gdb kile : Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 100060] 0x29d0f1f9 in pthread_join () from /lib/libpthread.so.2 (gdb) bt #0 0x29d0f1f9 in pthread_join () from /lib/libpthread.so.2 #1 0x29d0374a in pthread_self () from /lib/libpthread.so.2 #2 0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 #3 0x29d0f2b2 in pthread_join () from /lib/libpthread.so.2 #4 0x29d0374a in pthread_self () from /lib/libpthread.so.2 #5 0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 #6 0x29d0f2b2 in pthread_join () from /lib/libpthread.so.2 #7 0x29d0374a in pthread_self () from /lib/libpthread.so.2 #8 0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 ... and it goes far, repeating it ad vitam. (using ktrace and kdump, wc -l outputs 637047) By the way, the equivalent in the ktrace part is : 2913 kile CALL getpid 2913 kile RET getpid 2913/0xb61 2913 kile CALL getpid 2913 kile RET getpid 2913/0xb61 2913 kile CALL getpid 2913 kile RET getpid 2913/0xb61 Same for kdevelop-bin and all the kde-related who segfault (because some rare k(something) work, like konsole oder KDE System Guard) For gaim, the error message is a bit different, but bt gives the same output : Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 100079] 0x28b38d3e in sysctl () from /lib/libc.so.6 (gdb) bt #0 0x28b38d3e in sysctl () from /lib/libc.so.6 #1 0x28a852b2 in pthread_join () from /lib/libpthread.so.2 #2 0x28a7974a in pthread_self () from /lib/libpthread.so.2 #3 0x28a79dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 #4 0x28a852b2 in pthread_join () from /lib/libpthread.so.2 #5 0x28a7974a in pthread_self () from /lib/libpthread.so.2 #6 0x28a79dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 I experience these problems for more than a week now. Everything is up-to-date on my system (src + ports) - last cvsup a few hours ago. I recompiled everything a few time. As I did not see feedback on forums or on mailing lists, I assume I am the only one who has this problem. Which makes me feel a bit lonely ;) Could you please me help me ? Also, I would be glad to provide any further information like dmesg, bt, ktrace, whatever, ... Thanks ! Gregory ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
A little trouble starting (X-) Programs over ssh...
Good evening peeps! This probably isn't a real FreeBSD-issue itself, but it doesn't really fit any other topic that has a newsgroup out there, so please bear with me here! What I have done: I've installed an X-server (XMing) on a Windows-XP box and connect via PuTTY to a FreeBSD box (Sun U60). I have configured the X-server to allow clients to connect from the IP of the FreeBSD-box. One of the commands I want to use (for example) is 'konqueror -display winbox:0 '. Now that works fine, so it seems I got it right up to here. In case that wasn't clear so far: I am not using X-forwarding over ssh. So I don't need the ssh session to run the X-application. Since I don't always want to habe terminal windows hanging around and typing in the commands like that is a little boring, I wanted to automate that a little. I could do that by adding a command to run directly in PuTTY or by using plink. I tried both and neither got the desired results. If I use PuTTY the terminal window opens for a few seconds and then closes again. I get to see a few messages from the konqueror but the browser's window never appears on my desktop. If I use the exact command line in an open ssh session, konqueror starts and I can do what I like with it. If I close the ssh session I started the browser from nothing happens, meaning, it doesn't close. I can just go on surfing. Quite the reverse happens if I user plink to start konqueror. I get a command line window and see the messages of konqueror starting up. Unlike when using PuTTY I get a browser window and it stays too. The command line window which was the result of plink starting doesn't disappear though. It stays right where it is, maybe displaying the odd message or another from konqueror. Pressing ctrl-c closes the window (obviously there is now a clean exit somewhere) while leaving konqueror running. I have tried using the -batch and -s options and others to try to get the window to close *after* the application was actually started. With no success (so far). And this is just the part I don't get. When using PuTTY there seems to be some sort of clean exit, because otherwise the window wouldn't close. Why doesn't plink get the same clean exit? If there is a clean exit, why does it come too soon - if that is the case here? Why does the application break off its launch? What I basicly want is to start an application with a shortcut without making every one of them have two windows (one for the app itself and one for the terminal session). Is there any way of doing this? Regards Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Best way to upgrade base programs
Can someone offer some guidance as to the best way to upgrade packages that were not installed via the ports system? For instance, openssh. Would 'portinstall sshd' work and the system see the new version or should it be uninstalled some way first? I am running 5.3 and 6.1. Thanks, Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Best way to upgrade base programs
Robert Fitzpatrick wrote: Can someone offer some guidance as to the best way to upgrade packages that were not installed via the ports system? For instance, openssh. Would 'portinstall sshd' work and the system see the new version or should it be uninstalled some way first? I am running 5.3 and 6.1. Thanks, Robert If you use the base package version, I believe that the best way to go about installing the latest and greatest version would be to go... cd /usr/src; make clean cleandir; cd crypto/openssh; make depend; make; make install If you're using the ports version, portupgrade openssh would do the trick, but you are probably not using that particular version.. If you are trying to upgrade SSL related ports that were affected by a vulnerability, you may just want to run buildworld and installworld on it (see http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html). -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
linux programs accessing non-linux programs
Hi all, I have been having trouble figuring out how to make linux programs (installed and running under /compat/linux) access other FreeBSD binaries that are *not* located under /compat/linux. For instance, I am running linux-thunderbird and when I want to open a *.doc file attachment, thunderbird asks me which application I would like to use: I would like to point it to /usr/X11R6/bin/abiword , but unfortunately when I chdir to /usr/X11R6/bin in the dialog box, it goes actually to /compat/linux/usr/X11R6/bin (and abiword is *not* there). Is there a way to make linux programs be able to jump out of /compat/linux/ when looking for helper applications? thanks in advance for any advice best giuseppe -- - Giuseppe Pagnoni Psychiatry and Behavioral Sciences Emory University School of Medicine 1639 Pierce Drive, Suite 4000 Atlanta, GA, 30322 tel: 404.712.8431 fax: 404.727.3233 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: linux programs accessing non-linux programs
In the last episode (Oct 24), Giuseppe Pagnoni said: I have been having trouble figuring out how to make linux programs (installed and running under /compat/linux) access other FreeBSD binaries that are *not* located under /compat/linux. For instance, I am running linux-thunderbird and when I want to open a *.doc file attachment, thunderbird asks me which application I would like to use: I would like to point it to /usr/X11R6/bin/abiword , but unfortunately when I chdir to /usr/X11R6/bin in the dialog box, it goes actually to /compat/linux/usr/X11R6/bin (and abiword is *not* there). Is there a way to make linux programs be able to jump out of /compat/linux/ when looking for helper applications? If you specify the full path instead of browsing to the directory, it should work. When linux programs ask for files, the kernel first looks in /compat/linux/, then /. If you need to be able to browse to files, you can try null mounting / and /usr into /compat/linux/realroot, then browse through that. Or, if you have amd enabled, browse through /net/localhost/... -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I give 2 parameters to programs in an unix enviroment?
On 8 September 2006, at 08:10, Lasse Edlund wrote: If I have two files foo and bar and try to run diff on them I write: $diff foo bar I can also write $cat foo | diff - bar But how do I give a program two (2) commands? not only to diff but to any program that wants double input... I wanna do $cat foo | cat bar | diff - - The entire purpose of cat is to concatenate files (make them output one after another). So, do: cat foo bar | diff - - especially with echo commands that would be handy so I dont have to create files! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] -- hackmiester (Hunter Fuller) svinx yknow when you go to a party, and everyones hooked up except one guy and one girl svinx and so they look at each other like.. do we have to? svinx intel nvidia must be lookin at each other like that right now Phone Voice: +1 251 589 6348 Fax: Call the voice number and ask. Email General chat: [EMAIL PROTECTED] Large attachments: [EMAIL PROTECTED] SPS-related stuff: [EMAIL PROTECTED] IM AIM: hackmiester1337 Skype: hackmiester31337 YIM: hackm1ester Gtalk: hackmiester MSN: [EMAIL PROTECTED] Xfire: hackmiester ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I give 2 parameters to programs in an unix enviroment?
On Mon, 11 Sep 2006, hackmiester (Hunter Fuller) wrote: On 8 September 2006, at 08:10, Lasse Edlund wrote: If I have two files foo and bar and try to run diff on them I write: $diff foo bar I can also write $cat foo | diff - bar But how do I give a program two (2) commands? not only to diff but to any program that wants double input... I wanna do $cat foo | cat bar | diff - - The entire purpose of cat is to concatenate files (make them output one after another). So, do: cat foo bar | diff - - This advice is wrong. To answer the original question: the shell pipe connects the stdout of the first process to the stdin of the second process using a pipe. The stock shells don't have a way of doing what you're after. If you have fdescfs mounted, ksh can do something like what you're after using the syntax: diff (cat foo) (cat bar) zsh supports something similar and can work around the lack of fdescfs. -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ ( echo ouroboros; cat ) /dev/fd/0 # it's like talking to yourself sometimes ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How do I give 2 parameters to programs in an unix enviroment?
If I have two files foo and bar and try to run diff on them I write: $diff foo bar I can also write $cat foo | diff - bar But how do I give a program two (2) commands? not only to diff but to any program that wants double input... I wanna do $cat foo | cat bar | diff - - especially with echo commands that would be handy so I dont have to create files! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I give 2 parameters to programs in an unix enviroment?
If I have two files foo and bar and try to run diff on them I write: $diff foo bar I can also write $cat foo | diff - bar But how do I give a program two (2) commands? not only to diff but to any program that wants double input... I wanna do $cat foo | cat bar | diff - - especially with echo commands that would be handy so I dont have to create files! You don't. Recall that | is the pipe operator, and like in real life, there's one input and one output. Pipes used on the command line are for all intents and purposes unnamed, and you can only build up one pipeline. That's why named pipes were invented, so that you could have multiple pipes and refer to them by name (instead of implicitly). But in your case, using named pipes is really no different than using files. -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I give 2 parameters to programs in an unix enviroment?
--- Lasse Edlund [EMAIL PROTECTED] wrote: If I have two files foo and bar and try to run diff on them I write: $diff foo bar I can also write $cat foo | diff - bar But how do I give a program two (2) commands? not only to diff but to any program that wants double input... I wanna do $cat foo | cat bar | diff - - especially with echo commands that would be handy so I dont have to create files! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] diff foo bar is the the way a contruct like (cat foo; cat bar| diff - -) may work but I doubt it because they both are writing to the same STDOUT and so - - is more then likely invalid. (echo random junkola foo) (cat foo bar) or (echo random junkola foo) (cp foo bar) would be just as good. would echo the same thing to two files. I think what you want might be diff `cat foo` `cat bar` which is the the quote on the tilde key. check man eval if I'm using the right quote this will evaluate the command in the ` ` and pass its STDOUT as a parameter. For large files this might fail because of the limitation to the command line length, I'm not certain. the best thing might be look in /etc/rc for the last line which will be something like: echo `date` those are the quotes you want and this is the only way to do what I think you're asking. -brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I give 2 parameters to programs in an unix enviroment?
Here's an example using zsh (I assume it's the same using bash, but different using tcsh or sh): diff (find /usr/local -type f | sort) (for each in /var/db/pkg/*/ +CONTENTS; do grep -v '^@' $each; done | sort) This does a diff(1) of what /var/db/pkg says that /usr/local should look like, and what it *really* looks like (note that it would need some tuning in order to actually be useful, but you get the idea) This uses the () operator. What the () operator does is create a named pipe in /tmp, execute the commands contained in the parenthesis in a subshell, and connect the stdout of the subshell into that named pipe. So it's sort of like using temp files, but you don't have to clean up after yourself. There's another, similar operator that does force it to use temp files, but I can never remember what it is :) Check the manpages for your shell Note that not all programs support using named pipes instead of files, since they expect to be able to do things like rewind the current position in the file descriptor. diff(1) looks to support it okay, though. A simplified version of your example would look like this: diff (cat foo) (cat bar) On 08 Sep 2006, at 06:10, Lasse Edlund wrote: If I have two files foo and bar and try to run diff on them I write: $diff foo bar I can also write $cat foo | diff - bar But how do I give a program two (2) commands? not only to diff but to any program that wants double input... I wanna do $cat foo | cat bar | diff - - especially with echo commands that would be handy so I dont have to create files! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I give 2 parameters to programs in an unix enviroment?
In the last episode (Sep 08), David King said: Here's an example using zsh (I assume it's the same using bash, but different using tcsh or sh): diff (find /usr/local -type f | sort) (for each in /var/db/pkg/*/ +CONTENTS; do grep -v '^@' $each; done | sort) This does a diff(1) of what /var/db/pkg says that /usr/local should look like, and what it *really* looks like (note that it would need some tuning in order to actually be useful, but you get the idea) This uses the () operator. What the () operator does is create a named pipe in /tmp, execute the commands contained in the parenthesis in a subshell, and connect the stdout of the subshell into that named pipe. So it's sort of like using temp files, but you don't have to clean up after yourself. There's another, similar operator that does force it to use temp files, but I can never remember what it is :) Check the manpages for your shell Just for the archives, The =() operator puts the output to a temp file and returns the filename to the main command. It has to wait for the subshell to finish before running the main command, though. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I give 2 parameters to programs in an unix enviroment?
Here's an example using zsh (I assume it's the same using bash, but different using tcsh or sh): [...] This uses the () operator. [...] There's another, similar operator that does force it to use temp files, but I can never remember what it is :) [...] Just for the archives, The =() operator puts the output to a temp file and returns the filename to the main command. It has to wait for the subshell to finish before running the main command, though. Ah, thanks, I'll try to remember that this time :) Note that the =() operator, because it uses regular files, doesn't have the issue that some programs won't know how to deal with it (that is, because they are regular files, they support things like fseek() etc). The downside, as Dan said, is that the entire command line isn't executed until all of the subshells within =() operators complete (so the example I gave could take a long time to have any output). Also note that the =() operator will put its temp files in / tmp by default (unless you set your shell to put them elsewhere), so if you have a command with a lot of output, make sure that your /tmp can take all of it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
A more appropriate list to find programs
Just wondering if there is a more appropriate list to help identify BSD or GPL programs/code for specific applications. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: A more appropriate list to find programs
Chris T. wrote: Just wondering if there is a more appropriate list to help identify BSD or GPL programs/code for specific applications. freebsd-ports@ ...? http://www.freebsd.org/ports/categories-grouped.html Note that ports include software under a wide variety of licenses. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]