Search results

  1. J

    Tiny problem here

    Like it says, you must edit /etc/motd if you wish to change it. For example, on my system I have it trimmed down to: FreeBSD 8.0-BETA3 (THINKPAD) #2: Wed Aug 26 09:31:29 EDT 2009 Welcome to FreeBSD! Edit: Oh, I see that the OP wants to get to a desktop instead.
  2. J

    How do you say...... (words with different pronounciations)

    Here's mine (which are different) /usr => "slash user" or "root user" /etc => sometimes I just call this "et cetera" vim => "vee eye em" regex => With a hard(?) g. It's shorthand for "reg-u-lar ex-pres-sion", so I believe this is correct. fstab => "eff stab" gnu => "guh new" sudo => "sue dough"...
  3. J

    Battery life indicator?

    Uh... 8 is -CURRENT. :P (Or maybe it's 9 now?)
  4. J

    Enable vim-like commands in firefox

    I used to use vimperator, but since then I have switched to uzbl. I love how, unlike Firefox, it adhears to the Unix Philosophy by letting non-browsing related features (bookmarks, history, downloads, etc.) be handled through external scripts. And, like vimperator, it can be entirely controlled...
  5. J

    Battery life indicator?

    echoing the output to something like dzen2 is even simpler. This is what I use to see my battery life in my xmonad status bar.
  6. J

    Battery life indicator?

    Not that I'm aware of, and even if you could get Gnome installed, it's my guess that it's using ACPI as well.
  7. J

    Battery life indicator?

    I don't know any GUI applications for this, but you can check it with sysctl: % sysctl hw.acpi.battery hw.acpi.battery.life: -1 hw.acpi.battery.time: -1 hw.acpi.battery.state: 7 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 ...although my values are currently -1 since I don't...
  8. J

    i can uninstall kde?

    As I understand it, -r will only delete packages which depend on the ones being removed, not packages which were dependencies for the removed packages. Packages like qt won't be removed using this command. I would recommend (after this advice) to use a tool such as ports-mgmt/pkg_cutleaves or...
  9. J

    i can uninstall kde?

    From /usr/ports/MOVED: sysutils/pkg_remove|ports-mgmt/pkg_remove|2007-02-05|Moved to a new category
  10. J

    awk's rand() not really random?

    Wow, that works much nicer. How exactly does that work, and how are you able to give arguments to srand()?
  11. J

    awk's rand() not really random?

    If you run it just once, yes. If you run it multiple times in a row, the "random" numbers aren't really all that random. This is because the seed that srand() uses is the system time. I also found out that this whole thread seems kind of pointless, since srand() actually takes no arguments...
  12. J

    Dell 15n hardware

    That wireless card is supported on OpenBSD. From what I've heard, there is someone currently porting the driver to FreeBSD, but it's not in -CURRENT yet. You may be able to get it to work with ndis, but not yet with a native FreeBSD driver.
  13. J

    What is /bin/[

    test
  14. J

    Recommended IRC client?

    I use weechat, but not the one in ports (0.2.6). Currently, I'm building the development version from git. All I have to say is that weechat > *. Try it for yourself and find out why. ;) The only thing that I don't like about it is that it is released under a GPL3 license. I used to write...
  15. J

    awk's rand() not really random?

    Awesome, thanks. But now it seems like awk doesn't respect PROCINFO like gawk does. % gawk 'BEGIN{ print PROCINFO["pid"]}' 10580 % awk 'BEGIN{ print PROCINFO["pid"]}' According to the gawk documentation, PROCINFO["pid"] returns the process ID of the current process. Any idea how to get...
  16. J

    awk's rand() not really random?

    Well, I have it kind of working with gawk, but I would really prefer to have a solution using awk from base for portability. gawk 'BEGIN { srand(systime() + PROCINFO["pid"]); print rand() }' (taken from here) Unfortunately, systime() is only provided with gawk. Any good ideas on how to...
  17. J

    awk's rand() not really random?

    I'm trying to select a random item from a list with awk, but I'm finding that awk's rand() feature isn't quite working as expected. % awk 'BEGIN{ srand(); print rand(); }' 0.889922 % awk 'BEGIN{ srand(); print rand(); }' 0.88993 % awk 'BEGIN{ srand(); print rand(); }' 0.88993 % awk 'BEGIN{...
  18. J

    Search File Content Recursively

    Yes. Want you want to use is a tool called grep. I'll leave it up to you to read the manpage, but generally you should be able to do something like: grep -r 'your search here' *
  19. J

    Portmanager won't update some ports

    Yes. If you think FreeBSD boots fast, you should check out Haiku. My Haiku install literally boots in no more than 9 seconds. :e
  20. J

    Chromium

    w3m is MIT licensed, which is very similar to the 2-clause BSD license that FreeBSD uses.
Back
Top