Contra Or Any Other Unix Guru! Help!

I installed BOCHS on my mac, and I think it absolutely sucks.

When I open the terminal, the bochs config panel automatically opens. If I delete the bochs files, it gives a message saying blahblahblah directory not found everytime I open a new Terminal window.

So my question is, how do I COMPLETELY remove all the files? Maybe by editing the .cshrc file?

#51063

Yeah, its probobly part of your profile.

Its probobly in ~/.cshrc or /etc/profile.

#51066

The darn thing comes up automatically..

Last login: Wed Aug 27 18:23:02 on ttyp1
cd /Users/tahasyed/Desktop/Bochs-2.0.2/;/Users/tahWelcome to Darwin!
asyed/Desktop/Bochs-2.0.2/bochs.app/Contents/MacOS/bochs
[Taha-Syeds-Computer:~] tahasyed% cd /Users/tahasyed/Desktop/Bochs-2.0.2/;/Users/tahasyed/Desktop/Bochs-2.0.2/bochs.app/Contents/MacOS/bochs
========================================================================
                      Bochs x86 Emulator 2.0.2
                          January 21, 2003
========================================================================
00000000000i[     ] fixing default bxshare location ...
00000000000i[     ] now my BXSHARE is /Users/tahasyed/Desktop/Bochs-2.0.2
00000000000i[     ] reading configuration from bochsrc.txt
------------------------------
Bochs Configuration: Main Menu
------------------------------

This is the Bochs Configuration Interface, where you can describe the
machine that you want to simulate.  Bochs has already searched for a
configuration file (typically called bochsrc.txt) and loaded it if it
could be found.  When you are satisfied with the configuration, go
ahead and start the simulation.

You can also start bochs with the -q option to skip these menus.

1. Restore factory default configuration
2. Read options from...
3. Edit options
4. Save options to...
5. Begin simulation
6. Quit now

Please choose one: [5]

and there's nothing in the cshrc file.. :(

#51075

Have you tried choosing option #1?

Try changing your default shell to BASH, and see if it comes up. If it doesnt, then you know its in a tcsh config file.

Im kind of stumped. Thats wierd. Have you looked at the docs on the Bochs website?

Where did you get the file from? FINK? If you did, remove Bochs via APT.

#51084

its there if I use bash too. :(

the darn bochs documentation doesn't say anything about uninstalling.. :mad:

I got the file from sourceforge.net It was a standard dmg file, from which I ran a script.

#51090

what is the technique for 'uninstalling' programs in UNIX?

edit: I just noticed something interesting. When I type ctrl+C to get of the bochs panel, the default path it shows in the tcsh shell is not ~ or /. It is ~/Desktop/Bochs-2.0.2

Is there a way to define/change where the Terminal starts up?

#51193

there has to be something in the profile check /etc/profile and see if there is any call to an external file that may load this thing. If you know the command that starts it you can also grep for it in the . files i.e: "grep Bochs .??*" a more "radical" aproach would be to delete the executable for Bochs, but that will leave non neccesary and unused files all over your system.

#51301

Originally posted by Telmo@Aug 28 2003, 12:10 PM

there has to be something in the profile check /etc/profile and see if there is any call to an external file that may load this thing. If you know the command that starts it you can also grep for it in the . files i.e: "grep Bochs .??*" a more "radical" aproach would be to delete the executable for Bochs, but that will leave non neccesary and unused files all over your system.

well, I pico'ed /etc/profile and here's the content of the file:

# System-wide .profile for sh(1)

PATH="/bin:/sbin:/usr/bin:/usr/sbin"

export PATH

Maybe that could help you find out the source of the thing? :(

edit: when I do the grep thing, I get

grep: no match

:( :(

#51311

Then it changed the path of your HOME directory.

do:

echo $HOME

that will tell you what your HOME variable is set to.

Im not sure how you change it in tcsh though, I only really use BASH.

You should switch to BASH anyway, its better. Its going to be the default in Panther too.

For uninstalling things, you can either just delete the files by hand, or use a package manager (like DPKG for debian) or do "make uninstall" if you compiled from source.

#51333

try this to find Bochs confuration too:

grep -R bochs /etc

as root.

#51335

 echo $HOME

I get Users/Tahasyed, which is right..

grep -R bochs /etc

I get

grep: invalid option -- R
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.

When I do the same with a small 'r',

grep -r bochs /etc

I get nothing.. :(

edit: Dammit! I'm going outside for a smoke. I'll be back in 15 minutes. <_<

#51338

try doing an:

ls -al ~

that will list all the hidden files in your HOME directory, so you can see if the .bachsrc is there (thats what you have to remove according to the website).

#51342

I get

total 72
drwxr-xr-x  22 tahasyed  staff   748 Apr  1 15:34 .
drwxrwxr-t   5 root      wheel   170 Apr  1 00:17 ..
-rw-r--r--   1 tahasyed  staff  9905 Jul 23  2003 .BPkey
-rw-r--r--   1 tahasyed  staff     3 Jul 18  2003 .CFUserTextEncoding
-rwxr-xr-x   1 tahasyed  staff  6148 Apr  1 15:34 .DS_Store
-rw-r--r--   1 tahasyed  staff     0 Jul 18  2003 .MCXLC
drwxr-xr-x   3 tahasyed  staff   102 Aug 19  2003 .MacOSX
drwx------   3 tahasyed  staff   102 Apr  1 15:29 .Trash
-rw-r--r--   1 tahasyed  staff    24 Aug 27  2003 .cshrc
-rw-------   1 tahasyed  staff    63 Aug 27  2003 .cvspass
drwxr-xr-x   3 tahasyed  staff   102 Jul 28  2003 .eDonkey
drwxr-xr-x   2 tahasyed  staff    68 Jul 18  2003 .java
drwxr-xr-x   4 tahasyed  staff   136 Jul 18  2003 .jpi_cache
-rw-r--r--   1 tahasyed  staff    14 Aug 14  2003 .lpoptions
drwxr-xr-x   6 tahasyed  staff   204 Jul 19  2003 .mplayer
drwx------   3 tahasyed  staff   102 Jul 28  2003 .ssh
-rw-r--r--   1 tahasyed  staff     0 Aug 27  2003 .xinitrc
drwxr-xr-x   7 tahasyed  staff   238 Apr  1 16:02 Desktop
drwx------  14 tahasyed  staff   476 Apr  1 15:34 Documents
drwx------  43 tahasyed  staff  1462 Aug 26  2003 Library
drwxr-xr-x   2 tahasyed  staff    68 Aug 13  2003 Public
drwxr-xr-x  15 tahasyed  staff   510 Aug 27  2003 Sites

Maybe because I wasn't using bash when I installed bochs? :(

In that case, what file should I look for..?

#51346

well, do this as root:

updatedb

locate boch

and it will list all the files on the system with "boch" in it. I guess if you remove all those files, it should work.

Also, how does a DMG install? Ive never actually seen it.

EDIT:\\

Why not ask this on the Bochs Discussion Board, they would know this better than us?

#51360

the locate boch thing didn't work :(.

Anyway, I'm backing up my data and formatting, all because of that fücking Bochs.

A dmg is a disk image. So when you double click a .dmg file, it mounts a virtual 'drive' which shows on your desktop. You can then drage the files from the 'drive' to your real drive to 'install' them.

#51451

ooh, if you're reinstalling.

LEAVE SOME UNPARTITIONED SPACE.

You want to install Linux, right. ;)

Man, you OSX people, always reinstalling.

Have you asked in the Bochs forum?

#51455

No, I didn't ask in the Bochs forum.

But I did email the Bochs guys. They didnt rely <_<.

#51459

Well, after reading around in the forums, it looks like you have to delete(or edit) your .bochsrc file.

#51467

Originally posted by Taha@Aug 29 2003, 01:07 AM

the locate boch thing didn't work :(.

Anyway, I'm backing up my data and formatting, all because of that fücking Bochs.

A dmg is a disk image. So when you double click a .dmg file, it mounts a virtual 'drive' which shows on your desktop. You can then drage the files from the 'drive' to your real drive to 'install' them.

you should try:

find . | grep boch | rm -r

that should remove all of boch!!

#51485

Taha,

If you are able to mount the dmf image you should be able to see what files are there right? just find the files in your hard drive and remove them..

find / -name \*boch\*

that will search your HD for anything with the letters boch in it's name. And if you want to automagically remove them..

find / -name \*boch\* -exec rm -rf {} \;

#51608

Telmo: I already had him do a "locate", and if that didn't find it, "find" won't either.

#51610

Contra, we were both wrong, on both our examples we were using case sensitive searchs, so neither yours or mine would find Boch for example.

find / -iname \*boch\*

find / -iname \*boch\* -exec rm -rf {} \;

that will be case insensitive.

locate -i boch

will also be better that just locate since it is also case insensitive.

#51630

well, bochsrc is what you have to remove, and im pretty sure thats lower case.

#51637