SlideShare a Scribd company logo
1 of 61
Download to read offline
LinuxFEST 14.11.2009




              Desktop na
              každý deň
Autor: Michal Sedlák
Email: michal6103 [at] gmail [dot] com
Obsah

   ●
       Popis situácie
   ●
       Čo všetko treba nastaviť
   ●
       X Window System
   ●
       Synchronizácia
   ●
       mplayer
   ●
       LIRC



14.11.2009                        2/61
Obmedzenia

   ●
       Osobné skúsenosti
   ●
       Ubuntu/Gnome (žiadne masívne úpravy,
       iba pár detailov do default nastavení)
   ●
       ATI a NVIDIA, žiadne Intel grafické chipy
   ●
       Igorov Češkov sériový detektor




14.11.2009                                         3/61
Modelová situácia

   ●
       PC doma - Ubuntu
             –   Nvidia, 1x monitor,TV Out
             –   Multimediálne PC, hry
   ●
       PC škola - Ubuntu
             –   ATI, 2x monitor
             –   Pracovné PC
   ●
       Synchronizácia údajov
   ●
       Zálohovanie dôležitých veci

14.11.2009                                   4/61
Čo všetko budeme
 nastavovať

   ●
       Všeobecné nastavenia
             –   X server
             –   Compiz
             –   Synchronizácia
   ●
       Doma
             –   Akcelerácia videa
             –   Diaľkové ovládanie
             –   Mediacentrum

14.11.2009                            5/61
X Window System

   ●
       Softvér a sieťový protokol
   ●
       X11 – 15. September 1987
   ●
       X11R7.5 - 26. Október 2009
   ●
       Klient - Server




14.11.2009                          6/61
Komunikácia X




14.11.2009       7/61
SSH X forward

   ●
       ssh -CX michal@10.8.0.1
   ●
       evolution



   ●
       ssh -CY michal@10.8.0.1
   ●
       evolution




14.11.2009                       8/61
X Forwarding cez SSH




14.11.2009              9/61
Statické nastavenie X
 xorg.conf
   ●
       Hlavný konfiguračný súbor
   ●
       Nepotrebný (autokonfigurácia)
             –   Nvidia
             –   Wacom
   ●
       Potrebný na trvalé zmeny
   ●
       Čokoľvek nastavujete, spravte si funkčnú
       zálohu xorg.conf
   ●
       Meniť /etc/X11/xorg.conf iba ROOT
   ●
       dpkg-reconfigure -phigh xserver-xorg
14.11.2009                                    10/61
cat /etc/X11/xorg.conf

  Section "Screen"
    Identifier "Configured Screen Device"
    Device "Configured Video Device"
    SubSection "Display"
      Virtual 2560 2048
    EndSubSection
  EndSection

  Section "Device"
    Identifier "Configured Video Device"
  EndSection
14.11.2009                                  11/61
Drivers

   ●
       Rôzne druhy ovládačov
   ●
       Rôzne verzie
   ●
       Rôzne typy kariet
   ●
       Keď to nejde by default, len malá
       pravdepodobnosť, že to priemerný
       smrteľník rozbehá




14.11.2009                                 12/61
NVIDIA drivers

   ●
       nv – Open source driver
             –   2D
             –   Bez TV Out
   ●
       nouveau – Open source driver
             –   2D/3D (experimental/disabled)
             –   bez TV Out
   ●
       nvidia - Binárny driver
             –   2D/3D

14.11.2009                                       13/61
NVIDIA – binárny driver

   ●
       Automatická inštalácia
             –   Systém -> Správa -> Ovládače HW
   ●
       Manuálna inštalácia
             –   http://www.nvidia.com
   ●
       sudo apt-get install nvidia-settings
   ●
       sudo nvidia-settings



14.11.2009                                         14/61
nvidia-settings

                   ●
                       monitory
                   ●
                       TV-Out
                   ●
                       HW Monitor




14.11.2009                          15/61
ATI drivers

   ●
       radeon - Open source
             –   2D
             –   3D z časti
   ●
       fglrx -binary dirver
             –   2D/3D
   ●
       radeonhd - Open source
             –   2D/3D


14.11.2009                      16/61
ATI radeonhd




14.11.2009      17/61
Randr
 Resize and Rotate Extension

   ●
       Umožnuje dynamické nastavenie X
       serveru
   ●
       V pôvodnom návrhu X11 nebol
   ●
       Bez xrandr sa zmena = reštart
   ●
       xrandr -v (nvidia, readeonhd, fglrx)
             –   Server reports RandR version 1.3
   ●
       xrandr -q


14.11.2009                                          18/61
Xinerama

   ●
       Nepodporovaná
   ●
       Neodporúča sa používať
   ●
       Plne nahradená xrandr




14.11.2009                      19/61
Podpora 3D?

   ●
       Funguje 3D?




$ glxinfo |grep render
direct rendering: Yes
OpenGL renderer string: GeForce 8500 GT/PCI/SSE2/3DNOW!

$ glxgears


14.11.2009                                           20/61
X Window System
 Hotovo

   ●
       Nastavené rozlíšenie monitora
   ●
       Zapnutá podpora 3D
   ●
       Compiz




14.11.2009                             21/61
Compiz

   ●
       Správca okien s podporou 3D
   ●
       Vykresľuje okná a ich okraje
   ●
       Ovláda interakcie medzi prvkami plochy
   ●
       Používa vedľajší buffer a okná vykresluje
       z neho už iba ako textúry v 3D
   ●
       Živé náhľady, deformácie okien, efekty



14.11.2009                                      22/61
Compiz konfiguracia
   ●
       Systém -> Predvoľby -> Vzhľad




14.11.2009                             23/61
Compiz Config Settings
 Manager - inštalácia




14.11.2009                24/61
Compiz
 Moduly




14.11.2009   25/61
Modpul Put




14.11.2009    26/61
Modul Viewport Switcher




14.11.2009                 27/61
Focus Steal




14.11.2009     28/61
devilspie

   ●
       Automatizácia operácií s oknami
   ●
       Skriptovací jazyk umožňuje robiť operácie
       s oknami
   ●
       Démon na pozadí
   ●
       Configurácia v ~/.devilspie/*.ds




14.11.2009                                    29/61
Devislpie príklad
michal@doma:~/.devilspie$ cat common.ds
(if
(is (application_name) "Rhythmbox")
(begin
(set_viewport 4)
                                      (if
(maximize)                            (is (application_name
)                                     "Transmission")
)                                     (begin
                                      (set_viewport 3)
(if                                   (maximize)
(is (application_name) "linuxdcpp")   )
(begin                                )
(set_viewport 3)
(maximize)
)
)

14.11.2009                                           30/61
devilspie
michal@skola­desktop:~/.devilspie$ cat gajim.ds 
(begin
  (if 
    (is (window_name) "Gajim")
    (begin
      (stick)
      (geometry "380x1000+2180+0")
    )
  )

   (if 
     (is (application_name) "gajim.py")
     (begin
       (stick)
       (maximize_vertically)
     )
   )
14.11.2009                                         31/61
Devilspie - debug

  michal@skola­desktop:~/.devilspie$ cat debug.ds 
  (begin
  (println (application_name))
  (println (window_name))
  )




14.11.2009                                           32/61
Nastavené základné
 pracovné prostredie

   ●
       Doninštalovanie všetkých programov
   ●
       Nastavenie synchronizácie




14.11.2009                                  33/61
Synchronizácia

   ●
       Súbory (konfigurácie, dáta)
   ●
       Pošta
   ●
       Kontakty
   ●
       Poznámky
   ●
       História chatu
   ●
       Bookmarky
   ●
       ...

14.11.2009                           34/61
Ubuntuone

   ●
       Online backup
   ●
       Synchronizácia viacerych strojov
   ●
       Súbory
   ●
       Kontakty
   ●
       Poznámky
   ●
       Podobné ako DropBox



14.11.2009                                35/61
DropBox

   ●
       Iba súbory
   ●
       Výber synchronizovaných priečinkov dáva
       viac možností (replikovanie konfigurácií a
       dát na úrovni súborov)




14.11.2009                                     36/61
Google Apps - Evolution

   ●
       Mail – IMAP
   ●
       Kalendár – iCal
   ●
       Kontakty – Google Provider
   ●
       ToDo nie je naimplementované




14.11.2009                            37/61
Replikovanie konfigurácie

   ●
       Home priečinok
   ●
       .meno
   ●
       CTRL+H skryté súbory
   ●
       ls -a
   ●
       Zálohujte si /home a /etc
   ●
       Čo najmenej zmien v etc (upgrade)



14.11.2009                                 38/61
Domáce nastavenia

   ●
       NVIDIA a TV Out
   ●
       LIRC
   ●
       Akcelerované video
   ●
       XBMC




14.11.2009                  39/61
●
      Xinerama
             –   Rovnaké vertikálne rozlíšenie
             –   Spomalenie systému
             –   HW akcelerácia iba na primárnom zariadení
  ●
      TwinView
             –   Monitor aj televízor sa správali ako jeden
                  displej
             –   Panely a maximalizácia cez obe zariadenia
             –   Nevhodne pre TV-Out
14.11.2009                                                    40/61
●
       Separate screens
             –   Televízor aj monitor sú dve plnohodnotné
                  nezávislé zariadenia
             –   Samostatný fullscreen
             –   Dá sa prechádzať kurzorom z televízora
                  na monitor a naopak
             –   Medzi screenmi sa nedá preniesť aplikácia
                  systémom drag and drop.
             –   :0.0 a :0.1

14.11.2009                                                41/61
14.11.2009   42/61
Vnútenie výstupu cez xrandr

   ●
       potlačenie detekcie vstupu
  ●
 xrandr ­­output S­video ­­set load_detection 1  
   ●


   ●
       Vnútenie výstupu na TV Out
 xrandr ­­addmode S­video 800x600




14.11.2009                                          43/61
Spustenie videa na TV




  mplayer ­display :0.1 ­fs film.avi




14.11.2009                             44/61
Nastavenie skratky




14.11.2009            45/61
Akcelerované video

   ●
       XvMC (Intel), len MPEG2
             –   X-Video Motion Compensation
   ●
       VDPAU (NVIDIA)
             –   Video Decode and Presentation API for
                  Unix
   ●
       XvBA (ATI)
             –   X-Video Bitstream Acceleration



14.11.2009                                               46/61
VA API – Čo to je?

   ●
       Video Acceleration API
             –   Umožňuje prístup ku GPU
             –   Modulárne backendy


   ●
       Backendy
             –   XvMC (Intel), len MPEG2
             –   VDPAU (NVIDIA)
             –   XvBA (ATI)

14.11.2009                                 47/61
VA API – Ako funguje?

             ●
                 DRI
             Direct Rendering Infrastructure
             Interface pre zdieľaný prístup k
             3D HW




             ●
                 DRM Kernel modul
             Direct Rendering Manager
             Správa prístupu k 3D HW
14.11.2009                                 48/61
VA API - backendy

  ●
      Intel Embedded Graphics Drivers (IEGD):
      http://edc.intel.com/Software/Downloads/IEGD/
  ●
      Intel GMA500 driver (OEM only):
      https://launchpad.net/~ubuntu-mobile/+archive/ppa
  ●
      Intel integrated G45 graphics chips:
      http://cgit.freedesktop.org/libva/tree/i965_drv_video
  ●
      VDPAU back-end for NVIDIA and VIA chipsets:
      http://www.splitted-
      desktop.com/~gbeauchesne/vdpau-video/
  ●
      VIA / S3 Graphics Accelerated Linux Driver:
      http://www.s3graphics.com/en/index.aspx
14.11.2009                                              49/61
VA API - Prehrávače
   ●
       FFmpeg (always use latest SVN tree):
       <http://ffmpeg.org/>
   ●
       Fluendo video codec pack for Intel Atom
       (GStreamer): <http://www.fluendo.com/>
   ●
       MPlayer/VAAPI: <http://www.splitted-
       desktop.com/~gbeauchesne/mplayer-vaapi/>
   ●
       RealPlayer for MID:
       <https://community.helixcommunity.org/Licens
       es/realplayer_for_mid_faq.html>
   ●
       VideoLAN - VLC media player:
       <http://www.videolan.org/>
14.11.2009                                        50/61
Nastavenie mplayeru
 VDPAU cez PPA
   ●
       ppa:nvidia-vdpau/ppa




14.11.2009                    51/61
Upgrade

   ●
       sudo aptitude update
   ●
       sudo aptitude safe-upgrade




14.11.2009                          52/61
dokonfigurovanie

   ●
       ~/.mplayer/config
subcp = "cp1250"
font = 
"/usr/share/fonts/truetype/msttcorefonts/Arial.ttf"
vo=vdpau,xv,
vc=ffvc1vdpau,ffh264vdpau,ffmpeg12vdpau,




14.11.2009                                            53/61
Test

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************




14.11.2009                                                    54/61
Diaľkové ovládanie
 LIRC
       ●
           /etc/lirc/hardware.conf
                 –   REMOTE="Home-brew (16x50 UART
                      compatible serial port)"
                 –   REMOTE_MODULES="lirc_serial"
       ●
           /etc/lirc/lircd.conf
                 –   doplniť súbor s namapovanými tlačidlami
       ●
           sudo cat /dev/lirc0
       ●
           irrecord
                 –   vráti namapované tlačidlá
       ●
14.11.2009
           irw                                           55/61
IR Detektor

   ●
       4 súčiastky
   ●
       Akýkoľvek IR ovládač
   ●
       Windows aj Linux




14.11.2009                    56/61
.lircrc

                             begin
  begin                        prog = irexec
     prog = mplayer            button = KEY_POWER
     button = KEY_RIGHT        config = sudo shutdown -h now &
     config = pause            repeat = 0
  End                        End

  begin                      begin
          prog = Rhythmbox     prog = irexec
          button = KEY_UP      button = KEY_TIME
          config = next        config = sudo shutdown -h +30 &
  end                          repeat = 0
                             end




14.11.2009                                                  57/61
Problém

   ●
       V hrách nám uteká kurzor z monitora na
       televízor a tak sa nedá scrollovať do
       jednej strany.
   ●
       Ako to riesiť?
   ●
       Ďalší X server




14.11.2009                                  58/61
Dedikovaný X server na hry
   ●
       Pred –- klientské parametre
   ●
       -ac zakázanie host based access controll
   ●
       -terminate vypne server po skončení
       aplikácie
   ●
       Pridať do /etc/X11/Xwrapper.config
             –   allowed_users=anybody

env WINEPREFIX="/home/michal/.wine" xinit 
/usr/bin/wine "/media/My Book/drive_c/Program 
Files/Warcraft III/war3.exe" ­­ :1 
­ac ­terminate ­config xorg­one.conf
14.11.2009                                        59/61
Zdroje
  http://en.wikipedia.org/wiki/X_Window_System
  http://en.wikibooks.org/wiki/NVidia/TV-OUT
  https://help.ubuntu.com/community/NvidiaTVOut
  http://www.x.org/releases/X11R7.5/doc/man/man5/x
  http://wiki.x.org/wiki/FAQ
  http://www.x.org/archive/X11R6.8.1/doc/Xserver.1.h
  http://www.nvidia.com/object/feature_twinview.html
  http://ubuntuforums.org/showthread.php?t=221174
  https://launchpad.net/~nvidia-vdpau/+archive/ppa
  http://www.cesko.host.sk/girderplugin_sk.htm



14.11.2009                                     60/61
LinuxFest podporujú

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Linux: Desktop na kazdy den

  • 1. LinuxFEST 14.11.2009 Desktop na každý deň Autor: Michal Sedlák Email: michal6103 [at] gmail [dot] com
  • 2. Obsah ● Popis situácie ● Čo všetko treba nastaviť ● X Window System ● Synchronizácia ● mplayer ● LIRC 14.11.2009 2/61
  • 3. Obmedzenia ● Osobné skúsenosti ● Ubuntu/Gnome (žiadne masívne úpravy, iba pár detailov do default nastavení) ● ATI a NVIDIA, žiadne Intel grafické chipy ● Igorov Češkov sériový detektor 14.11.2009 3/61
  • 4. Modelová situácia ● PC doma - Ubuntu – Nvidia, 1x monitor,TV Out – Multimediálne PC, hry ● PC škola - Ubuntu – ATI, 2x monitor – Pracovné PC ● Synchronizácia údajov ● Zálohovanie dôležitých veci 14.11.2009 4/61
  • 5. Čo všetko budeme nastavovať ● Všeobecné nastavenia – X server – Compiz – Synchronizácia ● Doma – Akcelerácia videa – Diaľkové ovládanie – Mediacentrum 14.11.2009 5/61
  • 6. X Window System ● Softvér a sieťový protokol ● X11 – 15. September 1987 ● X11R7.5 - 26. Október 2009 ● Klient - Server 14.11.2009 6/61
  • 8. SSH X forward ● ssh -CX michal@10.8.0.1 ● evolution ● ssh -CY michal@10.8.0.1 ● evolution 14.11.2009 8/61
  • 9. X Forwarding cez SSH 14.11.2009 9/61
  • 10. Statické nastavenie X xorg.conf ● Hlavný konfiguračný súbor ● Nepotrebný (autokonfigurácia) – Nvidia – Wacom ● Potrebný na trvalé zmeny ● Čokoľvek nastavujete, spravte si funkčnú zálohu xorg.conf ● Meniť /etc/X11/xorg.conf iba ROOT ● dpkg-reconfigure -phigh xserver-xorg 14.11.2009 10/61
  • 11. cat /etc/X11/xorg.conf Section "Screen" Identifier "Configured Screen Device" Device "Configured Video Device" SubSection "Display" Virtual 2560 2048 EndSubSection EndSection Section "Device" Identifier "Configured Video Device" EndSection 14.11.2009 11/61
  • 12. Drivers ● Rôzne druhy ovládačov ● Rôzne verzie ● Rôzne typy kariet ● Keď to nejde by default, len malá pravdepodobnosť, že to priemerný smrteľník rozbehá 14.11.2009 12/61
  • 13. NVIDIA drivers ● nv – Open source driver – 2D – Bez TV Out ● nouveau – Open source driver – 2D/3D (experimental/disabled) – bez TV Out ● nvidia - Binárny driver – 2D/3D 14.11.2009 13/61
  • 14. NVIDIA – binárny driver ● Automatická inštalácia – Systém -> Správa -> Ovládače HW ● Manuálna inštalácia – http://www.nvidia.com ● sudo apt-get install nvidia-settings ● sudo nvidia-settings 14.11.2009 14/61
  • 15. nvidia-settings ● monitory ● TV-Out ● HW Monitor 14.11.2009 15/61
  • 16. ATI drivers ● radeon - Open source – 2D – 3D z časti ● fglrx -binary dirver – 2D/3D ● radeonhd - Open source – 2D/3D 14.11.2009 16/61
  • 18. Randr Resize and Rotate Extension ● Umožnuje dynamické nastavenie X serveru ● V pôvodnom návrhu X11 nebol ● Bez xrandr sa zmena = reštart ● xrandr -v (nvidia, readeonhd, fglrx) – Server reports RandR version 1.3 ● xrandr -q 14.11.2009 18/61
  • 19. Xinerama ● Nepodporovaná ● Neodporúča sa používať ● Plne nahradená xrandr 14.11.2009 19/61
  • 20. Podpora 3D? ● Funguje 3D? $ glxinfo |grep render direct rendering: Yes OpenGL renderer string: GeForce 8500 GT/PCI/SSE2/3DNOW! $ glxgears 14.11.2009 20/61
  • 21. X Window System Hotovo ● Nastavené rozlíšenie monitora ● Zapnutá podpora 3D ● Compiz 14.11.2009 21/61
  • 22. Compiz ● Správca okien s podporou 3D ● Vykresľuje okná a ich okraje ● Ovláda interakcie medzi prvkami plochy ● Používa vedľajší buffer a okná vykresluje z neho už iba ako textúry v 3D ● Živé náhľady, deformácie okien, efekty 14.11.2009 22/61
  • 23. Compiz konfiguracia ● Systém -> Predvoľby -> Vzhľad 14.11.2009 23/61
  • 24. Compiz Config Settings Manager - inštalácia 14.11.2009 24/61
  • 29. devilspie ● Automatizácia operácií s oknami ● Skriptovací jazyk umožňuje robiť operácie s oknami ● Démon na pozadí ● Configurácia v ~/.devilspie/*.ds 14.11.2009 29/61
  • 30. Devislpie príklad michal@doma:~/.devilspie$ cat common.ds (if (is (application_name) "Rhythmbox") (begin (set_viewport 4) (if (maximize) (is (application_name ) "Transmission") ) (begin (set_viewport 3) (if (maximize) (is (application_name) "linuxdcpp") ) (begin ) (set_viewport 3) (maximize) ) ) 14.11.2009 30/61
  • 32. Devilspie - debug michal@skola­desktop:~/.devilspie$ cat debug.ds  (begin (println (application_name)) (println (window_name)) ) 14.11.2009 32/61
  • 33. Nastavené základné pracovné prostredie ● Doninštalovanie všetkých programov ● Nastavenie synchronizácie 14.11.2009 33/61
  • 34. Synchronizácia ● Súbory (konfigurácie, dáta) ● Pošta ● Kontakty ● Poznámky ● História chatu ● Bookmarky ● ... 14.11.2009 34/61
  • 35. Ubuntuone ● Online backup ● Synchronizácia viacerych strojov ● Súbory ● Kontakty ● Poznámky ● Podobné ako DropBox 14.11.2009 35/61
  • 36. DropBox ● Iba súbory ● Výber synchronizovaných priečinkov dáva viac možností (replikovanie konfigurácií a dát na úrovni súborov) 14.11.2009 36/61
  • 37. Google Apps - Evolution ● Mail – IMAP ● Kalendár – iCal ● Kontakty – Google Provider ● ToDo nie je naimplementované 14.11.2009 37/61
  • 38. Replikovanie konfigurácie ● Home priečinok ● .meno ● CTRL+H skryté súbory ● ls -a ● Zálohujte si /home a /etc ● Čo najmenej zmien v etc (upgrade) 14.11.2009 38/61
  • 39. Domáce nastavenia ● NVIDIA a TV Out ● LIRC ● Akcelerované video ● XBMC 14.11.2009 39/61
  • 40. Xinerama – Rovnaké vertikálne rozlíšenie – Spomalenie systému – HW akcelerácia iba na primárnom zariadení ● TwinView – Monitor aj televízor sa správali ako jeden displej – Panely a maximalizácia cez obe zariadenia – Nevhodne pre TV-Out 14.11.2009 40/61
  • 41. Separate screens – Televízor aj monitor sú dve plnohodnotné nezávislé zariadenia – Samostatný fullscreen – Dá sa prechádzať kurzorom z televízora na monitor a naopak – Medzi screenmi sa nedá preniesť aplikácia systémom drag and drop. – :0.0 a :0.1 14.11.2009 41/61
  • 42. 14.11.2009 42/61
  • 43. Vnútenie výstupu cez xrandr ● potlačenie detekcie vstupu ● xrandr ­­output S­video ­­set load_detection 1   ● ● Vnútenie výstupu na TV Out xrandr ­­addmode S­video 800x600 14.11.2009 43/61
  • 44. Spustenie videa na TV mplayer ­display :0.1 ­fs film.avi 14.11.2009 44/61
  • 46. Akcelerované video ● XvMC (Intel), len MPEG2 – X-Video Motion Compensation ● VDPAU (NVIDIA) – Video Decode and Presentation API for Unix ● XvBA (ATI) – X-Video Bitstream Acceleration 14.11.2009 46/61
  • 47. VA API – Čo to je? ● Video Acceleration API – Umožňuje prístup ku GPU – Modulárne backendy ● Backendy – XvMC (Intel), len MPEG2 – VDPAU (NVIDIA) – XvBA (ATI) 14.11.2009 47/61
  • 48. VA API – Ako funguje? ● DRI Direct Rendering Infrastructure Interface pre zdieľaný prístup k 3D HW ● DRM Kernel modul Direct Rendering Manager Správa prístupu k 3D HW 14.11.2009 48/61
  • 49. VA API - backendy ● Intel Embedded Graphics Drivers (IEGD): http://edc.intel.com/Software/Downloads/IEGD/ ● Intel GMA500 driver (OEM only): https://launchpad.net/~ubuntu-mobile/+archive/ppa ● Intel integrated G45 graphics chips: http://cgit.freedesktop.org/libva/tree/i965_drv_video ● VDPAU back-end for NVIDIA and VIA chipsets: http://www.splitted- desktop.com/~gbeauchesne/vdpau-video/ ● VIA / S3 Graphics Accelerated Linux Driver: http://www.s3graphics.com/en/index.aspx 14.11.2009 49/61
  • 50. VA API - Prehrávače ● FFmpeg (always use latest SVN tree): <http://ffmpeg.org/> ● Fluendo video codec pack for Intel Atom (GStreamer): <http://www.fluendo.com/> ● MPlayer/VAAPI: <http://www.splitted- desktop.com/~gbeauchesne/mplayer-vaapi/> ● RealPlayer for MID: <https://community.helixcommunity.org/Licens es/realplayer_for_mid_faq.html> ● VideoLAN - VLC media player: <http://www.videolan.org/> 14.11.2009 50/61
  • 51. Nastavenie mplayeru VDPAU cez PPA ● ppa:nvidia-vdpau/ppa 14.11.2009 51/61
  • 52. Upgrade ● sudo aptitude update ● sudo aptitude safe-upgrade 14.11.2009 52/61
  • 53. dokonfigurovanie ● ~/.mplayer/config subcp = "cp1250" font =  "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf" vo=vdpau,xv, vc=ffvc1vdpau,ffh264vdpau,ffmpeg12vdpau, 14.11.2009 53/61
  • 55. Diaľkové ovládanie LIRC ● /etc/lirc/hardware.conf – REMOTE="Home-brew (16x50 UART compatible serial port)" – REMOTE_MODULES="lirc_serial" ● /etc/lirc/lircd.conf – doplniť súbor s namapovanými tlačidlami ● sudo cat /dev/lirc0 ● irrecord – vráti namapované tlačidlá ● 14.11.2009 irw 55/61
  • 56. IR Detektor ● 4 súčiastky ● Akýkoľvek IR ovládač ● Windows aj Linux 14.11.2009 56/61
  • 57. .lircrc begin begin prog = irexec prog = mplayer button = KEY_POWER button = KEY_RIGHT config = sudo shutdown -h now & config = pause repeat = 0 End End begin begin prog = Rhythmbox prog = irexec button = KEY_UP button = KEY_TIME config = next config = sudo shutdown -h +30 & end repeat = 0 end 14.11.2009 57/61
  • 58. Problém ● V hrách nám uteká kurzor z monitora na televízor a tak sa nedá scrollovať do jednej strany. ● Ako to riesiť? ● Ďalší X server 14.11.2009 58/61
  • 59. Dedikovaný X server na hry ● Pred –- klientské parametre ● -ac zakázanie host based access controll ● -terminate vypne server po skončení aplikácie ● Pridať do /etc/X11/Xwrapper.config – allowed_users=anybody env WINEPREFIX="/home/michal/.wine" xinit  /usr/bin/wine "/media/My Book/drive_c/Program  Files/Warcraft III/war3.exe" ­­ :1  ­ac ­terminate ­config xorg­one.conf 14.11.2009 59/61
  • 60. Zdroje http://en.wikipedia.org/wiki/X_Window_System http://en.wikibooks.org/wiki/NVidia/TV-OUT https://help.ubuntu.com/community/NvidiaTVOut http://www.x.org/releases/X11R7.5/doc/man/man5/x http://wiki.x.org/wiki/FAQ http://www.x.org/archive/X11R6.8.1/doc/Xserver.1.h http://www.nvidia.com/object/feature_twinview.html http://ubuntuforums.org/showthread.php?t=221174 https://launchpad.net/~nvidia-vdpau/+archive/ppa http://www.cesko.host.sk/girderplugin_sk.htm 14.11.2009 60/61