[mythtv] backend plus frontend (success!!!)
Ian Goldberg
ian at cypherpunks.ca
Wed Feb 5 15:34:28 EST 2003
Thanks! I got this working myself just now (on debian unstable instead
of RedHat). I just used ssh port forwarding on port 3306 (mysql) instead
of making a new user in the database, too.
Below is the patch I made to MC/programs/mythfrontend/main.cpp.
Now what I think we need is some concept of per-frontend configuration
so that different frontends can have things like:
- different shutdown commands
- different resolution/encoding params for live tv
- etc.
- Ian
diff -u -r1.73 main.cpp
--- programs/mythfrontend/main.cpp 5 Feb 2003 04:25:36 -0000 1.73
+++ programs/mythfrontend/main.cpp 5 Feb 2003 20:29:38 -0000
@@ -223,7 +223,11 @@
QApplication a(argc, argv);
MythContext *context = new MythContext;
- context->ConnectServer("localhost", 6543);
+ char *backhost = getenv("MYTHTV_BACKEND");
+ if (backhost == NULL) {
+ backhost = "localhost";
+ }
+ context->ConnectServer(backhost, 6543);
QSqlDatabase *db = QSqlDatabase::addDatabase("QMYSQL3");
if (!db)
On Wed, 05 Feb 2003 09:46:27 -0500, Greg.Froese wrote:
> I can try.
>
> - for both machines
> - running RH8.0.
> - followed the great docs on www.mythtv.org for getting myth
> running on both machines.
> - updated mysql and glibc to most recent versions to allow
> remote
> mysql access on a RH8.0 machine. There are other ways to do this, but I
> simply used the rpms from freshrpms.net to upgrade.
> - be sure to be running the same version of cvs on both machines
>
> - for frontend machine
> - changed the IP address from "localhost" to my backend IP
> address
> in MC/programs/mythfrontend/main.cpp before compiling the frontend
> machine
> - changed mysql.txt hostname value to backend IP - had to turn
> off deinterlacing in the setup section for Playback
> due to my PII lacking the sse flag in /proc/cpuinfo (more info in the
> FAQ's)
>
> - for backend machine
> - changed backend_settings.txt ServerIP to the backend's IP
> address (not localhost)
> - added mythtv@<FRONTEND_IP> user access to mysql - make sure
> the mysql ports are open and accessable from
> FRONTEND_IP
>
> I think that is about it. Let me know if I missed something gf
More information about the mythtv-dev
mailing list