Amiga.org

Coffee House => Coffee House Boards => CH / Science and Technology => Topic started by: motorollin on February 15, 2009, 10:38:35 AM

Title: Installing older versions of things in Linux
Post by: motorollin on February 15, 2009, 10:38:35 AM
This is driving me mad. There is a bug in the version of VLC which gets installed if I apt-get install vlc. So I want to install an older version. How do I do that if apt has already decided to install a particular version?
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 15, 2009, 03:00:24 PM
I've browsed a little on the page, and I think there's a chance you'll have to compile it yourself (which is not too difficult to do)
This is what I found (http://download.videolan.org/pub/videolan/vlc/)
IIRC if you use Apt, you use a Debian distribution (like Ubuntu). .deb files are installers for these kind of distros.
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 15, 2009, 03:10:35 PM
Cheers Speel. I'll download the source and try to compile it. This is on my EFIKA, so it will probably take some time!
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 15, 2009, 05:52:30 PM
Success! :-)
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 15, 2009, 07:04:29 PM
Quote
Speelgoedmannetje wrote:
Success! :-)

Not quite. Couldn't compile VLC as configure told me that the C compiler couldn't create executables. I Googled the error and apparently I need libc-dev. Tried to install it, and apt-get gave me a 404 error for the package.

Problems like this are exactly why I stopped using Linux :roll:
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 15, 2009, 07:27:35 PM
Quote

motorollin wrote:
Quote
Speelgoedmannetje wrote:
Success! :-)

Not quite. Couldn't compile VLC as configure told me that the C compiler couldn't create executables. I Googled the error and apparently I need libc-dev. Tried to install it, and apt-get gave me a 404 error for the package.

Problems like this are exactly why I stopped using Linux :roll:
Linux just isn't user friendly and I don't think it'll ever be, when you want to do something more than the default package contains. Linux is made for server applications, you just feel it when you use it that way, it then blows any other OS miles away. When I use XBMC I also notice that it's really intended for media usage, you can notice that because it works like you want it to work in every tiny detail.

But then again, there's XBMC for linux.
Maybe you can use that instead of VLC. :idea:
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 17, 2009, 01:25:21 PM
Quote
Speelgoedmannetje wrote:
Linux just isn't user friendly and I don't think it'll ever be, when you want to do something more than the default package contains.

The most friendly Linux I have every used is Ubuntu. Sadly I don't think it will work on the EFIKA :-(

Quote
Speelgoedmannetje wrote:
But then again, there's XBMC for linux.
Maybe you can use that instead of VLC. :idea:

Maybe, but since I only want to use it to display a slideshow (in Quicktime format) XMBC seems a bit overkill.
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 17, 2009, 02:22:32 PM
Quote

motorollin wrote:
 XMBC seems a bit overkill.

It is:

Quote
XBMC Media Center software requires that your computer graphics hardware supports OpenGL 1.4, at a minimum, to function. We do however recommend a ATI/AMD, Intel, or NVIDIA graphic controller that support OpenGL 2.0 or better to fully experience XBMC Media Center at its best. Please also check your graphics device drivers to see what version of OpenGL your GPU (graphics processing unit) harware supports, and update to the latest graphics device drivers if possible. If your platform of choice is Mac OS X and your system has an Intel chipset (Mac Mini, MacBook or a MacBook Air), then even though the graphics device drivers only support OpenGL 1.2, XBMC Media Center will still run smoothly since most of the required functionality in the graphics device drivers is implemented through OpenGL extensions which are support in those graphics device drivers on Mac OS X.

    * ATI Radeon R420 (X800) or newer supported, ATI Radeon R700 (HD 4000) or newer recommended.
    * Intel GMA 950 (945G) or newer supported, Intel GMA X4500HD (G45) or newer recommended.
    * NVIDIA GeForce 6-Series and newer supported, GeForce 8-Series and newer recommended.


But I do think for such applications as showing Quicktime slideshows, you need something more common than a EFIKA distro
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 17, 2009, 04:09:57 PM
Quote
Speelgoedmannetje wrote:
But I do think for such applications as showing Quicktime slideshows, you need something more common than a EFIKA distro

Well, it is Debian Etch. Should be ok for playing Quicktime files shouldn't it? :-?
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 17, 2009, 04:22:11 PM
Hmm, just found a boot image for an Ubuntu netinstall on the EFIKA. It's booting now so we'll see if this works any better!
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 17, 2009, 04:28:55 PM
Ok, this bootloader seems to work. It's downloading the base installer components now. Hopefully Ubuntu will work better than Debian on this machine and the version of VLC it comes with will work properly. In case anyone is interested, the bootloaders can be found here:

http://genesi.hu/ubuntu/gutsyefika_netinst
http://esi.hu/ubuntu/efi804_netinst

I haven't tried 8.04 yet. I'm giving Gutsy Gibbon a try first.
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 18, 2009, 05:56:57 PM
Ok, the Ubuntu installation has completed, but USB doesn't work. While it's starting up I get lots of messages that USB devices are being detected, but none of them work. I also get a few of the following messages:

FATAL : could not load /lib/modules/2.6.22-14-powerpc/modules.dep: no such file or directory

Could that stop USB from working? I have a modules.dep file (amongst other things) in /lib/modules/2.6.22-16-powerpc. Can I tell the kernel to use that instead?
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 18, 2009, 06:36:45 PM
Quote

motorollin wrote:
Could that stop USB from working? I have a modules.dep file (amongst other things) in /lib/modules/2.6.22-16-powerpc. Can I tell the kernel to use that instead?
Yes, but I fear you have to recompile the kernel.
Or you could -very illegaly- change the dirname, I don't think there are much consequences to that.

This is one of the reasons why I think the os should have a change. It's way too rigid. A relational database file system would be much nicer.
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 18, 2009, 07:01:39 PM
Quote
Speelgoedmannetje wrote:
Quote
motorollin wrote:
Could that stop USB from working? I have a modules.dep file (amongst other things) in /lib/modules/2.6.22-16-powerpc. Can I tell the kernel to use that instead?
Yes, but I fear you have to recompile the kernel.

Probably not possible, since I can't boot to anything except the netinstall environment.

Quote
Speelgoedmannetje wrote:
Or you could -very illegaly- change the dirname, I don't think there are much consequences to that.

Ok I did that and the errors about modules.dep went away. But still no USB :-(

Quote
Speelgoedmannetje wrote:
This is one of the reasons why I think the os should have a change. It's way too rigid. A relational database file system would be much nicer.

I don't really understand that but I'm sure you're right ;-)
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 18, 2009, 07:10:50 PM
Quote

motorollin wrote:

Quote
Speelgoedmannetje wrote:
This is one of the reasons why I think the os should have a change. It's way too rigid. A relational database file system would be much nicer.

I don't really understand that but I'm sure you're right ;-)
Well, the current filesystem structure is hierarchy based, which means there's one way to access a file. With a relational filesystem there would be more.
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 18, 2009, 07:12:28 PM
Quote

motorollin wrote:
Probably not possible, since I can't boot to anything except the netinstall environment.
It's always possible, of course, but you might be needing to flash things using a serial port.
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 18, 2009, 07:13:49 PM
Quote

motorollin wrote:

Quote
Speelgoedmannetje wrote:
Or you could -very illegaly- change the dirname, I don't think there are much consequences to that.

Ok I did that and the errors about modules.dep went away. But still no USB :-()
And you can't find a log or something like that anywhere?
I can't help you much this way...
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 18, 2009, 07:35:29 PM
Quote
Speelgoedmannetje wrote:
Well, the current filesystem structure is hierarchy based, which means there's one way to access a file. With a relational filesystem there would be more.

Do you mean it could check the database for the location of modules.dep and find it regardless of which directory it's in?
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 18, 2009, 07:37:45 PM
Quote
Speelgoedmannetje wrote:
Quote
motorollin wrote:
Ok I did that and the errors about modules.dep went away. But still no USB :-()
And you can't find a log or something like that anywhere?
I can't help you much this way...

Maybe, but I wouldn't know where to look. My knowledge of Linux was never great, and is really rusty now.

However, I actually got the Ubuntu 8.04 netinstall image to boot whereas it just hung before, so I'll try this and see if USB works.
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 18, 2009, 07:55:26 PM
Quote

motorollin wrote:
Quote
Speelgoedmannetje wrote:
Well, the current filesystem structure is hierarchy based, which means there's one way to access a file. With a relational filesystem there would be more.

Do you mean it could check the database for the location of modules.dep and find it regardless of which directory it's in?
You wouldn't be needing directories anymore.
You could also have one file having in multiple 'directories'
I mean, we have music libraries with musician, composer, time of performance/composition, we have libraries of videos (with director, soundtrack etc.), we have games... everything is data and the concept of relational data is to keep data integrity, and thereby, referential integrity.
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 19, 2009, 09:20:55 AM
Ok, Ubuntu 8.04 gives me USB support, but no vfat in the kernel :pissed: Tried to 'modprobe vfat' and got a similar error about modules.dep being missing, but this time in a directory in /lib/modules which didn't even exist! Created a symlink to an existing directory and rebooted. This time 'modprobe vfat' gave me an error of 'invalid module format'.

This is becoming way too much effort now...

Edit - networking doesn't work either :madashell:
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 19, 2009, 09:42:34 AM
Quote

motorollin wrote:
This is becoming way too much effort now...
You should have known beforehand.

Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 19, 2009, 10:10:15 AM
Yes I should... I've posted on PowerDeveloper as it seems some others had problems with networking on the EFIKA.
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 20, 2009, 07:29:46 PM
Well, it turns out the errors regarding modules.dep were related to the problems with vfat and networking support. Peter Czanik suggested in this thread (http://www.powerdeveloper.org/forums/viewtopic.php?t=1679) that I make a new boot image using mkvmlinuz. I did that and it's all working now :banana:

I haven't installed VLC yet... I daren't try until tomorrow :lol:
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 20, 2009, 10:38:37 PM
Well, I installed VLC and have the same problem in Ubuntu as I had in Debian :lol:
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 20, 2009, 11:20:38 PM
Quote

motorollin wrote:
Well, it turns out the errors regarding modules.dep were related to the problems with vfat and networking support. Peter Czanik suggested in this thread (http://www.powerdeveloper.org/forums/viewtopic.php?t=1679) that I make a new boot image using mkvmlinuz. I did that and it's all working now :banana:

I haven't installed VLC yet... I daren't try until tomorrow :lol:
Nice1 :-)
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 20, 2009, 11:22:49 PM
Quote

motorollin wrote:
Well, I installed VLC and have the same problem in Ubuntu as I had in Debian :lol:
Oh, still the libc-dev error?
libc-dev seems to me *quite* a common library, so I wonder if it's not something else that has the hickup.
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 21, 2009, 07:17:31 AM
Actually I haven't tried compiling it yet. I just installed it with apt, and hoped that the version in the Ubuntu repository would work since Ubuntu seems to be a more polished distro. Sadly, exactly the same problem.

I'll try installing gcc and compiling VLC later on and let you know how I get on.
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 24, 2009, 08:41:57 PM
Ok, under Ubuntu 8.04 libc-dev installed without any problems. VLC is now configuring. Fingers crossed!
Title: Re: Installing older versions of things in Linux
Post by: motorollin on February 24, 2009, 09:09:54 PM
Ugh, it's whinging about a missing header for ffmpeg now. Installing ffmpeg doesn't help, and there's no such package as ffmpeg-dev. I give up!
Title: Re: Installing older versions of things in Linux
Post by: Speelgoedmannetje on February 24, 2009, 10:06:29 PM
just look for the source of ffmpeg
decoding sources should be the least of your worries.
If you have a kernel and a GUI up and running, with sound and graphic drivers working, there's very little chance of failing.
Can't you just get a dependancy hierarchy list? Saves you alot hassle of this missing that etc.
Title: Re: Installing older versions of things in Linux
Post by: motorollin on March 28, 2009, 04:13:12 PM
Well I decided to get my arse in gear and write my own slideshow app to precisely meet my needs. I'm using SDL, and have got the app to the point where it can scan a directory, randomly select an image, scale it to the correct resolution, centre it and display it, then start again.

I'm having a problem where after a while the app quits with either "Segmentation fault" or "Killed". I changed the app to display the images always in the same order and got it to log to the console which files it has displayed. Each time I ran it, it always died on the same file. I then deleted five images which were displayed before the one where it died, and the next time it got five images further on. So it seems to be that after it has displayed a certain number of files it can't carry on.

I'm guessing therefore that this is a memory problem. My main loop basically loads the image to an SDL_Surface, uses SDL_gfx's rotozoomSurface() to scale the image, clears the screen, applies the surface to the screen, flips, then waits a few seconds before looping. Do I need to free the surface before looping?
Title: Re: Installing older versions of things in Linux
Post by: motorollin on March 28, 2009, 04:43:49 PM
Ok, I added SDL_FreeSurface(background) to the top of the loop just before it loads the next image and it seems to be fixed now. It has continued way past the point at which it died before, so hopefully it's ok now :-D
Title: Re: Installing older versions of things in Linux
Post by: motorollin on March 28, 2009, 06:55:30 PM
Looks like I spoke too soon - it just segfaulted again :-x
Title: Re: Installing older versions of things in Linux
Post by: bloodline on March 29, 2009, 06:05:55 PM
Develop your App in Xcode, and use GDB to bug hunt... once it works... then compile it for Linux :-)
Title: Re: Installing older versions of things in Linux
Post by: motorollin on March 29, 2009, 06:20:46 PM
I tried to set up SDL in Xcode once and it was a disaster. Anyway, too late: I fixed it (http://www.codeguru.com/forum/showthread.php?p=1827428) :-)