mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #08054
[Bug 1186824] Re: Mythtv-setup fails to launch unless sudo command is given
So the Mythtv-backend-setup icon option still hangs and you have to give
sudo command in terminal to launch backend setup.
However did get the backend to finally run at start up as well as get
the frontend to connect properly. Basically had to treat the install as
if it was totally manual. Purged mythtv and mysql from system. Did sudo
apt-get install mythtv. Followed this up with mysql and database steps
listed here:
http://www.mythtv.org/wiki/User_Manual:Initial_Installation
Creating the mythtv user
to run MythTV as its own user I created one (so the backend doesnt run
as root)
sudo useradd mythtv
MythTV database setup
You have to create a file for mythtv for database connections ~mythtv/.mythtv/mysql.txt
Script.png ~mythtv/.mythtv/mysql.txt
DBHostName=localhost
# By default, Myth tries to ping the DB host to see if it exists.
# If your DB host or network doesn't accept pings, set this to no:
#
DBHostPing=no
DBHostName=localhost
DBUserName=mythtv
DBName=mythconverg
DBPassword=mythtv
# Set the following if you want to use something other than this
# machine's real hostname for identifying settings in the database.
# This is useful if your hostname changes often, as otherwise you
# will need to reconfigure mythtv (or futz with the DB) every time.
# TWO HOSTS MUST NOT USE THE SAME VALUE
#
LocalHostName=MYCOOLMYTHTVHOST
# If you want your frontend to be able to wake your MySQL server
# using WakeOnLan, have a look at the following settings:
#
#
# The time the frontend waits (in seconds) between reconnect tries.
# This should be the rough time your MySQL server needs for startup
#
#WOLsqlReconnectWaitTime=0
#
#
# This is the number of retries to wake the MySQL server
# until the frontend gives up
#
#WOLsqlConnectRetry=5
#
#
# This is the command executed to wake your MySQL server.
#
#WOLsqlCommand=echo 'WOLsqlServerCommand not set'
Then you have to create a database and let the user set above access it
mysql -u root -p
create database mythconverg;
create user 'mythtv'@'%' identified by 'mythtv';
create user 'mythtv'@'localhost' identified by 'mythtv';
set password for 'mythtv'@'%' = password('mythtv');
set password for 'mythtv'@'localhost' = password('mythtv');
connect mythconverg;
grant all privileges on *.* to 'mythtv'@'%' with grant option;
grant all privileges on *.* to 'mythtv'@'localhost' with grant option;
flush privileges;
exit;
Run mythbackend to test. This will automatically upgrade your previous
mythconverg database schema to the latest version:
mythbackend
If mythbackend is running OK, test mythfrontend:
mythfrontend
Followed this with modification for "upstart" listed here:
http://www.mythtv.org/wiki/Upstart_mythbackend_Configuration
Now front and backend work, tuners work, playback works etc. However still have to use the sudo command to launch backend setup.
--
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythtv in Ubuntu.
https://bugs.launchpad.net/bugs/1186824
Title:
Mythtv-setup fails to launch unless sudo command is given
Status in “mythtv” package in Ubuntu:
New
Bug description:
Icon launcher or terminal command "mythtv-setup" hang at startup
unless termal command "sudo mythtv-setup" is used.
backend fails to autostart and even when service command is given to
maual start program is still does not start.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: mythtv-backend 2:0.26.0+fixes.20121118.340b5d4-0ubuntu3
ProcVersionSignature: Ubuntu 3.9.0-3.8-generic 3.9.4
Uname: Linux 3.9.0-3-generic x86_64
NonfreeKernelModules: nvidia
.var.log.mythtv.mythavtest.log:
.var.log.mythtv.mythccextractor.log:
.var.log.mythtv.mythcommflag.log:
.var.log.mythtv.mythfilldatabase.log:
.var.log.mythtv.mythjobqueue.log:
.var.log.mythtv.mythlcdserver.log:
.var.log.mythtv.mythmediaserver.log:
.var.log.mythtv.mythmetadatalookup.log:
.var.log.mythtv.mythpreviewgen.log:
.var.log.mythtv.mythshutdown.log:
.var.log.mythtv.mythtranscode.log:
.var.log.mythtv.mythutil.log:
.var.log.mythtv.mythwelcome.log:
ApportVersion: 2.10.2-0ubuntu1
Architecture: amd64
Date: Sun Jun 2 19:10:01 2013
InstallationDate: Installed on 2013-05-30 (3 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130529)
Installed_mythtv_dbg: 0.0
MarkForUpload: True
SourcePackage: mythtv
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/1186824/+subscriptions
References