特殊:Badtitle/NS100:MythTV/Install/Server/Backend Frontend:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
新页面: {{From|https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend}} {{Languages|UbuntuHelp:MythTV/Install/Server/Backend_Frontend}} Include(MythTV/Setup_Guide_Sources) =...
 
Wikibot留言 | 贡献
无编辑摘要
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
{{From|https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend}}
{{From|https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend}}
{{Languages|UbuntuHelp:MythTV/Install/Server/Backend_Frontend}}
{{Languages|UbuntuHelp:MythTV/Install/Server/Backend_Frontend}}
[[Include(MythTV/Setup_Guide_Sources)]]
<<Include([[UbuntuHelp:MythTV|MythTV]]/Setup_Guide_Sources)>>
=== Install MythTV ===
=== Install MythTV ===
A backend will need to have mysql-server installed as well as mythtv-backend.  Mythtv-backend doesn't depend on mysql-server since the mysql server can be located elsewhere on your network.  Also, if this is a secondary backend, don't install mythtv-database or mysql-server.  Just configure this backend to connect to the master backend instead.
A backend will need to have mysql-server installed as well as mythtv-backend.  Mythtv-backend doesn't depend on mysql-server since the mysql server can be located elsewhere on your network.  Also, if this is a secondary backend, don't install mythtv-database or mysql-server.  Just configure this backend to connect to the master backend instead.
<ol><li>Install the mythtv software.</li></ol>


* Install the mythtv software.
<pre><nowiki>
<pre><nowiki>
sudo apt-get install mythtv-frontend gdm ubuntu-artwork xterm openbox gnome-screensaver xserver-xorg gsfonts-x11 xfonts-100dpi xfonts-75dpi msttcorefonts xfonts-base mysql-server mythtv-backend mythtv-database usplash-theme-ubuntu
sudo apt-get install mythtv-frontend gdm ubuntu-artwork xterm openbox gnome-screensaver xserver-xorg gsfonts-x11 xfonts-100dpi xfonts-75dpi msttcorefonts xfonts-base mysql-server mythtv-backend mythtv-database usplash-theme-ubuntu
</nowiki></pre>
</nowiki></pre>
** Behind the scenes, a mythtv user will be created in PAM as well as mysql.  The database will be installed into mysql and the initial configuration performed.
* Behind the scenes, a mythtv user will be created in PAM as well as mysql.  The database will be installed into mysql and the initial configuration performed.
* You may be asked to configure postfix.  Choose the "no configuration" option to skip this, as you won't need postfix for this machine.
* You will be asked for the password to the root account of mysql.  By default, there is no password.
<ol><li>If you have a proprietary graphics card driver that you installed earlier, you will need to complete the installation for it right now.</li></ol>


** You may be asked to configure postfix.  Choose the "no configuration" option to skip this, as you won't need postfix for this machine.
* '''Nvidia:''' sudo nvidia-glx-config enable
 
* '''ATI:'''    sudo aticonfig --initial
** You will be asked for the password to the root account of mysql.  By default, there is no password.
<ol><li>Now, we will create a session for the automatic mythtv login.  Create the file <code><nowiki>/usr/share/xsessions/mythtv.desktop</nowiki></code>.  Place these contents into that file:</li></ol>
 
a. If you have a proprietary graphics card driver that you installed earlier, you will need to complete the installation for it right now.
*** '''Nvidia:''' sudo nvidia-glx-config enable
*** '''ATI:'''    sudo aticonfig --initial
 
* Now, we will create a session for the automatic mythtv login.  Create the file <code><nowiki>/usr/share/xsessions/mythtv.desktop</nowiki></code>.  Place these contents into that file:


<pre><nowiki>
<pre><nowiki>
第30行: 第27行:
Type=Application
Type=Application
</nowiki></pre>
</nowiki></pre>
 
<ol><li>Create a script, /usr/local/bin/mythtv.sh that will be spawned when you login to your [[UbuntuHelp:MythTV|MythTV]] session.  Place these contents into that file:</li></ol>
* Create a script, /usr/local/bin/mythtv.sh that will be spawned when you login to your MythTV session.  Place these contents into that file:


<pre><nowiki>
<pre><nowiki>
第38行: 第34行:
exec openbox
exec openbox
</nowiki></pre>
</nowiki></pre>
 
* If you are running lirc and using irexec for any of your key detection, you probably also want to add this section.  It will be sure that if X is ever restarted, irexec doesn't spawn multiple instances
*** If you are running lirc and using irexec for any of your key detection, you probably also want to add this section.  It will be sure that if X is ever restarted, irexec doesn't spawn multiple instances
 
<pre><nowiki>
<pre><nowiki>
killall irexec
killall irexec
irexec -d
irexec -d
</nowiki></pre>
</nowiki></pre>
 
* If you are running an nvidia graphics card, you should add:
*** If you are running an nvidia graphics card, you should add:
 
<pre><nowiki>
<pre><nowiki>
nvidia-settings -l
nvidia-settings -l
</nowiki></pre>
</nowiki></pre>
 
* If you are planning on running the myth transcoding daemon for ripping dvds, you will want to add:
*** If you are planning on running the myth transcoding daemon for ripping dvds, you will want to add:
 
<pre><nowiki>
<pre><nowiki>
mtd -d
mtd -d
</nowiki></pre>
</nowiki></pre>
* If you come up with anything else for your custom startup script, <code><nowiki>/usr/local/bin/mythtv.sh</nowiki></code> will be the place to add it.
<ol><li>Be sure to set <code><nowiki>/usr/local/bin/mythtv.sh</nowiki></code> to be executable.</li></ol>


*** If you come up with anything else for your custom startup script, <code><nowiki>/usr/local/bin/mythtv.sh</nowiki></code> will be the place to add it.
* Be sure to set <code><nowiki>/usr/local/bin/mythtv.sh</nowiki></code> to be executable.
<pre><nowiki>
<pre><nowiki>
sudo chmod +x /usr/local/bin/mythtv.sh
sudo chmod +x /usr/local/bin/mythtv.sh
</nowiki></pre>
</nowiki></pre>
<ol><li>Start gdm.</li></ol>


* Start gdm.
<pre><nowiki>
<pre><nowiki>
sudo /etc/init.d/gdm restart
sudo /etc/init.d/gdm restart
</nowiki></pre>
</nowiki></pre>
{|border="1" cellspacing="0"
{|border="1" cellspacing="0"
|<|1> At the bottom left, choose Options. Pick "Select Session". || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=optionsbutton.png  
|rowspan=1| At the bottom left, choose Options. Pick "Select Session". || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=optionsbutton.png  
|-
|-
|<|1> When Given a list of sessions, choose Openbox. || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=choosesession.png  
|rowspan=1| When Given a list of sessions, choose Openbox. || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=choosesession.png  
|-
|-
|<|1> Login as the user created at installation, '''NOT''' <code><nowiki>mythtv</nowiki></code>.  The <code><nowiki>mythtv</nowiki></code> user is only used for the backend process. || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=username.png  
|rowspan=1| Login as the user created at installation, '''NOT''' <code><nowiki>mythtv</nowiki></code>.  The <code><nowiki>mythtv</nowiki></code> user is only used for the backend process. || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=username.png  
|-
|-
|<|1> You will be given an option to make this default.  Choose "Just For This Session". || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=openboxdefault.png  
|rowspan=1| You will be given an option to make this default.  Choose "Just For This Session". || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=openboxdefault.png  
|}
|}
<ol><li>Right click the desktop and choose the terminal.</li></ol>


* Right click the desktop and choose the terminal.
{|border="1" cellspacing="0"
{|border="1" cellspacing="0"
|<|1> Right click the desktop and choose "Terminal Emulator". ||https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=rightclick.png  
|rowspan=1| Right click the desktop and choose "Terminal Emulator". ||https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=rightclick.png  
|}
|}
<ol><li>Run gdmsetup.</li></ol>


* Run gdmsetup.
<pre><nowiki>
<pre><nowiki>
sudo gdmsetup
sudo gdmsetup
</nowiki></pre>
</nowiki></pre>
{|border="1" cellspacing="0"
{|border="1" cellspacing="0"
|<|1> Gdmsetup is used to configure an automatic login for your main user name (in this case <code><nowiki>superm1</nowiki></code>) as well as a time delayed login if you logout.  This will make the bootup a lot more streamlined (especially for HTPC use) ||https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=gdmsetup2.png  
|rowspan=1| Gdmsetup is used to configure an automatic login for your main user name (in this case <code><nowiki>superm1</nowiki></code>) as well as a time delayed login if you logout.  This will make the bootup a lot more streamlined (especially for HTPC use) ||https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=gdmsetup2.png  
|}
|}
<ol><li><<Include([[UbuntuHelp:MythTV|MythTV]]/Install/mythtv-group)>>
</li><li><<Include([[UbuntuHelp:MythTV|MythTV]]/Install/Server/mysql)>>
</li><li><<Include([[UbuntuHelp:MythTV|MythTV]]/Install/Server/BackendDesktop/run-mythtv-setup)>></li></ol>


* [[Include(MythTV/Install/mythtv-group)]]
10. <<Include([[UbuntuHelp:MythTV|MythTV]]/Install/fill-database)>>
 
11. <<Include([[UbuntuHelp:MythTV|MythTV]]/Install/start-backend)>>
* [[Include(MythTV/Install/Server/mysql)]]
12. Right click the desktop and log out of the openbox session.
 
* [[Include(MythTV/Install/Server/BackendDesktop/run-mythtv-setup)]]
 
* [[Include(MythTV/Install/fill-database)]]
 
* [[Include(MythTV/Install/start-backend)]]
 
* Right click the desktop and log out of the openbox session.
{|border="1" cellspacing="0"
{|border="1" cellspacing="0"
|<|1> Right click the desktop and choose "Exit". ||https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=rightclick2.png  
|rowspan=1| Right click the desktop and choose "Exit". ||https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=rightclick2.png  
|}
|}
 
13. Set the newly created [[UbuntuHelp:MythTV|MythTV]] session to be the default.  This will make sure that on the next reboot, [[UbuntuHelp:MythTV|MythTV]] comes up by default.
* Set the newly created MythTV session to be the default.  This will make sure that on the next reboot, MythTV comes up by default.
{|border="1" cellspacing="0"
{|border="1" cellspacing="0"
|<|1> At the bottom left, choose Options. Pick "Select Session". || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=optionsbutton.png  
|rowspan=1| At the bottom left, choose Options. Pick "Select Session". || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=optionsbutton.png  
|-
|-
|<|1> When Given a list of sessions, choose MythTV. || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=mythtvsession.png  
|rowspan=1| When Given a list of sessions, choose MythTV. || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=mythtvsession.png  
|-
|-
|<|1> Login as the user created at installation, '''NOT''' <code><nowiki>mythtv</nowiki></code>. || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=username.png  
|rowspan=1| Login as the user created at installation, '''NOT''' <code><nowiki>mythtv</nowiki></code>. || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=username.png  
|-
|-
|<|1> You will be given an option to make this default.  Choose "Make Default". || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=mythtvdefault.png  
|rowspan=1| You will be given an option to make this default.  Choose "Make Default". || https://help.ubuntu.com/community/MythTV/Install/Server/Backend_Frontend?action=AttachFile&do=get&target=mythtvdefault.png  
|}
|}
 
* Note: at least one user had difficulties logging out of the openbox session to return to the login screen.  If you encounter similar issues, you should try to first restart GDM.
** Note: at least one user had difficulties logging out of the openbox session to return to the login screen.  If you encounter similar issues, you should try to first restart GDM.
* Switch to virtual terminal 1 (CTRL-ALT-F1)
*** Switch to virtual terminal 1 (CTRL-ALT-F1)
* Login
*** Login
* Restart GDM
*** Restart GDM
<pre><nowiki>
<pre><nowiki>
sudo /etc/init.d/gdm restart
sudo /etc/init.d/gdm restart
</nowiki></pre>
</nowiki></pre>
*** If restarting GDM didn't work, reboot your machine to see if GDM comes up after the fresh boot.
* If restarting GDM didn't work, reboot your machine to see if GDM comes up after the fresh boot.


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2010年5月19日 (三) 23:34的最新版本

{{#ifexist: :MythTV/Install/Server/Backend Frontend/zh | | {{#ifexist: MythTV/Install/Server/Backend Frontend/zh | | {{#ifeq: {{#titleparts:MythTV/Install/Server/Backend Frontend|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MythTV/Install/Server/Backend Frontend|1|-1|}} | zh | | }}

<<Include(MythTV/Setup_Guide_Sources)>>

Install MythTV

A backend will need to have mysql-server installed as well as mythtv-backend. Mythtv-backend doesn't depend on mysql-server since the mysql server can be located elsewhere on your network. Also, if this is a secondary backend, don't install mythtv-database or mysql-server. Just configure this backend to connect to the master backend instead.

  1. Install the mythtv software.
sudo apt-get install mythtv-frontend gdm ubuntu-artwork xterm openbox gnome-screensaver xserver-xorg gsfonts-x11 xfonts-100dpi xfonts-75dpi msttcorefonts xfonts-base mysql-server mythtv-backend mythtv-database usplash-theme-ubuntu
  • Behind the scenes, a mythtv user will be created in PAM as well as mysql. The database will be installed into mysql and the initial configuration performed.
  • You may be asked to configure postfix. Choose the "no configuration" option to skip this, as you won't need postfix for this machine.
  • You will be asked for the password to the root account of mysql. By default, there is no password.
  1. If you have a proprietary graphics card driver that you installed earlier, you will need to complete the installation for it right now.
  • Nvidia: sudo nvidia-glx-config enable
  • ATI: sudo aticonfig --initial
  1. Now, we will create a session for the automatic mythtv login. Create the file /usr/share/xsessions/mythtv.desktop. Place these contents into that file:
[Desktop Entry]
Encoding=UTF-8
Name=MythTV
Comment=Use this session to run MythTV
Exec=/usr/local/bin/mythtv.sh
Icon=
Type=Application
  1. Create a script, /usr/local/bin/mythtv.sh that will be spawned when you login to your MythTV session. Place these contents into that file:
gnome-screensaver
mythfrontend&
exec openbox
  • If you are running lirc and using irexec for any of your key detection, you probably also want to add this section. It will be sure that if X is ever restarted, irexec doesn't spawn multiple instances
killall irexec
irexec -d
  • If you are running an nvidia graphics card, you should add:
nvidia-settings -l
  • If you are planning on running the myth transcoding daemon for ripping dvds, you will want to add:
mtd -d
  • If you come up with anything else for your custom startup script, /usr/local/bin/mythtv.sh will be the place to add it.
  1. Be sure to set /usr/local/bin/mythtv.sh to be executable.
sudo chmod +x /usr/local/bin/mythtv.sh
  1. Start gdm.
sudo /etc/init.d/gdm restart
At the bottom left, choose Options. Pick "Select Session". Backend_Frontend?action=AttachFile&do=get&target=optionsbutton.png
When Given a list of sessions, choose Openbox. Backend_Frontend?action=AttachFile&do=get&target=choosesession.png
Login as the user created at installation, NOT mythtv. The mythtv user is only used for the backend process. Backend_Frontend?action=AttachFile&do=get&target=username.png
You will be given an option to make this default. Choose "Just For This Session". Backend_Frontend?action=AttachFile&do=get&target=openboxdefault.png
  1. Right click the desktop and choose the terminal.
Right click the desktop and choose "Terminal Emulator". Backend_Frontend?action=AttachFile&do=get&target=rightclick.png
  1. Run gdmsetup.
sudo gdmsetup
Gdmsetup is used to configure an automatic login for your main user name (in this case superm1) as well as a time delayed login if you logout. This will make the bootup a lot more streamlined (especially for HTPC use) Backend_Frontend?action=AttachFile&do=get&target=gdmsetup2.png
  1. <<Include(MythTV/Install/mythtv-group)>>
  2. <<Include(MythTV/Install/Server/mysql)>>
  3. <<Include(MythTV/Install/Server/BackendDesktop/run-mythtv-setup)>>

10. <<Include(MythTV/Install/fill-database)>> 11. <<Include(MythTV/Install/start-backend)>> 12. Right click the desktop and log out of the openbox session.

Right click the desktop and choose "Exit". Backend_Frontend?action=AttachFile&do=get&target=rightclick2.png

13. Set the newly created MythTV session to be the default. This will make sure that on the next reboot, MythTV comes up by default.

At the bottom left, choose Options. Pick "Select Session". Backend_Frontend?action=AttachFile&do=get&target=optionsbutton.png
When Given a list of sessions, choose MythTV. Backend_Frontend?action=AttachFile&do=get&target=mythtvsession.png
Login as the user created at installation, NOT mythtv. Backend_Frontend?action=AttachFile&do=get&target=username.png
You will be given an option to make this default. Choose "Make Default". Backend_Frontend?action=AttachFile&do=get&target=mythtvdefault.png
  • Note: at least one user had difficulties logging out of the openbox session to return to the login screen. If you encounter similar issues, you should try to first restart GDM.
  • Switch to virtual terminal 1 (CTRL-ALT-F1)
  • Login
  • Restart GDM
sudo /etc/init.d/gdm restart
  • If restarting GDM didn't work, reboot your machine to see if GDM comes up after the fresh boot.