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 - m3freak

Pages: 1 2 3 [4] 5 6 ... 9
46
Users / Re: Erase metadata
« on: February 11, 2012, 06:02:07 am »
what attribute isnt being removed?

-golgoj4

It's URL to an image of the tv show.  So, the attribute is the URL, which I suppose is also the name.

47
Users / Tagging tv shows error
« on: February 11, 2012, 02:57:42 am »
So I ran auto  tagger to tag a TV show.  After I confirmed the episodes were identified properly, I clicked on the "OK" button or whatever it was to start the tagging and then this came up on the screen:

Duplicate entry '3353-0-0-0' for key 'PRIMARY'

I did a brief search and found this:

http://www.softwareprojects.com/resources/programming/t-how-to-fix-mysql-duplicate-entry-for-key-primary-o-1844.html

Is my DB hosed?

48
Users / Erase metadata
« on: February 11, 2012, 02:21:27 am »
I tried auto tagging some tv shows, but the results were mixed.  One show worked out fine - everything in the folder was tagged properly, pictures added, etc.  Another show is found properly, but when I apply the tags, only one episode gets tagged.  Nothing is done for the rest, and I can't figure out why.

I want start the tagging over for the tv show that's causing problem.  I can see how to delete attributes from the admin page, but one attribute for every single episode simple won't erase.  Every time I delete the attribute, the admin reports back it was deleted successfully, but the stupid thing never disappears from the screen.

I'm going to assume I can hit the DB directly to get rid of the info.  Does anyone know which tables I need to look at?  If I should avoid this, how should I go about trouble shooting the above problem?

I'm using 10.04.

49
Users / Can't connect to samba shares on 10.04
« on: February 09, 2012, 04:57:43 pm »
I'm using smbclient from a Fedora desktop to test connecting to the samba shares configured on my core.  So far, no luck. I've tried:

1. reseting the users's smb password (according to wiki)
2. restarted smb daemon (no errors)
3. checked the smb.conf for errors (non found)
4. tried connecting from external fedora PC and from core itself

The shares I tried connecting with include the ones that were configured when I installed the system, and the new one that was created for the RAID 1 array I setup through LinuxMCE's admin interface.

Is my smb.conf actually configured correctly?  Here it is:

Code: [Select]
## @FileType: Pluto Sectioned Config File ##
## @Version: 2 ##
## @KeepSections: ##
## @RemoveSections: ##

[global]
## BEGIN : Domain and Hostname
workgroup = LinuxMCE
server string = %h server (Samba %v)
## END : Domain and Hostname
smb ports = 139
log level = 2
invalid users = root
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
encrypt passwords = true
socket options = TCP_NODELAY
dns proxy = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
username map = /etc/samba/usermap.txt
        unix extensions = no
        wide links = yes
security = user
########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
   printing = cups
   printcap name = cups

[public]
comment = public files
browseable = yes
writable = yes
create mask = 0777
directory mask = 0777
path = /home/public/data
public = no

[home]
comment = shared home files
browsable = yes
writable = yes
## BEGIN : Home Hosts Allow
### END : Home Hosts Allow
path = /home
public = no
guest ok = no
force user = root
        force group = public
        create mask = 0774
        directory mask = 0775
        inherit acls = yes
        inherit uid = yes
        inherit owner = yes
        inherit permissions = yes

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

## BEGIN : User Shares


[ranbir]
comment = ranbir's private files
browseable = yes
writable = yes
create mask = 0770
directory mask = 0770
path = /home/user_1
public = no

## END : User Shares


## BEGIN : InternalStorageDevices


[Storage57$]
comment = Storage Device 57
browseable = yes
writable = yes
create mask = 0770
directory mask = 0770
path = /mnt/device/57
public = no
guest ok = no
force user = root
force group = root


[Storage60$]
comment = Storage Device 60
browseable = yes
writable = yes
create mask = 0770
directory mask = 0770
path = /mnt/device/60
public = no
guest ok = no
force user = root
force group = root

## END : InternalStorageDevices

I have no idea what Storage60$ is.



50
Users / Re: Upgrade failing in 10.04
« on: February 06, 2012, 12:34:04 am »
SOLVED

Fixed the problem by putting a hash in front of line 6 in /usr/pluto/bin/update2utf8.pl.

51
Users / Upgrade failing in 10.04
« on: February 06, 2012, 12:18:51 am »
I tried updating my 10.04 install, but it's failing with this error (snippet):

Code: [Select]
Bareword found where operator expected at /usr/pluto/bin/update2utf8.pl line 6, near "// We"
(Missing operator before We?)
syntax error at /usr/pluto/bin/update2utf8.pl line 6, near "// We try "
Execution of /usr/pluto/bin/update2utf8.pl aborted due to compilation errors.
dpkg: error processing pluto-system-database (--configure):
 subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of pluto-std-plugins:
 pluto-std-plugins depends on pluto-system-database (>= 2.0.0.45); however:
  Package pluto-system-database is not configured yet.
 pluto-std-plugins depends on pluto-system-database (<< 2.0.0.46); however:
  Package pluto-system-database is not configured yet.
dpkg: error processing pluto-std-plugins (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pluto-dcerouter:
 pluto-dcerouter depends on pluto-std-plugins (>= 2.0.0.45); however:
  Package pluto-std-plugins is not configured yet.
 pluto-dcerouter depends on pluto-std-plugins (<< 2.0.0.46); however:
  Package pluto-std-plugins is not configured yet.
 pluto-dcerouter depends on pluto-system-database (>= 2.0.0.45); however:
  Package pluto-system-database is not configured yet.
 pluto-dcerouter depends on pluto-system-database (<< 2.0.0.46); however:
  Package pluto-system-database is not configured yet.
dpkg: erNo apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                  No apport report written because the error message indicates its a followup error from a previous failure.
              ror processing pluto-dcerouter (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pluto-system-database
 pluto-std-plugins
 pluto-dcerouter
E: Sub-process /usr/bin/dpkg returned an error code (1)

I ran 'apt-get upgrade' a couple of times - same result.  Any ideas on how I could fix this?

52
Users / Re: HOW-TO: HDMI sound on a Jetway Mini-top (ION 2)
« on: February 05, 2012, 05:36:57 pm »
m3freak,

nice.

Could you amend your script changes in a way, that it detects the Jetway hardware and does the changes only for that hardware? A patch like that would be helpful, and could be incorporated into svn, so other people directly have a successful experience, without needing to modify scripts themselves.

The only problem is I don't know what to modify.  Where does the detection happen?

53
Users / HOW-TO: HDMI sound on a Jetway Mini-top (ION 2)
« on: February 05, 2012, 05:34:25 am »
I'm a busy guy.  It's been very, very hard for me to find the time to learn enough about the innards of LinuxMCE to tackle the problem of the non-working HDMI sound on my Jetway Mini-top.  However, a week ago after several months of wimpy twiddling and random bashing of the keyboard, I finally figured out how to get HDMI sound working in the crappy 10.04 release (note: I do not like Ubuntu, but don't take that to mean I don't like LinuxMCE.  I will be randomly raging against Upoontu, so don't cry).

I have no idea if what I'm about to spell out will work on the current stable LinuxMCE release. I gave up on it while ago because of stupidness (e.g. my second NIC not working without manually building a new driver).  I also pieced together most of what needed to be done from several different sources. However, figuring out the order and the repeated testing, plus some key pieces to the final solution were all my doing.  If I wasn't already very well experienced with Linux systems, I would have been completely lost.  Overall it was not fun, but man was I happy when it all came together.

So...

PRO TIP: make sure the Mini-top's (or whatever it is you're using for your MD) HDMI port is actually plugged into something and that something is powered ON!

NOTE: All these steps were performed on the MD after I logged into it via SSH.  I did not do a "chroot" to the MD's directory on the core (i.e. /usr/pluto/diskless/XX).

1. In /etc/modprobe.conf/blacklist, add at the bottom the following:
Code: [Select]
blacklist snd-usb-audio
This was important.  I needed to blacklist this module to prevent it from breaking the MD's boot process and to ensure ONLY the nvidia HDMI audio was enabled.

2. In /etc/modprobe.conf/alsa-base.conf, add this, again at the bottom of the file:
Code: [Select]
alias snd-card-0 snd-hda-intel
options snd-hda-intel enable_msi=0 probe_mask=0xfff2

This alias bullshit I pulled from memory....from way, way back in the early days of Fedora when I had to battle with alsa to get sound working.  I'm not sure it's actually needed here, but I put the crap in anyway.  The second line came from the xbmc forums and the xbmc wiki - so awesome.

3. Upgrade alsa.  I used this page as a guide:

http://monespaceperso.org/blog-en/2010/05/02/upgrade-alsa-1-0-23-on-ubuntu-lucid-lynx-10-04/

I only upgraded alsa-driver and alsa-libs. There's no need to update alsa-utils.

4. Reboot

5, Upgrade the nvidia drivers.  Nothing special to note here.

6. Reboot

7. Install this package:
Code: [Select]
apt-get install linux-backports-modules-alsa-$(uname -r)
This was the biggest piece of the puzzle.  Without this package, the nvidia soundcard would not be detected by alsa.  I have no idea how the shit I figured this crap out.  I think I read about it somewhere on the net.  I know for sure it wasn't at all in reference to LinuxMCE, the ION2 or HDMI sound.  FUCK!

8. Reboot

9. Edit, /usr/pluto/bin/AVWizard_AudioConnector.sh, like so:
Code: [Select]
#!/bin/bash

. /usr/pluto/bin/AVWizard-Common.sh
. /usr/pluto/bin/Utils.sh

Param="$1"
case "$Param" in
        'Analog Stereo')
                XineConfSet audio.output.speaker_arrangement 'Stereo 2.0' "$XineConf"
                XineConfSet audio.device.alsa_front_device plughw:0 "$XineConf"
                XineConfSet audio.device.alsa_default_device plughw:0 "$XineConf"
        ;;
        'SPDIF Coaxial'|'SPDIF Optical')
                XineConfSet audio.output.speaker_arrangement 'Pass Through' "$XineConf"
                XineConfSet audio.device.alsa_front_device asym_spdif "$XineConf"
                XineConfSet audio.device.alsa_default_device asym_spdif "$XineConf"
                XineConfSet audio.device.alsa_passthrough_device "iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2" "$XineConf"
        ;;
        'HDMI')
                XineConfSet audio.output.speaker_arrangement 'Pass Through' "$XineConf"
                #XineConfSet audio.device.alsa_front_device asym_hdmi "$XineConf"
                XineConfSet audio.device.alsa_front_device nvidia_hdmi "$XineConf"
                #XineConfSet audio.device.alsa_default_device asym_hdmi "$XineConf"
                XineConfSet audio.device.alsa_default_device nvidia_hdmi "$XineConf"
                XineConfSet audio.device.alsa_passthrough_device "hdmi:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2" "$XineConf"
        ;;
esac
/usr/pluto/bin/SetupAudioVideo.sh

Makes sure Xine uses the nvidia HDMI card (configured below).

10. At the bottom of /usr/pluto/templates/asound.conf, add this:
Code: [Select]
pcm.nvidia_hdmi {
        type hw
        card 0
        device 3
}

This configures the HDMI "card" for use with alsa.

8. Edit, the Setup_AsoundConf() function in /usr/pluto/bin/SetupAudioVideo.sh like so:
Code: [Select]
Setup_AsoundConf()
{
        local AudioSetting="$1"
        local SoundCard

        SoundCard=$(GetDeviceData "$PK_Device" "$DEVICEDATA_Sound_Card"|cut -f2 -d";")
        SoundCard=$(TranslateSoundCard "$SoundCard")
        if [[ -z "$SoundCard" ]]; then
                SoundCard=0
        fi
        sed -r "s,%MAIN_CARD%,$SoundCard,g" /usr/pluto/templates/asound.conf >/etc/asound.conf

        case "$AudioSetting" in
                *[CO]*)
                        # audio setting is Coaxial or Optical, i.e. S/PDIF
                        #echo 'pcm.!default asym_spdif' >>/etc/asound.conf
                        echo 'pcm.!default nvidia_hdmi' >> /etc/asound.conf
                        EnableDigitalOutputs
                ;;
                *H*)
                        # audio setting is HDMI
                        #echo 'pcm.!default asym_hdmi' >>/etc/asound.conf
                        echo 'pcm.!default nvidia_hdmi' >> /etc/asound.conf
                        EnableDigitalOutputs
                ;;
                *)
                        # audio setting is Stereo or something unknown
                        echo 'pcm.!default asym_analog' >>/etc/asound.conf
                ;;
        esac
}

That makes the nvidia HDMI card configured in the previous step the default output for sound.

9. Reboot

When the MD came back up, "aplay -L" correctly reported the NVidia HDMI sound card, and because of the mask (in alsa-base.conf), only one soundcard was shown.  You should see the same.

Now everything works.  mp3s, MKVs, AVIs, stereo sound, multichannel, dolby, DTS, LPCM...you name it.  Sound over HDMI works flawlessly.  Also, my changes to a couple of the scripts have assured reboots won't adversely affect sound over HDMI.

The only problem is I'm sure a future update will likely blow some of my changes away.  I hope the devs can incorporate what I've done into the setup scripts, thereby truly automating this particular MD's LinuxMCE setup.

Oh, one final note: I'll make sure the wiki article has a better flow for the steps (a couple are out of logical order, though the way I wrote the above how-to won't prevent HDMI sound from being correctly setup).

I hope this helps someone!

54
Users / Re: How the #@$# do I customize asound.conf?
« on: February 05, 2012, 04:22:24 am »
m3freak - I can't speak for tux-box1's issue, though what you're seeing is the lack of support for the ion2 chipset for hdmi audio, specifically on 10.04. I've also been looking around the internet and it appears that in order to get this to function correctly you need to update both alsa drivers as well as the nvidia driver as well as manually modify the asound.conf file. My initial thought was that instead of updating alsa and nvidia for these specific boards (though possible and I've scripted some basic detection and installation based on board type here: http://svn.linuxmce.org/trac.cgi/ticket/1153 ) instead to wait for 12.04 to come out since all the updates required will already be there.

I'm curious, I saw in another thread that you had been able to get HDMI audio working. Would you mind describing what you did and what pieces of media you've tested (i.e. myth, dvd, avi, mp3, etc)?

I'll start a new thread.  But, I really want to write a wiki article, so I'm going to do that soon, too.

55
Users / Re: Torrent installation
« on: February 01, 2012, 05:14:52 pm »
Fwiw

Transmission has been great to me. Simple install, remote torrent management apps  available for the major mobile platforms. Seems lightweight too.

I prefer transmission - it's also been awesome for me.  I can control it remotely from a terminal, a browser, or my phone.  Handy!!!

56
Users / Re: New LMCE splash screen/logo!
« on: January 31, 2012, 09:19:36 pm »
How about a nice pair of tits on the logo? Tits sell.

Hahah...

57
Users / Re: How much HD space do I need for Core + MDs?
« on: January 31, 2012, 09:18:31 pm »
Peace dude... and calm  8)

I prefer to rage every now and then.  :P

In all seriousness, I understand what you're saying and I agree with you.  I'll temper my replies from now on.  Or, at least I'll try.

58
Users / Re: How much HD space do I need for Core + MDs?
« on: January 30, 2012, 09:54:59 pm »
Whilst the write times were very good, the read times were rubbish, or something like that? EDIT: Other way round I think.

SSD's destroy mechanical HDs in writing and reading.  Even in a LinuxMCE situation, I expect SSDs to trounce mechanical drives.

You have to be careful about which brand you go for.  For example, Intel drives are considered to be the most reliable, though not the fastest.

Cost is a factor too - a "normal" hard drive is so much cheaper, I've certainly never had a problem with them. I considered SSD for my carPC, but even then I decided to just go with a 2.5" laptop drive. The only reason I can see for getting an SSD is that you can shave a few seconds off the boot time, which isn't good value for money in my opinion.

Regular drives are still expensive.  Prices are down from what they were after the flooding in Thailand, but they're still not as low as they were before the disasters.  I'm not sure if I should just bite the bullet or wait a bit more.  I was going to purchase three 3TB HDs, then the prices went through the roof.  I'm still waiting for pricing to come down to $120 or lower.

FYI My core/hybrid + 3 MDs is 29 GB. I haven't finished adding all my rooms yet, so I definitely wouldn't go less than 80 GB.

Awesome, thanks dude.  80GB min for sure.  120GB for peace of mind.   :)

59
Users / Re: How much HD space do I need for Core + MDs?
« on: January 30, 2012, 09:40:52 pm »
Before you get a 80gb SSD you may want to add a different question:

Is SSD the correct technology for a Core?

I say this because I am sure I read somewhere that it may not be well suited to this application but I can't remember the conversation

Ah crap.  I just noticed the kernel in 10.04 is 2.6.32-35.  There's no TRIM support in that version. TRIM hit mainline Linux in 2.6.33.  I guess I'll be using the SSD in my desktop!!!  

Thanks for posting. I meant to check this BEFORE getting the SSD, but I completely forgot.

60
Users / Re: How much HD space do I need for Core + MDs?
« on: January 30, 2012, 07:34:13 pm »
I just had a look, I'm using about 20GB for my system as well...that install (10.04) is about 2 months old now

Thanks, man.  I really appreciate it.

Two replies with the same info, so that seals it for me.  I'm going to exchange the 40 GG SSD for a 80 GB SSD.  I hope it's good enough for a couple of years.

Pages: 1 2 3 [4] 5 6 ... 9