Tag: enable

Microsoft Windows

Enable remote desktop via command line

To enable remote desktop using command line tool follow these steps: 1. Open command line 2. Type reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /freg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

Firewall, Windows 7

Configuring windows firewall from the command line

To configure Windows firewall from the command line, you have to open the cmd with administrative rights. Default Rule To deny all incoming connections and allow all outgoing connections: netsh advfirewall set allprofiles firewallpolicy blockinbound,allowoutboundnetsh advfirewall set allprofiles firewallpolicy blockinbound,allowoutbound Enable or Disable firewall To enable firewall: netsh advfirewall set allprofiles state onnetsh advfirewall set …

Linux, MySQL

Enable Mysql UTF8 Support

To enable UTF8 support in server level: 1. First create a backup for file /etc/mysql/my.ini 2. Open /etc/mysql/my.ini file for editing 3. Locate [mysql] and [mysqld] and append the following lines: [mysql] default-character-set=utf8 [mysqld] collation_server=utf8_unicode_ci character_set_server=utf8 default-character-set=utf8 init_connect=’SET collation_connection = utf8_general_ci’ init_connect=’SET NAMES utf8′ 4. Restart mysql   To enable UTF8 support in database level: …

Firewall, Ubuntu, Ubuntu Server, UFW

Iptables made easy with ufw

UFW is a front-end for iptables and is here to make your life easier! ┬áDefault Rule To deny all incoming connections: sudo ufw default denysudo ufw default deny To allow all incoming connections: sudo ufw default allowsudo ufw default allow   Enable or Disable ufw To enable ufw: sudo ufw enablesudo ufw enable To disable …

Linux, Network

Enable the promiscuous mode on the physical NIC

You can put your Network Interface Controller/Card into promiscuous mode by using ifconfig. A. To enable promiscuous mode issue the command (needs administrative rights): ifconfig eth0 promisc after this if you execute the command ifconfig eth0 and if everything worked as expected and your NIC supports promiscuous mode, you will notice this line: UP BROADCAST …