LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2004, 02:26 PM   #1
lisbet
LQ Newbie
 
Registered: Oct 2004
Location: Denmark
Distribution: Fedora core 2
Posts: 8

Rep: Reputation: 0
Unhappy how do I uninstall linux


Hello!
I have had a little problem, which you might don't need to uninstall linux for. But how do I do it?

My problem was that I changed the .bashrc file, because I wanted to install java, but it didn't work out so well.
Now my X-term won't tell where I am, there is a empty screen.
Thanx!
 
Old 11-07-2004, 02:39 PM   #2
faralen
LQ Newbie
 
Registered: Oct 2003
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
Try moving the file to something else, like .bashrc.old. If /etc/skel/.bashrc exists, copy that to your home directory.
You can also show the contents of the file, and see if we can fix it. You really don't need to uninstall anything at all.
 
Old 11-07-2004, 02:41 PM   #3
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
You dont to re-install L1nux for such a small problem..

Create a file .bashrc in your home directory and paste the following
and open a new terminal to apply the new settings .

################################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi


#### FOR COLORS AND PATH DISPLAY IN THE TERMINAL#############

PS1="[\u@\h \W]\\$ " # show name & current folder - from http://overtone.org/articles/bashrc.php

# colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"

# Change the window title of X terminals
case $TERM in
xterm*|rxvt|Eterm|eterm|aterm|Aterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac

############################################################
 
Old 11-07-2004, 02:42 PM   #4
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
go to this site and put in your .bashrc: http://www.tldp.org/LDP/abs/html/sample-bashrc.html
 
Old 11-07-2004, 03:42 PM   #5
lisbet
LQ Newbie
 
Registered: Oct 2004
Location: Denmark
Distribution: Fedora core 2
Posts: 8

Original Poster
Rep: Reputation: 0
Talking thanks

Now I have done that, I still don't have anything in my xterm.
Is it because I should reboot or set some references to xterm.
 
Old 11-07-2004, 03:45 PM   #6
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
log out then back in
 
Old 11-07-2004, 03:49 PM   #7
lisbet
LQ Newbie
 
Registered: Oct 2004
Location: Denmark
Distribution: Fedora core 2
Posts: 8

Original Poster
Rep: Reputation: 0
The .bashrc is like UsualTuxspect wrote:
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi


#### FOR COLORS AND PATH DISPLAY IN THE TERMINAL#############

PS1="[\u@\h \W]\\$ " # show name & current folder - from http://overtone.org/articles/bashrc.php

# colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"

# Change the window title of X terminals
case $TERM in
xterm*|rxvt|Eterm|eterm|aterm|Aterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac

___________
So, I don't know what to do...
 
Old 11-07-2004, 05:38 PM   #8
lisbet
LQ Newbie
 
Registered: Oct 2004
Location: Denmark
Distribution: Fedora core 2
Posts: 8

Original Poster
Rep: Reputation: 0
please answer...i miss my x-term...
 
Old 11-07-2004, 05:59 PM   #9
lisbet
LQ Newbie
 
Registered: Oct 2004
Location: Denmark
Distribution: Fedora core 2
Posts: 8

Original Poster
Rep: Reputation: 0
When I press ctrl-alt-f1 It says:
bash: host: unbound variable
bash: hilit: unbound variable


 
Old 11-07-2004, 07:53 PM   #10
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
ok so show us our .bashrc file. what did you put in that? you can just delete it and the system default will take over as long as you weren't messing around in /etc
 
Old 11-08-2004, 12:17 PM   #11
lisbet
LQ Newbie
 
Registered: Oct 2004
Location: Denmark
Distribution: Fedora core 2
Posts: 8

Original Poster
Rep: Reputation: 0
Now when I have deleted everything in the .bashrc -file, I get this in my x-term-window: bash-2.05 $
I might have messed with the /etc file, though.
 
Old 11-08-2004, 08:49 PM   #12
mAineAc
Member
 
Registered: Nov 2000
Location: Hermon, ME
Distribution: slackware
Posts: 201

Rep: Reputation: 30
that looks like a default prompt to me. Now just play around with your ~/.bashrc to tweak it how you want it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can we uninstall linux nagu_linux Linux - Newbie 2 12-26-2004 12:22 AM
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 11:03 AM
Uninstall Linux Liquid_Snake Linux - Software 7 07-10-2003 09:51 PM
How do you uninstall Linux? Typhonian Linux - General 4 04-12-2003 03:00 AM
How to uninstall in Linux? felecha Linux - Software 22 06-01-2001 04:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration