Author Archive
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 […]
November 8th, 2014 | Posted in NIX Posts | No Comments
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 […]
November 8th, 2014 | Posted in NIX Posts | No Comments
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 […]
October 13th, 2014 | Posted in NIX Posts | No Comments
[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 […]
October 12th, 2014 | Posted in NIX Posts | No Comments
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. […]
July 6th, 2014 | Posted in NIX Posts | 1 Comment
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 […]
February 1st, 2014 | Posted in NIX Posts | No Comments
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 […]
January 3rd, 2014 | Posted in NIX Posts | No Comments
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 […]
October 24th, 2013 | Posted in Windows | No Comments
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 […]
August 31st, 2013 | Posted in NIX Posts | No Comments
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. […]
August 31st, 2013 | Posted in NIX Posts | No Comments