Ubuntu-TiPs


1.Virtual CD/DVD Drive
-------------------------------------------------
sudo add-apt-repository ppa:cdemu/ppa
sudo apt-get update
sudo apt-get install gcdemu cdemu-client

2.Disable CDROM autoclose
---------------------------------------------------
Temporarly
$ sudo sysctl -w dev.cdrom.autoclose = 0
Permenant
Create file  /etc/sysctl.d/60-cdrom-autoclose.conf and add lines
dev.cdrom.autoclose=0

3.Change button layout to right side
------------------------------------------------------------

#gsettings  set  org.gnome.desktop.wm.preferences  button-layout  :minimize,maximize,close

4.Disable GDM Userlist
-----------------------------------------------------
$ sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type Boolean --set /apps/gdm/simple-greeter/disable_user_list True

5.Enable /var/log/messages in Ubuntu 12.04
-------------------------------------------------------------------------------
Edit the /etc/rsyslog.d/50-default.conf file (Enable line which contain /var/log/messages line)

6.Enable Arrow Keys in Vi Edit mode
--------------------------------------------------------------------
Change the “set” variable in “/etc/vim/vimrc.tiny” file from compatible to nocompatible
# vi   /etc/vim/vimrc.tiny 
set  nocompatible

7.To Chage the PS1 Variable in bash Prompt:
------------------------------------------------------------------------------
Edit the PS1 variable in the “/home/$USER/.bashrc” file if exist   or    “/etc/bash.bashrc”  file 
as follows  \[\e]0;\u@\h: \W\a\]${debian_chroot:+($debian_chroot)}\u@\h:\W\$

8.Install Malayalam Fonts in ubuntu
----------------------------------------------------------------
Install ibus first.
$sudo apt-get install ibus
Install the m17n library which holds the indic fonts (includes good old malayalam).
$sudo apt-get install ibus-m17n m17n-contrib
Go to System ▸ Preferences ▸ Ibus preferences
Take the ‘input method’ tab.
From the drop down menu select an input method, choose malayalam ▸ swanalekha and then click on add.
Open up a text editor, hit ctrl+space to change the language and type away.

9. Adibe-Flash-Plugin
-------------------------------------------


# apt-get install flashplugin-installer
# apt-get install adobe-flashplugin


10.Check Default Display Manager
------------------------------------------------------------

$ cat /etc/X11/default-display-manager 

Reconfigure-LightDM
-----------------------------------
$ sudo dpkg-reconfigure lightdm

11.Scan a network For running Machines
-----------------------------------------------------------------------


# nmap -sP 192.168.1.0/24

To scan all your devices/computers for open ports ever
----------------------------------------------------------------------------------------

# nmap -T5 192.168.1.0/24

12.Disable-Overlay-ScrolBar
-----------------------------------------------------------

# gsettings set com.canonical.desktop.interface scrollbar-mode normal

13.Disk Usage by Excluding two Directories
-----------------------------------------------------------------------


# du -sh /* --exclude /run --exclude /proc|sort -h


14.Exclude /proc,/run&/var directories from Find 
-----------------------------------------------------------------------------------------

# find / -path '/proc' -prune -o -path '/run' -prune -o  -path '/var' -prune -o -name test.txt

15.Allow Desktop Sharing on Ubuntu
-----------------------------------------------------

 
# vino-preferences


16.Java-Plugin--On UBnutu
--------------------------------------------
# apt-get install default-jre
# apt-get install icedtea-plugin  ---For Browser


Test Java Version----https://www.java.com/en/download/installed.jsp