Archive for November, 2014
Enable rsyslog listening on server: # cat /etc/rsyslog.d/remote.conf # Provides UDP syslog reception $ModLoad imudp $UDPServerRun 514 # Provides TCP syslog reception $ModLoad imtcp $InputTCPServerRun 514 # Create a log file for each host $template FILENAME,"/var/log/rsyslog/%fromhost%.log" *.* ?FILENAME # Or this rsyslog.conf file: [root@mbpc-pc log]# grep -Ev "^#" /etc/rsyslog.conf | sed -e "/^$/d" $ModLoad imuxsock […]
November 15th, 2014 | Posted in NIX Posts | No Comments
When you see this: The authentication server returned an unexpected error: ns0:RequestFailed: IDM threw unexpected error during authentication :: Native platform error [code: 9234][null][null]. The error may be caused by a malfunctioning identity source. it can also mean a bad user/password combination: domain\user01 pass instead of something like this: rightdomain\user01 pass Cheers, TK
November 13th, 2014 | Posted in NIX Posts | No Comments
What if we get this: # find ./ -iname *package* find: paths must precede expression: package.tar.gz Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path…] [expression] # Then use single quotes or double quotes instead: # find ./ -iname '*package*' Cheers, TK
November 11th, 2014 | Posted in NIX Posts | No Comments
What if this is seen: # keytool -importcert -keystore /path/to/my.keystore -storepass CorrectPass -trustcacerts -file ca.crt -noprompt -alias MyAlias keytool error: java.lang.Exception: Certificate not imported, alias <MyAlias> already exists # Then you may do this to remove the CERT if you plan to redo it. # keytool -delete -keystore /path/to/my.keystore -storepass CorrectPass -alias rhq-ca # Followed […]
November 9th, 2014 | Posted in NIX Posts | No Comments
What if you get this: # keytool –list -keystore /path/to/trust.keystore Enter keystore password: keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect # Then you may add this to resolve it: -storepass CorrectPass Cheers, TK
November 9th, 2014 | Posted in NIX Posts | No Comments
What if this is seen: # keytool -list keytool error: java.lang.Exception: Keystore file does not exist: /root/.keystore # Then this can be done to resolve it, specify the actual keystore location to use: keytool –list -keystore /path/to/some/trust.keystore Cheers, TK
November 9th, 2014 | Posted in NIX Posts | No Comments
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