mercredi 2 octobre 2013

Fix random freezes Ubuntu 12.04

  • Machine : HP DV7
    OS : Ubuntu 12.04
    Kernel : 3.5.0-41-generic
    Time : 5 minutes

    [0/3] Fix random freezes in Ubuntu 12.04

  • sudo vi /etc/lightdm/lightdm.conf

    [1/3] Open a terminal and type

  • user-session=ubuntu-2d

    [2/3] Replace "user-session=ubuntu" with "user-session=ubuntu-2d"

  • sudo reboot

    [3/3] Restart your computer

mardi 27 août 2013

Configure SRV records

  • Machine : HP DV7
    OS : Ubuntu 12.04
    DNS : Gandi.net
    Used for : configuring SRV record for zopim.com to use with Google Apps http://blog.zopim.com/setting-up-google-apps-for-gtalk-integration/
    Time : 5 minutes

    [0/5] Configure SRV records

  • [1/5] Log on to Gandi, access your account, click DNS zones and select your zone file

  • [2/5] Click add to add a new entry at the bottom of the window

  • [3/5] Check on zopim the SRV entries you want to add

  • [4/5] Add the new record : type "SRV"

  • _xmpp-server._tcp 10800 IN SRV 20 0 5269 xmpp-server1.l.google.com.
    _xmpp-server._tcp 10800 IN SRV 20 0 5269 xmpp-server2.l.google.com.
    _xmpp-server._tcp 10800 IN SRV 20 0 5269 xmpp-server3.l.google.com.
    _xmpp-server._tcp 10800 IN SRV 20 0 5269 xmpp-server4.l.google.com.
    _xmpp-server._tcp 10800 IN SRV 5 0 5269 xmpp-server.l.google.com.

    [5/5] Check that the entered values are correct in the expert edit mode

dimanche 25 août 2013

mount sdcard ubuntu

Machine : HP DV7
OS : Ubuntu 12.04
Time : 2 minutes



sudo su -c "echo 1 > /sys/bus/pci/rescan"
1/ type in a terminal
2/ the folder opens and you can use the mounted sdcard

printscreen of current window

Machine : HP DV7
OS : Ubuntu 12.04
Time : 2 minutes



sudo sysctl -w kernel.sysrq=0
1/ type in a terminal for an immediate fix
2/ take a screenshot of the current window by pressing FN +ALT then PRINT SCREEN

Error in rails console : runtime.rb:216: warning: Insecure world writable dir /usr/bin/android-sdk-linux in PATH, mode 040757

Machine : HP DV7
OS : Ubuntu 12.04
Rails : 4.0.0 rails -v
Time : 2 minutes



sudo chmod go-w /usr/bin/android-sdk-linux
1/ type in a terminal

lundi 12 août 2013

Mute speakers when headphones plugged in

Machine : HP DV7
OS : Ubuntu 12.04
Codec : 92HD75B3X5 cat /proc/asound/card0/codec* | grep Codec
Time : 2 minutes



sudo vi /etc/modprobe.d/alsa-base.conf
1/ type in a terminal


options snd-hda-intel model=hp-dv5 enable_msi=1
2/ add at the bottom of the file
sudo reboot
3/ restart the computer

Use H1 Zoom as an USB mic

OS : Ubuntu 12.04
Needed : H1 zoom
Time : 2 minutes




1/ plug the mic to the USB port of your computer, and when you see "usb audio" flashing, click the red button (if you wait too long or if you click when "usb card" flashes, start over)


2/ click the red button again


3/ You can now use the device as a USB mic



4/ click on the start menu button and enter "sound", in the popup window select "Analog input", then untick the box "mute"
5/ it's a good idea to mute the "Internal Microphone", just remember to unmute it later on