Search Results: "ads"

7 January 2010

Jonathan McDowell: Prettifying Debian boot output

Being a bit of a freak I actually tend to read my boot output. Well, when I'm not using that time to go grab a cup of coffee first thing on a Monday morning. However I don't always find Debian's default output as clear as I'd like (especially when I haven't had that coffee yet, or when I'm half watching a remote machine boot over its serial console). ISTR that RedHat had much nicer boot output (I'm talking about text based here, not the fancy Plymouth stuff) with a row of OK/FAILED etc down the right hand side that made it nice and obvious what was happening. Of course we can do that with Debian, at least for packages that use the lsb-base logging functions. Drop the following into /etc/lsb-base-logging.sh and enjoy a slightly prettier boot. I'm slowly filing wishlist bugs with patches for those bits and pieces I use that don't use lsb-base for their init script logging.

# Colour our init scripts output
# int log_end_message (int exitstatus)
log_end_msg ()  
    # If no arguments were passed, return
    if [ -z "$ 1:- " ]; then
        return 1
    fi
    retval=$1
    log_end_msg_pre "$@"
    # Only do the fancy stuff if we have an appropriate terminal
    # and if /usr is already mounted
    if log_use_fancy_output; then
        RED= $TPUT setaf 1 
        GREEN= $TPUT setaf 2 
        YELLOW= $TPUT setaf 3 
        NORMAL= $TPUT sgr0 
        $TPUT hpa $(( $TPUT cols  - 12))
    else
        RED=''
        GREEN=''
        YELLOW=''
        NORMAL=''
    fi
    if [ $1 -eq 0 ]; then
        /bin/echo -e " [   $ GREEN OK$ NORMAL    ]"
    elif [ $1 -eq 255 ]; then
        /bin/echo -e " [$ YELLOW WARNING!$ NORMAL ]"
    else
        /bin/echo -e " [ $ RED FAILED$ NORMAL  ]"
    fi
    log_end_msg_post "$@"
    return $retval
 
log_action_end_msg ()  
    log_action_end_msg_pre "$@"
    if [ -z "$ 2:- " ]; then
        end=""
    else
        end=" ($2)"
    fi
    /bin/echo -n "$ end "
    # Only do the fancy stuff if we have an appropriate terminal
    # and if /usr is already mounted
    if log_use_fancy_output; then
        RED= $TPUT setaf 1 
        BLUE= $TPUT setaf 4 
        NORMAL= $TPUT sgr0 
        $TPUT hpa $(( $TPUT cols  - 12))
    else
        RED=''
        BLUE=''
        NORMAL=''
    fi
    if [ $1 -eq 0 ]; then
        /bin/echo -e " [  $ BLUE DONE$ NORMAL   ]"
    else
        /bin/echo -e " [ $ RED FAILED$ NORMAL  ]"
    fi
    log_action_end_msg_post "$@"
 


(This is mostly for my own future reference, because I keep trying to search for details on it and not finding exactly what I want. I forget where I even found the basis for this, though there are lots of similar snippets out there. I've not tried it with a concurrency based boot so it may well look horrible under that.)

Dirk Eddelbuettel: RInside release 0.2.1

The shiny new 0.2.1 release of RInside, a set of convenience classes to facilitate embedding of R inside of C++ applications, just went out to CRAN; sources are also at my RInside page This is a maintenance release building on the recent 0.2.0 release which added Windows support (provided you use the Rtools toolchain for Windows). In this release, we changed the startup initialization so that interactive() comes out FALSE (just as we had done for littler just yesterday) and with that no longer call Rf_KillAllDevices() from the destructor as we may not have had devices in the first place. A few minor things were tweaked around the code organisation and build process, see the ChangeLog for details. The new release should hit CRAN mirrors tomorrow, and is (as always) available from my machine too.

6 January 2010

Christine Spang: configuring Gnome screensaver for unicode-screensaver

I love unicode. You should too. For the unicode-lover out there, Joachim Breitner recently created an xscreensaver hack called unicode and uploaded it to debian. [1] I didn't like the default colourscheme of black text on a white background, so I hacked it to support colour configurability. The patches are in the Debian package as of version 0.2-1. If you're using xscreensaver, you can configure it using the xscreensaver configuration dialog for a subset of the available colours. If you want different colours, you can edit ~/.xscreensaver by hand. Gnome screensaver, however, does not have a configuration UI, opting instead to present a simpler interface and also allow administrators to lock down the screensaver configuration if desired. You can still configure the screensaver on unlocked systems without a GUI. Here's how to do it. [2] At a terminal:
mkdir -p .local/share/applications/screensavers
cp /usr/share/applications/screensavers/unicode.desktop .local/share/applications/screensavers
editor .local/share/applications/screensavers
There's an Exec line in the file that should look like this:
Exec=/usr/lib/xscreensaver/unicode -root
Change it to look like this:
Exec=/usr/lib/xscreensaver/unicode -root -background <bgcolor> -foreground <fontcolor>
Swap the two colours with any X11 colour of your choice. Make sure to quote any multiple-word colour names. I like black as a background, with white or firebrick or another non-jarring bright colour as the font colour. If you want, you can also change the "Name" field in the file, but it's not necessary for things to work. Now, open up gnome-screensaver-preferences and select the new screensaver. U+2673: RECYCLING SYMBOL FOR TYPE-1 PLASTICS Lastly, leave your laptop strategically with the screensaver on to geek out all your friends with your unicode prowess. [1] Thanks Joachim! [2] There is actually another way to do it, if you prefer to interact graphically. For the other method, get /usr/share/applications/screensavers/unicode.desktop, edit it to your taste, and then drag-and-drop it onto gnome-screensaver-preferences, which will automatically put it in the right place in .local. You may need to restart gnome-screensaver preferences in order to see the new screensaver in the selection box. The feedback isn't very good.

Dirk Eddelbuettel: littler 0.1.3

A new littler release (now at 0.1.3) just went out of the door this evening. littler provides r (pronounced littler), a shebang / scripting / quick eval / pipelining front-end to the the R language and system. This version adds a few minor behind-the-scenes improvements: As usual, our code is available via our svn archive or from tarballs off my littler page and the local directory here. A fresh package is in Debian's incoming queue and will hit mirrors shortly.

5 January 2010

Adnan Hodzic: DebConf11; Banja Luka gets wiki

Bosnian bid for DebConf11 is Banja Luka, we had wiki page that wasn t changed since DebConf9 in C ceres this year. Reason we didn t have it changed for so long is that we didn t want to post anything before we had official/first hand answers to all our questions. Therefor we present you with wiki page for Banja Luka! http://wiki.debconf.org/wiki/DebConf11/BanjaLuka Our team was working (still is) incredibly hard in order to get it all sorted. Slowly but surely we are taking our bid process to the final stage, where we are planing to finalize the actual funds needed for the DebConf11 to take place and that would be from us Smile If you have any questions about something that wasn t mentioned on the wiki please do let me know.

Tiago Bortoletto Vaz: Uma vergonha


Que merda: dois lixeiros desejando felicidades do alto da suas vassouras. Dois lixeiros o mais baixo na escala do trabalho.
Boris Casoy, em sua mensagem de natal para o povo, (acidentalmente?) transmitida para todo o Brasil.

Bastian Venthur: 1984

One idiot ignites a bomb, others immediately scream for security scanners. Apparently Terrorism works pretty well for countries with increased security needs.

Rapha&#235;l Hertzog: 5 years of Freexian

5 years ago I founded my own company Freexian SARL with the goal to make a living out of my free software experience. I marketed the company as being specialized on the Debian distribution in the hope to combine my Debian work and my professional work. Given that Freexian is still alive I think I met the first goal. My free software experience allowed me to complete many projects: a large number of development projects for embedded devices running a custom Linux distribution (usually built with debian udebs), the development of a Debian derivative (SLIS) and some recurring tasks of remote system administration. However, even if I use Debian daily for all my work, very few of the projects that I complete for customers have direct results in terms of improvements for Debian (except some bugreports and some related fixes). And even when I m able to contribute something back to Debian, it s usually not in areas that I care about. My focus within Debian is on the technical and organizational infrastructure of the project: as a dpkg/dpkg-dev maintainer I try to improve the packaging infrastructure, as a QA member I maintain the Package Tracking System to ease collaboration, as an Alioth admin I ensure all DD can host VCS repositories for their Debian related projects, as a developers-reference co-maintainer I try to share good packaging practices, etc. Given this bias, it s difficult to find customer projects that would let me contribute in those areas. Thus I think I need to try another approach: the simplest solution would be to find sponsors for some of my own Debian-related projects (if you have something else to suggest, please leave a comment either in the blog or by mail). That said finding sponsors looks like a difficult task in itself. While I can imagine (for example) a company using Debian on embedded devices that would like to sponsor the rewrite of update-alternatives in C in order to get rid of the perl dependency in the dpkg package (if you know such a company, get in touch with me!), I don t see who would have an interest in sponsoring the time that I need to contribute new sections to the developers-reference manual. But who knows maybe I should just try and publicly solicit sponsorship for some of the projects that I care about. In any case, suggestions and comments are welcome! Partagez cet article / Share This

Peter Eisentraut: Remove and Purge

Debian's package manager dpkg has the perhaps unique feature that it distinguishes between removing and purging a package. Removing it removes the program files but keeps the configuration files (and sometimes the logs) around, purging it really removes everything. While this distinction undoubtedly has some uses, I have found that I almost never make use of it. I think in about six years of using Debian I have actually needed a remove-but-not-purge functionality about five times, during some really tricky upgrades (and using Aptitude instead of APT might have helped, not sure) and once when I wanted to build a package that had a build dependency that conflicted with a package I had installed (cowbuilder came later).

I think many people don't fully realize this distinction, and thus aged systems will often contain dozens or hundreds of removed-but-not-purged packages lying around. Great fun cleaning that up. And therefore, at some point in the distant past I have switched all my APTs to purge by default, using the configuration setting Apt::Get::Purge "true";. At the time I thought this would be daring, but I have never looked back. The one time a year that I don't want to purge I override this by hand.

Later, APT actually got an apt-get purge command, but there is no apt-get autopurge and no apt-get dist-upgrade-and-purge (or whatever) to purge the packages it wants to remove. This can be worked around by carefully adding --purge to all invocations of apt-get, but who will remember that. And of course apt-get remove is hardwired into my fingers.

How do other people handle this? Are there undiscovered reasons removing is the better default? How do you clean up packages that were forgotten to be purged?

4 January 2010

Biella Coleman: All tech

Fall semester I did not teach any classes that covered digital media (in part because I was swimming in the stuff writing a review essay on the topic, which I am sending today to the journal, ending about 4 months of hell). On the other hand, spring semester will be all about digital media: hackers, free software, privacy, piracy, phone phreaking and more. I am excited. Here is my graduate syllabus on the commons and piracy and here is my undergraduate class on hacking. Both are still under development but pretty far along.

Biella Coleman: All tech

Fall semester I did not teach any classes that covered digital media (in part because I was swimming in the stuff writing a review essay on the topic, which I am sending today to the journal, ending about 4 months of hell). On the other hand, spring semester will be all about digital media: hackers, free software, privacy, piracy, phone phreaking and more. I am excited. Here is my graduate syllabus on the commons and piracy and here is my undergraduate class on hacking. Both are still under development but pretty far along.

3 January 2010

David Paleino: WICD 1.7.0~b3 in experimental

I just uploaded WICD 1.7.0~b3 to experimental. This was supposed to be the last pre-release before the official one, but a ~b4 has just been released, adding one more patch I'm keeping in debian/patches/. Luckily enough, my previous big hacking to split the source code (to make it easier for packagers to have separate binary packages) has been merged upstream! So one less patch for me to maintain :) It would be cool if experienced people (this is not (yet) for the faint of heart!) could test this package, before 1.7.0 gets released as stable and I upload it to sid. Or maybe you could just want to help us :) Let's find bugs now!

Christian Perrier: Adopting/cleaning out font packages

After modernizing all font packages maintained by the pkg-fonts team (dropping defoma, source v3, etc.), I'm now investigating (with the help of other pkg-fonts team members) the list of ttf-* packages that are *not* maintained by our team. It seems that several of these suffer from low interest from their respective maintainers, so that task will often involve checking whether the said font is still wished in Debian, then talk with the maintainer if there is still one to convince him her to maintain the package collaboratively....or adopt the package when it is clearly abandoned. As of now, I already imported 4 ttf-arphic-* packages in our SVN and I'm working to modernize them. Dear readers, please feel free to point me to good candidates for this. Otherwise, I'll process the output of "apt-cache search -n ttf-" alphabetically...

Clint Adams: Odontoceti

Is it just me, or did Jeff Addiss just say, Fuck you dolphin, fuck you, whale. ?

Mohammed Sameer: Not First MMS sent via N900 (Fremantle)

I've spent the past few days trying to get MMS to work on the N900.

EDIT: Seems frals has managed to beat me! read more

Dirk Eddelbuettel: Rcpp 0.7.1

Two weeks after the Rcpp 0.7.0 release, Romain and I are happy to announce release 0.7.1 of Rcpp. It is currently in the incoming section of CRAN and has been accepted into Debian. Mirrors will catch up over the next few days, in the meantime the local page is available for download too. A lot has changed under the hood since 0.7.0, and this is the first release that really reflects many of Romain's additions. Some of the changes are As before, fuller details are in the ChangeLog on the Rcpp page.

2 January 2010

Runa Sandvik: 2010

I am now on Facebook and Twitter.

Luca Falavigna: and me too!


Today I joined Sandro and Christian in Those Who Reviewed The Entire Debian Mailing Lists Spam Team ! Helping with spam is one of my goals as a Debian Developer (I gained DD status on Aug 25, and started reviewing stuff on Aug 26), and I gave a look to the last ~2500 messages in the backlog during Christmas time. Help is always welcome, it is not necessary to be a Debian Developer to tag messages as spam. For additional informations, see this wiki page: http://wiki.debian.org/Teams/ListMaster/ListArchiveSpam. Gimme more! ;)

Kartik Mistry: The year


* I mean that last damn 2009 was not so good but yeah, that is life! Promising readers to give more posts like 140 chars in coming year! ;)

Asheesh Laroia: Detecting stale versions of WordPress

I run a personal server that hosts web space for a few friends. Probably the most popular thing to do with the space is to install WordPress and run a personal blog. A few days ago, I discovered some attackers were abusing one of the sites. Once we upgraded the site to the latest version of WordPress, the attack went away. So I wrote a tool that, every night, emails me a report of the locations of old versions of WordPress. A sample email:
Current version of WordPress: 2.9

oldroommate has WordPress 2.5 in /home/oldroommate/web/oldroommate.com/
Eek! WordPress 2.5 is old!

How it works Each time it runs, it looks at wordpress.org to see what the current version is. The code to do that is written in Python and uses lxml.html. It prints the current version in the report, and it uses it when analyzing WordPress installs. To analyze WordPress installs, it executes locate readme.html, looking for WordPress's tell-tale documentation file. For every such readme.html, if it matches a simple regular expression suggesting it's a WordPress readme file, it performs the following analysis:
  • It does some simple seding and greping looking for the version of WordPress described by that file.
  • If the version detected is older (as calculated by dpkg --compare-versions), it creates a one-line report like the one above about oldroommate.
If it found any installs of old WordPress, it prints a report like the one blockquoted above to stdout.

How to use it To get emails, I run it with cron. You can add a stanza like this to your crontab (edit it with crontab -e):
@daily cd find-out-of-date-wordpress; ./look.sh
Ta-da, nightly reports.

To get a copy Do a git clone:
git clone git://git.asheesh.org/find-out-of-date-wordpress.git
or browse its gitweb.

Feedback I'm quite interested to hear what others do to avoid old web apps being attacked. If there's another bit of software that monitors web apps for needing upgrades, I'd love to hear about it! Obviously if you have feedback on this tidbit I wrote, let me know. (To me, apt-get doesn't seem to be the answer. Web apps (especially PHP ones) don't usually seem to support keeping the code in one place with multiple different configuration files. And users get excited about the latest and greatest and don't want to wait for me to upgrade, and I can't blame them.) If some of you don't like the Python dependency or anything else, I do welcome patches!

Next.

Previous.