Friday, January 8, 2016

Python 3.5.0 do not install on Win7 64bit


Installation was finished with error :

Error 0x80240017: Failed to execute MSU package.

After googling for around an hour solution was founded. All you need is uninstall microsoft update KB2999226. Go to windows update -> installed updates -> find that update and uninstall.
After that start python instalation.

Tuesday, June 30, 2015

Ubuntu server change NIC name p5p1 to eth0

After instalation of ubuntu server, got some strange NIC names like p5p1. Let's change it to something more convinient.

edit /etc/default/grub file

sudo nano /etc/default/grub

Modify line:

GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0"

make new grub.cfg file:

sudo grub-mkconfig -o /boot/grub/grub.cfg

reboot server. After reboot you need to edit /etc/network/interfaces file:

sudo nano /etc/network/interfaces

change p5p1 to eth0, save file and start eth0 interface:

sudo ifconfig eth0 up

Friday, April 3, 2015

How to change password expiration time in windows 7 home edition

Run CMD as administrator(right click on cmd shortcut, then select "run as administrator". You shoul see word "administrator" in the title of cmd window). Then run command:

net accounts /maxpwage:unlimited

you will get a message "The command completed successfully"
after that you can check password expiration with command:

net accounts

Wednesday, August 13, 2014

Xubuntu 14.04 how to enable remote access.

1. Install vino vnc server:
sudo apt-get install vino-server
2. run vino preferences:
suod vino-preferences
3. configure preferences:


4. Update the firewall:
sudo ufw allow from any to any port 5600
5. Update the encryption requirements for remote access:
sudo apt-get install dconf-editor
dconf-editor
6. Disable require encryption:


7. Update the session manager via enabling Settings->Session and startup->Application autostart->Desktop Sharing:


8. Restart computer and try to connect vith any vnc client.

Thursday, July 10, 2014

How to set static IP and set my DNS in Ubuntu Server 14.04

If you try to edit /etc/resolv.conf as most information on internet suggest, your information will be overriden after reboot. To change DNS modify file:

sudo nano /etc/resolvconf/resolv.conf.d/base

Just add the same lines like in resolv.conf:

nameserver 8.8.8.8 #ip of your DNS server

then update resolv.conf:

sudo resolvconf -u

after that /etc/resolv.conf should contain your DNS ip.

To change ip address to static edit /etc/network/interfaces:

sudo nano /etc/network/interfaces

find and comment default dhcp entry. Next add lines to your config file like below:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0

# DHCP not needed
# iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.254


then disable/enable network interface

sudo ifdown eth0 && sudo ifup eth0

Wednesday, July 9, 2014

How to grant root privileges in ubuntu for existing user

You need to add user to the "sudo" group. If you already created user "test" add user to the "sudo" group by issuing this command in terminal:

sudo usermod -a -G sudo test

check that ssh daemon is running:

sudo service ssh status

if firewall activated, add rule to allow ssh:

sudo ufw allow ssh

Wednesday, June 18, 2014

Exchange 2013. How to stop disclaimer from appearing in replies.

To stop disclaimers to appear in replies, just add some random generated string to disclaimer and add exception to that rule. That special string could be the same color as background, so it will be invisible in message body. You can add just some text from the disclaimer to exception condition, but if that text will be in message body then disclaimer will not be added to that message.

To add rule login to exchange admin center, select "mail flow" -> "rules", click "add"->"Apply disclaimers..."
Enter name and condition when disclaimer should be applied, select action "Append disclaimer...", enter text,and at the end add something like "<span style="font-size:10.0pt; color:#FFFFFF">2578AABHKJ213</span>" (there 2578AABHKJ213 random generated string and html tags make text size 10pt and text color is white, so it will be invisible on white background)
Next press "more options..." link, select "add exception if subject or body contains..." and add "2578AABHKJ213"