Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Customisasi Terminal
#26
klo punya ane kek gini gan. monggo dicoba gan. sialkan di edit berkreasi sendiri..newbie just share Cheer

# ~/.bashrc: executed by bash(1) for non-login shells.

#!/bin/bash
#------------------------------------------////
# Last Modified 3 Jan 2012 by @kyoshiro67
# Running on Backtrack 4
#------------------------------------------////
#------------------------------------------////
# Colors:
#------------------------------------------////
black='\e[0;30m'
blue='\e[0;34m'
green='\e[0;32m'
cyan='\e[0;36m'
red='\e[0;31m'
purple='\e[0;35m'
brown='\e[0;33m'
lightgray='\e[0;37m'
darkgray='\e[1;30m'
lightblue='\e[1;34m'
lightgreen='\e[1;32m'
lightcyan='\e[1;36m'
lightred='\e[1;31m'
lightpurple='\e[1;35m'
yellow='\e[1;33m'
white='\e[1;37m'
nc='\e[0m'

# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
#export HISTCONTROL=ignoredups

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
;;
*)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
;;
esac

# Comment in the above and uncomment this below for a color prompt
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
;;
*)
;;
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi

# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi

# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
export PATH=$PATH:/opt/oracle/instantclient_10_2
export SQLPATH=/opt/oracle/instantclient_10_2
export TNS_ADMIN=/opt/oracle/instantclient_10_2
export LD_LIBRARY_PATH=/opt/oracle/instantclient_10_2
export ORACLE_HOME=/opt/oracle/instantclient_10_2

#password login
#{
#echo -n "c0d3-num63r : "
#read kyoshiro
#if [ "$kyoshiro" == "pwnsauce" ] ; then
#echo "login is complete!"
#echo -e "${red}by kyoshiro67"
#else
#reboot
#fi
#}

# Mod Terminal
cowsay -f eyes "Fu can change the world !"

#Figlet nama
figlet "Indonesia Backtrack Team"

# system informasi

echo -ne "${lightblue}"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
echo -ne "${lightgreen}Today is:\t\t${red}" `date`; echo ""
echo -e "${lightgreen}Kernel Information: \t${red}" `uname -smr`
echo -e "${lightgreen}Time: \t\t\t${red}" `date +%r`
echo -e "${lightgreen}Date: \t\t\t${red}" `date +"%d-%m-%Y"`
echo -e "${lightgreen}User: \t \t \t${red}" `whoami`
echo -ne "${lightgreen}$HOSTNAME ${lightgreen}uptime is: ${red} \t \t ";uptime | awk /'up/ {print $3,$4,$5,$6,$7,$8,$9,$10}'
#List network
echo -ne "${lightgreen}Ip address: \t \t ${red}" ;lynx -dump -hiddenlinks=ignore -nolist http://checkip.dyndns.org:8245/ | grep "Current IP Address" | cut -d":" -f2 | cut -d" " -f2

echo ""
echo -e "${lightgreen}Indonesian Backtrack Team"
echo -ne "${white}${italic}the quieter you become, the more you able to hear"
echo -e "\t \t ${cyan}@${white}k${lightgreen}y${white}o${red}s${yellow}h${green}i${blue}r${purple}o${lightred}6${lightgray}7"
echo -ne "${lightblue}" ; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="


Note:
sebelumnya ane udah install cowsay dan figlet.
ntar klo diminta password ketik "pwnsauce" tanpa tanda petik.
Reply


Messages In This Thread
Customisasi Terminal - by Alecs - 10-20-2010, 01:25 AM
RE: Customisasi Terminal - by aN93l1c - 10-20-2010, 01:29 AM
RE: Customisasi Terminal - by Alecs - 10-20-2010, 01:31 AM
RE: Customisasi Terminal - by Wayc0de - 10-20-2010, 01:33 AM
RE: Customisasi Terminal - by nesta - 10-20-2010, 01:47 AM
RE: Customisasi Terminal - by aN93l1c - 10-20-2010, 01:53 AM
RE: Customisasi Terminal - by Wayc0de - 10-20-2010, 02:04 AM
RE: Customisasi Terminal - by Mr.hack - 10-20-2010, 01:59 AM
RE: Customisasi Terminal - by nesta - 10-20-2010, 02:27 AM
RE: Customisasi Terminal - by franstuyyos - 10-20-2010, 01:04 PM
RE: Customisasi Terminal - by anharku - 10-20-2010, 01:38 PM
RE: Customisasi Terminal - by franstuyyos - 10-20-2010, 01:47 PM
RE: Customisasi Terminal - by aN93l1c - 10-21-2010, 12:16 PM
RE: Customisasi Terminal - by nesta - 10-20-2010, 02:32 PM
RE: Customisasi Terminal - by compLann - 10-20-2010, 03:47 PM
RE: Customisasi Terminal - by Alecs - 10-20-2010, 04:52 PM
RE: Customisasi Terminal - by anharku - 10-20-2010, 07:50 PM
RE: Customisasi Terminal - by Sidom - 10-20-2010, 09:38 PM
RE: Customisasi Terminal - by Up_ - 12-25-2010, 01:51 AM
RE: Customisasi Terminal - by Marvellous - 12-25-2010, 10:51 PM
RE: Customisasi Terminal - by Up_ - 01-30-2011, 10:06 PM
RE: Customisasi Terminal - by Alecs - 01-31-2011, 03:19 AM
RE: Customisasi Terminal - by black_list99 - 02-12-2011, 04:40 AM
RE: Customisasi Terminal - by aandoni - 02-27-2011, 08:24 PM
RE: Customisasi Terminal - by easy2study - 06-12-2011, 01:11 PM
RE: Customisasi Terminal - by kyoshiro67 - 07-22-2012, 07:26 PM
RE: Customisasi Terminal - by brianfahmi - 01-20-2013, 06:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Heart_16 Modifikasi Terminal Backtrack dengan Figlet E1nzte1N 36 943 05-23-2014, 03:39 AM
Last Post: red-dragon
  (ASK) Cara connect wifi via terminal pada kali linux h.adittya 3 109 02-28-2014, 08:35 AM
Last Post: avaritia
  Modifikasi Terminal Backtrack dengan Figlet (Part II) xdieka-civilx 11 316 01-20-2013, 06:41 AM
Last Post: brianfahmi
  comand eror di terminal sarno 5 97 04-19-2012, 11:28 PM
Last Post: abu adam
  Beberapa Perintah Konsole Terminal Linux: ncipt 33 746 03-29-2012, 09:47 PM
Last Post: men9
Computer_16 Internetan di Terminal Nebty 14 273 03-23-2012, 03:58 AM
Last Post: th3_pun1sh3r
Online-offline_16 Chat di terminal windows dan Linux. E1nzte1N 15 268 03-12-2012, 12:41 AM
Last Post: E1nzte1N
  Mengkoneksikan WLAN Melalui Terminal red-dragon 14 245 02-21-2012, 09:03 PM
Last Post: pukank
  [ Video ] Mengganti root@bt Di Console/Terminal Andrian™ 10 216 01-01-2012, 10:35 AM
Last Post: BossSarkem
  chat via terminal / dos aandoni 10 167 12-04-2011, 08:37 PM
Last Post: nesta

Forum Jump:


Users browsing this thread: 1 Guest(s)