[SOLVED] terminal ubuntu 11.10 tidak bisa dibuka

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
romansah
Posts: 2
Joined: 16 Feb 2012, 16:25
Location: tasikmalaya, indonesia
Contact:

[SOLVED] terminal ubuntu 11.10 tidak bisa dibuka

Postby romansah » 16 Feb 2012, 17:06

slam kenal smuanya.... mhon maaf sya newbie mau tnya nih..

terminal di ubuntu 11.10 sya tidak mau dibuka, tampil sbentar trus nutup lagi. dicoba masuk ke tty2-tty6 pas login tampil cannot execute /bin/bash : exec format error. kalo gak slah mslah ini muncul stelah update dan install beberapa apps..

mhon bantuannya para sesepuh smuanya... mhon maaf bila ada slah2 kata
trima kasih
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [ask] terminal ubuntu 11.10 tidak bisa dibuka

Postby thrvers » 16 Feb 2012, 19:28

'
mungkin ada yg salah dengan isi /home/romansah/.bashrc coba dicek lagi

hint: pke livecd

kira2 isi defaultnya seperti ini:
Tampilkan

Code: Select all

# ~/.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
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

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

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

# 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

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || 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 -alF'
alias la='ls -A'
alias l='ls -CF'

# 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 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 ] && ! shopt -oq posix; then
#    . /etc/bash_completion
#fi

export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin


cmiiw
User avatar
romansah
Posts: 2
Joined: 16 Feb 2012, 16:25
Location: tasikmalaya, indonesia
Contact:

Re: [ask] terminal ubuntu 11.10 tidak bisa dibuka

Postby romansah » 16 Feb 2012, 21:08

trimakasih bnyak mas pencerahannya, terminal sya udah jlan lagi..

file .bashrc udah sama dngan default, tapi msalahnya mungkin di file /bin/bash yang sprtinya tidak executable. kemudian sy ubah executable.

knapa ya bisa terjadi perubahan sperti itu?, pdhal sya tidak utak atik apapun. trus apakah solusi yg sya lakukn ini udah bnar ato msih slah?, tpi sejauh ini terminal sya udah bisa jlan sperti biasa.

skali lgi trimaksih mas pencerahnya....
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [ask] terminal ubuntu 11.10 tidak bisa dibuka

Postby thrvers » 16 Feb 2012, 21:16

'
terimakasih kembali buat kak romansah atas sharing baliknya :D

punya saya :)
# chmod 755 /bin/bash

THX
User avatar
CDX
Posts: 1616
Joined: 03 Jan 2010, 13:00
Location: Prapatan belok kiri

Re: [ask] terminal ubuntu 11.10 tidak bisa dibuka

Postby CDX » 16 Feb 2012, 21:48

romansah wrote:trimakasih bnyak mas pencerahannya, terminal sya udah jlan lagi..

file .bashrc udah sama dngan default, tapi msalahnya mungkin di file /bin/bash yang sprtinya tidak executable. kemudian sy ubah executable.

knapa ya bisa terjadi perubahan sperti itu?, pdhal sya tidak utak atik apapun. trus apakah solusi yg sya lakukn ini udah bnar ato msih slah?, tpi sejauh ini terminal sya udah bisa jlan sperti biasa.

skali lgi trimaksih mas pencerahnya....



dah solved berarti gembok

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: No registered users and 17 guests