sábado, 18 de marzo de 2017

instalar sublime text 3 en debian localmente

Había descargado el archivo desde el sitio de Sublime pero lo estaba instalando con dpkg -x, una pesadilla, pues me estaba dejando los directorios sublime_text, usr/bin y usr/share dentro de /opt/sublimetext3/ y además la  liga simbólica no podía hacerse.

Sólo tuve que hacer sudo dpkg  -i sublime-text_build-3126_amd64.deb desde mi directorio Documentos


miércoles, 8 de febrero de 2017

RESOLVED E: Sub-process /usr/bin/dpkg returned an error code (1)

Todo empezó por instalar una versión superior de Python 2.7 en Debian 8. Obtuve un error de configuración.

Se encontraron errores al procesar:
 /var/cache/apt/archives/python-crypto_2.6.1-5+deb8u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Entonces:

sudo rm -f /var/lib/dpkg/info/python-crypto_2.6.1-5+deb8u1_amd64.deb.post*
sudo rm -f /var/lib/dpkg/info/python-crypto_2.6.1-5+deb8u1_amd64.deb.pre*

sudo rm -f /var/cache/apt/archives/python-crypto_2.6.1-5+deb8u1_amd64.deb.*


Pero el paquete me daba lata cada vez que corría update o dist-update, ya que quería que Python 3 se usara por defecto. Entonces tuve que revertir la liga simbólica:

sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python

Al reiniciar:
dukespeaks@stela100:~$ which python /usr/bin/python dukespeaks@stela100:~$ sudo apt-get autoclean Leyendo lista de paquetes... Hecho Creando árbol de dependencias Leyendo la información de estado... Hecho dukespeaks@stela100:~$ sudo apt-get autoremove Leyendo lista de paquetes... Hecho Creando árbol de dependencias Leyendo la información de estado... Hecho 0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados. 1 no instalados del todo o eliminados. Se utilizarán 0 B de espacio de disco adicional después de esta operación. Configurando python-crypto (2.6.1-5+deb8u1) ... dukespeaks@stela100:~$


sábado, 19 de noviembre de 2016

no sound after reboot only with alsactl init

PROBLEM: no sound after reboot, only sounds with 'alsactl init' command

--------------------- *** ---------------------
Useful commands to get information:

dukespeaks@stela100:~$ cat /proc/asound/card*/codec* | grep Codec
Codec: Realtek ALC269VB
Codec: Intel PantherPoint HDMI


dukespeaks@stela100:~$ sudo aplay -l
[sudo] password for dukespeaks:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
dukespeaks@stela100:~$


dukespeaks@stela100:~$ pacmd list-modules
23 module(s) loaded.
    index: 0
name: <module-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute state of devices"
module.version = "5.0"
    index: 1
name: <module-stream-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute/device state of streams"
module.version = "5.0"
    index: 2
name: <module-card-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore profile of cards"
module.version = "5.0"
    index: 3
name: <module-augment-properties>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Augment the property sets of streams with additional static information"
module.version = "5.0"
    index: 4
name: <module-switch-on-port-available>
argument: <>
used: -1
load once: no
properties:

    index: 5
name: <module-udev-detect>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Detect available audio hardware and load matching drivers"
module.version = "5.0"
    index: 6
name: <module-alsa-card>
argument: <device_id="0" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1">
used: 1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "ALSA Card"
module.version = "5.0"
    index: 7
name: <module-native-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Native protocol (UNIX sockets)"
module.version = "5.0"
    index: 8
name: <module-default-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the default sink and source"
module.version = "5.0"
    index: 9
name: <module-rescue-streams>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
module.version = "5.0"
    index: 10
name: <module-always-sink>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Siempre tenga al menos un sumidero cargado aunque sea uno nulo"
module.version = "5.0"
    index: 11
name: <module-intended-roles>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically set device of streams based on intended roles of devices"
module.version = "5.0"
    index: 12
name: <module-suspend-on-idle>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is idle for too long, suspend it"
module.version = "5.0"
    index: 13
name: <module-console-kit>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each ConsoleKit session of this user"
module.version = "5.0"
    index: 14
name: <module-systemd-login>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each login session of this user"
module.version = "5.0"
    index: 15
name: <module-position-event-sounds>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
module.version = "5.0"
    index: 16
name: <module-role-cork>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Mute & cork streams with certain roles while others exist"
module.version = "5.0"
    index: 17
name: <module-filter-heuristics>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Detect when various filters are desirable"
module.version = "5.0"
    index: 18
name: <module-filter-apply>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Load filter sinks automatically when needed"
module.version = "5.0"
    index: 19
name: <module-x11-publish>
argument: <display=:0>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "X11 credential publisher"
module.version = "5.0"
    index: 20
name: <module-x11-cork-request>
argument: <display=:0>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Synthesize X11 media key events when cork/uncork is requested"
module.version = "5.0"
    index: 21
name: <module-x11-xsmp>
argument: <display=:0 session_manager=local/stela100:@/tmp/.ICE-unix/1045,unix/stela100:/tmp/.ICE-unix/1045>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "X11 session management"
module.version = "5.0"
    index: 22
name: <module-cli-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Command line interface protocol (UNIX sockets)"
module.version = "5.0"

dukespeaks@stela100:~$ sudo modprobe -v snd-hda-intel

dukespeaks@stela100:~$ sudo modprobe snd-hda-intel
dukespeaks@stela100:~$ lsmod | grep hda
snd_hda_codec_hdmi     45118  1
snd_hda_codec_realtek    67168  1
snd_hda_codec_generic    63181  1 snd_hda_codec_realtek
snd_hda_intel          26407  3
snd_hda_controller     26646  1 snd_hda_intel
snd_hda_codec         104500  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13148  1 snd_hda_codec
snd_pcm                88662  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd                    65338  14 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
soundcore              13026  2 snd,snd_hda_codec


dukespeaks@stela100:~$ sudo lsmod
Module                  Size  Used by
ctr                    12927  1
ccm                    17577  1
ip6t_REJECT            12468  1
nfsd                  262938  2
auth_rpcgss            51209  1 nfsd
oid_registry           12419  1 auth_rpcgss
nfs_acl                12511  1 nfsd
nfs                   192232  0
lockd                  83389  2 nfs,nfsd
fscache                45542  1 nfs
xt_hl                  12449  6
sunrpc                237364  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
ip6t_rt                12456  3
nf_conntrack_ipv6      13605  7
nf_defrag_ipv6         33358  1 nf_conntrack_ipv6
ipt_REJECT             12465  1
xt_LOG                 17171  10
xt_limit               12601  13
xt_tcpudp              12527  18
xt_addrtype            12557  4
nf_conntrack_ipv4      18448  7
nf_defrag_ipv4         12483  1 nf_conntrack_ipv4
xt_conntrack           12681  14
ip6table_filter        12540  1
ip6_tables             25820  1 ip6table_filter
nf_conntrack_netbios_ns    12445  0
nf_conntrack_broadcast    12365  1 nf_conntrack_netbios_ns
nf_nat_ftp             12460  0
nf_nat                 18241  1 nf_nat_ftp
nf_conntrack_ftp       16783  1 nf_nat_ftp
nf_conntrack           87424  8 nf_nat_ftp,nf_conntrack_netbios_ns,nf_nat,xt_conntrack,nf_conntrack_broadcast,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_ipv6
iptable_filter         12536  1
ip_tables              21711  1 iptable_filter
x_tables               27399  13 ip6table_filter,xt_hl,ip_tables,xt_tcpudp,xt_limit,xt_conntrack,xt_LOG,iptable_filter,ip6t_rt,ipt_REJECT,ip6_tables,xt_addrtype,ip6t_REJECT
arc4                   12536  2
x86_pkg_temp_thermal    12951  0
rtl8192ce              52164  0
intel_powerclamp       17159  0
intel_rapl             17356  0
rtl_pci                25947  1 rtl8192ce
rtlwifi                54719  2 rtl_pci,rtl8192ce
coretemp               12820  0
rtl8192c_common        40162  1 rtl8192ce
mac80211              482315  3 rtl_pci,rtlwifi,rtl8192ce
kvm                   392862  0
iTCO_wdt               12831  0
sparse_keymap          12818  0
iTCO_vendor_support    12649  1 iTCO_wdt
crc32_pclmul           12915  0
cfg80211              413730  2 mac80211,rtlwifi
cryptd                 14516  0
jmb38x_ms              17096  0
pcspkr                 12595  0
joydev                 17063  0
memstick               13696  1 jmb38x_ms
serio_raw              12849  0
rfkill                 18867  3 cfg80211
snd_hda_codec_hdmi     45118  1
ac                     12715  0
i2c_i801               16965  0
battery                13356  0
snd_hda_codec_realtek    67168  1
snd_hda_codec_generic    63181  1 snd_hda_codec_realtek
snd_hda_intel          26407  6
snd_hda_controller     26646  1 snd_hda_intel
snd_hda_codec         104500  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13148  1 snd_hda_codec
snd_pcm                88662  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
evdev                  17445  12
snd_timer              26668  1 snd_pcm
snd                    65338  20 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
soundcore              13026  2 snd,snd_hda_codec
mei_me                 17941  0
mei                    74977  1 mei_me
lpc_ich                20768  0
mfd_core               12601  1 lpc_ich
shpchp                 31121  0
tpm_tis                17231  0
tpm                    31511  1 tpm_tis
processor              28221  0
vmhgfs                 65266  0
vmw_vmci               55383  1 vmhgfs
fuse                   83350  3
parport_pc             26300  0
ppdev                  16782  0
lp                     17074  0
parport                35749  3 lp,ppdev,parport_pc
autofs4                35529  2
ext4                  477942  3
crc16                  12343  1 ext4
mbcache                17171  1 ext4
jbd2                   82514  1 ext4
sg                     29973  0
sd_mod                 44356  5
crc_t10dif             12431  1 sd_mod
sr_mod                 21903  0
cdrom                  47424  1 sr_mod
crct10dif_generic      12581  0
crct10dif_pclmul       13387  1
crct10dif_common       12356  3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
crc32c_intel           21809  0
psmouse                99249  0
ahci                   33334  4
libahci                27158  1 ahci
libata                177508  2 ahci,libahci
scsi_mod              191405  4 sg,libata,sd_mod,sr_mod
sdhci_pci              22097  0
sdhci                  35161  1 sdhci_pci
jme                    39529  0
mii                    12675  1 jme
mmc_core              102374  2 sdhci,sdhci_pci
fan                    12681  0
thermal                17559  0
wmi                    17339  0
i915                  841331  4
button                 12944  1 i915
video                  18096  1 i915
i2c_algo_bit           12751  1 i915
drm_kms_helper         49210  1 i915
ehci_pci               12512  0
drm                   249998  6 i915,drm_kms_helper
ehci_hcd               69837  1 ehci_pci
i2c_core               46012  5 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
thermal_sys            27642  6 fan,video,intel_powerclamp,thermal,processor,x86_pkg_temp_thermal
usbcore               195468  2 ehci_hcd,ehci_pci
usb_common             12440  1 usbcore


dukespeaks@stela100:~$  lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
dukespeaks@stela100:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
dukespeaks@stela100:~$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7c00000 irq 43


-----------------------------

Vorago Stela100

Intel support model : E14CU43

--------------------------------

dukespeaks@stela100:~$ sudo alsactl init
Found hardware: "HDA-Intel" "Intel PantherPoint HDMI" "HDA:10ec0269,12972029,00100100 HDA:80862806,80860101,00100000" "0x1297" "0x2029"
Hardware is initialized using a generic method

--------------------- *** ---------------------


SOLVED: this works for me, I just added this line
options snd-hda-intel model=ALC269VB
in /usr/share/alsa/alsa.conf

Enjoy!

miércoles, 13 de abril de 2016

SQL state 42703 character 107

¿Undefined column? ¿Por qué algo tan sencillo como INSERT INTO no camina? Porque no quieren que usemos PostgreSQL. Al parecer, las columnas que había definido como tipo character[], tal y como las nombré y con los datos que puse, donde es importante diferenciar entre mayúsculas y minúsculas, me estaba causando algún tipo de conflicto. En algún post de Stack Overflow leí algo parecido respecto a los códigos de caracteres.

Entonces, la tabla Autor de la BD EPNBooks queda definida como sigue:

autId bigint
autNombre text
autApPat text
autApMat text
autPseudo text
autWeb text
autRedes text


domingo, 6 de marzo de 2016

configuracion de seguridad de Internet Explorer

Open Server Manager
Conf. this Local Server
Properties Area (look at pic below)
IE enhances security conf.
Click on IE enhanced Security Conf dialog
Admin: Off
Press OK button


domingo, 28 de febrero de 2016

Miguel de Icaza

Leyendo toda la mierda que le está callendo al compatriota Miguel de Icaza.