Thursday, October 31, 2013

Some concrete technical tips in Ubuntu for my future myself

These solutions are not in another place of internet by now~

How to put a CA certificate in a wifi config with Gnome 3

Gnome 3 networking manager have a weird bug that doesn't allow to save a wifi config when you choose a CA certificate.
In that case, complete the form without adding the CA certificate, and then:
  1. Open a terminal
  2. Write "cd /etc/NetworkManager/system-connections/" to go to the directory where configs are saved
  3. Write "sudo gedit SSID" where SSID is the name of the wifi spot and gedit is the text editor
  4. Under the line "[802-1x]" add the line "ca-cert=PATH" where path is the file path to your ca certificate (ex. /home/user/certificate.der)

How to see the Nvidia card temperature using bumblebee

optirun nvidia-settings -c :8 -q gpucoretemp

How to completely erase the contents of a USB device

Even Gparted was unable to create a new partition table on it!
WARNING it will erase all!
dd if=/dev/zero of=/dev/[name of the device] bs=512 count=[bit number of the device capacity]
(I'm not sure about the count parameter)

Monday, July 2, 2012

Xbox 360 Controller configuration for Minecraft in PC using JoyToKey

Updated - July 22, 2016
  1. Download the lastest Joytojey (5.8.9 at this moment)
  2. Open Joytokey, Select  File > New, and enter a profile name, we will write Minecraft.
    It will create a file called Minecraft.cfg in the same folder JoyToKey.exe is.
  3. Close JoyToKey (not only the window, right click on system tray icon and Terminate Joytokey (X))
  4. Open Minecraft.cfg with Notepad and replace it with this text
  5. [General]
    FileVersion=57
    NumberOfJoysticks=1
    Use8Axes=1
    UseDiagonalInput=0
    UsePOV=1
    Threshold=200
    KeySendMode=0
    NumberOfButtons=32
    DisplayMode=3
    UsePOV8Way=0
    Threshold2=200
    SoundFile=
    ImageFile=

    [Joystick 1]
    Axis1n=1, 41:00:00:00, 0.000, 0, 0
    Axis1p=1, 44:00:00:00, 0.000, 0, 0
    Axis2n=1, 57:00:00:00, 0.000, 0, 0
    Axis2p=1, 53:00:00:00, 0.000, 0, 0
    Axis3n=2,  -48,   0,   0, 0, 0, 0, 0.000, 0,  0, 1.0, 100, 0, 0, 0
    Axis3p=2,   48,   0,   0, 0, 0, 0, 0.000, 0, 95, 1.0, 100, 0, 0, 0
    Axis5n=2,    0,   0,   0, 1, 0, 0, 0.000, 0, 95, 1.0, 100, 0, 0, 0
    Axis5p=2,    0,   0,   0, 0, 0, 1, 0.000, 0, 95, 1.0, 100, 0, 0, 0
    POV1-1=1, 74:00:00:00, 0.000, 0, 0
    POV1-3=1, 70:00:00:00, 0.000, 0, 0
    Button01=1, 20:00:00:00, 0.000, 0, 0
    Button02=1, 51:00:00:00, 0.000, 0, 0
    Button03=1, 45:00:00:00, 0.000, 0, 0
    Button04=1, 10:00:00:00, 0.000, 0, 0
    Button05=2,    0,   0,   9, 0, 0, 0, 0.000, 0, 95, 1.0, 100, 0, 0, 0
    Button06=2,    0,   0,  -9, 0, 0, 0, 0.000, 0, 95, 1.0, 100, 0, 0, 0
    Button07=1, 71:00:00:00, 0.000, 0, 0
    Button08=1, 1B:00:00:00, 0.000, 0, 0
    Button10=2,    0,   0,   0, 0, 1, 0, 0.000, 0, 95, 1.0, 100, 0, 0, 0
    POV1-5=1, 7A:00:00:00, 0.000, 0, 0
    POV1-7=1, 72:00:00:00, 0.000, 0, 0
    Axis4n=2,    0, -47,   0, 0, 0, 0, 0.000, 0, 95, 1.0, 100, 0, 0, 0
    Axis4p=2,    0,  47,   0, 0, 0, 0, 0.000, 0, 95, 1.0, 100, 0, 0, 0

    [Joystick 2]
    Axis1n=0
    Axis1p=0
    Axis2n=0
    Axis2p=0
    Axis3n=0
    Axis3p=0
    Axis4n=0
    Axis4p=0
    Axis5n=0
    Axis5p=0
    Axis6n=0
    Axis6p=0
    Axis7n=0
    Axis7p=0
    Axis8n=0
    Axis8p=0
    POV1-1=0
    POV1-2=0
    POV1-3=0
    POV1-4=0
    POV2-1=0
    POV2-2=0
    POV2-3=0
    POV2-4=0
    Up-Right=0
    Up- Left=0
    Dn- Left=0
    Dn-Right=0
    Button01=0
    Button02=0
    Button03=0
    Button04=0
    Button05=0
    Button06=0
    Button07=0
    Button08=0
    Button09=0
    Button10=0
    Button11=0
    Button12=0
    Button13=0
    Button14=0
    Button15=0
    Button16=0
    Button17=0
    Button18=0
    Button19=0
    Button20=0
    Button21=0
    Button22=0
    Button23=0
    Button24=0
    Button25=0
    Button26=0
    Button27=0
    Button28=0
    Button29=0
    Button30=0
    Button31=0
    Button32=0
  6. Open Joytokey
  7. Select Minecraft profile
  8. Have fun!