Wednesday, 22 January 2014

Windows 7 slow network performance

Symptoms: Windows 7 (and Windows Server 2008/2012) network operations are toooo slow.

Solution:
You have to open command line with elevated privileges (Easy way is to create link for cmd.exe and open it as administrator)
Enter first command: netsh interface tcp set global autotuninglevel=disabled Second command: netsh interface tcp set global rss=disabled chimney=disabled

Did you forget that it is Windows? Reboot!

Sunday, 24 November 2013

Remove comments and empty lines from config file

I'm tired to read big config files with lot of comments, especially when initial setting already done. The simple solution is to make a "clean" config file without any distracting lines:
Stop service
#service ldap stop
Make a backup copy - very important step :-)
#mv /etc/openldap/slapd.conf /etc/openldap/slapd.conf.20131124 
Copy only necessary lines to new config
#grep -v "^#" /etc/openldap/slapd.conf|grep -v "^$" >/etc/openldap/slapd.conf
Start service
#service ldap start
Don't forget to check that service started:
#service ldap status


Wednesday, 9 October 2013

Join Data Files on the Command Line

http://craig-russell.co.uk/2012/07/13/join-data-files-command.html#.UlLT1qzgVhE

Friday, 30 August 2013

CENTOS How to reset root password

1. Boot OS until boot menu appears. 
2. Stop boot process. (Press any arrow keys)
3. Press a to append parameters to boot command line. 
4. After space bar type rhgb quiet  1 and press ENTER. 
5. Press b to boot. 
6. After loading of operating system in single mode (without any password!) you can change root password by typing passwd
7. Reboot the server and test that the new root password is working. 

Monday, 5 August 2013