Wednesday, 12 October 2011

Ubuntu Unity desktop on vmware player



This will enable the 2d unity mode on ubuntu when using vmware player. 3d is not avaible yet.

add the repository:sudo add-apt-repository ppa:unity-2d-team/unity-2d-daily


update repository:sudo apt-get update


install unity 2d:sudo apt-get install unity-2d-default-settings


now, logout of ubuntu on your vm

click your login name on the ubuntu login screen

you should now be able to see that unity 2d as your operating system (in the bottom task bar, if it is not, then select it)

all done (see pic below)

one more note to say, you may want to install CompizConfig Settings manager as well to tweak your desktop post install. use the command below and then look for CompizConfig in applications.sudo apt-get install compizconfig-settings-manager


.

Ubuntu - Install flash on chrome oct 2011

sudo apt-get install chromium-browser flashplugin-installer

Tuesday, 20 September 2011

Perform a URI check in PowerShell using WebRequest

Hi,

here is how to write a url checker in powershell.. enjoy[csharp]

Set-ExecutionPolicy RemoteSigned
$logpath = "C:\powershell logs\"

#build filename from parts
$outputfile = "{0}\{1:dd.yyyy.MM-hh.mm.ss}-site_response.txt" -f $logpath, $(Get-Date)

$sitelist = Get-Content C:\install\psscripts\sites.txt

Foreach($url in $sitelist) {
    $request = [net.WebRequest]::Create($url)
    $response = $request.GetResponse()
    $content = $response.ResponseUri
    $response.ResponseUri, $response.LastModified, $response.StatusCode | format-list | Out-File $outputfile -append
    $response.Close()
}

Thursday, 1 September 2011

Check Mail Server Using Telnet on windows command line

Hi,

I had someone ask today how to check if a mail server was working. So here is how to do it using telnet from the command line.

The idea here is that you know the mailserver domain, and you know a valid email address that can send from that domain.

Open your command window and type telnet. If you get an error, open control panel, click programs, then click "turn windows features on or off"

In the box that pops up, select the telnet options. Let it install, close you command window and re-open it then type the following:

telnet MAIL_SERVER_NAME 25 
EHLO google.com 
MAIL FROM:valid@emailaddress.com 
RCPT TO: me@myaddress.com 
DATA 

Subject: test message from server name 

This is a test message you will not see a response from this command. 
QUIT


You should receive the mail. 

If any of the above commands produce an error, something is wrong. 

thanks, 

Paul

Monday, 8 August 2011

Install Sun Java on unbuntu 10.x and newer

I got this answer from stackoverflow, but there are about another 20 or so answers on there and I keep having to sift through them all, so here is what worked for me:

sudo nano /etc/apt/sources.list

# uncomment the two lines referring to "partner"

sudo apt-get update

sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk

that should work..

Paul

Thursday, 7 July 2011

add rvm function to .profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

This loads RVM into a shell session.

Saturday, 4 June 2011

installing rvm and linux defaults

this post is really just for me to remember some things that I wll come back and edit it as needed ..

apt-get install rubygems

apt-get install curl

apt-get install gitbash < < (curl -s https://rvm.beginrescueend.com/install/rvm)

apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev