Mike’s Linux Desktop Experiences

December 24, 2008

Cinelerra is Working

Filed under: Uncategorized — Mr. Mike @ 5:26 am

Cinelerra is a bit annoying under the VMWare desktop and on top of that Gnome and junk wastes a lot of resources. The ideal would be to strip Ubuntu down to text-only as a special purpose VMWare VM and run Cinelerra on the Windows desktop through X11 on the make-believe VMWare-Windows network.

Another thing which is very important is to ensure that mounting of filesystems is not a pain in the butt. Having everything in the same place at the same time so that video (huge files) can be edited in-place without moving around all the time. Mounting an SMB share is probably the best way to do this in this kind of config. A bit wasteful on CPU resources, but I can’t think of any other method.

So here’s the attempt, some notes and a resultant screenshot.

(Sorry if this seems terse, it’s a dump of my own notes with some junk in here.)


root@Ubuntu-VMWare:~# apt-get install sysv-rc-conf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libcurses-perl libcurses-ui-perl
The following NEW packages will be installed:
libcurses-perl libcurses-ui-perl sysv-rc-conf
0 upgraded, 3 newly installed, 0 to remove and 246 not upgraded.
Need to get 383kB of archives.
After unpacking 1421kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://de.archive.ubuntu.com gutsy/universe libcurses-perl 1.13-1 [116kB]
Get:2 http://de.archive.ubuntu.com gutsy/universe libcurses-ui-perl 0.95-6 [242kB]
Get:3 http://de.archive.ubuntu.com gutsy/universe sysv-rc-conf 0.99-6 [24.2kB]
Fetched 383kB in 8s (46.4kB/s)
Selecting previously deselected package libcurses-perl.
(Reading database ... 89401 files and directories currently installed.)
Unpacking libcurses-perl (from .../libcurses-perl_1.13-1_i386.deb) ...
Selecting previously deselected package libcurses-ui-perl.
Unpacking libcurses-ui-perl (from .../libcurses-ui-perl_0.95-6_all.deb) ...
Selecting previously deselected package sysv-rc-conf.
Unpacking sysv-rc-conf (from .../sysv-rc-conf_0.99-6_all.deb) ...
Setting up libcurses-perl (1.13-1) ...
Setting up libcurses-ui-perl (0.95-6) ...
Setting up sysv-rc-conf (0.99-6) ...
root@Ubuntu-VMWare:~#

Don’t need Bluetooth, don’t need X11, don’t need gdm, nvidea, usplash, acpi, acpid, apmd,
rsync?  sshd isn’t default but rsync is?
apport
atd
avahi?
cinestart?
consolekit
cron/anacron?  Why both?
dbus
dhcdbd
HAL
hotkey-something
laptop-thing
powernowd

I don’t have time to read all those docs.  I’ll just disable everything I don’t recognise.  It’s probably all junk anyway.

I don’t need cron on the system either.

So why is sshd not on there?

Oh.  I need to install it.


root@Ubuntu-VMWare:~# apt-get install sshd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package sshd

OH yeah, forgot.


root@Ubuntu-VMWare:~# apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done

How are people supposed to know this?

oh right, the gui.  But I don’t need the GUI.


root@Ubuntu-VMWare:~# man vbesave
No manual entry for vbesave
root@Ubuntu-VMWare:~# less /etc/init.d/vbesave

what is vbesave?

Technically don’t need vmware-tools, but I’ll leave them in there.

sysv-rc-conf is nice.  It’d be nicer if I had a doc describing the Distro-blessed method of doing the stuff manually.  No innittab, just a note in init.d to check the Debian policy manual.  The Debian policy manual says nothing about changing runlevels in the absence of /etc/inittab.  So blegh.  Short of manually editing /etc/event.d/rc-default, I can’t see a way to do it.

I can’t fathom why this script exists:


# rc - runlevel compatibility
#
# This task guesses what the "default runlevel" should be and starts the
# appropriate script.

start on stopped rcS

script
runlevel --reboot || true

if grep -q -w -- "-s\|single\|S" /proc/cmdline; then
telinit S
elif [ -r /etc/inittab ]; then
RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
if [ -n "$RL" ]; then
telinit $RL
else
telinit 2
fi
else
telinit 2
fi
end script

Okay. Let’s set up a line in the fstab to automagically mount the SMB share from Windows on boot.


//192.168.74.1/linux-shared     /home/mike/video        smb     uid=mike,gid=mike,credentials=/home/mike/.video-smbmountcred

mike@Ubuntu-VMWare:~$ ls -l .video-smbmountcred
-r-------- 1 root root 33 2008-12-22 19:40 .video-smbmountcred

Errors dont’ seem to mean antyhing important, probably just warnings.


mike@Ubuntu-VMWare:~$ sudo mount /home/mike/video
17571: session request to 192.168.74.1 failed (Called name not present)
17571: session request to 192 failed (Called name not present)
mike@Ubuntu-VMWare:~$

Added an account to the Windows side of things.  The password is actually some random-generated string.  Note that on my wireless adapters file sharing is not attached to the network stack.  I only have to be careful when I plug in to a LAN, and even then, with cryptic passwords and junk like that, it’s okay.  I can’t get too fancy on the account though because this is XP home and they disabled a lot of the fancier account management 😦

The MS Windows XP firewall blocks non-local subnet connections for file and printer sharing.  Seems to be the default.  Ditto for not allowing file and printer sharing.

Now we reboot to test it all out.  Hopefully, I won’t need to use VMWare console for anything.

….

Surprising.  The mounts come up before the network.  Hmm.

https://help.ubuntu.com/community/Fstab

Looks pretty, even includes examples, pretty similar to what I already did.  Not helpful though.  _network is “nfs-only”.

Okay, setting the /etc/fstab to noauto for the smb filesystem.  I’m putting a command in /etc/rc.local :


/bin/mount /home/mike/video

dhcdthing is required.  That’s back in there.

/boot/grub/menu.list, remove the splash option.  Reboot.

Hmph.  Still no net.  This is stupid.

Ripped out the DHCP daemon.  threw the following in /etc/rc.local before the smb mount.


/sbin/ifconfig eth0 192.168.74.128 up

Reboot.  Works perfectly.

Not that I’d ever deploy a system like that in the field.  Not that I’d deploy a system in the field with Ubuntu.

Now I can launch Cygwin/X, ssh from Windows into my Linux VM, export the display, and run Cinelerra:

Cinelerra running next to WMM on Windows.  Kinda.

Cinelerra running next to WMM on Windows. Kinda.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: