Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - royw

Pages: 1 ... 14 15 [16] 17 18
226
Feature requests & roadmap / Re: Feature Request - Database relocation
« on: February 13, 2008, 08:25:42 am »
In order for the database to be relocatable, there needs to be, in LMCE, a single configuration file which points to the DB location, and from which all other scripts get the DB location when then need to access the DB. Does anyone know if this is how it is done?
If any of the scripts hold the DB location within them, then this will be a larger task than simply moving the database.

First, I'm not a db kind of guy, but I've been forced (kicking and screaming) to use them occasionally.   ;)

LMCE is using mysql.  Mysql runs as a daemon.  When mysql daemon is started, it reads it's configuration from /etc/mysql/my.cnf.  On LMCE 0710B3, my.cnf has datadir = /var/lib/mysql.  Looking in /var/lib/mysql you will notice directories that correspond to the various databases.

Scripts, programs, etc, should not be overriding my.cnf (that's a no no).  Also they should never access the files directly (that's a big NO NO).

During my, admittedly limited, browsing of the source, I've seen just the expected mysql connection calls.

When you use a database, you open a connection, do your queries, then close the connection.  When you open the connection, you actually query the daemon for a handle.  This handle is then passed to the daemon with each of your db calls (queries).  So you never know (nor need to know) the physical location of the data on disc.  So moving the location of the database should be transparent to all applications.

The primary concern I would have is LMCE's bad habit of "restoring" config files.  I have not found any list of the files that LMCE expects you not to mess with.  I know from experience that LMCE "restores" domainname (to "pluto") and from the forum it apparently does not play nice with xorg.conf.  I would suggest doing an innocent change to my.cnf, rebooting, then see if my.cnf was "restored" or not...

If you are really concerned about messing something up by moving the database, then why not just mount your raid partition on /var/lib/mysql?  The only config change would be adding the mount to /etc/fstab.  Simply create your partition, format it, mount it somewhere temporary, stop mysql daemon, copy /var/lib/mysql/* to it (preserving permissions, ownership,...), then umount it and remount it on /var/lib/mysql, and restart the mysql daemon.

HTH,
Roy


Have fun,
Roy

227
Users / Re: nvidia 7050
« on: February 12, 2008, 11:39:51 am »
lshw should show your bios version.  Be sure to run it with root access.  For example:

linuxmce@dcerouter:~$ sudo lshw
[sudo] password for linuxmce:
dcerouter
    description: Desktop Computer
    product: GA-MA69G-S3H
    vendor: Gigabyte Technology Co., Ltd.
    width: 32 bits
    capabilities: smbios-2.4 dmi-2.4
    configuration: boot=normal chassis=desktop uuid=30303141-3444-3431-3846-4346FFFFFFFF
  *-core
       description: Motherboard
       product: GA-MA69G-S3H
       vendor: Gigabyte Technology Co., Ltd.
       physical id: 0
     *-firmware
          description: BIOS
          vendor: Award Software International, Inc.
          physical id: 0
          version: F5 (11/30/2007)

HTH,
Roy

228
Installation issues / Re: No Media. Windows Shares Not Mounting.
« on: February 11, 2008, 09:50:52 am »
First, I'm going to suggest verifying that there are no other DHCP servers active in you internal network.  I had fun after resetting my linksys wireless router and not thinking that resetting it re-enabled the DHCP server.  A quick check is to run ipconfig on your windoze box and verify the IP address is 192.168.80.x

Second, I'm going to reiterate Collin's suggestion to minimize/change you network.  I thought my network was working fine, but in reality one of my problems was that my Netgear GS105 was bad.  Here's what my network looked like (abridged):

ISP -> Linksys BEFSR41 -> Core/hybrid -> Netgear GS105  ->  PS3, Dlink DGS2208 -> kubuntu, Dlink DBS2208 -> gentoo

The gentoo & kubuntu systems were working great.  Could NFS to each other at 36MB/s.
The Core/hybrid could not reliably NFS to either the gentoo or kubuntu boxes.

For a test I removed the Netgear & PS3 from the network:

ISP -> Linksys BEFSR41 -> Core/hybrid -> Dlink DGS2208 -> kubuntu, Dlink DBS2208 -> gentoo

Poof, NFS started working great at 36MB/s between core/hybrid and kubuntu.  I then put the netgear back in and tried different cables.  No joy.  This isolated the problem to the netgear switch.

Originally I had tried samba on the kubuntu system, but couldn't get it working so switched to NFS (I'm much more comfortable in *nix land than windoze).  In retrospec the bad switch was probably my problem when I tried samba/cifs.

HTH,
Roy

229
Feature requests & roadmap / Re: Feature Request - Database relocation
« on: February 11, 2008, 12:52:24 am »
I did a google on "moving mysql database" and found what looks like good instructions:

  http://www.vbulletin.com/forum/showthread.php?t=185701

I'd suggest giving it a try and if it works, create a lmce specific howto on the wiki...

HTH,
Roy

230
Users / Re: nvidia 7050
« on: February 09, 2008, 04:58:05 am »
I've never seen linuxMCE live so I don't really have much to go on, I've just read some posts claiming that not using alpha blending just plain looks bad.  I've also heard mention of UI3, but I'm not clear on if that's UI2+alpha blending or something different.  Either way, as long as UI2 without alpha blending looks good I'm not too concerned about it for now.

UI2 with alpha blending has translucent background for the various menus and popups.  Without alpha blending, the backgrounds are opaque.  I find the opaque background easier to read.  YMMV

There is a discussion going on in the developers forum for the next generation UI which is referred to as UI3.

I've ordered a 7050 MB (MSI K9NGM3-FIH) to give it a try but have a nvidia 8600 GTS (GIGABYTE GV-NX86S256H) as backup.

I have to ask, are you planning to run s-video from that motherboard?  As far as I can tell there isn't an s-video connection, just a little mentioned tv-out header for which I have not been able to find a single s-video or component attachment.
http://www.msicomputer.com/product/p_spec.asp?model=K9NGM3-FIH&class=mb

I'm planning on using the HDMI connector to my A/V receiver.  There is an optional TV-Out Connector (JTV1) with component and s-video.

Have fun,
Roy

231
Users / Re: Media over network share unavailable ... please help!
« on: February 09, 2008, 12:20:57 am »
I'm very happy to report that NFS shares are now working for me.  It was a combination of three issues:

I opened a Mantis ticket for the first issue: http://mantis.linuxmce.org/view.php?id=3915.

The last issue was found after reading http://ubuntuforums.org/showthread.php?t=183636.

Have fun,
Roy

232
Users / Re: nvidia 7050
« on: February 08, 2008, 10:54:39 pm »
I have also read a number of threads about video tearing with UI2 and alpha blending.  Is this something that can be fixed with a dedicated nvidia video card?  What I've read is fuzzy on this. 

For now, this will go on my ooooold 480p HDTV with component/s-video inputs only, but may quickly be moved to my 720p HDTV with HDMI inputs.

While alpha blending is cool, I've decided I prefer a plain UI2 - the text is easier to read.  Especially at 480 (old 56" sony rear projection - videoscope xbr).

I'm using an nvidia 7600 GS and with alpha blending experienced an occasional 1 second tear about once or twice a movie.  Just recently turned off alpha blending and have not noticed any tearing (only watched 2 movies).  More aggravating is the slowing frame rate that seems to happen about once a week necessitating a reboot.

The s-video should be fine for the 480p.  I'm connected as:  nvidia -> s-video ->  via s-video to yamaha rx-v861, then component to tv.

I've ordered a 7050 MB (MSI K9NGM3-FIH) to give it a try but have a nvidia 8600 GTS (GIGABYTE GV-NX86S256H) as backup.

HTH,
Roy

233
Users / Re: Media over network share unavailable ... please help!
« on: February 08, 2008, 02:13:48 am »
Howdy,

I may have found the nfs problem.  In /usr/pluto/bin/StorageDevices_StatusRadar.sh there are two typos in the nfs area:
Code: [Select]
for NFSShare in $NFSShareList ;do
if [[ "$NFSShare" == "" ]] ;then
continue
fi

Share_ID=$(Field "1" "$NFSShare")
                        Share_Name=$(Field "2" "$NFSShare")
                        Share_Username=$(Field "3" "$NFSShare")
                        Share_Password=$(Field "4" "$NFSShare")

## Test if the share is still in the list
showmount -e $Device_IP | cut -d ' ' -f1 | grep "^${ShareName}$"
isShareInList=$?

if [[ "$isShareInList" != "0" ]] ;then
Log "Share $Share_ID ($Share_Name) is not advertised by the nfs server"
SetDeviceOnline "$Share_ID" "0"
continue
fi

                        ## See if the share is mountable
                        mountDirTemp=$(mktemp -d)
                        mount ${Device_ID}:${Share_Name} $mountDirTemp 1>/dev/null 2>/dev/null
                        isShareMountable=$?

1) The variable $ShareName in the showmount command should be $Share_Name
2) The variable $Device_ID in the mount command should be $Device_IP

BTW, it looks like this is the script responsible for assigning device online/offline status.  You can manually run it with the background option to see the log messages (I couldn't find the messages in any log file):

  sudo /usr/pluto/bin/StorageDevices_StatusRadar.sh background

To replace in a running system you will need to kill the currently running script, then spawn the changed script to the background:

  $ ps -ef | grep StorageDevices_StatusRadar
  root      AAAA     1  0 19:06 ?        00:00:00 SCREEN -d -m -S StorageStatusRadar /usr/pluto/bin/StorageDevices_StatusRadar.sh background
  root      BBBB  8323  0 19:06 pts/6    00:00:01 /bin/bash /usr/pluto/bin/StorageDevices_StatusRadar.sh background
 
  $ sudo kill -9 AAAA BBBB
  $ sudo /usr/pluto/bin/StorageDevices_StatusRadar.sh

This did eliminate the device is offline issue with updatemedia for my nfs share...

Have fun,
Roy

234
Users / Re: Media over network share unavailable ... please help!
« on: February 06, 2008, 06:49:15 am »
I've been following this thread closely because I have a similar problem with an nfs share.  Can rip to nfs share, then file's permissions are screwy.  Change them to 777 and updatemedia insists device is offline.  Manually change config to online, run updatemedia, device is back to offline.  Filename search finds files.  Media File Sync finds files.  Title browsing does not find files.  I.e., pretty much the same symptoms you were having with cifs...

Really looking like something above the underlying protocol is misbehaving.

Currently I have a new network card on order as kubuntu locks up when transferring several dvd files to nfs share.  I'm going to replace the card in a few days then dig heavy into the db & scripts.

Have fun,
Roy

235
Users / Re: Media over network share unavailable ... please help!
« on: February 05, 2008, 07:42:42 pm »
FYI, it looks like that patch is already included in 0710B3.

236
I'm experiencing the occasional lockup problem.  I've spent hours searching thru logs hoping for a hint without success.  My original hypothesis was a thermal problem.  So installed lmsensors and added noisy fans.  The other day I hit a repeatable scenario that will lock the system.  Just start copying a lot of media (dvd) files to an nfs server.  Observed about 30% CPU load with highest reported MD temp of 52C (CPU highest 40C).  Using IR thermometer, highest observed temp was 92F.  Upgraded BIOS the other day and have had one lockup since.  Ran memtest 2 hours, no problems.  Currently thinking it might be my linksys PCI ethernet card.  Plans are to replace card and if that don't work replace MB.  And if that don't work, then it's got to be LMCE...

Motherboard make/model                 Gigabyte GA-MA69G-S3H (don't recommend, ATI graphics)
Chipset                                          nvidia 7600 GS (replaced fan with silent cooler)
CPU model and clockspeed                AMD 64 X2 Dual Core Processor 4800+
TV Tuner card                                 none
Chose VDR or MythTV                       MythTV
64bit or 32bit                                  64
CD install or DVD                             dvd, new install, hybrid

Other hardware:
Zalman HD135 case (don't recommend, bad airflow)
Zalman ZM600-HP power supply (very quiet)
2GB RAM TWIN2X2048-6400C4
WDC WD5000AAKS
WDC WD10EACS
Linksys gigabit ethernet pci adapter

Problems Solved
It was a combination of thermal and a bad router.  The system has been stable past few weeks.  One issue remains where dvd playback will go to low frame rate (motion in video stutters).  This typically happens after ripping a few dozen movies and watching a few movies over a few days.  Rebooting the core/hybrid restores frame rate to normal.

237
Installation issues / Re: DVD Region
« on: February 04, 2008, 06:29:57 am »
Oh, this is really cute, the script ate all available user controlled changes:

linuxmce@dcerouter:/etc$ /usr/pluto/bin/dvd_region -d /dev/dvd1
Drive region info:
Type: No drive region setting
4 vendor resets available
5 user controlled changes available
Region: 9 playable
RPC Scheme: The Logical Unit _shall_ adhere to the specification and all requirements of the CSS license agreement concerning RPC
linuxmce@dcerouter:/etc$ sudo /usr/pluto/bin/dvd_region -s -r 1 -d /dev/dvd1
[sudo] password for linuxmce:
region 1
Setting drive region can only be done a finite number of times, press CTRL-C now to cancel!

Setting region to 1 (fe)
Drive region info:
Type: Drive region has been set permanently, but may be reset by the vendor if necessary
2 vendor resets available
0 user controlled changes available
Region: 1 playable
RPC Scheme: The Logical Unit _shall_ adhere to the specification and all requirements of the CSS license agreement concerning RPC
linuxmce@dcerouter:/etc$               

238
Installation issues / Re: DVD Region
« on: February 04, 2008, 06:26:01 am »
Try using sudo.

  linuxmce@dcerouter:/etc$ sudo /usr/pluto/bin/dvd_region -s -r 1 -d /dev/dvd1

the password is your log in account's password.  linuxmce in the above example.

Have fun,
Roy

239
Users / Re: Major network problems - please help
« on: February 04, 2008, 06:13:32 am »
Try releasing the dhcp lease from windows (ipconnect /release) then rebooting into ubuntu.  What might be happening is the core's dhpcd is thinking that the mac address already has a lease so doesn't reissue one.

HTH,
Roy

240
Users / Re: LMCE as DNS Server?
« on: February 04, 2008, 06:06:21 am »
Howdy,

I added the http://wiki.linuxmce.org/index.php/How_to_setup_Local_Authoritative_DNS page to the wiki.  It should be close to what you want.  The changes have so far survived reboots so I don't think any of the LMCE scripts are affecting the changed files.


Have fun,
Roy

Pages: 1 ... 14 15 [16] 17 18