Tuesday, February 18, 2020

Disk Expansion steps: VMS, Unity without LVM


Disk Expansion steps:  VMS, Unity without LVM
===============================================
Slight changes to procedure for RHEL.

1. Display and verify LUN size.

# powermt display dev=all
# df -h /path/to/mount/point
# fdisk -lu /dev/emcpowerX1

2. Unmount volume.

# umount /path/to/mount/point
3. Check FS.

# fsck -n /dev/emcpowerX1

4. SDP to expand disk.

5. Verify new LUN size. If not detected, reboot.

# fdisk -lu /dev/emcpowerX

6. Remove journaling.

# tune2fs -O ^has_journal /dev/emcpowerX1

7. Resize partition. Delete then recreate partition with new size.

# fdisk /dev/emcpowerX

8. Check FS.

# e2fsck -f /dev/emcpowerX1

9. Resize FS.

# resize2fs /dev/emcpowerX1

10. Check FS.

# fsck -n /dev/emcpowerX1

10. Turn on journal.

# tune2fs -j /dev/emcpowerX1

11. Remount volume. Verify new size.

# mount /path/to/mount/point
# df -h /path/to/mount/point


=======================================


1. if baremetal run: /usr/bin/rescan-scsi-bus.sh to scan;
   if OVM scan disk in UI;
   if VM run commands below (if not automatically detected by server)
                for BUS in /sys/class/scsi_host/host*/scan
                do
                echo "- - -" >  ${BUS}
                done
2. fdisk /dev/

3. pvcreate /dev/

4. vgextend /dev/

5. lvextend -l +100%FREE

6. resize2fs

7. lvdisplay

Enable non-expiring password for Linux Users



When you need to set users for non-expiring password accounts.  Here are the basic steps.

passwd ; pam_tally2 -u -r (reset:  this resets the login failures); faillock --user --reset 

chage -d 0

Non-expiring.

 chage -I -1 -m 0 -M 99999 -E -1 adb-dev


chage -I -1 -m 0 -M 99999 -E -1 adb-d

Tuesday, August 25, 2015

Convert Unix Time

If you happen to be working on a system where you want to convert unix time to human readable format, use this:

perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'

Its a perl command that when applied to a .log file allows you to convert unix time to a format that is readable to the user.  You can pretty much use this with other small shell tools to do wonderful things.

Sunday, August 16, 2015

Nouveau causing the Linux Mint System to Freeze

Ever had an experience that suddenly your Linux system freezes for no apparent reason?  This is manifested, when you tried to fire-up chrome (at least in my case) and doing some check on dmesg / syslog points to this:













The problem here lies with the video drivers loaded to the kernel is having a (NOT going to discuss the internals here) hard time figuring out how to work with the hardware of your system.  It can be very painful especially if you are not sure where to look at.
 
The SOLUTION:

sudo apt-get --purge remove xserver-xorg-video-nouveau

and then do:

sudo ldconfig

Afterwards reboot the system.

Wednesday, February 18, 2015

Enabling SSH Login Email Alerts

If you happen to be figuring out who is loging in or what is being logged in the system you can always use this defined entry to .bashrc to help monitor it.

echo  'ALERT - Root Shell Access (ServerName) on: `date` `who` | mail -s "Alert: Root Access from `who | cut -d'(' -f2 | cut -d')' -f1`" some_domain@domain.com

But please note that you will have to have either postfix / sendmail (mail server) and mail client "mailx" installed to get this working.

Monday, January 26, 2015

SSH Problem: /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

When you encounter an error relating to this one: 

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

Please install the following packages to help fix the issue  "ssh-import-id"

Reload the SSH server then try again.  For more modern linux systems running on Cinnamon in my case using LinuxMint I have to use the following syntax to get it right.

ssh-copy-id -p 35354 -i .ssh/id_rsa.pub user@some_ipV4_address

Cheers!

Friday, January 9, 2015

Trobleshooting Roundcube Webmail Error: Message size exceeds fixed limit

At times you will encounter an error with your roundcube system with bouncing emails caused by limitations in the mail system.  If you get this error:  Message size exceeds fixed limit

Chances are your message_size_limit is not set to be as flexible with your current configuration for roundcube to fix this do the following:

1. Edit the file which roundcube reads to assign the global variables /var/www/html/roundcube/.htaccess file and change the following configurations to this one.

php_value       upload_max_filesize     32M
php_value       post_max_size           32M

2.  Check your postfix mailer configuration by issuing the command:
  
postconf -d |grep message_size_limit

If you did not get a value you need to fix this.

3.  To fix the limit issue the command.

postconf -e 'message_size_limit = 104857600'

4.   To fix the 'mailbox_size_limit' issue you need to add this using the command:

postconf -e 'mailbox_size_limit = 0'

5.  Reload postfix for the changes to apply.

Wednesday, March 5, 2014

Troubleshooting Google Apps Migration for Microsoft Exchange – OAuth Authentication Failure



When trying to use the Google Apps Migration for Microsoft Exchange tool, I came across the following error:
Invalid Consumer Secret specified. Google Apps server has denied access to these credentials.
I checked and double-checked to make sure I had the correct OAuth Domain Key and Consumer Secret entered, and when it still failed, I re-generated the Consumer Secret.  Still no love.  After some searching, I came across this thread on Google’s Product Forums:
In a nutshell, when configuring your OAuth Domain Key, you have the option to “Allow Access to All API’s”.  For, me this box was checked.  Turns out when they say “All API’s”, they didn’t include some new ones that the latest version of the GAMME tool requires.  The tool looks for those API’s, can’t access them with the credentials you’ve supplied it, and falls on its face.  The fix involves you removing that checkmark next to “Allow Access to All API’s” and then heading to the “Manage Third-Party OAuth Client Access” page.  Type in your domain name into the “Client Name” field, and then paste the following into the “One or More API Scopes” field:
https://apps-apis.google.com/a/feeds/emailsettings/2.0/,
https://apps-apis.google.com/a/feeds/user/#readonly,
https://www.google.com/calendar/feeds/,
https://www.google.com/m8/feeds/,
https://www.googleapis.com/auth/apps.groups.migration,
https://apps-apis.google.com/a/feeds/migration/,
https://apps-apis.google.com/a/feeds/group/#readonly
Click the “Authorize” button, and that’s that.  Now the GAMME tool completes it’s diagnostic checks and will happily begin migrating the contents of your Exchange mailbox into Google Apps.

Monday, February 3, 2014

Annoying issue with * Stopping web server apache2 [Mon Feb 03 16:26:53 2014] [warn] _default_ VirtualHost overlap on port 443, the first has precedence ... waiting

To fix this issue just do this one, after which reload apache on the server


    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to 
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.

    NameVirtualHost *:443  # !important!
    Listen 443

Thursday, October 3, 2013

Windows to Linux Storage Sharing: cifs mount params


Ever wonder on how to mount using mount.cifs.  This is dinosaur tech but I am putting it here anyway.

Act I.  Get and create your credentials file

Get the correct credentials from the shared drive and then do the following:


sudo echo -e "username=service" > /somedir/.somecredentials; sudo echo -e "password=p@ssw0rd" >> /somedir/.somecredentials


Act II.  Mount the drive

First create a mount point for this new share under your linux system.

mkdir /mnt/winshare

Then issue this command.

mount.cifs "//some_ip_address/mount_drive" /mnt/winshare -o credentials=/root/.somecredentials


Act III.  Bootstrap it!

The goal is for this service to available every time a reboot occurs, you can do this by creating a simple script to help on this on and put it on /etc/rc.local


Cheers!

Sunday, September 1, 2013

Unix Timestamp conversion (Convert Unix Time)

Have you ever had the chance to work on logs to investigate on a few items that needs immediate reports and judgement, while you are at it logs shows the standard "unix" convention.  To spare you all this hardship use the following formatting on every known log you have.

perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'

I does all the magic for you.

e.g.  tail -n 20000 /some_path_to_logs | (command above) | less

Cheers!!!


Server Hardware Memory Alignment

Have you ever had the chance of migrating old memory to a newer hardware, only to find out that its not reading all those modules when they should be?

The reason for this is that, server hardware is channel specific, what I meant by this is that if your board supports more than one processor slot and who have no luxury of reading the setup manual.  Chances are you are putting those memory modules on locations which they are not ought to be in.   The hint is this.  The closer the memory banks to a processor the most likely that that is the correct channel for those banks.

Try it. 


rsync to a different port

There are instances when you are faced with issues on securing your servers and in the process systematically closing all the default ports.  Real hassle if you do "rsync" on a regular basis.  Apparently, there is a simply solution for this.  All you need to do is train it to use a different port.

e.g.

rsync -av -e 'ssh -p 35500' /home/footloader fooflight01@server1.saltsugar.net 
** above will rsync home dir to a certain server


Awesome?  Cheers!!!

Thursday, August 15, 2013

ssh-copy-id -i on a different port

If it ever occurred to you that a changed has been done to your ssh config particularly the default port of 22 into something else.  Then you need to implement password-less ssh.  Then you got this:

ssh: connect to host 121.97.35.82 port 22: Connection refused

Solution:

ssh-copy-id -i  file_path "username@some_ipaddress -p port_number"

Cheers!

Monday, August 12, 2013

Secure Copy to a Different Port

At times you need to change the order in which services like ssh run on its default port for security reasons.  This in effect will impact your scp as well.  Here is the syntax for it.

$ scp -P port_number  /some_path_to_a_file @Ip_address

Cheers!

Sunday, August 11, 2013

Password Generator

If in any case you needed to create phrases of passwords.  This is the likely key:  http://goo.gl/aJD7Kv


Monday, October 22, 2012

passwd: Authentication token manipulation error

There are times when you will entirely left out a box in the dark and then one day it suddenly becomes the jagging hinge pulling out all the steam to a project you have or to a legacy system that has recoiled from it since its very inception.  What do you do when you can no longer retrieve your password?

In this post I am going to lay down simple steps to allow you to retrieve passwords from both virtual systems (vmachines) and physical ones.

  1. LiveCD -- it is best that you have a liveCD kept somewhere for emergency.  This CD either in physical media and/or ISO image will go along way.
  2. A good procedure to work on. 

Procedure:
----------------------------------------

  1. If it is a physical box, configure your BIOS to boot to your CD/DVD-ROM drive.  If it is a virtual machine, you will have to configure it to boot from an ISO image somewhere in you system. 
  2. Do this as root.  Identify the partition which needs to be accessed via "chroot".
  3. Create a staging directory for the system you intend to recover.
  4. Mount that system using this command:    e.g. mount -rw -t ext4 /dev/sda4 /mnt/
  5. chroot /mnt/  -- this would drop you to the chrooted environment of the system you intend to recover.
  6. Issue the command:   "pwconv"  (The "pwconv" command creates shadow from passwd and an optionally existing shadow)
Thats it, issue fixed.

Cheers!!!

Wednesday, September 26, 2012

ERROR: Failed to build gem native extension

If you happen to have an error whilst installing gems with chef.  similar to this one
-----------------------------------------------------------------------------------------------------------------------
gem install zliby chef-solr --no-ri --no-rdoc
Successfully installed zliby-0.0.5
Building native extensions.  This could take a while...
ERROR:  Error installing chef-solr:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
creating Makefile

make
sh: make: not found


Gem files will remain installed in /var/lib/gems/1.9.1/gems/yajl-ruby-1.1.0 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/yajl-ruby-1.1.0/ext/yajl/gem_make.out
----------------------------------------------------------------------------------------------------------------------------
 To fix it you just need to install "make".


Here is the entire completed installation for this problem.

-----------------------------------------------------------------------------------------------------------------------------
chef-solo -c ~/solo.rb -j ~/chef.json -r bootstrap-latest.tar.gz
[2012-09-27T14:38:48+08:00] INFO: *** Chef 10.14.2 ***
[2012-09-27T14:38:48+08:00] INFO: Setting the run_list to ["recipe[chef-server::rubygems-install]"] from JSON
[2012-09-27T14:38:48+08:00] INFO: Run List is [recipe[chef-server::rubygems-install]]
[2012-09-27T14:38:48+08:00] INFO: Run List expands to [chef-server::rubygems-install]
[2012-09-27T14:38:48+08:00] INFO: Starting Chef Run for chefsvr.sulit.net
[2012-09-27T14:38:48+08:00] INFO: Running start handlers
[2012-09-27T14:38:48+08:00] INFO: Start handlers complete.
[2012-09-27T14:38:49+08:00] INFO: Processing user[chef] action create (chef-server::rubygems-install line 30)
[2012-09-27T14:38:49+08:00] INFO: Processing package[erlang-nox] action install (erlang::default line 25)
[2012-09-27T14:38:49+08:00] INFO: Processing package[erlang-dev] action install (erlang::default line 26)
[2012-09-27T14:38:49+08:00] INFO: Processing package[couchdb] action install (couchdb::default line 37)
[2012-09-27T14:38:49+08:00] INFO: Processing template[/etc/couchdb/local.ini] action create (couchdb::default line 45)
[2012-09-27T14:38:49+08:00] INFO: Processing directory[/var/lib/couchdb] action create (couchdb::default line 55)
[2012-09-27T14:38:49+08:00] INFO: Processing service[couchdb] action enable (couchdb::default line 67)
[2012-09-27T14:38:49+08:00] INFO: Processing service[couchdb] action start (couchdb::default line 67)
[2012-09-27T14:38:49+08:00] INFO: Processing ruby_block[set-env-java-home] action create (java::openjdk line 36)
[2012-09-27T14:38:49+08:00] INFO: ruby_block[set-env-java-home] called
[2012-09-27T14:38:49+08:00] INFO: Processing ruby_block[update-java-alternatives] action nothing (java::openjdk line 43)
[2012-09-27T14:38:49+08:00] INFO: Processing package[openjdk-6-jdk] action install (java::openjdk line 82)



[2012-09-27T15:12:55+08:00] INFO: package[openjdk-6-jdk] sending create action to ruby_block[update-java-alternatives] (immediate)
[2012-09-27T15:12:55+08:00] INFO: Processing ruby_block[update-java-alternatives] action create (java::openjdk line 43)
[2012-09-27T15:12:55+08:00] INFO: ruby_block[update-java-alternatives] called
[2012-09-27T15:12:55+08:00] INFO: Processing package[sun-java6-jdk] action purge (java::default line 25)
[2012-09-27T15:12:55+08:00] INFO: Processing package[sun-java6-bin] action purge (java::default line 25)
[2012-09-27T15:12:55+08:00] INFO: Processing package[sun-java6-jre] action purge (java::default line 25)
[2012-09-27T15:12:55+08:00] INFO: Processing package[rabbitmq-server] action install (chef-server::rabbitmq line 43)
[2012-09-27T15:13:19+08:00] INFO: Processing service[rabbitmq-server] action enable (chef-server::rabbitmq line 46)
[2012-09-27T15:13:19+08:00] INFO: Processing service[rabbitmq-server] action start (chef-server::rabbitmq line 46)
[2012-09-27T15:13:19+08:00] INFO: Processing execute[rabbitmqctl add_vhost /chef] action run (chef-server::rabbitmq line 56)
Creating vhost "/chef" ...
...done.
[2012-09-27T15:13:20+08:00] INFO: execute[rabbitmqctl add_vhost /chef] ran successfully
[2012-09-27T15:13:20+08:00] INFO: Processing execute[rabbitmqctl add_user chef testing] action run (chef-server::rabbitmq line 61)
Creating user "chef" ...
...done.
[2012-09-27T15:13:20+08:00] INFO: execute[rabbitmqctl add_user chef testing] ran successfully
[2012-09-27T15:13:20+08:00] INFO: Processing execute[rabbitmqctl set_permissions -p /chef chef ".*" ".*" ".*"] action run (chef-server::rabbitmq line 67)
Setting permissions for user "chef" in vhost "/chef" ...
...done.
[2012-09-27T15:13:20+08:00] INFO: execute[rabbitmqctl set_permissions -p /chef chef ".*" ".*" ".*"] ran successfully
[2012-09-27T15:13:20+08:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
Ign http://ph.archive.ubuntu.com oneiric InRelease
Ign http://ph.archive.ubuntu.com oneiric-updates InRelease
Ign http://ph.archive.ubuntu.com oneiric-backports InRelease
Hit http://ph.archive.ubuntu.com oneiric Release.gpg
Get:1 http://ph.archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Hit http://ph.archive.ubuntu.com oneiric-backports Release.gpg
Hit http://ph.archive.ubuntu.com oneiric Release
Get:2 http://ph.archive.ubuntu.com oneiric-updates Release [40.8 kB]
Hit http://ph.archive.ubuntu.com oneiric-backports Release
Hit http://ph.archive.ubuntu.com oneiric/main Sources
Hit http://ph.archive.ubuntu.com oneiric/restricted Sources
Hit http://ph.archive.ubuntu.com oneiric/universe Sources
Hit http://ph.archive.ubuntu.com oneiric/multiverse Sources
Hit http://ph.archive.ubuntu.com oneiric/main amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric/restricted amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric/universe amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric/multiverse amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric/main i386 Packages
Hit http://ph.archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://ph.archive.ubuntu.com oneiric/universe i386 Packages
Hit http://ph.archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://ph.archive.ubuntu.com oneiric/main TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric/universe TranslationIndex
Get:3 http://ph.archive.ubuntu.com oneiric-updates/main Sources [157 kB]
Ign http://security.ubuntu.com oneiric-security InRelease
Get:4 http://security.ubuntu.com oneiric-security Release.gpg [198 B]
Get:5 http://ph.archive.ubuntu.com oneiric-updates/restricted Sources [3349 B]
Get:6 http://ph.archive.ubuntu.com oneiric-updates/universe Sources [61.6 kB]
Get:7 http://security.ubuntu.com oneiric-security Release [40.8 kB]
Get:8 http://ph.archive.ubuntu.com oneiric-updates/multiverse Sources [3665 B]
Get:9 http://ph.archive.ubuntu.com oneiric-updates/main amd64 Packages [394 kB]
Get:10 http://security.ubuntu.com oneiric-security/main Sources [57.2 kB]
Get:11 http://security.ubuntu.com oneiric-security/restricted Sources [1964 B]
Get:12 http://security.ubuntu.com oneiric-security/universe Sources [22.0 kB]
Get:13 http://security.ubuntu.com oneiric-security/multiverse Sources [1633 B]
Get:14 http://security.ubuntu.com oneiric-security/main amd64 Packages [206 kB]
Get:15 http://ph.archive.ubuntu.com oneiric-updates/restricted amd64 Packages [6651 B]
Get:16 http://ph.archive.ubuntu.com oneiric-updates/universe amd64 Packages [130 kB]
Get:17 http://security.ubuntu.com oneiric-security/restricted amd64 Packages [3995 B]
Get:18 http://security.ubuntu.com oneiric-security/universe amd64 Packages [55.0 kB]
Get:19 http://security.ubuntu.com oneiric-security/multiverse amd64 Packages [3202 B]
Get:20 http://security.ubuntu.com oneiric-security/main i386 Packages [207 kB]
Get:21 http://ph.archive.ubuntu.com oneiric-updates/multiverse amd64 Packages [6205 B]
Get:22 http://ph.archive.ubuntu.com oneiric-updates/main i386 Packages [395 kB]
Get:23 http://security.ubuntu.com oneiric-security/restricted i386 Packages [4062 B]
Get:24 http://security.ubuntu.com oneiric-security/universe i386 Packages [55.1 kB]
Get:25 http://security.ubuntu.com oneiric-security/multiverse i386 Packages [3381 B]
Hit http://security.ubuntu.com oneiric-security/main TranslationIndex
Hit http://security.ubuntu.com oneiric-security/multiverse TranslationIndex
Hit http://security.ubuntu.com oneiric-security/restricted TranslationIndex
Hit http://security.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://security.ubuntu.com oneiric-security/main Translation-en
Hit http://security.ubuntu.com oneiric-security/multiverse Translation-en
Hit http://security.ubuntu.com oneiric-security/restricted Translation-en
Hit http://security.ubuntu.com oneiric-security/universe Translation-en
Get:26 http://ph.archive.ubuntu.com oneiric-updates/restricted i386 Packages [6645 B]
Get:27 http://ph.archive.ubuntu.com oneiric-updates/universe i386 Packages [131 kB]
Get:28 http://ph.archive.ubuntu.com oneiric-updates/multiverse i386 Packages [6359 B]
Hit http://ph.archive.ubuntu.com oneiric-updates/main TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-updates/multiverse TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-updates/universe TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-backports/main Sources
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted Sources
Hit http://ph.archive.ubuntu.com oneiric-backports/universe Sources
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse Sources
Hit http://ph.archive.ubuntu.com oneiric-backports/main amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/universe amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/main i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/universe i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/main TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-backports/universe TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric/main Translation-en
Hit http://ph.archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://ph.archive.ubuntu.com oneiric/restricted Translation-en
Hit http://ph.archive.ubuntu.com oneiric/universe Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/universe Translation-en
Hit http://ph.archive.ubuntu.com oneiric-backports/main Translation-en
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse Translation-en
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted Translation-en
Hit http://ph.archive.ubuntu.com oneiric-backports/universe Translation-en
Fetched 2005 kB in 25s (78.6 kB/s)
Reading package lists...
[2012-09-27T15:13:49+08:00] INFO: execute[apt-get-update] ran successfully
[2012-09-27T15:13:49+08:00] INFO: Processing execute[apt-get update] action nothing (apt::default line 29)
[2012-09-27T15:13:49+08:00] INFO: Processing package[update-notifier-common] action install (apt::default line 36)
[2012-09-27T15:13:54+08:00] INFO: package[update-notifier-common] sending run action to execute[apt-get-update] (immediate)
[2012-09-27T15:13:54+08:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
Ign http://ph.archive.ubuntu.com oneiric InRelease
Ign http://ph.archive.ubuntu.com oneiric-updates InRelease
Ign http://ph.archive.ubuntu.com oneiric-backports InRelease
Ign http://security.ubuntu.com oneiric-security InRelease
Hit http://ph.archive.ubuntu.com oneiric Release.gpg
Hit http://security.ubuntu.com oneiric-security Release.gpg
Hit http://ph.archive.ubuntu.com oneiric-updates Release.gpg
Hit http://security.ubuntu.com oneiric-security Release
Hit http://ph.archive.ubuntu.com oneiric-backports Release.gpg
Hit http://security.ubuntu.com oneiric-security/main Sources
Hit http://ph.archive.ubuntu.com oneiric Release
Hit http://security.ubuntu.com oneiric-security/restricted Sources
Hit http://security.ubuntu.com oneiric-security/universe Sources
Hit http://security.ubuntu.com oneiric-security/multiverse Sources
Hit http://security.ubuntu.com oneiric-security/main amd64 Packages
Hit http://security.ubuntu.com oneiric-security/restricted amd64 Packages
Hit http://security.ubuntu.com oneiric-security/universe amd64 Packages
Hit http://security.ubuntu.com oneiric-security/multiverse amd64 Packages
Hit http://security.ubuntu.com oneiric-security/main i386 Packages
Hit http://security.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://security.ubuntu.com oneiric-security/universe i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-updates Release
Hit http://security.ubuntu.com oneiric-security/multiverse i386 Packages
Hit http://security.ubuntu.com oneiric-security/main TranslationIndex
Hit http://security.ubuntu.com oneiric-security/multiverse TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-backports Release
Hit http://ph.archive.ubuntu.com oneiric/main Sources
Hit http://ph.archive.ubuntu.com oneiric/restricted Sources
Hit http://ph.archive.ubuntu.com oneiric/universe Sources
Hit http://ph.archive.ubuntu.com oneiric/multiverse Sources
Hit http://ph.archive.ubuntu.com oneiric/main amd64 Packages
Hit http://security.ubuntu.com oneiric-security/restricted TranslationIndex
Hit http://security.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric/restricted amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric/universe amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric/multiverse amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric/main i386 Packages
Hit http://ph.archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://ph.archive.ubuntu.com oneiric/universe i386 Packages
Hit http://ph.archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://ph.archive.ubuntu.com oneiric/main TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://security.ubuntu.com oneiric-security/main Translation-en
Hit http://ph.archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric/universe TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-updates/main Sources
Hit http://ph.archive.ubuntu.com oneiric-updates/restricted Sources
Hit http://ph.archive.ubuntu.com oneiric-updates/universe Sources
Hit http://ph.archive.ubuntu.com oneiric-updates/multiverse Sources
Hit http://security.ubuntu.com oneiric-security/multiverse Translation-en
Hit http://security.ubuntu.com oneiric-security/restricted Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/main amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-updates/restricted amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-updates/universe amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-updates/multiverse amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-updates/main i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-updates/restricted i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-updates/universe i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-updates/multiverse i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-updates/main TranslationIndex
Hit http://security.ubuntu.com oneiric-security/universe Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/multiverse TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-updates/universe TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-backports/main Sources
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted Sources
Hit http://ph.archive.ubuntu.com oneiric-backports/universe Sources
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse Sources
Hit http://ph.archive.ubuntu.com oneiric-backports/main amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/universe amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse amd64 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/main i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/universe i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse i386 Packages
Hit http://ph.archive.ubuntu.com oneiric-backports/main TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric-backports/universe TranslationIndex
Hit http://ph.archive.ubuntu.com oneiric/main Translation-en
Hit http://ph.archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://ph.archive.ubuntu.com oneiric/restricted Translation-en
Hit http://ph.archive.ubuntu.com oneiric/universe Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://ph.archive.ubuntu.com oneiric-updates/universe Translation-en
Hit http://ph.archive.ubuntu.com oneiric-backports/main Translation-en
Hit http://ph.archive.ubuntu.com oneiric-backports/multiverse Translation-en
Hit http://ph.archive.ubuntu.com oneiric-backports/restricted Translation-en
Hit http://ph.archive.ubuntu.com oneiric-backports/universe Translation-en
Reading package lists...
[2012-09-27T15:13:59+08:00] INFO: execute[apt-get-update] ran successfully
[2012-09-27T15:13:59+08:00] INFO: Processing execute[apt-get-update-periodic] action run (apt::default line 40)
[2012-09-27T15:13:59+08:00] INFO: Processing directory[/var/cache/local] action create (apt::default line 50)
[2012-09-27T15:13:59+08:00] INFO: directory[/var/cache/local] created directory /var/cache/local
[2012-09-27T15:13:59+08:00] INFO: directory[/var/cache/local] owner changed to 0
[2012-09-27T15:13:59+08:00] INFO: directory[/var/cache/local] group changed to 0
[2012-09-27T15:13:59+08:00] INFO: directory[/var/cache/local] mode changed to 644
[2012-09-27T15:13:59+08:00] INFO: Processing directory[/var/cache/local/preseeding] action create (apt::default line 50)
[2012-09-27T15:13:59+08:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding
[2012-09-27T15:13:59+08:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0
[2012-09-27T15:13:59+08:00] INFO: directory[/var/cache/local/preseeding] group changed to 0
[2012-09-27T15:13:59+08:00] INFO: directory[/var/cache/local/preseeding] mode changed to 644
[2012-09-27T15:13:59+08:00] INFO: Processing apt_package[libgecode-dev] action upgrade (gecode::package line 44)

[2012-09-27T15:28:29+08:00] INFO: apt_package[libgecode-dev] upgraded from uninstalled to 3.5.0-2
[2012-09-27T15:28:29+08:00] INFO: Processing package[zlib-devel] action install (zlib::default line 20)
[2012-09-27T15:28:50+08:00] INFO: Processing package[libxml2-dev] action install (xml::default line 27)


[2012-09-27T15:29:26+08:00] INFO: Processing package[libxslt-dev] action install (xml::default line 27)
[2012-09-27T15:29:26+08:00] INFO: package[libxslt-dev] is a virtual package, actually acting on package[libxslt1-dev]
[2012-09-27T15:29:58+08:00] INFO: Processing gem_package[chef-server-api] action install (chef-server::rubygems-install line 89)
[2012-09-27T15:31:44+08:00] INFO: Processing gem_package[chef-solr] action install (chef-server::rubygems-install line 89)
[2012-09-27T15:31:44+08:00] INFO: Processing gem_package[chef-expander] action install (chef-server::rubygems-install line 89)
[2012-09-27T15:32:29+08:00] INFO: Processing gem_package[chef-server-webui] action install (chef-server::rubygems-install line 89)
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/log/chef] action create (chef-server::rubygems-install line 104)
[2012-09-27T15:33:02+08:00] INFO: directory[/var/log/chef] created directory /var/log/chef
[2012-09-27T15:33:02+08:00] INFO: directory[/var/log/chef] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: directory[/var/log/chef] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: directory[/var/log/chef] mode changed to 755
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/lib/chef] action create (chef-server::rubygems-install line 104)
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef] created directory /var/lib/chef
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef] mode changed to 755
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/cache/chef] action create (chef-server::rubygems-install line 104)
[2012-09-27T15:33:02+08:00] INFO: directory[/var/cache/chef] created directory /var/cache/chef
[2012-09-27T15:33:02+08:00] INFO: directory[/var/cache/chef] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: directory[/var/cache/chef] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: directory[/var/cache/chef] mode changed to 755
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/lib/chef/backup] action create (chef-server::rubygems-install line 104)
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/backup] created directory /var/lib/chef/backup
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/backup] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/backup] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/backup] mode changed to 755
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/run/chef] action create (chef-server::rubygems-install line 104)
[2012-09-27T15:33:02+08:00] INFO: directory[/var/run/chef] created directory /var/run/chef
[2012-09-27T15:33:02+08:00] INFO: directory[/var/run/chef] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: directory[/var/run/chef] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: directory[/var/run/chef] mode changed to 755
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/etc/chef] action create (chef-server::rubygems-install line 104)
[2012-09-27T15:33:02+08:00] INFO: directory[/etc/chef] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: Processing template[/etc/chef/server.rb] action create (chef-server::rubygems-install line 112)
[2012-09-27T15:33:02+08:00] INFO: template[/etc/chef/server.rb] updated content
[2012-09-27T15:33:02+08:00] INFO: template[/etc/chef/server.rb] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: template[/etc/chef/server.rb] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: template[/etc/chef/server.rb] mode changed to 600
[2012-09-27T15:33:02+08:00] INFO: Processing link[/etc/chef/webui.rb] action create (chef-server::rubygems-install line 119)
[2012-09-27T15:33:02+08:00] INFO: link[/etc/chef/webui.rb] created
[2012-09-27T15:33:02+08:00] INFO: Processing link[/etc/chef/expander.rb] action create (chef-server::rubygems-install line 123)
[2012-09-27T15:33:02+08:00] INFO: link[/etc/chef/expander.rb] created
[2012-09-27T15:33:02+08:00] INFO: Processing template[/etc/chef/solr.rb] action create (chef-server::rubygems-install line 112)
[2012-09-27T15:33:02+08:00] INFO: template[/etc/chef/solr.rb] updated content
[2012-09-27T15:33:02+08:00] INFO: template[/etc/chef/solr.rb] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: template[/etc/chef/solr.rb] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: template[/etc/chef/solr.rb] mode changed to 600
[2012-09-27T15:33:02+08:00] INFO: Processing link[/etc/chef/webui.rb] action create (chef-server::rubygems-install line 119)
[2012-09-27T15:33:02+08:00] INFO: Processing link[/etc/chef/expander.rb] action create (chef-server::rubygems-install line 123)
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/lib/chef] action create (chef-server::rubygems-install line 128)
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/lib/chef/cache] action create (chef-server::rubygems-install line 135)
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/cache] created directory /var/lib/chef/cache
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/cache] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/cache] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/cache] mode changed to 755
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/lib/chef/search_index] action create (chef-server::rubygems-install line 135)
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/search_index] created directory /var/lib/chef/search_index
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/search_index] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/search_index] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: directory[/var/lib/chef/search_index] mode changed to 755
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/etc/chef/certificates] action create (chef-server::rubygems-install line 142)
[2012-09-27T15:33:02+08:00] INFO: directory[/etc/chef/certificates] created directory /etc/chef/certificates
[2012-09-27T15:33:02+08:00] INFO: directory[/etc/chef/certificates] owner changed to 999
[2012-09-27T15:33:02+08:00] INFO: directory[/etc/chef/certificates] group changed to 0
[2012-09-27T15:33:02+08:00] INFO: directory[/etc/chef/certificates] mode changed to 700
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/run/chef] action create (chef-server::rubygems-install line 148)
[2012-09-27T15:33:02+08:00] INFO: Processing execute[chef-solr-installer] action run (chef-server::rubygems-install line 155)

Creating Solr Home Directory
  mkdir -p /var/lib/chef/solr/home
  entering /var/lib/chef/solr/home
  tar zxvf /var/lib/gems/1.9.1/gems/chef-solr-10.14.2/solr/solr-home.tar.gz
Creating Solr Data Directory
  mkdir -p /var/lib/chef/solr/data
  chown -R chef:root /var/lib/chef/solr/data
Unpacking Solr Jetty
  mkdir -p /var/lib/chef/solr/jetty
  entering /var/lib/chef/solr/jetty
  tar zxvf /var/lib/gems/1.9.1/gems/chef-solr-10.14.2/solr/solr-jetty.tar.gz
  chown -R chef:root /var/lib/chef/solr/jetty

Successfully installed Chef Solr.
[2012-09-27T15:33:02+08:00] INFO: execute[chef-solr-installer] ran successfully
[2012-09-27T15:33:02+08:00] INFO: Processing directory[/var/run/chef] action create (chef-server::rubygems-install line 182)
[2012-09-27T15:33:02+08:00] INFO: Processing template[/etc/init.d/chef-solr] action create (chef-server::rubygems-install line 205)
[2012-09-27T15:33:02+08:00] INFO: template[/etc/init.d/chef-solr] updated content
[2012-09-27T15:33:02+08:00] INFO: template[/etc/init.d/chef-solr] mode changed to 755
[2012-09-27T15:33:02+08:00] INFO: Processing file[/etc/default/chef-solr] action create (chef-server::rubygems-install line 210)
[2012-09-27T15:33:03+08:00] INFO: file[/etc/default/chef-solr] mode changed to 644
[2012-09-27T15:33:03+08:00] INFO: file[/etc/default/chef-solr] created file /etc/default/chef-solr
[2012-09-27T15:33:03+08:00] INFO: Processing link[/usr/sbin/chef-solr] action create (chef-server::rubygems-install line 215)
[2012-09-27T15:33:03+08:00] INFO: link[/usr/sbin/chef-solr] created
[2012-09-27T15:33:03+08:00] INFO: Processing service[chef-solr] action enable (chef-server::rubygems-install line 219)
[2012-09-27T15:33:03+08:00] INFO: service[chef-solr] enabled
[2012-09-27T15:33:03+08:00] INFO: Processing service[chef-solr] action start (chef-server::rubygems-install line 219)
[2012-09-27T15:33:03+08:00] INFO: Processing template[/etc/init.d/chef-expander] action create (chef-server::rubygems-install line 205)
[2012-09-27T15:33:03+08:00] INFO: template[/etc/init.d/chef-expander] updated content
[2012-09-27T15:33:03+08:00] INFO: template[/etc/init.d/chef-expander] mode changed to 755
[2012-09-27T15:33:03+08:00] INFO: Processing file[/etc/default/chef-expander] action create (chef-server::rubygems-install line 210)
[2012-09-27T15:33:03+08:00] INFO: file[/etc/default/chef-expander] mode changed to 644
[2012-09-27T15:33:03+08:00] INFO: file[/etc/default/chef-expander] created file /etc/default/chef-expander
[2012-09-27T15:33:03+08:00] INFO: Processing link[/usr/sbin/chef-expander] action create (chef-server::rubygems-install line 215)
[2012-09-27T15:33:03+08:00] INFO: link[/usr/sbin/chef-expander] created
[2012-09-27T15:33:03+08:00] INFO: Processing service[chef-expander] action enable (chef-server::rubygems-install line 219)
[2012-09-27T15:33:03+08:00] INFO: service[chef-expander] enabled
[2012-09-27T15:33:03+08:00] INFO: Processing service[chef-expander] action start (chef-server::rubygems-install line 219)
[2012-09-27T15:33:03+08:00] INFO: Processing template[/etc/init.d/chef-server] action create (chef-server::rubygems-install line 205)
[2012-09-27T15:33:03+08:00] INFO: template[/etc/init.d/chef-server] updated content
[2012-09-27T15:33:03+08:00] INFO: template[/etc/init.d/chef-server] mode changed to 755
[2012-09-27T15:33:03+08:00] INFO: Processing file[/etc/default/chef-server] action create (chef-server::rubygems-install line 210)
[2012-09-27T15:33:03+08:00] INFO: file[/etc/default/chef-server] mode changed to 644
[2012-09-27T15:33:03+08:00] INFO: file[/etc/default/chef-server] created file /etc/default/chef-server
[2012-09-27T15:33:03+08:00] INFO: Processing link[/usr/sbin/chef-server] action create (chef-server::rubygems-install line 215)
[2012-09-27T15:33:03+08:00] INFO: link[/usr/sbin/chef-server] created
[2012-09-27T15:33:03+08:00] INFO: Processing service[chef-server] action enable (chef-server::rubygems-install line 219)
[2012-09-27T15:33:03+08:00] INFO: service[chef-server] enabled
[2012-09-27T15:33:03+08:00] INFO: Processing service[chef-server] action start (chef-server::rubygems-install line 219)
[2012-09-27T15:33:03+08:00] INFO: Processing template[/etc/init.d/chef-server-webui] action create (chef-server::rubygems-install line 205)
[2012-09-27T15:33:03+08:00] INFO: template[/etc/init.d/chef-server-webui] updated content
[2012-09-27T15:33:03+08:00] INFO: template[/etc/init.d/chef-server-webui] mode changed to 755
[2012-09-27T15:33:03+08:00] INFO: Processing file[/etc/default/chef-server-webui] action create (chef-server::rubygems-install line 210)
[2012-09-27T15:33:03+08:00] INFO: file[/etc/default/chef-server-webui] mode changed to 644
[2012-09-27T15:33:03+08:00] INFO: file[/etc/default/chef-server-webui] created file /etc/default/chef-server-webui
[2012-09-27T15:33:03+08:00] INFO: Processing link[/usr/sbin/chef-server-webui] action create (chef-server::rubygems-install line 215)
[2012-09-27T15:33:03+08:00] INFO: link[/usr/sbin/chef-server-webui] created
[2012-09-27T15:33:03+08:00] INFO: Processing service[chef-server-webui] action enable (chef-server::rubygems-install line 219)
[2012-09-27T15:33:04+08:00] INFO: service[chef-server-webui] enabled
[2012-09-27T15:33:04+08:00] INFO: Processing service[chef-server-webui] action start (chef-server::rubygems-install line 219)
[2012-09-27T15:33:04+08:00] INFO: Chef Run complete in 3255.07702181 seconds
[2012-09-27T15:33:04+08:00] INFO: Running report handlers
[2012-09-27T15:33:04+08:00] INFO: Report handlers complete


Wednesday, August 15, 2012

Terminal Terminator

There are tons of tools to get you moving via the terminal, you have the nifty Yakuake, which drops from the top of you screen like blind shade.

However what if moment calls that you be able to execute commands in a sync with several servers?  Terminator to the rescue.  Terminator is an excellent tool for firing-up several connections in one instance and be able to cascade your executed commands to all the rest those you connected.

To install it all you need is just do a simply apt-get for Debian based systems, for RedHat versions you have to install the EPEL repos to download and install the package.  




Site Reputation Checkers

There are times that you will be baffled by reports from users telling you that your site is a staging for Malware, Bots and Viruses.  If you believe you are free from these known vulnerabilities, take the time to step-back and check the links provided below.  It will pretty give you a summary of things hidden away from your eyes.

  1. http://safeweb.norton.com
  2. http://www.trustedsource.org
  3. http://www.alken.nl/web-security-check.htm
  4. http://www.unmaskparasites.com/security-report/
  5. http://www.avg.com.au/resources/web-page-scanner