Skip to content


Install dan Konfigurasi Bash Shell pada FreeBSD

Lakukan update Ports Tree terlebih dahulu seperti pada bagian Install Portaudit dan Portupgrade untuk Memudahkan Manajemen Ports

Install Bash Shell

server# cd /usr/ports/shells/bash
server# make
server# make install
server# make clean

Ubah shell utama user-user yang diinginkan menjadi menggunakan Bash shell :

server# vipw

Edit untuk user root dan user biasa, ubah “/bin/sh” menjadi “/usr/local/bin/bash“. Seperti berikut :

root:$1$rHqzsY9B$Iqend1AxKaln1S2N74qT8/:0:0::0:0:Root Devilian:/root:/usr/local/bin/bash
devilian:$1$DxNIHs1w$pboIkCl60/BXsGb6MWp2e0:1001:0::0:0:Devilian Network:/home/devilian:/usr/local/bin/bash

Siapkan file Batch yang akan dijalankan saat user login :

server# ee ~/.bashrc
server# ee ~/.bash_profile
cp ~/.bash* ~devilian/
chown devilian ~devilian/.bash*


Isi file ~/.bashrc dan ~/.bash_profile adalah :

umask 022
PS1="[\u@\h \W]\\$ "
alias ls='ls -aFG'
alias ll='ls -l'
alias lh='ls -lh'

Test login menggunakan user yang telah diubah menggunakan Bash Shell.
Install Bash Shell selesai.

Share

Posted in FreeBSD.

Tagged with , , .

The On Demand Global Workforce - oDesk


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. Instalasi Free BSD « Sinichireina Blog's linked to this post on May 25, 2011

    [...] Install dan Konfigurasi Bash Shell pada FreeBSD [...]

  2. Instalasi Free BSD « Share Knowledge linked to this post on July 4, 2011

    [...] Install dan Konfigurasi Bash Shell pada FreeBSD [...]

  3. Instalasi Free BSD « Share Knowledge linked to this post on July 4, 2011

    [...] Bash Shell view source [...]



Some HTML is OK

or, reply to this post via trackback.