Tuesday 24 October 2017

Debian 9 (stretch) on Sony Vaio Z SVZ1311C5E

Back on Debian. Would prefer a non-systemd distribution but sadly FreeBSD doesn't support various bits of hardware in this machine, and I'm not fussed on being hideously behind-the-times software wise or sitting on the bleeding edge. It's come a long way since Wheezy. Stretch has everything working out of the box with a few things to note.
  • Use the "non-free" installation media. This gets you the wireless firmware required for installation without ethernet. 
  • I wanted RAID1 and UEFI installation. Bit of messing around manually configuring the partition structure - and you NEED to enable UEFI "portable device" installation on this machine.
  • Bluetooth needs switching on.
    • apt-get install rfkill
    • rfkill list all
    • rfkill enable (whatever the ID of hci0 is)
  • I've ended up on MATE this time. It's like XFCE but more polished, and everything seems to work without messing. But to cleanup after other DE experiments:
    • apt-get purge `dpkg --get-selections | grep xfce | cut -f 1`
    • apt-get autoremove
  • Monitor size is reported incorrectly.
    • xrandr --prop
      • Gets the real display size (290x160mm)
      • We know this is actually not quite correct due to real life measurement and 16:9 ratio. It's 290 wide, but over 160 high (163)
    • xdpyinfo | grep -B2 resolution
      • Shows the wrong display size
    • Drop to single user as root (kill the display manager) and run:
      • Xorg -configure
    • Copy the created xorg.conf into /etc/X11/xorg.conf
    • Edit and add to the "Monitor" section
      • DisplaySize 290 163
    • Restart the display manager
  • Samba doesn't browse properly.
    • /etc/samba/smb.conf
    • Add to [global] section
      • netbios name = ETHER
      • name resolve order = bcast wins lmhosts hosts
    • Comment out/"Yes"
      • dns proxy  = no
    •