1 |
On 1/8/06, Michael Sullivan <michael@××××××××××××.com> wrote: |
2 |
> On Sun, 2006-01-08 at 12:46 -0800, Mark Knecht wrote: |
3 |
> > On 1/8/06, Michael Sullivan <michael@××××××××××××.com> wrote: |
4 |
> > > On Sun, 2006-01-08 at 13:41 -0600, Michael Sullivan wrote: |
5 |
> > > > On Sun, 2006-01-08 at 13:36 -0600, Michael Sullivan wrote: |
6 |
> > > > > On Sun, 2006-01-08 at 11:22 -0800, Mark Knecht wrote: |
7 |
> > > > > > On 1/8/06, Michael Sullivan <michael@××××××××××××.com> wrote: |
8 |
> > > > > > |
9 |
> > > > > > > I'm not going to mark my mythtv problem SOLVED until I'm sure that |
10 |
> > > > > > > mythbackend is running stably. |
11 |
> > > > > > |
12 |
> > > > > > Nor should you... |
13 |
> > > > > > |
14 |
> > > > > > > It seems to be working for now. The |
15 |
> > > > > > > problem is that I can't change channels in mythfrontend. I'm watching |
16 |
> > > > > > > live TV and I'm hitting the Up arrow key (as specified on mythtv's web |
17 |
> > > > > > > site, but the channel is not changing. What's worse is that it seems |
18 |
> > > > > > > all that's on the one channel I get is infomercials! How can I fix |
19 |
> > > > > > > this??? I ran mythsetup and and went to the Channel Editor. There were |
20 |
> > > > > > > no channels defined. I wanted the click the Scan For Channels button, |
21 |
> > > > > > > but I couldn't figure out how to get to it. Also, (I think it was in |
22 |
> > > > > > > mythfrontend) I set the GUI to appear in a window instead of full |
23 |
> > > > > > > screen. It turned out to be not what I wanted and now I can't find the |
24 |
> > > > > > > option to get the full screen mode back. Help! |
25 |
> > > > > > |
26 |
> > > > > > After running mythsetup you then run mythfilldatabase. You should see |
27 |
> > > > > > it logging into Zap2It and getting the channel data for the next 2 |
28 |
> > > > > > weeks. Is this working for you? |
29 |
> > > > > > |
30 |
> > > > > > When I hit the up arrow I do get a new channel. I can also just type |
31 |
> > > > > > in a channel number and jump that way. I see no mention in the |
32 |
> > > > > > mythbackend.log file that much happened. THere are a coupl eof lines |
33 |
> > > > > > but they aren't very interesting and I doubt thay had anything to do |
34 |
> > > > > > with this at all. More likely when I started the frontend on my PC. |
35 |
> > > > > > |
36 |
> > > > > > 2006-01-08 11:16:59.814 adding: lightning as a client (events: 0) |
37 |
> > > > > > 2006-01-08 11:16:59.911 adding: lightning as a client (events: 1) |
38 |
> > > > > > 2006-01-08 11:16:59.934 adding: lightning as a client (events: 0) |
39 |
> > > > > > 2006-01-08 11:16:59.994 adding: lightning as a client (events: 0) |
40 |
> > > > > > 2006-01-08 11:17:00.018 adding: lightning as a remote ringbuffer |
41 |
> > > > > > |
42 |
> > > > > > - Mark |
43 |
> > > > > > |
44 |
> > > > > |
45 |
> > > > > After I ran mythfilldatabase for the umpteenth time I got a channel |
46 |
> > > > > listing in the Channel Editor. Next, I want to get mythfrontend working |
47 |
> > > > > on my wife's computer. It will need to use the database and mythbackend |
48 |
> > > > > on my computer remotely. Is there anything special I need to know to |
49 |
> > > > > make this work? I've already set up the IP address in mythsetup on my |
50 |
> > > > > machine to my PC's network address... |
51 |
> > > > |
52 |
> > > > I ssh'd over to my wife's machine and tried running mythfrontend. |
53 |
> > > > Apparently it can't connect to my mysql server. I added two lines to |
54 |
> > > > the end of my /etc/mysql/my.cnf file last night that was supposed to fix |
55 |
> > > > this: |
56 |
> > > > |
57 |
> > > > skip-innodb |
58 |
> > > > set-variable=thread_stack=256k |
59 |
> > > > |
60 |
> > > > but I guess it didn't... |
61 |
> > > |
62 |
> > > I changed the bind-address option in my PC's /etc/mysql/my.cnf file from |
63 |
> > > "127.0.0.1" to "0.0.0.0" and restarted mysql. |
64 |
> > |
65 |
> > 0.0.0.0 is unroutable. You need to put in the actual IP address of |
66 |
> > your backend server. As I said in a previous email that is |
67 |
> > 192.168.1.55 for our setup here. |
68 |
> > |
69 |
> > |
70 |
> > I then tried to run |
71 |
> > > mythfrontend from my wife's PC in an ssh environment. I got a lot of |
72 |
> > > errors that were copies of this: |
73 |
> > > |
74 |
> > > 2006-01-08 14:19:51.309 Unable to connect to database! |
75 |
> > > 2006-01-08 14:19:51.309 Driver error was [1/1130]: |
76 |
> > > QMYSQL3: Unable to connect |
77 |
> > > Database error was: |
78 |
> > > Host 'catherine.espersunited.com' is not allowed to connect to this |
79 |
> > > MySQL server |
80 |
> > |
81 |
> > this is because you have not run the commands that I showed you where |
82 |
> > you allow network clients have access to MySQL. This is pointed out in |
83 |
> > the link I sent you earlier. |
84 |
> > |
85 |
> > Note: I do not run the frontend client through an ssh tunnel. I have |
86 |
> > the frontend only on all our machines. My fronteld client points at |
87 |
> > the server's IP address. (192.168.1.55) The mysql database on the |
88 |
> > server is set up to allow network access. The frontend client talks to |
89 |
> > it and only the video runs across the network. |
90 |
> > |
91 |
> > > |
92 |
> > > catherine is my wife's computer, located at 192.168.1.4 My computer is |
93 |
> > > camille, at 192.168.1.3 When I tried to telnet into my mysql server, I |
94 |
> > > got the same message: |
95 |
> > > |
96 |
> > > catherine ~ # telnet camille 3306 |
97 |
> > > Trying 192.168.1.3... |
98 |
> > > Connected to camille. |
99 |
> > > Escape character is '^]'. |
100 |
> > > SHost 'catherine.espersunited.com' is not allowed to connect to this |
101 |
> > > MySQL serverConnection closed by foreign host. |
102 |
> > > |
103 |
> > > How do I fix this? I had a similar problem a long time ago and as far |
104 |
> > > as I can tell it was fixed by changing the mysql server's bind-address |
105 |
> > > to 0.0.0.0. That didn't work this time. BTW, I'm using mysql version |
106 |
> > > 4.1.14... |
107 |
> > |
108 |
> > As I said earlier, follow the instructions on the link I gave you to |
109 |
> > give network access to the mysql database. |
110 |
> > |
111 |
> > - Mark |
112 |
> > |
113 |
> |
114 |
> What instructions? Are you referring to the GRANT line? I did that |
115 |
> yesterday. As for the mythbackend server IP, I set that two or three |
116 |
> days ago. It's in the database correctly: |
117 |
> |
118 |
> mysql> select * from settings WHERE value = 'BackendServerIP'; |
119 |
> +-----------------+-------------+----------+ |
120 |
> | value | data | hostname | |
121 |
> +-----------------+-------------+----------+ |
122 |
> | BackendServerIP | 192.168.1.3 | camille | |
123 |
> +-----------------+-------------+----------+ |
124 |
> 1 row in set (0.00 sec) |
125 |
> |
126 |
> What else do I need to do? |
127 |
|
128 |
Again, I'm not that good on this stuff but it's this basic command: |
129 |
|
130 |
The specific grant command is this one, or something like it: |
131 |
|
132 |
% mysql -u root -p |
133 |
mysql> GRANT ALL PRIVILEGES ON mythconverg.* TO 'mythtv'@'remotehost' |
134 |
IDENTIFIED BY 'password' |
135 |
|
136 |
Before you do that make sure you have camille's address in /etc/mysql/my.cnf: |
137 |
|
138 |
# keep secure by default! |
139 |
bind-address = 192.168.1.3 |
140 |
port = 3306 |
141 |
# this can make it even more secure: |
142 |
|
143 |
Make sure you have 192.168.1.3 in the mythsetup stuff for the server. |
144 |
|
145 |
At this point you should try logging into the mysql server from a |
146 |
terminal on both the server and your wife's machine. If you cannot log |
147 |
in then neither can Myth. From my terminal on a frontend only PC: |
148 |
(default password was mythtv on my system) |
149 |
|
150 |
dragonfly ~ # mysql -u mythtv -h 192.168.1.55 -p mythconverg |
151 |
Enter password: |
152 |
Reading table information for completion of table and column names |
153 |
You can turn off this feature to get a quicker startup with -A |
154 |
|
155 |
Welcome to the MySQL monitor. Commands end with ; or \g. |
156 |
Your MySQL connection id is 123 to server version: 4.0.25 |
157 |
|
158 |
Type 'help;' or '\h' for help. Type '\c' to clear the buffer. |
159 |
|
160 |
mysql> exit |
161 |
Bye |
162 |
dragonfly ~ # |
163 |
|
164 |
Hope this helps, |
165 |
Mark |
166 |
|
167 |
-- |
168 |
gentoo-user@g.o mailing list |