Friday, May 31, 2013

Vocablary

May 31'st
------------------
moribund :-
(especially of an organization or business) not active or successful:
How can the Trade Department be revived from its present moribund state?

witless:-
› stupid or showing no intelligence:
 The novel centres around a witless father who is continually being conned by his three children.

naive:-
too willing to believe that someone is telling the truth, that people's intentions in general are good, or that life is simple and fair.
People are often naive because they are young and/or have not had much experience of life:
She was very naive to believe that he'd stay with her. They make the naive assumption that because it's popular it must be good.
It was a little naive of you to think that they would listen to your suggestions. naively (also naïvely)
 I, perhaps naively, believed he was telling the truth

absurd:-
B2 stupid and unreasonable, or silly in a humorous way:
What an absurd thing to say! Don't be so absurd! Of course I want you to come.
It's an absurd situation - neither of them will talk to the other.
 Do I look absurd in this hat? the absurd
› things that happen that are stupid or unreasonable:
 The whole situation borders on the absurd.
 She has a keen sense of the absurd. absurdly
 adverb › You're behaving absurdly. It was absurdly expensive.

hag:-
an ugly old woman

immutable:-
not changing, or unable to be changed:
an immutable law Some people regard grammar as an immutable set of rules.

reckon:-
to think or believe:
I reckon it's going to rain. [+ (that)] How much do you reckon (that) it's going to cost? "Can you fix my car today?" "I reckon not/so (= probably not/probably)."

aisle:-
a long, narrow space between rows of seats in an aircraft, cinema, or church:
 Would you like an aisle seat or would you prefer to be by the window?
 › a long, narrow space between the rows of shelves in a large shop:
 You'll find the shampoo and the soap in the fourth aisle along from the entrance.

bloke:-
a man, often one who is considered to be ordinary:
Paul's a really good bloke (= I like him a lot).
 He's a funny (sort of) bloke (= slightly strange).

bandy:-
(of legs) bending out at the knees:
I couldn't help laughing at his bandy legs.

errand:-
a short journey either to take a message or to take or collect something:
I'll meet you at six, I've got some errands to do/run first.

squiffy:-
› slightly drunk:
 "I've only had one glass of sherry and I feel squiffy already," she said.





















Sunday, May 26, 2013

SSH Automatic Login

SSH Automatic Login

Here are the steps:

    Create a public ssh key, if you haven’t one already.
    Look at ~/.ssh. If you see a file named id_dsa.pub then you obviously already have a public key. If not, simply create one. ssh-keygen -t dsa should do the trick.
    Please note that there are other types of keys, e.g. RSA instead of DSA. I simply recomend DSA, but keep that in mind if you run into errors.
    Make sure your .ssh dir is 700:
    chmod 700 ~/.ssh
    Get your public ssh key on the server you want to login automatically.
    A simple scp ~/.ssh/id_dsa.pub remoteuser@remoteserver.com: is ok.
    Append the contents of your public key to the ~/.ssh/authorized_keys and remove it.
    Important: This must be done on the server you just copied your public key to. Otherwise you wouldn’t have had to copy it on your server.
    Simply issue something like cat id_dsa.pub > .ssh/authorized_keys while at your home directory.
    Instead of steps 3 and 4, you can issue something like this:
    cat ~/.ssh/id_dsa.pub | ssh -l remoteuser remoteserver.com 'cat >  ~/.ssh/authorized_keys'
    Remove your public key from the home directory on the server.
    Done!
Also check the permission of .ssh/authorized_keys it should be "600", otherwise it will not work
    You can now login:
    ssh -l remoteuser remoteserver.com or ssh remoteuser@remoteserver.com without getting asked for a password.

That’s all you need to do.

#############
All in one step

ssh-keygen -t rsa

cat ~/.ssh/id_dsa.pub | ssh -l remoteuser remoteserver.com 'cat >> ~/.ssh/authorized_keys'

cat ~/.ssh/id_dsa.pub | ssh -l joseph 192.168.20.15 'cat >> ~/.ssh/authorized_keys'
cat ~/.ssh/id_dsa.pub | ssh -l joseph 192.168.21.164 'cat >> ~/.ssh/authorized_keys'
 
     or

cat ~/.ssh/id_rsa.pub | ssh -l joseph 192.168.20.15 'cat >> ~/.ssh/authorized_keys'

cat ~/.ssh/id_rsa.pub | ssh -l dmbackup 192.168.20.17 'cat >> ~/.ssh/authorized_keys'

cat ~/.ssh/id_rsa.pub | ssh -l dmbackup 128.52.1.15 'cat >> ~/.ssh/authorized_keys'

rsync notes


rsync
  commands to execute rsync is

Points to be careful with when using Rsync?
  • Be careful with the --delete command. If your using a source dir that is not mounted (nfs,cifs,etc) but the mount for the dir is still there then you will sync your blank dir. All remote files will be deleted.
  • Be careful with slashes after the dir names on the source. A slash after the dir name compared to no slash after the dir name will do 2 totally different things.
Difference in giving "/"
What if we  wanted to not just copy all of the files under /sourcedisk/, but also the /sourcedisk/ directory name. Just leave off the last "/" after the "/sourcedisk" directory name. This will tell rsync to copy the directory name and all files under that directory. On the remote server you will then see the directory structure /backups/sourcedisk/.

To reflect the deleted files to be removed from the destination


-r => recurse into directories
-a => archive
-v => increase verbosity
-z => compress file during transfer


this will copy the "Project" Folder entirely to remote server /home/joseph



This will copy the contents of "Project" to the remote server /home/joseph. ie you will not have folder "Project" in remote server, but you will see the contents of it in /home/joseph/

Thursday, May 23, 2013


This is done for alfresco 4.2.c (which has java 7) (a) Install AMP java -jar /opt/alfresco/bin/alfresco-mmt.jar install /home/urname/Downloads/ABR/alfresco-business-reporting-explorer-0.8.0.1.amp /opt/alfresco/tomcat/webapps/share.war -verbose (b) copy the the jar file ie "alfresco-business-reporting-share-0.8.0.1.jar" to /opt/alfresco/tomcat/shared/lib/ (c) create DB as given instruction in http://code.google.com/p/alfresco-business-reporting/wiki/Home#Create_your_Reporting_database (c) For Alfresco CE 4.2.c , create alfresco.xml in "/opt/alfresco/tomcat/conf/Catalina/localhost/" with the following lines />

VI editor TIPS

Globally search and replace 

Tuesday, May 21, 2013

Using Tar and SSH to improve SCP Speeds

tar czf - www.example.com/ | ssh joebloggs@otherserver.com tar xzf - -C ~/

Sunday, May 19, 2013

Checking internet speed from command line


We need to download the repository from "speedtest-cli.git", if u do not have git, please install it

Now we have to clone the repo

To make it available copy the binary to /bin/

Tuesday, May 14, 2013

location of "portal-ext.properties"

The location of "portal-ext.properties" is at
/tomcat-7.0.27/webapps/ROOT/WEB-INF/classes

Sunday, May 12, 2013

WARN : org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl - WQS unable to connect to repository: Unauthorized

This message is because of the password or  user name has not been updated in

/opt/alfresco/tomcat/shared/classes/alfresco/extension/wqsapi-custom.properties

Edit and update the file, the message will be gone

Thursday, May 2, 2013

installing AMP in alfresco

By verbose
By force