Setup Unix Profile

cat > ~/.bash_aliases
.profile _orig
.bashrc _orig

In the File ” .bash_aliases ”  add following.

 alias c=clear
 alias e='exit'
 alias m='less -i'
 alias ll='ls -alrtF'
 alias dird='ls -alrt | grep ^d'


 alias shut='sudo shutdown -P now'

After this does not go into .bash_aliases file.

This is just for reference to update/install Linux OS.

dd bs=4M status=progress if=ubuntu-16.04-desktop-amd64.iso of=/dev/sdc1

main@main-desktop:~/Downloads$ pwd
/home/main/Downloads
main@main-desktop:~/Downloads$ ll ubuntu-16.04.1-desktop-amd64.iso 
-rw-rw-r-- 1 main main 1513308160 Aug 17 16:48 ubuntu-16.04.1-desktop-amd64.iso
main@main-desktop:~/Downloads$
cd ~main/Downloads
sudo dd bs=4M status=progress if=ubuntu-16.04-desktop-amd64.iso of=/dev/sdb 
sudo apt-get install unetbootin
sudo unetbootin
set -o vi

# This is I think original PS1
## PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$'

# This PS1 prints HOSTNAME in window /h and VERSION /v
PS1='\[\e]0;\u@\v: \h: cmd# \#: /pts/\l : Time \t: \w\a\]${debian_chroot:+($debian_chroot)}\u@\$:\#:\w\$ '

# This PS1 prints USER /u \$ and then VERSION \v
PS1='\[\e]0;\u@\$: \v: cmd# \#: /pts/\l : Time \t: \w\a\]${debian_chroot:+($debian_chroot)}\u@\$:\#:\w\$ '

alias c=clear
alias d=date
alias e=exit
alias m='less -i'

alias ll='\ls -alrt'
alias llA='\ls -Alrt'

alias dird='\ls -alrt| grep ^d'

alias vmplayer='cd /home//Hadoop/cloudera-quickstart-vm-5.4.2-0-vmware; vmplayer cloudera-quickstart-vm-5.4.2-0-vmware.vmx; cd -; '







# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
 PATH="$HOME/bin:$PATH"
fi


. ${HOME}/bin/.chk_bin ${HOME}/GURU/script

export LPDEST=''
echo -e "Print ----- lpr -P  /usr/share/cups/data/testprint -----\n\n LPDEST ----- lpstat -----\n\n\n"

. .Mongo; echo -e "WRA Mongo WRA\t\t:hll2320d:\n\n\n\n\n"
Advertisements

Pair Bluetooth with unix

 

apt list --installed | grep blue

sudo apt-get install pulseaudio-module-bluetooth
sudo pactl load-module module-bluetooth-discover

apt list --installed | grep blue

 

bluez/xenial-updates,xenial-security,now 5.37-0ubuntu5.1 amd64 [installed]
bluez-cups/xenial-updates,xenial-security,now 5.37-0ubuntu5.1 amd64 [installed]
bluez-obexd/xenial-updates,xenial-security,now 5.37-0ubuntu5.1 amd64 [installed,automatic]
gnome-bluetooth/xenial,now 3.18.2-1ubuntu2 amd64 [installed]
indicator-bluetooth/xenial-updates,now 0.0.6+16.04.20160526-0ubuntu1 amd64 [installed,automatic]
libbluetooth3/xenial-updates,xenial-security,now 5.37-0ubuntu5.1 amd64 [installed,automatic]
libgnome-bluetooth13/xenial,now 3.18.2-1ubuntu2 amd64 [installed,automatic]
libqt5bluetooth5/xenial,now 5.5.1-2build1 amd64 [installed,automatic]
libqt5bluetooth5-bin/xenial,now 5.5.1-2build1 amd64 [installed,automatic]
pulseaudio-module-bluetooth/xenial-updates,now 1:8.0-0ubuntu3.8 amd64 [installed,automatic]
qml-module-qtbluetooth/xenial,now 5.5.1-2build1 amd64 [installed]

purge-old-kernels

To remove old kernels installed automatically by software-updater, run the below command :

sudo apt autoremove --purge

To remove manually installed kernels use the utility “purge-old-kernels” in package “bikeshed/byobu” in 16.04 LTS

Install “byobu/bikeshed” and run the command “purge-old-kernels” as below :

sudo apt install byobu man purge-old-kernels sudo purge-old-kernels --keep 3 -qy #keep latest THREE kernels & remove others

 

Refer : http://blog.dustinkirkland.com/2016/06/purge-old-kernels.html