Re: [arch-general] Systemd email notifications

2014-02-13 Thread Damien Churchill
On 13 February 2014 13:35, Paul Gideon Dann pdgid...@gmail.com wrote:
 On Thursday 13 Feb 2014 14:21:36 ushi wrote:
 Am 13.02.2014 13:04, schrieb Paul Gideon Dann:
  Hello all,
 
  Does anyone know of any standard system for receiving notifications
  from systemd for unit state changes?  I currently use Monit for the
  monitoring of many processes, and it'll e-mail me when things
  happen (e.g. a process was restarted).  Since switching to systemd,
  it's felt a bit silly that for several processes, I'm having Monit
  monitor them simply because systemd is unable to tell me it
  restarted a unit.  Monit isn't actually required to keep those
  processes alive as it once was, because systemd can do that.
 
  Paul

 Hey Paul,

 Check out OnFailure=

   [Unit]
   Description=HTTP Service
   OnFailure=mail-root@http.service
   ...

 The mail-root@.service is a generic oneshot service that mails you
 some stuff.

   [Unit]
   Description=Mailer

   [Service]
   Type=oneshot
   ExecStart=/path/to/my/mail-script %i

   [Install]
   WantedBy=multi-user.target

 And your mail-script is somthing like...

   #!/usr/bin/env sh

   systemctl status ${1}.service | \
   mail -s Failed Service: ${1} ad...@example.com

 See:
 http://www.freedesktop.org/software/systemd/man/systemd.unit.html#OnFailure=

 Thanks ushi, that's certainly something.  It looks promising for custom unit 
 files, but not
 so great for catching unexpected unit failures.  I'll definitely keep that 
 one in mind,
 though.

You could use unit overrides[0] to add the OnFailure to provided
units. So should be able to set it up for any service you are
interested in receiving notifications for, I would assume.

[0] https://wiki.archlinux.org/index.php/Systemd#Editing_provided_unit_files


Re: [arch-general] Systemd with encrypted Btrfs

2012-07-24 Thread Damien Churchill
Hi,

On 24 July 2012 11:25, Aurko Roy roy.au...@gmail.com wrote:

 Thanks for the clarification. Also I was wondering if there was any
 reason why Arch doesn't have the rc-local.service in systemd by
 default.

Have a look at the initscripts-systemd package, it contains rc-local
and rc-local-shutdown service files.


Re: [arch-general] Gnome 3, a bug?

2011-05-02 Thread Damien Churchill
On 2 May 2011 17:03, Ionut Biru ib...@archlinux.org wrote:
 On 05/02/2011 07:01 PM, Aljosha Papsch wrote:


 /M

 It's a design pattern of the GNOME Shell. Switching between windows work
 application based, not window based. Which means, if a Webbrowser is opened
 and two Shells, you won't switch between the shells but between Firefox and
 the last focused shell. You can get back the old behavior, though. Just
 install gnome-shell-extensions-git from AUR.


 i don't suggest to install all extensions since gnome-shell will load them
 all. Install only specific extension, only what you need. You can find them
 in aur too



You can disable extensions, taken from the Gnome Shell extensions page [1]

Per-user and systemwide extensions can be disabled with the GSettings
key org.gnome.shell.disabled-extensions

[1] http://live.gnome.org/GnomeShell/Extensions


Re: [arch-general] python 2.7.1-3 - python 2.7.1-4 broke django

2011-01-10 Thread Damien Churchill
On 11 January 2011 01:18, Alper KANAT tu...@raptiye.org wrote:

 $ ./manage.py runserver 192.168.56.101:8000
 bash: ./manage.py: /usr/bin/python2^M: bad interpreter: No such file or
 directory

 Any ideas?


 It looks like the shebang is incorrect at the start of the manage.py
script, it's got a carriage return (the ^M) so it can't find
/usr/bin/python2 because as far as it's concerned the executable
doesn't exist, see if removing that helps.


[arch-general] vala pkgbuild

2010-06-21 Thread Damien Churchill
Since vala 0.9.2 is now out I figured I'd update the PKGBUILD for it,
just a simple version bump and sha256sum update.

http://pastie.org/1014264


Re: [arch-general] vala pkgbuild

2010-06-21 Thread Damien Churchill
On 21 June 2010 22:49, Ionuț Bîru biru.io...@gmail.com wrote:
 On 06/22/2010 12:46 AM, Damien Churchill wrote:

 Since vala 0.9.2 is now out I figured I'd update the PKGBUILD for it,
 just a simple version bump and sha256sum update.

 http://pastie.org/1014264

 is not like is hard to update the build, is more like it doesn't fit in our
 principle to bump to a development version.

 0.8.1 is the stable branch
 0.9.x is the development branch.

 You will never see a package from gnome development branch ever in our repos
 :D

 So please, don't flag vala again, pretty please :D


I hadn't flagged it, just saw it was out of date and thought I'd try
and help, apologies for not doing more investigation first!


Re: [arch-general] Issue with man

2010-03-25 Thread Damien Churchill
On 25 March 2010 00:36, Damien Churchill dam...@gmail.com wrote:
 On 24 March 2010 23:52, Linas linas...@ymail.com wrote:
 Damien Churchill wrote:
 I've got a rather confusing issue with man. Whenever I try and view a
 man page I just end up with a blank screen.

 http://www.imagebam.com/image/41dd5973332829

 This occurs for any page, even for local ones. I was wondering if
 anyone would be able to shed any light on why this is occuring?

 Thanks,

 Damien

 Does less work with other files?
 What happens if you use a different pager? Eg.  PAGER=more man ls


 Hmm no that doesn't work, it just exits immediately without displaying
 anything. I also just tried man -Hchromium ls, and that displays a
 blank webpage.


Turns out that I was having the same issue as in this thread:

http://bbs.archlinux.org/viewtopic.php?id=46501

Reinstalling groff did the trick. Guess it never installed correctly
the first time for some reason as although the files were there pacman
didn't think that the package was installed.


[arch-general] Issue with man

2010-03-24 Thread Damien Churchill
I've got a rather confusing issue with man. Whenever I try and view a
man page I just end up with a blank screen.

http://www.imagebam.com/image/41dd5973332829

This occurs for any page, even for local ones. I was wondering if
anyone would be able to shed any light on why this is occuring?

Thanks,

Damien


Re: [arch-general] Issue with man

2010-03-24 Thread Damien Churchill
On 24 March 2010 23:52, Linas linas...@ymail.com wrote:
 Damien Churchill wrote:
 I've got a rather confusing issue with man. Whenever I try and view a
 man page I just end up with a blank screen.

 http://www.imagebam.com/image/41dd5973332829

 This occurs for any page, even for local ones. I was wondering if
 anyone would be able to shed any light on why this is occuring?

 Thanks,

 Damien

 Does less work with other files?
 What happens if you use a different pager? Eg.  PAGER=more man ls


Hmm no that doesn't work, it just exits immediately without displaying
anything. I also just tried man -Hchromium ls, and that displays a
blank webpage.


Re: [arch-general] Arch is ummnn different: my 1st installation: tried to install xfce...OOPS!

2010-03-15 Thread Damien Churchill
On 15 March 2010 06:19, Joe(theWordy)Philbrook jtw...@ttlc.net wrote:


 Could some nice Arch user point me at enough step by step instructions so
 that I can get enough of a gui up to use a browser like firefox so I can
 try to find solutions via the web while Arch is actually running???


http://wiki.archlinux.org/index.php/Beginners'_Guide is always a good
place to start.


[arch-general] Customising arch iso

2010-03-12 Thread Damien Churchill
I was just wondering if there are there any up to date instructions
available for customising the arch installer? I only need to upgrade the
kernel to 2.6.32 in order to install (at least that is the first problem I
have encountered).

Thanks in advance,

Damien


Re: [arch-general] Customising arch iso

2010-03-12 Thread Damien Churchill
On 12 March 2010 10:54, Ionut Biru biru.io...@gmail.com wrote:

 On 03/12/2010 12:51 PM, Damien Churchill wrote:

 I was just wondering if there are there any up to date instructions
 available for customising the arch installer? I only need to upgrade the
 kernel to 2.6.32 in order to install (at least that is the first problem I
 have encountered).

 Thanks in advance,

 Damien

 you could test this isos: http://build.archlinux.org/isos/

 --
 Ionut

Excellent! Just what I was looking for, thanks a lot!


Re: [arch-general] Customising arch iso

2010-03-12 Thread Damien Churchill
On 12 March 2010 10:56, Damien Churchill dam...@gmail.com wrote:
 On 12 March 2010 10:54, Ionut Biru biru.io...@gmail.com wrote:

 On 03/12/2010 12:51 PM, Damien Churchill wrote:

 I was just wondering if there are there any up to date instructions
 available for customising the arch installer? I only need to upgrade the
 kernel to 2.6.32 in order to install (at least that is the first problem I
 have encountered).

 Thanks in advance,

 Damien

 you could test this isos: http://build.archlinux.org/isos/

 --
 Ionut

 Excellent! Just what I was looking for, thanks a lot!


Ahh my mistake, I need 2.6.33,

Heres the commit that adds support for my network card:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=0f5aac7070a01ec757ed243febe4fff7c944c4d2

Would I be able to just install kernel26 from testing on another arch
and copy the resulting vmlinuz26 and kerne26.img files across to the
new iso?

Damien


Re: [arch-general] Customising arch iso

2010-03-12 Thread Damien Churchill
On 12 March 2010 13:19, Dieter Plaetinck die...@plaetinck.be wrote:
 On Fri, 12 Mar 2010 06:57:46 -0600
 Dan McGee dpmc...@gmail.com wrote:

 On Fri, Mar 12, 2010 at 6:29 AM, Dieter Plaetinck
 die...@plaetinck.be wrote:
  you could also try a netinstall cd and enable the testing repository
  in /tmp/pacman.conf.  IIRC aif (the installer) uses pacman with that
  config file, so it might just work, although i never tried it
  myself. if you are not afraid of looking at bash scripts, look at
  the source code of aif then you'll see how exactly
  it works.

 A netinstall using a kernel without the necessary network drivers
 might prove hard to use. :)

 -Dan

 don't laugh :P i realised it just after hitting submit ;)

 Dieter


Using the core installing then just upgrading kernel26 and
kernel26-firmware to 2.6.33 worked just in case anyone was wondering.
Got networking up finally :)


Re: [arch-general] First Time Arch w/ Gnome Installed

2010-01-26 Thread Damien Churchill
2010/1/26 Carlos Williams carlosw...@gmail.com:
 This is my 1st time ever installing Arch Linux with GDM / Gnome
 desktop environment. I did not install 'gnome-extra' package because I
 don't want all the useless applications. I prefer to only install what
 I need. I am have been using an Ubuntu 10.4 workstations and got
 everything working on my new Arch system. It is very fast even
 installed the latest nVidia drivers from their site. My only issue I
 have is the fonts look horrible. I did go to 'System  Preferences 
 Appearance  Fonts tab' and set the fonts to 'Sub Pixel Smoothing' for
 LCD's but I am missing the smoothness and glossiness (Anti Aliasing)
 that Ubuntu had. My Arch fonts still look very rough and 1993'ish. I
 don't know what I can do to make my Gnome / Desktop environment appear
 more polished and cleaner. Do you guys have any suggestions?

 Do I need a specific WM or special decorative package? I work a lot on
 my workstation and need it to be pleasing to the eyes. The fonts I
 have don't make my system look very appealing. I know it sounds stupid
 but I really like my DE to be pleasing on my eyes since I use if for
 hours at a time...

 Thanks for any help!


If you open the Fonts tab in the Appearance preferences, and click
Details, another window opens that allows you to set the font hinting.
Ubuntu has it set to Slight by default so changing this might help how
the fonts look. Worth a try at least!

Damien


Re: [arch-general] Quoting of E-mails

2010-01-20 Thread Damien Churchill
2010/1/20 Johannes Held m...@hehejo.de:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Steve Holmes steve.holme...@gmail.com:
 If I addopt bottom posting, I plan then to delete all but the most recent
 post to keep thing conscise.
 Sure! That's the right(tm) way to do it. ;-)

 Actually I'm run into *MANY* of these huge long threads in a single
 message to have a Mee to or +1 at the bottom
 Yes, that's true. It's annoying to scroll down, search for the reply and then
 read a simple +1. I wish, that those emails would be cropped and simply a
 +1 (perhaps with a small description) is sent.

 Actually when you think about it, most blogs are all in reverse
 chronical order which to me is the same thing as top-posting and
 nobody seems to complain about that concept.
 Meh, I see comments on a blog more a as thought of the writer instead of
 discussions like here on ML.


A forum thread (which displays in chronological order) is a pretty
close thing to a mailing list?


[arch-general] Deluge 1.2.0

2010-01-12 Thread Damien Churchill
I was wondering if it would be possible to add a message, saying the
preferred way of running the different user interfaces now is via a
deluge-* script, so deluge-gtk, deluge-web and deluge-console, to the
post_install() of the package?

Damien


Re: [arch-general] Deluge 1.2.0

2010-01-12 Thread Damien Churchill
2010/1/12 Ionut Biru biru.io...@gmail.com:
 On 01/12/2010 04:56 PM, Damien Churchill wrote:

 I was wondering if it would be possible to add a message, saying the
 preferred way of running the different user interfaces now is via a
 deluge-* script, so deluge-gtk, deluge-web and deluge-console, to the
 post_install() of the package?

 Damien

 why? you can always find out them by doing pacman -Ql deluge | grep bin

 --
 Ionut


Was merely a suggestion, since before it was done via deluge --ui=*,
which still exists, the new scripts just expose a bit more
functionality. Personally I don't check binaries every upgrade so just
thought it would be a heads up to users.


Re: [arch-general] Deluge 1.2.0

2010-01-12 Thread Damien Churchill
2010/1/12 Ionut Biru biru.io...@gmail.com:
 On 01/12/2010 05:04 PM, Damien Churchill wrote:

 2010/1/12 Ionut Birubiru.io...@gmail.com:

 On 01/12/2010 04:56 PM, Damien Churchill wrote:

 I was wondering if it would be possible to add a message, saying the
 preferred way of running the different user interfaces now is via a
 deluge-* script, so deluge-gtk, deluge-web and deluge-console, to the
 post_install() of the package?

 Damien

 why? you can always find out them by doing pacman -Ql deluge | grep bin

 --
 Ionut


 Was merely a suggestion, since before it was done via deluge --ui=*,
 which still exists, the new scripts just expose a bit more
 functionality. Personally I don't check binaries every upgrade so just
 thought it would be a heads up to users.

 personally i didn't even use that. i use bash completion and i saw those new
 scripts :)

 delugetabtab

 kinda works

 --
 Ionut


True true, had overlooked tab completion! That'll probably be enough.


Re: [arch-general] A universal Operating System API - why don't we have it?

2009-12-18 Thread Damien Churchill
2009/12/18 RedShift redsh...@pandora.be:
 Hi all


 It dawned on my that lots of industries have standards and companies
 generally keep to them. For example slabs of aluminium have standard sizes,
 building materials have well defined specifications, or take electrical
 components: there's a huge list of standardized components. You can expect
 between 220 and 240 VAC from your wall socket, fuses have standard formats
 and ratings, 1 meter here is exactly the same as 1 meter in another country,
 etc... Even CD's, which have been around for decades by now, have always
 been created using the same format (albeit extended somewhat, over time, but
 a normal CD pressed now should still play in a CD player that's 20 years
 old).

 It allows for a very competitive market where choices are made based on
 price, quality, availability, etc...

 Why doesn't the computer business have something similar? Sure processors
 are interchangeable in a limited way, we use standardized RAM, standard
 interfaces for accessing our peripherals, etc... But not when it comes to
 software. Why don't we have one universal API that works on every operating
 system? Yes there is libc, the language C is defined in some way, but I'm
 talking about stuff that would make applications 100% portable. Things like
 enumerating all hardware devices, configuring a network interface, drawing a
 window, ejecting the CD-ROM drive, getting notified about new hardware
 plugged in, etc... It's different on every operating system. You cannot
 write a driver for Linux and expect it to work on FreeBSD. You cannot write
 an application for windows and expect it to work on Linux. When you buy a
 piece of hardware you usually hope for the best that it'll work
 out-of-the-box including all extra features.

 So why is that? Why hasn't someone stepped up and even try and create a
 universal operating system API? Is it because the computer business is still
 a child in some way, compared to other industries?


 Just a thought.


 Glenn


Isn't this what POSIX was, albeit quite old now, but still a standard?


Re: [arch-general] Bind 9.6.1-1 patched against dynamic update ddos?

2009-07-29 Thread Damien Churchill
2009/7/29 Fredrik Eriksson fredrik.eriks...@gigabit.nu:
 Hi,
 I've seen that there's a dynamic update ddos attack that is widely available
 on the net and after looking for the solution it seems that bind's latest
 patch (9.6.1-P1) solves this problem.

 So my question is more like this, is extra/bind 9.6.1-1 in the repository
 the same as bind 9.6.1-P1?
 The build date of the current package in extra/ says the 18 July but the
 homepage of BIND says the latest patch was published the 28 July.

 Best regards
 Fredrik Eriksson


Judging by the Ubuntu package version it is P2 that fixes the current
ddos issue, not read too much into it though so I could be wrong.


Re: [arch-general] Where can I find the boot log to find out what failed on boot?

2009-07-27 Thread Damien Churchill
2009/7/27 David Rosenstrauch dar...@darose.net:


 With the inittab method all you would have to do is to press 'e' for edit at
 the GRUB prompt and just add:


Is that pretty much the same as adding single to the kernel line?
Least that's how I normally do it.


Re: [arch-general] Firefox on Arch - crash on exit

2009-07-20 Thread Damien Churchill
2009/7/20 Dario carotin...@yahoo.it:
 Hi!

 In data lunedì 20 luglio 2009 06:48:00, Tim Gelter ha scritto:
 Firefox is already running, but is not responding. To open a new
 window, you must first close the existing Firefox process, or restart
 your system.

 Mmm I remember something like this happening on Windows (*cough*) machines at
 school. The solution was to clear the hidden Application Data (or what is
 called) folder under Documents and Settings. Here probably is something like a
 lock file, I think.

 Ciao!

 Carotinho
 Chiacchiera con i tuoi amici in tempo reale!
  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com




In ~/.config/mozilla/firefox/[profile] there will be 2 files, lock
and .parent_lock that need to be removed, at least those are the
offending 2 when this has happened to me.


Re: [arch-general] modprobe changes

2009-07-02 Thread Damien Churchill
2009/7/2 Thomas Bächler tho...@archlinux.org:
 Aaron Griffin schrieb:

 I think you're mistaken. Our modprobe doesn't have any message of the
 sort, relating to Arch. The error you are seeing is due to a change in
 the way modprobe parses config files. It used to read
 /etc/modprobe.conf and/or /etc/modprobe.d/* - now it only reads
 /etc/modprobe.d/*.conf

 The message is modprobe telling you something is wrong with the config
 files. Most likely you just have a .pacsav file in /etc/modprobe.d/

 This is annoying, I thought it would simply ignore those files. Now it seems
 that it reads them, but prints that warning. Do you think we should patch it
 to at least ignore .pacsave files until they remove this warning and
 backward-compatibility?



I've noticed an issue regarding mkinitcpio and the new modprobe changes that
requires a symlink from /etc/modprobe.conf to /etc/modprobe.d/modprobe.conf
in order for options for any modules you load in the initramfs to be applied,
just incase this hasn't been reported yet.

Damien


Re: [arch-general] modprobe changes

2009-07-02 Thread Damien Churchill
2009/7/2 Thomas Bächler tho...@archlinux.org:
 Damien Churchill schrieb:

 I've noticed an issue regarding mkinitcpio and the new modprobe changes
 that
 requires a symlink from /etc/modprobe.conf to
 /etc/modprobe.d/modprobe.conf
 in order for options for any modules you load in the initramfs to be
 applied,
 just incase this hasn't been reported yet.

 /etc/modprobe.conf is not used in the real system or initramfs anymore. Your
 mkinitcpio configuration is simply wrong.



Touché, I blindly overlooked the FILES var. Apologies.


[arch-general] libtorrent-rasterbar PKBUILD patch

2009-06-25 Thread Damien Churchill
Here's a patch to upgrade the libtorrent-rasterbar package in extra.
It's pretty simple, just increasing the pkgver to 0.14.4 and changing
the md5sum.

I've been using it for a number of weeks now without issue.

Damien


libtorrent-rasterbar-pkgbuild.patch
Description: Binary data