[{"data":1,"prerenderedAt":751},["ShallowReactive",2],{"blog-\u002Fen\u002Fblog\u002Finstallation-plex-media-server-sur-debian":3,"blog-\u002Fen\u002Fblog\u002Finstallation-plex-media-server-sur-debian-surround":699,"blog-\u002Fen\u002Fblog\u002Finstallation-plex-media-server-sur-debian-certifications":750},{"id":4,"title":5,"body":6,"categories":687,"cover":688,"cover_contain":689,"credly_badge_id":687,"date":690,"description":691,"extension":692,"meta":693,"navigation":689,"path":694,"related_certifications":687,"seo":695,"slug":696,"stem":697,"__hash__":698},"blog\u002Fen\u002Fblog\u002Finstallation-plex-media-server-sur-debian.md","Installing Plex Media Server on Debian 8",{"type":7,"value":8,"toc":676},"minimark",[9,14,18,77,81,109,116,158,162,181,188,213,224,256,267,290,293,305,310,324,333,394,406,410,423,432,450,455,468,479,486,491,498,501,506,509,513,520,539,563,572,595,600,603,631,634,639,668,672],[10,11,13],"h2",{"id":12},"real-world-use-case","Real-world use case",[15,16,17],"p",{},"You want to centralize and stream your personal media library: here's how to install Plex Media Server on Debian 8.",[15,19,20,24,25,28,29,32,33,36,39,40,42,43,52,53,52,57,61,62,32,67,69,70,73,74,32],{},[21,22,23],"strong",{},"Plex Media Server"," (",[21,26,27],{},"PMS",") is a partly open-source project licensed under the GPL and is very close to ",[21,30,31],{},"XBMC",".",[34,35],"br",{},[21,37,38],{},"Installation"," is very easy and requires no particular knowledge, beginners welcome!",[34,41],{},"\nWe'll be using support from the ",[44,45,49],"a",{"href":46,"rel":47},"https:\u002F\u002Fforums.plex.tv\u002Findex.php\u002Fforum\u002F27-fran%C3%A7ais\u002F",[48],"nofollow",[21,50,51],{},"Plex"," ",[44,54,56],{"href":46,"rel":55},[48],"(FR)",[44,58,60],{"href":46,"rel":59},[48],"community"," and its ",[44,63,66],{"href":64,"rel":65},"https:\u002F\u002Fplexapp.zendesk.com\u002Fhc\u002Fen-us\u002Farticles\u002F200288586-Installation",[48],"installation documentation",[34,68],{},"\nThis article focuses on ",[21,71,72],{},"installing Plex"," on a ",[21,75,76],{},"remote server with no graphical interface",[10,78,80],{"id":79},"foreword-plex-media-server","Foreword: Plex Media Server",[15,82,83,84,86,87,90,91,93,94,52,100,52,104,108],{},"\"",[21,85,27],{},"\" is compatible across various ",[21,88,89],{},"Linux distributions",", with a very active community.",[34,92],{},"\nOn the ",[44,95,98],{"href":96,"rel":97},"https:\u002F\u002Fplex.tv\u002Fdownloads",[48],[21,99,51],{},[44,101,103],{"href":96,"rel":102},[48],"download",[44,105,107],{"href":96,"rel":106},[48],"page",", you get to choose your platform.",[15,110,111],{},[112,113],"img",{"alt":114,"src":115},"","\u002Fimages\u002Fblog\u002Finstallation-plex-media-server-sur-debian\u002Faf2b93d6ec.png",[15,117,118,119,122,123,126,127,32,134,136,138,139,142,143,138,146,149,150,153,154,157],{},"Since the sources are made available, a version ",[21,120,121],{},"compatible"," with ",[21,124,125],{},"Arch Linux"," is available on ",[44,128,131],{"href":129,"rel":130},"https:\u002F\u002Fwiki.archlinux.org\u002Findex.php\u002FPlex",[48],[21,132,133],{},"AUR",[34,135],{},[21,137,51],{}," on ",[21,140,141],{},"Linux"," is great, but it's also ",[21,144,145],{},"available",[21,147,148],{},"Windows",", ",[21,151,152],{},"macOS",", and ",[21,155,156],{},"FreeBSD","!",[10,159,161],{"id":160},"installing-plex-media-server","Installing Plex Media Server",[15,163,164,165,167,168,170,171,174,175,32,178,180],{},"Installing the ",[21,166,23],{}," is a very quick step (a few seconds).",[34,169],{},"\nIn my case, I didn't use the \"",[21,172,173],{},".deb","\" offered on the official site, since it's intended for ",[21,176,177],{},"Ubuntu",[34,179],{},"\nHere's the method used on Debian 7:",[15,182,183,184,187],{},"Installing \"",[21,185,186],{},"curl","\":",[189,190,194],"pre",{"className":191,"code":192,"language":193,"meta":114,"style":114},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","apt-get install curl\n","bash",[195,196,197],"code",{"__ignoreMap":114},[198,199,202,206,210],"span",{"class":200,"line":201},"line",1,[198,203,205],{"class":204},"sBMFI","apt-get",[198,207,209],{"class":208},"sfazB"," install",[198,211,212],{"class":208}," curl\n",[15,214,215,216,219,220,223],{},"Add the ",[21,217,218],{},"mirror"," to the \"",[21,221,222],{},"sources.list.d","\" folder:",[189,225,227],{"className":191,"code":226,"language":193,"meta":114,"style":114},"echo \"deb http:\u002F\u002Fshell.ninthgate.se\u002Fpackages\u002Fdebian jessie main\" | tee -a \u002Fetc\u002Fapt\u002Fsources.list.d\u002Fplexmediaserver.list\n",[195,228,229],{"__ignoreMap":114},[198,230,231,235,239,242,244,247,250,253],{"class":200,"line":201},[198,232,234],{"class":233},"s2Zo4","echo",[198,236,238],{"class":237},"sMK4o"," \"",[198,240,241],{"class":208},"deb http:\u002F\u002Fshell.ninthgate.se\u002Fpackages\u002Fdebian jessie main",[198,243,83],{"class":237},[198,245,246],{"class":237}," |",[198,248,249],{"class":204}," tee",[198,251,252],{"class":208}," -a",[198,254,255],{"class":208}," \u002Fetc\u002Fapt\u002Fsources.list.d\u002Fplexmediaserver.list\n",[15,257,258,259,262,263,266],{},"Download the mirror's \"",[21,260,261],{},"APT","\" ",[21,264,265],{},"key"," with \"curl\":",[189,268,270],{"className":191,"code":269,"language":193,"meta":114,"style":114},"curl http:\u002F\u002Fshell.ninthgate.se\u002Fpackages\u002Fshell.ninthgate.se.gpg.key | apt-key add -\n",[195,271,272],{"__ignoreMap":114},[198,273,274,276,279,281,284,287],{"class":200,"line":201},[198,275,186],{"class":204},[198,277,278],{"class":208}," http:\u002F\u002Fshell.ninthgate.se\u002Fpackages\u002Fshell.ninthgate.se.gpg.key",[198,280,246],{"class":237},[198,282,283],{"class":204}," apt-key",[198,285,286],{"class":208}," add",[198,288,289],{"class":208}," -\n",[15,291,292],{},"Sync the mirrors:",[189,294,296],{"className":191,"code":295,"language":193,"meta":114,"style":114},"apt-get update\n",[195,297,298],{"__ignoreMap":114},[198,299,300,302],{"class":200,"line":201},[198,301,205],{"class":204},[198,303,304],{"class":208}," update\n",[15,306,307,308,187],{},"Install \"",[21,309,23],{},[189,311,313],{"className":191,"code":312,"language":193,"meta":114,"style":114},"apt-get install plexmediaserver\n",[195,314,315],{"__ignoreMap":114},[198,316,317,319,321],{"class":200,"line":201},[198,318,205],{"class":204},[198,320,209],{"class":208},[198,322,323],{"class":208}," plexmediaserver\n",[15,325,326,327,262,329,332],{},"Check that the \"",[21,328,51],{},[21,330,331],{},"process"," is running:",[189,334,336],{"className":191,"code":335,"language":193,"meta":114,"style":114},"ps aux | grep plex\nroot     15937  0.0  0.0   4052   816 pts\u002F0    S+   10:23   0:00 grep --color=auto plex\n",[195,337,338,354],{"__ignoreMap":114},[198,339,340,343,346,348,351],{"class":200,"line":201},[198,341,342],{"class":204},"ps",[198,344,345],{"class":208}," aux",[198,347,246],{"class":237},[198,349,350],{"class":204}," grep",[198,352,353],{"class":208}," plex\n",[198,355,357,360,364,367,369,372,375,378,381,384,387,389,392],{"class":200,"line":356},2,[198,358,359],{"class":204},"root",[198,361,363],{"class":362},"sbssI","     15937",[198,365,366],{"class":362},"  0.0",[198,368,366],{"class":362},[198,370,371],{"class":362},"   4052",[198,373,374],{"class":362},"   816",[198,376,377],{"class":208}," pts\u002F0",[198,379,380],{"class":208},"    S+",[198,382,383],{"class":208},"   10:23",[198,385,386],{"class":208},"   0:00",[198,388,350],{"class":208},[198,390,391],{"class":208}," --color=auto",[198,393,353],{"class":208},[15,395,396,397,399,400,402,403,405],{},"A \"",[21,398,51],{},"\" user is automatically created for the server to run.",[34,401],{},"\nThe rest of the installation requires a local web browser, which I don't have!",[34,404],{},"\nAs a reminder, in my case I'm not using a graphical interface.",[10,407,409],{"id":408},"accessing-pms-without-a-graphical-interface","Accessing \"PMS\" without a graphical interface",[15,411,412,414,415,418,419,422],{},[21,413,51],{}," will need to continue the ",[21,416,417],{},"installation"," (only) on ",[21,420,421],{},"localhost"," at:",[189,424,426],{"className":191,"code":425,"language":193,"meta":114,"style":114},"http:\u002F\u002Flocalhost:32400\u002Fweb\n",[195,427,428],{"__ignoreMap":114},[198,429,430],{"class":200,"line":201},[198,431,425],{"class":204},[15,433,434,435,438,439,441,442,449],{},"So ",[21,436,437],{},"without a graphical interface",", it's impossible to continue the installation.",[34,440],{},"\nHowever, there's a very simple method: an ",[44,443,446],{"href":444,"rel":445},"http:\u002F\u002Fwiki.korben.info\u002Ftunnel_ssh#qu%27est-ce_qu%27un_tunnel_ssh%C2%A0?",[48],[21,447,448],{},"SSH tunnel"," can work around this problem.",[451,452,454],"h3",{"id":453},"method-for-windows","Method for Windows:",[15,456,457,458,461,462,467],{},"Download \"",[21,459,460],{},"PuTTY","\" software (",[44,463,466],{"href":464,"rel":465},"http:\u002F\u002Fwww.chiark.greenend.org.uk\u002F~sgtatham\u002Fputty\u002Fdownload.html",[48],"link","), and follow these instructions:",[15,469,470,471,474,475,478],{},"Launch PuTTY and fill in the \"",[21,472,473],{},"host name or IP","\" and \"",[21,476,477],{},"Connection type","\" fields.",[15,480,481,482,485],{},"Save your configuration with \"",[21,483,484],{},"Save","\": don't forget to give it a name.",[15,487,488],{},[112,489],{"alt":114,"src":490},"\u002Fimages\u002Fblog\u002Finstallation-plex-media-server-sur-debian\u002F208f2802d6.png",[15,492,493,494,497],{},"Then go to the menu on the left side, then: \"",[21,495,496],{},"Connection\u002FSSH\u002FTunnels","\".",[15,499,500],{},"Set up your tunnel, then click \"Add\":",[15,502,503],{},[112,504],{"alt":114,"src":505},"\u002Fimages\u002Fblog\u002Finstallation-plex-media-server-sur-debian\u002F0870cdaca5.png",[15,507,508],{},"Connect by clicking \"Open\"!",[451,510,512],{"id":511},"method-for-linux","Method for Linux:",[15,514,515,516,519],{},"Run the following command in the terminal of your favorite ",[21,517,518],{},"Linux distribution",":",[189,521,523],{"className":191,"code":522,"language":193,"meta":114,"style":114},"ssh root@your_ip -L 8888:localhost:32400\n",[195,524,525],{"__ignoreMap":114},[198,526,527,530,533,536],{"class":200,"line":201},[198,528,529],{"class":204},"ssh",[198,531,532],{"class":208}," root@your_ip",[198,534,535],{"class":208}," -L",[198,537,538],{"class":208}," 8888:localhost:32400\n",[15,540,541,542,545,546,262,548,551,552,554,555,558,559,562],{},"Once connected to the ",[21,543,544],{},"remote server"," hosting the \"",[21,547,27],{},[21,549,550],{},"server",",",[34,553],{},"\nopen your favorite ",[21,556,557],{},"web browser"," (in my case ",[21,560,561],{},"Firefox",") and go to the URL below:",[189,564,566],{"className":191,"code":565,"language":193,"meta":114,"style":114},"http:\u002F\u002Flocalhost:8888\u002Fmanage\n",[195,567,568],{"__ignoreMap":114},[198,569,570],{"class":200,"line":201},[198,571,565],{"class":204},[15,573,574,576,577,580,581,584,585,587,588,591,592,32],{},[21,575,51],{}," shows you the ",[21,578,579],{},"usage license"," for the ",[21,582,583],{},"Plex media server",": you need to accept it.",[34,586],{},"\nThe rest is fairly simple, wait and start ",[21,589,590],{},"configuring"," the ",[21,593,594],{},"PMS server",[15,596,597],{},[112,598],{"alt":114,"src":599},"\u002Fimages\u002Fblog\u002Finstallation-plex-media-server-sur-debian\u002F1de076270c.png",[15,601,602],{},"The four important steps are:",[604,605,606,613,619,625],"ol",{},[607,608,83,609,612],"li",{},[21,610,611],{},"Welcome to Plex Media Server","\": Register with the Plex service.",[607,614,83,615,618],{},[21,616,617],{},"Basic Settings","\": Give the server a name and optionally add your email.",[607,620,83,621,624],{},[21,622,623],{},"Create your library","\": Add a selection.",[607,626,83,627,630],{},[21,628,629],{},"Install channels","\": For more services, you need to connect Plex to them.",[15,632,633],{},"It runs on: smartphones\u002Ftablets\u002FWindows 8\u002Fsmart TV\u002FApple TV\u002FRaspberry Pi…",[15,635,636],{},[112,637],{"alt":114,"src":638},"\u002Fimages\u002Fblog\u002Finstallation-plex-media-server-sur-debian\u002F1f59345bcc.png",[15,640,641,642,645,646,649,650,653,654,32,657,659,660,665,667],{},"The \"",[21,643,644],{},"metadata agent","\": ",[21,647,648],{},"TheMovieDB"," is installed to fetch ",[21,651,652],{},"cover art"," and ",[21,655,656],{},"synopses",[34,658],{},"\nAn article on the cover art system on ",[44,661,664],{"href":662,"rel":663},"http:\u002F\u002Fwww.hdfever.fr\u002F2012\u002F07\u002F05\u002Fplex-systeme-de-jaquettes-pour-smart-tv\u002F",[48],"Smart TVs.",[34,666],{},"\nEnjoy your Plex Media Server!",[10,669,671],{"id":670},"conclusion","Conclusion",[673,674,675],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":114,"searchDepth":356,"depth":356,"links":677},[678,679,680,681,686],{"id":12,"depth":356,"text":13},{"id":79,"depth":356,"text":80},{"id":160,"depth":356,"text":161},{"id":408,"depth":356,"text":409,"children":682},[683,685],{"id":453,"depth":684,"text":454},3,{"id":511,"depth":684,"text":512},{"id":670,"depth":356,"text":671},null,"\u002Fimages\u002Fblog\u002Finstallation-plex-media-server-sur-debian\u002Fea86a7e30d.png",true,"2014-01-29","Plex Media Server is a project derived from XBMC. Manage, organize, and stream all your media files.","md",{},"\u002Fen\u002Fblog\u002Finstallation-plex-media-server-sur-debian",{"title":5,"description":691},"installation-plex-media-server-sur-debian","en\u002Fblog\u002Finstallation-plex-media-server-sur-debian","VhjCUBsEnq5AXRIC-LLLUVnyCHvifIDnAY46ZEGhXW8",[700,708,714,721,726,732,738,744],{"title":701,"path":702,"stem":703,"date":704,"cover":705,"categories":706,"children":-1},"The Destruction of Net Neutrality Is Underway: Get Angry!","\u002Fen\u002Fblog\u002Fdestruction-neutralite-net-est-marche-indignez-vous","en\u002Fblog\u002Fdestruction-neutralite-net-est-marche-indignez-vous","2014-03-23","\u002Fimages\u002Fblog\u002Fdestruction-neutralite-net-est-marche-indignez-vous\u002Fddb702d91a.jpg",[707],"Évènement",{"title":709,"path":710,"stem":711,"date":712,"cover":713,"categories":687,"children":-1},"Jailing an SSH User on Linux","\u002Fen\u002Fblog\u002Femprisonner-utilisateur-ssh-sous-linux","en\u002Fblog\u002Femprisonner-utilisateur-ssh-sous-linux","2014-02-23","\u002Fimages\u002Fblog\u002Femprisonner-utilisateur-ssh-sous-linux\u002F5e5571284a.png",{"title":715,"path":716,"stem":717,"date":718,"cover":719,"categories":720,"children":-1},"Discover the Magic: Adobe Creative Cloud!","\u002Fen\u002Fblog\u002Fdecouvrez-magie-adobe-creative-cloud","en\u002Fblog\u002Fdecouvrez-magie-adobe-creative-cloud","2014-02-06","\u002Fimages\u002Fblog\u002Fdecouvrez-magie-adobe-creative-cloud\u002Fc5befd8385.jpg",[707],{"title":722,"path":723,"stem":724,"date":690,"cover":725,"categories":687,"children":-1},"The Fitbit Force, a Pioneer of Connected Wristbands","\u002Fen\u002Fblog\u002Ffitbit-force-precurseur-des-bracelets-connectes","en\u002Fblog\u002Ffitbit-force-precurseur-des-bracelets-connectes","\u002Fimages\u002Fblog\u002Ffitbit-force-precurseur-des-bracelets-connectes\u002F591236ebce.jpg",{"title":727,"path":728,"stem":729,"date":730,"cover":731,"categories":687,"children":-1},"Installing Splunk on Debian 7","\u002Fen\u002Fblog\u002Finstallation-splunk-sur-debian","en\u002Fblog\u002Finstallation-splunk-sur-debian","2014-01-14","\u002Fimages\u002Fblog\u002Finstallation-splunk-sur-debian\u002Ff8405ad901.jpg",{"title":733,"path":734,"stem":735,"date":736,"cover":737,"categories":687,"children":-1},"Installing Clipperz on Debian 7","\u002Fen\u002Fblog\u002Finstallation-clipperz-sur-debian","en\u002Fblog\u002Finstallation-clipperz-sur-debian","2014-01-12","\u002Fimages\u002Fblog\u002Finstallation-clipperz-sur-debian\u002Fd61b13f064.png",{"title":739,"path":740,"stem":741,"date":742,"cover":743,"categories":687,"children":-1},"Installing OpenVPN ALS Adito on CentOS 6.5","\u002Fen\u002Fblog\u002Finstallation-openvpn-als-adito-sur-centos","en\u002Fblog\u002Finstallation-openvpn-als-adito-sur-centos","2014-01-05","\u002Fimages\u002Fblog\u002Finstallation-openvpn-als-adito-sur-centos\u002Fa500a01b28.png",{"title":745,"path":746,"stem":747,"date":748,"cover":749,"categories":687,"children":-1},"Installing the Pound and Varnish Reverse Proxies","\u002Fen\u002Fblog\u002Finstallation-des-proxy-inverses-pound-varnish","en\u002Fblog\u002Finstallation-des-proxy-inverses-pound-varnish","2013-12-31","\u002Fimages\u002Fblog\u002Finstallation-des-proxy-inverses-pound-varnish\u002Fec4618d7ad.jpg",[],1786644891365]