Author | Message |
drcrazy |
#98 03/05/2014 20:30 GMT |
Source: http://forum.xbmc.org/showthread.php?tid=141369
1) Download netboot mini iso (http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/mini.iso) 2.1) For MS Windows download & install (http://unetbootin.sourceforge.net/unetbootin-windows-latest.exe) 2.2) For Ubuntu Code: sudo apt-get update && sudo apt-get install unetbootin 3) Create bootable USB using unetbootin and mini.iso 4) Boot from USB 5) Select "Install" 6) Choose language (English) 7) Choose country (BY) 8 ) Choose locale (en_US) 9) Configure keyboard (No autodetect->English US) 10) enter hostname (htpc) 11) Select ubuntu mirror (Belarus, no proxy) 12) Setup user (drcrazy, no encryption for home dir) 13) Confirm timezone 14) Partition - Guided - use entire disk Wait for installation 15) Updates management - No auto updates 16) Choose only OpenSSH server 17) Confirm GRUB This post was edited by drcrazy (03/05/2014 21:38 GMT, ago) |
|
The pleasure of satisfying a savage instinct, undomesticated by the ego, is incomparably much more intense then the one of satisfying a tamed instinct. S.Freud.
|
|
drcrazy |
#99 04/05/2014 10:14 GMT |
Setup Ubuntu server
1) Fix Locale Bug Code: $> sudo nano /etc/environment Add: Code: LC_MESSAGES="C" LC_ALL="en_US.UTF-8" 2) Fix Usb Automount Code: $> sudo nano /etc/modules Add: Code: usb-storage Code: $> sudo touch /etc/udev/rules.d/media-by-label-auto-mount.rules $> sudo nano /etc/udev/rules.d/media-by-label-auto-mount.rules Add: Code: # Start at sdc to avoid harddrives. KERNEL!="sd[c-z][0-9]", GOTO="media_by_label_auto_mount_end" # Import FS infos IMPORT{program}="/sbin/blkid -o udev -p %N" # Get a label if present, otherwise specify one ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}" ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k" # Global mount options ACTION=="add", ENV{mount_options}="relatime" # Filesystem-specific mount options ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002" # Mount the device ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}" # Clean up after removal ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}" # Exit LABEL="media_by_label_auto_mount_end" 3) Apply nice level permissions Code: $> sudo nano /etc/security/limits.conf Add: Code: drcrazy - nice -1 4) Add user to required groups Code: $> sudo adduser drcrazy video
$> sudo adduser drcrazy audio $> sudo adduser drcrazy users $> sudo adduser drcrazy fuse $> sudo adduser drcrazy dialout This post was edited by drcrazy (05/05/2014 14:41 GMT, ago) |
|
The pleasure of satisfying a savage instinct, undomesticated by the ego, is incomparably much more intense then the one of satisfying a tamed instinct. S.Freud.
|
|
drcrazy |
#101 05/05/2014 14:27 GMT |
Install and setup XBMC
1) Add XBMC ppa Code: $> sudo apt-get install python-software-properties pkg-config $> sudo apt-get install software-properties-common $> sudo add-apt-repository ppa:team-xbmc/unstable $> sudo apt-get update 2) Upgrade Code: $> sudo apt-get upgrade 3) Install video driver Code: $> sudo apt-get install i965-va-driver 4) Install xinit Code: $> sudo apt-get install xinit 5) Install XBMC Code: $> sudo apt-get install xbmc 6) Install XBMC Upstart Script Code: $> sudo touch /etc/init/xbmc.conf $> sudo nano /etc/init/xbmc.conf Add: Code: # xbmc standalone service # starts XBMC on startup by using xinit. # will try to auto respawn for 5 mins if it crashes # launches xbmc in the "standalone mode" with no xcursor (cursor in xbmc still works) # by default runs as drcrazy, to change edit below. env USER=drcrazy description "XBMC standalone service" author "Matt Filetto" start on (started dbus and started mountall and net-device-up IFACE!=lo) stop on runlevel [016] # tell upstart to respawn the process if abnormal exit respawn respawn limit 10 5 # nice level limit nice 21 21 script exec su -c "xinit /usr/bin/xbmc --standalone -- -bs -nocursor :0" $USER end script Code: $> sudo ln -s /lib/init/upstart-job /etc/init.d/xbmc 7) Install XBMC boot screen Code: $> sudo apt-get install plymouth-label v86d $> wget https://github.com/Albinoman887/xbmc-ubuntu-minimal/raw/master/12.10/download/plymouth-theme-xbmc-logo.deb $> sudo dpkg -i plymouth-theme-xbmc-logo.deb $> sudo update-alternatives --install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/xbmc-logo/xbmc-logo.plymouth 100 $> sudo nano /etc/initramfs-tools/conf.d/splash Add: Code: FRAMEBUFFER=y 8 ) Select screen resolution sudo sed -i '/gfxmode=/ a\ set gfxpayload=keep' /etc/grub.d/00_header sudo nano /etc/default/grub Add: Code: GRUB_CMDLINE_LINUX="usbcore.autosuspend=-1 video=uvesafb:mode_option=1024x768-24,mtrr=3,scroll=ywrap" GRUB_GFXMODE=1024x768 GRUB_RECORDFAIL_TIMEOUT=0 Code: $> sudo nano /etc/initramfs-tools/modules Add: Code: uvesafb mode_option=1024x768-24 mtrr=3 scroll=ywrap Code: $> sudo update-grub $> sudo update-initramfs -u 9) Reconfigure X server Code: sudo touch /etc/X11/Xwrapper.config sudo nano /etc/X11/Xwrapper.config Add: Code: allowed_users=anybody 10) Install power management Code: $> sudo apt-get install -y policykit-1 $> sudo apt-get install -y upower $> sudo apt-get install -y udisks $> sudo apt-get install -y acpi-support $> sudo apt-get install -y consolekit $> sudo apt-get install -y pm-utils $> sudo touch /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla $> sudo nano /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla Add: Code: [Actions for drcrazy user] Identity=unix-user:drcrazy Action=org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.udisks.* ResultAny=yes ResultInactive=yes ResultActive=yes [Untrusted Upgrade] Identity=unix-user:drcrazy Action=org.debian.apt.upgrade-packages;org.debian.apt.update-cache ResultAny=yes ResultInactive=yes ResultActive=yes 11) Install audio Code: $> sudo apt-get install -y linux-sound-base alsa-base alsa-utils $> sudo alsamixer 12) XBMC tweaks 12.1) Install Lm sensors Code: $> sudo apt-get install lm-sensors Add: $> sudo sensors-detect $> touch /home/drcrazy/.xbmc/userdata/advancedsettings.xml $> nano /home/drcrazy/.xbmc/userdata/advancedsettings.xml Code: <advancedsettings> <gputempcommand>echo "$(nvidia-settings -c :0 -tq GPUCoreTemp) C"</gputempcommand> <cputempcommand>echo "$(sensors -u | head -6 |grep "temp2_input"| awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}') C"</cputempcommand> </advancedsettings> 12.2) installXbmcAddonRepositoriesInstaller 13) selectAdditionalPackages sudo apt-get install -y nfs-common 14) Optimize installation Code: $> sudo echo "none /tmp tmpfs defaults 0 0" >> /etc/fstab $> sudo service apparmor stop $> sudo service apparmor teardown $> sudo update-rc.d -f apparmor remove $> sudo apt-get purge apparmor $> sudo nano /etc/init/rsyslog.conf Remove pre-start part Code: $> sudo nano /etc/sysctl.conf Add: Code: dev.cdrom.lock=0
vm.swappiness=10 This post was edited by drcrazy (05/05/2014 14:43 GMT, ago) |
|
The pleasure of satisfying a savage instinct, undomesticated by the ego, is incomparably much more intense then the one of satisfying a tamed instinct. S.Freud.
|
|
drcrazy |
#102 05/05/2014 14:40 GMT |
Correct command to see CPU temp:
echo "$(sensors -u | grep "temp1_input"| awk '{print $2 }' |awk '{printf("%d C \n",$1 + 0.5);}')" (Source: http://forum.xbmc.org/showthread.php?tid=101125) |
|
The pleasure of satisfying a savage instinct, undomesticated by the ego, is incomparably much more intense then the one of satisfying a tamed instinct. S.Freud.
|