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