Linux Mint under Hyper-V

Apparently I’m not alone in struggling to get Mint to run under Hyper-V.

Fix 1 –  Make the mouse cursor visible:  Open a terminal and run the command:

gsettings set org.cinnamon.settings-daemon.plugins.cursor active false

And that’s all one line, regardless of funky word wrap.

Hat tip to the commenters on: https://www.technig.com/install-linux-mint-on-hyper-v/

Fix 2 – Running in software rending mode

This thread on linuxquestions.org led me to install MATE via instructions from https://winaero.com/blog/how-to-install-mate-in-linux-mint-cinnamon-edition/

In a nutshell, run this as root (you’ll need to sudo su first, sudo alone doesn’t seem to cut it):

apt-get update && apt-get install mint-meta-mate

And then log out and back in with the MATE desktop.

Git Rebase vs. Merge

  • git rebase docs – https://git-scm.com/docs/git-rebase
  • git merge docs – https://git-scm.com/docs/git-merge
  • git rebase (GitHub) – https://help.github.com/articles/about-git-rebase/
    • Warning: Because changing your commit history can make things difficult for everyone else using the repository, it’s considered bad practice to rebase commits when you’ve already pushed to a repository. To learn how to safely rebase on GitHub, see “About pull request merges.”
  • branching and rebasing (Git book) – https://git-scm.com/book/en/v2/Git-Branching-Rebasing
    • The Perils of Rebaseing – https://git-scm.com/book/en/v2/Git-Branching-Rebasing#_rebase_peril
    • Do not rebase commits that exist outside your repository.

Atlassian: Merging vs. Rebasing:  https://www.atlassian.com/git/tutorials/merging-vs-rebasing

GitHub Flow: https://guides.github.com/introduction/flow/

 

Group setup

Tutorial on defining users and groups –  https://www.techrepublic.com/article/how-to-create-users-and-groups-in-linux-from-the-command-line/

  • sudo useradd <username>– create user without home directory, and no login capability
  • sudo useradd -m <username>– create user with home directory matching username.
  • Set up password:
    • Create user and then sudo passwd <username>
    • Or… set password at the same time sudo useradd -m <username> -p PASSWORD

Create Group:  sudo groupadd <group>

Add user to group: sudo usermod -a -G <group> <username>

List of group memberships in /etc/group

And then, when editing your own group membership, don’t forget to logout and back in so they’ll take effect (not that I’d ever forget such a thing….).  https://stackoverflow.com/a/5054930

Mint Setup Notes

Apache httpd

  • Mostly sudo apt-get install apache2
  • Some notes at: https://community.linuxmint.com/tutorial/view/486

SSHD

  • Installing SSH daemon http://linuxg.net/how-to-enable-ssh-on-linux-mint-15-14-13-12/
  • sudo apt-get install openssh-server
  • Disable root login: https://www.howtogeek.com/howto/linux/security-tip-disable-root-ssh-login-on-linux/
  • sshd defaults to PermitRootLogin prohibit-password
    • This seems to mean that ssh key is still permitted.
    • https://askubuntu.com/a/449372
    • Change it no.  Don’t allow root to login directly at all.