Search results

  1. keramida@

    rolling binary updates from server to clients

    One of the ways to do that is what you guessed and described below. By building pre-compiled packages and having the clients pull them from a package server. If all the clients have the same set of packages, and they have 99% identical configuration options in their /usr/local filesystems...
  2. keramida@

    Exploiting UMA, FreeBSD's kernel memory allocator

    phrack article about uma & greek free/open source conference The article by Patroklos is indeed quite interesting. It does not describe a security bug, in the sense of a "local root exploit" (since most of the kernel module code shown in the article requires local root privileges to be...
  3. keramida@

    Delete a part of a file

    You can use sed if you want to cut everything after a specific pattern: sed -e '/^\*\*\*\* CUSTOM VARS \*\*\*\*/q' < input > output Then append "**** CUSTOM VARS ****" and your new TXT to the end of the "output" file, and you are done.
  4. keramida@

    What's the best way to install a lot of ports on a new system?

    Use a ports builder machine/chroot If you are using the same FreeBSD release/version on all systems, it should be possible to build the ports *once* and then install them from prebuilt packages. You can build the ports in a clean chroot, and then use the port list that you already have and...
  5. keramida@

    bash setup

    Of course it is :) A trick that I use to have all my settings in both .bash_profile and .bashrc is to write something like this in my .bash_profile file: # Startup file for login instances of the bash(1) shell. # First of all, run a .bashrc file if it exists. test -f ~/.bashrc && ...
  6. keramida@

    du(1) result different in a cronjob

    Almost correct. You are setting BLOCKSIZE in the parent process -- the shell that runs the du commands -- but this setting is not visible to the child processes. Try this instead: #!/bin/sh BLOCKSIZE=1k ; export BLOCKSIZE du -s /bin du -sh /bin This should work slightly better, and you...
  7. keramida@

    new to FreeBSD but not linux...got a question

    Use bash if you like it, no reason to fear installing it For what it's worth, there is nothing "wrong" about installing bash or zsh. They are both far more featureful than the bare-bones "/bin/sh" shell of FreeBSD, and installing them from ports or packages is very easy. Switching from...
  8. keramida@

    Cannot build latest -CURRENT

    "Latest CURRENT" is a moving target, so you should: a) include the checkout date, or the subversion changeset ID of your sources b) include your full kernel configuration file c) post an email to freebsd-current Without these detais, it will take several iterations of forum posts to...
  9. keramida@

    Inconsistency on /var

    You can always boot into single-user mode and run from the root shell: adjkerntz -i swapon -a fsck -y exit This should fix any filesystem errors. Some files may end up being copied into /var/lost+found by the filesystem repair utility. You should verify that no critical files ended up...
  10. keramida@

    Script to send an e-mail with sendmail

    It looks like your local Sendmail process tries to deliver *directly* to one of Google's mail servers. If you have a dynamic IP address this is very likely to fail (most sites now block dynamic IP address ranges, to avoid getting spammed). You have to find out the hostname of your ISP's mail...
  11. keramida@

    Understanding MX-Records

    No A record for the MX hostname As Ole wrote, the MX record for the "schmidtman.de" domain points by name to "mail.schmidtman.de": schmidtman.de mail exchanger = 100 mail.schmidtman.de. But the "mail.schmidtman.de" hostname cannot be resolved: $ host mail.schmidtman.de Host...
  12. keramida@

    Script to send an e-mail with sendmail

    Each email message is assigned a unique "Message-Id", and your /var/log/maillog file should include lines like: Dec 12 05:43:26 kobe sm-mta[6151]: mBC3hQLw006151: from=<owner-freebsd-current@freebsd.org>, size=7765, class=0, nrcpts=1, msgid=<20081212034042.GL46707@cdnetworks.co.kr>...
  13. keramida@

    FreeBSD DVD

    Ken Smith has made a few changes to sysinstall to fix the "infinite CD swapping prompts" problem. I haven't had a chance to test this with 6.4 yet, but it's worth trying :)
  14. keramida@

    Dynamic firewall rules

    Too complex. I would go for something that filters connections by the network interface they arrive on, or I would use the special 'me' keyword of ipfw, i.e.: # Allow packets for which a state has been built. ${fwcmd} add check-state # For services permitted below. ${fwcmd}...
  15. keramida@

    FreeBSD on EXT filesystem?

    I recently lost a week's worth of nightly backups from an ext3 crash, so I wouldn't bet my money on that particular belief :)
  16. keramida@

    FreeBSD DVD

    FreeBSD on DVD Yep, the next releases will also be available on DVD. Thanks to Ken Smith who added the necessary makefile glue, it should be possible to download 7.1-RELEASE in one DVD image (instead of 2-3 CD-ROM images).
  17. keramida@

    FreeBSD on Desktop - flash

    swfdec works too The swfdec plugin works nicely for most flash videos here (in both firefox2 and firefox3). I've been watching youtube clips and google-videos with swfdec ever since it was committed to the Ports tree :)
  18. keramida@

    my slice fill up with files

    This is commonly caused by a daemon keeping a log file open after it has been rotated away. You can find which program has open files in /var with a variety of tools: fstat(1) in the base system, and lsof(1) from the ports are nice. In newer FreeBSD releases (i.e. in FreeBSD 7-STABLE) you...
  19. keramida@

    Which is your Favourite Linux?

    Debian seems to be nice When I have to use Linux, Debian is the one I can tolerate. I still have to install my own .bashrc and other HOME configuration files; some of the default shell startup scripts in /etc drive me mad; clearing the screen on logout in the default .bash_logout script...
  20. keramida@

    make package without install

    The tinderbox at marcuscom.com may be useful If you go the "special package-building jail" route, then the tinderbox scripts described at http://tinderbox.marcuscom.com/ may be useful too. I've been using the marcuscom tinderbox to test the build of editors/emacs and...
Back
Top