Coder Social home page Coder Social logo

freebsd's People

Contributors

adminbyaccident avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

freebsd's Issues

A PR attempt to your bashscritpt installation

#!/bin/sh
echo
clear
echo "This script installs and sets a minimalist Bash environment for a normal FreeBSD user"
sleep 3
echo "What is your username? "
read user_
sleep 3

Change the default pkg repository from quarterly to latest

sudo sed -ip 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf

Update packages (it will first download the pkg repo from latest)

secondly it will upgrade any installed packages.

sudo pkg upgrade -y

Install the bash shell and bash completion

sudo pkg install -y bash bash-completion

Configure bash

touch /usr/home/.bashrc

sudo echo '[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && ' >> /usr/home/$user_/.bashrc
sudo echo 'source /usr/local/share/bash-completion/bash_completion.sh' >> /usr/home/$user_/.bashrc

Add some aliases so bash isn't totally dumb

echo 'alias ll="ls -lah"' >> /usr/home/$user_/.bashrc
echo "alias la='ls -A'" >> /usr/home/$user_/.bashrc
echo "alias l='ls -CF'" >> /usr/home/$user_/.bashrc

Change the shell for a specific user

sudo chsh -s /usr/local/bin/bash $user_

Now do this:

mount -t fdescfs fdesc /dev/fd

and append: "fdesc /dev/fd fdescfs rw 0 0" to the end of -> /etc/fstab

Note: Do not change the default shell of the root user.

References:

https://www.adminbyaccident.com/freebsd/how-to-freebsd/how-to-install-the-bash-shell-on-freebsd/

http://bottlenix.wikidot.com/installing-the-bash-shell

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.