Posts

Showing posts from April, 2019

Ubuntu power user tricks

#All these command tested on, Ubuntu 16.04 LTS till date of this blog post. GNU/Linux, 4.15.0-47-generic, x86_64, #50~16.04.1-Ubuntu SMP machine. 1. To increase opened recent files in gedit on terminal type, gsettings set org.gnome.gedit.preferences.ui max-recents "uint32 60" 2. Mail from command line, you need, sponge , mailutils and ssmtp . To install sponge on a Debian-like system: apt-get install moreutils sudo apt install mailutils sudo apt-get install ssmtp open, sudo vim /etc/ssmtp/ssmtp.conf And add the following to the file: AuthUser= <user>@gmail.com AuthPass= Your-Gmail-Password mailhub= smtp.gmail.com:587 UseSTARTTLS= YES test it # cat some-text-file | mail -s "Test" my.user@gmail.com 3. Test with building android, do envsetup.sh and lunch # make -j4 showcommands &> build.log ; tail -n 100 build.log | sponge build_aosp8-tail.log | mail -s "Test log" my.user@gmail.com 4. A better command termina...