Pages

Unixbhaskar's Blog

Wednesday, August 16, 2017

How to format patch and send patch by mail in Git

Well, these topic are littered on the internet. Still ,give you a detail ,what actually you need to do.

Step 1:

First and foremost thing, configure your git client like below:

The file you need to manipulate or put configuration in, should be in your home dir, the file name is :.gitconfig. I want you to only concentrate on sendmail part of it.

Here is how my .gitconfig file looks like :


[user]
email = yourmail@maildomain.com
name = Bhaskar Chowdhury
signingkey = yoursigninggpgkey
[push]
default = matching
[commit]
[gpg]
program = gpg2
[commit]
gpgsign = true
[core]
editor = vim
abbrev = 12
[color]
ui = true

[pretty]
fixes = Fixes: %h (\"%s\")
[log]
showSignature = true
[alias]
logline = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

[sendemail]
; setup for using git send-email; prompts for password
smtpuser = yourmail@maildomain.com
smtpserver = smtp.maildomain.com
smtpencryption = tls
smtpserverport = 587
smtppass = yoursmtppassword


Well, we need to create the patch in a specific format that git email understands that.That is next step:

Step 2:

We need to get into the directory, where we want to create the patch(in fact it is not necessary, if you specify the path of the file )



bhaskar@GentooLinux_20:03:57_Wed Aug 16:~/git-linux/AdminScripts>git format-patch -1
0001-linux-counter-machine-update.patch

bhaskar@GentooLinux_20:04:15_Wed Aug 16:~/git-linux/AdminScripts>ls -al 0001-linux-counter-machine-update.patch
-rw-r--r-- 1 bhaskar vboxusers 35358 Aug 16 20:04 0001-linux-counter-machine-update.patch


Okay, git format-patch sub-command is used to create the patch and the -1 stands for the last commit you did in that directory.

Likewise, you can pick up any commit, which supposes to create a patch on.

So, next, send the patch to the designated parties. Please go through the output below to understand how it works.



bhaskar@GentooLinux_20:11:42_Wed Aug 16:~/git-linux/AdminScripts>git send-email 0001-linux-counter-machine-update.patch
0001-linux-counter-machine-update.patch
The following files are 8bit, but do not declare a Content-Transfer-Encoding.
0001-linux-counter-machine-update.patch
Which 8bit encoding should I declare [UTF-8]?
To whom should the emails be sent (if anyone)? unixbhaskar@lycos.com
Message-ID to be used as In-Reply-To for the first email (if any)?
(mbox) Adding cc: Bhaskar Chowdhury from line 'From: Bhaskar Chowdhury '
(body) Adding cc: Bhaskar Chowdhury from line 'Signed-off-by: Bhaskar Chowdhury '

From: Bhaskar Chowdhury
To: unixbhaskar@lycos.com
Cc: Bhaskar Chowdhury
Subject: [PATCH] linux counter machine update
Date: Wed, 16 Aug 2017 20:12:13 +0530
Message-Id: <20170816144213.31205-1-unixbhaskar@gmail.com>
X-Mailer: git-send-email 2.13.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The Cc list above has been expanded by additional
addresses found in the patch commit message. By default
send-email prompts before sending whenever this occurs.
This behavior is controlled by the sendemail.confirm
configuration setting.

For additional information, run 'git send-email --help'.
To retain the current behavior, but squelch this message,
run 'git config --global sendemail.confirm auto'.

Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
OK. Log says:
Server: smtp.googlemail.com
MAIL FROM:
RCPT TO:
RCPT TO:
From: Bhaskar Chowdhury
To: unixbhaskar@lycos.com
Cc: Bhaskar Chowdhury
Subject: [PATCH] linux counter machine update
Date: Wed, 16 Aug 2017 20:12:13 +0530
Message-Id: <20170816144213.31205-1-unixbhaskar@gmail.com>
X-Mailer: git-send-email 2.13.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Result: 250


The above git command uses a sub-command send-email to send the mail to the designated parties. It also takes the patch file name as an argument to it.

If you look at the output closely, you can see that I have added some mail id in CC block apart from the default recipient.Once it's done taking your input, whom to send the patch, it will ask you with the option to quit and send et al.

Now, you should go back to your inbox and see the patch there!

Here is how it looks like in my mailbox:


Installing and working with Docker on Arch Linux i686 system


I am intentionally publishing this old, almost a year back draft for the reason of understanding.

Okay,building it on i686 arch is not fun or straight forward most people thorught ,or at least my dull head had that kind of impression.I am gonna give the steps I follwed :

bhaskar@ArchLinux_19:57:24_Mon Apr 06:~> sudo pacman -S docker-git
[sudo] password for bhaskar:
error: target not found: docker-git
bhaskar@ArchLinux_19:58:28_Mon Apr 06:~> sudo pacman -S docker
[sudo] password for bhaskar:
error: target not found: docker
bhaskar@ArchLinux_20:03:42_Mon Apr 06:~> sudo pacman -Ss docker


The above code is a routine habit on Arch ...but it was not working..plus I made the blunder not consulting the Docker-Archwiki page properly to install it on this specific architecture.

Then I got that tarball from AUR..


bhaskar@ArchLinux_20:03:52_Mon Apr 06:~> cd Downloads/
bhaskar@ArchLinux_20:10:21_Mon Apr 06:~/Downloads> ls
docker-git.tar.gz
bhaskar@ArchLinux_20:10:22_Mon Apr 06:~/Downloads> tar -xvzf docker-git.tar.gz
docker-git/
docker-git/PKGBUILD
docker-git/.SRCINFO
docker-git/docker.service
docker-git/docker.install
docker-git/docker.conf
bhaskar@ArchLinux_20:10:29_Mon Apr 06:~/Downloads> cd docker-git
bhaskar@ArchLinux_20:10:34_Mon Apr 06:~/Downloads/docker-git> ls
docker.conf docker.install docker.service PKGBUILD
bhaskar@ArchLinux_20:10:35_Mon Apr 06:~/Downloads/docker-git> makepkg
==> Making package: docker-git 1:1.5.0.dev.13153.99ca215-1 (Mon Apr 6 20:10:48 IST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
-> go
-> btrfs-progs
==> ERROR: Could not resolve all dependencies.


Ooops! it doesn't have the prerequisite in the system ,so I need to get them beforehand ...here we go..


bhaskar@ArchLinux_20:10:49_Mon Apr 06:~/Downloads/docker-git> sudo pacman -S go
[sudo] password for bhaskar:
resolving dependencies...
looking for conflicting packages...

Packages (1) go-2:1.4.2-2

Total Download Size: 48.02 MiB
Total Installed Size: 304.34 MiB

:: Proceed with installation? [Y/n] n
bhaskar@ArchLinux_20:11:14_Mon Apr 06:~/Downloads/docker-git> sudo pacman -S go btrfs-progs
resolving dependencies...
looking for conflicting packages...

Packages (2) btrfs-progs-3.19-1 go-2:1.4.2-2

Total Download Size: 48.54 MiB
Total Installed Size: 308.42 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
btrfs-progs-3.19-1-i686 533.6 KiB 337K/s 00:02 [######################################################################] 100%
go-2:1.4.2-2-i686 48.0 MiB 476K/s 01:43 [######################################################################] 100%
(2/2) checking keys in keyring [######################################################################] 100%
(2/2) checking package integrity [######################################################################] 100%
(2/2) loading package files [######################################################################] 100%
(2/2) checking for file conflicts [######################################################################] 100%
(2/2) checking available disk space [######################################################################] 100%
(1/2) installing go [######################################################################] 100%

The "liteide" package provides an IDE for editing and building Go projects.

An example use of the "go" tool:

mkdir ~/go
export GOPATH=~/go
export PATH=$PATH:~/go/bin
go get golang.org/x/tour/gotour

Optional dependencies for go
mercurial: for fetching sources from mercurial repositories
git: for fetching sources from git repositories [installed]
bzr: for fetching sources from bazaar repositories
subversion: for fetching sources from subversion repositories [installed]
(2/2) installing btrfs-progs [######################################################################] 100%
bhaskar@ArchLinux_20:13:29_Mon Apr 06:~/Downloads/docker-git> makepkg
==> Making package: docker-git 1:1.5.0.dev.13153.99ca215-1 (Mon Apr 6 20:14:04 IST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning docker git repo...
Cloning into bare repository '/home/bhaskar/Downloads/docker-git/docker'...
remote: Counting objects: 114972, done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 114972 (delta 25), reused 1 (delta 1), pack-reused 114889
Receiving objects: 100% (114972/114972), 62.49 MiB | 476.00 KiB/s, done.
Resolving deltas: 100% (75706/75706), done.
Checking connectivity... done.
-> Found docker.service
-> Found docker.install
-> Found docker.conf
==> Validating source files with md5sums...
docker ... Skipped
docker.service ... Passed
docker.install ... Passed
docker.conf ... Passed
==> Extracting sources...
-> Creating working copy of docker git repo...
Cloning into 'docker'...
done.
==> Starting pkgver()...
==> Updated version: docker-git 1:1.5.0.dev.14431.58390b6-1
==> Starting prepare()...
==> Starting build()...
# WARNING! I don't seem to be running in the Docker container.
# The result of this command might be an incorrect build, and will not be
# officially supported.
#
# Try this instead: make all
#

---> Making bundle: dynbinary (in bundles/1.5.0-dev/dynbinary)
Created binary: /home/bhaskar/Downloads/docker-git/src/docker/bundles/1.5.0-dev/dynbinary/dockerinit-1.5.0-dev
Created binary: /home/bhaskar/Downloads/docker-git/src/docker/bundles/1.5.0-dev/dynbinary/docker-1.5.0-dev

==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Purging unwanted files...
-> Removing libtool files...
#
-> Removing static library files...
-> Compressing man and info pages...
==> Creating package "docker-git"...
-> Generating .PKGINFO file...
-> Adding install file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: docker-git 1:1.5.0.dev.14431.58390b6-1 (Mon Apr 6 20:17:08 IST 2015)



That's done..next..


bhaskar@ArchLinux_20:17:08_Mon Apr 06:~/Downloads/docker-git> ls
docker docker.conf docker-git-1:1.5.0.dev.14431.58390b6-1-i686.pkg.tar.xz docker.install docker.service pkg PKGBUILD src
bhaskar@ArchLinux_20:18:13_Mon Apr 06:~/Downloads/docker-git> sudo pkginstall docker-git-1\:1.5.0.dev.14431.58390b6-1-i686.pkg.tar.xz
[sudo] password for bhaskar:
sudo: pkginstall: command not found
bhaskar@ArchLinux_20:18:41_Mon Apr 06:~/Downloads/docker-git> sudo pacman -U docker-git-1\:1.5.0.dev.14431.58390b6-1-i686.pkg.tar.xz
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) docker-git-1:1.5.0.dev.14431.58390b6-1

Total Installed Size: 16.34 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [######################################################################] 100%
(1/1) checking package integrity [######################################################################] 100%
(1/1) loading package files [######################################################################] 100%
(1/1) checking for file conflicts [######################################################################] 100%
(1/1) checking available disk space [######################################################################] 100%
(1/1) installing docker-git [######################################################################] 100%
To make Docker fully functional, consider performing the following actions:
+ Start the docker daemon:
$ sudo systemctl start docker
+ (OPTIONAL) Start the docker daemon at boot:
$ sudo systemctl enable docker
+ Add your user to the docker group to run the docker client without sudo:
$ sudo usermod -a -G docker
Login again for the change to take effect or run the following command
for a change affecting only the current shell:
$ newgrp docker
+ Enable IPv4 forwarding to allow internet connections inside the containers.
See /etc/sysctl.d/docker.conf for WARNING and instructions.


Okay,installed the docker-git now.Few rudimentary things left...



bhaskar@ArchLinux_20:19:07_Mon Apr 06:~/Downloads/docker-git> sudo usermod -a -G docker bhaskar
bhaskar@ArchLinux_20:19:59_Mon Apr 06:~/Downloads/docker-git> newgrp docker
bhaskar@ArchLinux_20:20:22_Mon Apr 06:~/Downloads/docker-git> sudo vim /etc/sysctl.conf
bhaskar@ArchLinux_20:20:58_Mon Apr 06:~/Downloads/docker-git>


BTW, I have edited the /etc/sysctl.conf file and change the value "0" to "1" for packet forwarding to the container!

Next,start the service and check the status :


bhaskar@ArchLinux_20:23:57_Mon Apr 06:~/Downloads/docker-git> sudo systemctl start docker
bhaskar@ArchLinux_20:24:09_Mon Apr 06:~/Downloads/docker-git> sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Mon 2015-04-06 20:24:09 IST; 18s ago
Docs: http://docs.docker.io
Process: 7330 ExecStartPre=/usr/bin/mount --make-rprivate / (code=exited, status=0/SUCCESS)
Main PID: 7333 (docker)
CGroup: /system.slice/docker.service
└─7333 /usr/bin/docker -d

Apr 06 20:24:09 ArchLinux docker[7333]: time="2015-04-06T20:24:09.810967350+05:30" level=info msg="Listening for HTTP on unix (/var/run/docker.sock)"
Apr 06 20:24:16 ArchLinux docker[7333]: time="2015-04-06T20:24:16.865655559+05:30" level=info msg="+job init_networkdriver()"
Apr 06 20:24:20 ArchLinux docker[7333]: time="2015-04-06T20:24:20.906197291+05:30" level=info msg="-job init_networkdriver() OK"
Apr 06 20:24:21 ArchLinux docker[7333]: time="2015-04-06T20:24:21.205879523+05:30" level=warning msg="Your kernel does not support cgroup swap limit."
Apr 06 20:24:21 ArchLinux docker[7333]: time="2015-04-06T20:24:21.212245232+05:30" level=info msg="Loading containers: start."
Apr 06 20:24:21 ArchLinux docker[7333]: time="2015-04-06T20:24:21.212644699+05:30" level=info msg="Loading containers: done."
Apr 06 20:24:21 ArchLinux docker[7333]: time="2015-04-06T20:24:21.212761269+05:30" level=info msg="docker daemon: 1.5.0-dev 58390b6; execdriver: native-0.2; graphdriver: devicemapper"
Apr 06 20:24:21 ArchLinux docker[7333]: time="2015-04-06T20:24:21.212927536+05:30" level=info msg="+job acceptconnections()"
Apr 06 20:24:21 ArchLinux docker[7333]: time="2015-04-06T20:24:21.212979193+05:30" level=info msg="-job acceptconnections() OK"
Apr 06 20:24:21 ArchLinux docker[7333]: time="2015-04-06T20:24:21.223993507+05:30" level=info msg="Daemon has completed initialization"


Now pulling CentOS 7 from DockerHub registry to local machine.


bhaskar@ArchLinux_21:04:55_Mon Apr 06:~/Downloads/docker-git> docker pull centos:7
Pulling repository centos
2b8d6139a545: Download complete
511136ea3c5a: Download complete
5b12ef8fd570: Download complete
5c5681003a50: Download complete
Status: Downloaded newer image for centos:7


Now,here is some info about the docker environment:



bhaskar@ArchLinux_21:30:56_Mon Apr 06:~/Downloads/docker-git> docker info
Containers: 3
Images: 4
Storage Driver: devicemapper
Pool Name: docker-8:1-163302-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 567.5 MB
Data Space Total: 107.4 GB
Data Space Available: 3.412 GB
Metadata Space Used: 1.081 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.146 GB
Udev Sync Supported: true
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.93 (2015-01-30)
Execution Driver: native-0.2
Kernel Version: 3.19.2-1-ARCH
Operating System: Arch Linux
CPUs: 4
Total Memory: -2.147e+09 B
Name: ArchLinux
ID: LST5:5QDH:OO7W:F24Z:DSM7:2RLW:SMZM:2EJX:MABR:AT2C:J6LR:KIQE
WARNING: No swap limit support



Cool!!

Wednesday, September 3, 2014

How to fix Nginx problem with SELinux

I was getting the below error while try to start nginx on the same box as httpd running...but it has got nothing to do with httpd ..
19:35:30_Mon Sep 01:/etc/nginx> sudo systemctl status nginx.service
nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
Active: failed (Result: exit-code) since Mon 2014-09-01 19:33:13 IST; 2min 28s ago
Process: 8238 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)

Sep 01 19:33:13 LAP-02-1755 nginx[8238]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Sep 01 19:33:13 LAP-02-1755 nginx[8238]: nginx: [emerg] bind() to 127.0.0.1:100 failed (13: Permission denied)
Sep 01 19:33:13 LAP-02-1755 nginx[8238]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 01 19:33:13 LAP-02-1755 systemd[1]: nginx.service: control process exited, code=exited status=1
Sep 01 19:33:13 LAP-02-1755 systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Sep 01 19:33:13 LAP-02-1755 systemd[1]: Unit nginx.service entered failed state.


Then, I cross checked the file permissions :


19:37:38_Mon Sep 01:/etc/nginx> sudo /usr/bin/namei -m /etc/nginx/nginx.conf
f: /etc/nginx/nginx.conf
drwxr-xr-x /
drwxr-xr-x etc
drwxr-xr-x nginx
-rw-r--r-- nginx.conf
Looks alright to me!! but why it is not coming? SELINUX?? yes...
19:41:51_Mon Sep 01:/etc/nginx> ls -Z /etc/httpd/conf/httpd.conf
-rw-r--r--. root root system_u:object_r:httpd_config_t:s0 /etc/httpd/conf/httpd.conf
19:42:10_Mon Sep 01:/etc/nginx> ls -Z /etc/nginx/nginx.conf
-rw-r--r--. root root system_u:object_r:httpd_config_t:s0 /etc/nginx/nginx.conf


Looks similar!! Now every time I tried to start nginx ...it throws AVC deniel error..once opened that..I got the solution too...:)

19:44:49_Mon Sep 01:/etc/nginx> sudo su -
Last login: Mon Sep 1 18:31:19 IST 2014 on pts/1
19:44:58_Mon Sep 01:~ # grep nginx /var/log/audit/audit.log | audit2allow -M nginxpol
******************** IMPORTANT ***********************
To make this policy package active, execute:

semodule -i nginxpol.pp

19:45:12_Mon Sep 01:~ # semodule -i nginxpol.pp

Now restart the nginx daemon..and voila!!

19:45:48_Mon Sep 01:/etc/nginx> sudo systemctl restart nginx.service
19:45:52_Mon Sep 01:/etc/nginx> sudo systemctl status nginx.service
nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
Active: active (running) since Mon 2014-09-01 19:45:52 IST; 7s ago
Process: 8538 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 8535 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Main PID: 8541 (nginx)
CGroup: /system.slice/nginx.service
├─8541 nginx: master process /usr/sbin/nginx
└─8542 nginx: worker process

Sep 01 19:45:52 LAP-02-1755 nginx[8535]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Sep 01 19:45:52 LAP-02-1755 nginx[8535]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Sep 01 19:45:52 LAP-02-1755 systemd[1]: Started The nginx HTTP and reverse proxy server.



Cool!! hope this will help.
Bhaskar

Thursday, February 20, 2014

How to fix "Read-only" root file system


This happened on Ubuntu 13.10.

Okay, I recently encounter it in one of my OS's installed in my laptop...there are many of them ..this is on Ubuntu...

After booting( I am accessing this partition after month or two!) it works fine for few minutes then all of a sudden it went back to Read-Only mode and that too root fs...irk...real irk...:(

So, I was doing an update to that OS after a while as I said..and it bug me twice..so started to hunt down that problem.I started to look around different aspect of fs and finally look at fstab..and it was little different then I thought.

The root fs was has the parameter of "on-error=errors=remount-ro" and which is missing the "defaults" option. Okay, what's the big deal with that "defaults" option..very big deal indeed.Please check out the mount man page to find out more about that option.

From the man pages of mount:

defaults
Use default options: rw, suid, dev, exec, auto, nouser, and async.


Now , I hope you understand why :)


But why the hell it was missing from the option in fstab file ...I was wondering..probably last update?or something else?Because I haven't had change anything in that file IIRC...or ...let me know if you believe and prof of something else doing that ..

Mind you, I have done two round of fsck after being hit by that to bring down that os and do it from other os partition.And the fsck fixed up few more thing..but still it was happening...so adding that options is simple and worked for me.

Hope this will help.

Cheers!
Bhaskar

Wednesday, August 7, 2013

How to install powerpill( a pacman wrapper) on Arch Linux

Pretty easy! generally follow this page and do the thing below:

powerpill-2013.7.25/TODO
powerpill-2013.7.25/man.md/
powerpill-2013.7.25/man.md/powerpill.json.1.md
powerpill-2013.7.25/powerpill
powerpill-2013.7.25/powerpill-bash-completion.sh
powerpill-2013.7.25/powerpill.json
powerpill-2013.7.25/man/
powerpill-2013.7.25/man/powerpill.json.1.gz
bhaskar@ArchLinux_11:55:02_Wed Aug 07:~/Downloads> cd powerpill-2013.7.25

bhaskar@ArchLinux_11:55:05_Wed Aug 07:~/Downloads/powerpill-2013.7.25> ls
CHANGELOG COPYING man man.md powerpill powerpill-bash-completion.sh powerpill.json TODO

bhaskar@ArchLinux_11:55:06_Wed Aug 07:~/Downloads/powerpill-2013.7.25> makepkg -s
==> ERROR: PKGBUILD does not exist.

bhaskar@ArchLinux_11:55:16_Wed Aug 07:~/Downloads/powerpill-2013.7.25> ls
CHANGELOG COPYING man man.md powerpill powerpill-bash-completion.sh powerpill.json TODO

bhaskar@ArchLinux_11:55:22_Wed Aug 07:~/Downloads/powerpill-2013.7.25> cd ..

bhaskar@ArchLinux_11:56:53_Wed Aug 07:~/Downloads> rm -rf powerpill-2013.7.25

bhaskar@ArchLinux_11:57:01_Wed Aug 07:~/Downloads> tar -xvzf powerpill.tar.gz
powerpill/
powerpill/PKGBUILD
powerpill/powerpill.install

bhaskar@ArchLinux_11:57:11_Wed Aug 07:~/Downloads> cd powerpill

bhaskar@ArchLinux_11:57:15_Wed Aug 07:~/Downloads/powerpill> ls
PKGBUILD powerpill.install

bhaskar@ArchLinux_11:57:16_Wed Aug 07:~/Downloads/powerpill> makepkg -s
==> Making package: powerpill 2013.7.25-1 (Wed Aug 7 11:57:23 IST 2013)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for bhaskar:
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck
==> ERROR: 'pacman' failed to install missing dependencies.

bhaskar@ArchLinux_11:57:27_Wed Aug 07:~/Downloads/powerpill> makepkg -s
==> Making package: powerpill 2013.7.25-1 (Wed Aug 7 12:36:15 IST 2013)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for bhaskar:
error: target not found: pm2ml>2012.12.12
==> ERROR: 'pacman' failed to install missing dependencies.

bhaskar@ArchLinux_12:36:19_Wed Aug 07:~/Downloads/powerpill> cd ..

bhaskar@ArchLinux_12:37:07_Wed Aug 07:~/Downloads> tar -xvzf pm2ml.tar.gz
pm2ml/
pm2ml/PKGBUILD

bhaskar@ArchLinux_12:37:12_Wed Aug 07:~/Downloads> cd pm2ml

bhaskar@ArchLinux_12:37:15_Wed Aug 07:~/Downloads/pm2ml> ls
PKGBUILD

bhaskar@ArchLinux_12:37:16_Wed Aug 07:~/Downloads/pm2ml> makepkg -s
==> Making package: pm2ml 2013.6-1 (Wed Aug 7 12:37:21 IST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading pm2ml-2013.6.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14000 100 14000 0 0 3107 0 0:00:04 0:00:04 --:--:-- 3108
-> Downloading pm2ml-2013.6.tar.xz.sig...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 287 100 287 0 0 247 0 0:00:01 0:00:01 --:--:-- 248
==> Validating source files with md5sums...
pm2ml-2013.6.tar.xz ... Passed
pm2ml-2013.6.tar.xz.sig ... Passed
==> Validating source files with sha512sums...
pm2ml-2013.6.tar.xz ... Passed
pm2ml-2013.6.tar.xz.sig ... Passed
==> Verifying source file signatures with gpg...
pm2ml-2013.6.tar.xz ... FAILED (unknown public key 5CED81B7C2E5C0D2)
==> WARNING: Warnings have occurred while verifying the signatures.
Please make sure you really trust them.
==> Extracting sources...
-> Extracting pm2ml-2013.6.tar.xz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
running install
running build
running build_py
creating build
creating build/lib
copying pm2ml.py -> build/lib
running install_lib
creating /home/bhaskar/Downloads/pm2ml/pkg/pm2ml/usr
creating /home/bhaskar/Downloads/pm2ml/pkg/pm2ml/usr/lib
creating /home/bhaskar/Downloads/pm2ml/pkg/pm2ml/usr/lib/python3.3
creating /home/bhaskar/Downloads/pm2ml/pkg/pm2ml/usr/lib/python3.3/site-packages
copying build/lib/pm2ml.py -> /home/bhaskar/Downloads/pm2ml/pkg/pm2ml/usr/lib/python3.3/site-packages
byte-compiling /home/bhaskar/Downloads/pm2ml/pkg/pm2ml/usr/lib/python3.3/site-packages/pm2ml.py to pm2ml.cpython-33.pyc
writing byte-compilation script '/tmp/tmpfe9ozp.py'
/usr/bin/python3 -O /tmp/tmpfe9ozp.py
removing /tmp/tmpfe9ozp.py
running install_egg_info
Writing /home/bhaskar/Downloads/pm2ml/pkg/pm2ml/usr/lib/python3.3/site-packages/pm2ml-2013.06.11.16.49.05-py3.3.egg-info
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package "pm2ml"...
-> Generating .PKGINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: pm2ml 2013.6-1 (Wed Aug 7 12:37:30 IST 2013)

bhaskar@ArchLinux_12:37:30_Wed Aug 07:~/Downloads/pm2ml> ls
pkg PKGBUILD pm2ml-2013.6-1-any.pkg.tar.xz pm2ml-2013.6.tar.xz pm2ml-2013.6.tar.xz.sig src

bhaskar@ArchLinux_12:37:33_Wed Aug 07:~/Downloads/pm2ml> sudo pacman -U pm2ml-2013.6.tar.xz
loading packages...
error: missing package metadata in pm2ml-2013.6.tar.xz
error: 'pm2ml-2013.6.tar.xz': invalid or corrupted package

bhaskar@ArchLinux_12:38:35_Wed Aug 07:~/Downloads/pm2ml> sudo pacman -U pm2ml-2013.6-1-any.pkg.tar.xz
loading packages...
resolving dependencies...
looking for inter-conflicts...

Packages (1): pm2ml-2013.6-1

Total Installed Size: 0.12 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [############################################################] 100%
(1/1) checking package integrity [############################################################] 100%
(1/1) loading package files [############################################################] 100%
(1/1) checking for file conflicts [############################################################] 100%
(1/1) checking available disk space [############################################################] 100%
(1/1) installing pm2ml [############################################################] 100%
Optional dependencies for pm2ml
reflector: Reflector support
python3-aur: AUR support
aria2: ppl script support.

bhaskar@ArchLinux_12:39:25_Wed Aug 07:~/Downloads/pm2ml> cd ..

bhaskar@ArchLinux_12:39:37_Wed Aug 07:~/Downloads> cd powerpill

bhaskar@ArchLinux_12:39:41_Wed Aug 07:~/Downloads/powerpill> ls
PKGBUILD powerpill.install

bhaskar@ArchLinux_12:39:44_Wed Aug 07:~/Downloads/powerpill> makepkg -s
==> Making package: powerpill 2013.7.25-1 (Wed Aug 7 12:39:56 IST 2013)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for inter-conflicts...

Packages (3): c-ares-1.10.0-1 aria2-1.17.1-1 reflector-2013-1

Total Download Size: 1.25 MiB
Total Installed Size: 4.44 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
error: failed retrieving file 'c-ares-1.10.0-1-i686.pkg.tar.xz' from archlinux.mirrors.uk2.net : The requested URL returned error: 404 Not Found
c-ares-1.10.0-1-i686 112.9 KiB 16.2K/s 00:07 [############################################################] 100%
error: failed retrieving file 'reflector-2013-1-any.pkg.tar.xz' from archlinux.mirrors.uk2.net : The requested URL returned error: 404 Not Found
reflector-2013-1-any 11.9 KiB 19.0K/s 00:01 [############################################################] 100%
error: failed retrieving file 'aria2-1.17.1-1-i686.pkg.tar.xz' from archlinux.mirrors.uk2.net : The requested URL returned error: 404 Not Found
aria2-1.17.1-1-i686 1152.8 KiB 30.2K/s 00:38 [############################################################] 100%
(3/3) checking keys in keyring [############################################################] 100%
(3/3) checking package integrity [############################################################] 100%
(3/3) loading package files [############################################################] 100%
(3/3) checking for file conflicts [############################################################] 100%
(3/3) checking available disk space [############################################################] 100%
(1/3) installing reflector [############################################################] 100%
(2/3) installing c-ares [############################################################] 100%
(3/3) installing aria2 [############################################################] 100%
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading powerpill-2013.7.25.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16156 100 16156 0 0 2243 0 0:00:07 0:00:07 --:--:-- 3790
-> Downloading powerpill-2013.7.25.tar.xz.sig...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 287 100 287 0 0 233 0 0:00:01 0:00:01 --:--:-- 233
==> Validating source files with md5sums...
powerpill-2013.7.25.tar.xz ... Passed
powerpill-2013.7.25.tar.xz.sig ... Passed
==> Validating source files with sha512sums...
powerpill-2013.7.25.tar.xz ... Passed
powerpill-2013.7.25.tar.xz.sig ... Passed
==> Verifying source file signatures with gpg...
powerpill-2013.7.25.tar.xz ... FAILED (unknown public key 5CED81B7C2E5C0D2)
==> WARNING: Warnings have occurred while verifying the signatures.
Please make sure you really trust them.
==> Extracting sources...
-> Extracting powerpill-2013.7.25.tar.xz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package "powerpill"...
-> Generating .PKGINFO file...
-> Adding install file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: powerpill 2013.7.25-1 (Wed Aug 7 12:41:04 IST 2013)

bhaskar@ArchLinux_12:41:04_Wed Aug 07:~/Downloads/powerpill> ls
pkg PKGBUILD powerpill-2013.7.25-1-any.pkg.tar.xz powerpill-2013.7.25.tar.xz powerpill-2013.7.25.tar.xz.sig powerpill.install src

bhaskar@ArchLinux_12:41:16_Wed Aug 07:~/Downloads/powerpill> sudo pacman -U powerpill-2013.7.25-1-any.pkg.tar.xz
loading packages...
resolving dependencies...
looking for inter-conflicts...

Packages (1): powerpill-2013.7.25-1

Total Installed Size: 0.06 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [############################################################] 100%
(1/1) checking package integrity [############################################################] 100%
(1/1) loading package files [############################################################] 100%
(1/1) checking for file conflicts [############################################################] 100%
(1/1) checking available disk space [############################################################] 100%
(1/1) installing powerpill [############################################################] 100%
Optional dependencies for powerpill
rsync: Rsync download support [installed]
python3-threaded_servers: internal Pacserve support

bhaskar@ArchLinux_12:42:05_Wed Aug 07:~/Downloads/powerpill> cd ~



Now powerpill on action ...


08/07 12:45:10 [NOTICE] Download complete: /var/cache/pacman/pkg/man-pages-3.53-1-any.pkg.tar.xz
[DL:135KiB UL:0B][#11b53d 0B/2.8MiB(0%)][#540efa 47KiB/47KiB(100%)][#cad1dc 48KiB/364KiB(13%)][#eefdc7 28KiB/28KiB(100%)][#08be30 0B/5.0MiB(0%)](+24) [Checksum:#b3eab6
08/07 12:45:16 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/linux-3.10.5-1-i686.pkg.tar.xz

08/07 12:45:16 [NOTICE] Download complete: /var/cache/pacman/pkg/linux-3.10.5-1-i686.pkg.tar.xz

08/07 12:45:16 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/linux-lts-headers-3.0.89-1-i686.pkg.tar.xz

08/07 12:45:16 [NOTICE] Download complete: /var/cache/pacman/pkg/linux-lts-headers-3.0.89-1-i686.pkg.tar.xz

08/07 12:45:16 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/libusbx-1.0.16-2-i686.pkg.tar.xz

08/07 12:45:16 [NOTICE] Download complete: /var/cache/pacman/pkg/libusbx-1.0.16-2-i686.pkg.tar.xz

08/07 12:45:16 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/util-linux-2.23.2-1-i686.pkg.tar.xz

08/07 12:45:16 [NOTICE] Download complete: /var/cache/pacman/pkg/util-linux-2.23.2-1-i686.pkg.tar.xz
[DL:154KiB UL:0B][#11b53d 0B/2.8MiB(0%)][#540efa 47KiB/47KiB(100%)][#cad1dc 64KiB/364KiB(17%)][#eefdc7 28KiB/28KiB(100%)][#08be30 0B/5.0MiB(0%)](+20) [Checksum:#b5ac20
08/07 12:45:20 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/linux-lts-3.0.89-1-i686.pkg.tar.xz

08/07 12:45:20 [NOTICE] Download complete: /var/cache/pacman/pkg/linux-lts-3.0.89-1-i686.pkg.tar.xz

08/07 12:45:20 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/grub-2.00.5086-1-i686.pkg.tar.xz

08/07 12:45:20 [NOTICE] Download complete: /var/cache/pacman/pkg/grub-2.00.5086-1-i686.pkg.tar.xz

08/07 12:45:20 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/libvdpau-0.7-1-i686.pkg.tar.xz

08/07 12:45:20 [NOTICE] Download complete: /var/cache/pacman/pkg/libvdpau-0.7-1-i686.pkg.tar.xz

08/07 12:45:20 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/libwbclient-4.0.8-1-i686.pkg.tar.xz

08/07 12:45:20 [NOTICE] Download complete: /var/cache/pacman/pkg/libwbclient-4.0.8-1-i686.pkg.tar.xz

08/07 12:45:20 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/evas_generic_loaders-1.7.7-4-i686.pkg.tar.xz

08/07 12:45:20 [NOTICE] Download complete: /var/cache/pacman/pkg/evas_generic_loaders-1.7.7-4-i686.pkg.tar.xz
[DL:157KiB UL:0B][#11b53d 16KiB/2.8MiB(0%)][#cad1dc 96KiB/364KiB(26%)][#08be30 16KiB/5.0MiB(0%)][#3e6846 0B/898KiB(0%)][#3de57c 0B/506KiB(0%)](+15)
08/07 12:45:28 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/poppler-glib-0.24.0-1-i686.pkg.tar.xz

08/07 12:45:28 [NOTICE] Download complete: /var/cache/pacman/pkg/poppler-glib-0.24.0-1-i686.pkg.tar.xz
[DL:169KiB UL:0B][#11b53d 32KiB/2.8MiB(1%)][#cad1dc 192KiB/364KiB(52%)][#08be30 16KiB/5.0MiB(0%)][#3e6846 0B/898KiB(0%)][#3de57c 0B/506KiB(0%)](+14)
08/07 12:45:37 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/libdiscid-0.5.2-1-i686.pkg.tar.xz

08/07 12:45:37 [NOTICE] Download complete: /var/cache/pacman/pkg/libdiscid-0.5.2-1-i686.pkg.tar.xz
[DL:167KiB UL:0B][#11b53d 64KiB/2.8MiB(2%)][#cad1dc 320KiB/364KiB(87%)][#08be30 32KiB/5.0MiB(0%)][#3e6846 32KiB/898KiB(3%)][#3de57c 0B/506KiB(0%)](+13)
08/07 12:45:43 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/pyalpm-0.6.2-1-i686.pkg.tar.xz

08/07 12:45:43 [NOTICE] Download complete: /var/cache/pacman/pkg/pyalpm-0.6.2-1-i686.pkg.tar.xz
[DL:167KiB UL:0B][#11b53d 64KiB/2.8MiB(2%)][#cad1dc 352KiB/364KiB(96%)][#08be30 32KiB/5.0MiB(0%)][#3e6846 32KiB/898KiB(3%)][#3de57c 0B/506KiB(0%)](+12)
08/07 12:45:44 [NOTICE] Verification finished successfully. file=/var/cache/pacman/pkg/libwnck3-3.4.6-1-i686.pkg.tar.xz

08/07 12:45:44 [NOTICE] Download complete: /var/cache/pacman/pkg/libwnck3-3.4.6-1-i686.pkg.tar.xz
*** Download Progress Summary as of Wed Aug 7 12:46:09 2013 ***
=======================================================================================================================================================================
[#11b53d 144KiB/2.8MiB(4%) CN:1 DL:1.6KiB ETA:28m19s]
FILE: /var/cache/pacman/pkg/libreoffice-writer-4.0.4-2-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#08be30 80KiB/5.0MiB(1%) CN:1 DL:1.4KiB ETA:1h10s]
FILE: /var/cache/pacman/pkg/smbclient-4.0.8-1-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#3e6846 96KiB/898KiB(10%) CN:1 DL:1.7KiB ETA:7m29s]
FILE: /var/cache/pacman/pkg/poppler-0.24.0-1-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#3de57c 0B/506KiB(0%) CN:1 DL:285B ETA:30m19s]
FILE: /var/cache/pacman/pkg/xf86-video-intel-2.21.14-1-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#91857f 1.6MiB/17MiB(9%) CN:2 DL:29KiB ETA:9m16s]
FILE: /var/cache/pacman/pkg/thunderbird-17.0.8-1-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#78ae6a 288KiB/5.1MiB(5%) CN:1 DL:7.9KiB ETA:10m25s]
FILE: /var/cache/pacman/pkg/libreoffice-calc-4.0.4-2-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#4ba70b 144KiB/17MiB(0%) CN:2 DL:5.8KiB ETA:50m56s]
FILE: /var/cache/pacman/pkg/wine-1.7.0-1-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#0913ae 96KiB/675KiB(14%) CN:1 DL:2.3KiB ETA:4m4s]
FILE: /var/cache/pacman/pkg/libgdata-0.13.4-1-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#b54e24 0B/1.8MiB(0%) CN:1 DL:0B]
FILE: /var/cache/pacman/pkg/libreoffice-base-4.0.4-2-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#b73c73 3.0MiB/22MiB(13%) CN:4 DL:44KiB ETA:7m20s]
FILE: /var/cache/pacman/pkg/firefox-23.0-1-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#02901e 32KiB/5.2MiB(0%) CN:1 DL:2.6KiB ETA:34m26s]
FILE: /var/cache/pacman/pkg/libreoffice-en-US-4.0.4-2-i686.pkg.tar.xz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[#821bdf 112KiB/396KiB(28%) CN:1 DL:1.6KiB ETA:2m54s]
FILE: /var/cache/pacman/pkg/libreoffice-gnome-4.0.4-2-i686.pkg.tar.xz
--------------------------------------------------------

Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
02659f|OK | 0B/s|/var/cache/pacman/pkg/linux-headers-3.10.5-1-i686.pkg.tar.xz
be294b|OK | 0B/s|/var/cache/pacman/pkg/iproute2-3.10.0-1-i686.pkg.tar.xz
d8895d|OK | 0B/s|/var/cache/pacman/pkg/man-pages-3.53-1-any.pkg.tar.xz
b3eab6|OK | 0B/s|/var/cache/pacman/pkg/linux-3.10.5-1-i686.pkg.tar.xz
31a4e7|OK | 0B/s|/var/cache/pacman/pkg/linux-lts-headers-3.0.89-1-i686.pkg.tar.xz
1c6461|OK | 0B/s|/var/cache/pacman/pkg/libusbx-1.0.16-2-i686.pkg.tar.xz
5f1595|OK | 0B/s|/var/cache/pacman/pkg/util-linux-2.23.2-1-i686.pkg.tar.xz
b5ac20|OK | 0B/s|/var/cache/pacman/pkg/linux-lts-3.0.89-1-i686.pkg.tar.xz
cf80c2|OK | 0B/s|/var/cache/pacman/pkg/grub-2.00.5086-1-i686.pkg.tar.xz
540efa|OK | 23KiB/s|/var/cache/pacman/pkg/libvdpau-0.7-1-i686.pkg.tar.xz
eefdc7|OK | 8.3KiB/s|/var/cache/pacman/pkg/libwbclient-4.0.8-1-i686.pkg.tar.xz
f8e6a2|OK | 4.2KiB/s|/var/cache/pacman/pkg/evas_generic_loaders-1.7.7-4-i686.pkg.tar.xz
11e6df|OK | 8.3KiB/s|/var/cache/pacman/pkg/poppler-glib-0.24.0-1-i686.pkg.tar.xz
f31293|OK | 698B/s|/var/cache/pacman/pkg/libdiscid-0.5.2-1-i686.pkg.tar.xz
d64dd7|OK | 1.1KiB/s|/var/cache/pacman/pkg/pyalpm-0.6.2-1-i686.pkg.tar.xz
cad1dc|OK | 10KiB/s|/var/cache/pacman/pkg/libwnck3-3.4.6-1-i686.pkg.tar.xz
bfac9f|OK | 2.0KiB/s|/var/cache/pacman/pkg/powertop-2.4-1-i686.pkg.tar.xz
6a17fd|OK | 3.3KiB/s|/var/cache/pacman/pkg/gnome-online-accounts-3.8.2-2-i686.pkg.tar.xz
821bdf|OK | 2.3KiB/s|/var/cache/pacman/pkg/libreoffice-gnome-4.0.4-2-i686.pkg.tar.xz
0913ae|OK | 2.7KiB/s|/var/cache/pacman/pkg/libgdata-0.13.4-1-i686.pkg.tar.xz
3de57c|OK | 1.8KiB/s|/var/cache/pacman/pkg/xf86-video-intel-2.21.14-1-i686.pkg.tar.xz
3e6846|OK | 3.2KiB/s|/var/cache/pacman/pkg/poppler-0.24.0-1-i686.pkg.tar.xz
4ba70b|OK | 37KiB/s|/var/cache/pacman/pkg/wine-1.7.0-1-i686.pkg.tar.xz
b73c73|OK | 44KiB/s|/var/cache/pacman/pkg/firefox-23.0-1-i686.pkg.tar.xz
78ae6a|OK | 9.6KiB/s|/var/cache/pacman/pkg/libreoffice-calc-4.0.4-2-i686.pkg.tar.xz
91857f|OK | 30KiB/s|/var/cache/pacman/pkg/thunderbird-17.0.8-1-i686.pkg.tar.xz
b4564e|OK | 4.6KiB/s|/var/cache/pacman/pkg/evolution-data-server-3.8.4-2-i686.pkg.tar.xz
11b53d|OK | 4.5KiB/s|/var/cache/pacman/pkg/libreoffice-writer-4.0.4-2-i686.pkg.tar.xz
b54e24|OK | 3.0KiB/s|/var/cache/pacman/pkg/libreoffice-base-4.0.4-2-i686.pkg.tar.xz
02901e|OK | 7.6KiB/s|/var/cache/pacman/pkg/libreoffice-en-US-4.0.4-2-i686.pkg.tar.xz
08be30|OK | 7.2KiB/s|/var/cache/pacman/pkg/smbclient-4.0.8-1-i686.pkg.tar.xz
a9f9e2|OK | 65KiB/s|/var/cache/pacman/pkg/libreoffice-common-4.0.4-2-i686.pkg.tar.xz






Output striped.....

Hope this will help .

Cheers!
Bhaskar

Thursday, March 14, 2013

Git is cool and awesome!!


Using a version control system is a mandatory thing for software developments.I have personally use svn and to be very frank stumble a lot.

But when I look in git , I feel more comfortable and at home kinda feeling.Those of you are serious about it,should look in here to get your hands dirty.

First read it here

If you are impatience one like me then should start using it here
,provided you have little bit of understanding what you are doing.Just to get an feel for it and how it works.

I will update this space if I got time again with my own work...BTW you can visit my nonsense github page if you like...nothing in it...take a look..

https://github.com/unixbhaskar/

Here are few interaction with my git setup for your reference:

To see the branches:

bhaskar@Fedora_09:10:40_Sat Mar 16:~/git-linux> git branch -a
master
* testing
remotes/origin/testing


To see the my commits :


bhaskar@Fedora_09:17:57_Sat Mar 16:~/git-linux> git log -a
commit b8f0d469a3b525a524afc0905129cbb2d2248985
Author: Bhaskar Chowdhury
Date: Mon Feb 25 13:29:01 2013 +0530

adding an pattern file for ignore stuff

commit e9cf99dd57137312fe9da7d34418fbf2409856d3
Author: Bhaskar Chowdhury
Date: Mon Feb 25 12:59:04 2013 +0530

addming git source dir

commit 5e54a5e38848d547c098c829146c014ee9422720
Author: Bhaskar Chowdhury
Date: Fri Feb 22 20:15:04 2013 +0530

modified repo a bit

commit 43e5a004f3d8a56fdaa86103ae56fdc31ab5a60c
Author: Bhaskar Chowdhury
Date: Fri Feb 22 18:00:03 2013 +0530

added repo.rb

commit c7ec4663d18cb06a1179046e70b90d3cef9e8406
Author: Bhaskar Chowdhury
Date: Fri Feb 22 16:16:11 2013 +0530

suffed

commit ea7d06fe2088817b5c6a4c03f63b16956c1da950
Author: Bhaskar Chowdhury
Date: Fri Feb 22 16:15:09 2013 +0530

This is my commit

commit 3e84deef2bb7c25366fa618c0fe52c8c15de5d81
Author: Bhaskar Chowdhury
Date: Fri Feb 22 14:49:43 2013 +0530

This is comitted for testing

commit 2eedaf89ab7207b2e1b19beaedba8f2f0ec2bda7
Author: Bhaskar Chowdhury
Date: Fri Jun 29 12:30:55 2012 +0530

Setup repository


How to change branch:



bhaskar@Fedora_09:19:16_Sat Mar 16:~/git-linux> git status
# On branch testing
nothing to commit, working directory clean
bhaskar@Fedora_09:20:48_Sat Mar 16:~/git-linux> git checkout master
Switched to branch 'master'
bhaskar@Fedora_09:20:56_Sat Mar 16:~/git-linux> git status
# On branch master
nothing to commit, working directory clean


File add and commit to the testing branch:


bhaskar@Fedora_09:23:13_Sat Mar 16:~/git-linux> touch vpn_core
bhaskar@Fedora_09:23:29_Sat Mar 16:~/git-linux> git add vpn_core
bhaskar@Fedora_09:23:33_Sat Mar 16:~/git-linux> git status
# On branch testing
# Changes to be committed:
# (use "git reset HEAD ..." to unstage)
#
# new file: vpn_core
#
bhaskar@Fedora_09:23:54_Sat Mar 16:~/git-linux> git commit
[testing f4853f9] this is for testing purpose with vpn core
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 vpn_core
bhaskar@Fedora_09:25:39_Sat Mar 16:~/git-linux> git status
# On branch testing
nothing to commit, working directory clean
bhaskar@Fedora_09:25:47_Sat Mar 16:~/git-linux> git log
commit f4853f968ea1231cd65864972736c94c938241cd
Author: Bhaskar Chowdhury
Date: Sat Mar 16 09:25:21 2013 +0530

this is for testing purpose with vpn core


Restricting the log to specific number of commits...you might not interested in others:



bhaskar@Fedora_09:29:16_Sat Mar 16:~/git-linux> git log -p -2
commit f4853f968ea1231cd65864972736c94c938241cd
Author: Bhaskar Chowdhury
Date: Sat Mar 16 09:25:21 2013 +0530

this is for testing purpose with vpn core

diff --git a/vpn_core b/vpn_core
new file mode 100644
index 0000000..e69de29

commit b8f0d469a3b525a524afc0905129cbb2d2248985
Author: Bhaskar Chowdhury
Date: Mon Feb 25 13:29:01 2013 +0530

adding an pattern file for ignore stuff

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b25c15b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*~


Elaborate information about commits with stat option with log


bhaskar@Fedora_09:31:37_Sat Mar 16:~/git-linux> git log -p -2 --stat
commit f4853f968ea1231cd65864972736c94c938241cd
Author: Bhaskar Chowdhury
Date: Sat Mar 16 09:25:21 2013 +0530

this is for testing purpose with vpn core
---
vpn_core | 0
1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/vpn_core b/vpn_core
new file mode 100644
index 0000000..e69de29

commit b8f0d469a3b525a524afc0905129cbb2d2248985
Author: Bhaskar Chowdhury
Date: Mon Feb 25 13:29:01 2013 +0530

adding an pattern file for ignore stuff
---
.gitignore | 1 +
1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b25c15b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@


This is cool to see all at once with hash value of commit:


bhaskar@Fedora_09:32:50_Sat Mar 16:~/git-linux> git log --pretty=oneline
f4853f968ea1231cd65864972736c94c938241cd this is for testing purpose with vpn core
b8f0d469a3b525a524afc0905129cbb2d2248985 adding an pattern file for ignore stuff
e9cf99dd57137312fe9da7d34418fbf2409856d3 addming git source dir
5e54a5e38848d547c098c829146c014ee9422720 modified repo a bit
43e5a004f3d8a56fdaa86103ae56fdc31ab5a60c added repo.rb
c7ec4663d18cb06a1179046e70b90d3cef9e8406 suffed
ea7d06fe2088817b5c6a4c03f63b16956c1da950 This is my commit
3e84deef2bb7c25366fa618c0fe52c8c15de5d81 This is comitted for testing
2eedaf89ab7207b2e1b19beaedba8f2f0ec2bda7 Setup repository


With time:



bhaskar@Fedora_09:32:52_Sat Mar 16:~/git-linux> git log --pretty=format:"%h - %an, %ar : %s"
f4853f9 - Bhaskar Chowdhury, 10 minutes ago : this is for testing purpose with vpn core
b8f0d46 - Bhaskar Chowdhury, 3 weeks ago : adding an pattern file for ignore stuff
e9cf99d - Bhaskar Chowdhury, 3 weeks ago : addming git source dir
5e54a5e - Bhaskar Chowdhury, 3 weeks ago : modified repo a bit
43e5a00 - Bhaskar Chowdhury, 3 weeks ago : added repo.rb
c7ec466 - Bhaskar Chowdhury, 3 weeks ago : suffed
ea7d06f - Bhaskar Chowdhury, 3 weeks ago : This is my commit
3e84dee - Bhaskar Chowdhury, 3 weeks ago : This is comitted for testing
2eedaf8 - Bhaskar Chowdhury, 9 months ago : Setup repository



I believe this will kick you for starting!...please consult the link on top of this article to know more about git and get a hand on thing on it.

Hope this will help.

Cheers!
Bhaskar

Wednesday, January 9, 2013

How to enlist installed packages on Gentoo

Okay,I haven't write anything about sometime.So start this year with very rudimentary little info.

Say, I would like to see how many packages are installed in system running Gentoo? So ,how do i do that?

Actually couple of ways to do that.First and foremost thing to do, installed a package called gentoolkit .Once this is installed all the hard is done!

Lets explore it.

bhaskar@GentooLinux_17:52:33_Wed Jan 09:~> sudo genlop -t gentoolkit
Password:
* app-portage/gentoolkit

Wed Aug 17 11:48:34 2011 >>> app-portage/gentoolkit-0.3.0.4
merge time: 10 seconds.

Fri Oct 14 10:34:59 2011 >>> app-portage/gentoolkit-0.3.0.4-r4
merge time: 9 seconds.

Wed Dec 21 10:15:12 2011 >>> app-portage/gentoolkit-0.3.0.4-r5
merge time: 11 seconds.

Fri Jun 15 12:42:17 2012 >>> app-portage/gentoolkit-0.3.0.5
merge time: 23 seconds.

Fri Jul 13 11:15:24 2012 >>> app-portage/gentoolkit-0.3.0.6-r3
merge time: 27 seconds.

Wed Dec 19 12:21:43 2012 >>> app-portage/gentoolkit-0.3.0.7
merge time: 14 seconds.

So, I have installed it.Now this package come with lot of utility tools.One of them is called "equery" and I am gonna use it to show ,how it can be useful in this regards.

bhaskar@GentooLinux_17:52:49_Wed Jan 09:~> sudo equery list "*"
* Searching for * ...
[IP-] [ ] app-accessibility/at-spi2-core-2.6.2-r1:2
[IP-] [ ] app-accessibility/caribou-0.4.5:0
[IP-] [ ] app-admin/apache-tools-2.2.23:0
[IP-] [ ] app-admin/apachetop-0.12.6-r1:0
[IP-] [ ] app-admin/apg-2.3.0b-r5:0
[IP-] [ ] app-admin/drush-5.1:0
[IP-] [ ] app-admin/eselect-1.3.1:0
[IP-] [ ] app-admin/eselect-ctags-1.13:0
[IP-] [ ] app-admin/eselect-esd-20060719:0
[IP-] [ ] app-admin/eselect-fontconfig-1.1:0
[IP-] [ ~] app-admin/eselect-gnome-shell-extensions-20111211:0
[IP-] [ ] app-admin/eselect-mesa-0.0.10:0
[IP-] [ ] app-admin/eselect-opencl-1.1.0-r1:0
[IP-] [ ] app-admin/eselect-opengl-1.2.6.1:0
[IP-] [ ] app-admin/eselect-php-0.6.2:0
[IP-] [ ] app-admin/eselect-pinentry-0.3:0
[IP-] [ ] app-admin/eselect-python-20100321:0
[IP-] [ ] app-admin/eselect-qtgraphicssystem-1.1.1:0
[IP-] [ ] app-admin/eselect-ruby-20100603:0
[IP-] [ ] app-admin/eselect-vi-1.1.7-r1:0
[IP-] [ ] app-admin/eselect-xvmc-0.3:0
[IP-] [ ] app-admin/gam-server-0.1.10-r1:0
[IP-] [ ] app-admin/gamin-0.1.10:0
[IP-] [ ] app-admin/gnome-system-log-3.4.1:0
[IP-] [ ] app-admin/logrotate-3.8.3:0
[IP-] [ ] app-admin/openrc-settingsd-1.0.1:0
[IP-] [ ] app-admin/perl-cleaner-2.7:0
[IP-] [ ] app-admin/pessulus-2.30.4:0
[IP-] [ ] app-admin/puppet-2.7.18:0
[IP-] [ ] app-admin/python-updater-0.10:0
[IP-] [ ] app-admin/sabayon-2.30.1:0
[IP-] [ ] app-admin/sudo-1.8.5_p2:0
[IP-] [ ] app-admin/syslog-ng-3.2.5:0
[IP-] [ ] app-admin/sysstat-10.0.5:0
[IP-] [ ] app-admin/system-config-printer-common-1.3.11-r1:0
[IP-] [ ] app-admin/system-config-printer-gnome-1.3.11:0
[IP-] [ ] app-admin/tripwire-2.4.2.2-r1:0
[IP-] [ ] app-admin/webapp-config-1.50.16-r4:0
[IP-] [ ] app-arch/bzip2-1.0.6-r3:0
[IP-] [ ] app-arch/cabextract-1.4:0
[IP-] [ ] app-arch/cpio-2.11:0
[IP-] [ ] app-arch/file-roller-3.4.2:0
[IP-] [ ] app-arch/gzip-1.5:0
[IP-] [ ] app-arch/libarchive-3.0.4-r1:0
[IP-] [ ] app-arch/pax-3.4.12.16:0
[IP-] [ ] app-arch/rpm2targz-9.0.0.5g:0
[IP-] [ ] app-arch/tar-1.26:0
[IP-] [ ] app-arch/unzip-6.0-r3:0
[IP-] [ ] app-arch/xz-utils-5.0.4:0
[IP-] [ ] app-arch/zip-3.0-r1:0
[IP-] [ ] app-cdr/brasero-3.4.1:0
[IP-] [ ] app-cdr/cdrdao-1.2.3-r1:0
[IP-] [ ] app-cdr/cdrtools-3.00:0
[IP-] [ ] app-cdr/dvd+rw-tools-7.1-r1:0
[IP-] [ ] app-crypt/gcr-3.6.2:0/1
[IP-] [ ] app-crypt/gnupg-2.0.19:0
[IP-] [ ] app-crypt/gpgme-1.3.2:1
[IP-] [ ] app-crypt/mhash-0.9.9.9-r1:0
[IP-] [ ] app-crypt/p11-kit-0.14:0
[IP-] [ ] app-crypt/pinentry-0.8.2:0
[IP-] [ ] app-crypt/seahorse-3.4.1:0
[IP-] [ ] app-dicts/aspell-en-6.0.0:0
[IP-] [ ] app-dicts/gnome-dictionary-3.4.0:0
[IP-] [ ] app-dicts/myspell-en-20081002:0
[IP-] [ ] app-editors/gedit-3.4.2:0
[IP-] [ ] app-editors/nano-2.2.5:0
[IP-] [ ] app-editors/vim-7.3.409:0
[IP-] [ ] app-editors/vim-core-7.3.409:0
[IP-] [ ] app-emulation/libvirt-0.10.2-r3:0
[IP-] [ ] app-emulation/qemu-1.1.2-r2:0
[IP-] [ ] app-emulation/spice-protocol-0.12.2:0
[IP-] [ ] app-emulation/virt-manager-0.9.4:0
[IP-] [ ] app-emulation/virtinst-0.600.3:0
[IP-] [ ] app-emulation/wine-1.4.1:0
[IP-] [ ] app-forensics/chkrootkit-0.49:0
[IP-] [ ] app-forensics/rkhunter-1.4.0:0
[IP-] [ ] app-i18n/enca-1.13-r2:0
[IP-] [ ] app-laptop/radeontool-1.6.3:0
[IP-] [ ] app-misc/ca-certificates-20111025:0
[IP-] [ ] app-misc/editor-wrapper-4:0
[IP-] [ ] app-misc/geoclue-0.12.99:0
[IP-] [ ] app-misc/mime-types-8:0
[IP-] [ ] app-misc/pax-utils-0.4:0
[IP-] [ ] app-misc/screen-4.0.3-r6:0
[IP-] [ ] app-misc/scrub-2.5.1:0
.........

I have snipped the output for ease of viewing.As you can see it nicely enlisting all the package installed in the system.Now a little bit of explanation about the leftmost two square brackets.The first one saying "IP" ,that means it is installed from the portage tree and the next bracket is for slots.

Now you can achieve the same thing other ways to ..like below:

bhaskar@GentooLinux_18:12:20_Wed Jan 09:~> cd /var/db/pkg && ls -d */*
app-accessibility/at-spi2-core-2.6.2-r1 media-libs/libsndfile-1.0.25
app-accessibility/caribou-0.4.5 media-libs/libtheora-1.1.1
app-admin/apache-tools-2.2.23 media-libs/libv4l-0.8.9
app-admin/apachetop-0.12.6-r1 media-libs/libvorbis-1.3.3
app-admin/apg-2.3.0b-r5 media-libs/libvpx-1.0.0
app-admin/drush-5.1 media-libs/libwebp-0.2.1
app-admin/eselect-1.3.1 media-libs/memphis-0.2.3
app-admin/eselect-ctags-1.13 media-libs/mesa-9.0
app-admin/eselect-esd-20060719 media-libs/musicbrainz-3.0.3
app-admin/eselect-fontconfig-1.1 media-libs/musicbrainz-4.0.3
app-admin/eselect-gnome-shell-extensions-20111211 media-libs/openjpeg-1.5.0
app-admin/eselect-mesa-0.0.10 media-libs/raptor-2.0.8
app-admin/eselect-opencl-1.1.0-r1 media-libs/sampleicc-1.6.6
app-admin/eselect-opengl-1.2.6.1 media-libs/sdl-mixer-1.2.11-r1
app-admin/eselect-php-0.6.2 media-libs/speex-1.2_rc1
app-admin/eselect-pinentry-0.3 media-libs/swfdec-0.8.4
app-admin/eselect-python-20100321 media-libs/t1lib-5.1.2
app-admin/eselect-qtgraphicssystem-1.1.1 media-libs/taglib-1.7.2
app-admin/eselect-ruby-20100603 media-libs/tiff-4.0.2-r1
app-admin/eselect-vi-1.1.7-r1 media-libs/vigra-1.7.1-r1
app-admin/eselect-xvmc-0.3 media-libs/vo-aacenc-0.1.2
app-admin/gamin-0.1.10 media-libs/webrtc-audio-processing-0.1
app-admin/gam-server-0.1.10-r1 media-libs/x264-0.0.20111220
app-admin/gnome-system-log-3.4.1 media-libs/xvid-1.3.2

Those of you are curious about all the stuff,please go through this gentoolkit-doc

Hope this will help.

Cheers!
Bhaskar