Home | OpenBSD | NetBSD

HowTos and Links for FreeBSD



FreeBSD Handbook

FreeBSD Handbook


HowTos

Q: How to add/setup X windows
A:

    1. # pkg install xorg
    2. Then vim .xinitrc and add a window manager to start, i.e. exec wmaker


Q: How to change the keyboard map
A: kbdmap


Q: What's the un/pw for root + default account in FreeBSD on arm (Raspberry Pi)?
A: root/root and freebsd/freebsd


Q: How to set the date + time
A: As root: date 2208062151.30 will set the date + time to 2022, 06 August, 21:51:30


Q: How to remove a user
A: # rmuser


Q: How to copy an entire dir into another dir?
A: cp -iprv /path/of/source_dir /path/of/destination_dir (no / at the end!)

Note: -i = interactive, -p = preserve file attributes, -r = recursive: will copy subdirs


Q: How to change the hostname
A: vim /etc/rc.conf


Q: When runnning startx: "Cannot run in framebuffer mode. Please specify BUS IDs" (this is for Intel graphics)

  • 1. pkg install drm-kmod

  • 2. sysrc -f /etc/rc.conf kld_list+=i915kms

  • 3. Make sure user is part of video group (see above)

  • 4. Reboot

  • Q: How to setup a cron job

  • 1. crontab -e

  • 2. Make sure sh or bash's path is correct
  • 3. Put this in the file:
    #order of crontab fields
    #minute hour mday month wday command (Use tabs between words)
    30 03 * * * /location/of/script anything extra
    The above will run the script in /location/of/script, everyday at 03:30, and then do anything listed in anything extra, like write to a log file.
    Note: Make sure you have the necessary permissions for all folders!


    Q: How to add Japanese support (display fonts)
    A: # pkg install ja-font-std ja-ibus-mozc


    Links

    Emulators for FreeBSD

    How to format a disk