Showing posts with label Debian squeeze. Show all posts
Showing posts with label Debian squeeze. Show all posts

Sunday, February 19, 2012

Debian Squeeze 3.2 kernel update

I've been meaning to upgrade my kernel to the new 3.X but don't want to spend half my day going thru the options...so I installed the squeeze-backports version. Change the image and header file to fit your cpu and version. I added the headers, you don't have to.

1. Update your /etc/apt/sources.list to include the backports
deb http://backports.debian.org/debian-backports squeeze-backports main non-free contrib

2. sudo apt-get update

3. sudo apt-get -t squeeze-backports install linux-image-3.2.0-0.bpo.1-686-pae linux-headers-3.2.0-0.bpo.1-686-pae
...or linux-image-3.2.0-0.bpo.1-amd64 if you have that :)

4. say yes if you're sure you want to add the additional packages.

5. don't walk away...you need to press the OK button for something and quit a section on non-free stuff.

6. reboot and hopefully you'll have a new list in grub and then boot'er up! wheeeeeeeeze!

Monday, February 6, 2012

Debian squeeze, sox w/ mp3 support

UPDATE April 19, 2021
So the original post was relevant to Debian Squeeze and Jessie but now that I finally updated to Buster, it is no longer relevant. Just need a single command and mp3 is set to go.
apt-get install libsox-fmt-mp3
-------------End update--------------
Original post:

So went about getting mp3 support on my soX since it is a "non-free" codec...found this link...but it was slightly outdated but was corrected in the comments section.

So basically this is putting the steps all in one ;D ...

note: I recommend doing this as root instead of sudo'ing everything...

1: Follow the steps and add the Debian Multimedia to your apt sources and install everything it says for your distro...in this case Squeeze. I'd get these as well just in case...some might not be needed but these helped me compile it better:
apt-get install libavcodec-dev liba52-0.7.4-dev libdc1394-22-dev libdirac-dev libfaac-dev libfaad-dev libschroedinger-dev liborc-0.4-dev libtheora-dev libx264-dev libxvidcore4-dev

2: Make sure you have sox already installed.
apt-get install sox libmp3lame0 libmp3lame-dev

3: cd /usr/src

4: get all dependencies.
apt-get build-dep sox

5: get the source file
apt-get source sox

6: (replace 'z' with your version #) extract source file.
dpkg-source -x sox_14.z.z.dsc

7: cd sox-14.z.z

8: Use vi or whatever editor you wish.
vi debian/rules

9: "DEB_CONFIGURE_EXTRA_FLAGS := --without-lame ..."
change the "without" to "with"
"DEB_CONFIGURE_EXTRA_FLAGS := --with-lame ..."
the "..." won't actually be there...I just didn't want to type out the whole line.

10: Build the package.
dpkg-buildpackage -b

11: go back up a folder cd .. then install all the shiny new files you just created.
dpkg -i *.deb

12: test er out...just showing "sox -h" won't really work since before I had mp3 support it already showed it in the list. so do a test (e.g sox -n out.mp3 synth 5 90) if it doesn't complain then [edit] voila [end edit]! you're good to go.

cheers.

Tuesday, March 15, 2011

Metacity doesn't start / load when logging in (Debian)

So for some strange reason, (could be b/c I was installing things for conky?), after a reboot (left the suspend|hibernate|reboot|shutdown popup over 60sec so it shutdown automatically >_<;) metacity didn't start and I had to do a manual startup. So if you're in this situation then you've come to the right place. I went thru hoops to find it but here is a link to the bug report and yes I know it's for Ubuntu but it did solve my issue. https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/550082

For some reason or another, something put in "Hidden = true" into my ~/.local/share/applications/metacity.desktop and that screwed up metacity's loading.

so instead of deleting the whole file, just delete that one line.
reboot and you should see your window borders again ;)