Skip to main content

Posts

Showing posts from 2019

Force Deleting Contents in Rubbish Bin - Ubuntu

You may have deleted some files when you are in super user mode (sudo). The problem here is that when you are using uvunru variants, you can't empty the rubbish bin since the files transported where from a sudo operation. you can't also open the rubbush bin folder even if you opened the file browser through sudo. So to get around this, we erase is through terminal!!! We navigate through the rubbish bin folder through terminal and delete all the contents through the "rm" command. $ sudo rm -rf  ~/.local/share/Trash/files/*

Searching through terminal

Here are some ways to search through directories using the terminal! Search for files through file name:     $ find <path> -name <search phrase> Search for files through text content:     $ grep -rl "search phrase" <path>

Directly Connecting Your Computer to Raspberry Pi through Ethernet

A quick guide to connect your computer to Raspbberry Pi without the use of routers. $ sudo apt-get install dnsmasq-base Go to “Network Connections” Press “Add” Press “Ethernet” Press “Create” Go to “IPv4 Settings” tab. Under Method, choose “Shared to other computers” Set a distinct name. Press “Save”. Get Raspberry Pi IP with: $ cat /var/lib/misc/dnsmasq.leases Now you can SSH or VNC!!!!

Simple LXC Guide

Here is a quick reference guide for using lxc Get dependencies $ sudo su $ apt-get install debootstrap $ apt-get install bridge-utils Install $ apt-get install lxc $ apt-get -t trusty-backports install lxd $ apt-get install lxd Importing lxc container to another host. Tar up the container: $ lxc-stop -n <container name> $ cd /var/lib/lxc/<container folder name>/ $ tar --numeric-owner -czvf <container name>.tar.gz ./* Unpack in the new host machine: $ lxc image import <rootfs tarball> --alias <export alias> $ lxc launch <export alias> <container name> Running ther container image $ lxc-start --name <container name> $ lxc-console --name <container name> test that it is added sudo lxc-ls References https://stackoverflow.com/questions/23427129/how-do-i-backup-move-lxc-containers https://blog.ubuntu.com/2015/03/20/installing-lxd-and-the-command-line-tool