Terminal Console Hang setelah edit bashrc

Tempat nongkrong. Diskusi bebas di luar topik.
User avatar
noGate
Posts: 11
Joined: 11 Nov 2011, 23:51

Terminal Console Hang setelah edit bashrc

Postby noGate » 19 Dec 2011, 09:58

Dear Bro'

Mohon bantuannya bagaimana caranya mengembalikan fungsi terminal console seperti semula setelah di edit file .bashrc

saat ini terminal console tidak bisa digunakan

terimakasih atas bantuannya
User avatar
ilham2930
Posts: 1123
Joined: 02 Jan 2010, 19:30
Location: /indonesia/tangerang/bonank_city
Contact:

Re: Terminal Console Hang setelah edit bashrc

Postby ilham2930 » 19 Dec 2011, 10:06

coba di copas isi .bashrcnya masbro..
emang editnya ngapain..?
User avatar
Sudoers
Site Admin
Posts: 1
Joined: 03 Nov 2009, 17:43

Re: Terminal Console Hang setelah edit bashrc

Postby Sudoers » 19 Dec 2011, 10:07

Jangan bilang file .bashrc ngak dibackup dulu :D
Klo ngak di backup ambil file .bashrc dari kompi lain, ato dari livecd aja keknya bs dapat tuh.

Ato coba remove aja file tersebut, tapi backup dulu
Cara ini belum ta coba tapi munkin bs..

Masalahnya munkin isi file .bashrc ada yg salah/ngak sesuai dengan formatnya! Hanya mengira2 ngak menuduh :D
User avatar
noGate
Posts: 11
Joined: 11 Nov 2011, 23:51

Re: Terminal Console Hang setelah edit bashrc

Postby noGate » 19 Dec 2011, 10:49

dear bro'

berikut isi file .bashrc tadi di belakan nambahin syntax mungkin ada huruf atau symbol yng tertekan secara tidak sengaja.

# ~/.bashrc: executed by bash(1) for non-login shells.
# 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
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
# ... or force ignoredups and ignorespace
export HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)

# 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 "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -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) 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[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\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

# 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 [ -x /usr/bin/dircolors ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
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
User avatar
Gondret
Posts: 56
Joined: 28 Nov 2011, 18:50
Location: Mojokerto, Indonesia

Re: Terminal Console Hang setelah edit bashrc

Postby Gondret » 20 Dec 2011, 03:17

Salam kenal. Saya anggota baru.
Saya ingin bertanya mengenai terminal. Apa perintah untuk hibernate melalui terminal?
User avatar
suckonk
Posts: 7
Joined: 28 May 2010, 22:36
Location: bandung

Re: Terminal Console Hang setelah edit bashrc

Postby suckonk » 08 Feb 2013, 16:08

Sore semuanya, saya mengalami kesulitan seperti pada thread ini.

saya mencoba mengedit bashrc untuk mempercantik tampilan terminal.
namun ketika itu sehabis saya edit di terminal tidak muncul tulisan apapun, dan saya pun reboot.
setelah di reboot malah tidak bisa masuk ke BT 5 saya.
tolong beri saya masukan.

terimakasih.
User avatar
sta
Posts: 2003
Joined: 27 Apr 2010, 09:49
Contact:

Re: Terminal Console Hang setelah edit bashrc

Postby sta » 08 Feb 2013, 16:12

ikuti saran kang Sudoers
User avatar
suckonk
Posts: 7
Joined: 28 May 2010, 22:36
Location: bandung

Re: Terminal Console Hang setelah edit bashrc

Postby suckonk » 08 Feb 2013, 16:35

saya kan ngak di backup sebelumnya, terus cara ambil file .bashrc dari kompi lain, ato dari livecd bagaimana?
soalnya baru memakai Linux.

tolong bantuannya.
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: Terminal Console Hang setelah edit bashrc

Postby offline » 08 Feb 2013, 16:41

bashrc default juga ada di /etc/skel/.bashrc ,trus disalin confignya
http://alexsleat.co.uk/2012/06/12/howto ... in-ubuntu/
atau ini
https://gist.github.com/marioBonales/1637696
User avatar
sta
Posts: 2003
Joined: 27 Apr 2010, 09:49
Contact:

Re: Terminal Console Hang setelah edit bashrc

Postby sta » 08 Feb 2013, 16:44

jalanin livedvd BT, trus copy file .bashrc ke FD
User avatar
suckonk
Posts: 7
Joined: 28 May 2010, 22:36
Location: bandung

Re: Terminal Console Hang setelah edit bashrc

Postby suckonk » 09 Feb 2013, 09:17

cara mengcopynya bagaimana?
bingung tolong pencerahannya.

permasalahnya sehabis memasukkan user dan password muncul terminal.
nah terminalnya tidak ada.
User avatar
nif
Posts: 2817
Joined: 31 Mar 2011, 07:48

Re: Terminal Console Hang setelah edit bashrc

Postby nif » 09 Feb 2013, 10:00

coba buat user baru dulu aja, lihat cara om chiki di sini :smile:
User avatar
suckonk
Posts: 7
Joined: 28 May 2010, 22:36
Location: bandung

Re: Terminal Console Hang setelah edit bashrc

Postby suckonk » 09 Feb 2013, 10:29

ttep enggak bisa Om.
malah tulisannya enggak nemu folder homenya.
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: Terminal Console Hang setelah edit bashrc

Postby offline » 09 Feb 2013, 11:31

kalau dah mentok paling reinstall,kalo reinstall nanti jgn diformat & jgn rebuild partisi coz nanti aplikasimu2 hilang.maksudnya kalo kamu nanti install tanpa format maka kamu bisa memiliki ubuntumu yg sebelum diinstall.
diinstall dg versi ubuntu yg sama yah
cmiiw
User avatar
suckonk
Posts: 7
Joined: 28 May 2010, 22:36
Location: bandung

Re: Terminal Console Hang setelah edit bashrc

Postby suckonk » 09 Feb 2013, 12:20

dengan seperti itu maka akan balik seperti semula dan data enggak akan hilang y?

oke akan saya install
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: Terminal Console Hang setelah edit bashrc

Postby offline » 09 Feb 2013, 12:31

suckonk wrote:dengan seperti itu maka akan balik seperti semula dan data enggak akan hilang y?

oke akan saya install

itu cara bila dah mentok ga ada jalan,opsi terakhir om :grin:
btw lebih baik data di bekup dulu! setahu saya data kita aman bila terletak di /home yg terpisah dari filesystem.kalau /home gabung sama filesystem itu gak aman datanya
do with your own risk
User avatar
suckonk
Posts: 7
Joined: 28 May 2010, 22:36
Location: bandung

Re: Terminal Console Hang setelah edit bashrc

Postby suckonk » 09 Feb 2013, 13:03

wah kalau gtu sabar dlu ajj yach dari pada berabe ntarnya.
padahal pengen mempercantik terminal pake cowsay pas abis ngedit .bashrc nya terus reboot ilang deh itu root nya.
jadi mentog masuknya sampai user password saja, setelah itu enggak ada respon.

:(
User avatar
offline
Posts: 2672
Joined: 17 Feb 2010, 21:03
Location: Kebumen

Re: Terminal Console Hang setelah edit bashrc

Postby offline » 09 Feb 2013, 13:14

sta wrote:jalanin livedvd BT, trus copy file .bashrc ke FD

dah praktek cara di atas lum om?
pake liveusb/cd,copy file .bashrc liveusb/cdnya ke ubuntu kamu

Return to “Pembicaraan Bebas”

Who is online

Users browsing this forum: Douglasluh and 7 guests