Windows-Linux SysAdmin Tips
Solutions that work...
Sunday, March 28, 2021
Error (MMC has detected an error in a snap-in and will unload it) when you try to launch Windows Firewall with Advanced Security on Local Computer / Server.
Error (MMC has detected an error in a snap-in and will unload it) when you try to launch Windows Firewall with Advanced Security on Local Computer / Server.
This issue can be fixed by deleting a particular MMC registry entry.
Before deleting the below registry entry please take a backup of your entire registry.
Key to be deleted:
Location: HKEY_LOCAL_MACHINE > SOFTWARE > MICROSOFT > MMC > SNAPINS
Saturday, March 5, 2011
TATA Photon Plus - Olive VME101 device configuration steps in Ubuntu
The following steps worked out for me.
---------------------------------------------
Step 1. apt-get install wvdial (You need internet connection to install wvdial)
Step 2. sudo apt-get install usb-modeswitch
Step 3. sudo apt-get install usb-modeswitch-data
Step 4. Plug in your modem in USB port. On inserting you will notice icon of VME101 on your desktop screen, right click on it and eject it.
Step 5. In terminal write the following command:
$sudo lsusb
Sometimes it need to input the password for sudo, such as
[sudo] password for ***:
Please input it, then it should has similar information as follows:
Bus 002 Device 002: ID 201e:2009
Here the 201e:2009 is very important; it corresponds to the VID&PID of the data card.
Step 6. Now it should load the proper module to let the kernel know the device. Please do as follows:
$sudo modprobe usbserial vendor=0x201e product=0x2009
After that, using the command “dmesg” to check again, it will see the following information:
usbcore: registered new interface driver usbserial
drivers/usb/serial/isb-serial.c: USB Serial support registered for generic
usbserial_generic 2-2:1.0 generic converter detected
usb 2-2: generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1 generic converter detected
usb 2-2: generic converter now attached to ttyUSB1
usbserial_generic 2-2:1.2 generic converter detected
usb 2-2: generic converter now attached to ttyUSB2
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial: USB Serial Driver core
This is for loading the device; the next steps should introduce how to dial the data service. We use the wvdial command as example.
Step 7. Edit the wvdial configure file by typing the following command:
$sudo gedit /etc/wvdial.conf
On entering the above line a new window will pop up. Fill in the details as given below and click save and close that window.
Edit the wvdial.conf file as follows:
[Dialer Defaults]
Init = ATZ
Init = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 115200
Modem = /dev/ttyUSB0
Phone = #777
Username = internet
Password = internet
Stupid Mode = 1
Step 8. Do the wvdial to connect data service:
$sudo wvdial
This command will initialize the modem and connect you to internet.
If connected successfully you will see the details as shown below,
rahul@jupiter-pilot:~# sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT 3100000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Feb 25 16:04:55 2011
--> Pid of pppd: 2257
--> Using interface ppp0
--> local IP address 14.96.85.89
--> remote IP address 172.29.244.49
--> primary DNS address 121.242.190.210
--> secondary DNS address 121.242.190.180
Once you are connected press CTRL+C to disconnect from internet.
From next time,
1. Plug in the device, eject it. [Plug in your device and you will notice the dialer on desktop , right click on the dialer and eject it. (Ejecting is compulsory)]
2. sudo modprobe usbserial vendor=0x201e product=0x2009
3. sudo wvdial .
ctrl+ c to disconnect
---------------------------------------------
Step 1. apt-get install wvdial (You need internet connection to install wvdial)
Step 2. sudo apt-get install usb-modeswitch
Step 3. sudo apt-get install usb-modeswitch-data
Step 4. Plug in your modem in USB port. On inserting you will notice icon of VME101 on your desktop screen, right click on it and eject it.
Step 5. In terminal write the following command:
$sudo lsusb
Sometimes it need to input the password for sudo, such as
[sudo] password for ***:
Please input it, then it should has similar information as follows:
Bus 002 Device 002: ID 201e:2009
Here the 201e:2009 is very important; it corresponds to the VID&PID of the data card.
Step 6. Now it should load the proper module to let the kernel know the device. Please do as follows:
$sudo modprobe usbserial vendor=0x201e product=0x2009
After that, using the command “dmesg” to check again, it will see the following information:
usbcore: registered new interface driver usbserial
drivers/usb/serial/isb-serial.c: USB Serial support registered for generic
usbserial_generic 2-2:1.0 generic converter detected
usb 2-2: generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1 generic converter detected
usb 2-2: generic converter now attached to ttyUSB1
usbserial_generic 2-2:1.2 generic converter detected
usb 2-2: generic converter now attached to ttyUSB2
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial: USB Serial Driver core
This is for loading the device; the next steps should introduce how to dial the data service. We use the wvdial command as example.
Step 7. Edit the wvdial configure file by typing the following command:
$sudo gedit /etc/wvdial.conf
On entering the above line a new window will pop up. Fill in the details as given below and click save and close that window.
Edit the wvdial.conf file as follows:
[Dialer Defaults]
Init = ATZ
Init = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 115200
Modem = /dev/ttyUSB0
Phone = #777
Username = internet
Password = internet
Stupid Mode = 1
Step 8. Do the wvdial to connect data service:
$sudo wvdial
This command will initialize the modem and connect you to internet.
If connected successfully you will see the details as shown below,
rahul@jupiter-pilot:~# sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT 3100000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Feb 25 16:04:55 2011
--> Pid of pppd: 2257
--> Using interface ppp0
--> local IP address 14.96.85.89
--> remote IP address 172.29.244.49
--> primary DNS address 121.242.190.210
--> secondary DNS address 121.242.190.180
Once you are connected press CTRL+C to disconnect from internet.
From next time,
1. Plug in the device, eject it. [Plug in your device and you will notice the dialer on desktop , right click on the dialer and eject it. (Ejecting is compulsory)]
2. sudo modprobe usbserial vendor=0x201e product=0x2009
3. sudo wvdial .
ctrl+ c to disconnect
Tuesday, May 4, 2010
How to install Sun Java Runtime Environment in Ubuntu 10.04
Open terminal and run the following commands
1.sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
2.sudo apt-get update
3.sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
4.java -version (to check whether the JRE is installed properly)
My machine version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
Open Firefox and type about:plugins - shows plug-in details!
1.sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
2.sudo apt-get update
3.sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
4.java -version (to check whether the JRE is installed properly)
My machine version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
Open Firefox and type about:plugins - shows plug-in details!
Monday, January 11, 2010
Kaspersky Administration Kit common issue
Error: MMC cannot open the file C:\Program Files\Kaspersky Lab\Kaspersky Administration Kit\CS Admin Kit.msc
Solution: Delete the file "CS Admin Kit" in the folder: C:\Documents and Settings\USER\Application Data\Microsoft\MMC
Now try to launch Kaspersky Administration Kit!
Solution: Delete the file "CS Admin Kit" in the folder: C:\Documents and Settings\USER\Application Data\Microsoft\MMC
Now try to launch Kaspersky Administration Kit!
Thursday, January 7, 2010
Saturday, January 2, 2010
IP Tables
https://help.ubuntu.com/community/IptablesHowTo
iptables -I INPUT 1 -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -j DROP
8: iptables -N port-scan
This is the beginning of a rule to block furtive port scanning. A furtive port scan is a scan that detects closed ports to deduce open ports. Two more lines are needed to complete this rule:
iptables -A port-scan -p tcp --tcp-flags SYN,ACK,FIN,RST RST -m limit --limit 1/s -j RETURN
iptables -A port-scan -j DROP
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:submission
ACCEPT tcp -- anywhere anywhere tcp dpt:ssmtp
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:submission
ACCEPT tcp -- anywhere anywhere tcp dpt:ssmtp
=====================================================================================
365 sudo iptables -L
366 sudo iptables -F
367 sudo iptables -I INPUT 1 -i lo -j ACCEPT
368 sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
369 sudo iptables -A INPUT -p tcp --dport 25 -j ACCEPT
370 sudo iptables -A INPUT -p tcp --dport 587 -j ACCEPT
371 sudo iptables -A INPUT -p tcp --dport 465 -j ACCEPT
372 sudo iptables -A OUTPUT -p tcp --dport 53 -j ACCEPT
373 sudo iptables -A OUTPUT -p tcp --dport 25 -j ACCEPT
374 sudo iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT
375 sudo iptables -A OUTPUT -p tcp --dport 587 -j ACCEPT
376 sudo iptables -A OUTPUT -p tcp --dport 465 -j ACCEPT
377 sudo iptables -l
378 sudo iptables -L
379 sudo iptables -A OUTPUT -p tcp --dport ssh -j REJECT
380 sudo iptables -A OUTPUT -p tcp --dport icmp -j REJECT
381 sudo iptables -A OUTPUT -p icmp --icmp-type 8 -j DROP
382 sudo iptables -A INPUT -p icmp --icmp-type 8 -j DROP
383 sudo iptables -L
384 history
385 sudo iptables -A INPUT -p tcp --dport ssh -j REJECT
386 sudo iptables -A INPUT -p tcp --dport ssh -j DROP
iptables -I INPUT 1 -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -j DROP
8: iptables -N port-scan
This is the beginning of a rule to block furtive port scanning. A furtive port scan is a scan that detects closed ports to deduce open ports. Two more lines are needed to complete this rule:
iptables -A port-scan -p tcp --tcp-flags SYN,ACK,FIN,RST RST -m limit --limit 1/s -j RETURN
iptables -A port-scan -j DROP
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:submission
ACCEPT tcp -- anywhere anywhere tcp dpt:ssmtp
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:submission
ACCEPT tcp -- anywhere anywhere tcp dpt:ssmtp
=====================================================================================
365 sudo iptables -L
366 sudo iptables -F
367 sudo iptables -I INPUT 1 -i lo -j ACCEPT
368 sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
369 sudo iptables -A INPUT -p tcp --dport 25 -j ACCEPT
370 sudo iptables -A INPUT -p tcp --dport 587 -j ACCEPT
371 sudo iptables -A INPUT -p tcp --dport 465 -j ACCEPT
372 sudo iptables -A OUTPUT -p tcp --dport 53 -j ACCEPT
373 sudo iptables -A OUTPUT -p tcp --dport 25 -j ACCEPT
374 sudo iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT
375 sudo iptables -A OUTPUT -p tcp --dport 587 -j ACCEPT
376 sudo iptables -A OUTPUT -p tcp --dport 465 -j ACCEPT
377 sudo iptables -l
378 sudo iptables -L
379 sudo iptables -A OUTPUT -p tcp --dport ssh -j REJECT
380 sudo iptables -A OUTPUT -p tcp --dport icmp -j REJECT
381 sudo iptables -A OUTPUT -p icmp --icmp-type 8 -j DROP
382 sudo iptables -A INPUT -p icmp --icmp-type 8 -j DROP
383 sudo iptables -L
384 history
385 sudo iptables -A INPUT -p tcp --dport ssh -j REJECT
386 sudo iptables -A INPUT -p tcp --dport ssh -j DROP
Wednesday, December 30, 2009
SL Work
http://handyowner.com/how-to-install-bugzilla-on-ubuntu/
2. During the installation process, the following information will be requested from you:
email address (Bugzilla administrator)
Real name of administrator
Password of administrator
Password confirmation
dbconfig-common (Yes/No)
* I answered yes. I don’t want to do any manual work with the database as I want to reduce the risk of anything working improperly.
Password of administrator (Package configuration)
MySQL application password (I assumed you already installed MySQL locally)
Password confirmation
http://www.bugzilla.org/download/
http://vibhurishi.blogspot.com/2009/05/howto-install-bugzilla-on-ubuntu-9.html
http://www.bugzilla.org/docs/tip/en/html/configuration.html
http://serverfault.com/questions/20222/broken-upgrade-of-debian-causing-perl-issues
2. During the installation process, the following information will be requested from you:
email address (Bugzilla administrator)
Real name of administrator
Password of administrator
Password confirmation
dbconfig-common (Yes/No)
* I answered yes. I don’t want to do any manual work with the database as I want to reduce the risk of anything working improperly.
Password of administrator (Package configuration)
MySQL application password (I assumed you already installed MySQL locally)
Password confirmation
http://www.bugzilla.org/download/
http://vibhurishi.blogspot.com/2009/05/howto-install-bugzilla-on-ubuntu-9.html
http://www.bugzilla.org/docs/tip/en/html/configuration.html
http://serverfault.com/questions/20222/broken-upgrade-of-debian-causing-perl-issues
Subscribe to:
Posts (Atom)
Error (MMC has detected an error in a snap-in and will unload it) when you try to launch Windows Firewall with Advanced Security on Local Computer / Server.
Error (MMC has detected an error in a snap-in and will unload it) when you try to launch Windows Firewall with Advanced Security on Local Co...
-
Error (MMC has detected an error in a snap-in and will unload it) when you try to launch Windows Firewall with Advanced Security on Local Co...
-
https://help.ubuntu.com/community/IptablesHowTo iptables -I INPUT 1 -i lo -j ACCEPT iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables -...
-
Do you feel that the free space on your hard-disk is too little ? Does it seem that something fishy is going on which is eating your hard-di...