printf and utf-8
As far as I can see, printf is not calculating strings lengths correctly when using utf-8 encoding. Either that, or I'm using byte count, and can't find the character count :-/ Eg: $ printf |%-10s| æøå |æøå| $ printf |%-10s| 123 |123 | I'm on 7.1-p2 sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printf and utf-8
Chuck Swiger wrote: On Jan 26, 2009, at 1:58 PM, Svein Halvor Halvorsen wrote: As far as I can see, printf is not calculating strings lengths correctly when using utf-8 encoding. Either that, or I'm using byte count, and can't find the character count :-/ printf(1) explicitly states that it works with ASCII and ANSI X3.159-1989 (``ANSI C89'') character escapes, and it also notes: Multibyte characters are not recognized in format strings (this is only a problem if `%' can appear inside a multibyte character). Some platforms have a printf_l(3) which is locale/xlocale-aware, but there doesn't seem to be a corresponding CLI utility which understands Unicode/UTF8/widechars. Thanks for your explanation. Do you have a suggestion to solve the following problem without using printf(1): I have a text file that I want to print in a box on a terminal from a shell script. Now I've padded the lines with spaces to a certain length using printf %-70s and appended the box drawing character. Is there another simple way that will work with utf-8? sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printf and utf-8
Chuck Swiger wrote: On Jan 26, 2009, at 3:05 PM, Svein Halvor Halvorsen wrote: Do you have a suggestion to solve the following problem without using printf(1): I have a text file that I want to print in a box on a terminal from a shell script. Now I've padded the lines with spaces to a certain length using printf %-70s and appended the box drawing character. Is there another simple way that will work with utf-8? My first thought was about dialog(1), but I'm not sure whether that deals with UTF8 any better...? No, it doesn't seem to. Also it clears the entire screen to draw the box. I only want a small box, and not clear the screen, and I don't want a OK-button or any other user interaction. Just print the simple box, then whatever follows from the script should print after it. Nevertheless, thanks for your help and your time! sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Keeping FreeBSD updated (the binary way)
Svein Halvor Halvorsen wrote: I want to make sure I have better routines this time around, when I'm starting a-fresh. I'd like to keep my system and packages fairly up to date, and still keep the compiling to a minimum. Is it possible to pkg_add -r packages from -STABLE on the latest -RELEASE? That is, will the following work, or slowly render my system to an incoherent state: Tim Judd wrote: This was once not the way to do it. I read on the handbook recently that they actually advertize to use -STABLE packages if you want more up-to-date programs. Ok. I also realized that portsnap is more updated than the -STABLE precompiled packages. I should perhaps get the INDEX file off the ftp server as well. Is there a way to fetch the actual ports tree used to produce the current -STABLE package set? Why is it you wnat to remove the compiling part of it? portupgrade, portmaster or any other port management tool will take care of that for you. Just curious on this one. The compilation takes forever. Ok, so my new computer (which isn't exactly new) will be a lot faster than the one it replaces, but still. I can always compile coreutils and stuff like that, but larger applications, I would want to install binary. Also, there is little advantage nowadays in compiling yourself. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Keeping FreeBSD updated (the binary way)
Svein Halvor Halvorsen svei...@lvor.halvorsen.cc wrote: Is it possible to pkg_add -r packages from -STABLE on the latest -RELEASE? That is, will the following work, or slowly render my system to an incoherent state: RW wrote: It'll work most of the time, but occasionally it will fail, when a STABLE package relies on a library or other feature that's not in the release. A compromise might be to stick to the release packages, until portaudit reveals a significant vulnerability and then switch to Stable until the next release. But when that happens, should I upgrade just the one affected package, or grab updates for all my installed packages, to make sure all packages on the system is concurrent? That is, made from the same ports tree at some point in time. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Keeping FreeBSD updated (the binary way)
Hi, list! I have just acquired a new computer to replace an old server. This older server has been running FreeBSD 5.3 since 2004 and most of its packages are way out of date. I've been scared of changing something in fear of rendering the machine unbootable, or some core applications unrunnable. I want to make sure I have better routines this time around, when I'm starting a-fresh. I'd like to keep my system and packages fairly up to date, and still keep the compiling to a minimum. Is it possible to pkg_add -r packages from -STABLE on the latest -RELEASE? That is, will the following work, or slowly render my system to an incoherent state: 1) Regularly run freebsd-update 2) Regularly run portsnap 3) Set my PACKAGESITE to the -STABLE location 4) Regularly run portupgrade -P Will the postsnap'ed index always be in sync with what's available as precompiled packages for -STABLE? Will these -STABLE packages always run on my freebsd-update'd -RELEASE system? If some ports have the NO_PACKAGE bit set, will compiling them against dependencies from -STABLE work, as long as I've run portsnap? Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: DHCP server
bofh42 wrote: [EMAIL PROTECTED]:~]$ dhcpcd -n eth0 eth0: dhcpcd 4.0.2 starting eth0: broadcasting for a lease eth0: offered 10.0.0.176 from 10.0.1.1 `mirrorball' eth0: checking 10.0.0.176 is available on attached networks Are you sure you are using the correct command to start the DHCP client? I'm not familiar with Archlinux, but on Debian linux the command you need is dhclient. On the other hand, dhcpd starts the dhcp *server* Yes, I'm sure. Notice the extra c in there. I'm using the DHCP client deamon. That is, a client that runs in the background keeping my DCHP lease up to speed. The -n option will cause it to signal a renewal. Also, I get similar results if I use the dhclient utility instead of dhcpcd. But thanks for your suggestion! sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
DHCP server
Hi, I'm not sure if this is an issue with my dhcp server or the client, but since I seem to get troubles with two different clients, I'm thinking it might be the server: I've got a FreeBSD 7.0-p4 machine running isc-dhcp3-server-3.0.5_2 serving my home network. When my Linux (Archlinux) client request a lease, this happens: [EMAIL PROTECTED]:~]$ dhcpcd -n eth0 eth0: dhcpcd 4.0.2 starting eth0: broadcasting for a lease eth0: offered 10.0.0.176 from 10.0.1.1 `mirrorball' eth0: checking 10.0.0.176 is available on attached networks ... and then it times out, and does not configure the network. This makes me think that there may be a client issue, since the DCHP server does indeed offer an address. But I also have troubles with a Mac OS X client (although it's a little more vague about the errors). Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DHCP server
Wojciech Puchar wrote: a lease, this happens: [EMAIL PROTECTED]:~]$ dhcpcd -n eth0 eth0: dhcpcd 4.0.2 starting eth0: broadcasting for a lease eth0: offered 10.0.0.176 from 10.0.1.1 `mirrorball' what's your netmask? if /24 your dhcp server is misconfigured No, it's /23, and the dhcp server has address 10.0.1.1, and it's handing out addresses in the the 10.0.0.2-10.0.0.200 range. 10.0.0.1 is a router with static address. It also uses /23. sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DHCP server
Daniel Bye wrote: On Fri, Oct 24, 2008 at 11:43:32AM +0200, Svein Halvor Halvorsen wrote: Hi, I'm not sure if this is an issue with my dhcp server or the client, but since I seem to get troubles with two different clients, I'm thinking it might be the server: I've got a FreeBSD 7.0-p4 machine running isc-dhcp3-server-3.0.5_2 serving my home network. When my Linux (Archlinux) client request a lease, this happens: [EMAIL PROTECTED]:~]$ dhcpcd -n eth0 eth0: dhcpcd 4.0.2 starting eth0: broadcasting for a lease eth0: offered 10.0.0.176 from 10.0.1.1 `mirrorball' eth0: checking 10.0.0.176 is available on attached networks ... and then it times out, and does not configure the network. This makes me think that there may be a client issue, since the DCHP server does indeed offer an address. But I also have troubles with a Mac OS X client (although it's a little more vague about the errors). If the server is handing out /24 network prefixes, then once your clients bind the offered address in 10.0.0/24, they can no longer communicate with the server in 10.0.1/24. You can a) give the DHCP server an alias IP address in 10.0.0/24 on the appropriate interface b) change the network prefix to 16 bits, so that 10.0.0 and 10.0.1 (and ALL other addresses with the prefix 10.0) are in the same logical network space c) renumber your DHCP pool The dhcp server has netmask /23, and are also handing out this netmask to clients. I have lots of clients running FreeBSD, Windows and OS X not complaining. I do however, have one OS X client that's been constantly complaining, and recently also an Archlinux machine. It used to work on the Linux client up until recently. It might be the client, in which case I should probably ask some Lunux-folks, but since one of the apples also have a problem, I thought I might be the server. Can I diagnose this any further? sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: defrag
Wojciech Puchar wrote: (look at how long it took the BSDs to have native file-level ACLs). because in unix they are not actually needed. usersgroups system is just perfect. That's one man's opinion. i don't know anyone here that actually use ACL under unix because he/she needs it. It depends on your definition of need, I guess. The groups file could always be the power set[1] of the passwd file. Svein Halvor [1] http://en.wikipedia.org/wiki/Power_set ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: A few questions from a current linux user
Polytropon wrote: 4) If a binary update leads to an unstable system, how easy it is to backtrack to an earlier working version along with working config files? An update set provided via freebsd-update should not render a system unstable / unusable; at least it's possible that the system is not in a working state when the update process gets interrupted at a critical point, but I never had such a problem. In the worst case, you can restore the base system from the installation CD (or via bootonly + network) and try the update again. There's a freebsd-update rollback, but I've never had the need to use it, so I can't say how well it works. But I guess it does what you're asking. signature.asc Description: OpenPGP digital signature
Free wireless network (access point, router, transparent HTTP proxy setup)
Hello, fellow FreeBSD-ers! I'd like to a good neighbor and share my DSL line and set up an unencrypted free wireless access point. I often find myself wanting more free access points around the city, so I thought I'd stand up as a good example for others :-) I want people to know that they can use the network (easy, use ssid free internet), but I want them to know that they should be nice, and it's meant for casual browsing, and that misuse will cause a ban. So, what I'd like: 1) Setup a wireless network card in infrastructure mode, I think. 2) Setup a DHCP server and DNS forwarder on this interface 3) Setup routing from one interface to my other network 4) Use a firewall to close down lots of stuff, maybe also limit bandwith per mac-address, and a way to deny access to certain NICs. 5) Insert a message in all text/html over HTTP, basically saying: Hi, guest! Feel free to use our free internet, but be nice! And a close-button, which I guess needs to send a POST to a http server as well, and that I need to record this action in a database, and use the same database to dynamically insert the message above or not. So, if you have any pointers to any of the above, please feel free to give me directions. Keywords, product names, and other google bait is good. I know how to read, but I don't really know where to start. I'm guessing that pt. (5) will be hardest. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Free wireless network (access point, router, transparent HTTP proxy setup)
Giorgos Keramidas wrote: This sounds like too much work for a doubtful amount of gain. It is probably a lot easier to use ipfw or pf+altq to rate limit the bandwidth others can use :) Marcel Grandemange wrote: Sounds To Me Also too much work for little gain... The learning experience in doing it, is a major part of the gain. Although, the end product itself is also of some value. Easist would be to use a product called Mikrotik you will have that entire system up running in 15mins tops. http://www.mikrotik.com/download.html I will look into it. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Free wireless network (access point, router, transparent HTTP proxy setup)
Matthias Apitz wrote: To the OP: Be aware that depending on the local laws you might (will) be responsible if the NATed IP is used in criminal affairs (downloads, child porno, etc.); at least the local authorities will ask you who used that IP and take your complete system with them for further investigations, scanning your logs and disks; even if it is a nice idea and you have good neighbors, I would not do that here in Germany; Yes, I'm well aware of the laws in this regard. It wont be illegal to relay any traffic, for whatever reason. It's far more likely that I will violate the contract I have with my ISP, than Norwegian criminal law. But it will of course be unpleasant for me, if someone used my network for illegal activities, for the reasons you mention. Still, I'd like to set up something like this, if for nothing else, the challenge of doing it. I might even make people aware that the traffic is being monitored, and that will probably make people behave. An alternative to the inserted text in all http traffic (and probably easier to implement) is just to divert all unknown traffic to an internal ip-adress (using the firewall), and setup a web page on that address. Then have people click some button, which will rewrite the fw rules for that specific machine (white list). Svein Halvor signature.asc Description: OpenPGP digital signature
ACLs, permission mask and chmod g=
If I have acls enabled on a file, running chmod g=rw on that file, will not change its group permissions, but the acl mask. That is, running the following command: $ chmod g=rw foo ... is equivalent with $ setfacl -m m::rw- ... and not, as I would suspect: $ setfacl -m g::rw- In other words, foo will not be read/writable by its default group after the command have been run (unless it was already). I find this behaviour to be very confusing. It might be the correct bahaviour, but if so maybe the chmod(1) manpage, and possibly chmod(2), should be updated to document this? Svein Halvor signature.asc Description: OpenPGP digital signature
Re: ACLs, permission mask and chmod g=
acmeinc wrote: You may consider trying chmod 660 filename. It gives the same result. When changing group permission (either way) on a file with acls, you're effectively changing the acl mask instead. Also, if I change acl mask with setfacl, then ls -l will list the permission mask in the group columns in the output. If this is by design, then it isn't documented in chmod(1) (or anywhere else that I can see). It kinda makes sense this way, though. If you chmod the group permission, you change all groups' permissions. But I'd like to see it documented, as it caused me some confusion, and I still think that this isn't obvious. Svein Halvor Halvorsen-4 wrote: If I have acls enabled on a file, running chmod g=rw on that file, will not change its group permissions, but the acl mask. That is, running the following command: $ chmod g=rw foo ... is equivalent with $ setfacl -m m::rw- ... and not, as I would suspect: $ setfacl -m g::rw- In other words, foo will not be read/writable by its default group after the command have been run (unless it was already). I find this behaviour to be very confusing. It might be the correct bahaviour, but if so maybe the chmod(1) manpage, and possibly chmod(2), should be updated to document this? Svein Halvor signature.asc Description: OpenPGP digital signature
Re: ACLs, permission mask and chmod g=
acmeinc wrote: One last thing have you tried; setfacl -s setfacl -s is not documented, and also gives illegal option -- s signature.asc Description: OpenPGP digital signature
Re: OT: encrypted email using web based application
Andrew Gould wrote: If I start with Subject line with the word secure using my work's email system, the email is sent to a secure, web based application where the recipients can view the message securely. The recipients receive a message that a secure email message is waiting for them there. They have to create an account based upon their email address to view the message. They do not have to recreate the accounts for future messages. This system is easy to use; and we don't have to worry about whether the recipients have PGP or GPG. Is there an open source application that does this? How is this secure? Ok, I can see that if the message is served over https, then the network packages themselves cannot be sniffed easily. But as long as the recipient did not give you the key to use, then this is not secure. Why should the recipient trust the server? Whether there is an open source solution, I don't know however. sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Network, routers, DHCP and PXE
Hi, list! I have a private home network, on an ADSL2+ connection to the internet. The home network is behind NAT, all automatically set up by the router/dhcp server/wlan access point/adsl modem that I got from my ISP. It's a Thomson SpeedTouch 585 router. Now, on this network, most of the computers get their IP by means of DHCP. Except our home audio server, which have a hard coded ip address in rc.conf, set to something within the range of the dhcp server (10.0.0.2-10.0.0.253). The server seems to pick this up, and don't give that address away to someone else. I've tried using other addresses outside this range, like 10.0.1.1, but that doesn't work. All network access is lost when I do that. Now, on my local network I'd like to put a diskless machine. As I understand it, my DHCP server needs to tell the client about the filename and a next-server to use. I don't think I can setup the Thomson router to do this. All the instruction I can find online advises me to install a DHCP server on the same machine that serves the pxe boot image. But if I do that, I'll get two DHCP servers on my local network. Is that ok? Will there be a race condition, when a client asks for an IP address? sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Network, routers, DHCP and PXE
Manolis Kiagias wrote: Now, on this network, most of the computers get their IP by means of DHCP. Except our home audio server, which have a hard coded ip address in rc.conf, set to something within the range of the dhcp server (10.0.0.2-10.0.0.253). The server seems to pick this up, and don't give that address away to someone else. You may also want to ensure that the router will never allocate your static IP address to someone else. Look at the DHCP router settings either for DHCP scope (set it to narrower values, and use a static IP outside the range) or for something like exceptions / exclusion where you can mark a specific IP that DHCP will never assign. Yeah, but even though the router has customizable values for this range, and issues a warning when i try to change them, it still doesn't change them when I click yes on the warning. It is pre-configured to 10.0.0.2-10.0.0.253 I could of course use 10.0.0.254 for my static ip, but my room mate also wants a static address. I've tried using other addresses outside this range, like 10.0.1.1, but that doesn't work. All network access is lost when I do that. 10.0.1.1 is a different network (I assume your netmask is 255.255.255.0, but check your router or your clients) You're right! But how do I make the entire 10/24 adress space available? It would be clean (I guess) to have a different adresse scheme for the static adresses. Anyway, it this point this isn't really critical, as the router figures out that the addresses I use, are in fact in use, and keeps them out of its dhcp address pool. You will have to shutdown the router's DHCP. Probably disable it permanently and assign this function to a machine. The DHCP of the router also sends you the following information (besides IP address): - DNS Server(s): Either the ones used by your ISP (consult its website) or its own address (i.e. 10.0.0.1). Most routers send their own address as a DNS server and perform the resolution by sending your request to ISP servers. - Gateway address: This is always the router's local IP address (i.e. 10.0.0.1) If you setup your own DHCP server, make sure it is set to send this info as well. (These are commonly known as DHCP options) So as long as I make my own DHCP server act the same way as the router one, I should be fine? NAT and all will work? Is there a way to debug the DHCP response from the current router dhcp server? So I can see what options it actually sends? dhclient doesn't seem to have a more verbose option, only less. sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Network, routers, DHCP and PXE
Manolis Kiagias wrote: Yeah, but even though the router has customizable values for this range, and issues a warning when i try to change them, it still doesn't change them when I click yes on the warning. It is pre-configured to 10.0.0.2-10.0.0.253 I could of course use 10.0.0.254 for my static ip, but my room mate also wants a static address. What are you trying to set it at? I would just lower the 253 value, so I could use the upper end for my static addresses. If you try to set it to a subnet outside it's own address, it will definitely not accept it. I managed to change the router ip address to 10.0.0.1/23 and just keep the default dhcp address space as 10.0.0.2-10.0.0.253. Now I seem to be able to use 10.0.1.1/24 for my own private use. (I don't think I really know what I'm doing here, but it works!) Well problem is, a netmask of 255.255.255.0 means only the last octet can be used for hosts. Your DHCP server is already assigning addresses from this space. Well, I changed it to 255.255.254.0 (0xfe00) but kept the dhcp range as it was. So as long as I make my own DHCP server act the same way as the router one, I should be fine? NAT and all will work? Yes. As long as the clients have a valid DNS to ask, and a valid gateway to send their packets, everything will work properly. If you come to think about it, you are already doing this on the system with the static configuration. Ok, I will look into this. Also, looking through the telnet interface options (which are far more than the web interface gives), I see that I can add dhch server option templates, dhcp server option instances and that I can assign such an instance to the dhcp server pool options. This uses a different config scheme than the isc dhcp server config files, though. And it seems I need to create a template before I can create an instance. The template takes a name and an option id as paramters. The instance, then takes a name, a template, and a value as mandatory paramters. Also enterprice number, suboption number, and more. How does the filename, next-server, etc map to option ids? Are these isomorphic, or do I get this completely wrong? Does this make any sense to you, or anyone else here? Should I try to make the router DHCP server serve the right options, or would you go the isc dhcp route? Thank you very much for your help so far! sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Binary upgrade from legacy version + ports
Svein Halvor Halvorsen wrote: I want to upgrade two freebsd machines I have from 6.1-SECURITY and 5.3-RELEASE respectively, to the latest 7.0 release of FreeBSD. I don't want to cvsup and build, but prefer to use prebuilt binaries. Also I'd like to avoid wiping the systems, and starting afresh. Matthew Seaman wrote: If your 6.1 system is using a system installed from one of the official iso images and hasn't been locally rebuilt (upgrading via freebsd-updates is OK though) then there is a quicker way. See http://www.daemonology.net/blog/2007-11.html Now this is what I'm talking about! I can't relly remember anymore, since it's so long ago, but I'm pretty sure I upgraded the box that is now 6.1 from some 5.x version, taking a binary route. I can't find the instructions anymore. Maybe I'm mistaken :-/ Upgrading FreeBSD across major versions is such a drag, that I allways postpone it. And now it's way overdue. I guess I just have to bite the bullet and wipe the system clean, and start afresh. The 6.1 system seem to be running 7.0-p2 now, though. Thanks! It is still upgrading ports. Fortunately this box does nothing important, and is just my personal playground. If something gets messed up, noe problem. I'm trying to upgrade the ports binary as well, using portupgrade -a -PP, and it seems to get the packages from RELEASE, not the latest versions that are in the ports tree. But as long as all ports use the same consistent set, I'm pretty sure it will work out nicely. My local ports tree will be out of sync, though, which might cause problems later? Is there a problem using the prebuilt packages from STABLE on a RELEASE box? If I want to run RELEASE, and still use the latest packages? The ABI is consistent between STABLE and RELEASE, right? Also, re: the freebsd-update, if I've built a system from source, say 7.0-RELEASE. And I want to upgrade it binary to -p2. If my home built system is basically like the prebuilt release, I should be fine, but freebsd-update won't let me do this, right? Anyway to overcome this? Thanks! Svein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Binary upgrade from legacy version
Hi, list! I want to upgrade two freebsd machines I have from 6.1-SECURITY and 5.3-RELEASE respectively, to the latest 7.0 release of FreeBSD. I don't want to cvsup and build, but prefer to use prebuilt binaries. Also I'd like to avoid wiping the systems, and starting afresh. I know this might break my systems and are willing to take the risk. I also reqognize that I probably have to rebuild a lot of ports afterwards. What steps do I take to increase my probablity of success? How do I do this the cleanest way possible? Could I just get all the distfiles and put them on top of my old system? How do I find files that are to be deleted from the old system? sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ACL and ls: operation not supported
Hi, I have acl support on some filesystems, and wanted to turn it on on /home, too. So I ran: # mount -u -o acls /home Now, just mount listed /home as supporting acls. But now, whenever I ls -l on any folder on that filesystem, I get operation not supported. It seems other file system access works as normal, though. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ACL and ls: operation not supported
Svein Halvor Halvorsen wrote: I have acl support on some filesystems, and wanted to turn it on on /home, too. So I ran: # mount -u -o acls /home Ok, I'm just being an ignorant noob, who's not able to read the documentation. I'm sorry for the noise, but for the record: ACLs cannot be turned on/off without a full umount/mount cycle! Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ACL and ls: operation not supported
Svein Halvor Halvorsen wrote: Svein Halvor Halvorsen wrote: I have acl support on some filesystems, and wanted to turn it on on /home, too. So I ran: # mount -u -o acls /home Ok, I'm just being an ignorant noob, who's not able to read the documentation. I'm sorry for the noise, but for the record: ACLs cannot be turned on/off without a full umount/mount cycle! Now, I'm not sure of anything. I umounted /home, ran tunefs -a enable /dev/ad2s1a (the device for /home), and then mounted /home again. mount now lists alcs among the options for this filesystem, but I'm back with the operation not supported messages. Any ideas? sv. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Help with default route
Hi! I usually use the wired network at home, in which everything gets configured automatically as soon as I attach the cable to my network card. However, when using the wireless network, I need to run # route add default -iface ipw0 This will give me a route to the gateway (10.0.0.1), and I can ping the gateway, as well as other machines on our local network. But if I try to connect to anything outside of 10/24, I get a no route to host error. If I manually add a route, with # route add x.y.z.t 10.0.0.1 I can connect to that host. If I change my default route to anything but -iface ipw0 I cannot connect to the gateway (10.0.0.1). I cannot keep adding routes to all hosts I need to connect to. I've solved the problem for web usage, by running a proxy on another machine on the local network (that's reachable) What am I doing wrong? I don't think I have a thorough understanding of network routes. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UTF-8 in Opera/FreeBSD
Martin Tournoij wrote: The problem is that the font you're using doesn't support the character(s) you want to type. You'll have to change the font in the opera preferences dialog, I think the bitstream family supports most UTF-8 fonts. This site may be useful in testing: http://people.w3.org/rishida/scripts/uniview/ It doesn't seem to be a font problem. The letters in question (æøå) are visible. I read pages in my own native language on a daily basis, and have no problem viewing these letters. However, if I either enter one of them in the search box built-in Opera, or enter text into input fields on webpages, square boxes appear instead of the letter entered. Also if I enter these letter in eg. a blog comment, other people will read the squares. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UTF-8 in Opera/FreeBSD
Martin Tournoij wrote: It's a different setting, make sure that not only web page normal text but also the text field single-line font is set to a font which supports your Norwegian characters. I don't think it's a font issue. I have no trouble viewing æøå even in input fields--I have trouble /entering/ them. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
UTF-8 in Opera/FreeBSD
I'm switching to UTF-8, and everything seems to work flawlessly, except for Opera. If I type one of the norwegian letters æøå into a text input box all I get is a square box. If I type backspace over it, it gets converted to a questionmark on the first stroke of backspace, and deleted on the second. If I copy the square box into another program, the propper letter is paced. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Writing Flash Driver
icantthinkofone wrote: My naive question is, what is involved with creating an open source driver for flash for freebsd? Is it a legal issue? Or does it take more time than anyone has to give? Or is it just too difficult to do without help from Adobe? http://www.gnu.org/software/gnash/ It can even play youtube. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
USB disk causes panic in 7.0-PRERELEASE
Hello, list! Jeg just bought a LaCie external USD hdd to store my pictures. When I plug it in, it causes my laptop to panic after ~15-20 seconds. After a reboot (with the disc still plugged in) it functions properly. These are the messages I get when I plug it in: umass0: SAMSUNG HDS0PAJDQP807411 LaCie Desktop Hard Drive, class 0/0, rev 2.00/c6.83, addr 2 on uhub3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: SAMSUNG HD320KJ Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C) GEOM_LABEL: Label for provider da0s1 is msdosfs/LaCie. umass0: at uhub3 port 1 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry GEOM_LABEL: Label msdosfs/LaCie removed. umass0: detached umass0: LaCie LaCie Desktop Hard Drive, class 0/0, rev 2.00/c6.83, addr 2 on uhub3 xptioctl: pass driver is not in the kernel xptioctl: put device pass0 in your kernel config file On the next subsequent boot (with the device plugged in), I get: da0 at umass-sim0 bus 0 target 0 lun 0 da0: SAMSUNG HD320KJ Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C) GEOM_LABEL: Label for provider da0s1 is msdosfs/LaCie. And I am able to mount it. If I disconnect, and reconnect it again, the computer panics again. How can I diagnose this? The computer saves a vmcore file. Can I use this to harvest some more information? FreeBSD weld.ej2.thelosingend.net 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Sun Oct 14 15:04:21 CEST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB disk causes panic in 7.0-PRERELEASE
James wrote: On Mon, 2007-10-22 at 12:33 +0200, Svein Halvor Halvorsen wrote: xptioctl: pass driver is not in the kernel xptioctl: put device pass0 in your kernel config file Have you tried putting device pass0 into your kernel config file and seeing if that solves it? Yes, I see that this is the obvious solution if I wanted to just get my drive working. But I think that this should not cause a panic, and that I might help track this down. The panic is repeatable. Also, the drive works if it's plugged in while booting. I find this strange. Svein Halvor PS: I added questions@ back to the recipient list. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: help with text-append over SSH ? - dd: unknown operand
I want to append the contents of a local text file to the contents of a remote text file, over SSH. : Andrew Pantyukhin wrote: cat file1 | ssh [EMAIL PROTECTED] dd -of file2 That will replace the contents of file2, not append it. Also it should be dd of=file1. However, you can use seek=n to append, like this: cat file1 | ssh remote dd of=file2 seek=n ... where n is the length of file2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I am looking for a bandwidth limiter tool as to time and kilobytes.
Halid Faith wrote: Hello I use dummynet to limit bandwidth on freebsd6.2. But I don't know how I limit an ip blocks as to time ( for instance like 1 Gbyte in 1 month ). I am looking for a tool which provides to limit bytes according to time. is there any free tool for this case? Thanks already I used to live at a campus dorm where you would get 10 Gbit outbound traffic per 24h. If you used more than that, they would cut your access for 48h for the first violation, then for a week on the next violation. You would get no warning. Although this often was more than enough, I guarded myself, by monitoring my network usage. After 8 Gbit outbound traffic, I would throttle my bandwidth to say 1 Mbps, and when hitting 9 GBit, to say 100 kbps, and so on. (Actually this was more granulated, with some traffic cut off earlier than some higher prioritized traffic) I used some ipfw counters, and a cron job to parse the output of ipfw show. Then I would enable some dummynet rules accordingly. This was some years ago under 4.8, I think. Now, I think pf has better support for this kinds of setup. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I am looking for a bandwidth limiter tool as to time and kilobytes.
Wojciech Puchar wrote: I used to live at a campus dorm where you would get 10 Gbit outbound traffic per 24h. If you used more than that, they would cut your just 2 CD's. not that much My bad: this was gigabytes. Also, it was just the outbound traffic that was limited, not the download. (They tried to limit the use of p2p) Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linuxulator and SSE
Ivan Voras wrote: Svein Halvor Halvorsen wrote: Hello, list! I'm trying to get Bibble to run under the Linuxulator on FreeBSD, but it keeps complaining about missing SSE support. What does the top of dmesg (generated during boot) tells you about the processor? If it doesn't list SSE under the list of features, then your processor doesn't support it. SSE should be supported. It says: FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) M processor 1200MHz (1196.12-MHz 686-class CPU) Origin = GenuineIntel Id = 0x695 Stepping = 5 Features=0xa7e9f9bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE Features2=0x180EST,TM2 real memory = 661118976 (630 MB) avail memory = 637620224 (608 MB) Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Linuxulator and SSE
Hello, list! I'm trying to get Bibble to run under the Linuxulator on FreeBSD, but it keeps complaining about missing SSE support. Some useful info: $ uname -a FreeBSD weld.ej2.thelosingend.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 $ sysctl hw.instruction_sse hw.instruction_sse: 1 Also: hw.machine: i386 hw.model: Intel(R) Pentium(R) M processor 1200MHz hw.ncpu: 1 But: $ cat /compat/linux/proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 7 model name : Intel(R) Pentium(R) M processor 1200MHz stepping: 5 flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat b19 b21 mmxext mmx fxsr xmm b26 b29 3dnow cpu MHz : 1196.12 bogomips: 1196.12 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.2. Can I get 128x48 (or similar) console screens?
Alan Mackenzie wrote: I'm not sure I prefer the alternative, something like Ubuntu or PCLinux, where you just shut your eyes, lie back and think of South Africa, not knowing quite what's getting installed on your PC. Nikos Vassiliadis wrote: That's not a very nice comment to do. Please, keep your feelings about continents/countries/Linux distributions out of here. Ted Mittelstaedt wrote: I really detest the politically correct, particularly the uneducated politically correct. lie back and think of England - From _Dictionary of Catchphrases_ (1995) by Nigel Rees: close your eyes and think of England: traditional advice given to women when confronted with the inevitability of sexual intercourse, or jocular encouragement to either sex about doing anything unpalatable. South Africa is a tourism spot and boasts a number of popular game preserves, it is -the- most advanced and developed country in Africa. As a German it is understandable that he would have vacationed there, he made a rather clever twist on the standard phrase. I think it was a reference to the fact that Canonical's founder is South African, and that Ubuntu got its name from an African word meaning something like you are who you are, because of others, or something like that. I also thought it was a clever twist. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Restore UFS snapshot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: On Mon, May 28, 2007 at 05:15:19PM +1000, Ian Smith wrote: I share Roland's concern about the reliability of any new code designed to accomplish the 'full rollback' desired, but of course anything would have to undergo incredibly rigorous testing before it would be allowed anywhere near even -CURRENT I'm sure, same as softupdates/snapshots has. That said, I think it is worthwhile finding out whether this is even possible with the amount of data and metadata saved in snapshots to accomplish their existing utility (which I still find pretty awesome, and despite re-reading that section again several times, mysterious ..) It should be possible. All the data that is needed is there. But I do think it will be definitely non-trivial. For one thing, you'll have to block all other changes from userland to the target filesystem while restoring the snapshot. And you'll have to update other snapshots as well. Seems like a big can of worms to me. I was thinking this should be done while the fs is umounted. As I suggested: 1. umount 2. snap_rollback snapshot-id and 3. mount. Svein Halvor -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) Comment: mailto:[EMAIL PROTECTED] to get my PGP-key iD8DBQFGWr5ahQg3vZGYu0ARAh/iAJ0RdOGSuzgALvRNin2Nd2Xtw3hrmgCguxN4 oKBvLazzHSsN62uas1szqRg= =kOxO -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Restore UFS snapshot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello list! Is it possible to rollback a file system snapshot, i.e. restore the file system to the state it was in at the time a mksnap_ffs command was issued? I know that I can delete an old snapshot, but could I delete the current one (i.e the live fs), keeping the older? User scenario: Before a major upgrade (eg. releng-current, portupgrade -a, etc), it would be nice to mksnap_ffs, and then after the upgrade be able to either delete the snapshot if all went well, or rollback to the snapshot. Best regards, Svein Halvor -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) Comment: mailto:[EMAIL PROTECTED] to get my PGP-key iD8DBQFGWGTxhQg3vZGYu0ARAkcLAKCLq4D/IHBkwArPrIBUMENHNtqmngCgkfy3 dSvYmR/aXEEIDJ90xc5ennc= =OsCM -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Restore UFS snapshot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: Is it possible to rollback a file system snapshot, i.e. restore the file system to the state it was in at the time a mksnap_ffs command was issued? You can mount the snapshot, and then copy the files back to the original fs. Note that cp can preserve flags, but not ACLs AFAIK. Yes, I know that this is possible. However, it's a lot of work. There should be some straightforward way of rolling back to a snapshot, since the files and all the file system structure are already there. Also, there might not be room on the disk for it. User scenario: Before a major upgrade (eg. releng-current, portupgrade -a, etc), it would be nice to mksnap_ffs, and then after the upgrade be able to either delete the snapshot if all went well, or rollback to the snapshot. You should use dump(8) in this case. Create level 0 dumps of your filesystems and store them somewhere. You can dump live filesystems with dump's -L flag. If you botch the upgrade, you can use restore(8) to revert your filesystems to the situation before the upgrade. Note that you should really make regular dumps of your filesystems as backups anyway! This is also beyond the point, although I appreciate that you suggest alternative ways to meet my objectives. dump/restore would also require additional disk space. I do actually backup my data on a regular basis, but not all of my computers really need external backup, as I could stand some downtime. However, if I could easily make a snapshot, and then either roll back or delete it afterwards, it would be a nice compromise between security and effort. And also: it seems it should be possible to do this. If not, I might want to make a tool for it. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) Comment: mailto:[EMAIL PROTECTED] to get my PGP-key iD4DBQFGWITghQg3vZGYu0ARAjIeAJwIe7+pbMw62dHClFo1r6R6byUKaQCYzWx3 QcIl0qBiYsKdyytwxzVHww== =OFQk -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Restore UFS snapshot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: You can mount the snapshot, and then copy the files back to the original fs. Note that cp can preserve flags, but not ACLs AFAIK. Yes, I know that this is possible. However, it's a lot of work. Huh? Suppose you did 'mksnap_ffs /usr /usr/.snap/20070526' Then all you have to is something like: # mdconfig -a -t vnode -f /usr/.snap/20070526 -u 0 # mount /dev/md0 /mnt/snapshot # cd /usr # tar cf - /mnt/snapshot/* |tar xpf - # umount /mnt/snapshot # mdconfig -d -u 0 How much easier could it be? You could easily create a script for this as well. Let me clarify: It is a lot of work for the computer, for the hdd. There should be some straightforward way of rolling back to a snapshot, since the files and all the file system structure are already there. Also, there might not be room on the disk for it. Snapshots take up room as well. But the snapshot is already made. Again, let me clarify: At some point in time, my file system is filled with random* bits. I then make a snapshot. - From now on, all bits** that I flip will be take up an extra bit of space. Then, after changing lots of bits, I decide I wanted the old data back, as the file system was before I started to flip bits. Now, I could either: (a) Flip alot more bits, by making copies of the snapshotted bits over some free area of the disk, or (b) Undo all the bit flipping I have done, since I made the snapshot. In (a) I will have two copies of all the bits that has changed since the original snapshot, while in (b) I am back to where i were before the snapshot. Does this make any sense? Have I not understood this correctly? Best regards, Svein Halvor *) well, not random, but they might just as well be for the sake of the argument **) actually not bits either, but blocks or whatever. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) Comment: mailto:[EMAIL PROTECTED] to get my PGP-key iD8DBQFGWJjUhQg3vZGYu0ARAofgAJ9QS1pPyYEmeQ8TkgYR7HbptZ014QCgqmkR 1dr8wcQV0qhR9KH7VlG/4Q0= =ssrQ -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Restore UFS snapshot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: You could use rsync instead of tar. That would save time. I'm not talking about saving time. But saving CPU time and HDD stress. However, the disk space issue is a bigger one: (b) Undo all the bit flipping I have done, since I made the snapshot. This is what the procedure above does if you replace the tar commands with rsync. No, because the snapshot will still be in use, and hence all its bits will be kept intact and read-only. When I use rsync/tar/cpio or whatever to undo changes to a file system, I will in reality copy these bits to different places on the disk. And until I release the snapshot (which I very well could, since it would defunct after the restore process), I will use twice the amount of disk space. Svein Halvor -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) Comment: mailto:[EMAIL PROTECTED] to get my PGP-key iD8DBQFGWK2vhQg3vZGYu0ARAk/5AJ9QksQAbmwKTJLkwKGhISMpMvOEZgCgwG5u s7bYTdMu9DEIylAhTCeepzI= =5cD3 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Restore UFS snapshot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pete wright wrote: hmm...i'm still a little confused as to where you are going. there are three main way's i've used snapshot's in large (~1PB) environments, two of which are applicable to you i believe: *snip dump/restore plug* Yes, I understand how I could use dump/restore. But forget about all this. Forget about my reasons for wanting it. All I want to know is whether or not there exists a tool that will let me rollback a snapshot without mounting it, dumping it, or anything like that. Just by flipping some bits in the superblock, or some other small changes to an (unmounted) file system. Something really easy. No extra disk, no excessive copying, no nothing. Just a simple # umount # snap_rollback *wait 10 seconds* # mount .. and I'm set. I believe it should be possible. And if nothing like that exists, it should be made. I could look into it, but I would have to learn a lot more about the inner workings of the file system first. Svein Halvor -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) Comment: mailto:[EMAIL PROTECTED] to get my PGP-key iD8DBQFGWK/ChQg3vZGYu0ARAoLIAJoDCeyZf/lsO/sj0HbZtosKs4i/lgCghohK Uc+zpgqsxUNVCV5yd/x0BQ0= =J6Az -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Restore UFS snapshot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: You can't restore a previous situation _unless you saved it in some form_. So if you want a possibility to restore stuff, you'll have to keep a copy of it somewhere. Maybe in compressed form, and maybe you can clump changes together in a smart way, but you have to save the bits that you change. Of course! If I'm not clear, you could do better in asking me to clarify, than to assume that I am an idiot. Of course you need to save the data in some form, in order to restore it. I'm not asking for magic. Every revision control system (which is effectively what you ask for) uses storage space to keep previous versions of data, although the precise method used for this varies. Yes, but your suggested solution stores some data twice (at least for some time). And also it involves a lot of reading and writing (even though you could minimize it using rsync). Disk space is cheap, and getting cheaper. Going through a lot of trouble to save a few bytes is almost certainly not cost effective. And keep in mind that you should really only use the tools that are available in /rescue. Using a fancy port won't help you if whatever you did borked /usr/local/bin. :) I am not talking about a backup solution here. I just want an easy way of saving the state, doing something potentially stupid, and then throw away the (stupid) changes real quick and painless. Of course if the disk breaks or something, I will need something else. It doesn't matter too much though; I just wanted to know if something existed or not. Sees it doesn't. Thanks for your time. Maybe I will make something. Maybe not. For now, I will continue to mount the snapshot (as you suggested) Best regards, Svein Halvor -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) Comment: mailto:[EMAIL PROTECTED] to get my PGP-key iD8DBQFGWLyMhQg3vZGYu0ARAq8jAJoDdSRbev54oFKlffjEfAlcv12BfQCgx49L 3Xox5h4HAvgEB+rL1+OLVE8= =AYlv -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Maple 10
On Thu, 24 May 2007, Colin Percival wrote: Hmm. Maybe it was 9.5 which I last tried -- I ran into problems with the installer saying hey, you're running FreeBSD. I have no idea what that is, so I'm going to refuse to install. When i fiddled with this some time back, I started /compat/linux/bin/bash and then run the installation as if I was doing it under Linux. No problems. Best regards, Svein Halvor PS: While I have the opportunity; thanks for your work on freebsd-update, portsnap, etc. I think I owe you a beer (or other drink of your choice) should we ever meet :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Wikipedia's perfection (was Re: Discussion of the relative advantages/disadvantages of PAE (was Re: Memory 3.5GB not used?))
Bill Moran wrote: A friend of mine going for his Dr. at CMU (Patrick Wagstrom: GNOME guy) describes an exercise where a professor intentionally injected false information into Wikipedia, then gave his students a research assignment that involved that information. Apparently the number of students who trusted the false information without verifying it was quite high. I should take that as a lesson that most people _don't_ know how to verify the validity of information and be more careful when I make sarcastic statements. Lee Capps wrote: That's interesting, though, to pick a nit, it may just show that students were in a hurry, rather than that they necessarily trust the info or that they don't know _how_ to verify the info. And also: Where is this professor's ethics? Does he also misinform the students in class, only to later accuse them of not verifying the facts? And did he even think about the fact that others may have read his misinformation? Why does this professor think that his agenda is more important than Wikipedia's? Did he later correct the articles? I hope this professor got some sort of reaction from his University due to his unethical attitude towards openness, knowledge and science. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Qemu Kqemu on FreeBSD 6.1
Frank Staals wrote: Unfortunately I need some stupid windows programs so I decided to install win2k in qemu on my laptop. It works well but I have a small question: when running qemu it gives an message it couldn't load kqemu. Allthough I did load the kernel module: See this thread for some info: http://lists.freebsd.org/pipermail/freebsd-emulation/2006-April/001973.html Someone claims that is does work, despite some devfs weirdness. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: The Opera browser on FreeBSD
Me: Btw, sound in flash is lagging (this is nothing new, though, it was always the case). Has this something to do with the Opera/Flash-combo, or is it due to the Linuxulator-stuff? Does anyone else see this? Arjan van Leeuwen wrote: It's a known bug in Flash 7 for Linux. It's supposed to be improved in Flash 9. That's a pity! As I understand, Flash 9 for uses ALSA for sound on Linux, and -- while it will be suported on FreeBSD -- will not give any sound. Right? Svein Halvor signature.asc Description: OpenPGP digital signature
Re: The Opera browser on FreeBSD
Arjan van Leeuwen wrote: As of the latest weekly development release of Opera (see http://my.opera.com/desktopteam/blog/), it's now possible to use any Linux plugin in the native Opera for FreeBSD version, including Flash and Acrobat Reader. The feature will be included in the upcoming Opera 9.1. Nice! Thanks for the *great* work! Btw, sound in flash is lagging (this is nothing new, though, it was always the case). Has this something to do with the Opera/Flash-combo, or is it due to the Linuxulator-stuff? Does anyone else see this? This really bites, when you try to watch flix on youtube et.al. Svein Halvor Halvorsen (Opera user since 3.-something [BeOS]) signature.asc Description: OpenPGP digital signature
Re: BSDStats Report for December 1st, 2006
Marc G. Fournier wrote: report_devices sends the output of pciconf -l | grep -v none (active devices) http://bsdstats.org/freebsd/devices.php?show=class suggests that there are 27,000 bridge devices in use, but according to the main report on the front page, only ~3,000 FreeBSD systems overall. How can this be? Svein Halvor signature.asc Description: OpenPGP digital signature
Re: simple question...how to show packages which depend upon
Graham Bentley wrote: Example: you install Z, which depends on Y, which depends in X, ..., which depends on Q. What if Q is xorg-server-6.9.0_1? I installed 'feh' thinking wrongly it was a console app and ended up getting x, xlibs etc etc when all I wanted was a console app to view jpgs in elinks. So, the above is exactly what I wanted. Ok, so you may want x-org-server deleted, by what about some other dependency that your unwanted app shares with some port you really do want to keep around? I find pkg_cutleaves handy. It will loop through all the leaves of your dependency tree (all ports that do not have any other ports dependant on them), and asks if you want to keep or delete it. After the ports tree is cleaned up, it will ask you to repeat the process for any ports that may have become leaves as a result of the previous iteration. When I look through the pkg_info list, I usually don't know what all the installed ports do, I why I need it. But i usually do know if I need a leaf or not. Svein Halvor signature.asc Description: OpenPGP digital signature
Touchpad and mousebuttons
I have three questions about the touchpad on my laptop: 1) Simulate three buttons: When using my laptop at my desk, I use a USB-mouse with three buttons. When I leave my desk, I unplug the extra mouse, and take my laptop with me, often without turning it off. Then, later, the click-both-buttons-at-once to simulate a middle button click does do work anymore. The touchpad has only two buttons. Any thoughts? 2) Swap mouse buttons: When I use the touchpad, I use my right hand. And my hand is a little tilted, so when i use my index finger on the touchpad itself, my right thumb rests on the right mouse button. It feels very natural to press this button, but in order to press the left one, I need to rotate my hand in a very uncomfortable way to get my thumb on the left button. Could I switch the buttons on the touchpad, and leave the USB-mouse untouched? 3) Simulate scroll wheel: Could I configure the touchpad to simulate the scroll wheel in some way? On some Windows-computers, I've seen that you could slide your finger along the rightmost edge of the touchpad to simulate scrolling. And on Macs, it seems you could use two fingers in the middle of the touchpad to accomplish the same effect. How do I do this on FreeBSD/Xorg? Svein Halvor signature.asc Description: OpenPGP digital signature
Re: To which port GPG belongs?
VeeJay wrote: I have this Help Instructions from a Step-by-Step for Apache installation On a side note, you would probably want to install Apache via ports. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Small Redundant web/mail setup
Ian Lord wrote: 2- Is there a better way to replicate data than RSYNC (without going to san of expensive hardware) ? If not, is there a hotsync feature (I mean by that as soon as server A modify something, server B knows and replicate)? I've never tried the following setup myself, but you should look into the possibility of using geom ggated/ggatec and gmirror in combination. Basically ggated/ggatec will export the raw block device over the net, so that another computer may use it in a geom stack. You could have the second computer export it's disk device, and let the first one use it in a mirror (raid) setup. Since ggated on the the second computer would claim the device, I think you could only mount it read-only, but it would be synced live, I think. Note that I don't know these tools from experience, only from what I've picked up here and there. You would have to read up the specifics yourself. Svein Halvor signature.asc Description: OpenPGP digital signature
python-mode in emacs
Emacs doesn't seem to load files in /usr/local/share/emacs/site-lisp installed by ports. E.g python-mode installs files in this directory, but python-mode is not available in emacs afterwards. I have to manually tell emacs to look in these files. Are there any way to get emacs to automatically read files in this directory? Am I missing something? Shouldn't the ports system by default be setup in a way that this would work? Svein Halvor signature.asc Description: OpenPGP digital signature
Re: python-mode in emacs
cpghost wrote: Well, it doesn't cause any harm to add to your ~/.emacs ;; Add python-mode (autoload 'python-mode python-mode Python editing mode. t) (setq auto-mode-alist (cons '(\\.py$ . python-mode) auto-mode-alist)) (add-hook 'python-mode-hook 'turn-on-font-lock) Are there any way to get emacs to automatically read files in this directory? Am I missing something? Shouldn't the ports system by default be setup in a way that this would work? I don't know. But having Emacs auto-load every mode from there doesn't seem a good idea. And the port can't do that either, since it's a per-user decision. I wasn't suggesting emacs autoload every mode, but rather that emacs simply read the files, and offer me the choice of using modes defines in such files. E.g. do the same as $emacs -l /usr/local/share/emacs/site-lisp/python-mode.el If I start emacs by just typing emacs, and then use esc-x python-mode is not an option. However, If I use the -l option, python-mode is not automatically loaded, but emacs will then offer me the option of loading it later. Your suggested additions to my .emacs file, seems to work, though. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: python-mode in emacs
Alex Zbyslaw wrote: In emacs do ESC-x describe-variable load-path which tells you where emacs is looking. /usr/local/share/emacs/site-lisp shows up! Make sure you environment does not set EMACSLOADPATH which would override compile-time defaults. This is not set. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Changing Hostname = Reboot machine?
David Schulz wrote: i wasnt asking how to change the hostname, but if there are any things i should be aware of or have to do if changing the hostname. You can just change it, and it will take effect immedeately. However, there may be some server software you have running that needs to be restarted. But there is now reason to reboot you system (there seldom is on freebsd). Also (even though I see you're not asking how to change the hostname) remember to put your changes in /etc/rc.conf lest you want to have your changes discarded when rebooting. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question
Jonathan Chen wrote: To unzip ZIPs, you need to install archivers/unzip. To unzip RARs, you need to install archivers/unrar. The new bsdtar (by way of libarchive) can read zip files quite nicely. At least most of them, in my experience. According to the man page libarchive-formats(5): Zip format Libarchive can extract from most zip format archives. It currently only supports uncompressed entries and entries compressed with the ``deflate'' algorithm. Older zip compression algorithms are not supported. The base system tar is bsdtar (from 5.3-RELEASE, I think) Svein Halvor signature.asc Description: OpenPGP digital signature
Re: User permissions to mount CDROM
Viswas Nair wrote: I have been trying to figure out how to give users to mount CD rom and have been largely unsuccessful. Here are a few things I tried: 1) Added user to the 4th field (options) in /etc/fstab 2) Added vfs.usermount=1 to sysctl.conf 3) Created a group called optical and added the root and alpha to it 4) Added following lines to devfs,conf : own /dev/acd0 root:optical perm /dev/acd0 0770 own /dev/acd1 root:optical perm /dev/acd1 0770 User must have access to the mount point as well, eg. /cdrom. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Newbie questions
Subhro wrote: yourself. However remember to cvsup your ports tree before you start using it to get the required software. Refer to the handbook for understanding how ports work. For most people portsnap would be a better way of updating one's ports tree. Firstly, it's in the base system and thus doesn't require any third party software. Secondly, most newbies find it easier to use. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Accessing FreeBSD partition from Windows with dual boot
Martin Miedema wrote: I'm looking for a way to access (read only is fine) a FreeBSD partition on my Windows installation on a dual boot notebook (so Samba won't do the trick) Maybe this will do: http://ffsdrv.sourceforge.net/ I haven't tried it myself, though, so I can't really recommend that you use it on a real file system with real data, until you've done some testing. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: BSDstats Project v2.0 ...
Nikolas Britton wrote: I still like my idea the best for unique keys. It's a better way to detect hosts behind NATs, here it is again, four versions to pick from: # ifconfig | sha256 cbcc2f55a340c248af7e8a10871150d827af11d7051bbc782eefa04b0603248b # ifconfig | sha1 b607b9d45e6ad40c02ab20800e0d70245ab6db68 # ifconfig | md5 22a2a3eca61166fb113f1a688b3dd842 # ifconfig | cksum 3977021799 540 The only down side is it still can be faked, just like everything else. ifconfig output is by no means constant on a single host. Eg. Take my laptop; the media, status and ssid lines will change pretty often on my wireless nic. I mean several times during one session. Why not hash just the hostname? Or MAC-address? Of course these could also be fabricated, but you can't possibly avoid that as long as this is open source. (And the protocol would be pretty easy to reverse engineer anyway) How 'bout? $ ifconfig | grep ether | md5 This will change whenever one adds, removes or replaces a nic, though. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: BSDstats Project v2.0 ...
Svein Halvor Halvorsen wrote: Why not hash just the hostname? Or MAC-address? Of course these could Disregard this. I see that the discussion has moved on. I'm with Matthew Seaman's suggested server generated id-string. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: .bash_logout and shutdown -- need ideas
DW wrote: Just started using a .bash_logout script to handle doing my unison : The problem with that though, is that the shutdown process runs as root, and just drops the system, and I'm never actually getting logged out as much as booted out. So my .bash_logout doesn't run, and thus no unison unless I remember to run it manually first. Any ideas on how to work around this sitch? At shutdown FreeBSD runs /etc/rc.shutdown. It seems that this script, by means of /etc/rc.subr, will iterate all the files in (among others) /usr/local/etc/rc.d/ and call them with the faststop argument. Maybe you could just add a script in there? (Actually, only files with a # PROVIDES line are considered, it seems, so you should think about that). Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Gotta start somewhere ... how many of us are really out there?
Colin Percival wrote: There are still a lot of people (particularly on pre-6.0 systems) who are using CVSup rather than portsnap for updating their ports trees. Also, I would guess that some people who run multiple FreeBSD systems, use some sort of local propagation of either the entire ports tree, or locally compiled packages. I work as a sysadmin at the students computer lab at the mathematics department at the Norwegian university of science and technology, and we take this approach. Not that the maths department is a large one, but we have fifty-some workstations and a couple of servers running FreeBSD. Only one or two of which would show up in the portsnap stats. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: portsdb output and portaudit question
jan gestre wrote: i was trying to portupgrade ruby coz portaudit is complaining of vulnerabilities, i did run cvsup and portsdb -Uu before portupgrade, at first i couldn't upgrade ruby coz portupgrade is complaining maybe coz portaudit but someone in the list suggested this: # portupgrade -Rr -m DISABLE_VULNERABILITIES=yes ruby whoala it installed the ruby package but still portaudit complains even though the installed version is current which has no vulnerability. is this normal? any way to fix these? This is expected behavior. The ports system will let you upgrade a vulnerable port without complaint. It will however complain if you try to install (or upgrade to) a version that has vulnerabilities. Since portupgrade complained, it's no surprise that portaudit also complains after the forced upgrade. This means that either the version in ports aren't fixed yet (the existence of a vulnerability of a prior version does not imply that said vulnerability is fixed in the current version), or that your ports tree is out of date. Seeing that the latter is not true, I would say you just have to wait for an updated version to appear in ports. You can create an account at freshports and ad ruby to your watch list. That means you'll get notified when new versions arrive. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: update info on ports
dick hoogendijk wrote: Normally I upgrade my ports if I see new versions. But now I have a question: I saw a new apache22 version (apache-2.2.2_1) but on the apache site I could not find anything related to security bugs or whatever. I *did* find a version 2.2.3 though (not yet in ports!) So now I wonder, what is the difference of port apache-2.2.2 and the latest one apache-2.2.2_1 Imho it should be nice to have some kind of info file in the port telling the reasons to upgrade. Does anyone know? Or should I just wait for apache-2.2.3 (can't be that long). You should check out freshports.org Fix security issue in mod_rewrite. All people using mod_rewrite are strongly encouraged to update. An off-by-one flaw exists in the Rewrite module, mod_rewrite. Depending on the manner in which Apache httpd was compiled, this software defect may result in a vulnerability which, in combination with certain types of Rewrite rules in the web server configuration files, could be triggered remotely. For vulnerable builds, the nature of the vulnerability can be denial of service (crashing of web server processes) or potentially allow arbitrary code execution. This issue has been rated as having important security impact by the Apache HTTP Server Security Team Updates to latest versions will follow soon. In addition to show changelogs for the ports, freshports also lets you watch one or more ports and be pinged whenever there's a new version. You should also install portaudit. This will give a list of installed ports on your system with known security issues. Also, if installed, it will will warn you if you try to install a port with such issues, and prompt you to update your ports tree. Svein Halvor signature.asc Description: OpenPGP digital signature
smb issue
After loading ichsmb, smbus and smb, dmesg reports: ichsmb0: Intel 82801DC (ICH4) SMBus controller port 0x1880-0x189f irq 10 at device 31.3 on pci0 ichsmb0: [GIANT-LOCKED] smbus0: System Management Bus on ichsmb0 smb0: SMBus generic I/O on smbus0 Then, mbmon -d -S gives: [EMAIL PROTECTED]:/usr/home/sveinhal]$ mbmon -d -S SMBus[Intel8XX(ICH/ICH2/ICH3/ICH4/ICH5/ICH6)] found, but No HWM available on it!! InitMBInfo: Device not configured smbmsg -p gives: [EMAIL PROTECTED]:/usr/home/sveinhal]$ smbmsg -p Probing for devices on /dev/smb0: Device @0x2c: rw *waiting, and waiting* ^C dmesg then shows hundreds of these: ichsmb0: device timeout, status=0x41 Any clue? signature.asc Description: OpenPGP digital signature
Re: smb issue
Svein Halvor Halvorsen wrote: After loading ichsmb, smbus and smb, dmesg reports: : Erik Nørgaard wrote: kldload smb? What did I just say? (quoted as a hint :-P) Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Corrupt MBOX
Gerard Seibert wrote: It may be corrupted by spam. This happens when SPAM has bad headers. This effects all POP clients/servers. -Derek OK, is there any easy repair process that I can use to remedy the situation? Second, why isn't the mail corrupted on the mail server that I am getting this mail from? If it corrupts my mbox, then why not theirs? I've gotten a fair share of SPAM through the years, but never has it corrupted my mailbox. Maybe my mail delivery agent (qmail) is doing something clever. I wouldn't know. However, I have had troubles with locking, and different processes (eg, qmail, pine, home brewed filters, etc) trying to write to the same file at the same time. In what way are your mailbox corrupt? Could you pass it through formail, and split in individual messages? Your MUA og POP3 server should care less in you flip bits in in the message bodies, or even headers, as long as there's no control char or other stuff like that in there. Maybe the From-lines are broken? I think I'd try to split the file at lines starting with From (notice the space and lack of colon : after From). All the resulting files should be valid mailboxes. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mount privileges...what the heck?
DW wrote: Discovered something odd today, trying to get the procedures down to help someone who wanted to mount a second drive to a mount point in their home directory. : Ownership on mount point: dude:dude /usr/home/dude/drive2 Now when I do: # mount /dev/da1s1d /usr/home/dude/drive2 Ownership shows: root:wheel /usr/home/dude/drive2 This is not acceptable! should be dude:dude /usr/home/dude/drive2 This is probably because the root directory on the mounted file system has a different ownership than the mount point. I might be way off here, but could this be something like the mount point assuming the role of the mounted file system root, when mounted? Then after mounting, your chmod command was issued on the mounted fs, not the mount point. This way it stuck. Could you maybe unmount the fs, chgrp the mountpoint, and remount and see if the mountpoint still has the dude group? Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Flashing BIOS/Making bootable DOS filsystem on USB stick
Warren Block wrote: mkisofs can be used to create bootable CDs with a DOS floppy image. The DOS system has to set up CD support, and the additional files end up being on that drive. See This is a problem, I think. The supplied FreeDOS boot floppies won't support USB CD-ROM drives. Svein Halvor signature.asc Description: OpenPGP digital signature
Flashing BIOS/Making bootable DOS filsystem on USB stick
I have a problem with my laptop, and before Dell will consider taking it back, I have to go through their checklist and make sure I've tried everything on that list first. This includes upgrading the BIOS. The problem is that Dell provides the BIOS upgrade in two forms: (a) A DOS executable (b) A Windows self-contained utility to make a boot floppy Since I have neither Windows nor a floppy disk, I'll have to be creative. I thought that maybe I could install some boot code on a USB flash drive, newfs_msdos, and copy FreeDOS along with the executable (a) mentioned above. Problem is: How do I install the boot code on the drive? FreeDOS provides a floppy-image, so I thought I could just dd that to my USB drive, and boot off of that. But I need to put the BIOS upgrade utility on the disk as well, and it is 784 kiB. Could I grow the image? Any pointer appreciated Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Flashing BIOS/Making bootable DOS filsystem on USB stick
Adrian Pavone wrote: What about using 2 floppies? The first, your FreeDOS disk, to boot from, then, once booted, change to the disk you have put the BIOS executable on? I don't have a floppy drive. I don't think I've even seen a floppy disk in several years, much less used one. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Flashing BIOS/Making bootable DOS filsystem on USB stick
Derek Ragona wrote: go to bootdisk.org and download a suitable verision. There are many floppy images there. For instance the win98 diskette version, when booted creates a ramdrive you can switch to, then change the usb disk. Or boot with two usb drives inserted, the bootable one and the one with the BIOS flash utility. Will DOS be able to load USB devices? I thought this only worked when I booted off the device using some BIOS magic. Or use a winpe bootable CD. You can find one and information at: http://www.nu2.nu/pebuilder/ You can customize the image you build including your Windows BIOS utility. This requires Windows, I think. Or buy or borrow a USB floppy drive. Bah! I'd rather not buy new hardware just for this one predicament. This is what I have readily available: - Computer running FreeBSD - USB CDRW-drive - 512 MiB USB flash drive - A 1.44 MiB FreeDOS floppy image with 111 kiB free space - A FreeDOS iso9660 image - A 784 kiB DOS executable for flashing my BIOS Using these I need to make some sort of bootable DOS device (either CD or USB flash drive) that contains the above mentioned BIOS upgrade utility. Could I either: - Get the BIOS utility onto the ISO file without braking the boot code - Use the floppy image to make a bootable USB disk somehow? Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Flashing BIOS/Making bootable DOS filsystem on USB stick
Jason L. Ellison wrote: I had a situation with needing to boot into dos to flash firmware. I booted using a Freedos CD with my utilities on the same CD. I think I had to create a RAM drive to use the firmware upgrade utility. How did you create such a CD? signature.asc Description: OpenPGP digital signature
Re: ndis with USB wifi dongle - no joy
Tom K wrote: I'm running PC-BSD, with FreeBSD 6 under the hood. The device is a Netgear MA111, with Prism 2.5 chipset, which dmesg shows as ugen1: vendor 0x0846 product 0x4110, rev 1.10/1.32 This is what I've done so far: - Installed the kernel source in /usr/src/sys. - Copied over the .inf and .sys files from the WinXP driver - Run ndisgen, which reported success - Copied the new module to /boot/kernel - kldload ndis and kldload new_module No ndis interface is created, and dmesg shows the following messages: no match for USBD_CreateConfigurationRequestEx no match for USBD_ParseConfigurationDescriptorEx I can't find any reference anywhere to these errors, or anything like them. I'd be grateful for any suggestions. : Minor update, if anyone's interested - I've now tried it on freebsd 6.1, with the same result. Windows NDIS device drivers work because the co-called Project Evil is emulating the NDIS subsystem of Windows, effectively tricking these drivers into believing they run under Windows. However, to support Windows drivers for USB networking devices, would require emulation of the USB subsystem in Windows as well. This is not the case for FreeBSD today. Svein Halvor signature.asc Description: OpenPGP digital signature
Re: Getting xmms to use glib-2
On 5/2/06, Norberto Meijome [EMAIL PROTECTED] wrote: Cheers Svein - tried audacious but couldn;t get sound output to work at all. esound and/or oss . realplayer would play the same file just fine (mp3) Sorry, but I can't help you. It works here. I don't know the code base, so I can only suggest the standard troubleshooting techniques: To check wheter or not the dsp device is opened, monitoring your esound server, etc. About the plugins-question: I'm not sure, but I don't think you can use precompiled xmms-plugins with Audacious, but most probably just needs to be recompiled against the new library, with little or no changes to the source code at all. Also, most plugins are already ported to Audacious and are included in a vanilla install, like all the standard input and output plugins. Also tried xmms2 and several of their clients, but they seem to be very early in their development stages. I'll be using mplayer for now... Fair enough, most do indeed seem a bit immature. Whatever you use, I hope it meets your needs. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting xmms to use glib-2
On 5/1/06, Norberto Meijome [EMAIL PROTECTED] wrote: i've rebuilt everything that used glib-1.2* to use glib-2.10.* without a problem, with the exception of xmms (multimedia/xmms). : Should I uninstall glib-2, install xmms with glib1.2, then reinstall glib-2? Try one of these ports instead: multimedia/audacious multimedia/bmpx Both of which are xmms forks written to use gtk2. The latter is almost a complete rewrite of beep media player (bmp, which in turn was a fork of xmms), while the former is a more direct descendant of xmms, I think. I'm using audaciuos myself, but are looking into bmpx as it is evolving. Svein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: getting a user's home dir (sed/awk?)
On 4/17/06, Erik Norgaard [EMAIL PROTECTED] wrote: I have found pw usershow user1 will return a line from the passwd file, but that needs to be split chewed, and spit out. Seems awk can do it but I have no clue. cut is probably about the cheapest way to split a line: pw usershow user1 | cut -d: -f9 Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Wanted: Flash player for browser_of_choice....
On 4/13/06, Bob Johnson [EMAIL PROTECTED] wrote: I think that if only one person questions this, their response will be that there aren't enough FreeBSD users to worry about. If several question it (politely), it might get a little attention somewhere above the front-line customer service level. Anyway, the answer I got is not highly enlightening. The most significant paragraph (I think): Please note that it is your option whether to install Flash Player on your FreeBSD; however, please note that we cannot provide you with any technical support, warranties or remedies for the software, although it is clearly stated on the End User License Agreement, the only authorized operating systems where you may download and install Flash Player. I'm pretty sure they are telling me that is up to me whether or not I break the law. I already knew that. When I emailed them about this, I was first told that FreeBSD was not tested and therefor not supported. But when I clarified my question, stating that the issue is a legal one, not a technical one, they told me thet the EULA must be respected. (What else could they have said?). They were understanding, though, and asked me to file a feature request for the Flash team, to support FreeBSD, which I did. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Wanted: Flash player for browser_of_choice....
On 4/13/06, Robert Huff [EMAIL PROTECTED] wrote: Svein Halvor Halvorsen writes: They were understanding, though, and asked me to file a feature request for the Flash team, to support FreeBSD, which I did. Did you, by any chance, an id on that request? I'm looking for something other could mention if they want to write in support of this. I can't remember whether I got assigned an id number or not, but my email archive show no evidence of it. I might have gotten one when i submitted the form on their website, but I can't remember. Sorry. I filed the request here: http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishformproduct=15 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Wanted: Flash player for browser_of_choice....
On Thursday 13 April 2006 14:17, Svein Halvor Halvorsen wrote: They were understanding, though, and asked me to file a feature request for the Flash team, to support FreeBSD, which I did. On 4/13/06, Anish Mistry [EMAIL PROTECTED] wrote: Where do you go to file this feature request? I was pointed in this direction by their customer support: http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishformproduct=15 Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Wanted: Flash player for browser_of_choice....
On 4/13/06, Gayn Winters [EMAIL PROTECTED] wrote: After reading the Adobe licensing FAQs http://www.macromedia.com/licensing/distribution/faq/ It seems to me that the proper route would be via a special license request rather than a feature request. You are probably right. I filed the feature request, because I was advised by the customer support to do so. They thought that it would be beter to try to get a native FreeBSD version, than go the license change request route. But probably a special license is an even better solution. Anyway, I'd say it good to fellow all paths that might get us Flash on FreeBSD, that is both try to license Flash for FreeBSD, try to get them to make a native version, and develope an open source implementation. This would probably get to someone in their legal department who could decide if a change in the EULA is easier that a special FreeBSD license (which would have to get distributed with the port or package.) On the cited page there is a link to a form for such special license requests. I don't know who the right person within the FreeBSD community is to make such a request The FreeBSD Foundation, I would say. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pow function working unexpectedly
On 4/12/06, Jonathan Herriott [EMAIL PROTECTED] wrote: Question then. Why would it work when I don't use variables if I don't include the library? This question is just out of curiosity. Since you use only hard coded operands, the result is given, and gcc optimizes such arithmetics and function calls away. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to see keyboard scan codes?
On 3/28/06, User Elisej [EMAIL PROTECTED] wrote: Is there a program showing keyboard scan codes? I mean I press a key, and the program shows its code. Under X, xev might help. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dvd-slideshow
On 3/12/06, Chris Maness [EMAIL PROTECTED] wrote: I would like to see if others are getting similar errors with dvd-slideshow. If you have the current ports tree, try to install and run dvd-slideshow. The ports tree has version 7.2. When I try to run the script, I get error messages like crazy. Anyone else get this? I used the example files to try to get it to work. If I simply download the latest version from sourceforge and run the script in the directory it seems to MUCH further, but still fails. sample output: package sox is not installed package ImageMagick is not installed package dvdauthor is not installed package ffmpeg is not installed find: /usr/share/fonts/: No such file or directory find: /usr/share/fonts/: No such file or directory : [dvd-slideshow] wc: illegal option -- - : /usr/local/bin/dvd-slideshow: line 2388: seq: command not found wc: illegal option -- - Looks like this script is expecting to find the GNU util, and that they be installed in the usual GNU locations. On FreeBSD GNU wc is installed as gwc (from ports). /usr/local/bin/dvd-slideshow: line 986: [: : integer expression expected /usr/local/bin/dvd-slideshow: line 989: [: : integer expression expected /usr/local/bin/dvd-slideshow: line 992: [: : integer expression expected /usr/local/bin/dvd-slideshow: line 995: [: : integer expression expected These I don't know. But it might be that the interpreter is set to /bin/sh, which on Linux is aqtually /bin/bash. I don't know, however. No such file or directory : [dvd-slideshow] No audio files passed. Using silence. : sox: Can't open output file : Error while opening file These are probably because of some of the other errors. I think you are far beter off trying to get the port to run on your FreeBSD system, that to try to fix all these things yourself. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: switching timezone within crontab?
On 3/3/06, Danny Howard [EMAIL PROTECTED] wrote: If a system is not running UTC as its locale, but I want to schedule a UTC cron job in crontab, is it sufficient to put a little: TZ=UTC Right before the job? On 3/4/06, Noel Jones [EMAIL PROTECTED] wrote: Pretty sure the above will only set the timezone for your job, and not alter the schedule time. But I don't know a solution to your problem. How about running cron with the TZ environment set? Ie. setting TZ=UTC in /etc/rc.d/cron I haven't tried this myself. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recommended Web Mail software
On 3/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Was wondering what you recommend. We have a small 5 person user base on a [fairly] screamin' new Dell box, so performance isn't an issue. Just easy to use, reliable, basic, low maintenance web mail. I'm leaning toward SquirrelMail, as I set it up on a test server a couple years ago and was pleased. Any other suggestions? I haven't yet tried it myself, but I'm looking into roundcube. It's in ports, but is still only in beta: RoundCube Webmail is a browser-based multilingual IMAP client with an application-like user interface. It provides full functionality you expect from an e-mail client, including MIME support, address book, folder manipulation and message filters. RoundCube Webmail is written in PHP and requires the MySQL database. The user interface is fully skinnable using XHTML and CSS 2. WWW: http://www.roundcube.net/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: console beep?
[Andrew Spott, 2006-03-01] Hi. I'd like to change the console beep to a visual beep whenever possible. Not only in X, but also in the console. [Svein Halvor Halvorsen, 2006-03-01] At least you could have readline ommit the beep and issue a visual signal, bu placing this in your .inputrc-file: set bell-style visible This wil hoevere only affect thoes programis using the readline system, eg. bash among others. [Andrew Spott, 2006-03-01] thanks, thats what i'm primarily woried about... the console beeps get annoying when i type tab obsessively *G* [Andrew Spott, 2006-03-02] ok... i assumed you were talking about ~/.inputrc, however, i've got it in there, and in /etc/.inputrc, but neither have an effect. which file exactly are you talking about? That's the one. This will only work for programs using readline however. Also, you need to restart the program in question, eg. bash. This is my ~/.inputrc: set convert-meta off set meta-flag on set output-meta on set bell-style none But those meta-lines are there for internationalization purposes. See readline(3) for more info. Svein Halvor cc. Back to freebsd-questions ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: capturing a desktop demonstration as a movie
On 2/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there somehow a tool (in the ports) to capture a (KDE-) desktop of FreeBSD while doing a presentation of some kind of software to create a movie of this, for example as a *.avi file? You could go via vnc. It can save vnc-sessions to special vnc-files, which you later could convert to an avi, mpg, swf, whatever using e.g transcode. Both are in ports. Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: console beep?
On 3/1/06, Andrew Spott [EMAIL PROTECTED] wrote: Hi. I'd like to change the console beep to a visual beep whenever possible. Not only in X, but also in the console. At least you could have readline ommit the beep and issue a visual signal, bu placing this in your .inputrc-file: set bell-style visible This wil hoevere only affect thoes programis using the readline system, eg. bash among others. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: console beep?
Sorry about all the typos. Bah! On 3/1/06, Svein Halvor Halvorsen [EMAIL PROTECTED] wrote: On 3/1/06, Andrew Spott [EMAIL PROTECTED] wrote: Hi. I'd like to change the console beep to a visual beep whenever possible. Not only in X, but also in the console. At least you could have readline ommit the beep and issue a visual signal, bu placing this in your .inputrc-file: set bell-style visible This wil hoevere only affect thoes programis using the readline system, eg. bash among others. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Haven't been able to make world in about a year
At 18:26 24.02.2006, Alex Zbyslaw wrote: Welcome to the select few on my kill list. On 2/28/06, Kristian Vaaf [EMAIL PROTECTED] wrote: Are you threatening me man? No, he's ignoring you. (You might interpret it as a threat to ignore you, but certainly not a threat to kill you) http://www.catb.org/jargon/html/K/kill-file.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Ports vs. Gentoo Portage (a matter of concept)
On 2/7/06, FreeBSD Prospect [EMAIL PROTECTED] wrote: The approach with different qualification of a software state (stable / unstable at least) is a common way to go, as it is handled with the FreeBSD OS (release / stable / current). That's why I wanted to know, how everybody else is comming along with such a system missing for the ports collection. Alot of the software in the ports tree comes in several versions. E.g mysql323-server, mysql40-server, mysql41-server and mysql50-server. Another example is gcc which comes in nine different versions in ports. Also a huge number of ports comes in a both a foo and a foo-devel version. The ports system itself is ignorant of these subtleties, though, and it is you own responsibility to find whatever version suits your needs and requirements best. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OS use rate
On 1/14/06, n-n [EMAIL PROTECTED] wrote: OS use rate in my project. 2005/01/10 - 2006/01/10 RedHat Enterprise Linux ES3.0 - 3947 RedHat Enterprise Linux AS3.0 - 1287 Sun Solaris 9 - 583 *BSD - 0 You use FreeBSD: http://searchdns.netcraft.com/?host=yahoo.co.jp ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]