LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Html (https://www.linuxquestions.org/questions/linux-newbie-8/html-4175486425/)

Old Pete 12-01-2013 01:03 AM

Html
 
Why can't I add to a saved HTML document with Debian in Open Office 3

grail 12-01-2013 02:15 AM

Add to what? You might want to explain a bit further

Old Pete 12-01-2013 03:37 AM

Quote:

Originally Posted by grail (Post 5073282)
Add to what? You might want to explain a bit further

I started writing a document and saved it as a Html, when i reopened the document if found I could not continue writing in the document.

grail 12-01-2013 07:40 AM

Well I have not experienced this before, so I created a simple test html but did not come across any issues.

Maybe have a look at the file on the command line with:
Code:

ls -l /path/to/your/file/file.html
Post the output here and we can try going from there.

btmiller 12-01-2013 09:30 AM

In addition to the command suggested by grail. perhaps you could tell us what program you're using to edit the HTML file. What error message do you get when you try to add to it?

Old Pete 12-01-2013 03:53 PM

Quote:

Originally Posted by grail (Post 5073377)
Well I have not experienced this before, so I created a simple test html but did not come across any issues.

Maybe have a look at the file on the command line with:
Code:

ls -l /path/to/your/file/file.html
Post the output here and we can try going from there.

I have never gotten into the innards of that stuff, sorry, but I get into enough trouble as it is.

btmiller 12-01-2013 04:00 PM

Without a few more details about the HTML file, its permissions, and what program you're using to edit it, it's going to be difficult to help you. All you need to do is open a command prompt, paste in the command grail gave, and substitute the actual path to your file for "/path/to/your/file/file.html". If you need help with doing this, please let us know what desktop environment you're using. There's az terminal available somewhere that you can run from it.

Old Pete 12-01-2013 04:02 PM

Quote:

Originally Posted by btmiller (Post 5073411)
In addition to the command suggested by grail. perhaps you could tell us what program you're using to edit the HTML file. What error message do you get when you try to add to it?

There is no error message, it just refuses to let me re-enter the pages to edit or continue writing.

I was using Openoffice write 3. and using whatever editing is there.

I do think I have other issues, as the reason I used the Html Save was because the normal Save As....Name odt brought the page up being a bout 100mm X 100mm and too small to read.

I used to have no trouble changing the ODT. Document to Windows doc, for sending to otherI have gone to Permissions and made it Read adn Write, but it makes no difference.

A bit of a stuff up really. I may have to get either Debian or Ubuntu reloaded to the top version...About $90.00 for that. So there goes the Lexus I was going to put a deposit on next pension day!!!!

evo2 12-01-2013 07:06 PM

Hi,

Quote:

Originally Posted by Old Pete (Post 5073532)
I have never gotten into the innards of that stuff, sorry, but I get into enough trouble as it is.

well it looks like now is the time to. Grail is trying to help you but he needs more information. Running that command and posting the output here is likely to be the best way forward.

Cheers,

Evo2.

Old Pete 12-01-2013 07:38 PM

Quote:

Originally Posted by evo2 (Post 5073605)
Hi,



well it looks like now is the time to. Grail is trying to help you but he needs more information. Running that command and posting the output here is likely to be the best way forward.

Cheers,

Evo2.

Okay! So what buttons do I press to arrive at where to put that (code)?

evo2 12-01-2013 07:50 PM

Hi,
Quote:

Originally Posted by Old Pete (Post 5073615)
Okay! So what buttons do I press to arrive at where to put that (code)?

you need to start a "terminal emulator". You should be able to find one lurking in the menu perhaps under applications or accessories. Once you have found that we can proceed.


Evo2.

Old Pete 12-01-2013 10:26 PM

Quote:

Originally Posted by evo2 (Post 5073620)
Hi,

you need to start a "terminal emulator". You should be able to find one lurking in the menu perhaps under applications or accessories. Once you have found that we can proceed.


Evo2.

Easy - Peasy.....In Applications desktop I find Debian - Applications, Terminal Emulator and I have Gnome Terminal, X Terminal, X Terminal as root (GKsu), x Terminal (Unicode)

I am so excited LOL.

evo2 12-01-2013 11:26 PM

Hi,

ok, open one of them, I suggest "Gnome Terminal", but any one that is not "root" will be fine.

Time to get your hands dirty. First you need to learn three commands.

1.
Code:

pwd
This command prints the name of the Current Working Directory. A directory is what some people call a "folder". Ie it tells you "where you are". Just type those three letters and press enter. It should print something like:
Code:

/home/oldpete
This is your home directory. Usually when you open a new terminal you'll find yourself here.

2.
Code:

ls
This command will list the contents of the directory. Ie it will show you what files a (and "folders") are in your current directory. You can use this to see if the file you are interested in is in this directory.

3.
Code:

cd Pictures
This command will Change Directory to "Pictures" assuming that directory exists in the current working directory - you can use ls to determine this. Note that you don't have to fully type out the whole file or directory name when using comands like cd. Instead you can use a nice little feature "Tab completion". This works by typing the start of the file name and then pressing the "tab" key. Eg you could type:
Code:

cd Pic
then press tab and the line would automatically become
Code:

cd Pictures
Finally, to cd to the "parent directory" you can you can use "cd ..". Here is an example: the commands you would type are indicted by the lines begining with the "%" prompt, the other lines are the output from those commands
Code:

% pwd
/home/oldpete
% ls
Documents Music Pictures
% cd Pictures
% pwd
/home/oldpete/Pictures
% ls
bar.jpeg foo.jpeg
% cd ../
% pwd
/home/oldpete
% ls
Documents Music Pictures
% cd Documents
% pwd
/home/oldpete/Documents
% ls
mybook.odf mypaper.html
% ls -l mypaper.html

The output of the last command is what we ultimately want to see.

Please give it a try.

Evo2.

Old Pete 12-02-2013 12:17 AM

Quote:

Originally Posted by evo2 (Post 5073703)
Hi,

ok, open one of them, I suggest "Gnome Terminal", but any one that is not "root" will be fine.

Time to get your hands dirty. First you need to learn three commands.

1.
Code:

pwd
This command prints the name of the Current Working Directory. A directory is what some people call a "folder". Ie it tells you "where you are". Just type those three letters and press enter. It should print something like:
Code:

/home/oldpete
This is your home directory. Usually when you open a new terminal you'll find yourself here.

2.
Code:

ls
This command will list the contents of the directory. Ie it will show you what files a (and "folders") are in your current directory. You can use this to see if the file you are interested in is in this directory.

3.
Code:

cd Pictures
This command will Change Directory to "Pictures" assuming that directory exists in the current working directory - you can use ls to determine this. Note that you don't have to fully type out the whole file or directory name when using comands like cd. Instead you can use a nice little feature "Tab completion". This works by typing the start of the file name and then pressing the "tab" key. Eg you could type:
Code:

cd Pic
then press tab and the line would automatically become
Code:

cd Pictures
Finally, to cd to the "parent directory" you can you can use "cd ..". Here is an example: the commands you would type are indicted by the lines begining with the "%" prompt, the other lines are the output from those commandsadn
Code:

% pwd
/home/oldpete
% ls
Documents Music Pictures
% cd Pictures
% pwd
/home/oldpete/Pictures
% ls
bar.jpeg foo.jpeg
% cd ../
% pwd
/home/oldpete
% ls
Documents Music Pictures
% cd Documents
% pwd
/home/oldpete/Documents
% ls
mybook.odf mypaper.html
% ls -l mypaper.html

The output of the last command is what we ultimately want to see.

Please give it a try.

Evo2.

It opened with peter@debian:(Squiggly line)$
pwd (enter)
/home/peter
peter@debian:(Squiggly line)$
It opens a selection of folder names and jpg image files but not the html I am after, worms html or worms doc. which seems to need Chromium web browser

I tried cd pictures. I tried pc documents, and then cdpitcures and cddocuments all entries said 'no command found'or 'no such file or directory'

The frown face is supposed to be a (

evo2 12-02-2013 12:34 AM

Hi,
Quote:

Originally Posted by Old Pete (Post 5073724)
It opened with peter@debian:(Squiggly line)$
pwd (enter)
/home/peter
peter@debian:(Squiggly line)$
It opens a selection of folder names and jpg image files but not the html I am after, worms html or worms doc. which seems to need Chromium web browser

Your file is probably in one of those folders.

Quote:

I tried cd pictures. I tried pc documents, and then cdpitcures and cddocuments all entries said 'no command found'or 'no such file or directory'
The directory and file names are case sensitive ie "Documents" is not the same as "documents". Use ls to see what folders are there, and then look in those folders.

Evo2.

evo2 12-02-2013 12:37 AM

Hi,

one more thing: if you want to show what commands you entered and what the output was you can copy and paste the text in the terminal emulator into LQ. Highlight the text with you mouse using the left button and then paste it into LQ in you web browser with the middle mouse button.

Evo2.

Old Pete 12-02-2013 02:11 AM

Quote:

Originally Posted by evo2 (Post 5073726)
Hi,

Your file is probably in one of those folders.


The directory and file names are case sensitive ie "Documents" is not the same as "documents". Use ls to see what folders are there, and then look in those folders.

Evo2.

Do I put in cd Documents? This do not seem to work and says no such file or folder, but it is on the page.


ls did open files, one of which was Documents.

Don't let me drive you mad with this, please. How fast is a 75 year old brain...I'll tell ya' next week.

evo2 12-02-2013 02:18 AM

Hi,
Quote:

Originally Posted by Old Pete (Post 5073753)
Do I put in cd Documents?

Yes.

Quote:

This do not seem to work and says no such file or folder, but it is on the page.
You must have made a typo. Please try again. Using "tab completion" as I described earlier will minimize the chance of making such typos.

Quote:

ls did open files, one of which was Documents.
That's good.

Quote:

Don't let me drive you mad with this, please. How fast is a 75 year old brain...I'll tell ya' next week.
No problem.

Cheers,

Evo2.

Old Pete 12-02-2013 02:27 AM

Quote:

Originally Posted by evo2 (Post 5073727)
Hi,

one more thing: if you want to show what commands you entered and what the output was you can copy and paste the text in the terminal emulator into LQ. Highlight the text with you mouse using the left button and then paste it into LQ in you web browser with the middle mouse button.

Evo2.


Whoa! There hoss!!!!!!

Old Pete 12-02-2013 02:31 AM

Quote:

Originally Posted by evo2 (Post 5073758)
Hi,

Yes.


You must have made a typo. Please try again. Using "tab completion" as I described earlier will minimize the chance of making such typos.


That's good.


No problem.

Cheers,

Evo2.

I got 'bash:cd documents: 'no such file or directory'

Ifn' they is gunna start bashing folks, I' gunna get some back up. It gets worse after my next drink.

yancek 12-02-2013 08:37 AM

Quote:

I got 'bash:cd documents: 'no such file or directory'
If you do from a terminal: ls /home/pete/
and see Documents, Downloads and whatever other directories, you should be able to change to those directories with the command suggested. As mentioned above, case-sensitivity, so cd documents won't work because it is: cd Documents (upper-case D). The same would be true with Downloads, need an upper-case D.

grail 12-02-2013 08:39 AM

Maybe try:
Code:

% ls -1
That is a hyphen and a one not the letter 'l'.

This will list each item on its own line which will make it clear if you are looking for a folder called "Documents" or "My Documents".

Also your last post indicates that you used a lower case 'd' which, as pointed out previously, will not match "Documents"

As another alternative, I presume you know the name of the file you created in Writer? So you could try:
Code:

% find -name 'your_file.html'
The output from the above command should tell you where the file is located

Note: As with Evo2's previous examples, the percentage sign (%) at the start of the commands above is not to be typed, it simply a prompt example, ie. yours may be the dollar sign ($)

Old Pete 12-02-2013 03:38 PM

Quote:

Originally Posted by grail (Post 5073908)
Maybe try:
Code:

% ls -1
That is a hyphen and a one not the letter 'l'.

This will list each item on its own line which will make it clear if you are looking for a folder called "Documents" or "My Documents".

Also your last post indicates that you used a lower case 'd' which, as pointed out previously, will not match "Documents"

As another alternative, I presume you know the name of the file you created in Writer? So you could try:
Code:

% find -name 'your_file.html'
The output from the above command should tell you where the file is located

Note: As with Evo2's previous examples, the percentage sign (%) at the start of the commands above is not to be typed, it simply a prompt example, ie. yours may be the dollar sign ($)

I tried Worms. odt - OpenOffice.org Writer Result: Command not found. I then tried without odt same answer. Worms Document is there but if I open it it comes up very small and unreadable. Once it came up as the original html but I could not access it, and now I can't even get that page back up. I have printed out what I had written so far (It is about Intestinal parasites in animals in Australia)

I could get a normal OpenOffice Write page by deleting they typing from another document and using that space, As this shrunken page thingo is there when I open a new file.

Old Pete 12-02-2013 06:16 PM

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0049)file:///home/peter/Desktop/Documents/Worms.%20odt -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.2 (Linux)">
<meta name="AUTHOR" content="Peter Rake">
<meta name="CREATED" content="20131201;9011700">
<meta name="CHANGEDBY" content="Peter Rake">
<meta name="CHANGED" content="20131201;9361200">
<style type="text/css">
<!--
@page { margin-left: 3cm; margin-right: 2cm }
-->
</style>
</head>
<body lang="en-AU" dir="LTR">
<p>
</p>
<p style="margin-left: 1cm; margin-right: 1cm; text-indent: 1.4cm; margin-top: 0.2cm">
<font size="4">From the time man was given dominion over all the
animals of the earth, he took this gift but did not keep the other
side of the bargain. The animal husbandry that should have been
applied to the animals under his care was soon discarded in the face
of profit.</font></p>
<p style="margin-left: 1cm; margin-right: 1cm; text-indent: 1.4cm; margin-top: 0.2cm">
<font size="4">Mankind became a meat eater, the earth's temperature had
changed and warm clothes were required, both these items came from
the animals. So began the profiteering, which brought the massive
herds of animals to cater for the market as the worlds population
grew and grew.</font></p>
<p style="margin-left: 1cm; margin-right: 1cm; text-indent: 1.4cm; margin-top: 0.2cm">
<font size="4">In the early days, when nomadic tribes herded goats and
sheep around the arid countryside of the middle-east, foraging for

I opened this by using the Zoom icon, but how do I change it to OpenOffice odt or other editable page.


All times are GMT -5. The time now is 02:50 AM.