What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

LG N4B2 plex movie server

pathensley

New Around Here
I'm in the process of trying to build a plex movie server w/my LG N4B2 nas - wanted to pass on some info I've discovered along this journey, & then to ask for some help. (most of my useful info came from darco - thanks!)

First, it's possible to make the nas boot most iso's by writing LGSTORAGE in the iso at 0x7800 before burning - thus I was able to boot a nas4free livecd iso & enter the eth0 config blindly (1~e~n~~2~~~, where ~ is enter), but it doesn't have the drivers to see the raid (intel 82801ir) - I also couldn't make it read a config xml from my usb stick (probably doing it wrong - hence the blind eth0 config) - so I ended up sticking w/the debian on the box, but upgrading to latest lenny (5.0.10).

To do most fun stuff, you must add admin to sudoers - I found the easiest way to do this is to add the following at the end of the postinst.sh in the firmware-ns2_2682.625rfkb.bin file (it's just a tarball - I opened it w/7z, extracted the postinst.sh to my linux laptop, added the sudo commands you see at the end of this post, & then dropped the modded script right back into the 7z window) & then using the nas gui to upgrade that firmware (it'll take it even if it's already on that release) - once it completes (takes a while - wait for the be-BEEP signaling the nas is ready) you can ssh to port 2211 & you should have sudo.

Then you can change the ssh port back to 22 if you want (/usr/local/etc/sshd_config), check/mod your apt sources, then apt-get update, apt-get upgrade, & apt-get dist-upgrade to 5.0.10 (again, took a LONG time on my box to get back to be-BEEP after the reboot). You'll also have to reset the time/time zone fields via the gui (it'll look a bit funky when you first log on).

beware: do NOT upgrade to the newest firmware, 10072 - it doesn't have ssh enabled at all! (I don't know if it's possible to script the sshd install in the postinst.sh script - maybe someone else can give this a shot) - I ended up reloading the factory cd & starting over.

My goal is to set up a script to rip a dvd or bluray on insert, then handbrake it to a smaller h.264 mkv, then publish it thru plexmediaserver for my plex client on ATV2.

I was able to get makemkvcon, vlc & dvdauthor installed very easily (didn't really need vlc or dvdauthor, but I thought they might add codecs & stuff that handbrake & plexmediaserver would need) - now I'm hung up on handbrake-cli (lots of un-installable dependencies) - and I already know that plexmediaserver is going to be the toughest install (assume I'll put a plexmediaserver dir on the raid & link back to /var/lib/plexmediaserver or /usr/lib/plexmediaserver).

So that's where I am. I can help anyone get to the point of 5.0.10 w/makemkvcon installed, but if anyone gets handbrake and/or plexmediaserver working, please help me out.

(note: I used this method w/the sudoers file b/c my test system was very picky how the file was touched - I couldn't just chmod the file directly & echo into it - so I came up w/this workaround)

script to add at end of postinst.sh:
cp /etc/sudoers /etc/sudoers.tmp
chmod 666 /etc/sudoers.tmp
echo "admin ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.tmp
chmod 440 /etc/sudoers.tmp
cp /etc/sudoers.tmp /etc/sudoers
 
Last edited:
handbrake errors

fwiw, here's what I get right now when trying to install handbrake-cli via dpkg (have also tried building from source, & using apt-get install, & have tons of errors there too):

Unpacking handbrake-cli (from handbrake-cli_0.9.5-0.1_i386.deb) ...
dpkg: dependency problems prevent configuration of handbrake-cli:
handbrake-cli depends on libass4 (>= 0.9.7); however:
Package libass4 is not installed.
handbrake-cli depends on libfaac0 (>= 1.28); however:
Package libfaac0 is not installed.
handbrake-cli depends on libfaad2; however:
Package libfaad2 is not installed.
handbrake-cli depends on libmkv0; however:
Package libmkv0 is not installed.
handbrake-cli depends on libmp3lame0 (>= 3.98.2-0.5); however:
Package libmp3lame0 is not installed.
handbrake-cli depends on libsamplerate0; however:
Package libsamplerate0 is not installed.
handbrake-cli depends on libstdc++6 (>= 4.4.0); however:
Version of libstdc++6 on system is 4.3.2-1.1.
handbrake-cli depends on libtheora0 (>= 1.0); however:
Version of libtheora0 on system is 1.0~beta3-1+lenny1.
handbrake-cli depends on libx264-112 (>= 1:0.svn20110115); however:
Package libx264-112 is not installed.
dpkg: error processing handbrake-cli (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
handbrake-cli
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top