LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How do I update Gtk-gnutella? (https://www.linuxquestions.org/questions/ubuntu-63/how-do-i-update-gtk-gnutella-532908/)

AdrianDownUnder 02-27-2007 08:35 AM

How do I update Gtk-gnutella?
 
How do I update Gtk-gnutella?
I have version 0.96.1 and gnutella says that it thinks the version I have is VERY old and I should update. Version 0.96.3 is available. I ran "sudo apt-get update" which ran nicely and "sudo apt-get install gtk-gnutella", which said I already have the latest version installed.

I would download the file from: http://sourceforge.net/project/showf...ease_id=462376
But I don't really know which file to download (there are three) or what to do with it if I did. :-) I tried doing this with SeaMonkey and just ended up going around in circles. Being a long time dos/dowz user, I am struggling a bit I have to admit.

This question will help me with other programs I need to install/update in the future, which are not in the Synaptic package manager. I have googled the install question, but found nothing I could use.

And have spent quite a bit of time trying to figure this out myself before I posted, but I am rather a newbie with Linux so any help will be greatly appreciated. Thanks for your time.
-Adrian

PS.
Asus AN7266-VM mobo 384Mb ram, TNT2 32Mb graphics card. Various hd's.
Not sure if this will help, but just in case, here is my sources.list:

## Uncomment the following two lines to fetch updated software from the network
deb http://archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted

## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu dapper universe
deb-src http://archive.ubuntu.com/ubuntu dapper universe

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe

deb http://archive.ubuntu.com/ubuntu dapper multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper multiverse

deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu dapper-commercial main

Hitboxx 02-27-2007 12:46 PM

What about 'sudo apt-get update gtk-gnutella'?

AdrianDownUnder 02-27-2007 06:27 PM

Hi shrikant.odugoudar
Quote:
"What about 'sudo apt-get update gtk-gnutella'?"

Thanks for your reply, I will give that a go first.
Latter: Well I did try that and I got the message:
'The update command takes no arguments' and come to think of it I did try that the first time round with the same resualt.

But I admit it, I'm an idiot! :-) because after not much more searching I found this page:
http://www.psychocats.net/ubuntu/sources
and this page:
https://help.ubuntu.com/community/UbuntuBackports

Both look very promising, and I think I can take it from here. So I guess this issue can tagged as resolved. Thanks again for your help.
-Adrian

AdrianDownUnder 02-28-2007 09:18 AM

Well maybe not because I'm stuck. It's taken me more than three days to not be able to do what I could have done in dowz in about fifteen minuets, including search and download time; Update a program. It's no wonder dowz users stay away from Linux in droves. A five hundred meter sprint carrying a bag of cement would be easier than this, and definitely quicker. :-) It's not that I have any problem about using command lines, I don't. It's just that some of this stuff is about as clear as mud.

Like, what does "Run from the top of the source tree: $ fakeroot debian/rules binary" actually mean? It *would* be simple if the instructions were a little less cryptic. It's like "if you don't already know this stuff, you just have to suffer like we did to find out" Imo that is a very elitist attitude.

Anyway, enough bitching (Sorry about that but I feel better already! :-) ).

I really am stuck at step 2 below. I have no idea what to do to complete this step.

I was following the instructions on:
Installing from source, on this page:
http://www.psychocats.net/ubuntu/installingsoftware
and I got as far as installing a meta-package called build-essential, but the next step stooped me because it was for .gz not .bz2 files. Just changing it to "bz2" at the end of the command "tar -xvzf gtk-gnutella-0.96.3.tar.bz2" generated this error notice:

adrian@A7N266-VM:~$ tar -xvzf /home/adrian/Desktop/gtk-gnutella-0.96.3.tar.bz2

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
adrian@A7N266-VM:~$

Would some kind person post a link to a page I could read to get a handle on this stuff please?

Thanks for your time and effort, I really do appreciate it.
Remain in light.
-Adrian



Supplementary Compile Instructions for Debian-based Systems
===========================================================

Unfortunately, many people have trouble compiling Gtk-Gnutella on Linux distributions albeit it should be very simple. The following applies to Debian-based system that is also Ubuntu.


1. Dependencies:
================

You'll have to install the following packages:

apt-get install gcc # GCC; any version is fine
apt-get install make # the make tool; any version is fine
apt-get install zlib1g-dev # zlib
apt-get install libxml2-dev # libxml 2.x
apt-get install libgnutls-dev # GNU TLS

For the Gtk+ 2.x front-end you'll need these:

apt-get install libglib2.0-dev # GLib 2.x
apt-get install libgtk2.0-dev # Gtk+ 2.x

If you want to use the Gtk+ 1.2 front-end instead:

apt-get install libglib1.2-dev # GLib 1.2
apt-get install libgtk1.2-dev # Gtk+ 1.2

The following packages are optional:

apt-get install libsqlite3-dev # SQLite 3.x
apt-get install libdbus-1-dev # D-Bus


2. Build:
=========

Run from the top of the source tree:

$ fakeroot debian/rules binary

and it will build the .deb package for you in the parent directory.


3. Finish:
==========

You can then run Gtk-Gnutella without installing:

$ src/gtk-gnutella

To install Gtk-Gnutella just run (version and architecture will vary):

$ cd ..
$ su
# dpkg --install gtk-gnutella_0.96.2-0_i386.deb

For further compile options and instructions, see the README file and edit the debian/rules file to change the line calling "Configure" to suit your taste.

$Id: README.Debian 12207 2006-11-03 22:05:36Z rmanfredi $

rickh 02-28-2007 11:02 AM

I think you are making a mountain from a molehill here.

First, since you are using Ubuntu, trying to follow Debian instructions can cause problems. They are not the same.

Second, what version is available from your repositories ($ apt-cache policy gtk-gnutella) ?

Third, as a raw newbie, you should be trying to avoid building relatively sophisticated packages like this one from source. Its not particularly complicated, but it really helps to have someone looking over your shoulder. If you are determined to do so, Here's a nice beginner tutorial.

Fourth, You say Gnutella thinks it's old, so you want to upgrade. Does it work? Warning messages are not the end of the world. If it works fine but gives a warning message, you might just want to live with it.

Fifth, Did you look for help on the Ubuntu forums?

AdrianDownUnder 03-01-2007 02:45 AM

Hi Rick, thanks for your reply.
>Rickh wrote:<
>I think you are making a mountain from a molehill here.<

You are probably right there Rick. It's just frustrating for someone like me not to be able to work out how to do something that should be so simple, even after days and days of trying. I know I will get it if I can just find the right things to read.


>First, since you are using Ubuntu, trying to follow Debian instructions can cause problems. They are not
the same.<

In the compile instructions it says: "The following applies to Debian-based system that is also Ubuntu." So I thought I was doing the right thing following them. You live and learn, hopefully. :-)



>Second, what version is available from your repositories ($ apt-cache policy gtk-gnutella)?<

It's the one installed, 0.96.1, which is two versions behind the current version.

adrian@A7N266-VM:~$ apt-cache policy gtk-gnutella
gtk-gnutella:
Installed: 0.96.1-0ubuntu1
Candidate: 0.96.1-0ubuntu1
Version table:
*** 0.96.1-0ubuntu1 0
500 http://archive.ubuntu.com dapper/universe Packages
100 /var/lib/dpkg/status



>Third, as a raw newbie, you should be trying to avoid building relatively sophisticated packages like this one from source. Its not particularly complicated, but it really helps to have someone looking over your shoulder.<

I just wish that a. I didn't have to, and b. that there was someone *to* look over my shoulder. I am the only one around here that is into Linux enough to even try. I have lent my ubuntu CD to a few friends to install, so if they have any problems, they expect to be able to come to me to sort them out. I already do that for any dowz problems they have.


>If you are determined to do so, Here's a nice beginner tutorial.<

Hay thanks for that Rick. Just one question though. Like the other tutorial I was following, that page describes how to unpack a tar.gz, but not tar.bz2 file. How would I go about learning how to do that? Because that's where I got stuck the first time, before trying the Readme.Debian instructions.


>Fourth, You say Gnutella thinks it's old, so you want to upgrade. Does it work? Warning messages are not the end of the world. If it works fine but gives a warning message, you might just want to live with it.<

Well apparently clients are banned once they are more than 12 months old. So at some point I will have to anyway, and since 6.06 is around half that now, the tock is clicking! :-)


>Fifth, Did you look for help on the Ubuntu forums?<

I am ashamed to say I only had a quick look there. Before deciding that LinuxQuestions.org was my best bet. I should have looked harder and will in future.

Thanks again for your time and energy Rick.
Your encouragement really helps.
Remain in Linux! :-)
-Adrian

the_darkside_986 03-14-2007 11:14 PM

Gtk-gnutella, being open-source, makes me consider building and releasing a custom version that does not fail to launch because of some ancient version nonsense. I should make it so that it only displays a popup message and then allows the user to continue. I mean, I tried editing the config file that it told me to in the terminal but it keeps getting over written.

thefrankinator 03-19-2007 03:23 PM

I'm having the same problem: it seems that unbuntu haven't updated their universe repository yet. I'm hoping that they'll get onto it soon!

As for the .bz2 thing, *.bz2 is a compression format, similar but different to *.zip or *.gz. You'll need a suitable bz2 zip/unzip programme (e.g. bzip2: sudo apt-get install bzip2).

In any case, all you have to do is change the configuration file. Just try to run gtk-gnutella from the terminal, and it will print a long list of errors and complain about it being too old. It will also say that if you really want to run it, then change a certain variable (ancient_version_force) in the config file (it tells you both what to change it to and where the file is located). then it should run as before.

Hope this helps,
Frank.

Hope this helps!

lwaldron 03-23-2007 04:16 PM

There is a pretty simple way to get around this problem. Start gtk-gnutella from terminal window (by typing gtk-gnutella). Then look at the instructions it gives you for how to continue running the ancient version. For me, and probably all Dapper users, it goes like this:

gedit ~/.gtk-gnutella/config_gnet

Find the line that says:

#ancient_version_force = ""

and replace it with (making sure to get rid of the # at the start of the line):

ancient_version_force = "gtk-gnutella/0.96.1 (2006-02-22; GTK2; Linux i686)"

I'm not too worried about continuing to run the "ancient" version since it's still under the control of the package manager and will be automatically updated when the developers update it.

One other note. To uncompress a .bz2 file, the proper command is this (the bzip2 compression package is included by default I think):

tar -xvjf /home/adrian/Desktop/gtk-gnutella-0.96.3.tar.bz2

For a .gz file, you use tar -xvzf . Or you can always use your file manager to browse to the file, double-click on it, and it will open it for you in the archive manager, which can browse through it or unpack it for you.

AdrianDownUnder 03-25-2007 10:00 AM

Thanks Guys! (the_darkside_986, thefrankinator, lwaldron). That's all really helpful. I did get as far as unpacking it into a folder on my desktop and installing the dependencies. But really not much further. I never got past the fakeroot step. I tried man fakeroot, but nothing is listed.

As far as I can figure out, the Compile Instructions I quoted above end up with the program installed in some directory other than the one in which the original program is installed. Which means two instillations of basically the same program, Is that correct? I don't really have that much space to waste on my Linux drive.

Is there a Linux equivalent of the dowz "Program Files" folder? Because I can't find where my current version of gnutella is installed. Unless it's cryptically named.

The other question I have is how do you get the archive manager to let you unzip into the file system. It always tells me I don't appear to have the correct privileges.

I can live without this program or even with just having an old version, but I thought I could use it to learn how to compile programs in linux. I'm just not having much luck as yet.

All this makes self extracting exe files look really good! :-)

Thanks again for everyones help.
-Adrian

thefrankinator 03-26-2007 07:07 AM

I decided to bite the bullet and compile the new version: here's how I did it.

It's pretty simple to uninstall the old version, just go to synaptic and find gtk-gnutella and choose "mark for removal". That will delete the old binaries etc. but leave your config files and stuff in your home directory.

Unpack the source into your home directory somewhere (I'm hoping you can do that now). Then run the script Configure by typing "./Configure". This will ask you a long list of questions, most of which I answered the default to. When it asked for the compiler I had to answer gcc (the default was cc, which didn't work). Hopefully this will work and if it does will produce a Makefile.
Then run the command "make", which take several minutes to compile all the files. Finally, as root, run "make install". This will put all the binaries into the system directories.
Then, you're done!

As a side note, if you ever want to see where a particular program is installed, just type: whereis program-name
this will print a list of the location of the files associated with a particular command,
Frank.

the_darkside_986 03-26-2007 04:28 PM

You can find program files in /usr/lib/ or /usr/local/lib. They're in the different lib folders under /usr but I'm not sure where gtk-gnutella is.

Self-extracting exe's are nice... until after you realize that you downloaded it from an untrusted author (even at a trusted site perhaps) and your whole system is hijacked :P

I HATED the struggle of trying to find non-adware/spyware/malware Windows software for simple tasks. I love Ubuntu repos even if the software versions are outdated on Dapper.

lwaldron 03-27-2007 07:53 AM

If you compile from the developers' source it's a good idea to hold onto the source directory after installation, or at least hold on to the Makefile in that directory, so you can do "make uninstall" in that directory if you want to uninstall at some point in the future.

Another way you can compile from source is the "Debian Way", see the APT HOWTO. This way you use the Ubuntu source archives, so you may not get a newer version of the program. If you want to use many programs that are newer than what's in the stable version though, I think it would be easier just to upgrade your whole system to the testing version.

AdrianDownUnder 03-29-2007 08:57 AM

Wow! Thanks so much Everyone. I never expected anywhere near this much help. I was beginning to think a couple of weeks ago that the Linux crowd was a bit elitist. Then I was thinking, no that's not right. Not here anyway, because LQ is how I first found out about Ubuntu. Maybe it's just the program that I chose to learn how to compile, that people don't much like. You know, a file sharing program like gnutella may be an unpopular choice. I must say that I have never been so glad to be so wrong. :-)

It's definitely true that finding clean dowz programs on the web can be a real trial. Being a long time Mozilla user, I once tried a download accelerator called something like downloadzilla. It's comes with hidden spyware/addserver software which doesn't uninstall with the program. This is just too typical.

First I shall try the "ancient_version_force = "gtk-gnutella/0.96.1 (2006-02-22; GTK2; Linux i686)" work around. Then I shall try the "./Configure", "make" and "make install" (from root). I will also check out the "whereis program-name" command just to see how it works, and I will hang onto the Makefile so I can do a "make uninstall" at some stage.

After I get all this right, I shall move onto what I really want to do. Which is to compile the latest Seamonkey from source.

I would update to the latest version of Ubuntu, but I have had a bad run with CD burners lately. I don't suppose you can use a spare hard drive instead of a CD drive to put a disk image on to install Ubuntu?

Thanks again for all the help guys, it's much appreciated.

-Adrian

auxsvr 03-31-2007 06:40 PM

Maybe you should try mldonkey with the sancho java front-end, as it's being actively developed, has lots of features and supports almost all P2P networks. I've been using it for years without important problems. It's also easy to install, though I don't know whether it is in the ubuntu repositories.

In general, in the linux world you may need to install programs that your distribution doesn't offer in its repositories. It's not very difficult once you are accustomed to the procedure, in the beginning though you will probably need help from others. As time passes, more programs are added to the distributions and I hope it won't be long until installing programs will be as simple as selecting them from the package manager, which is much easier and less troublesome than the equivalent process in windows.


All times are GMT -5. The time now is 07:15 PM.