LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2011, 07:37 AM   #16
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181

Quote:
Originally Posted by Emegra View Post
regarding the RPM thing is there a tool in the software centre that will allow me to install RPM files directly without any compiling etc ?,
I don't know what is in software centre, but I doubt it.

That post I pointed you to earlier says:
Quote:
1. Downloaded XnView-static-fc4.i386.rpm from the xnview website.
2. Installed Alien through the software center
3. Then went to the Terminal and typed:
sudo alien -i XnView-static-fc4.i386.rpm
4. Voila! It's installed in Applications > Graphics > XnView
That looks pretty clear to me. I expect the name of XnView....rpm may have changed since that was posted. But that will be obvious when you download it, and should be obvious in step 3 that you use the name of the file you downloaded. To a real beginner, it might not be obvious you need to either cd to the directory containing that file, or use the full path with the file name.

That command sudo alien -i does the install. No compile is needed (unlike installing from a typical .tar.gz file), just installation from a .rpm instead of from a .deb

Since we now know you are using 32 bit Ubuntu, there is no complication from XnView being 32 bit. (In your output from uname it said i686 i686 i386. On a 64 bit Linux it would have said x86_64 x86_64 x86_64)

Quote:
Originally Posted by Emegra View Post
regarding media companion it looks like I couldn't have chosen a more difficult example so it looks like I'll have to give up on that until at least I have a better fundamental understanding of source code & compiling etc if I ever do
Installing from that C# source code would be totally different from the typical methods of installing from source code from a .tar.gz file. But different doesn't imply difficult. I expect it would be trivial for someone with even a minimal knowledge of mono. LQ has lots of helpful experts. If you mention C# and mono in the title of a thread (to get the attention of the right experts) and ask how to install that specific .tar.gz file (provide a url and/or provide a list of the files that were unpacked from the .tar.gz) I'm pretty sure someone would give you simple instructions.

Last edited by johnsfine; 10-01-2011 at 07:50 AM.
 
Old 10-01-2011, 08:46 AM   #17
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Thanks johnsfine I admire your patience with me, anyway I had already installed alien but couldn't get it to install but your instructions were spot on and everything seemed to install ok, however now I've instaled it something still isn't right although XnView is listed in applications/Graphics it seems to be only partly installed when I open it and click open file it quickly flashes on the screen then disappears also if I right click an image file to select an application to open it XnView isnt listed as an option nor is it listed if I chose chose other application, I'm not sure whether it's just a bad install or I've done something wrong, I've copied the terminal window for you to have a look at hopefully t may tell you something

Thanks again for your patience


Emegra
 
Old 10-01-2011, 09:11 AM   #18
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by Emegra View Post
your instructions were spot on
I just quoted the instructions that were in the thread in another forum that I had posted a URL for earlier. I've never tried alien myself.

Quote:
XnView is listed in applications/Graphics it seems to be only partly installed
That is unfortunately true for most general purpose tools in Unix.

The tool just structures the activity it is for. It doesn't really do the work. Instead it delegates (at least some of) the actual work to various more specific tools. A less general tool would have a package that specifies which other packages it depends on, so the package manager would know what else you need to install to make this package work.

In this case, I would guess there are tools specific to each file format. Since there are so many file formats and the developers of XnView don't know which formats you will use, it doesn't make sense for the package to specify that all those file formats are required before XnView. But since the XnView package doesn't specify that, you need to somehow know what packages to install for the file formats you want.

I'm just guessing the issues are file formats and the generality of XnView. It could be some imperfection in alien. Either way, your intended use of XnView requires that you install some other packages in addition to XnView. The main trick is figuring out which packages, and then for video file format packages there is a significant chance they are in a repository that is disable by default in software centre. Not having used software centre, I can't tell you how to find and enable such repositories (I'm sure any experience Ubuntu user could).

Quote:
if I right click an image file to select an application to open it XnView isnt listed as an option nor is it listed if I chose chose other application,
File browser right click is generally less well supported in Linux than in windows. The installer for a Windows app can usually be expected to set up the file browser right click association. The installer for a Linux app usually doesn't.

I don't know what file browser you are using. I know Ubuntu 11.04 supports several file browsers and I don't even know which is the default. But anyway, I don't know much about setting up right click associations in any Linux file browser. That is another one for which you should ask a different expert.

Quote:
I've copied the terminal window for you to have a look at hopefully t may tell you something
I don't see any copy of a terminal window in your post. But I assume you mean the terminal Window from use of Alien. I doubt that would tell me anything.

Last edited by johnsfine; 10-01-2011 at 09:14 AM.
 
Old 10-01-2011, 11:13 AM   #19
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Thanks again Johnsfine

I'll have to read over your last post a few times to fully understand I do understand that trying to explain something like this to someone with such a weak fundamental understanding as I do can't be easy and I appreciate your patience,

From what I've read so far (if I understand rightly) it seems to me in order make XnView work (or perhaps any other program using the rpm format) I would need to install some other package or packages which may or may not be in the synaptic repository and I have to guess what they are as the developers of XnView dont say.

To be honest XnView isn't really that important to me I know there are other applications in the software centre that would probably work just as well maybe even better than XnView but it seems crazy to me that something that is so fundamentally simple in windows can be so complicated and difficult in Linux

Sorry about the terminal commands I must have omitted to paste them in I appreciate it probably wont tell you anything but here t is anyway

graeme@Emegra:~$ cd /home/graeme/Downloads
graeme@Emegra:~/Downloads$ sudo alien -i XnView-static-fc4.i386.rpm
dpkg --no-force-overwrite -i xnview_1.70-2_i386.deb
Selecting previously deselected package xnview.
(Reading database ... 187170 files and directories currently installed.)
Unpacking xnview (from xnview_1.70-2_i386.deb) ...
Setting up xnview (1.70-2) ...
Processing triggers for man-db ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for python-support ...
graeme@Emegra:~/Downloads$


Many Thanks

Emegra
 
Old 10-01-2011, 11:24 AM   #20
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,061

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by Emegra View Post
...From what I've read so far (if I understand rightly) it seems to me in order make XnView work (or perhaps any other program using the rpm format) I would need to install some other package or packages which may or may not be in the synaptic repository and I have to guess what they are as the developers of XnView dont say.

To be honest XnView isn't really that important to me I know there are other applications in the software centre that would probably work just as well maybe even better than XnView but it seems crazy to me that something that is so fundamentally simple in windows can be so complicated and difficult in Linux...
rpm's are difficult to install in windows as well <@.

Last edited by schneidz; 10-01-2011 at 11:25 AM.
 
Old 10-01-2011, 12:39 PM   #21
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
rpm's are difficult to install in windows as well <@.
Hi Schneidz
Pleae dont think I was knocking Linux I'm not I know I have a lot to learn and the problem is more my lack of knowledge than the softweare but to be honest I've never come across RPM's in windows and I never had any problems installing XnView or Media Companion in windows or any other software for that matter I get the impression there's something I'm not fundamentally understanding about Linux and I suppose thats what intrigues me


Emegra
 
Old 10-01-2011, 01:04 PM   #22
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Please start xnview from the commandline and post the error-messages you get here. Please use code-tags for posting that information here.
 
Old 10-01-2011, 10:46 PM   #23
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by Emegra View Post
From what I've read so far (if I understand rightly) it seems to me in order make XnView work (or perhaps any other program using the rpm format) I would need to install some other package or packages which may or may not be in the synaptic repository and I have to guess what they are as the developers of XnView dont say.
That was my guess based on the symptoms you described before.

But I downloaded XnView onto my 64-bit Mepis system on which the alien install method didn't work, but I manually pulled out the XnView executable to see what else it needs and it seems to be unusually self contained for a Linux app. I opened it and told it to open a .png file and the a .gif file and both worked fine.

Quote:
Originally Posted by Emegra View Post
when I open it and click open file it quickly flashes on the screen then disappears
Now that I've tried XnView myself, that sounds like a much stranger symptom than I initially guessed.

Quote:
Originally Posted by TobiSGD View Post
Please start xnview from the commandline and post the error-messages you get here.
That is definitely one of the things worth trying when a program started from a GUI menu disappears. By starting from a terminal window, you provide an extra chance for the program to deliver a meaningful error message.

Last edited by johnsfine; 10-01-2011 at 10:51 PM.
 
Old 10-02-2011, 04:26 AM   #24
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Please start xnview from the commandline and post the error-messages you get here. Please use code-tags for posting that information here.
Hi TobiSGD thanks for your advice could you please tell me how I start a program from the command line and what code-tags are

Thanks

Emegra
 
Old 10-02-2011, 07:16 AM   #25
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by Emegra View Post
how I start a program from the command line
Open a terminal window and type the name of the executable, which is XnView

(The installer put XnView in /usr/bin, which is part of your path, so you only need the executable name. If an executable were installed in some directory not in your path, you would need to type the full path and name.)

The GUI app will then start. Try using that. When/if it disappears, look back at the terminal window it was started from and see if it put any error messages there.

Quote:
what code-tags are
Immediately above the area for typing posts, second icon from the right, looks a bit like a #. You can select some text in your post and press that control and it will wrap the selected text in code tags. Or you could press the control to insert the start and end code tags, then insert the text in between them. Or you can type the code tags yourself with the text between them.

Text between the start and end code tags will be formatted different. That format should be used when quoting text from a terminal window or source code, etc.

Last edited by johnsfine; 10-02-2011 at 07:24 AM.
 
1 members found this post helpful.
Old 10-02-2011, 04:26 PM   #26
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Hi Johnsfine I did as you suggested and heres the result
Code:
[WARNING] Out of unassigned VK codes, assigning $FF
graeme@Emegra:~$ xnview
** XnView v1.70 Copyright 1991-2005 Pierre-E Gougelet (Sep  6 2005/15:28:24) **
        Version for Linux x86/Motif (All rights reserved)
** This is freeware software (for non commercial use)

     Type xnview -help, for more information
Warning: Cannot convert string "-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-o-normal-*-*-140-75-75-*-*-*-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-o-normal-*-12-*-*-*-*-*-iso8859-1" to type FontStruct
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  45 (X_OpenFont)
  Serial number of failed request:  3783
  Current serial number in output stream:  3801
graeme@Emegra:~$
Thanks again
Emegra
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help with installing software scagman Linux - Software 2 05-05-2005 05:43 PM
Installing Software????? add7 Linux - Newbie 1 11-23-2004 06:07 AM
Installing software JoQ18 Linux - Newbie 1 10-24-2004 06:20 PM
installing software verynew Linux - Newbie 2 05-21-2002 06:02 AM
Question on installing software and starting software rootlinux Linux - Newbie 5 01-19-2002 10:40 AM


All times are GMT -5. The time now is 03:12 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration