I have a weired hobby, checking very frequently the Release-Critical Bugs in Debian.
It's kind of a magic window to all this wonderful packages found in Debian. Sometimes I'm horrified to see so many bugs opened at once. Like now ... 169 FTBS introduced by GCC-4.7...
It's no reason to panic, but it's been a while since I've seen such a huge bump up...
Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts
Monday, May 07, 2012
Tuesday, May 24, 2011
Building Octave-3.4 on Debian Sid
I wanted to build the latest Octave (3.4) on my Debian Sid. Well, it wasn't as easy as before, since I upgrade it quite often. So now, the GCC-4.6 is used in Octave. However, due to some bugs in GCC-4.6 or Octave(?), it won't build. So, the trick that did it for me:
than, we need to do something ugly, but it does work ... ;-)
now we tell Octave to build using GCC-4.5:
the rest is easy:
Et viola! A post which is more positive and not ranting! Octave 3.4 is faster, and provides better Matlab comparability. Give it a try and you want look back!
sudo aptitude build-dep octave3.2 sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev sudo aptitude install gcc-4.5 gfortran-4.5 g++-4.5
than, we need to do something ugly, but it does work ... ;-)
sudo mv /usr/bin/gfortran /usr/bin/gfortran.ORG sudo ln -s /usr/bin/gfortran-4.5 /usr/bin/gfortran
now we tell Octave to build using GCC-4.5:
export CC=/usr/bin/gcc-4.5 export CXX=/usr/bin/g++-4.5
the rest is easy:
./configure make make test sudo make install sudo checkinstall
Et viola! A post which is more positive and not ranting! Octave 3.4 is faster, and provides better Matlab comparability. Give it a try and you want look back!
Labels:
Debian,
Matlab alternative,
Scientific Programming
Thursday, March 31, 2011
running more than one linux distribution without rebooting ...
My laptop has reached Nirvana with Debian Squeeze, everything works out of the box, and I very happy with the stability of the system. I don't feel the software is outdated, because I anyway install some applications I need or like directly from source.
However, I still want to be able to run Debian testing, and see how my system evolves. Enter "chroot".
With chroot I can run more that one Linux Distro and more than one X-Server with out the need to stop my work and reboot my laptop. This is just great.
Here is how to do it, assuming you already have a partition with a Debian installed on in do the following (if you don't have a partition with Debian installed, I suggest you take a look at "debootstrap"):
1. First make a location where you will work as the root of the new debian, in my case:
Cheerios, Linux and Debian !
UPDATE: The last section about GDM in chroot seems not to work in gdm3...
with gdm3:
change the following keys:
What does work ?
Switch to tty1, login as root, and chroot into the chrooted debian.
Then chanage to with "su - "
now start the X server as the following:
However, I still want to be able to run Debian testing, and see how my system evolves. Enter "chroot".
With chroot I can run more that one Linux Distro and more than one X-Server with out the need to stop my work and reboot my laptop. This is just great.
Here is how to do it, assuming you already have a partition with a Debian installed on in do the following (if you don't have a partition with Debian installed, I suggest you take a look at "debootstrap"):
1. First make a location where you will work as the root of the new debian, in my case:
$ su - # mkdir /debian-sec2. now mount that partition, in my case /dev/sda5:
mount /dev/sda5 /debian-sec3. enable important devices so the new Debian will work as expected.
mount -o bind /proc /debian-sec/proc mount -o bind /dev/ /debian-sec/dev/
mount /dev/pts /debian-sec/dev/pts -t devpts
mount -t sysfs /sysfs/ /debian-sec/sys4. finally change the root with chroot:
chroot /debian-sec/ /bin/bashIf you want to run a secondary X-Server, do the following inside the chroot:
chroot # vi /etc/gdm/gdm.conf # do s/vt7/vt9/ in [servers] section chroot # /etc/init.d/gdm startthis will start another X-Server on vt9, to which you can switch with Alt+Ctrl+F9.
Cheerios, Linux and Debian !
UPDATE: The last section about GDM in chroot seems not to work in gdm3...
with gdm3:
chroot # vim /usr/share/gdm/gdm.schemas
change the following keys:
<schema>
<key>daemon/FirstVT</key>
<signature>i</signature>
<default>9</default>
</schema>
What does work ?
Switch to tty1, login as root, and chroot into the chrooted debian.
Then chanage to
now start the X server as the following:
startx /usr/bin/fluxbox -- :1&or
startx /usr/bin/gnome-session -- :1&or
startx-- :1&
Subscribe to:
Posts (Atom)
