PDA

View Full Version : Can read .html file?


Sid Alam
08-13-2002, 12:40 PM
I have downloaded some java tools from Sun website.
The thing is I cannot read on of the files. The file is an html file.
It is called Readme.html.

This file in the file viewer has a question mark attached to it. When I click on the file it brings up a open with dialog box. Here I have tried with Konqueror but it just shows the file as blank. As the file is important I need to read it.

There are other files of type .html these fortunately have the "world globe" icon in the file viewer. So when I click on the file it results in the file being opened with Konqueror (I assume this is a browser under Linux)

What shall I do?

Sid Alam
08-13-2002, 02:07 PM
I have checked the file to see if it really is an html file and also if it has any writing.

I opend the file with gedit and it does have writing.
The writing is difficult to read, since it is interlaced with html brackets and chevrons. Also I would like to read it as a html since it has href links.

What shall I do?

john5211
08-13-2002, 06:45 PM
Try opening the file with a browser other than konquorer (e.g. Mozilla or Galeon). To do this, open the browser, select File -> Open, and then browse to the location and select the file.

John

Sid Alam
08-13-2002, 09:41 PM
thanx worked with Mozilla

Sid Alam
08-13-2002, 10:07 PM
new question:

I am running bash shell command, I am having some trouble running the Java tools. I have read that I need to edit a file called bashrc since I am using the bash shell.

I have done a search for the .bashrc file and found the file at:
home/sid/.bashrc



However I don't know where I should enter the path detials. Since most of the Java tools are located at the bin folder.

My bashrc has the following text:
#.bashrc

# user specific aliases and functions

# source global definations
if [-f /etc/bashrc]; then
. /etc/bashrc
fi


Where do I enter the path details?

john5211
08-13-2002, 10:55 PM
Hi Sid,

If all you want to do is add a directory to your path, you can do it in your local .bashrc file.

For example, suppose you want to put the directory /opt/stuff in your path. Somewhere in the file (preferably below a comment that says "user functions and aliases" or some similar statement), insert the following line:

<i>export PATH=$PATH:/opt/stuff</i>

The $PATH part just makes sure that you keep the rest of the path information. After you edit and save the file, restart your bash session (in X, just open a new console). Type 'env' at the prompt; among other information, your path will be displayed. The directory that you added should be at the end.

Although it is less of a concern for a single user system, if you wanted to add the path statement for multiple users, you could edit /etc/bashrc or /etc/profiles (but this would be more complicated as you have to pick and choose who can have what in their path and figure out how to implement your choices).

Good Luck,

John

Sid Alam
08-14-2002, 09:03 AM
John,

How do I open the .bascrc file.

So far I have done a search for the file.
And then clicked on the file and it opened with konqueror.
The problem is with konqueror I cannot write anything.

I also know that "." files are hidden so I have opened up an editor like gedit and browsed to /home/sid/ but cannot see it, how do I see it?
Is gedit okay to make the changes?

Sid Alam
08-14-2002, 09:48 AM
Thanx John (You must be an linux guru)

No need to respond to last post, made it work.

Sid Alam
08-14-2002, 12:33 PM
OH dear new problem:
My problem is I cannot log into computer with user sid, I can log into system under root.

Here is my:
#.bashrc

# user specific aliases and functions

# source global definations
if [-f /etc/bashrc]; then
. /etc/bashrc
fi

export PATH=/home/sid/j2sdk1.4.1/bin


I was able to run java programs and compile. Then I logged off the system and went for a break. I came back after 1 hour but I was unable to log back into the system under user name "sid"

Please help.

Question:

When I am logged into as root the command prompt is
[root@localhost ...]#

How can I go into user "sid" then I can run the java tools I think? Although this is not ideal since under root user I cannot see all my desktop icons

john5211
08-14-2002, 04:19 PM
Hi Sid,

You need to rewrite your .bashrc (the one in /home/sid) so that it says:

<i>#.bashrc

# user specific aliases and functions

export PATH=<b>$PATH:</b>/home/sid/j2sdk1.4.1/bin

# source global definitions
if [-f /etc/bashrc]; then
. /etc/bashrc
fi</i>


Notice the part in bold (don't try to make it bold in the text document, of course). This is very important, as it tells the system to keep all previous path information and /home/sid... to the list of places to check for commands.

After you edit the file, make sure that sid still owns it, and log out of the machine (all the way off) and back on.

Good Luck,

John

PS, from the console, you can type 'su sid' to Switch User to sid.

Sid Alam
08-14-2002, 05:18 PM
John is King ... were not worthy