LinuxAnswers - the LQ Linux tutorial section.
Go Back > Blogs
User Name



mixing stable and testing packages

Posted 11-19-2011 at 09:42 PM by neonsignal

Sometimes when sticking with a Debian stable version, it can be useful to just update one or two packages to a testing or even unstable version, because of new features.

The ideal way to do this is to use backports, because these have been tested (and patched if necessary) to work with the stable versions of other packages. The backports repository is added to /etc/apt/sources.list:
deb squeeze-backports main contrib
Senior Member
Posted in Uncategorized
Views 276 Comments 0 neonsignal is offline

First experience at using the Google api

Posted 11-19-2011 at 09:39 PM by peonuser
Updated 11-19-2011 at 11:55 PM by peonuser

One of the reasons I like to do page scraping is to get the data I need without having to take time to use a web browser such as Firefox and or a newsreader to get the specific data I need. Letting the computer get the data for me and making a summary file of the data I need is therefore letting the computer be my secretary and or research assistant.

Have been doing some page scraping, but i was not able to get the weather from their (Google) site. Then read they have it sort of hidden....
Posted in Uncategorized
Views 334 Comments 0 peonuser is offline

Debian Wheezy has just switched to Gnome 3

Posted 11-19-2011 at 11:03 AM by andywebsdale
Updated 11-19-2011 at 11:27 AM by andywebsdale
Tags gnome3

Wow - I ran Update on synaptic and apt-listbugs tells me that metacity segfaults after restart. I decide to risk it, as it won't stop me booting. The update finishes & I closed it & did Ctrl-Alt-BkSp to restart all the GUI stuff, X, Gnome, etc.
GDM looked slightly different, I logged in & Bam! Big surprise - no desktop. Gnome 3 had arrived.
I love it. There's a learning curve, & probably I need to do some manual cleanup after apt has "converted" my Gnome 2...
Posted in Uncategorized
Views 1211 Comments 0 andywebsdale is offline

- rm

Posted 11-19-2011 at 08:24 AM by Web31337 (In The Middle Of Nowhere [edK's blog])
Updated 06-20-2012 at 11:51 PM by Web31337

- rm -
Posted in Uncategorized
Views 1349 Comments 0 Web31337 is offline

'stat' vs 'date' w/re string manipulation in Bash scripts

Posted 11-17-2011 at 05:31 PM by SilversleevesX
Updated 11-17-2011 at 05:42 PM by SilversleevesX

I started browsing the Web tonight looking to do something I had been doing in my Bash scripts with stat and three more lines of string cutting in one line instead.

I had been using stat -c &y file to get a file's modification date in scripts, but I have never liked the nine-digit "blink-of-an-eye" part of the return on that command. My method up till now has been to eliminate it with lines like these:
gdate=$(stat -c %y foo.jpg)
pqdate=$(echo ${gdate%.*})
Posted in Discussion
Views 433 Comments 0 SilversleevesX is offline


All times are GMT -5. The time now is 07:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration