FreeBSD to SuSE

Awhile back I tried out FreeBSD for a couple months. I was used to SuSE (which I'm back to) so I ran a few commands to make my environment a bit more familiar. If you are a recent convert, you can use this code too.

  • Find where bash is installed, then change your login shell to bash (I used sysinstall to install bash):

    1whereis bash
    2chsh
    
  • Make updatedb available for locate by linking the periodic script:

    1ln -s /etc/periodic/weekly/310.locate /bin/updatedb
    
  • Add your user to the wheel group so su works:

    1pw user mod chrissy -G wheel
    
  • Alternatively, I could have done this, but I didn’t:

    Edit /etc/ssh/sshd_config and add PermitRootLogin YES.

  • Enable Apache at boot by editing /etc/rc.conf:

    1apache_enable="yes"
    
  • Customize the shell prompt and add a convenient alias by editing .profile:

    1PS1="\h:\w "
    2alias dir="ls -la"
    

Made note that restart scripts are in here: /etc/rc.d/