Install Deb. Pkg from Command Line
You can install it using
sudo dpkg -i /path/to/deb/file followed by sudo apt-get install -f .
Echo & Touch
echo 'something' >> file_name
>> will append your ‘something’ into the end of the file
The ‘>’ will replace the file with a new file that has the ‘something’
touch file_name will create a new file.
Ubuntu Screenshot Shortcuts
PRINTSCREEN for a screenshot of the whole Desktop.
ALT + PRINTSCREEN for a screenshot of the current active Window.
SHIFT + PRINTSCREEN for a screenshot of a Region you select with your Mouse.
SCP & SSH Copy key
sudo scp user@brix:<PATH_TO_LOCAL>/feature_tracker.py <PATH_TO_REMOTE>/nodes/
ssh into your remote computer first, if first time do this
ssh-keygen (followed by two enters)
then quit from the remote computer and do this on your local PC
Please notice that for a fresh installed Ubuntu, you have to install ssh first.
Ubuntu build tools
The things you may want to install
sudo apt-get install build-essential cmake pkg-config sudo apt-get install libusb-1.0-0-dev
CTRL-Z Call task back from background
& after a command, you can push it to the background, there are two ways to stop a background process, either us
kill or stop the service if the process is one.
Another way is use
fg bring the process (most recently one) back to the foreground and Ctrl-C it, if you want to push it back, you can use Ctrl-Z.
Static IP Configuration
I try to use CLI modify the files under
/etc/network/interfaces but failed.
The easiest thing to do it is put in a monitor and open the network configs. in the tab IPv4 Settings, switch the method to Manual and Add the static IP address that you want.
Address 10.1.10.110 Netmask 24 (= 255.255.255.0) Gateway 10.1.10.2 DNS Server 10.1.10.101