![]() |
|
Customisasi Terminal - Printable Version +- HN-Community (https://hacker-newbie.org) +-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html) +--- Forum: Operating System (https://hacker-newbie.org/forum-13.html) +---- Forum: GNU/Linux (https://hacker-newbie.org/forum-15.html) +---- Thread: Customisasi Terminal (/thread-5266.html) |
RE: Customisasi Terminal - Up_ - 01-30-2011 root@gohack:~# gedit /etc/bash.bashrc -bash: gedit: command not found root@gohack:~# sudo gedit /etc/bash.bashrc sudo: gedit: command not found root@gohack:~# nano /etc/bash.bashrc ane punya gini ye.. linux ubuntu commandnya apa? Reading state information... Done E: Couldn't find package figlet root@gohack:~# RE: Customisasi Terminal - Alecs - 01-31-2011 pake user biasa aja. kalo kamu udah root ndak usah pake sudo
RE: Customisasi Terminal - black_list99 - 02-12-2011 di kompi ane muncul tulisan kayak gini kk,, yasser@ubuntu:~$ sudo apt-get install figlet E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. tu maksudny apa kk?? newbie gak ngerti,, mohon pencerahan dari para master.. RE: Customisasi Terminal - aandoni - 02-27-2011 wah.. keren om.. maju trus... RE: Customisasi Terminal - easy2study - 06-12-2011 yang gk pake figlet ada gk ya masbrot ?
RE: Customisasi Terminal - kyoshiro67 - 07-22-2012 klo punya ane kek gini gan. monggo dicoba gan. sialkan di edit berkreasi sendiri..newbie just share ![]() # ~/.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. RE: Customisasi Terminal - brianfahmi - 01-20-2013 SSNya g kliatan om :( |