Configure Subdomains for Localhost under Debian

Angelegt von suung Wed, 22 Jun 2011 17:30:00 GMT

Our  Content Management Lite is great, but still requires domains or subdomains to seperate the different sites.

That's annoying, when you develop locally.

Here is a fix for debian linux, that will definetly be useful for you, if you are doing similar thing (developing websites) or just want to organize your machine better.

 

 

suung@q2:~$ sudo nano /etc/hosts

127.0.0.1       localhost       localhost.localdomain

127.0.0.1       bs.localhost    bs.localhost.localdomain

127.0.0.1       fv.localhost    fv.localhost.localdomain

127.0.0.1       ca.localhost    ca.localhost.localdomain

127.0.0.1       ad.localhost    ad.localhost.localdomain
 
 suung@q2:~$ ping bsa.localhost

ping: unknown host bsa.localhost
 
 suung@q2:~$ ping bs.localhost

PING bs.localhost (127.0.0.1) 56(84) bytes of data.

64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.087 ms

64 bytes from localhost (127.0.0.1): icmp_req=2 ttl=64 time=0.058 ms

Debian Squeeze ist fertig

Angelegt von niklas Sun, 06 Feb 2011 22:13:00 GMT

Nach 2 langen Jahren, wurde nun heute Debian 6.0 "Squeeze" released! Damit darf sich lenny offiziell als oldstable bezeichnen. Also, alle terminals auf und dann:
  • laeuft ueberhaupt lenny? vllt. auch noch etch?
    grep lenny /etc/apt/sources.list
  • sicherstellen dass wir unsere aktuelle distro auf neuestem stand haben
    apt-get update && apt-get upgrade
  • lenny sources durch squeeze ersetzen
    cp /etc/apt/sources.list{,.bak} && sed 's/lenny/squeeze/g' /etc/apt/sources.list.bak > /etc/apt/sources.list
  • dist-upgrade ausfuehren
    apt-get dist-upgrade
Und fertig! Uebrigens: Mit dem neuen Release hat debian.org auch einen neuen look erhalten.

Show the tree of all your processes

Angelegt von suung Fri, 10 Dec 2010 19:21:00 GMT

 

suung@q2:~$ pstree

init─┬─apache2───5*[apache2]

     ├─chrome─┬─chrome

     │        └─23*[{chrome}]

     ├─chrome───3*[chrome───{chrome}]

     ├─cron

     ├─cupsd

     ├─2*[dbus-daemon]

     ├─dbus-launch

     ├─dnsmasq

     ├─emacs

     ├─evinced

     ├─gconfd-2

     ├─gdm───gdm─┬─Xorg

     │           └─awesome───ssh-agent

     ├─6*[getty]

     ├─gmpc

     ├─gnome-terminal─┬─2*[bash]

     │                ├─bash───pstree

     │                ├─gnome-pty-helpe

     │                └─{gnome-terminal}

     ├─gvfs-afc-volume───{gvfs-afc-volum}

     ├─gvfs-gdu-volume

     ├─gvfs-gphoto2-vo

     ├─gvfsd

     ├─gvfsd-metadata

     ├─hald─┬─hald-runner─┬─hald-addon-acpi

     │      │             ├─hald-addon-inpu

     │      │             └─2*[hald-addon-stor]

     │      └─{hald}

     ├─libvirtd───6*[{libvirtd}]

     ├─mysqld_safe─┬─logger

     │             └─mysqld───10*[{mysqld}]

     ├─ntpd

     ├─openvpn

     ├─rsyslogd───3*[{rsyslogd}]

     ├─soffice.bin───4*[{soffice.bin}]

     ├─sshd

     ├─udevd───2*[udevd]

     ├─udisks-daemon─┬─udisks-daemon

     │               └─{udisks-daemon}

     ├─xchat───{xchat}

     └─xdg-open───run-mailcap───sh───evince───{evince}
 
 
This is e.g. useful, if you want to find parent processes of zombies.

How to write a good bugreport

Angelegt von suung Mon, 27 Sep 2010 19:03:00 GMT

Found this snippet here in our internal tech support issue tracker:

instructions for debian

  • create a backtrace
  • get configuration details
    uname -a
    ls -l /lib/libc.so.6
    dpkg -s libc6 | grep ^Version
    
  • send a debian bug report:
    sudo apt-get install reportbug ; reportbug
    • answer questions and add a problem description when asked (what you executed and its output):
      package:
      version:
      
      problem description:
      [describe the problem shortly]
      
      [add the backtrace here]
      
      configuration details:
      [add output of the commands above]
      
      

example for hal (debian/sid@gibson)

From: coders | brueckenschlaeger <coders@brueckenschlaeger.de>
To: Debian Bug Tracking System <538698@bugs.debian.org>
Subject: Re: Bug#538698: Crash during install and init
Date: Wed, 05 Aug 2009 12:01:05 +0000

Package: hal
Version: 0.5.12~git20090406.46dc48-2
Severity: normal

same problem on x86-K7 2.6.26 debian/sid
this report was created with report bug.

Setting up hal (0.5.12~git20090406.46dc48-2) ...
Reloading system message bus config...done.
Starting Hardware abstraction layer: haldinvoke-rc.d: initscript hal,
action "start" failed.
dpkg: error processing hal (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up kdelibs5-data (4:4.3.0-1) ...
dpkg: dependency problems prevent configuration of xserver-xorg:
 xserver-xorg depends on hal (>= 0.5.12~git20090406); however:
  Package hal is not configured yet.
dpkg: error processing xserver-xorg (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 hal
 xserver-xorg
E: Sub-process /usr/bin/dpkg returned an error code (1)

gdb /usr/sbin/hald
GNU gdb (GDB) 6.8.50.20090628-cvs-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) set pagination 0
(gdb) run
Starting program: /usr/sbin/hald 
[Thread debugging using libthread_db enabled] 
Program exited with code 02.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-gibson (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hal depends on:
ii  acl          2.2.47-3                    Access control list utilities
ii  adduser      3.110                       add and remove users and
groups
ii  consolekit   0.3.0-3                     framework for defining and
trackin
ii  dbus         1.2.16-2                    simple interprocess messaging
syst
ii  hal-info     20090309-1                  Hardware Abstraction Layer -
fdi f
ii  libc6        2.9-23                      GNU C Library: Shared
libraries
ii  libdbus-1-3  1.2.16-2                    simple interprocess messaging
syst
ii  libdbus-glib 0.82-1                      simple interprocess messaging
syst
ii  libexpat1    2.0.1-4                     XML parsing C library -
runtime li
ii  libgcc1      1:4.4.1-1                   GCC support library
ii  libglib2.0-0 2.20.4-1                    The GLib library of C routines
ii  libhal-stora 0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer -
share
ii  libhal1      0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer -
share
ii  libpolkit2   0.9-4                       library for accessing
PolicyKit
ii  libsmbios2   2.0.3.dfsg-1                Provide access to (SM)BIOS
informa
ii  libstdc++6   4.4.1-1                     The GNU Standard C++ Library
v3
ii  libusb-0.1-4 2:0.1.12-13                 userspace USB programming
library
ii  libvolume-id 0.141-1                     libvolume_id shared library
ii  lsb-base     3.2-23                      Linux Standard Base 3.2 init
scrip
ii  mount        2.15.1~rc1-1                Tools for mounting and
manipulatin
ii  pciutils     1:3.1.3-1                   Linux PCI Utilities
ii  pm-utils     1.2.5-4                     utilities and scripts for
power ma
ii  policykit    0.9-4                       framework for managing
administrat
ii  udev         0.141-1                     /dev/ and hotplug management
daemo
ii  usbutils     0.84-1                      Linux USB utilities

Versions of packages hal recommends:
ii  eject           2.1.5+deb1+cvs20081104-6 ejects CDs and operates
CD-Changer
ii  libsmbios-bin   2.0.3.dfsg-1             Provide access to (SM)BIOS
informa

Versions of packages hal suggests:
pn  gnome-device-manager          <none>     (no description available)

-- no debconf information

$ uname -a
Linux gibson 2.6.26 #1 SMP Tue Jul 14 12:17:46 CEST 2009 i686 GNU/Linux
$ ls -l /lib/libc.so.6
lrwxrwxrwx 1 root root 11 2009-08-04 06:20 /lib/libc.so.6 -> libc-2.9.so
$ dpkg -s libc6 | grep ^Version
Version: 2.9-23

as answer to

Followup 1 - #538698: Crash during install and init

From: Michael Biebl <biebl@debian.org>
Subject: Re: Bug#538698: Crash during install and init
Date: Wed, 05 Aug 2009 03:28:34 +0200

Juhapekka Tolvanen wrote:
> 
> Package: hal
> Version: 0.5.12~git20090406.46dc48-2
> Severity: grave
> 
> 
> This is what happens during installation:
> 
> ---- Clip here ----
> Selecting previously deselected package hal-info.
> (Reading database ... 589821 files and directories currently installed.)
> Unpacking hal-info (from .../hal-info_20090309-1_all.deb) ...
> Selecting previously deselected package hal.
> Unpacking hal (from .../hal_0.5.12~git20090406.46dc48-2_i386.deb) ...
> Processing triggers for man-db ...
> Setting up hal-info (20090309-1) ...
> Setting up hal (0.5.12~git20090406.46dc48-2) ...
> Reloading system message bus config...done.
> Starting Hardware abstraction layer: haldinvoke-rc.d: initscript hal, action
> "start" failed.
> dpkg: error processing hal (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
>  hal
> E: Sub-process /usr/bin/dpkg returned an error code (1)

...

> That's it. What should I do now?

Please follow the instructions on the wiki [1] and try to get a proper backtrace.
We had crashes before due to broken fdi cache files, so you could try and
remove/var/cache/hald/fdi-cache (make a copy before you rm it).

Michael

[1] http://wiki.debian.org/HowToGetABacktrace

Debian / Gnome Git Uis

Angelegt von andi Sat, 22 May 2010 02:57:00 GMT

Today - or better said - tonight, i checked out every git gui tool that I found on the net. My intention was not really to find a git gui for coders to use, but rather for people who never used a shell, and have no interest in viewing diffs of code - because they only want to commit their changed documents or images.

I tried out git-gui, git-cola, qgit, tig, and some others i found in a list provided here, most of which i was able to find in my apt-cache. The one with the less frightening user interface was giggle, but i had mayor problems with adding files for staging with each of those tools, except of git-gui. And none of them could anyhow keep up with the demand of a graphical tool that makes it easy for the the everyday-computer-user to keep track of unstaged and uncommited changes, and new changes waiting to be pulled.

Thinking about it, it would be the most convenient solution to add some git functionality to nautilus. People could work with their file-browser as usual, but would easily see which files are untracked, unstaged and or uncommited. It could be even helpful to commit and push files at the same time, to decrease confusion.

I found a feature request in the ubuntu forums, but there was nothing really implemented. I was only able to find some nautilus-git-scripts on github - they do only add a new context to the right-click menu, allowing to receive ‘git status’, commit staged changes, and some other basic commands. It did not even allow me to add files for staging, or untracked files to the repository.

Well - it seems there is no good one yet, but we will figure out if there are easy ways to extend nautilus behavior in the way I imagine, or try to go for another solution…

i’ll update.