= Dr. A's Ubuntu Install Notes = These are general notes and not specific to a class, so tread lightly if you are one of my students. == Ubuntu 18.04 - 22.04 == Ground zero problem: DHCP is not pulling an address. Edit /etc/netplan/[?].yaml {{{ network: ethernets: eth0: dhcp4: true dhcp-identifier: mac <-- this is the thing you need to add/change version: 2 }}} === Remote Desktop Fix === One of the first things I like to do with an Ubuntu machine inst install xrdp. Here are the steps I got from [[https://www.hiroom2.com/2018/04/29/ubuntu-1804-xrdp-gnome-en/|here]]. Of course you should update the server first! {{{ $ apt install -y xrdp $ sudo sed -e 's/^new_cursors=true/new_cursors=false/g' -i /etc/xrdp/xrdp.ini $ sudo systemctl restart xrdp }}} Create the .xsessionrc in your home directory and have it contain: {{{ GNOME_SHELL_SESSION_MODE=ubuntu XDG_CURRENT_DESKTOP=ubuntu:GNOME XDG_DATA_DIRS=${D} XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg }}} I like to use gnome so the following fixes were also added in {{{/etc/polkit-1/localauthority/50-local.d/xrdp-color-manager.pkla}}} {{{ [Networkmanager] Identity=unix-user:* Action=org.freedesktop.color-manager.create-device ResultAny=no ResultInactive=no ResultActive=yes }}} Then you need to restart polkit: {{{ $ systemctl restart polkit }}} That should do it for connecting from Windows. == Moodle Install == * [[https://websiteforstudents.com/setup-moodle-cms-on-ubuntu-18-04-lts-beta-with-apache2-mariadb-and-php-7-1-support/|Moodle Install Directions Used]]