Category Archives: Administration

debian sysV scripts adding to startup and removing from startup

I always forget following command. Works on old sysV init type init system. To add service into startup on nginx example: # update-rc.d nginx defaults to remove service from startup: # update-rc.d -f nginx remove https://www.debian-administration.org/article/28/Making_scripts_run_at_boot_time_with_Debian

Posted in Administration, Linux/Unix | Leave a comment

enable windows time server on w7, w8, w8.1

It is sometimes require to run time server on windows (usually for nvr soft, for ONVIF cams) create a timeserver_enable.bat file with following content inside: @echo Enabling time server, require to run as Admininstrator @echo Changing registry values to enable … Continue reading

Posted in Administration, windows | Leave a comment

win 2012 my computer (This PC) icon on desktop

This gallery contains 6 photos.

To add my computer and other icons you need on win 2012 server “Desktop Experience” in  “User interface and infrastructure” should be selected. 01. server manager, dashboard -> next 02. add roles and features wizard -> next 03. select server -> next … Continue reading

More Galleries | Leave a comment

Windows 8 to start into desktop

Windows 8 boots to metro. But if it is needed to boot to desktop? One of ways could be suggested is just to startup old fashioned ToggleDesktop in startup of windows start menu. Open notepad and paste there [Shell] Command=2 … Continue reading

Posted in Administration, windows | Leave a comment

making bootable w7 or w2016 usb flash drive

Its easier than I thought. We require at least 4gb empty flash drive. first run cmd-> disk part list disk select disk Z clean create partition primary format fs=fat32 quick active exit Z is our empty flash drive Now copy … Continue reading

Posted in Administration, windows | Leave a comment

mirroring under linux debian 6.0.7

Requested reliability. Need some way to boot system even with faulty drive. Raid1, with expansion ability is on target. Debian 6.0.7 installation cd supports installing system to software raid, so will use it. Tested: Debian 6.0.7 on 2x 500GB hdd. … Continue reading

Posted in Administration, Linux/Unix | 2 Comments

Aligned advanced format partition creation using gparted under debian 6.0.7

This applies when new uninitialized drive used. parted (parted) print Error: /dev/sdb: unrecognised disk label (parted) mklabel gpt (parted) unit S (parted) mkpart Name ext3 2048 100% (parted) align-check optimal 1 1 aligned Then format must be performed and partition … Continue reading

Posted in Administration, hardware, Linux/Unix | Leave a comment

netsh adding allowed tcp port to win7 firewall

Object: Windows 7 64bit sp1 with all current updates as of (see post date) Found the internet articles how to add ports, but they were useless. Even official kb. Seems some update changed behavior of netsh. So, I wanted to add … Continue reading

Posted in windows | Leave a comment

mount image created with dd in linux

You’ve got the first part: 1) fdisk -l /path/to/image to find the start offset. Take that number, multiply by 512, and you’ll get the offset option to mount. So, for sda1 in your case, 5 * 512 = 2560. Then … Continue reading

Posted in Administration, Linux/Unix | Leave a comment

mounting in linux the way users had full access to it

Seems simple enough, however I decided to create note for that. For example, /etc/fstab has: /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0371ZZZZZZZZZ-part1 /mnt/3tb ext3 user 0 0 So, any user can mount it. But you must permit for mounted system to have permission. Lets see listing: … Continue reading

Posted in Administration, Linux/Unix | Leave a comment