ArchLinux: Running jenkins as another user

To minimize maintenance I wanted to run Jenkins as a different user that I already use for other services, as to avoid permission control hell and ssh-config hell as well.

So here's what I did:

 

Let's say the user you want is called "johndoe" and it has an userid=2000 and groupid=2004 in your box, do this:

1. Edit /etc/password

jenkins:x:2000:2004::/var/lib/jenkins:/bin/bash

 

 

2. Change permissions so they reflect the new ID

 

chown jenkins:jenkins -Rv /var/cache/jenkins/
chown -Rv jenkins:jenkins /var/lib/enkins/

 

 

I wrote this last minute and after altering things for the second time, (things got a bit reverted after upgrading Jenkins in my Archlinux home server); so let me know if this doesn't work for you and I'll check.

 

 

Archlinux: Setting up SALT Stack

Setup a salt stack server to keep all your computers properly configure when you reformat them:

 

 

1. Install SALT on a box that is accessible from anywhere that will become your salt master:

 

# pacman -S salt
resolving dependencies...
looking for inter-conflicts...

Packages (19): apache-libcloud-0.14.1-1  libsodium-0.5.0-1  libxslt-1.1.28-3  libyaml-0.1.6-1  python2-crypto-2.6.1-2  python2-jinja-2.7.3-1 python2-lxml-3.3.5-1  python2-m2crypto-0.22.3-1  python2-markupsafe-0.23-1  python2-msgpack-0.4.2-1  python2-psutil-2.1.1-1 python2-pyzmq-14.3.0-1  python2-requests-2.3.0-1  python2-setuptools-4.0.1-1  python2-systemd-212-2  python2-yaml-3.11-1  sshpass-1.05-1 zeromq-4.0.4-3  salt-2014.1.4-1

Total Download Size:    6.72 MiB
Total Installed Size:   43.49 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
 python2-crypto-2.6.1-2-x86_64                                     374.6 KiB   916K/s 00:00 [######################################################] 100%
 python2-setuptools-4.0.1-1-any                                    319.4 KiB  3.80M/s 00:00 [######################################################] 100%
 python2-markupsafe-0.23-1-x86_64                                   23.2 KiB  0.00B/s 00:00 [######################################################] 100%
 libxslt-1.1.28-3-x86_64                                           352.2 KiB  4.25M/s 00:00 [######################################################] 100%
 python2-lxml-3.3.5-1-x86_64                                       659.8 KiB  7.76M/s 00:00 [######################################################] 100%
 python2-jinja-2.7.3-1-any                                         255.6 KiB   250M/s 00:00 [######################################################] 100%
 python2-m2crypto-0.22.3-1-x86_64                                  173.6 KiB  0.00B/s 00:00 [######################################################] 100%
 python2-msgpack-0.4.2-1-x86_64                                     54.2 KiB  0.00B/s 00:00 [######################################################] 100%
 python2-psutil-2.1.1-1-x86_64                                      88.0 KiB  0.00B/s 00:00 [######################################################] 100%
 libsodium-0.5.0-1-x86_64                                          141.0 KiB  0.00B/s 00:00 [######################################################] 100%
 zeromq-4.0.4-3-x86_64                                             532.6 KiB   130M/s 00:00 [######################################################] 100%
 python2-pyzmq-14.3.0-1-x86_64                                     262.8 KiB   128M/s 00:00 [######################################################] 100%
 python2-systemd-212-2-x86_64                                       42.1 KiB  0.00B/s 00:00 [######################################################] 100%
 python2-requests-2.3.0-1-any                                      304.4 KiB   149M/s 00:00 [######################################################] 100%
 libyaml-0.1.6-1-x86_64                                             53.0 KiB  0.00B/s 00:00 [######################################################] 100%
 python2-yaml-3.11-1-x86_64                                        127.0 KiB  62.0M/s 00:00 [######################################################] 100%
 apache-libcloud-0.14.1-1-any                                      935.8 KiB  10.9M/s 00:00 [######################################################] 100%
 sshpass-1.05-1-x86_64                                               6.9 KiB  0.00B/s 00:00 [######################################################] 100%
 salt-2014.1.4-1-any                                                 2.1 MiB  12.9M/s 00:00 [######################################################] 100%
(19/19) checking keys in keyring                                                            [######################################################] 100%
(19/19) checking package integrity                                                          [######################################################] 100%
(19/19) loading package files                                                               [######################################################] 100%
(19/19) checking for file conflicts                                                         [######################################################] 100%
(19/19) checking available disk space                                                       [######################################################] 100%
( 1/19) installing python2-crypto                                                           [######################################################] 100%
( 2/19) installing python2-setuptools                                                       [######################################################] 100%
( 3/19) installing python2-markupsafe                                                       [######################################################] 100%
( 4/19) installing python2-jinja                                                            [######################################################] 100%
( 5/19) installing python2-m2crypto                                                         [######################################################] 100%
( 6/19) installing python2-msgpack                                                          [######################################################] 100%
( 7/19) installing python2-psutil                                                           [######################################################] 100%
( 8/19) installing libsodium                                                                [######################################################] 100%
( 9/19) installing zeromq                                                                   [######################################################] 100%
(10/19) installing python2-pyzmq                                                            [######################################################] 100%
(11/19) installing libxslt                                                                  [######################################################] 100%
(12/19) installing python2-lxml                                                             [######################################################] 100%
Optional dependencies for python2-lxml
    python2-beautifulsoup3: support for parsing not well formed HTML
    python-lxml-docs: offline docs
(13/19) installing python2-systemd                                                          [######################################################] 100%
(14/19) installing python2-requests                                                         [######################################################] 100%
Optional dependencies for python2-requests
    python2-ndg-httpsclient: HTTPS requests with SNI support
    python2-grequests: asynchronous requests with gevent
(15/19) installing libyaml                                                                  [######################################################] 100%
(16/19) installing python2-yaml                                                             [######################################################] 100%
==> Note that even though this package uses libyaml library,
==> slower pure python implementation is used by default.
==> See http://pyyaml.org/wiki/PyYAMLDocumentation
(17/19) installing apache-libcloud                                                          [######################################################] 100%
(18/19) installing sshpass                                                                  [######################################################] 100%
(19/19) installing salt                                                                     [######################################################] 100%
Optional dependencies for salt
    dmidecode: decode SMBIOS/DMI tables
[root@www ~]#

 

 

2. Create a folder to store your Salt states:

 

# mkdir -p /srv/salt

 

 

3. Create a few simple files to get started:

# cat top.sls
base:
  '*':
    - yajl
    - ntp
    - ssh

 

# cat yajl.sls
yajl:
  pkg:
    - name: yajl
    - installed

 

# cat ntp.sls
ntp:
  service:
    - name: ntpd
    - running
    - enable: True
    - reload: True
    - watch:
      - pkg: ntp
  pkg:
    - installed

 

 

# cat ssh.sls
ssh:
  service:
    - name: sshd
    - running
    - enable: True
    - reload: True
    - watch:
      - pkg: ssh
  pkg:
    - name: openssh
    - installed

 

 

4. Give it a try:

 

# salt-call --local state.highstate

 

You should see something like this:

 

 

[WARNING ] Although 'lspci' was found in path, the current user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'lspci' was found in path, the current user cannot execute it. Grains output might not be accurate.
[INFO    ] Loading fresh modules for state activity
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/modules'
[INFO    ] Syncing modules for environment 'base'
[INFO    ] Loading cache from salt://_modules, for base)
[INFO    ] Caching directory '_modules/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/states'
[INFO    ] Syncing states for environment 'base'
[INFO    ] Loading cache from salt://_states, for base)
[INFO    ] Caching directory '_states/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/grains'
[INFO    ] Syncing grains for environment 'base'
[INFO    ] Loading cache from salt://_grains, for base)
[INFO    ] Caching directory '_grains/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/renderers'
[INFO    ] Syncing renderers for environment 'base'
[INFO    ] Loading cache from salt://_renderers, for base)
[INFO    ] Caching directory '_renderers/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/returners'
[INFO    ] Syncing returners for environment 'base'
[INFO    ] Loading cache from salt://_returners, for base)
[INFO    ] Caching directory '_returners/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/outputters'
[INFO    ] Syncing outputters for environment 'base'
[INFO    ] Loading cache from salt://_outputters, for base)
[INFO    ] Caching directory '_outputters/' for environment 'base'
[INFO    ] Loading fresh modules for state activity
[INFO    ] Running state [yajl] at time 11:58:06.699941
[INFO    ] Executing state pkg.installed for yajl
[INFO    ] Executing command 'pacman -Q' in directory '/root'
[INFO    ] Package yajl is already installed
[INFO    ] Completed state [yajl] at time 11:58:06.736884
[INFO    ] Running state [ntp] at time 11:58:06.737394
[INFO    ] Executing state pkg.installed for ntp
[INFO    ] Package ntp is already installed
[INFO    ] Completed state [ntp] at time 11:58:06.738743
[INFO    ] Running state [ntpd] at time 11:58:06.739000
[INFO    ] Executing state service.running for ntpd
[INFO    ] Executing command 'systemctl --full list-unit-files | col -b' in directory '/root'
[INFO    ] stdout: UNIT FILE                   STATE
proc-sys-fs-binfmt_misc.automount       static
org.freedesktop.hostname1.busname       static
org.freedesktop.locale1.busname           static
org.freedesktop.login1.busname           static
org.freedesktop.machine1.busname       static
org.freedesktop.timedate1.busname       static
dev-hugepages.mount               static
dev-mqueue.mount               static
proc-sys-fs-binfmt_misc.mount           static
sys-fs-fuse-connections.mount           static
sys-kernel-config.mount               static
sys-kernel-debug.mount               static
tmp.mount                   static
systemd-ask-password-console.path       static
systemd-ask-password-wall.path           static
session-368.scope               static
session-415.scope               static
session-785.scope               static
session-787.scope               static
autovt@.service                   disabled
blk-availability.service           disabled
console-getty.service               disabled
console-shell.service               disabled
container-getty@.service           static
cronie.service                   disabled
dbus-org.freedesktop.hostname1.service       static
dbus-org.freedesktop.locale1.service       static
dbus-org.freedesktop.login1.service       static
dbus-org.freedesktop.machine1.service       static
dbus-org.freedesktop.timedate1.service       static
dbus.service                   static
debug-shell.service               disabled
dhcpcd.service                   disabled
dhcpcd@.service                   disabled
dm-event.service               disabled
emergency.service               static
ftpd.service                   disabled
getty@.service                   enabled
git-daemon@.service               static
gpm.service                   disabled
haveged.service                   disabled
httpd.service                   enabled
initrd-cleanup.service               static
initrd-parse-etc.service           static
initrd-switch-root.service           static
initrd-udevadm-cleanup-db.service       static
ip6tables.service               disabled
iptables.service               disabled
kmod-static-nodes.service           static
krb5-kadmind.service               disabled
krb5-kdc.service               disabled
krb5-kpropd.service               disabled
krb5-kpropd@.service               static
logrotate.service               static
lvm2-lvmetad.service               disabled
lvm2-monitor.service               disabled
lvm2-pvscan@.service               static
man-db.service                   static
mdadm.service                   disabled
mdmon@.service                   static
mkinitcpio-generate-shutdown-ramfs.service static
mysqld.service                   enabled
neo4j.service                   disabled
netctl-auto@.service               disabled
netctl-ifplugd@.service               disabled
netctl-sleep.service               disabled
netctl.service                   disabled
netctl@.service                   static
netctl@ethernet\x2dstatic.service       enabled
nginx.service                   enabled
nscd.service                   disabled
ntpd.service                   enabled
ntpdate.service                   disabled
pkgstats.service               static
postgresql.service               enabled
ppp@.service                   disabled
quotaon.service                   static
redis.service                   enabled
rescue.service                   static
rlogin@.service                   static
rsh@.service                   static
rsyncd.service                   disabled
rsyncd@.service                   static
salt-master.service               disabled
salt-minion.service               disabled
salt-syndic.service               disabled
serial-getty@.service               disabled
shadow.service                   static
sshd.service                   enabled
sshd@.service                   static
sshdgenkeys.service               enabled
systemd-ask-password-console.service       static
systemd-ask-password-wall.service       static
systemd-backlight@.service           static
systemd-binfmt.service               static
systemd-fsck-root.service           static
systemd-fsck@.service               static
systemd-halt.service               static
systemd-hibernate.service           static
systemd-hostnamed.service           static
systemd-hybrid-sleep.service           static
systemd-initctl.service               static
systemd-journal-flush.service           static
systemd-journal-gatewayd.service       static
systemd-journald.service           static
systemd-kexec.service               static
systemd-localed.service               static
systemd-logind.service               static
systemd-machined.service           static
systemd-modules-load.service           static
systemd-networkd-wait-online.service       enabled
systemd-networkd.service           enabled
systemd-nspawn@.service               disabled
systemd-poweroff.service           static
systemd-quotacheck.service           static
systemd-random-seed.service           static
systemd-readahead-collect.service       disabled
systemd-readahead-done.service           static
systemd-readahead-drop.service           disabled
systemd-readahead-replay.service       disabled
systemd-reboot.service               static
systemd-remount-fs.service           static
systemd-resolved.service           disabled
systemd-rfkill@.service               static
systemd-shutdownd.service           static
systemd-suspend.service               static
systemd-sysctl.service               static
systemd-timedated.service           static
systemd-timesyncd.service           disabled
systemd-tmpfiles-clean.service           static
systemd-tmpfiles-setup-dev.service       static
systemd-tmpfiles-setup.service           static
systemd-udev-settle.service           static
systemd-udev-trigger.service           static
systemd-udevd.service               static
systemd-update-utmp-runlevel.service       static
systemd-update-utmp.service           static
systemd-user-sessions.service           static
systemd-vconsole-setup.service           static
talk.service                   static
telnet@.service                   static
user@.service                   static
uuidd.service                   static
-.slice                       static
machine.slice                   static
system.slice                   static
user.slice                   static
dbus.socket                   static
dm-event.socket                   static
git-daemon.socket               disabled
krb5-kpropd.socket               disabled
lvm2-lvmetad.socket               static
rlogin.socket                   disabled
rsh.socket                   disabled
rsyncd.socket                   disabled
sshd.socket                   disabled
syslog.socket                   static
systemd-initctl.socket               static
systemd-journal-gatewayd.socket           disabled
systemd-journald.socket               static
systemd-shutdownd.socket           static
systemd-udevd-control.socket           static
systemd-udevd-kernel.socket           static
talk.socket                   disabled
telnet.socket                   disabled
uuidd.socket                   disabled
basic.target                   static
bluetooth.target               static
busnames.target                   static
cryptsetup.target               static
ctrl-alt-del.target               disabled
default.target                   static
emergency.target               static
final.target                   static
getty.target                   static
graphical.target               static
halt.target                   disabled
hibernate.target               static
hybrid-sleep.target               static
initrd-fs.target               static
initrd-root-fs.target               static
initrd-switch-root.target           static
initrd.target                   static
kexec.target                   disabled
local-fs-pre.target               static
local-fs.target                   static
multi-user.target               static
network-online.target               static
network.target                   static
nss-lookup.target               static
nss-user-lookup.target               static
paths.target                   static
poweroff.target                   disabled
printer.target                   static
reboot.target                   disabled
remote-fs-pre.target               static
remote-fs.target               enabled
rescue.target                   disabled
rpcbind.target                   static
shutdown.target                   static
sigpwr.target                   static
sleep.target                   static
slices.target                   static
smartcard.target               static
sockets.target                   static
sound.target                   static
suspend.target                   static
swap.target                   static
sysinit.target                   static
system-update.target               static
time-sync.target               static
timers.target                   static
umount.target                   static
logrotate.timer                   static
man-db.timer                   static
pkgstats.timer                   static
shadow.timer                   static
systemd-readahead-done.timer           static
systemd-tmpfiles-clean.timer           static

219 unit files listed.
[INFO    ] Executing command 'systemctl --full list-unit-files | col -b' in directory '/root'
[INFO    ] stdout: UNIT FILE                   STATE
proc-sys-fs-binfmt_misc.automount       static
org.freedesktop.hostname1.busname       static
org.freedesktop.locale1.busname           static
org.freedesktop.login1.busname           static
org.freedesktop.machine1.busname       static
org.freedesktop.timedate1.busname       static
dev-hugepages.mount               static
dev-mqueue.mount               static
proc-sys-fs-binfmt_misc.mount           static
sys-fs-fuse-connections.mount           static
sys-kernel-config.mount               static
sys-kernel-debug.mount               static
tmp.mount                   static
systemd-ask-password-console.path       static
systemd-ask-password-wall.path           static
session-368.scope               static
session-415.scope               static
session-785.scope               static
session-787.scope               static
autovt@.service                   disabled
blk-availability.service           disabled
console-getty.service               disabled
console-shell.service               disabled
container-getty@.service           static
cronie.service                   disabled
dbus-org.freedesktop.hostname1.service       static
dbus-org.freedesktop.locale1.service       static
dbus-org.freedesktop.login1.service       static
dbus-org.freedesktop.machine1.service       static
dbus-org.freedesktop.timedate1.service       static
dbus.service                   static
debug-shell.service               disabled
dhcpcd.service                   disabled
dhcpcd@.service                   disabled
dm-event.service               disabled
emergency.service               static
ftpd.service                   disabled
getty@.service                   enabled
git-daemon@.service               static
gpm.service                   disabled
haveged.service                   disabled
httpd.service                   enabled
initrd-cleanup.service               static
initrd-parse-etc.service           static
initrd-switch-root.service           static
initrd-udevadm-cleanup-db.service       static
ip6tables.service               disabled
iptables.service               disabled
kmod-static-nodes.service           static
krb5-kadmind.service               disabled
krb5-kdc.service               disabled
krb5-kpropd.service               disabled
krb5-kpropd@.service               static
logrotate.service               static
lvm2-lvmetad.service               disabled
lvm2-monitor.service               disabled
lvm2-pvscan@.service               static
man-db.service                   static
mdadm.service                   disabled
mdmon@.service                   static
mkinitcpio-generate-shutdown-ramfs.service static
mysqld.service                   enabled
neo4j.service                   disabled
netctl-auto@.service               disabled
netctl-ifplugd@.service               disabled
netctl-sleep.service               disabled
netctl.service                   disabled
netctl@.service                   static
netctl@ethernet\x2dstatic.service       enabled
nginx.service                   enabled
nscd.service                   disabled
ntpd.service                   enabled
ntpdate.service                   disabled
pkgstats.service               static
postgresql.service               enabled
ppp@.service                   disabled
quotaon.service                   static
redis.service                   enabled
rescue.service                   static
rlogin@.service                   static
rsh@.service                   static
rsyncd.service                   disabled
rsyncd@.service                   static
salt-master.service               disabled
salt-minion.service               disabled
salt-syndic.service               disabled
serial-getty@.service               disabled
shadow.service                   static
sshd.service                   enabled
sshd@.service                   static
sshdgenkeys.service               enabled
systemd-ask-password-console.service       static
systemd-ask-password-wall.service       static
systemd-backlight@.service           static
systemd-binfmt.service               static
systemd-fsck-root.service           static
systemd-fsck@.service               static
systemd-halt.service               static
systemd-hibernate.service           static
systemd-hostnamed.service           static
systemd-hybrid-sleep.service           static
systemd-initctl.service               static
systemd-journal-flush.service           static
systemd-journal-gatewayd.service       static
systemd-journald.service           static
systemd-kexec.service               static
systemd-localed.service               static
systemd-logind.service               static
systemd-machined.service           static
systemd-modules-load.service           static
systemd-networkd-wait-online.service       enabled
systemd-networkd.service           enabled
systemd-nspawn@.service               disabled
systemd-poweroff.service           static
systemd-quotacheck.service           static
systemd-random-seed.service           static
systemd-readahead-collect.service       disabled
systemd-readahead-done.service           static
systemd-readahead-drop.service           disabled
systemd-readahead-replay.service       disabled
systemd-reboot.service               static
systemd-remount-fs.service           static
systemd-resolved.service           disabled
systemd-rfkill@.service               static
systemd-shutdownd.service           static
systemd-suspend.service               static
systemd-sysctl.service               static
systemd-timedated.service           static
systemd-timesyncd.service           disabled
systemd-tmpfiles-clean.service           static
systemd-tmpfiles-setup-dev.service       static
systemd-tmpfiles-setup.service           static
systemd-udev-settle.service           static
systemd-udev-trigger.service           static
systemd-udevd.service               static
systemd-update-utmp-runlevel.service       static
systemd-update-utmp.service           static
systemd-user-sessions.service           static
systemd-vconsole-setup.service           static
talk.service                   static
telnet@.service                   static
user@.service                   static
uuidd.service                   static
-.slice                       static
machine.slice                   static
system.slice                   static
user.slice                   static
dbus.socket                   static
dm-event.socket                   static
git-daemon.socket               disabled
krb5-kpropd.socket               disabled
lvm2-lvmetad.socket               static
rlogin.socket                   disabled
rsh.socket                   disabled
rsyncd.socket                   disabled
sshd.socket                   disabled
syslog.socket                   static
systemd-initctl.socket               static
systemd-journal-gatewayd.socket           disabled
systemd-journald.socket               static
systemd-shutdownd.socket           static
systemd-udevd-control.socket           static
systemd-udevd-kernel.socket           static
talk.socket                   disabled
telnet.socket                   disabled
uuidd.socket                   disabled
basic.target                   static
bluetooth.target               static
busnames.target                   static
cryptsetup.target               static
ctrl-alt-del.target               disabled
default.target                   static
emergency.target               static
final.target                   static
getty.target                   static
graphical.target               static
halt.target                   disabled
hibernate.target               static
hybrid-sleep.target               static
initrd-fs.target               static
initrd-root-fs.target               static
initrd-switch-root.target           static
initrd.target                   static
kexec.target                   disabled
local-fs-pre.target               static
local-fs.target                   static
multi-user.target               static
network-online.target               static
network.target                   static
nss-lookup.target               static
nss-user-lookup.target               static
paths.target                   static
poweroff.target                   disabled
printer.target                   static
reboot.target                   disabled
remote-fs-pre.target               static
remote-fs.target               enabled
rescue.target                   disabled
rpcbind.target                   static
shutdown.target                   static
sigpwr.target                   static
sleep.target                   static
slices.target                   static
smartcard.target               static
sockets.target                   static
sound.target                   static
suspend.target                   static
swap.target                   static
sysinit.target                   static
system-update.target               static
time-sync.target               static
timers.target                   static
umount.target                   static
logrotate.timer                   static
man-db.timer                   static
pkgstats.timer                   static
shadow.timer                   static
systemd-readahead-done.timer           static
systemd-tmpfiles-clean.timer           static

219 unit files listed.
[INFO    ] Executing command 'systemctl status ntpd.service' in directory '/root'
[INFO    ] output: * ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
   Active: active (running) since Thu 2014-04-17 13:56:27 PDT; 1 months 23 days ago
 Main PID: 2340 (ntpd)
   CGroup: /system.slice/ntpd.service
           `-2340 /usr/bin/ntpd -g -u ntp:ntp -p /run/ntpd.pid

Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: Listen and drop on 1 v6wildcard :: UDP 123
Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: Listen normally on 2 lo 127.0.0.1 UDP 123
Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: Listen normally on 3 eth0 173.230.149.180 UDP 123
Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: Listen normally on 4 lo ::1 UDP 123
Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: Listen normally on 5 eth0 2600:3c01::f03c:91ff:fe70:fbd0 UDP 123
Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: Listen normally on 6 eth0 fe80::f03c:91ff:fe70:fbd0 UDP 123
Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: Listen normally on 7 eth0 2600:3c01:e000:87::2 UDP 123
Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: Listen normally on 8 eth0 2600:3c01:e000:87::1 UDP 123
Apr 17 13:56:27 www.in.sert.co.in systemd[1]: Started Network Time Service.
Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: peers refreshed
Apr 17 13:56:27 www.in.sert.co.in ntpd[2340]: Listening on routing socket on fd #25 for interface updates
[INFO    ] Executing command 'systemctl is-active ntpd.service' in directory '/root'
[INFO    ] output: active
[INFO    ] Executing command 'systemctl --full list-unit-files | col -b' in directory '/root'
[INFO    ] stdout: UNIT FILE                   STATE
proc-sys-fs-binfmt_misc.automount       static
org.freedesktop.hostname1.busname       static
org.freedesktop.locale1.busname           static
org.freedesktop.login1.busname           static
org.freedesktop.machine1.busname       static
org.freedesktop.timedate1.busname       static
dev-hugepages.mount               static
dev-mqueue.mount               static
proc-sys-fs-binfmt_misc.mount           static
sys-fs-fuse-connections.mount           static
sys-kernel-config.mount               static
sys-kernel-debug.mount               static
tmp.mount                   static
systemd-ask-password-console.path       static
systemd-ask-password-wall.path           static
session-368.scope               static
session-415.scope               static
session-785.scope               static
session-787.scope               static
autovt@.service                   disabled
blk-availability.service           disabled
console-getty.service               disabled
console-shell.service               disabled
container-getty@.service           static
cronie.service                   disabled
dbus-org.freedesktop.hostname1.service       static
dbus-org.freedesktop.locale1.service       static
dbus-org.freedesktop.login1.service       static
dbus-org.freedesktop.machine1.service       static
dbus-org.freedesktop.timedate1.service       static
dbus.service                   static
debug-shell.service               disabled
dhcpcd.service                   disabled
dhcpcd@.service                   disabled
dm-event.service               disabled
emergency.service               static
ftpd.service                   disabled
getty@.service                   enabled
git-daemon@.service               static
gpm.service                   disabled
haveged.service                   disabled
httpd.service                   enabled
initrd-cleanup.service               static
initrd-parse-etc.service           static
initrd-switch-root.service           static
initrd-udevadm-cleanup-db.service       static
ip6tables.service               disabled
iptables.service               disabled
kmod-static-nodes.service           static
krb5-kadmind.service               disabled
krb5-kdc.service               disabled
krb5-kpropd.service               disabled
krb5-kpropd@.service               static
logrotate.service               static
lvm2-lvmetad.service               disabled
lvm2-monitor.service               disabled
lvm2-pvscan@.service               static
man-db.service                   static
mdadm.service                   disabled
mdmon@.service                   static
mkinitcpio-generate-shutdown-ramfs.service static
mysqld.service                   enabled
neo4j.service                   disabled
netctl-auto@.service               disabled
netctl-ifplugd@.service               disabled
netctl-sleep.service               disabled
netctl.service                   disabled
netctl@.service                   static
netctl@ethernet\x2dstatic.service       enabled
nginx.service                   enabled
nscd.service                   disabled
ntpd.service                   enabled
ntpdate.service                   disabled
pkgstats.service               static
postgresql.service               enabled
ppp@.service                   disabled
quotaon.service                   static
redis.service                   enabled
rescue.service                   static
rlogin@.service                   static
rsh@.service                   static
rsyncd.service                   disabled
rsyncd@.service                   static
salt-master.service               disabled
salt-minion.service               disabled
salt-syndic.service               disabled
serial-getty@.service               disabled
shadow.service                   static
sshd.service                   enabled
sshd@.service                   static
sshdgenkeys.service               enabled
systemd-ask-password-console.service       static
systemd-ask-password-wall.service       static
systemd-backlight@.service           static
systemd-binfmt.service               static
systemd-fsck-root.service           static
systemd-fsck@.service               static
systemd-halt.service               static
systemd-hibernate.service           static
systemd-hostnamed.service           static
systemd-hybrid-sleep.service           static
systemd-initctl.service               static
systemd-journal-flush.service           static
systemd-journal-gatewayd.service       static
systemd-journald.service           static
systemd-kexec.service               static
systemd-localed.service               static
systemd-logind.service               static
systemd-machined.service           static
systemd-modules-load.service           static
systemd-networkd-wait-online.service       enabled
systemd-networkd.service           enabled
systemd-nspawn@.service               disabled
systemd-poweroff.service           static
systemd-quotacheck.service           static
systemd-random-seed.service           static
systemd-readahead-collect.service       disabled
systemd-readahead-done.service           static
systemd-readahead-drop.service           disabled
systemd-readahead-replay.service       disabled
systemd-reboot.service               static
systemd-remount-fs.service           static
systemd-resolved.service           disabled
systemd-rfkill@.service               static
systemd-shutdownd.service           static
systemd-suspend.service               static
systemd-sysctl.service               static
systemd-timedated.service           static
systemd-timesyncd.service           disabled
systemd-tmpfiles-clean.service           static
systemd-tmpfiles-setup-dev.service       static
systemd-tmpfiles-setup.service           static
systemd-udev-settle.service           static
systemd-udev-trigger.service           static
systemd-udevd.service               static
systemd-update-utmp-runlevel.service       static
systemd-update-utmp.service           static
systemd-user-sessions.service           static
systemd-vconsole-setup.service           static
talk.service                   static
telnet@.service                   static
user@.service                   static
uuidd.service                   static
-.slice                       static
machine.slice                   static
system.slice                   static
user.slice                   static
dbus.socket                   static
dm-event.socket                   static
git-daemon.socket               disabled
krb5-kpropd.socket               disabled
lvm2-lvmetad.socket               static
rlogin.socket                   disabled
rsh.socket                   disabled
rsyncd.socket                   disabled
sshd.socket                   disabled
syslog.socket                   static
systemd-initctl.socket               static
systemd-journal-gatewayd.socket           disabled
systemd-journald.socket               static
systemd-shutdownd.socket           static
systemd-udevd-control.socket           static
systemd-udevd-kernel.socket           static
talk.socket                   disabled
telnet.socket                   disabled
uuidd.socket                   disabled
basic.target                   static
bluetooth.target               static
busnames.target                   static
cryptsetup.target               static
ctrl-alt-del.target               disabled
default.target                   static
emergency.target               static
final.target                   static
getty.target                   static
graphical.target               static
halt.target                   disabled
hibernate.target               static
hybrid-sleep.target               static
initrd-fs.target               static
initrd-root-fs.target               static
initrd-switch-root.target           static
initrd.target                   static
kexec.target                   disabled
local-fs-pre.target               static
local-fs.target                   static
multi-user.target               static
network-online.target               static
network.target                   static
nss-lookup.target               static
nss-user-lookup.target               static
paths.target                   static
poweroff.target                   disabled
printer.target                   static
reboot.target                   disabled
remote-fs-pre.target               static
remote-fs.target               enabled
rescue.target                   disabled
rpcbind.target                   static
shutdown.target                   static
sigpwr.target                   static
sleep.target                   static
slices.target                   static
smartcard.target               static
sockets.target                   static
sound.target                   static
suspend.target                   static
swap.target                   static
sysinit.target                   static
system-update.target               static
time-sync.target               static
timers.target                   static
umount.target                   static
logrotate.timer                   static
man-db.timer                   static
pkgstats.timer                   static
shadow.timer                   static
systemd-readahead-done.timer           static
systemd-tmpfiles-clean.timer           static

219 unit files listed.
[INFO    ] Executing command 'systemctl is-enabled ntpd.service' in directory '/root'
[INFO    ] output: enabled
[INFO    ] Service ntpd is already enabled, and is in the desired state
[INFO    ] Completed state [ntpd] at time 11:58:07.117368
[INFO    ] Running state [openssh] at time 11:58:07.118257
[INFO    ] Executing state pkg.installed for openssh
[INFO    ] Package openssh is already installed
[INFO    ] Completed state [openssh] at time 11:58:07.120638
[INFO    ] Running state [sshd] at time 11:58:07.121005
[INFO    ] Executing state service.running for sshd
[INFO    ] Executing command 'systemctl --full list-unit-files | col -b' in directory '/root'
[INFO    ] stdout: UNIT FILE                   STATE
proc-sys-fs-binfmt_misc.automount       static
org.freedesktop.hostname1.busname       static
org.freedesktop.locale1.busname           static
org.freedesktop.login1.busname           static
org.freedesktop.machine1.busname       static
org.freedesktop.timedate1.busname       static
dev-hugepages.mount               static
dev-mqueue.mount               static
proc-sys-fs-binfmt_misc.mount           static
sys-fs-fuse-connections.mount           static
sys-kernel-config.mount               static
sys-kernel-debug.mount               static
tmp.mount                   static
systemd-ask-password-console.path       static
systemd-ask-password-wall.path           static
session-368.scope               static
session-415.scope               static
session-785.scope               static
session-787.scope               static
autovt@.service                   disabled
blk-availability.service           disabled
console-getty.service               disabled
console-shell.service               disabled
container-getty@.service           static
cronie.service                   disabled
dbus-org.freedesktop.hostname1.service       static
dbus-org.freedesktop.locale1.service       static
dbus-org.freedesktop.login1.service       static
dbus-org.freedesktop.machine1.service       static
dbus-org.freedesktop.timedate1.service       static
dbus.service                   static
debug-shell.service               disabled
dhcpcd.service                   disabled
dhcpcd@.service                   disabled
dm-event.service               disabled
emergency.service               static
ftpd.service                   disabled
getty@.service                   enabled
git-daemon@.service               static
gpm.service                   disabled
haveged.service                   disabled
httpd.service                   enabled
initrd-cleanup.service               static
initrd-parse-etc.service           static
initrd-switch-root.service           static
initrd-udevadm-cleanup-db.service       static
ip6tables.service               disabled
iptables.service               disabled
kmod-static-nodes.service           static
krb5-kadmind.service               disabled
krb5-kdc.service               disabled
krb5-kpropd.service               disabled
krb5-kpropd@.service               static
logrotate.service               static
lvm2-lvmetad.service               disabled
lvm2-monitor.service               disabled
lvm2-pvscan@.service               static
man-db.service                   static
mdadm.service                   disabled
mdmon@.service                   static
mkinitcpio-generate-shutdown-ramfs.service static
mysqld.service                   enabled
neo4j.service                   disabled
netctl-auto@.service               disabled
netctl-ifplugd@.service               disabled
netctl-sleep.service               disabled
netctl.service                   disabled
netctl@.service                   static
netctl@ethernet\x2dstatic.service       enabled
nginx.service                   enabled
nscd.service                   disabled
ntpd.service                   enabled
ntpdate.service                   disabled
pkgstats.service               static
postgresql.service               enabled
ppp@.service                   disabled
quotaon.service                   static
redis.service                   enabled
rescue.service                   static
rlogin@.service                   static
rsh@.service                   static
rsyncd.service                   disabled
rsyncd@.service                   static
salt-master.service               disabled
salt-minion.service               disabled
salt-syndic.service               disabled
serial-getty@.service               disabled
shadow.service                   static
sshd.service                   enabled
sshd@.service                   static
sshdgenkeys.service               enabled
systemd-ask-password-console.service       static
systemd-ask-password-wall.service       static
systemd-backlight@.service           static
systemd-binfmt.service               static
systemd-fsck-root.service           static
systemd-fsck@.service               static
systemd-halt.service               static
systemd-hibernate.service           static
systemd-hostnamed.service           static
systemd-hybrid-sleep.service           static
systemd-initctl.service               static
systemd-journal-flush.service           static
systemd-journal-gatewayd.service       static
systemd-journald.service           static
systemd-kexec.service               static
systemd-localed.service               static
systemd-logind.service               static
systemd-machined.service           static
systemd-modules-load.service           static
systemd-networkd-wait-online.service       enabled
systemd-networkd.service           enabled
systemd-nspawn@.service               disabled
systemd-poweroff.service           static
systemd-quotacheck.service           static
systemd-random-seed.service           static
systemd-readahead-collect.service       disabled
systemd-readahead-done.service           static
systemd-readahead-drop.service           disabled
systemd-readahead-replay.service       disabled
systemd-reboot.service               static
systemd-remount-fs.service           static
systemd-resolved.service           disabled
systemd-rfkill@.service               static
systemd-shutdownd.service           static
systemd-suspend.service               static
systemd-sysctl.service               static
systemd-timedated.service           static
systemd-timesyncd.service           disabled
systemd-tmpfiles-clean.service           static
systemd-tmpfiles-setup-dev.service       static
systemd-tmpfiles-setup.service           static
systemd-udev-settle.service           static
systemd-udev-trigger.service           static
systemd-udevd.service               static
systemd-update-utmp-runlevel.service       static
systemd-update-utmp.service           static
systemd-user-sessions.service           static
systemd-vconsole-setup.service           static
talk.service                   static
telnet@.service                   static
user@.service                   static
uuidd.service                   static
-.slice                       static
machine.slice                   static
system.slice                   static
user.slice                   static
dbus.socket                   static
dm-event.socket                   static
git-daemon.socket               disabled
krb5-kpropd.socket               disabled
lvm2-lvmetad.socket               static
rlogin.socket                   disabled
rsh.socket                   disabled
rsyncd.socket                   disabled
sshd.socket                   disabled
syslog.socket                   static
systemd-initctl.socket               static
systemd-journal-gatewayd.socket           disabled
systemd-journald.socket               static
systemd-shutdownd.socket           static
systemd-udevd-control.socket           static
systemd-udevd-kernel.socket           static
talk.socket                   disabled
telnet.socket                   disabled
uuidd.socket                   disabled
basic.target                   static
bluetooth.target               static
busnames.target                   static
cryptsetup.target               static
ctrl-alt-del.target               disabled
default.target                   static
emergency.target               static
final.target                   static
getty.target                   static
graphical.target               static
halt.target                   disabled
hibernate.target               static
hybrid-sleep.target               static
initrd-fs.target               static
initrd-root-fs.target               static
initrd-switch-root.target           static
initrd.target                   static
kexec.target                   disabled
local-fs-pre.target               static
local-fs.target                   static
multi-user.target               static
network-online.target               static
network.target                   static
nss-lookup.target               static
nss-user-lookup.target               static
paths.target                   static
poweroff.target                   disabled
printer.target                   static
reboot.target                   disabled
remote-fs-pre.target               static
remote-fs.target               enabled
rescue.target                   disabled
rpcbind.target                   static
shutdown.target                   static
sigpwr.target                   static
sleep.target                   static
slices.target                   static
smartcard.target               static
sockets.target                   static
sound.target                   static
suspend.target                   static
swap.target                   static
sysinit.target                   static
system-update.target               static
time-sync.target               static
timers.target                   static
umount.target                   static
logrotate.timer                   static
man-db.timer                   static
pkgstats.timer                   static
shadow.timer                   static
systemd-readahead-done.timer           static
systemd-tmpfiles-clean.timer           static

219 unit files listed.
[INFO    ] Executing command 'systemctl --full list-unit-files | col -b' in directory '/root'
[INFO    ] stdout: UNIT FILE                   STATE
proc-sys-fs-binfmt_misc.automount       static
org.freedesktop.hostname1.busname       static
org.freedesktop.locale1.busname           static
org.freedesktop.login1.busname           static
org.freedesktop.machine1.busname       static
org.freedesktop.timedate1.busname       static
dev-hugepages.mount               static
dev-mqueue.mount               static
proc-sys-fs-binfmt_misc.mount           static
sys-fs-fuse-connections.mount           static
sys-kernel-config.mount               static
sys-kernel-debug.mount               static
tmp.mount                   static
systemd-ask-password-console.path       static
systemd-ask-password-wall.path           static
session-368.scope               static
session-415.scope               static
session-785.scope               static
session-787.scope               static
autovt@.service                   disabled
blk-availability.service           disabled
console-getty.service               disabled
console-shell.service               disabled
container-getty@.service           static
cronie.service                   disabled
dbus-org.freedesktop.hostname1.service       static
dbus-org.freedesktop.locale1.service       static
dbus-org.freedesktop.login1.service       static
dbus-org.freedesktop.machine1.service       static
dbus-org.freedesktop.timedate1.service       static
dbus.service                   static
debug-shell.service               disabled
dhcpcd.service                   disabled
dhcpcd@.service                   disabled
dm-event.service               disabled
emergency.service               static
ftpd.service                   disabled
getty@.service                   enabled
git-daemon@.service               static
gpm.service                   disabled
haveged.service                   disabled
httpd.service                   enabled
initrd-cleanup.service               static
initrd-parse-etc.service           static
initrd-switch-root.service           static
initrd-udevadm-cleanup-db.service       static
ip6tables.service               disabled
iptables.service               disabled
kmod-static-nodes.service           static
krb5-kadmind.service               disabled
krb5-kdc.service               disabled
krb5-kpropd.service               disabled
krb5-kpropd@.service               static
logrotate.service               static
lvm2-lvmetad.service               disabled
lvm2-monitor.service               disabled
lvm2-pvscan@.service               static
man-db.service                   static
mdadm.service                   disabled
mdmon@.service                   static
mkinitcpio-generate-shutdown-ramfs.service static
mysqld.service                   enabled
neo4j.service                   disabled
netctl-auto@.service               disabled
netctl-ifplugd@.service               disabled
netctl-sleep.service               disabled
netctl.service                   disabled
netctl@.service                   static
netctl@ethernet\x2dstatic.service       enabled
nginx.service                   enabled
nscd.service                   disabled
ntpd.service                   enabled
ntpdate.service                   disabled
pkgstats.service               static
postgresql.service               enabled
ppp@.service                   disabled
quotaon.service                   static
redis.service                   enabled
rescue.service                   static
rlogin@.service                   static
rsh@.service                   static
rsyncd.service                   disabled
rsyncd@.service                   static
salt-master.service               disabled
salt-minion.service               disabled
salt-syndic.service               disabled
serial-getty@.service               disabled
shadow.service                   static
sshd.service                   enabled
sshd@.service                   static
sshdgenkeys.service               enabled
systemd-ask-password-console.service       static
systemd-ask-password-wall.service       static
systemd-backlight@.service           static
systemd-binfmt.service               static
systemd-fsck-root.service           static
systemd-fsck@.service               static
systemd-halt.service               static
systemd-hibernate.service           static
systemd-hostnamed.service           static
systemd-hybrid-sleep.service           static
systemd-initctl.service               static
systemd-journal-flush.service           static
systemd-journal-gatewayd.service       static
systemd-journald.service           static
systemd-kexec.service               static
systemd-localed.service               static
systemd-logind.service               static
systemd-machined.service           static
systemd-modules-load.service           static
systemd-networkd-wait-online.service       enabled
systemd-networkd.service           enabled
systemd-nspawn@.service               disabled
systemd-poweroff.service           static
systemd-quotacheck.service           static
systemd-random-seed.service           static
systemd-readahead-collect.service       disabled
systemd-readahead-done.service           static
systemd-readahead-drop.service           disabled
systemd-readahead-replay.service       disabled
systemd-reboot.service               static
systemd-remount-fs.service           static
systemd-resolved.service           disabled
systemd-rfkill@.service               static
systemd-shutdownd.service           static
systemd-suspend.service               static
systemd-sysctl.service               static
systemd-timedated.service           static
systemd-timesyncd.service           disabled
systemd-tmpfiles-clean.service           static
systemd-tmpfiles-setup-dev.service       static
systemd-tmpfiles-setup.service           static
systemd-udev-settle.service           static
systemd-udev-trigger.service           static
systemd-udevd.service               static
systemd-update-utmp-runlevel.service       static
systemd-update-utmp.service           static
systemd-user-sessions.service           static
systemd-vconsole-setup.service           static
talk.service                   static
telnet@.service                   static
user@.service                   static
uuidd.service                   static
-.slice                       static
machine.slice                   static
system.slice                   static
user.slice                   static
dbus.socket                   static
dm-event.socket                   static
git-daemon.socket               disabled
krb5-kpropd.socket               disabled
lvm2-lvmetad.socket               static
rlogin.socket                   disabled
rsh.socket                   disabled
rsyncd.socket                   disabled
sshd.socket                   disabled
syslog.socket                   static
systemd-initctl.socket               static
systemd-journal-gatewayd.socket           disabled
systemd-journald.socket               static
systemd-shutdownd.socket           static
systemd-udevd-control.socket           static
systemd-udevd-kernel.socket           static
talk.socket                   disabled
telnet.socket                   disabled
uuidd.socket                   disabled
basic.target                   static
bluetooth.target               static
busnames.target                   static
cryptsetup.target               static
ctrl-alt-del.target               disabled
default.target                   static
emergency.target               static
final.target                   static
getty.target                   static
graphical.target               static
halt.target                   disabled
hibernate.target               static
hybrid-sleep.target               static
initrd-fs.target               static
initrd-root-fs.target               static
initrd-switch-root.target           static
initrd.target                   static
kexec.target                   disabled
local-fs-pre.target               static
local-fs.target                   static
multi-user.target               static
network-online.target               static
network.target                   static
nss-lookup.target               static
nss-user-lookup.target               static
paths.target                   static
poweroff.target                   disabled
printer.target                   static
reboot.target                   disabled
remote-fs-pre.target               static
remote-fs.target               enabled
rescue.target                   disabled
rpcbind.target                   static
shutdown.target                   static
sigpwr.target                   static
sleep.target                   static
slices.target                   static
smartcard.target               static
sockets.target                   static
sound.target                   static
suspend.target                   static
swap.target                   static
sysinit.target                   static
system-update.target               static
time-sync.target               static
timers.target                   static
umount.target                   static
logrotate.timer                   static
man-db.timer                   static
pkgstats.timer                   static
shadow.timer                   static
systemd-readahead-done.timer           static
systemd-tmpfiles-clean.timer           static

219 unit files listed.
[INFO    ] Executing command 'systemctl status sshd.service' in directory '/root'
[INFO    ] output: * sshd.service - OpenSSH Daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
   Active: active (running) since Thu 2014-04-17 13:56:27 PDT; 1 months 23 days ago
 Main PID: 2335 (sshd)
   CGroup: /system.slice/sshd.service
           `-2335 /usr/bin/sshd -D

Jun 10 10:46:44 www.in.sert.co.in sshd[10088]: Failed password for httpd from 72.34.113.100 port 8697 ssh2
Jun 10 10:46:49 www.in.sert.co.in sshd[10088]: Accepted password for httpd from 72.34.113.100 port 8697 ssh2
Jun 10 10:46:49 www.in.sert.co.in sshd[10088]: pam_unix(sshd:session): session opened for user httpd by (uid=0)
Jun 10 10:50:15 www.in.sert.co.in sshd[10140]: Accepted password for root from 72.34.113.100 port 6222 ssh2
Jun 10 10:50:15 www.in.sert.co.in sshd[10140]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jun 10 10:51:09 www.in.sert.co.in sshd[10163]: Connection closed by 72.34.113.100 [preauth]
Jun 10 10:51:18 www.in.sert.co.in sshd[10170]: Accepted publickey for root from 72.34.113.100 port 20639 ssh2: RSA 9c:7e:03:28:f9:b8:94:54:de:33:7e:0f:8a:64:b5:a5
Jun 10 10:51:18 www.in.sert.co.in sshd[10170]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jun 10 10:56:40 www.in.sert.co.in sshd[10995]: Accepted publickey for root from 72.34.113.100 port 34042 ssh2: RSA 9c:7e:03:28:f9:b8:94:54:de:33:7e:0f:8a:64:b5:a5
Jun 10 10:56:40 www.in.sert.co.in sshd[10995]: pam_unix(sshd:session): session opened for user root by (uid=0)
[INFO    ] Executing command 'systemctl is-active sshd.service' in directory '/root'
[INFO    ] output: active
[INFO    ] Executing command 'systemctl --full list-unit-files | col -b' in directory '/root'
[INFO    ] stdout: UNIT FILE                   STATE
proc-sys-fs-binfmt_misc.automount       static
org.freedesktop.hostname1.busname       static
org.freedesktop.locale1.busname           static
org.freedesktop.login1.busname           static
org.freedesktop.machine1.busname       static
org.freedesktop.timedate1.busname       static
dev-hugepages.mount               static
dev-mqueue.mount               static
proc-sys-fs-binfmt_misc.mount           static
sys-fs-fuse-connections.mount           static
sys-kernel-config.mount               static
sys-kernel-debug.mount               static
tmp.mount                   static
systemd-ask-password-console.path       static
systemd-ask-password-wall.path           static
session-368.scope               static
session-415.scope               static
session-785.scope               static
session-787.scope               static
autovt@.service                   disabled
blk-availability.service           disabled
console-getty.service               disabled
console-shell.service               disabled
container-getty@.service           static
cronie.service                   disabled
dbus-org.freedesktop.hostname1.service       static
dbus-org.freedesktop.locale1.service       static
dbus-org.freedesktop.login1.service       static
dbus-org.freedesktop.machine1.service       static
dbus-org.freedesktop.timedate1.service       static
dbus.service                   static
debug-shell.service               disabled
dhcpcd.service                   disabled
dhcpcd@.service                   disabled
dm-event.service               disabled
emergency.service               static
ftpd.service                   disabled
getty@.service                   enabled
git-daemon@.service               static
gpm.service                   disabled
haveged.service                   disabled
httpd.service                   enabled
initrd-cleanup.service               static
initrd-parse-etc.service           static
initrd-switch-root.service           static
initrd-udevadm-cleanup-db.service       static
ip6tables.service               disabled
iptables.service               disabled
kmod-static-nodes.service           static
krb5-kadmind.service               disabled
krb5-kdc.service               disabled
krb5-kpropd.service               disabled
krb5-kpropd@.service               static
logrotate.service               static
lvm2-lvmetad.service               disabled
lvm2-monitor.service               disabled
lvm2-pvscan@.service               static
man-db.service                   static
mdadm.service                   disabled
mdmon@.service                   static
mkinitcpio-generate-shutdown-ramfs.service static
mysqld.service                   enabled
neo4j.service                   disabled
netctl-auto@.service               disabled
netctl-ifplugd@.service               disabled
netctl-sleep.service               disabled
netctl.service                   disabled
netctl@.service                   static
netctl@ethernet\x2dstatic.service       enabled
nginx.service                   enabled
nscd.service                   disabled
ntpd.service                   enabled
ntpdate.service                   disabled
pkgstats.service               static
postgresql.service               enabled
ppp@.service                   disabled
quotaon.service                   static
redis.service                   enabled
rescue.service                   static
rlogin@.service                   static
rsh@.service                   static
rsyncd.service                   disabled
rsyncd@.service                   static
salt-master.service               disabled
salt-minion.service               disabled
salt-syndic.service               disabled
serial-getty@.service               disabled
shadow.service                   static
sshd.service                   enabled
sshd@.service                   static
sshdgenkeys.service               enabled
systemd-ask-password-console.service       static
systemd-ask-password-wall.service       static
systemd-backlight@.service           static
systemd-binfmt.service               static
systemd-fsck-root.service           static
systemd-fsck@.service               static
systemd-halt.service               static
systemd-hibernate.service           static
systemd-hostnamed.service           static
systemd-hybrid-sleep.service           static
systemd-initctl.service               static
systemd-journal-flush.service           static
systemd-journal-gatewayd.service       static
systemd-journald.service           static
systemd-kexec.service               static
systemd-localed.service               static
systemd-logind.service               static
systemd-machined.service           static
systemd-modules-load.service           static
systemd-networkd-wait-online.service       enabled
systemd-networkd.service           enabled
systemd-nspawn@.service               disabled
systemd-poweroff.service           static
systemd-quotacheck.service           static
systemd-random-seed.service           static
systemd-readahead-collect.service       disabled
systemd-readahead-done.service           static
systemd-readahead-drop.service           disabled
systemd-readahead-replay.service       disabled
systemd-reboot.service               static
systemd-remount-fs.service           static
systemd-resolved.service           disabled
systemd-rfkill@.service               static
systemd-shutdownd.service           static
systemd-suspend.service               static
systemd-sysctl.service               static
systemd-timedated.service           static
systemd-timesyncd.service           disabled
systemd-tmpfiles-clean.service           static
systemd-tmpfiles-setup-dev.service       static
systemd-tmpfiles-setup.service           static
systemd-udev-settle.service           static
systemd-udev-trigger.service           static
systemd-udevd.service               static
systemd-update-utmp-runlevel.service       static
systemd-update-utmp.service           static
systemd-user-sessions.service           static
systemd-vconsole-setup.service           static
talk.service                   static
telnet@.service                   static
user@.service                   static
uuidd.service                   static
-.slice                       static
machine.slice                   static
system.slice                   static
user.slice                   static
dbus.socket                   static
dm-event.socket                   static
git-daemon.socket               disabled
krb5-kpropd.socket               disabled
lvm2-lvmetad.socket               static
rlogin.socket                   disabled
rsh.socket                   disabled
rsyncd.socket                   disabled
sshd.socket                   disabled
syslog.socket                   static
systemd-initctl.socket               static
systemd-journal-gatewayd.socket           disabled
systemd-journald.socket               static
systemd-shutdownd.socket           static
systemd-udevd-control.socket           static
systemd-udevd-kernel.socket           static
talk.socket                   disabled
telnet.socket                   disabled
uuidd.socket                   disabled
basic.target                   static
bluetooth.target               static
busnames.target                   static
cryptsetup.target               static
ctrl-alt-del.target               disabled
default.target                   static
emergency.target               static
final.target                   static
getty.target                   static
graphical.target               static
halt.target                   disabled
hibernate.target               static
hybrid-sleep.target               static
initrd-fs.target               static
initrd-root-fs.target               static
initrd-switch-root.target           static
initrd.target                   static
kexec.target                   disabled
local-fs-pre.target               static
local-fs.target                   static
multi-user.target               static
network-online.target               static
network.target                   static
nss-lookup.target               static
nss-user-lookup.target               static
paths.target                   static
poweroff.target                   disabled
printer.target                   static
reboot.target                   disabled
remote-fs-pre.target               static
remote-fs.target               enabled
rescue.target                   disabled
rpcbind.target                   static
shutdown.target                   static
sigpwr.target                   static
sleep.target                   static
slices.target                   static
smartcard.target               static
sockets.target                   static
sound.target                   static
suspend.target                   static
swap.target                   static
sysinit.target                   static
system-update.target               static
time-sync.target               static
timers.target                   static
umount.target                   static
logrotate.timer                   static
man-db.timer                   static
pkgstats.timer                   static
shadow.timer                   static
systemd-readahead-done.timer           static
systemd-tmpfiles-clean.timer           static

219 unit files listed.
[INFO    ] Executing command 'systemctl is-enabled sshd.service' in directory '/root'
[INFO    ] output: enabled
[INFO    ] Service sshd is already enabled, and is in the desired state
[INFO    ] Completed state [sshd] at time 11:58:07.510376
local:
----------
          ID: yajl
    Function: pkg.installed
      Result: True
     Comment: Package yajl is already installed
     Changes:
----------
          ID: ntp
    Function: pkg.installed
      Result: True
     Comment: Package ntp is already installed
     Changes:
----------
          ID: ntp
    Function: service.running
        Name: ntpd
      Result: True
     Comment: Service ntpd is already enabled, and is in the desired state
     Changes:
----------
          ID: ssh
    Function: pkg.installed
        Name: openssh
      Result: True
     Comment: Package openssh is already installed
     Changes:
----------
          ID: ssh
    Function: service.running
        Name: sshd
      Result: True
     Comment: Service sshd is already enabled, and is in the desired state
     Changes:

Summary
------------
Succeeded: 5
Failed:    0
------------
Total:     5
[root@www salt]#

 

 

 

5. Start the salt-master service and enable it:

 

# systemctl start salt-master
# systemctl enable salt-master
ln -s '/usr/lib/systemd/system/salt-master.service' '/etc/systemd/system/multi-user.target.wants/salt-master.service'

 

 

Now you're ready to start setting up your first minion.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Linux: Some maintenance

Your linux distribution may run some maintenance jobs or checks daily and you may get things like the following in your email:

 

'<USERNAME>' is a member of the 'httpd' group in /etc/group but not in /etc/gshadow

The grpconv command creates gshadow from group and an optionally existing gshadow.

execute:

$ sudo grpconv

 

 

user 'jira': directory '/home/jira' does not exist

Simple create the folder and change its permissions:

$ sudo mkdir /home/jira
$ sudo chown jira:jira /home/jira -Rfv

 

 

 

Linode: Update your ArchLinux VPS

connect 2 sessions on your Linode

 

On the second, run this:

dd if=/dev/urandom of=/dev/null

 

on the first one, do the following:

pacman-key --init

 

You can stop the dd process on the second connnection

pacman-key --populate archlinux

pacman-key --refresh-keys

 

Update pacman

pacman -Sy pacman

 

Update your installation

pacman -Syu

 

Enjoy a quick cofee

 

That should do it

 

 

 

 

Raspberry Pi: mount flash disks at boot

Now that I got a little time to work on my Raspberry Pi, I decided to have 2 2GB flash drives mounted at boot to save some write cycles on the SD card:

After a few failed times, I googled for a while and the important bit is the 6th field in your /etc/fstab file. Here's mine:

 

[root@pi ~]# cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
/dev/mmcblk0p1  /boot           vfat    defaults        0       0

/dev/sda1       /var       ext4    defaults          0       2
/dev/sda2       /data      ext4    defaults          0       2
/dev/sda3       /tmp       ext4    defaults          0       2
/dev/sdb1       /home      ext4    defaults          0       2

 

The "2" in the 6th field tells the kernel to wait for the drive to be available before trying to mount it.

Here's the "mount" command output:

/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sdb1 on /home type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
/dev/sda2 on /data type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
/dev/sda3 on /tmp type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
/dev/sda1 on /var type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)

 

 

 

ArchLinux: set of fonts I’m using on my Asus N73SV laptop

This is the current set of fonts I've installed on my Asus N73SV laptop running Archlinux.

 

sudo pacman -Sy font-bitstream-speedo bdf-unifont artwiz-fonts cantarell-fonts dina-font gsfonts monaco-linux-font opendesktop-fonts tamsyn-font terminus-font ttf-bitstream-vera ttf-cheapskate ttf-dejavu ttf-droid ttf-freefont ttf-inconsolata ttf-sazanami ttf-ubuntu-font-family xorg-fonts-100dpi xorg-fonts-75dpi xorg-fonts-misc xorg-fonts-type1

 

Let me know in the comments if you have any contributions to the list.

 

Linux Hardware Compatibility: W311MI

This is just to let others know what piece of hardware worked during my linux experiments:

 

 

dmesg output

<5>[    0.000000] Linux version 2.6.31.6_SMP_820 (bdietrich@brad-ux) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #96 SMP Tue                Feb 8 12:08:54 PST 2011
<4>[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
<4>[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
<4>[    0.000000] Machine: Oxsemi NAS
<5>[    0.000000] 1 memory region
<4>[    0.000000] Ignoring unrecognised tag 0x00000000
<4>[    0.000000] Memory policy: ECC disabled, Data cache writealloc
<7>[    0.000000] On node 0 totalpages: 32768
<7>[    0.000000] free_area_init_node: node 0, pgdat c0401080, node_mem_map c0424000
<7>[    0.000000]   Normal zone: 256 pages used for memmap
<7>[    0.000000]   Normal zone: 0 pages reserved
<7>[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
<4>[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
<5>[    0.000000] Kernel command line: root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x0               0,0×30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
<4>[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
<6>[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
<6>[    0.000000] Memory: 128MB = 128MB total
<5>[    0.000000] Memory: 125496KB available (3712K code, 275K data, 120K init, 0K highmem)
<6>[    0.000000] Hierarchical RCU implementation.
<6>[    0.000000] NR_IRQS:96
<4>[    0.000000] OX820_RPS_init_irq: interrupts 64 to 96
<4>[    0.010000] Console: colour dummy device 80×30
<6>[    0.010000] console [ttyS0] enabled
<6>[    0.020000] Calibrating delay loop… 279.34 BogoMIPS (lpj=1396736)
<6>[    0.260000] Security Framework initialized
<4>[    0.260000] Mount-cache hash table entries: 512
<6>[    0.270000] CPU: Testing write buffer coherency: ok
<6>[    0.270000] Calibrating local timer… 350.00MHz.
<4>[    0.340000] CPU1: Booted secondary processor
<6>[    0.440000] Calibrating delay loop… 279.34 BogoMIPS (lpj=1396736)
<6>[    0.670000] Brought up 2 CPUs
<6>[    0.680000] SMP: Total of 2 processors activated (558.69 BogoMIPS).
<6>[    0.690000] NET: Registered protocol family 16
<6>[    0.690000] Number of DMA channels = 4, version = 4
<6>[    0.700000] Reserving a DMA channel for DirectRAID
<6>[    0.700000] Allocating 389 SRAM generic DMA descriptors
<4>[    0.720000] bio: create slab <bio-0> at 0
<5>[    0.730000] SCSI subsystem initialized
<7>[    0.730000] libata version 3.00 loaded.
<6>[    0.750000] NET: Registered protocol family 2
<6>[    0.750000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.760000] Switched to NOHz mode on CPU #0
<6>[    0.760000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
<6>[    0.760000] Switched to NOHz mode on CPU #1
<6>[    0.770000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
<6>[    0.780000] TCP: Hash tables configured (established 4096 bind 4096)
<6>[    0.780000] TCP reno registered
<6>[    0.790000] NET: Registered protocol family 1
<4>[    0.790000] Create fragment cache
<6>[    0.800000] fuse init (API version 7.12)
<6>[    0.800000] msgmni has been set to 245
<6>[    0.810000] alg: No test for stdrng (krng)
<6>[    0.810000] io scheduler noop registered
<6>[    0.820000] io scheduler anticipatory registered
<6>[    0.820000] io scheduler deadline registered
<6>[    0.830000] io scheduler cfq registered (default)
<6>[    0.850000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
<6>[    0.860000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
<6>[    0.880000] brd: module loaded
<6>[    0.890000] loop: module loaded
<6>[    0.890000] ox820sata: OX820 sata core.
<6>[    0.890000] scsi0 : oxnassata
<6>[    0.900000] scsi1 : oxnassata
<6>[    0.900000] ata1: SATA max UDMA/133 irq 50
<6>[    0.910000] ata2: SATA max UDMA/133 irq 50
<3>[    0.910000] ox820sata: reseting SATA core
<6>[    1.270000] ata1: SATA link down (SStatus 0 SControl 300)
<3>[    1.270000] ox820sata: reseting SATA core
<6>[    1.630000] ata2: SATA link down (SStatus 0 SControl 300)
<6>[    1.630000] tun: Universal TUN/TAP device driver, 1.6
<6>[    1.640000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
<4>[    1.640000] NAND: Page read time 40ms
<6>[    1.650000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
<6>[    1.660000] Scanning device for bad blocks
<4>[    1.670000] Bad eraseblock 225 at 0x000001c20000
<4>[    1.680000] Bad eraseblock 273 at 0x000002220000
<5>[    1.740000] Creating 2 MTD partitions on "NAND 128MiB 3,3V 8-bit":
<5>[    1.750000] 0x000000000000-0x000000e00000 : "boot"
<5>[    1.750000] 0x000000e00000-0x000008000000 : "rootfs"
<5>[    1.760000] UBI: attaching mtd2 to ubi0
<5>[    1.760000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
<5>[    1.770000] UBI: logical eraseblock size:    129024 bytes
<5>[    1.770000] UBI: smallest flash I/O unit:    2048
<5>[    1.780000] UBI: sub-page size:              512
<5>[    1.780000] UBI: VID header offset:          512 (aligned 512)
<5>[    1.790000] UBI: data offset:                2048
<5>[    2.200000] UBI: attached mtd2 to ubi0
<5>[    2.200000] UBI: MTD device name:            "rootfs"
<5>[    2.210000] UBI: MTD device size:            114 MiB
<5>[    2.210000] UBI: number of good PEBs:        910
<5>[    2.220000] UBI: number of bad PEBs:         2
<5>[    2.220000] UBI: max. allowed volumes:       128
<5>[    2.220000] UBI: wear-leveling threshold:    4096
<5>[    2.230000] UBI: number of internal volumes: 1
<5>[    2.230000] UBI: number of user volumes:     1
<5>[    2.240000] UBI: available PEBs:             0
<5>[    2.240000] UBI: total number of reserved PEBs: 910
<5>[    2.250000] UBI: number of PEBs reserved for bad PEB handling: 9
<5>[    2.250000] UBI: max/mean erase counter: 2/0
<5>[    2.260000] UBI: image sequence number: 0
<5>[    2.260000] UBI: background thread "ubi_bgt0d" started, PID 275
<6>[    2.270000] mice: PS/2 mouse device common for all mice
<6>[    2.270000] TCP cubic registered
<6>[    2.280000] NET: Registered protocol family 10
<6>[    2.280000] NET: Registered protocol family 17
<6>[    2.290000] RPC: Registered udp transport module.
<6>[    2.290000] RPC: Registered tcp transport module.
<5>[    2.520000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
<5>[    2.530000] UBIFS: file system size:   114315264 bytes (111636 KiB, 109 MiB, 886 LEBs)
<5>[    2.540000] UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
<5>[    2.540000] UBIFS: media format:       w4/r0 (latest is w4/r0)
<5>[    2.550000] UBIFS: default compressor: zlib
<5>[    2.550000] UBIFS: reserved for root:  0 bytes (0 KiB)
<4>[    2.560000] VFS: Mounted root (ubifs filesystem) on device 0:10.
<6>[    2.570000] Freeing init memory: 120K
<5>[    3.440000] Probing for Synopsis GMAC, unit 0
<6>[    3.450000] eth0: Tuning GMAC 0 RGMII timings
<6>[    3.450000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
<5>[    3.460000] eth0: GMAC ver = 53, vendor ver = 18 at 0xed400000, IRQ 40
<5>[    3.470000] eth0: Found PHY at address 3, type 0x001cc914 -> 10/100/1000
<5>[    3.480000] eth0: Ethernet addr: 00:30:e0:00:00:00
<6>[    3.500000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
<6>[    3.500000] Offload is not active on eth0
<6>[    3.510000] Alloc'ing ARM descs 10240 bytes
<6>[    3.510000] eth0: Resetting GMAC
<6>[    3.520000] eth0: GMAC reset complete
<6>[    3.520000] eth0: Setting Rx flow control thresholds for LAN port
<6>[    4.080000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
<6>[    4.580000] eth0: link down
<6>[    6.540000] ADDRCONF(NETDEV_UP): eth0: link is not ready
<6>[    8.080000] eth0: link up, 1000Mbps, full-duplex, using pause, lpa 0xCDE1
<6>[    8.080000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
<6>[   10.690000] usbcore: registered new interface driver usbfs
<6>[   10.700000] usbcore: registered new interface driver hub
<6>[   10.710000] usbcore: registered new device driver usb
<6>[   10.760000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>[   10.770000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
<6>[   10.780000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
<6>[   10.810000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
<6>[   10.830000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
<6>[   10.840000] usb usb1: configuration #1 chosen from 1 choice
<6>[   10.840000] hub 1-0:1.0: USB hub found
<6>[   10.850000] hub 1-0:1.0: 2 ports detected
<6>[   10.940000] Initializing USB Mass Storage driver…
<6>[   10.940000] usbcore: registered new interface driver usb-storage
<6>[   10.950000] USB Mass Storage support registered.
<6>[   11.170000] usb 1-1: new high speed USB device using oxnas-ehci and address 2
<4>[   11.330000] ufsd: module license 'Commercial product' taints kernel.
<4>[   11.340000] Disabling lock debugging due to kernel taint
<6>[   11.470000] usb 1-1: configuration #1 chosen from 1 choice
<6>[   11.560000] hub 1-1:1.0: USB hub found
<6>[   11.570000] hub 1-1:1.0: 4 ports detected
<5>[   11.610000] ufsd: driver 8.3 (008_A) with acl LBD=ON with ioctl loaded at bf078000
<5>[   11.610000] NTFS read/write support included
<5>[   11.610000] Hfs+/HfsX read/write support included
<6>[   11.870000] usb 1-1.2: new high speed USB device using oxnas-ehci and address 3
<4>[   11.960000] rtusb init rt2870 —>
<6>[   11.970000] usbcore: registered new interface driver rt2870
<4>[   12.000000] Cloud Engines XCE Init [Version: 2.5.9.1]
<6>[   12.010000] XCE: CPU MEMORY MAP:
<6>[   12.010000] XCE:   — 0x00001000 – 0xbeffffff (3055 MB)  User Space Mappings
<6>[   12.020000] XCE:   — 0xbf000000 – 0xbfffffff (  16 MB)  Kernel module space
<6>[   12.020000] XCE:   — 0xc0000000 – 0xc7ffffff ( 128 MB)  Kernel direct-mapped ram
<6>[   12.030000] XCE:   — 0xc8800000 – 0xecffffff ( 584 MB)  Kernel vmalloc space
<6>[   12.040000] XCE:   — 0xed000000 – 0xfeffffff ( 287 MB)  Kernel platform space
<6>[   12.040000] XCE: CPU FEATURES:
<6>[   12.050000] XCE:   — I Cache:         enabled
<6>[   12.050000] XCE:   — D Cache:         enabled
<6>[   12.060000] XCE:   — Branch Predict:  disabled
<6>[   12.060000] XCE:   — MMU:             enabled
<6>[   12.070000] XCE:   — Alignment Abort: disabled
<6>[   12.070000] XCE: BLPARAMS: Locating parameter block…
<6>[   12.080000] XCE: BLPARAMS: reading 2048 bytes @ a0000
<6>[   12.080000] XCE: Loaded Property Size: 2048
<6>[   12.090000] XCE:    – 'cesvcid' -> '7BR8RPYW6XVXK3F2PKS978HRTN'
<6>[   12.090000] XCE:    – 'ceboardver' -> 'PPV3'
<4>[   12.100000] XCE: No board spec found matching boardid 'PPV3' — Using 'PPRO1'
<6>[   12.100000] XCE: Current GPIO State:
<6>[   12.110000] XCE:  GPIO A input:        0xf679fff7
<6>[   12.110000] XCE:  GPIO A OE status:    0x00000000
<6>[   12.120000] XCE:  GPIO A IRQ enable:   0x00000000
<6>[   12.120000] XCE:  GPIO A IRQ event:    0x00000000
<6>[   12.130000] XCE:  GPIO A output state: 0x00000000
<6>[   12.130000] XCE:  GPIO B input:        0x0003ffff
<6>[   12.140000] XCE:  GPIO B OE status:    0x00030000
<6>[   12.140000] XCE:  GPIO B IRQ enable:   0x00000000
<6>[   12.150000] XCE:  GPIO B IRQ event:    0x00000000
<6>[   12.150000] XCE:  GPIO B output state: 0x00030000
<6>[   12.290000] XCE: BLPARAMS: Locating parameter block…
<6>[   12.290000] XCE: BLPARAMS: reading 2048 bytes @ a0000
<6>[   12.300000] XCE: BLPARAMS: reading 2048 bytes @ a0800
<6>[   12.310000] XCE: BLPARAMS: reading 2048 bytes @ a1000
<6>[   12.310000] XCE: BLPARAMS: reading 2048 bytes @ a1800
<6>[   13.990000] usb 1-1.2: configuration #1 chosen from 1 choice
<6>[   14.010000] scsi2 : SCSI emulation for USB Mass Storage devices
<7>[   14.020000] usb-storage: device found at 3
<7>[   14.020000] usb-storage: waiting for device to settle before scanning
<6>[   17.800000] XCE: XCE: LED -> CONNECTED
<7>[   18.200000] eth0: no IPv6 routers present
<5>[   19.020000] scsi 2:0:0:0: Direct-Access        Mass  Storage Device        PQ: 0 ANSI: 0
<5>[   19.050000] sd 2:0:0:0: [sda] 625142446 512-byte logical blocks: (320 GB/298 GiB)
<7>[   19.050000] usb-storage: device scan complete
<5>[   19.050000] sd 2:0:0:0: [sda] Write Protect is off
<7>[   19.060000] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
<3>[   19.060000] sd 2:0:0:0: [sda] Assuming drive cache: write through
<3>[   19.070000] sd 2:0:0:0: [sda] Assuming drive cache: write through
<6>[   19.070000]  sda: sda1
<3>[   19.220000] sd 2:0:0:0: [sda] Assuming drive cache: write through
<5>[   19.220000] sd 2:0:0:0: [sda] Attached SCSI disk
<5>[   19.930000] ufsd: use builtin utf8 instead of kernel utf8
<5>[   20.130000] ufsd: sda1 without journal
<6>[  517.820000] XCE: BLPARAMS: Locating parameter block…
<6>[  517.830000] XCE: BLPARAMS: reading 2048 bytes @ a0000
<6>[  517.840000] XCE: BLPARAMS: reading 2048 bytes @ a0800
<6>[  517.840000] XCE: BLPARAMS: reading 2048 bytes @ a1000
<6>[  517.850000] XCE: BLPARAMS: reading 2048 bytes @ a1800
 

 

.

 

Setting up a Debian box for development: linux installation

This will be a work in progress series of posts to help people get into the amazing world of developing applications on the web.

Will also give me opportunity to fine tune my knowledge.

 

This will be the L in LAMP, here we go:

 

1. Download a Debian ISO file (6.0.4 has just been release as of this writing)

2. Download LinuxLive USB Creator from http://www.linuxliveusb.com/

3. Run LiLi and create a bootable USB stick with the ISO file you downloaded from Debian website

Choose to format the key in FAT32

 

After following a default installation procedure…. so we're all starting from the same page.

install a few packages:

 

# apt-get update

# apt-get upgrade –show-upgraded

# apt-get install aptitude

# aptitude install sudo rsync

 

 

Linux:: SSH configuration file

To save some typing you can create aliases to the servers you frequently access via ssh. This can be accomplished by either editing the global file ( /etc/ssh/ssh_config ), if you’re root and and to make changes for all the users, or your own config file ( $HOME/.ssh/config ).

Follow the example, and remember to customize to your needs

Host *
Compression yes
Port 22
ForwardAgent yes

Host sample
HostName host.sample_of_a_very_long_host_name.com
User joe
ForwardAgent yes
Port 22
Compression yes

Now you can ssh into that server using:

ssh sample

  • IGlr