Save system with dd

No Comments

dd if=/dev/sda | bzip2 -c -9 > /mnt/server/image.bz2

  • Share/Bookmark

Switch graphic cards on laptop sony serie z and ubuntu 10.04

5 Comments

Be very careful if you upgrade the bios with the Sony utility (in windows) and install nvidia drivers (on the ubuntu size) : you would end up with no screen at all (no console either).

But things are going easier for series Z owners, as there is an automated script now. Thanks ernolf !
The good practice is to use the VGN-Zseries-janitor script. It installs all the stuff correctly, and allows to switch between the nvidia and intel cards by using the slider (before the reboot). No hot switch for the moment, but that’s not a real issue. I heard there are some issues with a windows 7 dual boot, because of the bios upgrade needed (read this). But, actually, I’ve already upgraded my own BIOS (I know, I’m adventurous), and there were no problem with the script.

One thing I think the script doesn’t do (I guess, the explanation at the end of the script is not very clear), is to add this kernel instruction :

In /etc/default/grub :

RUB_CMDLINE_LINUX="acpi_osi=\\\"!Windows 2006\\\""

And then run sudo update-grub to create a new /boot/grub/grub.cfg

(In my install, there was already an empty instruction (RUB_CMDLINE_LINUX=”"), so I just filled it with the value (string acpi_osi=\\\”!Windows 2006\\\”)

(You also can do it at boot time by hitting the “e” key.)

An other thing I haven’t done/tested useful is to customize screnn config (xorg.conf or nvidia-settings), as they describe it :

“To make a complicated xorg.conf-file unnecessary (after nvidia installation is ready and everything is running well) one can use nvidia-settings as root (sudo nvidia-settings) or as normal user, make the settings you want and then save them in an rc-file. Now enter the path to this rc-file into /etc/default/switch-x-to”. You must save the file generated by nvidia-settings in /home/<username>/.nvidia-settings-rc, and uncomment the matching line in /etc/default/switch-x-to (change “<username” by your actual username of course) :
NVIDIASETTINGS_RC='/home/<username>/.nvidia-settings-rc'

Make a backup of this file, if it already exists (was the case for me).

  • Share/Bookmark

Install lamp with tasksel in ubuntu

No Comments

(https://help.ubuntu.com/community/ApacheMySQLPHP#Virtual%20Hosts)

$ sudo tasksel install lamp-server

  • Share/Bookmark

JungleDisk as a service

No Comments

http://rickguyer.com/starting-jungle-disk-on-boot-in-ubuntu/

http://support.jungledisk.com/forums/30235/entries/83116
http://kswantech.com/blog/how-setup-jungledisk-ubuntu-server
http://blog.kenweiner.com/2008/03/jungle-disk-on-linux.html
  • Share/Bookmark

Install Adobe Air Linux 1.5 on 64-bit Ubuntu

No Comments

Install Adobe AIR Linux 1.5 on 64-bit Linux distributions
Summary :

  1. Uninstall any previous version of air installer (Applications > Accessories > Adobe Air Uninstaller)
  2. Install getlibs
  3. Download AdobeAIRInstaller and cd to the download directory
  4. sudo getlibs ./AdobeAIRInstaller.bin
    $ sudo getlibs -l libgnome-keyring.so
    $ sudo getlibs -l libgnome-keyring.so.0
    $ sudo getlibs -l libgnome-keyring.so.0.1.1
  5. Download libnss3 32b : http://mirrors.kernel.org/ubuntu/pool/main/n/nss/libnss3-1d_3.12.0~beta3-0ubuntu1_i386.deb
  6. Download libnspr4 32 : http://mirrors.kernel.org/ubuntu/pool/main/n/nspr/libnspr4-0d_4.7.1~beta2-0ubuntu1_i386.deb
  7. <code>Extract libnss $ sudo file-roller ./libnss3-1d_3.12.0~beta3-0ubuntu1_i386.deb</code>
  8. Double click data.tar.gz (choose open with file-roller if you are asked)
  9. select these files in ./usr/lib folder :
    libnss3.so.1d<br />libnssutil3.so.1d<br />libsmime3.so.1d<br />libssl3.so.1d
  10. Extract to /usr/lib32 and close file-roller
  11. Enter :
    $ sudo ln -s /usr/lib32/libnss3.so.1d /usr/lib32/libnss3.so
    $ sudo ln -s /usr/lib32/libssl3.so.1d /usr/lib32/libssl3.so
    $ sudo ln -s /usr/lib32/libnspr4.so.0d /usr/lib32/libnspr4.so
  12. Then :
    <code>$ ./AdobeAIRIntaller.bin</code>
  13. <code>sudo cp /usr/lib/libadobecertstore.so /usr/lib32</code>
  14. sudo apt-get install lib32nss-mdns

Done !
Accept any update on first launch

  • Share/Bookmark