Sunday, August 8, 2010

Several MacPorts Commands

Here is several MacPorts commands that I often used, with little description on every command. I always use -v option (as in verbose), to look at the detail downloading and compiling process.


1. sudo port -v selfupdate
- removing and downloading new file repository list, often updated

2. sudo port -v upgrade outdated
- upgrade outdate port, according to newest file repository list

3. sudo port -v uninstall inactive
- even after update, macports still kept the outdated version, you can execute this command to automatically vanish outdated version immediately

3. sudo port -v search [port]
- used for looking certain port

4. sudo port -v install [port]
- install certain port

5. sudo port -v uninstall [port]
- uninstall certain port

6. sudo port -v clean --all [port]
- clean up all port build and dependencies

7. sudo port -v activate [port@version]
- activate certain port version

8. sudo port -v installed
- shows up all port installed

Saturday, August 7, 2010

Concurrent RDP on Windows XP 64-bit Using Same User Account

In this post, I will give you step-by-step guide to make you be able remote desktop concurrently to Windows XP Professional Edition 64-bit with only one user account. It's a little different with my previous post, where it only be able to do remote desktop concurrently using different user account.

Step 1.
Disable remote desktop.
a. Right-click on My Computer -> Properties -> Remote (uncheck both boxes).
b. Then go to Control Panel -> Administrative Tools -> Services and double click on Terminal Services and change the startup type to disabled.

Step 2.
Get files.
a. Get the files here Antiwpa-V3.4.6 for X64 and X86.zip (source) TS-NoRestr-Patch-x64.rar (source). If the links don't work the sources will, the site is AntiWPA and you need to register to download the files.

b. Extract the zip file to a new folder and run AntiWPA3.cmd (just double click) it will apply the patch.

c. Extract the rar to a new folder (single word no spaces [I used "new"] c:\windows\new) in c:\windows double click the TSfix.reg file and click ok.

Step 3.
Get the windows XP 64-bit disk and reboot from disk. Then go to the recovery console and type 1 for C:\WINDOWS

code:
cd system32
copy winlogon.exe winlogon.exe_backup
cd ..
cd new
copy winlogon.exe c:\windows\system32
y
exit

Step 4.
a. When the computer reboots reboot in safemode by hitting F8 at the right time, choose regular safemode.

b. Login as an administrator and make sure that terminal services are still off as set in Step 1.

c. make a backup of c:\windows\system32\termsrv.dll and c:\windows\system32\dllcache\termsrv.dll (dllcache is a hidden folder, so make sure you already change the setting to show hidden/ system files)

d. replace those two files with the termsrv.dll from the rar (which has been extracted to c:\windows\new in Step 2)

e. 'Click Start, then “Run…”, type “gpedit.msc” (without quotes) and press ENTER;
open Computer Configuration -> Administrative Templates -> Windows Components -> Terminal Services;
double click “Limit number of connections”, choose “Enabled” and set the maximum number of concurrent connections you want to allow'.

reboot to normal.

Step 5.
a. Log on to the normal windows XP 64 bit and enable the remote desktop similar to Step 1
b. Switch the Terminal Services to manual also similar to Step1.
c. Reboot

Step 6.
Try it out, you should be able to have multiple logins using remote desktop to the same system without kicking each other off.
I tried by creating on user account 'testing', and I can make all 10 colleagues in office login using the same user account :)

Please give some comments, or if you have difficulties just let me know, so I can edit the post accordingly. Thanks.

Friday, August 6, 2010

Set Proxy For Apt-Get in Ubuntu Server

Here is how to configure a proxy, so you can do apt-get behind proxy server. You need to add these lines into /etc/apt/apt.conf, create a new file if you don't find it.
Acquire {
http {
Proxy::ppa.launchpad.net "http://your-proxy:port/";
Proxy::security.ubuntu.com "http://your-proxy:port/";
Proxy::packages.medibuntu.org "http://your-proxy:port/";
Proxy::id.archive.ubuntu.com "http://your-proxy:port/";
};
}

Wednesday, August 4, 2010

Chit Chat for Facebook - Facebook Chat Application

If you ever read my post about facebook chat plugin for pidgin, and have tried it.. perhaps you can give a try for this application, Chit Chat for Facebook. Simple UI, simple preferences menu and light while operating it. I think that's become major advantages for this apps.


Standard, sleek and simple login interface, only need to input email and password (the same you use to login into Facebook). Preferences menu also simple as well, and all the option is self-explainable. On the first login, you will get a notification.. an offer to post update status in your Facebook. Basically it only says that you just installed and now using Chit Chat in your desktop :) So, it's your choice to put it on your wall or not.



Inside you'll see your online friends list. you can also have your offline friends shows up by changing preferences.


Chat window is simple as well, already have timestamp on every chat. So far, I have no difficulty in using this apps. For now its only available for Windows users, so we do hope in the future it will available for other OS as well.