High drama!

This should go on the wiki!

On Sep 1, 2005, at 5:18 PM, Robin Bowes wrote:

Robin Bowes said the following on 01/09/2005 16:42:

CavesOfTQLT wrote:


Fabrice which version of Mandriva 10.2 did you use when you did your
test? I'm using the Limited Edition 3CD version, if this makes a
difference.

I've downloaded that version and will burn the CDs and install it in a couple of hours.
I'll let you know how I get on.


Ok, here's my installation report on Mandriva 10.2.

First, the high-level summary:

OK, to summarise the key steps:

1. slimserver does not work on Mandriva out-of-the-box
2. To make it work you need to run the build-perl-modules script in the slimserver/Bin directory
3. To be able to build the perl modules you need to install:

    perl-devel
    gcc-3.4.7
    binutils
    glibc-devel
    libbinutils
    libexpat0-devel

4. Once these modules are built, slimserver will run.
5. Make sure the necessary network ports are open on the firewall.

I ought to put this on the Wiki - a job for tomorrow.

And now the step-by-step detail of what I did.

1. Download 3 x ISOs
2. Burn 3 x CDs
3. Boot aging Compaq Deskpro Pentium II (128MB RAM, 4GB disk) from CD 1.
4. Hit Enter to install.
5. Error reading CD
6. Break open PC and move CDROM drive onto secondary channel
7. Boot again from CD 1
8. Hit Enter to install
9. Error reading CD
10. Burn another copy of CD 1
11. Boot from new CD 1
12. Error reading CD
13. Check CD 1 in another PC - booted OK
14. Replace CD drive with a spare
15. Boot from CD 1
16. Hit Enter to install
17. Yay, it's working.
18. Select Language - English (British)
19. Accept licence agreement
20. Select UK Keyboard
21. Selected High security level (default)
22. Chose to remove Windows (the PC had windows 98 on it)
23. (hard drive partitioned and filesystems created)
     /dev/hda1  1619MB  /
     /dev/hda5  ?       swap
     /dev/hda6  1092MB  /home
24. Yes, I've got all three disks.
25. No, I don't want to copy them to the hard drive
26. Select "No supplementary Installation Media"
27. Default package selection:
    - Office Workstation
    - Multimedia Station
    - Internet Station
    - Configuration
    - Console Tools
    - KDE Workstation
28. Added "Network Computer Server" (I want ssh).
29. Bah, default root filesystem is too small for all these options
30. De-selected "Office Workstation"
31. Yes, I'm sure I want to install those servers...
32. Right, down the pub while the installation chugs away...
33. Come back (hic) and put in CD 2
34. Put in CD 3
35. Set root password
36. Added myself as a user
37. Configured sounds card
38. Yes, I have an ISA sound card
39. Put in CD 1
40. "Run alsaconf or sndconfig after installation to configure your sound card"
41. Configure graphical interface
42. Chose graphics card, and Xorg with Hardware Accelaration
43. Chose monitor, resolution & colour depth
44. Tested configuration (it worked!)
45. Chose to boot into X
46. Chose to download updates
47. (not sure if anything happened?)
48. Congratulations! Installation complete
49. Rebooted
50. System came up cleanly into graphical mode
51. Firstboot wizard ran
52. Skipped survey
53. I don't want to join the Mandrake club!
54. Cancelled MandrakeOnline wizard.
55. Logged in as robin
56. Ran System Configuration
57. (authenticated as root)
58. Configured existing network interface and set static IP address
59. Set hostname to "mandy" :)
60. Used ssh to connect to the box remotely - yay I'm in!
61. Quick check:
  $ perl --version

  This is perl, v5.8.6 built for i386-linux
  (with 1 registered patch, see perl -V for more detail)
62. Grabbed the latest slimserver 6.2 nightly:
$ wget http://slimdevices.com/downloads/nightly/latest/6.2/ slimserver-2005_09_01-1.noarch.rpm

63. Chaned user to root and Installed the rpm:
  $ su -
  Password:
  # urpmi slimserver-2005_09_01-1.noarch.rpm

  installing slimserver-2005_09_01-1.noarch.rpm
  Preparing...
     #############################################
  1/1: slimserver
     #############################################

Point your web browser to http://localhost:/ to configure your server.

64. Is slimserver set to start automatically:

  # chkconfig --list slimserver
slimserver 0:off 1:off 2:off 3:on 4:on 5:on 6:off

    Yes.

65. Is slimserver running?
  # service slimserver status
  slimserver.pl is stopped

    No.

66. Try to start slimserver:
  # service slimserver start
Starting SlimServer: [ OK ]

67. Is slimserver still running?
  # ps -ef | grep slim
  root     16518 14317  0 22:00 pts/1    00:00:00 grep slim

    No.

68. Check the log:
  # less /tmp/slimserver.log
Can't locate auto/DBI/connect.al in @INC (@INC contains: /usr/local/ slimserver/P lugins /usr/local/slimserver /usr/local/slimserver/CPAN /usr/local/ slimserver/CP AN/arch/5.8.6/i386-linux /usr/local/slimserver/CPAN/arch/5.8.6/i386- linux/auto / usr/local/slimserver/CPAN/arch/5.8/i386-linux /usr/local/slimserver/ CPAN/arch/5. 8/i386-linux/auto /usr/local/slimserver/CPAN/arch/i386-linux /usr/ lib/perl5/5.8. 6/i386-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/ i386-linux /usr /lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/ vendor_perl/5 .8.6/i386-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/ vendor_perl/5.8. 5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl .) at /usr/local/s
limserver/Slim/DataStores/DBI/DataModel.pm line 143

    Hmmm. That error seems strangely familiar...

69. Check what arch filoes are installed with slimserver:
  # cd /usr/local/slimserver/CPAN/arch/5.8
  # ls
  i386-linux-thread-multi/  mipsel-linux/
  i586-linux-thread-multi/  x86_64-linux/

  Notice how the include path doesn't include any of these paths.

70. Add a symlink "i386-linux" to i586-linux-thread-multi:
  # ln -s i586-linux-thread-multi i386-linux
  # ls -l
  total 16
lrwxrwxrwx 1 root root 23 Sep 1 22:04 i386-linux - > i586-linux-thread-multi/ drwxr-xr-x 3 slimserver slimserver 4096 Sep 1 21:53 i386-linux- thread-multi/ drwxr-xr-x 3 slimserver slimserver 4096 Sep 1 21:53 i586-linux- thread-multi/
  drwxr-xr-x  3 slimserver slimserver 4096 Sep  1 21:53 mipsel-linux/
  drwxr-xr-x  3 slimserver slimserver 4096 Sep  1 21:53 x86_64-linux/

71. Try running slimserver again:
  # service slimserver start
Starting SlimServer: /usr/bin/perl: symbol lookup error: /usr/ local/slimserver/CPAN/arch/5.8/i386-linux/auto/Time/HiRes/ HiRes.so: undefined symbol: Perl_Tstack_sp_ptr [FAILED]

    Ooops.

72. Right, remove the symlink and try building the perl modules:
  # rm i386-linx
  # cd /usr/local/slimserver/Bin
  # ./build-perl-modules.pl
Welcome to the Slim Devices perl module installer.

These packages are needed for SlimServer 6 to function.
You will need a C compiler (gcc), make, and perl installed.

*** Ignore any warnings about AppConfig. ***

Please enter a perl binary to use (defaults to /usr/bin/perl)
This must be the same perl binary that you ran this program with -->
Please enter the path to your SlimServer directory (ex: /usr/local/ slimserver) -->
Please enter a directory to download files to -->
Downloads will use lwp to fetch tarballs.

Downloading Compress-Zlib-1.33.tar.gz to: /usr/local/slimserver/Bin
Uncompressing..
Configuring..
 /usr/bin/perl Makefile.PL
Up/Downgrade complete.
Building..
make: *** No rule to make target `/usr/lib/perl5/5.8.6/i386-linux/ CORE/EXTERN.h', needed by `Zlib.o'. Stop. Couldn't find a valid dynamic library for Compress-Zlib-1.33.tar.gz - something is wrong. Exiting!

    OK, let's see if some updates will help.

73. Went to http://easyurpmi.zarb.org/ and chose a few options to give me commands to update my urpmi media:

urpmi.addmedia --update updates http://anorien.csc.warwick.ac.uk/ mirrors/Mandrakelinux/official/updates/LE2005/main_updates/ with media_info/hdlist.cz urpmi.addmedia main http://anorien.csc.warwick.ac.uk/mirrors/ Mandrakelinux/official/2005/i586/media/main with media_info/hdlist.cz urpmi.addmedia contrib http://anorien.csc.warwick.ac.uk/mirrors/ Mandrakelinux/official/2005/i586/media/contrib with media_info/ hdlist.cz

74. Ran MandrakeLinux Update from the Graphical interface
  - found 83 updates (300MB!)
  - I notice the perl was one of the updates
  - original version of perl: perl-5.8.6-6mdk
  - new version of perl: perl-5.8.6-6.1.102mdk

75. Try starting slimserver:
  - same error as before (connect.al)

76. Tried building perl modules again
  - same error as before (EXTERN.h)

77. Used rpmdrake to search for EXTERN.h - it's in perl-devel.

78. Installed perl-devel

79. Tried build-perl-modules again - ack! gcc not installed!

80. Installed gcc-3.4.7 (rpmdrake also installed binutils, glibc- devel, and libbinutils as dependencies)

81. Tried build-perl-modules again - yay, it's working!

82. Template Toolkit requires AppConfig - ignored this

83. XML::Parser requires expat to be installed

84. Installed libexpat0-devel

85. Tried build-perl-modules again - completed successfully.

86. Try starting slimserver: Bingo!

87. Browse to slimserver on mandy from a different machine on network:

  http://mandy.robinbowes.com:9000

    Can't connect. Hmmm.

88. Browse to slimserver on mandy from mandy:

  http://mandy.robinbowes.com:9000

    It works!

89. Check firewall in MandrakeLinux Control Centre. Aha, need to open up some ports.

90. Use Control Centre to open up the following ports:

     3483/TCP, 3483/UDP, 9000/TCP

91. Browse to slimserver on mandy from a different machine on network:

  http://mandy.robinbowes.com:9000

    Success!! It's working!


--
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix


_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to