Header Shadow Image


Author Archive

RDP Disconnect

Part of our earlier two posts on Remote Desktop Connection: SSH Tunnel through Putty and DD-WRT for RDP / RDC and Enabling RDP on Windows 7 Home Premium Edition where we setup our RDP connections, we came across an issue of automatic disconnects in our RDP sessions.  Tricky to debug, here are the steps we took to […]

grep in windows with findstr

Life in Linux would be far more difficult without grep. So what's the equivalent in Windows? C:\Users\tom>netstat -na|findstr 3389 TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING TCP [::]:3389 [::]:0 LISTENING C:\Users\tom> Very neat! But now how to alias this guy. Well, we can do this but it doesn't quite work in pipes: C:\Users\tom>doskey grep=c:\windows\system32\findstr.exe $* C:\Users\tom>doskey /macros grep=c:\windows\system32\findstr.exe […]

Simple Home Backup Solution

Earlier we've setup our HTPC and Backup and shared it out to our Windows machines, but one thing we did not add in is the backup job.  With the earlier solutions, the backup becomes trivial.  (Anything can become simple as long as the core design is well designed with future simplicity in mind.)  This is […]

Schedule job on linux using at

[root@mbpc-pc mnt]# at now htpc.ksh syntax error. Last token seen: h Garbled time [root@mbpc-pc mnt]# at now at> /mnt/htpc.ksh at> job 12 at 2014-10-12 14:04 [root@mbpc-pc mnt]# [root@mbpc-pc mnt]# ps -ef|grep -i htpc.ksh root 26031 26030 0 14:04 ? 00:00:00 /usr/bin/ksh /mnt/htpc.ksh root 26042 24646 0 14:04 pts/2 00:00:00 grep -i htpc.ksh [root@mbpc-pc mnt]# For […]

chcon: failed to change context of Operation not supported

Trying to change the sharing through selinux results in this: [root@mbpc-pc mnt]# chcon -R -t samba_share_t /mnt/FLASHLexarMedia-32GB-1 chcon: failed to change context of `/mnt/FLASHLexarMedia-32GB-1' to `system_u:object_r:samba_share_t:s0': Operation not supported [root@mbpc-pc mnt]# [root@mbpc-pc mnt]# ls -lda –author -Z FLASHLexarMedia-32GB-1 drwx——. root root system_u:object_r:dosfs_t:s0     FLASHLexarMedia-32GB-1 [root@mbpc-pc mnt]# [root@mbpc-pc mnt]# ls -lda –author -Z FLASHKingstonCenton drwxrwxrwx. […]

Keep last number of lines in a file

Here is a quick way to keep the last 5000 lines of a large file instead of entirely clearing it.  A little bit of AWK though a simple array and bob's your uncle: root [XYZ01] /var/spool/mail: ls -altri test.txt daemon  1067 -rw-rw—-    1 daemon   mail       51130586 Jan 31 07:30 daemon  1061 -rw-rw—-    1 daemon   mail         […]

Find / Detect IP conflicts

Here's a nifty way of figuring out if you have IP conflicts on a network ( yum search arp-scan ) : [root@mbpc-pc ~]# arp-scan -I bond0 -l Interface: bond0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.9 with 512 hosts (http://www.nta-monitor.com/tools/arp-scan/) 192.168.0.1     f8:11:11:bc:47:8a       TP-LINK TECHNOLOGIES CO., LTD. 192.168.0.2     54:e6:fc:fb:ad:06 […]

Off Screen Windows: Recover by Resizing and Moving

Here are a few ways of recovering off screen windows by resizing and moving them.  This is particularly handy for folks that use multiple monitors then switch locations that have different configurations.  This table summarizes the options: # Method Keyboard ALT + TAB to Application Then: ALT + SPACE then M ( SHIFT + M […]

Setup PS3 Controller With a Computer (PC) or Laptop

We've baught outselves four Intec PS3 controllers from The Source for about $3 each.  Yep, you read that right.  Just $3. Pulled up some old classic shooters that we haven't tried for some time but without a controller, they won't work.  Most controllers today, even the cheapest ones, are far better then the old ones from […]

Windows Explorer or Application does not show but starts in taskbar.

Here's what to do when the Windows Explorer does not show in the Taskbar.  We've tried to reboot and maximize and minimize but no luck.  In this case one only has to press SHIFT + LEFT CLICK on the taskbar then use the keyboard arrow keys to move the window back into the viewable screen.   […]


     
  Copyright © 2003 - 2025 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License

 

The IT Development and Technology Mini Vault | MicroDevSys.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.