...
Code Block |
---|
|
mkdir /home/vault && chmod 0700 /home/vault && mkdir /home/vault/config_backups |
Edit Skeleton Files
Add the following code to the /etc/skel/.bashrc to produce a coloured prompt:
Code Block |
---|
|
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[00m\]\u\[\033[01;33m\]@\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac |
Code Block |
---|
|
dircolors -p > /etc/skel/.dircolors |
...
nano /etc/skel/.dircolors - |
...
...
...
echo 'echo '' > ~/.bash_history' >> /etc/skel/.bash_logout |
...
echo 'echo '' > ~/.bash_history' >> /etc/skel/.bashrc |
...
echo 'cd ~' >> /etc/skel/.bashrc |
Install VMWare Tools
Code Block |
---|
|
mkdir /home/vault/vmware
cp /media/VMware\ Tools/VMwareTools-*.tar.gz /home/vault/vmware
cd /home/vault/vmware && tar xzf VMwareTools-*.tar.gz && cd vmware-tools-distrib/
yum install gcc gcc-c++ kernel-devel kernel-headers make -y
reboot
./vmware-install.pl |
...