PS D:\> New-Item -ItemType directory -Path D:\tmp
Saturday, July 14, 2012
PS Quick Tips: Loading Powershell add-on module
- Copy PowerShell module to $env:HOMEDRIVE + $env:HOMEPATH + "\Documents\WindowsPowerShell\Modules", create the folder if necessary.
- Load the module, e.g.,
PS D:\> Import-Module Pscx
Where Pscx is the module name.
Wednesday, July 04, 2012
Get IP address of the machine in Arch Linux
How to get IP address in Arch Linux? Well, it turns out to be easy:
You should see something like:
!Enjoy
ts
#: ip addr
You should see something like:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1f:c6:d5:32:4d brd ff:ff:ff:ff:ff:ff
inet 192.168.0.105/24 brd 192.168.0.255 scope global eth0
inet6 fe80::21f:c6ff:fed5:324d/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:15:af:92:3e:8a brd ff:ff:ff:ff:ff:ff
Saturday, June 02, 2012
Cisco VPN client failed to connect on Windows 8
I tried to connect to a remote location using Cisco AnyConnect VPN Client (v 2.2.0140) using Windows 8 Release Preview but failed with error message "The VPN client driver has encountered an error."
Does this indicates that the client application is not compatible with Windows 8, at least for now? There is a workaround though. Following are the steps to make it to work.
- Open Registry Editor (like type regedit.exe).
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vpnva
- Locate key DisplayName, like mine shows @oem3.inf,%vpnva_Desc%;Cisco AnyConnect VPN Virtual Miniport Adapter for Windows
- Change it to Cisco AnyConnect VPN Virtual Miniport Adapter for Windows
- Close then open Cisco AnyConnect VPN Client. Retry to connect. It should work from here on.
~ts
Wednesday, May 30, 2012
ERROR: database disk image is malformed in Fedora 17
Got a spanking brand new Fedora 17 install, it looks a lot different from Fedora 16 on the surface which is a welcome change, quite refreshing actually. Tried to do a software update but instead got the following error message:
~ts
ERROR: database disk image is malformedSeems like my rpm database got corrupted for some reason but this is a new install on VirtualBox. Anyway, got it fixed by doing the following:
$ sudo yum clean dbcache
~ts
Subscribe to:
Posts (Atom)
CPP Quick Guide
Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...
-
Minimal OPC UA client that auto generates self signed certificate on startup in C# This is minimal OPC UA client in C# that demonstrates se...
-
Install Winget on Windows 2022 or Windows 10 LTSC Install Pre-reqs Install Microsoft.UI.Xaml/2.8.6 Navigate to https://www.nuget.org/pa...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...