https://www.reddit.com/r/espresso/wiki/guides/brewing-basics
Category Archives: Howto
How to Setup a Raspberry Pi Plex Server
How to Install Plex Media Server on Ubuntu 24.04, 22.04, or 20.04
Git: go back to a specific commit and discard all commits after it permanently
To permanently go back to a specific commit and discard all commits after it, you can use the following Git commands:
1) Reset to the specific commit:
git reset --hard <commit-hash>
Replace <commit-hash>
with the hash of the specific commit you want to reset to. This will move your branch pointer back to that commit and discard any changes in the working directory and staging area.
2) Force push the reset (if working with a remote branch):
If you’re working on a branch that is shared with others or is pushed to a remote repository (e.g., origin
), you’ll need to force push the changes to discard the later commits on the remote as well:
git push origin <branch-name> --force
Replace <branch-name>
with the name of your branch.
Caution
This is a destructive operation: All the commits after the specified one will be lost permanently unless they exist in another branch or are otherwise referenced.
Make sure you’re certain before running these commands, especially when using --force
, as it changes the history on the remote repository, which can affect other collaborators.
Desktop Environment (Change)
https://support.system76.com/articles/desktop-environment/#different-desktop-environments
Change Default Display Manager:
sudo dpkg-reconfigure gdm3
Check which display manager is running:
systemctl status display-manager.service or $ cat /etc/X11/default-display-manager
Restart GDM:
sudo systemctl restart gdm
Change your Desktop Environment on Linux
Ubuntu + RDP on Oracle Cloud
The first one works the best. Open an SSH connection to the server and run these commands:
sudo su
cd ~
apt update
apt upgrade
apt -y install lxqt sddm xrdp
systemctl status xrdp
The XRDP port needs to be open in Oracle Cloud and search for ‘Virtual Cloud Networks’. Then select the network and go to the ‘Security Lists’ and click on the default one. Then add ingress rules:
The open the port in iptables by editing /etc/iptables/rules.v4
Make a copy of the rule for port 22 and change the value to 3389
Then run:
iptables-restore < /etc/iptables/rules.v4
Create a file in your home folder (/root) called .xsession
nano .xsession
Alternative videos – they may install a different desktop: