Wednesday, 12 September 2012

How to Disable and Enable USB Device in Linux

Follow the steps

1) Add this line “blacklist usb_storage” to the end of /etc/modprobe.d/blacklist.conf
To add : Open a Terminal by using Ctrl+Alt+T or Applications->Accessories->Terminal. You need to have root access to do this tweak. Copy and paste the following command in the Terminal. Type the password for the user, when prompted.

$ sudo gedit /etc/modprobe.d/blacklist.conf

The above command will open the blacklist.conf file in gedit. You can use any editor to edit this file like vim, gvim, emacs etc., Now copy and paste this line “blacklist usb_storage” at the end of the file. After adding this save it and close the gedit. Check the below screen shot.

2) Add this line “modprobe -r usb_storage” before exit 0 in /etc/rc.local
To add : Copy and paste the following command in the Terminal. Type the password for the user, if prompted.

 $ sudo gedit /etc/rc.local

The above command will open the rc.local file in gedit. Now copy and paste this line “modprobe -r usb_storage” before the last line of the file. After adding this save it and close the gedit. Check the below screen shot for Fedora and Ubuntu.

For Ubunntu:

For Fedora:

Now restart your system.

To Mount USB device
Open a Terminal and use the following command. Type the password for the user, when prompted.

$ sudo modprobe usb_storage

To Unmount the USB device

Use “safely remove drive” by right click on the device, then run the below command in the Terminal. Type the password for the user, when prompted.

$ sudo rmmod usb_storage

Hope this will be helpful for you!!

 

Friday, 7 September 2012

Make Backspace Key Work Correctly in Firefox on Linux

 

Type about:config into the address bar :

then 

filter by the following key:

 browser.backspace_action

image

Double-click on the item in the list and change the value to 0.



The change should be immediate – you can hit the backspace key to go right back to whatever you were doing (probably reading this)
This tip should work on any platform… I’m not sure if all versions of Linux have the same annoyance, but at least Ubuntu does.

Wednesday, 29 August 2012

Synchronize/Update Time on Active Directory DC 

 

Thanks for those great guys mentioned this in the SBTG blog...
 
To update time with network time provider run the below commands...
 
On the main DC:
NET TIME /SETSNTP:time.windows.com
NET STOP W32TIME
NET START W32TIME
W32TM /config /reliable:YES
W32TM /resync /rediscover

On all other DCs:
W32TM /resync /rediscover

that should do the trick!!!

Enable / Disable Change Of Date And Time On Windows XP

 

Go to Start > Control Panel > Administrative Templates

Open
Local Security Policy

Go to
Local Policy > User Rights Assignments > Change the System time, double click to open it.

Add and remove user groups. Remove the limited users from this list and those limited users will not be able to edit date and time of this compute. Add users who need access to change date / time


that should do the trick!!!

SEP 12 network threat protection not showing in GUI

 

After installing full package of SEP 12 you may not see Network Threat protection in SEP GUI.

This can be solved by following below steps.


1. Open cmd using run as administrator option,


2. Change to directory containing smc.exe and smcgui.exe (usually the bin directory inside installed directory, in my case C:\Program Files\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Bin)


3. run command "
smc -stop", wait till symantec management console stops.

4. run command "
smcgui.exe /UNREGSERVER"
  5. run command "smcgui.exe /REGSERVER"
 
6. run command "
smc -start", Check by opening SEP GUI, Network Threat protection will be available now.

 
that should do the trick!!!

disable mails from CRON

 

This will help you disable email which are sent from cron whenever it runs.

Edit/Open your cron jobs

 
$ crontab -e


At the top of the file, enter:
 
MAILTO=""


Save with :wq and restart cron


$ /etc/init.d/crond restart



 
that should do the trick!!!

Install Webmin in CentOS 6, RHEL 6

 

Follow below steps to install webmin (Web based Administration Console) in Redhat based Linux systems

Install the Webmin Repository


# vi /etc/yum.repos.d/webmin.repo
input following lines,

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

quit by saving ":wq"

# rpm --import http://www.webmin.com/jcameron-key.asc

# yum install webmin

That should do the trick!!!