{"id":66,"date":"2010-12-29T23:53:44","date_gmt":"2010-12-29T22:53:44","guid":{"rendered":"http:\/\/svalgaard.net\/jens\/blog\/?p=66"},"modified":"2012-05-23T23:56:36","modified_gmt":"2012-05-23T21:56:36","slug":"re-installing-my-linux-server","status":"publish","type":"post","link":"https:\/\/svalgaard.net\/jens\/blog\/2010\/12\/re-installing-my-linux-server\/","title":{"rendered":"Re-installing my Linux server"},"content":{"rendered":"<p>Just a few notes for myself on how to re-install my server running Ubuntu. Including setup of mythtv etc.<!--more--><\/p>\n<p>After installing the server if running into a grub problem, simply install grub-pc from a rescue cd\/usb stick. (grub-efi does for some reason not work in my setup).<\/p>\n<p>Interesting packages, I usually install:<\/p>\n<h3>apt-cacher-ng<\/h3>\n<p>After installation, create\/etc\/apt\/apt.conf.d\/00proxy-beatrix with<\/p>\n<p>Acquire::http { Proxy &#8220;http:\/\/beatrix.svalgaard.net:3142&#8221;; };<\/p>\n<h3>Logitech Media Server \/ slim server (or what ever the current name is)<\/h3>\n<p>Add a file\u00a0\/etc\/apt\/sources.list.d\/slimdevices.list with the following line:<\/p>\n<p>deb http:\/\/debian.slimdevices.com stable main<\/p>\n<h3>MySQL<\/h3>\n<p>This is later used for MythTV. Copy old database files from \/var\/lib\/mysql\/<\/p>\n<p>Allow remote connections as described here:\u00a0http:\/\/www.mythtv.org\/wiki\/Mythfrontend<\/p>\n<h3>udev &#8211; persistent DVB names<\/h3>\n<p>To ensure that my DVB USB devices get the same name at every boot create a file\u00a0\/etc\/udev\/rules.d\/dvb-svalle.rules with a contents like this:<\/p>\n<p><code># get possible attributes using this cmd:<br \/>\n# udevadm info -a -$(udevadm info -q path -n \/dev\/sdb)<br \/>\n# udevadm info -a -p $(udevadm info -q path -n \/dev\/dvb\/adapter0\/dvr0)<br \/>\n#<br \/>\n# Also see<br \/>\n# http:\/\/www.mythtv.org\/wiki\/Device_Filenames_and_udev<\/code><\/p>\n<p># 10 AnySee DVB-T Tuner<br \/>\nSUBSYSTEM==&#8221;dvb&#8221;, ATTRS{manufacturer}==&#8221;AMT.CO.KR&#8221;, ATTRS{product}==&#8221;anysee-T(LP)&#8221;, PROGRAM=&#8221;\/bin\/sh -c &#8216;K=%k; K=$${K#dvb}; printf dvb\/adapter10\/%%s $${K#*.}'&#8221;, SYMLINK+=&#8221;%c&#8221;<\/p>\n<p># 20,21 Hauppauge Nova-DT (dual) DVB-T<br \/>\nSUBSYSTEM==&#8221;dvb&#8221;, ATTRS{manufacturer}==&#8221;Hauppauge&#8221;, ATTRS{product}==&#8221;WinTV Nova-DT&#8221;, ATTRS{serial}==&#8221;4032816595&#8243;, PROGRAM=&#8221;\/bin\/sh -c &#8216; K=%k; K=$${K#dvb}; N=$${K#*.}; if [ ! -e \/dev\/dvb\/adapter50\/$N ] ; then printf dvb\/adapter50\/%%s $${K#*.}; else printf dvb\/adapter51\/%%s $${K#*.}; fi ; exit 0&#8242;&#8221;, SYMLINK+=&#8221;%c&#8221;<\/p>\n<p># 30 Asus DVB-T Tuner: U3100 mini<br \/>\nSUBSYSTEM==&#8221;dvb&#8221;, ATTRS{manufacturer}==&#8221;ASUSTeK&#8221;, ATTRS{product}==&#8221;ASUS DVBT Tuner&#8221;, ATTRS{serial}==&#8221;8702700522&#8243;, PROGRAM=&#8221;\/bin\/sh -c &#8216;K=%k; K=$${K#dvb}; printf dvb\/adapter30\/%%s $${K#*.}'&#8221;, SYMLINK+=&#8221;%c&#8221;<\/p>\n<h3>exim4-daemon-light<\/h3>\n<p>After installation set it up using<\/p>\n<pre>dpkg-reconfigure exim4-config<\/pre>\n<pre>as an \"internet site\" which basically means that it tries to send email directly to everybody<\/pre>\n<pre>Also: you may want to setup .forward for most accounts to make it forward email to the real hosts<\/pre>\n<h3>NFS<\/h3>\n<p>install nfs-kernel-server and add this to \/etc\/exports<br \/>\n\/share 172.16.3.0\/24(rw,no_root_squash,nohide,async,no_subtree_check,insecure)<br \/>\n\/home 172.16.3.7(rw,no_root_squash,nohide,async,no_subtree_check,insecure)<\/p>\n<p>&nbsp;<\/p>\n<h3>mythtv-backend-master<\/h3>\n<p>Maybe first copy old db settings from \/etc\/mythtv<\/p>\n<h3>cups<\/h3>\n<p>cups and cups-bsd needs to be installed<\/p>\n<h3>subversion<\/h3>\n<p>install subversion +\u00a0libapache2-svn<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just a few notes for myself on how to re-install my server running Ubuntu. Including setup of mythtv etc.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":12,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":119,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions\/119"}],"wp:attachment":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}