This is an annoyed issue, but after several tries, here is my approach for the fix:
sudo dpkg --configure --force-overwrite -a # or sudo apt -o Dpkg::Options::="--force-overwrite" --fix-broken install
This is an annoyed issue, but after several tries, here is my approach for the fix:
sudo dpkg --configure --force-overwrite -a # or sudo apt -o Dpkg::Options::="--force-overwrite" --fix-broken install
Command line to install mongoDB on Ubuntu
sudo apt-get install gnupg wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list sudo apt-get update sudo apt-get install -y mongodb-org sudo systemctl start mongod sudo systemctl enable mongod
I tried out Kylin desktop on Ubuntu but its performance and stability doesn’t meet my expectation, here are the command lines to completely remove this Kylin desktop including the splash screen and login screen
sudo dpkg-reconfigure lightdm # then select your previous display manager, options are: gdm3, lightdm, sddm, lxdm sudo apt-get remove ubuntukylin-desktop sudo apt-get autoremove ubuntukylin-desktop sudo apt-get purge ubuntukylin-desktop sudo apt-get autoremove --purge ubuntukylin-desktop sudo apt-get remove 'peony*' sudo apt-get remove 'ukuy*'
Virtual background in zoom is indeed a great feature, but unfortunately it doesn’t work on Ubuntu without a physical or real green screen. So here are some steps and commands you could run and make it work. (I use this on Ubuntu 20.04 but basically it should work for Lubuntu, LinuxMint, Debian or other systems as well as everything is via docker)
First install docker if you haven’t got it on your system already: https://leftsidemonitor.com/install-docker-and-docker-compose-on-linux/
Then run the following commands to install some required libraries
sudo apt install v4l2loopback-dkms; sudo modprobe -r v4l2loopback; sudo modprobe v4l2loopback devices=1 video_nr=20 card_label="v4l2loopback" exclusive_caps=1;
Now let’s clone this repo: https://github.com/leftsidemonitor/ubuntu-zoom-virtual-background, and run everything via docker
# Clone git clone https://github.com/leftsidemonitor/ubuntu-zoom-virtual-background.git ~/ubuntu-zoom-virtual-background cd ~/ubuntu-zoom-virtual-background cp docker_defaults.env .env docker-compose up &;
When you don’t want to use the webcam anymore, let’s stop it
cd ~/ubuntu-zoom-virtual-background; docker-compose down &;
Let’s also add some aliases some next time you can run and stop this much faster as well
# add to ~/.bashrc or ~/.zshrc alias fakecam='sudo modprobe -r v4l2loopback;sudo modprobe v4l2loopback devices=1 video_nr=20 card_label="v4l2loopback" exclusive_caps=1;cd ~/ubuntu-zoom-virtual-background; docker-compose up &;' alias stopcam='cd ~/ubuntu-zoom-virtual-background; docker-compose down &;'
That’s it, let us know if you manage to get it working in Zoom and other video calling software as well.
Mac Bigsur is indeed looking nice, the following tutorial will help you install it on Ubuntu, and especially fix the issue glib-compile-resources: command not found
Now let’s head over to the Terminal to install some packages
mkdir ~/bigsur cd ~/bigsur sudo apt install gtk2-engines-murrine gtk2-engines-pixbuf sudo apt install sassc optipng inkscape # the following command fix the issue with `glib-compile-resources: command not found` sudo apt install libglib2.0-dev-bin git clone https://github.com/vinceliuice/WhiteSur-gtk-theme cd WhiteSur-gtk-theme ./install.sh cd .. git clone https://github.com/yeyushengfan258/BigSur-icon-theme cd BigSur-icon-theme ./install.sh sudo apt install chrome-gnome-shell cd .. git clone https://github.com/vinceliuice/McMojave-cursors.git cd McMojave-cursors # need to install this with sudo, otherwise gnome-tweak won't recoginize it sudo ./install.sh # you also need gnome-tweak tool in order to make all of these changes sudo add-apt-repository universe sudo apt install gnome-tweak-tool
Now let’s open Gnome Tweak tool and head over to Appearance, then select the following:
+ Application: WhiteSur-dark/light (depends on your taste)
+ Cursor: McMojave
+ Icons: BigSur
+ Shell: WhiteSur
Bonus:
+ You can download some nice BigSur wallpapers here: https://www.idownloadblog.com/2020/06/22/macos-big-sur-wallpapers/
+ You can also select from the Gnome Tweak app above: Window Titlebars > Placement > Left – in case you want to have the Max/Min/Close button on the top-left side of the window.
Normally a 2GB should be enough for swap on Ubuntu, the following commands will help you create that, but you can also make change to fit your need.
sudo swapoff -a # turn off current swap so it can be updated sudo fallocate -l 2G /swapfile # create a /swapfile of 2GB, if you want 16GB just change this number sudo chmod 600 /swapfile # change write permission sudo mkswap /swapfile # make the file as swap sudo swapon /swapfile # finally add it to swap config
Then you also need to edit this file /etc/fstab
as following for swap
section:
/swapfile swap swap defaults 0 0
sudo systemctl enable mongod
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources. sudo apt update && sudo apt install --no-install-recommends yarn # If you want to install yarn along with nodejs, use the following command # sudo apt update && sudo apt install yarn yarn --version
sudo apt-get install gnupg wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list sudo apt-get update sudo apt-get install -y mongodb-org sudo systemctl daemon-reload sudo systemctl start mongod sudo systemctl status mongod sudo systemctl enable mongod sudo systemctl stop mongod sudo systemctl restart mongod
locate is a very useful command, which can be use from time to time to find files in Linux when we don’t know where that file is.
sudo apt update sudo apt install locate sudo updatedb # need to let sometime for this to finish locate .bashrc # locate can be called from anywhere locate -c "*thingtosearch" # search by regex, show count locate -e "*thingtosearch" # search in real-time, regardless db not updated. locate -i "*thingToSearch" # search and ignore case locate -S # view locate db at 10:56:54 Database /var/cache/locate/locatedb is in the GNU LOCATE02 format. Database was last modified at 2020:10:07 10:38:37.467600124 +0200 Locate database size: 5860142 bytes All Filenames: 464048 File names have a cumulative length of 34300427 bytes. Of those file names, 1317 contain whitespace, 0 contain newline characters, and 32 contain characters with the high bit set. Compression ratio 82.92% (higher is better)