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.


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