Archive for the 'IT' Category

Recursive Search Powershell

Short example:
dir –R –I *.exe

Long one:
Get-ChildItem -recurse –include *.exe

Search inclusive text:Get-ChildItem -recurse *.exe | Select-String searchtext

No Comments »

admin on November 27th 2012 in IT, PowerShell

Make all files visible in Mac OSX Finder

Run following command in terminal:
defaults write com.apple.finder AppleShowAllFiles True
killall Finder

To disable it again run:
defaults write com.apple.finder AppleShowAllFiles False
killall Finder

No Comments »

admin on November 19th 2012 in IT, MAC

Make Backup Domain Controller work after Veeam Restore

Today I restored my Exchange Server and virtual Domain Controller but couldn’t get it working because our main Domain Controller wasn’t arround.
To make the second Domain Controller work just set the following setting in the registry and restart the Domain Controller. You might also need to restart all other servers.

image

No Comments »

admin on November 17th 2012 in IT, Windows Server

Quick and Dirty Stock Market Ticker for bash shell

No Comments »

admin on August 8th 2012 in IT, Linux

How to install Nagios 3x updates quickly

As always make a backup beforehand. The paths and command options might need to be adjusted to your environment.

No Comments »

admin on August 6th 2012 in IT, Linux, Network

Extend Volumes on the fly without Downtime

Since Windows 2008 you don’t need special tools anymore because the operatins system has already everything on-board. But what if you need to resize the hard drive on an older server?

Dell has a free solution for this:
ExtPart

Don’t forget to make a backup first.

No Comments »

admin on July 5th 2012 in IT, Windows, Windows Server

How to format your Hard Drive and overwrite it with Zeros?

What I also didn’t know so far is that you don’t need any special tools anymore to overwrite the hard disc with zeros. Since Windows Vista it is already built in. You just need to do a full format instead of a quick format.
One pass should actually be enough. I did once a test and called up 5 companies who are specialist in recovering of data and I told them that I did by accident overwrite the HD with one pass. None of them told me it is possible to recovery it. But if you are paranoid you can also do it  with multiple passes:

Run from the cmd prompt:
#format z: /fs:NTFS /p:2

Z: is the drive you want to format
fs/NTFS is the file system you want to format
/p how many passes you want to do

No Comments »

admin on July 3rd 2012 in IT, Windows

How to install NTP on Linux Debian

#apt-get install ntp

Edit the config file to adjust it:
#vi  /etc/ntp.conf

Restart the service to make it run:
#service ntp restart

Manual Sync:
#ntpd -q –g

To overwrite the HW Clock:
#hwclock –systohc

No Comments »

admin on June 29th 2012 in IT, Linux

Installation of OwnCloud on Debian

Well most people use Dropbox or iCloud to sync their data. It works very good but I don’t like the idea to have my data stored on some other server. I like to have more control and this is the main reason why I give OwnCloud a shot.

Installation
I installed it on debian and the setup instructions from the homepage did not work for me. When I tried to install it I got following message:
E: Unable to locate package php-xml
E: Unable to locate package php-mbstring
E: Unable to locate package php5-zip

This solution worked for me:
#apt-get update
#apt-get upgrade

#apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser
#apt-get install sqlite

Important: Of course replace the links whit the newest ones on the homepage: http://owncloud.org/

#wget http://download.owncloud.org/releases/owncloud-4.0.4.tar.bz2
#tar -xjf owncloud-4.0.4.tar.bz2
#cp -r owncloud /var/www
#chown -R www-data:www-data /var/www

#service apache2 restart

Point your browser to it and login with:
admin admin

After those steps I installed the client on my Windows PC and recognized that it didn’t sync. The problem was that the time on the client and and on the server was not the same. So make sure it is!

No Comments »

admin on June 29th 2012 in Internet, IT, Linux

HOw to use md5sum

It creates a 128 bit checksum which is unique. So if two files are not identical they won’t have the same md5 checksum. You can use it to check if the file which you have download has not been manipulated or is corrupted.

Output of one file:
# md5sum sample.txt
d41d8cd98f00b204e9800998ecf8427e  sample.txt

Output of multiple files:
# md5sum *.txt
5aa6788f9355e26bd8aef7303dda97fe  sample2.txt
d41d8cd98f00b204e9800998ecf8427e  sample.txt

You can create your own md5 file and verify it afterwards:
# md5sum sample.txt > verify.md5
# md5sum –c verify.md5

No Comments »

admin on June 29th 2012 in IT, Linux




Check out new movies online website. Download and buy movies now.