How to set up Kali Linux on Virtual Box

The purpose of this guide is to show how step by step install Kali Linux on VirtualBox. Kali Linux is very useful tool ūüėČ

1

Open VirtaulBox and create the virtual machine by clicking on: ‘New’ or ‘CTRL + N’. When new window appears choose:

  • name for your virtual machine
  • type and version on an operating system: Linux, Debian(32 bit)/ Debian(64 bit)

2

Set memory at least 512MB. I set more than 700MB but after first run always change to a higher number. It always depends on how memory you have on a host machine.

3

Select option: ‘Create a virtual disk now’ and then click on: ‘Create’.

4

On this window, you can  select a few options, but I recommend to choose VMDK. Other options:

  • VDI ¬†(VirtualBox Disk Image) – virtual disk image file in VirtaulBox systems
  • VHD (Virtual Hard Disk) – virtual hard disk drive, VHDs are implemented as files that reside on the native host file system, used by Microsoft
  • HDD (Parallels Hard Disk) – format used by commercial software “Parallels Workstation” Company “Parallels, Inc.”.
  • QED (QEMU enhanced disk) –¬†format-specific virtual machine (KVM) based on the Linux kernel
  • QCOW (QEMU Copy-On-Write) –¬†format used to obtain virtual storage space. This mechanism allows for a significant reduction in disk space requirements in a situation where the same image of the hard disk is used by many virtual machines and helps to increase productivity, as it reads from the disk is stored in the cache located in the RAM and the memory serves request readings from other virtual machines.

5

Select: ‘Dynamically allocated’. This option allows changing memory according to the requirements.

6

In: ‘Processors’ option select: ‘Enable PAE/NX’.¬†Reserving for 32-bit memory larger than 4 GB require the use of Enable PAE / NX.

8

After starting virtual machine select locations of *.iso file with Kali Linux.

9

Select: ‘Install’ option and press ENTER key.

11

Select location.

12

Choose keyboard.

14

In this step yu can choose: ‘Continue’.

15

This is optional. You can skip this option.

16

Set up password.

17

Re-enter password.

18

Choose: ‘Guided – use entire disk’.

19

Confirm the disk partition.

20

Select partition schema. Choose first option.

21

Select: ‘Yes’ option to write changes to disk.

22

System installation starts. In the middle of the process, two windows will appear.  First with network mirror and second with installing the GRUB boot loader installation on a hard drive.

1

After reboot enter username as: ‘root’ and password configured previously.

2

 If you have some problems with installation, please leave comment below.

Reading logs with ADB: the most useful commands

Reading logs during testing Android applications often force developer or tester to use appropriate tools. One of them is: Android Device Bridge. ADB comes as a part of the standard Android SDK, it provides a terminal-based interface for interacting with your devices with Android file system. Below I added some useful commands that every tester, programmer use during deal with applications every day.

 

Useful commands:

adb locat

– access to Android device logs, direct output to the console

adb logcat -d > [filename]

– this command allows to save logs in a file name you have specified, for example: abd logcat -d Users/user/storage

adb logcat -c - all

Рlogs on devices are erased, after that you are able to grab logs without unnecessary data

adb logcat -v time

– display logs with specified time

adb reboot

– reboot device

adb start-server

– ensure that there is a server running

adb kill-server

– kill the server if it is running

adb push app /system/sd/app

– push apps from comupter onto device

adb get-state

– prints: offline | bootloader | device

adb get-serialno

– prints: serial-number

adb status-window

– continuously print device status for a specified device

adb remount

– remounts the /system partition on the device read-write

adb reboot [bootloader|recovery]

– reboots the device, optionally into the bootloader or recovery program

adb tcpip

– restarts the adbd daemon listening on TCP on the specified port

adb jdwp

– list PIDs of processes hosting a JDWP transport

adb ppp  [parameters]

– Run PPP over USB.
Note: you should not automatically start a PPP connection. refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1 [parameters] – Eg. defaultroute debug dump local notty usepeerdns

adb -s [yourdeviceserialnumberhere] shell

– above command will start an interactive shell from your machine, but running on your device

adb shell rm -r /system/sd/app
adb shell rm -r /system/sd/app-private

– deleting existing apps on SD

adb bugreport

– return all information from the device that should be included in a bug report

fastboot oem unlock

– unlock bootloader, making root access possible

fastboot flash recovery

– flash a custom recovery image to your phone

am start -n com.package.name/com.package.name.ActivityName

or:

adb shell am start -n com.package.name/.ActivityName

– starting application using adb tools


Reference:



100 Days of Code – challenge

About 100 days of code first time I read on¬†this blog. Then I start to read more, and I find John Rasing blog and Richard Littauer post on Medium. I think it’s a great idea. Basically, I need some challenge, because I a lite bit lazy in recent times and my learning and coding progress is a bit pure.

I put below screen picture from my current GitHub account:

Zrzut ekranu 2016-04-10 o 23.36.36

As you can see, there is no great progress for a few days. Longest streak took 7 days, contributions in total : 99 repos.

Rules for 100 days of code are simple:

  1. writing  code every single day
  2. all code must be written before midnight
  3. code must be up on GitHub
  4. written code must be useful (comments, reformatting, refactoring does not count)
  5. written code can’t be related to work, must be created¬†in spare time, after hours (probably during nights, a day has only 24 hours)

Personally, I think that with coding every day is like a writing every day for the professional¬†writer, it’s a big part of his life. The same like for example skilled craftsman who sculpts something in wood, inch by inch, ¬†minute by minute, day by day …

I know that will not be easy to find a balance between work/life and side projects. Probably I will find some tools/apps to better manage my time and be more productive.

Something that I afraid is to stick with some problem to solve for a long of time and don’t have an idea to write a solution.

What I hope to achieve ?  Programming becomes a daily habit and hopes to continue it as long as I can.

I start from today ūüėČ



How to set up system on Raspberry Pi 2

The first thing that you do after purchase raspberry pi is to set up a system. Without it, electronic board is just a useless piece of laminate. There are few simple steps to run your favorite system on raspberry and a lot of systems to try and experiment.

Operating systems such as recommended: Raspbian, RISC OS, Windows 10 IoT core, Openelec, OSMC, and Android come ready to run on the raspberry pi board.

First, we should download an image from here. I recommend downloading Raspbian. Besides whichever operating system we will download, a process of writing an image on SD card is the same. An SD card should be blank and formatted as FAT and have a capacity of about 4 GB or more.

NOTE: If SD card has a capacity of 32GB (i.e. 64GB and above), then see the separate SDXC formatting instructions.

formatter

I use SD Formatter to erase SD card and setting up FAT partition. I strongly advise changing options to: Full(Erase) and On. This will ensure that the full capacity of the storage card will be available. The process of formatting SD card takes a while.

formatter02

After that, we can use Win32DiskImager to write an image. Sometimes in Windows system, Win32DiscImager must be run with administrator privileges.

win32_01

Select SD card, browse image file and click on Wite button to start the install process. Win32DriveImager will inform when the data has been written. After that, we can plug in SD card to raspberry pi board.

After first run raspberry will load and display GUI desktop which means that we must run terminal and type:

sudo raspi-config

to run boot options. Navigate to ssh and press Enter key to select: Enable or disable ssh server. To log in from ssh is good to run terminal on our host system (option for Linux and OSx) or user for example mRemote tool to remote login into raspberry pi. I choose ssh from OSx. To log in using ssh we will use:

ssh pi@<ip adress of raspberry pi>

after that request for login password is displayed. Standard password for login is:

raspberry

When we type correct password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Apr 3 16:52:30 2016 from 192.168.0.8

From this point, we can do whatever we want, starting with updates, install new software, write scripts. hacking networks, and so on. Of course, some of our actions will need additional equipment.

First update that can we do:

sudo apt-get update

 

Output:

Get:1 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org jessie InRelease [13.2 kB] 
Get:3 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,963 kB]
Get:4 http://archive.raspberrypi.org jessie/main armhf Packages [144 kB]
Get:5 http://archive.raspberrypi.org jessie/ui armhf Packages [8,311 B] 
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB 
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en 
Get:6 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
Get:7 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]
Get:8 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en 
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB 
Ign http://mirrordirector.raspbian.org jessie/main Translation-en 
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB 
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en 
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB 
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en 
Fetched 9,252 kB in 21s (423 kB/s) 
Reading package lists... Done
pi@raspberrypi:~ $

In this case:

apt-get update

allows to download the package lists from the repositories and “updates” them to get information on the newest versions of packages and their dependencies.

apt-get upgrade

will fetch new versions of packages existing on the machine if APT knows about these new versions.

pi@raspberrypi:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
pypy-upstream raspberrypi-ui-mods
The following packages will be upgraded:
apt apt-utils git git-core git-man gnupg gpgv gtk2-engines-clearlookspix gtk2-engines-pixbuf initramfs-tools libapt-inst1.5 libapt-pkg4.12 libavcodec56 libavformat56 libavresample2 libavutil54
libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libcairo-gobject2 libcairo2 libfftw3-double3 libfftw3-single3 libgif4 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgudev-1.0-0 libhogweed2 libimlib2
libnettle4 libpam-systemd libpcre3 librsvg2-2 librsvg2-common libsndfile1 libsrtp0 libswscale3 libsystemd0 libudev1 libx264-142 locales lxpanel lxpanel-data multiarch-support nodered
raspberrypi-net-mods raspberrypi-sys-mods raspi-config rc-gui ruby systemd systemd-sysv tzdata udev
57 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 48.7 MB of archives.
After this operation, 10.8 MB of additional disk space will be used.
Do you want to continue? [Y/n]

After selecting: ‘y’ and pressing Enter key, list of packages is updated:

Get:1 http://archive.raspberrypi.org/debian/ jessie/ui gtk2-engines-clearlookspix armhf 1:2.20.3 [66.7 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libc6-dev armhf 2.19-18+deb8u4 [1,723 kB]
Get:3 http://archive.raspberrypi.org/debian/ jessie/ui lxpanel armhf 0.7.2-1+rpi6 [192 kB] 
Get:4 http://archive.raspberrypi.org/debian/ jessie/ui lxpanel-data all 0.7.2-1+rpi6 [1,066 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libc-dev-bin armhf 2.19-18+deb8u4 [231 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main libc-bin armhf 2.19-18+deb8u4 [1,205 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main libc6-dbg armhf 2.19-18+deb8u4 [3,181 kB]
Get:8 http://archive.raspberrypi.org/debian/ jessie/main nodered armhf 0.13.4 [5,270 kB] 
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main libc6 armhf 2.19-18+deb8u4 [4,081 kB]
Get:10 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-sys-mods armhf 20160321+1 [4,462 B]
Get:11 http://archive.raspberrypi.org/debian/ jessie/main raspi-config all 20160322 [16.0 kB]
Get:12 http://archive.raspberrypi.org/debian/ jessie/ui rc-gui armhf 0.7-1 [27.4 kB]
Get:13 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-net-mods armhf 1.2.2 [2,358 B]
Get:14 http://mirrordirector.raspbian.org/raspbian/ jessie/main libapt-pkg4.12 armhf 1.0.9.8.3 [713 kB] 
Get:15 http://mirrordirector.raspbian.org/raspbian/ jessie/main gpgv armhf 1.4.18-7+deb8u1 [177 kB] 
Get:16 http://mirrordirector.raspbian.org/raspbian/ jessie/main gnupg armhf 1.4.18-7+deb8u1 [1,069 kB] 
Get:17 http://mirrordirector.raspbian.org/raspbian/ jessie/main git-core all 1:2.1.4-2.1+deb8u2 [1,496 B] 
Get:18 http://mirrordirector.raspbian.org/raspbian/ jessie/main apt armhf 1.0.9.8.3 [1,066 kB] 
Get:19 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpcre3 armhf 2:8.35-3.3+deb8u4 [301 kB] 
Get:20 http://mirrordirector.raspbian.org/raspbian/ jessie/main libudev1 armhf 215-17+deb8u4 [52.0 kB] 
Get:21 http://mirrordirector.raspbian.org/raspbian/ jessie/main udev armhf 215-17+deb8u4 [850 kB] 
Get:22 http://mirrordirector.raspbian.org/raspbian/ jessie/main initramfs-tools all 0.120+deb8u1 [96.2 kB] 
Get:23 http://mirrordirector.raspbian.org/raspbian/ jessie/main libsystemd0 armhf 215-17+deb8u4 [84.3 kB] 
Get:24 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpam-systemd armhf 215-17+deb8u4 [112 kB] 
Get:25 http://mirrordirector.raspbian.org/raspbian/ jessie/main systemd armhf 215-17+deb8u4 [2,216 kB] 
Get:26 http://mirrordirector.raspbian.org/raspbian/ jessie/main systemd-sysv armhf 215-17+deb8u4 [35.1 kB] 
Get:27 http://mirrordirector.raspbian.org/raspbian/ jessie/main libapt-inst1.5 armhf 1.0.9.8.3 [166 kB] 
Get:28 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavutil54 armhf 6:11.6-1~deb8u1+rpi1 [160 kB] 
Get:29 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavresample2 armhf 6:11.6-1~deb8u1+rpi1 [96.7 kB] 
Get:30 http://mirrordirector.raspbian.org/raspbian/ jessie/main libx264-142 armhf 2:0.142.2431+gita5831aa-1+rpi2 [763 kB] 
Get:31 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavcodec56 armhf 6:11.6-1~deb8u1+rpi1 [4,490 kB] 
Get:32 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavformat56 armhf 6:11.6-1~deb8u1+rpi1 [853 kB] 
Get:33 http://mirrordirector.raspbian.org/raspbian/ jessie/main libcairo2 armhf 1.14.0-2.1+deb8u1 [662 kB] 
Get:34 http://mirrordirector.raspbian.org/raspbian/ jessie/main libcairo-gobject2 armhf 1.14.0-2.1+deb8u1 [304 kB] 
Get:35 http://mirrordirector.raspbian.org/raspbian/ jessie/main libfftw3-double3 armhf 3.3.4-2+rvt [434 kB] 
Get:36 http://mirrordirector.raspbian.org/raspbian/ jessie/main libfftw3-single3 armhf 3.3.4-2+rvt [630 kB] 
Get:37 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgif4 armhf 4.1.6-11+deb8u1 [38.0 kB] 
Get:38 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgtk2.0-common all 2.24.25-3+deb8u1 [3,185 kB] 
Get:39 http://mirrordirector.raspbian.org/raspbian/ jessie/main gtk2-engines-pixbuf armhf 2.24.25-3+deb8u1 [542 kB] 
Get:40 http://mirrordirector.raspbian.org/raspbian/ jessie/main librsvg2-common armhf 2.40.5-1+deb8u1 [170 kB] 
Get:41 http://mirrordirector.raspbian.org/raspbian/ jessie/main librsvg2-2 armhf 2.40.5-1+deb8u1 [231 kB] 
Get:42 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgtk2.0-bin armhf 2.24.25-3+deb8u1 [534 kB] 
Get:43 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgtk2.0-0 armhf 2.24.25-3+deb8u1 [2,015 kB] 
Get:44 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgudev-1.0-0 armhf 215-17+deb8u4 [39.2 kB] 
Get:45 http://mirrordirector.raspbian.org/raspbian/ jessie/main libhogweed2 armhf 2.7.1-5+deb8u1 [117 kB] 
Get:46 http://mirrordirector.raspbian.org/raspbian/ jessie/main libnettle4 armhf 2.7.1-5+deb8u1 [178 kB] 
Get:47 http://mirrordirector.raspbian.org/raspbian/ jessie/main libsndfile1 armhf 1.0.25-9.1+deb8u1 [204 kB] 
Get:48 http://mirrordirector.raspbian.org/raspbian/ jessie/main libswscale3 armhf 6:11.6-1~deb8u1+rpi1 [156 kB] 
Get:49 http://mirrordirector.raspbian.org/raspbian/ jessie/main multiarch-support armhf 2.19-18+deb8u4 [180 kB] 
Get:50 http://mirrordirector.raspbian.org/raspbian/ jessie/main tzdata all 2016c-0+deb8u1 [182 kB] 
Get:51 http://mirrordirector.raspbian.org/raspbian/ jessie/main apt-utils armhf 1.0.9.8.3 [354 kB] 
Get:52 http://mirrordirector.raspbian.org/raspbian/ jessie/main locales all 2.19-18+deb8u4 [3,945 kB] 
Get:53 http://mirrordirector.raspbian.org/raspbian/ jessie/main git-man all 1:2.1.4-2.1+deb8u2 [1,267 kB] 
Get:54 http://mirrordirector.raspbian.org/raspbian/ jessie/main git armhf 1:2.1.4-2.1+deb8u2 [2,725 kB] 
Get:55 http://mirrordirector.raspbian.org/raspbian/ jessie/main libimlib2 armhf 1.4.6-2+deb8u1 [149 kB] 
Get:56 http://mirrordirector.raspbian.org/raspbian/ jessie/main libsrtp0 armhf 1.4.5~20130609~dfsg-1.1+deb8u1 [58.5 kB] 
Get:57 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby all 1:2.1.5+deb8u2 [9,688 B] 
Fetched 48.7 MB in 19s (2,524 kB/s) 
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 126384 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.19-18+deb8u4_armhf.deb ...
Unpacking libc6-dev:armhf (2.19-18+deb8u4) over (2.19-18+deb8u3) ...
Preparing to unpack .../libc-dev-bin_2.19-18+deb8u4_armhf.deb ...
Unpacking libc-dev-bin (2.19-18+deb8u4) over (2.19-18+deb8u3) ...
Preparing to unpack .../libc-bin_2.19-18+deb8u4_armhf.deb ...
Unpacking libc-bin (2.19-18+deb8u4) over (2.19-18+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libc-bin (2.19-18+deb8u4) ...
(Reading database ... 126383 files and directories currently installed.)
Preparing to unpack .../libc6-dbg_2.19-18+deb8u4_armhf.deb ...
Unpacking libc6-dbg:armhf (2.19-18+deb8u4) over (2.19-18+deb8u3) ...
Preparing to unpack .../libc6_2.19-18+deb8u4_armhf.deb ...
Unpacking libc6:armhf (2.19-18+deb8u4) over (2.19-18+deb8u3) ...
Setting up libc6:armhf (2.19-18+deb8u4) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
(Reading database ... 126383 files and directories currently installed.)
Preparing to unpack .../libapt-pkg4.12_1.0.9.8.3_armhf.deb ...
Unpacking libapt-pkg4.12:armhf (1.0.9.8.3) over (1.0.9.8.2) ...
Setting up libapt-pkg4.12:armhf (1.0.9.8.3) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
(Reading database ... 126383 files and directories currently installed.)
Preparing to unpack .../gpgv_1.4.18-7+deb8u1_armhf.deb ...
Unpacking gpgv (1.4.18-7+deb8u1) over (1.4.18-7) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up gpgv (1.4.18-7+deb8u1) ...
(Reading database ... 126383 files and directories currently installed.)
Preparing to unpack .../gnupg_1.4.18-7+deb8u1_armhf.deb ...
Unpacking gnupg (1.4.18-7+deb8u1) over (1.4.18-7) ...
Processing triggers for install-info (5.2.0.dfsg.1-6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up gnupg (1.4.18-7+deb8u1) ...
(Reading database ... 126383 files and directories currently installed.)
Preparing to unpack .../apt_1.0.9.8.3_armhf.deb ...
Unpacking apt (1.0.9.8.3) over (1.0.9.8.2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up apt (1.0.9.8.3) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
(Reading database ... 126383 files and directories currently installed.)
Preparing to unpack .../libpcre3_2%3a8.35-3.3+deb8u4_armhf.deb ...
Unpacking libpcre3:armhf (2:8.35-3.3+deb8u4) over (2:8.35-3.3+deb8u2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libpcre3:armhf (2:8.35-3.3+deb8u4) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
(Reading database ... 126383 files and directories currently installed.)
Preparing to unpack .../libudev1_215-17+deb8u4_armhf.deb ...
Unpacking libudev1:armhf (215-17+deb8u4) over (215-17+deb8u3) ...
Setting up libudev1:armhf (215-17+deb8u4) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
(Reading database ... 126383 files and directories currently installed.)
Preparing to unpack .../udev_215-17+deb8u4_armhf.deb ...
Unpacking udev (215-17+deb8u4) over (215-17+deb8u3) ...
Processing triggers for systemd (215-17+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up udev (215-17+deb8u4) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.120) ...
(Reading database ... 126383 files and directories currently installed.)
Preparing to unpack .../initramfs-tools_0.120+deb8u1_all.deb ...
Unpacking initramfs-tools (0.120+deb8u1) over (0.120) ...
Preparing to unpack .../libsystemd0_215-17+deb8u4_armhf.deb ...
Unpacking libsystemd0:armhf (215-17+deb8u4) over (215-17+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libsystemd0:armhf (215-17+deb8u4) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
(Reading database ... 126384 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_215-17+deb8u4_armhf.deb ...
Unpacking libpam-systemd:armhf (215-17+deb8u4) over (215-17+deb8u3) ...
Preparing to unpack .../systemd_215-17+deb8u4_armhf.deb ...
Unpacking systemd (215-17+deb8u4) over (215-17+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Setting up systemd (215-17+deb8u4) ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Failed to execute operation: File exists
(Reading database ... 126384 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_215-17+deb8u4_armhf.deb ...
Unpacking systemd-sysv (215-17+deb8u4) over (215-17+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up systemd-sysv (215-17+deb8u4) ...
(Reading database ... 126384 files and directories currently installed.)
Preparing to unpack .../libapt-inst1.5_1.0.9.8.3_armhf.deb ...
Unpacking libapt-inst1.5:armhf (1.0.9.8.3) over (1.0.9.8.2) ...
Preparing to unpack .../libavutil54_6%3a11.6-1~deb8u1+rpi1_armhf.deb ...
Unpacking libavutil54:armhf (6:11.6-1~deb8u1+rpi1) over (6:11.4-1~deb8u1+rpi1) ...
Preparing to unpack .../libavresample2_6%3a11.6-1~deb8u1+rpi1_armhf.deb ...
Unpacking libavresample2:armhf (6:11.6-1~deb8u1+rpi1) over (6:11.4-1~deb8u1+rpi1) ...
Preparing to unpack .../libx264-142_2%3a0.142.2431+gita5831aa-1+rpi2_armhf.deb ...
Unpacking libx264-142:armhf (2:0.142.2431+gita5831aa-1+rpi2) over (2:0.142.2431+gita5831aa-1+rpi1+b1) ...
Preparing to unpack .../libavcodec56_6%3a11.6-1~deb8u1+rpi1_armhf.deb ...
Unpacking libavcodec56:armhf (6:11.6-1~deb8u1+rpi1) over (6:11.4-1~deb8u1+rpi1) ...
Preparing to unpack .../libavformat56_6%3a11.6-1~deb8u1+rpi1_armhf.deb ...
Unpacking libavformat56:armhf (6:11.6-1~deb8u1+rpi1) over (6:11.4-1~deb8u1+rpi1) ...
Preparing to unpack .../libcairo2_1.14.0-2.1+deb8u1_armhf.deb ...
Unpacking libcairo2:armhf (1.14.0-2.1+deb8u1) over (1.14.0-2.1rpi1rpi1g) ...
Preparing to unpack .../libcairo-gobject2_1.14.0-2.1+deb8u1_armhf.deb ...
Unpacking libcairo-gobject2:armhf (1.14.0-2.1+deb8u1) over (1.14.0-2.1rpi1rpi1g) ...
Preparing to unpack .../libfftw3-double3_3.3.4-2+rvt_armhf.deb ...
Unpacking libfftw3-double3:armhf (3.3.4-2+rvt) over (3.3.4-2+rpi1) ...
Preparing to unpack .../libfftw3-single3_3.3.4-2+rvt_armhf.deb ...
Unpacking libfftw3-single3:armhf (3.3.4-2+rvt) over (3.3.4-2+rpi1) ...
Preparing to unpack .../libgif4_4.1.6-11+deb8u1_armhf.deb ...
Unpacking libgif4:armhf (4.1.6-11+deb8u1) over (4.1.6-11) ...
Preparing to unpack .../libgtk2.0-common_2.24.25-3+deb8u1_all.deb ...
Unpacking libgtk2.0-common (2.24.25-3+deb8u1) over (2.24.25-3) ...
Preparing to unpack .../gtk2-engines-pixbuf_2.24.25-3+deb8u1_armhf.deb ...
Unpacking gtk2-engines-pixbuf:armhf (2.24.25-3+deb8u1) over (2.24.25-3) ...
Preparing to unpack .../librsvg2-common_2.40.5-1+deb8u1_armhf.deb ...
Unpacking librsvg2-common:armhf (2.40.5-1+deb8u1) over (2.40.5-1) ...
Preparing to unpack .../librsvg2-2_2.40.5-1+deb8u1_armhf.deb ...
Unpacking librsvg2-2:armhf (2.40.5-1+deb8u1) over (2.40.5-1) ...
Preparing to unpack .../libgtk2.0-bin_2.24.25-3+deb8u1_armhf.deb ...
Unpacking libgtk2.0-bin (2.24.25-3+deb8u1) over (2.24.25-3) ...
Preparing to unpack .../libgtk2.0-0_2.24.25-3+deb8u1_armhf.deb ...
Unpacking libgtk2.0-0:armhf (2.24.25-3+deb8u1) over (2.24.25-3) ...
Preparing to unpack .../libgudev-1.0-0_215-17+deb8u4_armhf.deb ...
Unpacking libgudev-1.0-0:armhf (215-17+deb8u4) over (215-17+deb8u3) ...
Preparing to unpack .../libhogweed2_2.7.1-5+deb8u1_armhf.deb ...
Unpacking libhogweed2:armhf (2.7.1-5+deb8u1) over (2.7.1-5) ...
Preparing to unpack .../libnettle4_2.7.1-5+deb8u1_armhf.deb ...
Unpacking libnettle4:armhf (2.7.1-5+deb8u1) over (2.7.1-5) ...
Preparing to unpack .../libsndfile1_1.0.25-9.1+deb8u1_armhf.deb ...
Unpacking libsndfile1:armhf (1.0.25-9.1+deb8u1) over (1.0.25-9.1) ...
Preparing to unpack .../libswscale3_6%3a11.6-1~deb8u1+rpi1_armhf.deb ...
Unpacking libswscale3:armhf (6:11.6-1~deb8u1+rpi1) over (6:11.4-1~deb8u1+rpi1) ...
Preparing to unpack .../multiarch-support_2.19-18+deb8u4_armhf.deb ...
Unpacking multiarch-support (2.19-18+deb8u4) over (2.19-18+deb8u3) ...
Processing triggers for libgdk-pixbuf2.0-0:armhf (2.31.1-2+deb8u4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up multiarch-support (2.19-18+deb8u4) ...
(Reading database ... 126397 files and directories currently installed.)
Preparing to unpack .../tzdata_2016c-0+deb8u1_all.deb ...
Unpacking tzdata (2016c-0+deb8u1) over (2015g-0+deb8u1) ...
Setting up tzdata (2016c-0+deb8u1) ...
Current default time zone: 'Etc/UTC'
Local time is now: Sun Apr 3 18:30:49 UTC 2016.
Universal Time is now: Sun Apr 3 18:30:49 UTC 2016.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
(Reading database ... 126406 files and directories currently installed.)
Preparing to unpack .../apt-utils_1.0.9.8.3_armhf.deb ...
Unpacking apt-utils (1.0.9.8.3) over (1.0.9.8.2) ...
Preparing to unpack .../locales_2.19-18+deb8u4_all.deb ...
Unpacking locales (2.19-18+deb8u4) over (2.19-18+deb8u3) ...
Preparing to unpack .../git-man_1%3a2.1.4-2.1+deb8u2_all.deb ...
Unpacking git-man (1:2.1.4-2.1+deb8u2) over (1:2.1.4-2.1+deb8u1) ...
Preparing to unpack .../git_1%3a2.1.4-2.1+deb8u2_armhf.deb ...
Unpacking git (1:2.1.4-2.1+deb8u2) over (1:2.1.4-2.1+deb8u1) ...
Preparing to unpack .../git-core_1%3a2.1.4-2.1+deb8u2_all.deb ...
Unpacking git-core (1:2.1.4-2.1+deb8u2) over (1:2.1.4-2.1+deb8u1) ...
Preparing to unpack .../gtk2-engines-clearlookspix_1%3a2.20.3_armhf.deb ...
Unpacking gtk2-engines-clearlookspix:armhf (1:2.20.3) over (1:2.20.2-3+rpi1) ...
Preparing to unpack .../libimlib2_1.4.6-2+deb8u1_armhf.deb ...
Unpacking libimlib2 (1.4.6-2+deb8u1) over (1.4.6-2) ...
Preparing to unpack .../libsrtp0_1.4.5~20130609~dfsg-1.1+deb8u1_armhf.deb ...
Unpacking libsrtp0 (1.4.5~20130609~dfsg-1.1+deb8u1) over (1.4.5~20130609~dfsg-1.1) ...
Preparing to unpack .../lxpanel_0.7.2-1+rpi6_armhf.deb ...
Unpacking lxpanel (0.7.2-1+rpi6) over (0.7.2-1+rpi4) ...
Preparing to unpack .../lxpanel-data_0.7.2-1+rpi6_all.deb ...
Unpacking lxpanel-data (0.7.2-1+rpi6) over (0.7.2-1+rpi4) ...
Preparing to unpack .../nodered_0.13.4_armhf.deb ...
Unpacking nodered (0.13.4) over (0.13.3) ...
Preparing to unpack .../raspberrypi-sys-mods_20160321+1_armhf.deb ...
Unpacking raspberrypi-sys-mods (20160321+1) over (20160113) ...
Preparing to unpack .../raspi-config_20160322_all.deb ...
Unpacking raspi-config (20160322) over (20160225) ...
Preparing to unpack .../rc-gui_0.7-1_armhf.deb ...
Unpacking rc-gui (0.7-1) over (0.6-1) ...
Preparing to unpack .../ruby_1%3a2.1.5+deb8u2_all.deb ...
Unpacking ruby (1:2.1.5+deb8u2) over (1:2.1.5+deb8u1) ...
Preparing to unpack .../raspberrypi-net-mods_1.2.2_armhf.deb ...
Unpacking raspberrypi-net-mods (1.2.2) over (1.2.1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for gnome-menus (3.13.3-6) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for gnome-icon-theme (3.12.0-1) ...
Processing triggers for systemd (215-17+deb8u4) ...
Setting up libc-dev-bin (2.19-18+deb8u4) ...
Setting up libc6-dev:armhf (2.19-18+deb8u4) ...
Setting up libc6-dbg:armhf (2.19-18+deb8u4) ...
Setting up initramfs-tools (0.120+deb8u1) ...
update-initramfs: deferring update (trigger activated)
Setting up libpam-systemd:armhf (215-17+deb8u4) ...
Setting up libapt-inst1.5:armhf (1.0.9.8.3) ...
Setting up libavutil54:armhf (6:11.6-1~deb8u1+rpi1) ...
Setting up libavresample2:armhf (6:11.6-1~deb8u1+rpi1) ...
Setting up libx264-142:armhf (2:0.142.2431+gita5831aa-1+rpi2) ...
Setting up libavcodec56:armhf (6:11.6-1~deb8u1+rpi1) ...
Setting up libavformat56:armhf (6:11.6-1~deb8u1+rpi1) ...
Setting up libcairo2:armhf (1.14.0-2.1+deb8u1) ...
Setting up libcairo-gobject2:armhf (1.14.0-2.1+deb8u1) ...
Setting up libfftw3-double3:armhf (3.3.4-2+rvt) ...
Setting up libfftw3-single3:armhf (3.3.4-2+rvt) ...
Setting up libgif4:armhf (4.1.6-11+deb8u1) ...
Setting up libgtk2.0-common (2.24.25-3+deb8u1) ...
Setting up libgtk2.0-0:armhf (2.24.25-3+deb8u1) ...
Setting up gtk2-engines-pixbuf:armhf (2.24.25-3+deb8u1) ...
Setting up librsvg2-2:armhf (2.40.5-1+deb8u1) ...
Setting up librsvg2-common:armhf (2.40.5-1+deb8u1) ...
Setting up libgtk2.0-bin (2.24.25-3+deb8u1) ...
Setting up libgudev-1.0-0:armhf (215-17+deb8u4) ...
Setting up libnettle4:armhf (2.7.1-5+deb8u1) ...
Setting up libhogweed2:armhf (2.7.1-5+deb8u1) ...
Setting up libsndfile1:armhf (1.0.25-9.1+deb8u1) ...
Setting up libswscale3:armhf (6:11.6-1~deb8u1+rpi1) ...
Setting up apt-utils (1.0.9.8.3) ...
Setting up locales (2.19-18+deb8u4) ...
Generating locales (this might take a while)...
en_GB.UTF-8... done
Generation complete.
Setting up git-man (1:2.1.4-2.1+deb8u2) ...
Setting up git (1:2.1.4-2.1+deb8u2) ...
Setting up git-core (1:2.1.4-2.1+deb8u2) ...
Setting up gtk2-engines-clearlookspix:armhf (1:2.20.3) ...
Setting up libimlib2 (1.4.6-2+deb8u1) ...
Setting up libsrtp0 (1.4.5~20130609~dfsg-1.1+deb8u1) ...
Setting up lxpanel-data (0.7.2-1+rpi6) ...
Setting up lxpanel (0.7.2-1+rpi6) ...
Setting up nodered (0.13.4) ...
Setting up raspberrypi-sys-mods (20160321+1) ...
Installing new version of config file /etc/udev/rules.d/99-com.rules ...
Fixing file capabilities...
Adjusting cmdline.txt...
Setting up raspi-config (20160322) ...
Setting up rc-gui (0.7-1) ...
Setting up ruby (1:2.1.5+deb8u2) ...
Setting up raspberrypi-net-mods (1.2.2) ...
Processing triggers for initramfs-tools (0.120+deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Processing triggers for libgdk-pixbuf2.0-0:armhf (2.31.1-2+deb8u4) ...

In this few steps, we set up an environment on our raspberry pi. If you want to install some more software you can easily install it from console, the same way like in Linux distribution.


Reference: