I did not get many chances to use WMIC (Windows Management Instrumentation Command-line) before, but recently I have used it twice and found it is really handy! Example 1: Get local user SID wmic useraccount get name,sid Example 2: Set a local user’s password never expire wmic useraccount where "Name='user01'" set Passwordexpires=false
Windows Style Ubuntu Desktop
For those users who have already gotten used to the Windows desktop style (e.g. Start button, Taskbar at the bottom, minimize/maximize/close button at the right top). Here is how to make the Ubuntu Gnome desktop work in the similar style. 1) Super + Left Alt + Right click the panel that you want to edit, … Continue reading Windows Style Ubuntu Desktop
Create Linux instance in AWS
Follow the same process described in Create Windows instance in AWS to build the Linux instance. The only two differences are the security group settings and the remote connection method. 1) Create a new security group to allow the SSH (and VNC) inbound traffic. 2) There are 3 ways to connect to the remote Linux … Continue reading Create Linux instance in AWS
Create Windows instance in AWS
1) Login into Amazon Management Console and click ‘Launch Instance’. In the right top corner, you can choose which region you want the server to be placed. 2) Select an OS type. Here I choose Windows 2012 /w SQL express. Give the instance a name then click ‘Download’ to get the key pair which will … Continue reading Create Windows instance in AWS
Encrypt disk in Ubuntu
I installed a Ubuntu 12.04 desktop by using the 12.04.2 alternate CD. After generated a distribution iso, I found the disk encryption feature was not included in the custom install process. To make the new iso support disk encryption, I wrote a script. Here is how it works: 1) Boot from the live CD. 2) … Continue reading Encrypt disk in Ubuntu