个人工具

“UbuntuHelp:MythTV/Install/Server/Frontend”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/MythTV/Install/Server/Frontend}} {{Languages|UbuntuHelp:MythTV/Install/Server/Frontend}} === Install MythTV Frontend === Believe it or not, the ha...)
 
第3行: 第3行:
 
=== Install MythTV Frontend ===
 
=== Install MythTV Frontend ===
 
Believe it or not, the hard part of the install is done.  The majority of the rest of the work should be handled by debian packaging.  
 
Believe it or not, the hard part of the install is done.  The majority of the rest of the work should be handled by debian packaging.  
 
 
Installing the frontend software will be a little more time consuming since apt will have to download and install a very large amount of packages to resolve dependencies.
 
Installing the frontend software will be a little more time consuming since apt will have to download and install a very large amount of packages to resolve dependencies.
 
+
# Install the frontend software.  Openbox will be installed to provide a very lightweight window manager for mythtv-frontend to run on top of.  "Heavy" window manager like ''kwin'' and ''metacity'' will just slow down the boot process of the machine.
* Install the frontend software.  Openbox will be installed to provide a very lightweight window manager for mythtv-frontend to run on top of.  "Heavy" window manager like ''kwin'' and ''metacity'' will just slow down the boot process of the machine.
+
 
+
 
<pre><nowiki>  
 
<pre><nowiki>  
 
sudo apt-get install mythtv-frontend gdm openbox gnome-screensaver xserver-xorg gsfonts-x11 xfonts-100dpi xfonts-75dpi msttcorefonts xfonts-base ubuntu-artwork xterm usplash-theme-ubuntu
 
sudo apt-get install mythtv-frontend gdm openbox gnome-screensaver xserver-xorg gsfonts-x11 xfonts-100dpi xfonts-75dpi msttcorefonts xfonts-base ubuntu-artwork xterm usplash-theme-ubuntu
 
</nowiki></pre>
 
</nowiki></pre>
 
 
1a. If you have a proprietary graphics card driver that needed to be installed, you will need to complete the installation for it right now.
 
1a. If you have a proprietary graphics card driver that needed to be installed, you will need to complete the installation for it right now.
*** '''Nvidia:''' sudo nvidia-glx-config enable
+
* '''Nvidia:''' sudo nvidia-glx-config enable
*** '''ATI:''' sudo aticonfig --initial
+
* '''ATI:''' sudo aticonfig --initial
 
+
2. 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:
* 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:
+
 
+
 
<pre><nowiki>
 
<pre><nowiki>
 
[Desktop Entry]
 
[Desktop Entry]
第27行: 第21行:
 
Type=Application
 
Type=Application
 
</nowiki></pre>
 
</nowiki></pre>
 
+
3. 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:
* 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>
 
gnome-screensaver
 
gnome-screensaver
第35行: 第27行:
 
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, '''/usr/local/bin/mythtv.sh''' will be the place to add it.
*** If you come up with anything else for your custom startup script, '''/usr/local/bin/mythtv.sh''' will be the place to add it.
+
4. Be sure to make this script executable
 
+
* Be sure to make this script 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>
 
+
5. Start GDM & Login.  
* Start GDM & Login.  
+
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/gdm restart
 
sudo /etc/init.d/gdm restart
第75行: 第58行:
 
|<|1> You will be given an option to make this default.  Choose "Just For This Session". || https://help.ubuntu.com/community/MythTV/Install/Server/Frontend?action=AttachFile&do=get&target=openboxdefault.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/Frontend?action=AttachFile&do=get&target=openboxdefault.png  
 
|}
 
|}
 
+
6. Right click the desktop and choose the terminal.   
* 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/Frontend?action=AttachFile&do=get&target=rightclick.png  
 
|<|1> Right click the desktop and choose "Terminal Emulator". ||https://help.ubuntu.com/community/MythTV/Install/Server/Frontend?action=AttachFile&do=get&target=rightclick.png  
 
|}
 
|}
 
+
7. Run gdmsetup.
* Run gdmsetup.
+
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo gdmsetup
 
sudo gdmsetup
第88行: 第69行:
 
|<|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/Frontend?action=AttachFile&do=get&target=gdmsetup2.png  
 
|<|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/Frontend?action=AttachFile&do=get&target=gdmsetup2.png  
 
|}
 
|}
 
+
8. [[Include(MythTV/Install/mythtv-group)]]
* [[Include(MythTV/Install/mythtv-group)]]
+
9. Right click the desktop and log out of the openbox session.   
 
+
 
+
* 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/Frontend?action=AttachFile&do=get&target=rightclick2.png  
 
|<|1> Right click the desktop and choose "Exit". ||https://help.ubuntu.com/community/MythTV/Install/Server/Frontend?action=AttachFile&do=get&target=rightclick2.png  
 
|}
 
|}
 
+
10. Set the newly created MythTV session to be the default.  This will make sure that on the next reboot, 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/Frontend?action=AttachFile&do=get&target=optionsbutton.png  
 
|<|1> At the bottom left, choose Options. Pick "Select Session". || https://help.ubuntu.com/community/MythTV/Install/Server/Frontend?action=AttachFile&do=get&target=optionsbutton.png  
第107行: 第84行:
 
|<|1> You will be given an option to make this default.  Choose "Make Default". || https://help.ubuntu.com/community/MythTV/Install/Server/Frontend?action=AttachFile&do=get&target=mythtvdefault.png  
 
|<|1> You will be given an option to make this default.  Choose "Make Default". || https://help.ubuntu.com/community/MythTV/Install/Server/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.
 
+
11. The first time mythtv starts, it will ask you to connect to your backend.  Enter the appropriate information, and verify that it works on your network.   
 
+
* If you setup a backend using Ubuntu, that machine will have the correct password protected mysql information in /etc/mythtv/mysql.txt. Be sure to take note of that password as you will need it the first time you start the frontend.  
* The first time mythtv starts, it will ask you to connect to your backend.  Enter the appropriate information, and verify that it works on your network.   
+
* From this point forward, you are done with your Ubuntu portion of the install. Follow any mythtv related documentation for how to configure the frontend itself (as its well beyond the scope of this guide).
** If you setup a backend using Ubuntu, that machine will have the correct password protected mysql information in /etc/mythtv/mysql.txt. Be sure to take note of that password as you will need it the first time you start the frontend.
+
** From this point forward, you are done with your Ubuntu portion of the install. Follow any mythtv related documentation for how to configure the frontend itself (as its well beyond the scope of this guide).
+
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 20:41的版本

Install MythTV Frontend

Believe it or not, the hard part of the install is done. The majority of the rest of the work should be handled by debian packaging. Installing the frontend software will be a little more time consuming since apt will have to download and install a very large amount of packages to resolve dependencies.

  1. Install the frontend software. Openbox will be installed to provide a very lightweight window manager for mythtv-frontend to run on top of. "Heavy" window manager like kwin and metacity will just slow down the boot process of the machine.
 
sudo apt-get install mythtv-frontend gdm openbox gnome-screensaver xserver-xorg gsfonts-x11 xfonts-100dpi xfonts-75dpi msttcorefonts xfonts-base ubuntu-artwork xterm usplash-theme-ubuntu

1a. If you have a proprietary graphics card driver that needed to be installed, you will need to complete the installation for it right now.

  • Nvidia: sudo nvidia-glx-config enable
  • ATI: sudo aticonfig --initial

2. 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

3. 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.

4. Be sure to make this script executable

sudo chmod +x /usr/local/bin/mythtv.sh

5. Start GDM & Login.

sudo /etc/init.d/gdm restart
1> At the bottom left, choose Options. Pick "Select Session". Frontend?action=AttachFile&do=get&target=optionsbutton.png
1> When Given a list of sessions, choose Openbox. Frontend?action=AttachFile&do=get&target=choosesession.png
1> Login as the user created at installation, NOT mythtv. The mythtv user is only used for the backend process. Frontend?action=AttachFile&do=get&target=username.png
1> You will be given an option to make this default. Choose "Just For This Session". Frontend?action=AttachFile&do=get&target=openboxdefault.png

6. Right click the desktop and choose the terminal.

1> Right click the desktop and choose "Terminal Emulator". Frontend?action=AttachFile&do=get&target=rightclick.png

7. Run gdmsetup.

sudo gdmsetup
1> 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) Frontend?action=AttachFile&do=get&target=gdmsetup2.png

8. Include(MythTV/Install/mythtv-group) 9. Right click the desktop and log out of the openbox session.

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

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

1> At the bottom left, choose Options. Pick "Select Session". Frontend?action=AttachFile&do=get&target=optionsbutton.png
1> When Given a list of sessions, choose MythTV. Frontend?action=AttachFile&do=get&target=mythtvsession.png
1> Login as the user created at installation, NOT mythtv. Frontend?action=AttachFile&do=get&target=username.png
1> You will be given an option to make this default. Choose "Make Default". 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.

11. The first time mythtv starts, it will ask you to connect to your backend. Enter the appropriate information, and verify that it works on your network.

  • If you setup a backend using Ubuntu, that machine will have the correct password protected mysql information in /etc/mythtv/mysql.txt. Be sure to take note of that password as you will need it the first time you start the frontend.
  • From this point forward, you are done with your Ubuntu portion of the install. Follow any mythtv related documentation for how to configure the frontend itself (as its well beyond the scope of this guide).