HOWTO to restore mythtv database

May 12, 2011

Mythtv database got mangled. This is how I restored it from backup database:

root@hippo:/home/iso$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.10
Release:        10.10
Codename:       maverick
You have new mail in /var/mail/root
root@hippo:/home/iso$

root@hippo:/home/iso$ mythbackend –version
Please attach all output as a file in bug reports.
MythTV Version   : 26437
MythTV Branch    : branches/release-0-23-fixes
Network Protocol : 23056
Library API      : 0.23.1.201000710-1
QT Version       : 4.7.0
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
root@hippo:/home/iso$

root@hippo:~/.mythtv#
root@hippo:~/.mythtv# cat /root/.mythtv/config.xml

<!–
Set the hostname override below only if you want to use
something other than the machine’s real hostname for identifying settings
in the database. This is useful if your hostname changes often, as
otherwise you’ll need to reconfigure mythtv every time.

NO TWO HOSTS MAY USE THE SAME VALUE
–>
localhost
mythtv
mythtv
mythconverg
0

root@hippo:~/.mythtv# cat /root/.mythtv/backuprc
DBBackupDirectory=/home/root/mytti
BUsername=mythtv
DBPassword=mythtv
root@hippo:~/.mythtv#

root@hippo:/home/iso$  /usr/share/mythtv/mythconverg_restore.pl –version
MythTV Database Restore Script
mythconverg_restore.pl
version: 1.0.13
root@hippo:/home/iso$

Note usage of these options:

–drop_database

If specified, and if the database already exists, the script will attempt
to drop the database. This argument may only be used when the
–create_database argument is also specified (see below).

–create_database

If specified, and if the database does not exist or the –drop_database
argument is specified, the script will attempt to create the initial
database. Note that database creation requires a properly configured MySQL
user and permissions.  See, also, the MythTV HOWTO (
http://www.mythtv.org/docs/ ) for details on “Setting up the initial
database.”

root@hippo:~/.mythtv# /usr/share/mythtv/mythconverg_restore.pl –verbose –drop_database –create_database  –username mythtv –filename  mythconverg-1254-20110510040002.sql.gz

Configuring environment:
–    username: root
–        HOME: /root
– MYTHCONFDIR: /root/.mythtv

Parsing configuration files:
– checking: /root/.mythtv/config.xml
parsing: /root/.mythtv/config.xml
– checking: /root/.mythtv/backuprc
parsing: /root/.mythtv/backuprc

Applying command-line arguments.

Checking configuration.

Database Information:
DBHostName: localhost
DBPort: 0
DBUserName: mythtv
DBPassword: XXX
DBName: mythconverg
DBSchemaVer:
DBBackupDirectory: /home/root/mytti
DBBackupFilename: mythconverg-1254-20110510040002.sql.gz
drop_database: yes
create_database: yes

Executables:
mysql_client: mysql
uncompress: gzip -d

Miscellaneous:
partial_restore: no
restore_xmltvids: no
change_hostname: no

Checking database.

Preparing initial database.
Dropping database.
Creating database.
Setting database character set.

Found 0 tables in the database.

Backup file is compressed.
– Uncompressing backup file with IO::Uncompress::Gunzip.

Attempting to use supplied password for mysql command-line client.
Any [client] or [mysql] password specified in the MySQL options file will
take precedence.

Executing command:
‘mysql’ –defaults-extra-file=’/tmp/rdrnijWlZM’ –host=’localhost’ –user=’mythtv’ ‘mythconverg’

mysql exited with status: 0

Restored 3599 of 3599 lines.

Successfully restored backup.
root@hippo:~/.mythtv#

Advertisements

Streamzap remote settings for mythtv

January 9, 2011

UPDATE Jan 2011: See these links how to fix Ubuntu 10.10 (Maverick Meerkat) Duplicate Keypresses Issue

http://wiki.xbmc.org/index.php?title=Streamzap_PC_Remote#Xinput:_Preventing_Streamzap_from_becoming_a_keyboard

http://wiki.xbmc.org/index.php?title=Streamzap_PC_Remote#Bugs_and_Workarounds

http://wilsonet.com/?page_id=95
end update.

Streamzap remote settings on Mythbuntu. Note I programmed four colour keys at the bottom of the remote too.

mythtv@osmo:~/.lirc$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
mythtv@osmo:~/.lirc$ mythfrontend –version
xprop: unable to open display ”
Please include all output in bug reports.
MythTV Version : 24158
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 56
Library API : 0.23.20100314-1
QT Version : 4.6.2
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
mythtv@osmo:~/.lirc$

mythtv@osmo:~/.lirc$ cat mythtv
# LIRCRC Auto Generated by Mythbuntu Lirc Generator
# Author(s): Mario Limonciello, Nick Fox, John Baab
# Created for use with Mythbuntu
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 0
config = 0
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 1
config = 1
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 2
config = 2
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 3
config = 3
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 4
config = 4
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 5
config = 5
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 6
config = 6
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 7
config = 7
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 8
config = 8
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 9
config = 9
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = MUTE
config = |
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = CH_UP
config = Up
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = VOL_UP
config = ]
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = CH_DOWN
config = Down
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = VOL_DOWN
config = [
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = UP
config = Up
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = LEFT
config = Left
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = OK
config = Return
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = RIGHT
config = Right
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = DOWN
config = Down
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = MENU
config = M
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = EXIT
config = Escape
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = PLAY
config = P
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = PAUSE
config = P
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = STOP
config = Escape
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = RECORD
config = R
repeat = 0
delay = 0
end

# Info
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = GREEN
repeat = 2
config = I
end

# Seek to previous commercial cut point
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = YELLOW
repeat = 2
config = Q
end

# Seek to next commercial cut point
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = BLUE
repeat = 2
config = Z
end

# Toggle close caption
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = RED
repeat = 2
config = T
end

mythtv@osmo:~/.lirc$

NVIDIA FX5200 driver settings from Maverick 10.10 backend install

December 21, 2010

Some notes just for future Ubuntu upgrades:

mythtv@hippo:/proc/driver/nvidia$ l
total 0
dr-xr-xr-x 4 root root 0 2010-12-21 12:06 ..
dr-xr-xr-x 6 root root 0 2010-12-21 12:06 .
dr-xr-xr-x 2 root root 0 2010-12-21 12:06 warnings
-r–r–r– 1 root root 0 2010-12-21 12:06 version
-r–r–r– 1 root root 0 2010-12-21 12:06 registry
dr-xr-xr-x 2 root root 0 2010-12-21 12:06 patches
dr-xr-xr-x 2 root root 0 2010-12-21 12:06 cards
dr-xr-xr-x 2 root root 0 2010-12-21 12:06 agp

mythtv@hippo:/proc/driver/nvidia$ cat version
NVRM version: NVIDIA UNIX x86 Kernel Module 173.14.28 Wed Sep 29 09:47:25 PDT 2010
GCC version: gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)

mythtv@hippo:/proc/driver/nvidia$ cat cards/0
Model: GeForce FX 5200
IRQ: 10
Video BIOS: 04.34.20.18.07
Card Type: AGP
DMA Size: 32 bits
DMA Mask: 0xffffffff
Bus Location: 01.00.0
mythtv@hippo:/proc/driver/nvidia$

mythtv@hippo:/etc/apt/sources.list.d$ uname -a
Linux hippo 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 GNU/Linux

mythtv@hippo:/etc/apt/sources.list.d$ ls -ls /var/lib/dkms/nvidia-173/173.14.28/2.6.35-24-generic/i686/module/nvidia-173.ko

7692 -rw-r–r– 1 root root 7875104 2010-12-20 18:29 /var/lib/dkms/nvidia-173/173.14.28/2.6.35-24-generic/i686/module/nvidia-173.ko

mythtv@hippo:/etc/apt/sources.list.d$ modinfo /var/lib/dkms/nvidia-173/173.14.28/2.6.35-24-generic/i686/module/nvidia-173.ko
filename: /var/lib/dkms/nvidia-173/173.14.28/2.6.35-24-generic/i686/module/nvidia-173.ko
alias: char-major-195-*
supported: external
license: NVIDIA
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: agpgart
vermagic: 2.6.35-24-generic SMP mod_unload modversions 686
parm: NVreg_EnableVia4x:int
parm: NVreg_EnableALiAGP:int
parm: NVreg_ReqAGPRate:int
parm: NVreg_EnableAGPSBA:int
parm: NVreg_EnableAGPFW:int
parm: NVreg_Mobile:int
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_RmLogonRC:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_RemapLimit:int
parm: NVreg_UpdateMemoryTypes:int
parm: NVreg_UseVBios:int
parm: NVreg_RMEdgeIntrCheck:int
parm: NVreg_UsePageAttributeTable:int
parm: NVreg_MapRegistersEarly:int
parm: NVreg_RegistryDwords:charp
parm: NVreg_NvAGP:int
mythtv@hippo:/etc/apt/sources.list.d$

mythtv@hippo:/etc/apt/sources.list.d$ modinfo /lib/modules/2.6.35-24-generic/kernel/drivers/video/nvidia.ko
filename: /lib/modules/2.6.35-24-generic/kernel/drivers/video/nvidia.ko
alias: char-major-195-*
supported: external
license: NVIDIA
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: agpgart
vermagic: 2.6.35-24-generic SMP mod_unload modversions 686
parm: NVreg_EnableVia4x:int
parm: NVreg_EnableALiAGP:int
parm: NVreg_ReqAGPRate:int
parm: NVreg_EnableAGPSBA:int
parm: NVreg_EnableAGPFW:int
parm: NVreg_Mobile:int
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_RmLogonRC:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_RemapLimit:int
parm: NVreg_UpdateMemoryTypes:int
parm: NVreg_UseVBios:int
parm: NVreg_RMEdgeIntrCheck:int
parm: NVreg_UsePageAttributeTable:int
parm: NVreg_MapRegistersEarly:int
parm: NVreg_RegistryDwords:charp
parm: NVreg_NvAGP:int
mythtv@hippo:/etc/apt/sources.list.d$

mythtv@hippo:/etc/apt/sources.list.d$ dpkg -l libvdp*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-=================================-==================================================================================
ii libvdpau-dev 0.4-5ubuntu1 Video Decode and Presentation API for Unix (development files)
ii libvdpau-doc 0.4-5ubuntu1 Video Decode and Presentation API for Unix (documentation)
ii libvdpau1 0.4-5ubuntu1 Video Decode and Presentation API for Unix (libraries)
mythtv@hippo:/etc/apt/sources.list.d$ dpkg -l nvidia*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-=================================-==================================================================================
ii nvidia-173 173.14.28-0ubuntu1 NVIDIA binary Xorg driver, kernel module and VDPAU library
un nvidia-173-dev (no description available)
un nvidia-173-modaliases (no description available)
un nvidia-185-libvdpau (no description available)
un nvidia-185-libvdpau-dev (no description available)
un nvidia-96-modaliases (no description available)
rc nvidia-common 0.2.23 Find obsolete NVIDIA drivers
rc nvidia-current 260.19.06-0ubuntu1 NVIDIA binary Xorg driver, kernel module and VDPAU library
un nvidia-current-dev (no description available)
un nvidia-current-modaliases (no description available)
un nvidia-glx-173 (no description available)
un nvidia-libvdpau (no description available)
un nvidia-libvdpau-dev (no description available)
un nvidia-libvdpau-ia32 (no description available)
un nvidia-libvdpau1 (no description available)
un nvidia-libvdpau1-ia32 (no description available)
ii nvidia-settings 260.19.29-0ubuntu1~xup Tool of configuring the NVIDIA graphics driver
un nvidia-vdpau-driver (no description available)
mythtv@hippo:/etc/apt/sources.list.d$ lsmod|grep nvidia
nvidia 7088432 24
agpgart 32011 2 nvidia,via_agp
mythtv@hippo:/etc/apt/sources.list.d$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
mythtv@hippo:/etc/apt/sources.list.d$ dpkg -l mythtv*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-=================================-==================================================================================
ii mythtv 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (client and server)
ii mythtv-backend 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (server)
ii mythtv-common 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (common data)
ii mythtv-database 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (database)
un mythtv-doc (no description available)
ii mythtv-frontend 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (client)
ii mythtv-theme-arclight 1:0.23.0+fixes23872-0ubuntu1 The arclight MythTV Theme
un mythtv-theme-blootube (no description available)
ii mythtv-theme-blootube-osd 1:0.23.0+fixes23872-0ubuntu1 The blootube-osd MythTV Theme
un mythtv-theme-blootube-wide (no description available)
un mythtv-theme-blootubelite-wide (no description available)
ii mythtv-theme-blueosd 1:0.23.0+fixes23872-0ubuntu1 The blueosd MythTV Theme
un mythtv-theme-glass-wide (no description available)
ii mythtv-theme-graphite 1:0.23.0+fixes23872-0ubuntu1 The graphite MythTV Theme
un mythtv-theme-gray-osd (no description available)
un mythtv-theme-isthmus (no description available)
un mythtv-theme-iulius (no description available)
ii mythtv-theme-iulius-osd 1:0.23.0+fixes23872-0ubuntu1 The iulius-osd MythTV Theme
ii mythtv-theme-metallurgy 1:0.23.0+fixes23872-0ubuntu1 The metallurgy MythTV Theme
un mythtv-theme-minimalist-wide (no description available)
ii mythtv-theme-mono-osd 1:0.23.0+fixes23872-0ubuntu1 The mono-osd MythTV Theme
ii mythtv-theme-mythbuntu 1:0.23.0+fixes23872-0ubuntu1 The mythbuntu MythTV Theme
un mythtv-theme-mythcenter (no description available)
un mythtv-theme-mythcenter-wide (no description available)
un mythtv-theme-neon-wide (no description available)
un mythtv-theme-proejctgrayhem-wide (no description available)
un mythtv-theme-projectgrayhem (no description available)
ii mythtv-theme-projectgrayhem-osd 1:0.23.0+fixes23872-0ubuntu1 The projectgrayhem-osd MythTV Theme
un mythtv-theme-retro (no description available)
ii mythtv-theme-retro-osd 1:0.23.0+fixes23872-0ubuntu1 The retro-osd MythTV Theme
un mythtv-theme-titivillus (no description available)
ii mythtv-theme-titivillus-osd 1:0.23.0+fixes23872-0ubuntu1 The titivillus-osd MythTV Theme
ii mythtv-themes 1:0.23.0+fixes23872-0ubuntu1 Themes for MythTV
ii mythtv-transcode-utils 0.23.1+fixes26437-0ubuntu1 Utilities used for transcoding MythTV tasks
mythtv@hippo:/etc/apt/sources.list.d$

How to get mythfrontend from maverick PPA to work on LinuxMint Isadora with Maverick 10.10 backend

December 21, 2010

Sometimes I use underpowered laptop running Mint Isadora (fluxbox WM) to watch mythtv recordings. My backend runs Maverick 10.10 Ubuntu.

Mint Isadora’s code base is Ubuntu 10.04 (Lucid).

Frontend on laptop:

pompeli sources.list.d # lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 9 Isadora
Release: 9
Codename: isadora
pompeli sources.list.d # pwd
/etc/apt/sources.list.d
pompeli sources.list.d #

Add this:

pompeli sources.list.d # cat mythbuntu-0.23.1-isadora.list
deb http://ppa.launchpad.net/mythbuntu/0.23.1/ubuntu lucid main
pompeli sources.list.d #

Usual stuff:

pompeli ~ # apt-get update
Fetched 79.7kB in 4s (17.9kB/s)
Reading package lists… Done

First remove old non-compatible version:

pompeli ~ # apt-get remove mythtv-frontend
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
pwgen mythtv-common libmyth-0.23-0 wmctrl libvdpau1 ttf-droid
Use ‘apt-get autoremove’ to remove them.
The following packages will be REMOVED:
mythtv-frontend
0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded.
After this operation, 12.9MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database … 128305 files and directories currently installed.)
Removing mythtv-frontend …
Processing triggers for menu …
Processing triggers for desktop-file-utils …

Install new:

pompeli ~ # apt-get install mythtv-frontend
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libmyth-0.23-0
Suggested packages:
mythtv-backend mythmusic mythweather mythgallery mythvideo mythgame
The following NEW packages will be installed:
mythtv-frontend
The following packages will be upgraded:
libmyth-0.23-0
1 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 14.7MB of archives.
After this operation, 12.9MB of additional disk space will be used.
Do you want to continue [Y/n]?
WARNING: The following packages cannot be authenticated!
libmyth-0.23-0 mythtv-frontend
Authentication warning overridden.
Get:1 http://ppa.launchpad.net/mythbuntu/0.23.1/ubuntu/ lucid/main libmyth-0.23-0 0.23.1+fixes26863-0ubuntu0+mythbuntu2 [10.7MB]
Get:2 http://ppa.launchpad.net/mythbuntu/0.23.1/ubuntu/ lucid/main mythtv-frontend 0.23.1+fixes26863-0ubuntu0+mythbuntu2 [3,964kB]
Fetched 14.7MB in 1min 30s (163kB/s)
Preconfiguring packages …
(Reading database … 128250 files and directories currently installed.)
Preparing to replace libmyth-0.23-0 0.23.0++fixes25362-0ubuntu0++mythbuntu2 (using …/libmyth-0.23-0_0.23.1+fixes26863-0ubuntu0+mythbuntu2_i386.deb) …
Unpacking replacement libmyth-0.23-0 …
Selecting previously deselected package mythtv-frontend.
Unpacking mythtv-frontend (from …/mythtv-frontend_0.23.1+fixes26863-0ubuntu0+mythbuntu2_i386.deb) …
Processing triggers for menu …
Processing triggers for desktop-file-utils …
Setting up libmyth-0.23-0 (0.23.1+fixes26863-0ubuntu0+mythbuntu2) …

Setting up mythtv-frontend (0.23.1+fixes26863-0ubuntu0+mythbuntu2) …

Processing triggers for libc-bin …
ldconfig deferred processing now taking place
Processing triggers for menu …

Check version:

mythtv@pompeli:~$ mythfrontend –version
xprop: unable to open display ”
Please attach all output as a file in bug reports.
MythTV Version : 26863
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1
QT Version : 4.6.2
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
mythtv@pompeli:~$

Matches backend version:

mythtv@hippo:~$ mythfrontend –version
xprop: unable to open display ”
Please attach all output as a file in bug reports.
MythTV Version : 26437
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1
QT Version : 4.7.0
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
mythtv@hippo:~$

mythtv@hippo:~$ /usr/bin/mythbackend –version
Please attach all output as a file in bug reports.
MythTV Version : 26437
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1
QT Version : 4.7.0
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
mythtv@hippo:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
mythtv@hippo:~$

mythfrontend.real: error while loading shared libraries: libvdpau.so.1

December 21, 2010

UPDATE Dec 2010: I ran into this same problem when updating from 10.4 Lucid to 10.10 Maverick.
The trick is just to reinstall libvdpau1 using synaptic. End update.

There are many users posting reports about this problem and I could not find any real resolutions… Here is a good example:

http://ubuntu-ky.ubuntuforums.org/showthread.php?p=8048972

I think this is what fixed it on my system (I did not take real notes about this):

Uninstall libvdpau

Uninstall nvidia drivers (if any)

Reinstall nvidia drivers

Reinstall libvdpau.

My working pkgs (Ubuntu 10.4 Lucid mythtv 0.23):

root@hippo:~# dpkg -l libvdpau*

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name Version Description

ii libvdpau-doc 0.3-2build1 Video Decode and Presentation API for Unix (documentation)

ii libvdpau1 0.3-2build1 Video Decode and Presentation API for Unix (libraries)

root@hippo:~# dpkg -l nvdia*

No packages found matching nvdia*.

root@hippo:~# dpkg -l nvidia*

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name Version Description

ii nvidia-173 173.14.22-0ubuntu11 NVIDIA binary Xorg driver, kernel module and VDPAU library

rc nvidia-current 195.36.15-0ubuntu3 NVIDIA binary Xorg driver, kernel module and VDPAU library

ii nvidia-current-modaliases 195.36.15-0ubuntu3 Modaliases for the NVIDIA binary X.Org driver

un nvidia-libvdpau (no description available)

un nvidia-libvdpau-ia32 (no description available)

un nvidia-libvdpau1 (no description available)

ii nvidia-settings 195.36.08-0ubuntu2 Tool of configuring the NVIDIA graphics driver

un nvidia-vdpau-driver (no description available)

root@hippo:~# dpkg -l libvdpau*

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name Version Description

ii libvdpau-doc 0.3-2build1 Video Decode and Presentation API for Unix (documentation)

ii libvdpau1 0.3-2build1 Video Decode and Presentation API for Unix (libraries)

root@hippo:~# dpkg -l mythtv*

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name Version Description

ii mythtv 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (client and server)

ii mythtv-backend 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (server)

ii mythtv-common 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (common data)

ii mythtv-database 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (database)

un mythtv-doc (no description available)

ii mythtv-frontend 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (client)

ii mythtv-theme-arclight 1:0.23.0+fixes23872-0ubuntu1 The arclight MythTV Theme

un mythtv-theme-blootube (no description available)

ii mythtv-theme-blootube-osd 1:0.23.0+fixes23872-0ubuntu1 The blootube-osd MythTV Theme

un mythtv-theme-blootube-wide (no description available)

un mythtv-theme-blootubelite-wide (no description available)

ii mythtv-theme-blueosd 1:0.23.0+fixes23872-0ubuntu1 The blueosd MythTV Theme

un mythtv-theme-glass-wide (no description available)

ii mythtv-theme-graphite 1:0.23.0+fixes23872-0ubuntu1 The graphite MythTV Theme

un mythtv-theme-gray-osd (no description available)

un mythtv-theme-isthmus (no description available)

un mythtv-theme-iulius (no description available)

ii mythtv-theme-iulius-osd 1:0.23.0+fixes23872-0ubuntu1 The iulius-osd MythTV Theme

ii mythtv-theme-metallurgy 1:0.23.0+fixes23872-0ubuntu1 The metallurgy MythTV Theme

un mythtv-theme-minimalist-wide (no description available)

ii mythtv-theme-mono-osd 1:0.23.0+fixes23872-0ubuntu1 The mono-osd MythTV Theme

ii mythtv-theme-mythbuntu 1:0.23.0+fixes23872-0ubuntu1 The mythbuntu MythTV Theme

un mythtv-theme-mythcenter (no description available)

un mythtv-theme-mythcenter-wide (no description available)

un mythtv-theme-neon-wide (no description available)

un mythtv-theme-proejctgrayhem-wide (no description available)

un mythtv-theme-projectgrayhem (no description available)

ii mythtv-theme-projectgrayhem-osd 1:0.23.0+fixes23872-0ubuntu1 The projectgrayhem-osd MythTV Theme

un mythtv-theme-retro (no description available)

ii mythtv-theme-retro-osd 1:0.23.0+fixes23872-0ubuntu1 The retro-osd MythTV Theme

un mythtv-theme-titivillus (no description available)

ii mythtv-theme-titivillus-osd 1:0.23.0+fixes23872-0ubuntu1 The titivillus-osd MythTV Theme

ii mythtv-themes 1:0.23.0+fixes23872-0ubuntu1 Themes for MythTV

ii mythtv-transcode-utils 0.23.0+fixes24158-0ubuntu2 Utilities used for transcoding MythTV tasks

root@hippo:~#

Using Compact Flash with Ubuntu

October 8, 2010

Some notes about using SanDisk Extreme III 4GB 30MB/s CF card on Ubuntu.

Actually I was using lighter Lubuntu 10.4 with openbox windowmanager since my system is underpowered VIA C3 Nehemiah 665MHz:

root@ismo:~# dmesg |grep Nehe
[    0.446812] longhaul: VIA C3 'Nehemiah B' [C5XLOH] CPU detected.  Powersaver supported.
root@ismo:~#

root@ismo:~# lscpu
Architecture:          i686
CPU(s):                1
Thread(s) per core:    1
Core(s) per socket:    1
CPU socket(s):         1
Vendor ID:             CentaurHauls
CPU family:            6
Model:                 9
Stepping:              3
CPU MHz:               665.000

root@ismo:~# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8623 [Apollo CLE266]
00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
00:0d.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev 80)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
01:00.0 VGA compatible controller: VIA Technologies, Inc. VT8623 [Apollo CLE266] integrated CastleRock graphics (rev 03)
root@ismo:~#

root@ismo:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.1 LTS
Release:        10.04
Codename:       lucid
root@ismo:~#


root@ismo:~# uname -a
Linux ismo 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux
root@ismo:~#

SanDisk detected in boot:

root@ismo:~# dmesg |grep SanDisk
[    3.292664] ata1.00: CFA: SanDisk SDCFX3-004G, HDX 4.32, max UDMA/66
[    3.293754] scsi 0:0:0:0: Direct-Access     ATA      SanDisk SDCFX3-0 HDX  PQ: 0 ANSI: 5

Note UDMA/66. But according to this link:

http://kb.sandisk.com/app/answers/detail/a_id/262

my card does not support DMA.

So first go here:

http://www.mjmwired.net/kernel/Documentation/kernel-parameters.txt

search for “CF”. And disable DMA altogether like this:

Add libata.dama=0 in this file:

root@ismo:~# cat /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
libata.dma=0
root@ismo:~#

and reboot:

root@ismo:~# dmesg |grep command
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-25-generic root=UUID=b59249ce-9490-400d-a435-4c6669cb53ed ro splash libata.dma=0

hdparm test gives me this:

root@ismo:~# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   194 MB in  2.00 seconds =  96.90 MB/sec
 Timing buffered disk reads:   12 MB in  3.53 seconds =   3.40 MB/sec
root@ismo:~#

If you dont have DMA disabled with this CF card you’ll get very slow boot up times since Linux kernel keeps probing CF card for DMA quite some time:

root@ismo:/var/log# grep  -i UDMA messages
Oct  7 12:06:05 ismo kernel: [    3.252649] ata1.00: CFA: SanDisk SDCFX3-004G, HDX 4.32, max UDMA/66
Oct  7 12:06:05 ismo kernel: [    3.253244] ata1.00: configured for UDMA/66
Oct  7 12:06:05 ismo kernel: [   34.021251] ata1.00: configured for UDMA/66
Oct  7 12:06:05 ismo kernel: [   64.867333] ata1.00: limiting speed to UDMA/44:PIO4
Oct  7 12:06:05 ismo kernel: [   65.021184] ata1.00: configured for UDMA/44
Oct  7 12:06:05 ismo kernel: [   95.867339] ata1.00: limiting speed to UDMA/33:PIO4
Oct  7 12:06:05 ismo kernel: [   96.021202] ata1.00: configured for UDMA/33
root@ismo:/var/log#

From /var/log/kern.log:

Oct  7 11:05:10 ismo kernel: [    3.273619] scsi 0:0:0:0: Direct-Access     ATA      SanDisk SDCFX3-0 HDX  PQ: 0 ANSI: 5
Oct  7 11:05:10 ismo kernel: [    3.274175] sd 0:0:0:0: Attached scsi generic sg0 type 0
Oct  7 11:05:10 ismo kernel: [    3.275210] sd 0:0:0:0: [sda] 8027712 512-byte logical blocks: (4.11 GB/3.82 GiB)
Oct  7 11:05:10 ismo kernel: [    3.275338] sd 0:0:0:0: [sda] Write Protect is off
Oct  7 11:05:10 ismo kernel: [    3.275350] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Oct  7 11:05:10 ismo kernel: [    3.275413] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Oct  7 11:05:10 ismo kernel: [    3.276307]  sda:
Oct  7 11:05:10 ismo kernel: [    4.480411] ieee1394: Host added: ID:BUS[0-00:1023]  GUID[004063f000000481]
Oct  7 11:05:10 ismo kernel: [   33.816090] ata1: lost interrupt (Status 0x58)
Oct  7 11:05:10 ismo kernel: [   33.820019] ata1: drained 32768 bytes to clear DRQ.
Oct  7 11:05:10 ismo kernel: [   33.867340] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
Oct  7 11:05:10 ismo kernel: [   33.867356] ata1.00: failed command: READ DMA
Oct  7 11:05:10 ismo kernel: [   33.867381] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
Oct  7 11:05:10 ismo kernel: [   33.867387]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
Oct  7 11:05:10 ismo kernel: [   33.867400] ata1.00: status: { DRDY }
Oct  7 11:05:10 ismo kernel: [   33.867443] ata1: soft resetting link
Oct  7 11:05:10 ismo kernel: [   34.021243] ata1.00: configured for UDMA/66
Oct  7 11:05:10 ismo kernel: [   34.021260] ata1.00: device reported invalid CHS sector 0
Oct  7 11:05:10 ismo kernel: [   34.021285] ata1: EH complete
Oct  7 11:05:10 ismo kernel: [   64.816089] ata1: lost interrupt (Status 0x58)
Oct  7 11:05:10 ismo kernel: [   64.820020] ata1: drained 32768 bytes to clear DRQ.
Oct  7 11:05:10 ismo kernel: [   64.867335] ata1.00: limiting speed to UDMA/44:PIO4
Oct  7 11:05:10 ismo kernel: [   64.867349] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
Oct  7 11:05:10 ismo kernel: [   64.867364] ata1.00: failed command: READ DMA
Oct  7 11:05:10 ismo kernel: [   64.867390] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
Oct  7 11:05:10 ismo kernel: [   64.867396]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
Oct  7 11:05:10 ismo kernel: [   64.867408] ata1.00: status: { DRDY }
Oct  7 11:05:10 ismo kernel: [   64.867450] ata1: soft resetting link
Oct  7 11:05:10 ismo kernel: [   65.021184] ata1.00: configured for UDMA/44
Oct  7 11:05:10 ismo kernel: [   65.021200] ata1.00: device reported invalid CHS sector 0
Oct  7 11:05:10 ismo kernel: [   65.021232] ata1: EH complete
Oct  7 11:05:10 ismo kernel: [   95.816093] ata1: lost interrupt (Status 0x58)
Oct  7 11:05:10 ismo kernel: [   95.820019] ata1: drained 32768 bytes to clear DRQ.
Oct  7 11:05:10 ismo kernel: [   95.867333] ata1.00: limiting speed to UDMA/33:PIO4
Oct  7 11:05:10 ismo kernel: [   95.867346] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
Oct  7 11:05:10 ismo kernel: [   95.867361] ata1.00: failed command: READ DMA
Oct  7 11:05:10 ismo kernel: [   95.867386] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
Oct  7 11:05:10 ismo kernel: [   95.867392]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
Oct  7 11:05:10 ismo kernel: [   95.867404] ata1.00: status: { DRDY }
Oct  7 11:05:10 ismo kernel: [   95.867444] ata1: soft resetting link
Oct  7 11:05:10 ismo kernel: [   96.021187] ata1.00: configured for UDMA/33
Oct  7 11:05:10 ismo kernel: [   96.021202] ata1.00: device reported invalid CHS sector 0
Oct  7 11:05:10 ismo kernel: [   96.021232] ata1: EH complete
Oct  7 11:05:10 ismo kernel: [  126.816088] ata1: lost interrupt (Status 0x58)
Oct  7 11:05:10 ismo kernel: [  126.820019] ata1: drained 32768 bytes to clear DRQ.
Oct  7 11:05:10 ismo kernel: [  126.867334] ata1.00: limiting speed to PIO4
Oct  7 11:05:10 ismo kernel: [  126.867347] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
Oct  7 11:05:10 ismo kernel: [  126.867362] ata1.00: failed command: READ DMA
Oct  7 11:05:10 ismo kernel: [  126.867387] ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
Oct  7 11:05:10 ismo kernel: [  126.867394]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
Oct  7 11:05:10 ismo kernel: [  126.867406] ata1.00: status: { DRDY }

 

 

 

 

Making Ubuntu Lucid 10.04 stable

June 16, 2010

These kernel parameters made my Lucid stable:

root@hippo:~$ dmesg |grep "command line"
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-22-generic \
root=UUID=dcfa191a-0318-4062-986c-d6db2474382a ro \
nomodeset noapic
root@hippo:~$ grep noapic /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset noapic"
root@hippo:~$

Remember to run update-grub after making chnages.

Howto to allow remote mythtv frontends connect to backend?

June 10, 2010

This is asked about gazillion times in the web… But very infrequent good answers/resolutions.. So here we go…

On the machine you’re running mysql (typically the same machine as your MythTV master backend server), you need to allow mysql connections from other hosts on your network.

$ mysql -u root -p mythconverg
mysql> grant all on mythconverg.* to mythtv@"192.168.2.%" identified by "mythtv";
mysql> flush privileges;
mysql> quit 

Samsung ML-2510 and red error light

January 8, 2010

So you replaced ML-2510 cartridge, but red error lilght is still on and printer does not work?

There is very simple solution. You just need to replace fuse in cartridge.

See this thread for details. Search for “radio” or “fuse”.

https://secure.fixyourownprinter.com/forums/laser/44978

Nice pictures about ML-2150 cartridge and how to replace fuse:

http://www.taiga.com/~m_m/printer.html

How to get CUPS to work with Samsung ML-2510 b/w laser printer on ClarkConnect Community Edition 5.0 firewall (CentOS 5.3 based)

December 22, 2009

Some backround first.

I needed to get Linux FW distro that supports CUPS out of the box and more specifically CUPS with Samsung ML-2510 support.

I used to run IPcop as firewall and then CUPS on Ubuntu box. So some HW consolidation was needed…

After quite extensive research I found ClarkConnect Community Edition firewall that supports out of a box CUPS. I think it is the only one?

CUPS support on ClarkConnect is not well documented and Samsung PPD file from my working Ubuntu based CUPS print server did not work at all.

After spending couple of days on this here is how to get it to work (I may have missed some steps in this writeup):

For Samsung printers you need download and build Splix on ClarkConnect (apparently my Ubuntu had these files included.):

http://splix.sourceforge.net/

SpliX is a set of CUPS printer drivers for SPL (Samsung Printer Language) printers. If you have a such printer, you need to download and use SpliX.

From Splix INSTALL file:

If you're using a distribution with a real package manager you need to
install the cups developement package (libcups...-devel or something like that).
To finish the libjbig is needed if the JBIG algorithm compilation isn't
disabled.


Summary:
* CUPS
* libcups
* libjbig (If the JBIG algorithm compilation isn't disabled)

So first disable JBIGLIB in module.mk in splix src files (I could not get to compile otherwise):


# module.mk (C) 2007-2008, Aurélien Croc (AP²C)
#
# Compilation file for SpliX
#
# Options: DISABLE_JBIG
# DISABLE_THREADS
# DISABLE_BLACKOPTIM
# Compilation option:
# V=1 Verbose mode
# DESTDIR=xxx Change the destination directory prefix

MODE := optimized

SUBDIRS += src
TARGETS := rastertoqpdl pstoqpdl
PRE_GENERIC_TARGETS := optionList

# Default options
THREADS ?= 2
CACHESIZE ?= 30
DISABLE_JBIG ?= 1 (<======= set this to one (1) to disable
DISABLE_THREADS ?= 0
DISABLE_BLACKOPTIM ?= 0

My ClarkConnect details:


[root@firewall splix-2.0.0]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.3 (Final)
Release: 5.3
Codename: Final
[root@firewall splix-2.0.0]#

I built splix on Ubuntu box since ClarkConnect does not come with full dev tools and just tarred up splix folder and scp’ed it to my ClarkConnect box.

Before “make install” works on ClarkConnect you need to install cups-devel (make install needs cups-config):

As root run on ClarkConnect:

yum install cups-devel

My CUPS rpms:


[root@firewall cups]# rpm -qa|grep -i cups
cups-1.3.7-8.3.v5
app-cups-5.0-10
cups-devel-1.3.7-8.3.v5
cups-libs-1.3.7-8.3.v5
[root@firewall cups]#

Then “make install” as root in splix subdir on firewall.

make -n install showed here for reference:

[root@firewall splix-2.0.0]# make -n install
mkdir -p `cups-config --serverbin`/filter
echo " INSTALL optimized/rastertoqpdl"
install -m 755 -s optimized/rastertoqpdl `cups-config --serverbin`/filter
echo " INSTALL optimized/pstoqpdl"
install -m 755 -s optimized/pstoqpdl `cups-config --serverbin`/filter
make --no-print-directory -C ppd install Q=@ \
DESTDIR= DISABLE_JBIG=1
echo " INSTALL Samsung PPD files"
install -d -m 755 `cups-config --datadir`/model/samsung
for filename in clp500 clp550 clp510 clp610 ml1510 ml1520 ml1610 ml1630 ml1640 ml1710 ml1740 ml1750 ml2010 ml2150 ml2250 ml2251 ml2510 ml2550 ml3050 ml3560 scx4200 scx4500; do \
install -m 644 $filename.ppd `cups-config --datadir`/model/samsung;\
for lang in fr pt; do \
install -m 644 $filename$lang.ppd `cups-config --datadir`/model/samsung;\
done; \
done;
echo " INSTALL Xerox PPD files"
install -d -m 755 `cups-config --datadir`/model/xerox
for filename in ph3115 ph3116 ph3117 ph3120 ph3121 ph3122 ph3130 ph3150 ph3160 ph3420 ph3425 ph5500 ph6100 wc3119; do \
install -m 644 $filename.ppd `cups-config --datadir`/model/xerox;\
for lang in fr pt; do \
install -m 644 $filename$lang.ppd `cups-config --datadir`/model/xerox;\
done; \
done;
echo " INSTALL Dell PPD files"
install -d -m 755 `cups-config --datadir`/model/dell
for filename in 1100 1110; do \
install -m 644 $filename.ppd `cups-config --datadir`/model/dell;\
for lang in fr pt; do \
install -m 644 $filename$lang.ppd `cups-config --datadir`/model/dell;\
done; \
done;
echo ""
echo "PLEASE INSTALL MANUALLY COLOR PROFILE FILES (CHECK INSTALL)"
echo " --- Everything is done! Have fun ---"
echo ""
[root@firewall splix-2.0.0]#

For Samsung ML2510 make sure you have these files after splix install:


[root@firewall splix-2.0.0]# locate 2510
/model/samsung/ml2510.ppd
/model/samsung/ml2510fr.ppd
/model/samsung/ml2510pt.ppd
/usr/share/cups/model/samsung/ml2510.ppd
/usr/share/cups/model/samsung/ml2510fr.ppd
/usr/share/cups/model/samsung/ml2510pt.ppd
[root@firewall splix-2.0.0]#

In /etc/cups/mime* files make sure octet-stream is ENABLED:


[root@firewall cups]# grep octet *
mime.convs:application/octet-stream application/vnd.cups-raw 0 -
mime.types:application/octet-stream
[root@firewall cups]#

Now with CUPS web interface configure ML2510 like this:


samsung (Default Printer)
Description: upstairs Samsung ML2510
Location: upstairs
Printer Driver: Samsung ML-2510, SpliX V. 2.0.0
Printer State: idle, accepting jobs, published.
Device URI: usb://Samsung/ML-2510%20Series

Enable Windows networking (Samba) in ClarkConnect with printers support. (Steps not shown here).

This is fairly good reference on Samba printers:
http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/Samba-HOWTO-Collection-3.0-PrintingChapter-11th-draft.pdf

You also need dummy Samba username to be able to connect to printers shared over Samba to Windows users in your home network. (I could not get CUPS IPP based printer to work on Windows clients).

In ClarkConnect Windows Networking Global settings screen set

Printing RAW (other options Disable and Point and Click)

Here are my working smb.conf and cups.conf files. They may not be optimal but they are working.

Make sure CUPS is “driving” Samba printing in smb.conf:

# Printing
printcap name = cups
#printcap name = /etc/printcap
load printers = Yes


[root@firewall samba]# cat smb.conf
[global]
# General
netbios name = some_string
workgroup = WORKGROUP
server string = SOME_STRING
# Logging
syslog = 0
log level = 8
log file = /var/log/samba/%L-%m
max log size = 0
utmp = Yes

# Network
bind interfaces only = yes
interfaces = lo eth1
smb ports = 139

# Printing
printcap name = cups
#printcap name = /etc/printcap
load printers = Yes

# Security settings
security = user
guest account = guest
#restrict anonymous = 2

# WINS
wins support = No
wins server =

# PDC
domain logons = No
#domain logons = Yes
add machine script = /usr/sbin/samba-add-machine “%u”
logon drive = U:
logon script = logon.cmd
logon path =
logon home = \\%L\%U

# Other
preferred master = Yes
domain master = Yes
unix password sync = Yes
passwd program = /usr/sbin/userpasswd %u
passwd chat = *password:* %n\n *password:* %n\n *successfully.*
username map = /etc/samba/smbusers

# LDAP
include = /etc/samba/smb.ldap.conf

# Winbind
include = /etc/samba/smb.winbind.conf

#============================ Share Definitions ==============================

include = /etc/samba/flexshare.conf

[homes]
comment = Home Directories
path = /home/%U
valid users = %D\%S
read only = No
browseable = No
available = Yes

[printers]
cups options = raw
comment = Print Spool
path = /var/spool/samba
printing = cups
public = yes
guest ok = yes
guest only = yes
use client driver = Yes
printable = Yes
read only = No
browseable = Yes
available = Yes

[print$]
comment = Printer Drivers
path = /var/samba/drivers
read only = Yes
browseable = Yes
available = Yes

[netlogon]
comment = Network Logon Service
path = /var/samba/netlogon
read only = No
locking = No
browseable = No
available = No

[profiles]
comment = Profile Share
path = /var/samba/profiles
read only = No
profile acls = Yes
browseable = No
available = No
[root@firewall samba]#

Here is cups.conf:


[root@firewall samba]# cat /etc/cups/cupsd.conf
MaxLogSize 2000000000
#LogLevel debug
LogLevel info
SystemGroup sys root
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another subnet.)
BrowseAllow @LOCAL
DefaultAuthType Basic
# Allow remote access
Port 631
Include /etc/cups/cupsd.listen.conf
Include /etc/cups/cupsd.location.conf
Include /etc/cups/cupsd.policy.conf
# Allow remote administration...
# Order allow,deny
# Allow @LOCAL
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.2.0/24
# Allow remote administration...
Order allow,deny
Allow @LOCAL

# Allow remote access to the configuration files…

AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @LOCAL

root@firewall samba]#