sábado, 27 de agosto de 2016

UltraStar Deluxe in Ubuntu 16.04 LTS

Original USB mics without problem
https://sourceforge.net/p/ultrastardx/wiki/Setup%20Singstar%20Microphones%20(Linux)/

(I understand 80% as 80% of "bar", there is no number)
Download UltraStar Deluxe v1.3.2-beta SourceCode.zip (88.2 MB)


After that, with "./configure"
configure: error: no Free Pascal Compiler found  

So looking here
https://sourceforge.net/p/ultrastardx/wiki/Compiling%20UltraStar%20Deluxe%20on%20GNU-Linux/

sudo apt-get install fpc
After that

configure: error:
Package sdl2 was not found in the pkg-config search path.


Just googling
sudo apt-get install libsdl2-dev


New error
configure: error:
Package SDL2_image was not found in the pkg-config search path.


sudo apt-get install libsdl2-image-dev

configure: error:
Package sqlite3 was not found in the pkg-config search path.

But I do have sqlite3 installed

sqlite3 ya está en su versión más reciente (3.11.0-1ubuntu1).

Full message
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable


But with some googling I installed
sudo apt-get install libsqlite3-dev

Next error
configure: error:
Package lua was not found in the pkg-config search path



Next install
sudo apt-get install liblua5.3-dev

Next error
configure: error:
Package libavformat was not found in the pkg-config search path.

Next install
sudo apt-get install libavformat-dev

Next error:
configure: error:
Package portaudio-2.0 was not found in the pkg-config search path.
Next install
sudo apt-get install portaudio19-dev

But that uninstall some packages
jaaa libasound2-plugins:i386 libjack-jackd2-0 libjack-jackd2-0:i386 sonic-visualiser
and it shows some dependencies


After that, with make

src/media/UMediaCore_FFmpeg.pas(44,3) Fatal: Can't find unit swscale used by UMediaCore_FFmpeg
Fatal: Compilation aborted


After more googling

sudo apt-get install libswscale-dev

Problem desapears with a new ./configure (not retrying make directly)

New error, almost at the end

Linking ../game/ultrastardx
/usr/bin/ld.bfd: aviso: ../game/link.res contiene secciones de salida. ¿Olvidó -T?
/usr/bin/ld.bfd: no se puede encontrar -lSDL2_gfx
/usr/bin/ld.bfd: no se puede encontrar -lSDL2_mixer
/usr/bin/ld.bfd: no se puede encontrar -lSDL2_net
/usr/bin/ld.bfd: no se puede encontrar -lSDL2_ttf
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping


New install
sudo apt-get install libsdl2-gfx-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev

And ... it works

Path for songs

sudo mkdir /usr/local/share/ultrastardx/songs
sudo chmod 777 /usr/local/share/ultrastardx/songs


domingo, 31 de julio de 2016

Adobe Acrobat Reader install in 16.04.01 LTS 64 bits

I use evince, but sometimes Adobe Acrobat software it is mandatory (Madrid administration)

http://www.krizna.com/ubuntu/install-adobe-reader-ubuntu-14-04/


http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb


dpkg -i does not work

Dependencies

libgtk2.0-0:i386 libatk1.0-0:i386 libcairo2:i386 libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libglib2.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpixman-1-0:i386 libxcb-render0:i386 libxcb-shm0:i386 libpango-1.0-0:i386 libharfbuzz0b:i386 libgraphite2-3:i386 libthai0:i386 libdatrie1:i386


With all that packages, installed

Edit:
http://installion.co.uk/ubuntu/xenial/multiverse/n/nspluginwrapper/install/index.html
Not found !?
https://launchpad.net/ubuntu/xenial/+package/nspluginwrapper

https://launchpad.net/ubuntu/xenial/amd64/nspluginwrapper/1.4.4-0ubuntu5

nspluginwrapper depende de nspluginviewer (= 1.4.4-0ubuntu5); sin embargo:
  El paquete `nspluginviewer' no está instalado.
 
And it is not available in xenial amd64

https://launchpad.net/ubuntu/+source/nspluginwrapper/1.4.4-0ubuntu5

But it seems it is ok to use i386 and other version
https://bugs.launchpad.net/ubuntu/+source/nspluginwrapper/+bug/853738
So downloaded and installed from
http://packages.ubuntu.com/wily/i386/nspluginviewer/download

After that

sudo dpkg -i nspluginviewer_1.4.4-0ubuntu5_i386.deb

sudo nspluginwrapper -i /opt/Adobe/Reader9/Browser/intellinux/nppdf.so

nspluginwrapper -l
/usr/lib/mozilla/plugins/npwrapper.nppdf.so
  Original plugin: /opt/Adobe/Reader9/Browser/intellinux/nppdf.so
  Plugin viewer: /usr/lib/nspluginwrapper/i386/linux/npviewer
  Wrapper version string: 1.4.4-1


sábado, 14 de mayo de 2016

Network manager error

[   27.379197] init: network-manager main process (946) killed by SEGV signal
[   27.379216] init: network-manager main process ended, respawning
[   27.499154] init: network-manager main process (956) killed by SEGV signal
[   27.499177] init: network-manager main process ended, respawning
[   27.562899] init: network-manager main process (962) killed by SEGV signal
[   27.562923] init: network-manager main process ended, respawning
[   27.626491] init: network-manager main process (969) killed by SEGV signal
[   27.626515] init: network-manager main process ended, respawning


Solved:

https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1539634
http://askubuntu.com/questions/727127/last-upgrade-crashes-network-manager-no-internet-connection-no-applet


sudo ifconfig eth0 up
sudo dhclient
sudo apt-get install libnl-3-200=3.2.21-1 libnl-route-3-200=3.2.21-1 libnl-genl-3-200=3.2.21-1
sudo service network-manager restart



miércoles, 17 de febrero de 2016

Pendrive unable to read "error -71" "unable to enumerate USB device"

A 8GB pendrive was not working in windows, and the owner gave it to me because I use linux and "she heard it is more powerful"

Just inserted in linux, it wasn't working
dmesg output

Feb 17 13:08:51 invitado kernel: [  125.540289] usb 5-1: new full-speed USB device number 2 using uhci_hcd
Feb 17 13:08:52 invitado kernel: [  125.956083] usb 5-1: device not accepting address 2, error -71
Feb 17 13:08:53 invitado kernel: [  126.892059] usb 5-1: new full-speed USB device number 6 using uhci_hcd
Feb 17 13:08:53 invitado kernel: [  127.304292] usb 5-1: device not accepting address 6, error -71

Feb 17 13:09:18 invitado kernel: [  152.228211] usb 5-1: device descriptor read/64, error -71
Feb 17 13:09:27 invitado kernel: [  161.192330] hub 5-0:1.0: unable to enumerate USB device on port 1
 

Some googling
https://paulphilippov.com/articles/how-to-fix-device-not-accepting-address-error No way ... my webcam is also USB

Second attemp
http://askubuntu.com/questions/117524/usb-device-not-accepting-address   

Changed kernel and reboot, same message, not working

Without reboot, the same link has more info
$ sudo -s
# cd /sys/bus/pci/drivers/uhci_hcd
# echo */usb5
# echo 0000:... > unbind 


I tested with usb5, and after some time, it worked

Feb 17 13:16:51 invitado kernel: [  605.137210] uhci_hcd 0000:00:1d.0: remove, state 4
Feb 17 13:16:51 invitado kernel: [  605.137223] usb usb5: USB disconnect, device number 1
Feb 17 13:16:51 invitado kernel: [  605.143482] uhci_hcd 0000:00:1d.0: USB bus 5 deregistered

...
Feb 17 13:18:02 invitado kernel: [  676.036272] usb 6-1: device not accepting address 27, error -71
Feb 17 13:18:05 invitado kernel: [  679.004846] usb 2-1: new high-speed USB device number 6 using ehci-pci
Feb 17 13:18:05 invitado kernel: [  679.027777] usb 2-1: New USB device found, idVendor=1516, idProduct=1213
Feb 17 13:18:05 invitado kernel: [  679.027790] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 17 13:18:05 invitado kernel: [  679.027797] usb 2-1: Product: DISK 2.0
Feb 17 13:18:05 invitado kernel: [  679.027803] usb 2-1: Manufacturer: USB
Feb 17 13:18:05 invitado kernel: [  679.027808] usb 2-1: SerialNumber: 0016E667DC4FA9C122CFB75A
Feb 17 13:18:05 invitado mtp-probe: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
Feb 17 13:18:05 invitado mtp-probe: bus: 2, device: 6 was not an MTP device
Feb 17 13:18:05 invitado kernel: [  679.118474] usb-storage 2-1:1.0: USB Mass Storage device detected
Feb 17 13:18:05 invitado kernel: [  679.121708] scsi6 : usb-storage 2-1:1.0
Feb 17 13:18:05 invitado kernel: [  679.121821] usbcore: registered new interface driver usb-storage
Feb 17 13:18:06 invitado kernel: [  680.120776] scsi 6:0:0:0: Direct-Access     USB      DISK 2.0         1.00 PQ: 0 ANSI: 2
Feb 17 13:18:06 invitado kernel: [  680.123775] sd 6:0:0:0: Attached scsi generic sg2 type 0
Feb 17 13:18:06 invitado kernel: [  680.125789] sd 6:0:0:0: [sdb] 16035840 512-byte logical blocks: (8.21 GB/7.64 GiB)
Feb 17 13:18:06 invitado kernel: [  680.128287] sd 6:0:0:0: [sdb] Write Protect is off
Feb 17 13:18:06 invitado kernel: [  680.128293] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
Feb 17 13:18:06 invitado kernel: [  680.129111] sd 6:0:0:0: [sdb] No Caching mode page found
Feb 17 13:18:06 invitado kernel: [  680.129118] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Feb 17 13:18:06 invitado kernel: [  680.133230] sd 6:0:0:0: [sdb] No Caching mode page found
Feb 17 13:18:06 invitado kernel: [  680.133237] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Feb 17 13:18:07 invitado kernel: [  680.890912]  sdb: sdb1
Feb 17 13:18:07 invitado kernel: [  680.896727] sd 6:0:0:0: [sdb] No Caching mode page found
Feb 17 13:18:07 invitado kernel: [  680.896740] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Feb 17 13:18:07 invitado kernel: [  680.896744] sd 6:0:0:0: [sdb] Attached SCSI removable disk
Feb 17 13:18:08 invitado udisksd[2165]: Mounted /dev/sdb1 at /media/enrique/MIRIAM on behalf of uid 1000
 

lunes, 13 de julio de 2015

Unable to download/upgrade apps with google play, analysis, workaround, not yet good solution...

I began to suffer the next problem:
With a lot of free space on device, Google Play says it is unable to upgrade some apps

Message
"Error
Error downloading "xxxxx". There is insufficient space on the device"

It happens even with the smallest upgrade o new app (for example goo.gl URL Shortener, less than 1 MB, unable to be installed just after uninstall!!!!)

Just googling, I found this link, which points to "Google Play Services" 

http://forums.androidcentral.com/android-4-1-4-2-4-3-jelly-bean/450097-fixed-error-downloading-app-name-there-insufficient-space-device.html#post4054747

I found somewhere that removing Google Play Services upgrade / downgrading to factory version it began to work, and testing it, it works:
-Step 1: remove  Google Play Services upgrades
-Step 2: install app ugrades previously failing
-Step 3: reboot phone and reinstall again Google Play Services upgrades (Google Maps and Google Mail need last version!)

But it seems to be a temporal solution, as the error reappears
(It seems to be the same situation described here, just works for 5-10 mins http://android.stackexchange.com/questions/91840/regarding-the-error-downloading-insufficient-space-error-in-the-google-play-s)

So most times I have a new upgrade I have to do the whole process, so I need a real solution, not just a workaround.

Googling, I found more "patches" like this: http://www.pcadvisor.co.uk/how-to/google-android/how-fix-androids-insufficient-storage-available-error-message-3498845/ which indeed needs to install a new app... this is not a solution, as it seems you are going to have again the same problem, and it is just a tool to solve every time you have it.

This seems a real solution: to resize cache partition

http://android.stackexchange.com/questions/27083/google-play-error-downloading-app-insufficient-space

When I saw the error I checked this
shell@android:/ # df
Filesystem             Size   Used   Free   Blksize
...
/cache                 370M     6M   364M   4096


So it seems cache partition is not full ... and this is not exactly the problem?
I tried to remove just "Google Play Services" cache (663 KB to 0 KB), it took a while, and /cache partition usage did not change, and the error persists.



 
It seems clear it is a Gooble Play Services bug, I will try to search for a Google report about this and a good solution, not just a patch.
In XDA I found this post, somehow related
http://forum.xda-developers.com/showthread.php?t=1766378


Any new idea or new info will be appreciated!
I will edit this post with new info

Edit 2015/07/17: Tested that after five app install, same message appearse and I am not able to upgrade more apps, not just "Google Play Services". After reboot, with old Google Play Services, all apps are installed ok, including Google Play Services upgrade ...

Edit 2015/08/09: Tested that the same app can be installed from Fdroid if available, and even really big apps (like LibreOffice reader, 50 MB), so it is really a Google Play Services bug. Trying to install an app from web google play, it does install ok?

Edit 2015/08/21: It seems finally solved, but not intentionally. It has been working during last week. How? I decided to replace Twitter official client (it was installed as system app, so I removed it with Titanium backup), and I installed twidere (available in Google Play and F-Droid). After that, Google Play updates run smoothly ... maybe Google Play is not ready to find "wrong system apps", like a "system twitter".

Edit 2015/08/26: same problem, but message has changed.
It happened with a whatsapp update, after a lot of updates without problem, and after I installed some new apps from Google Play also without problem. Same workaround has worked with whatsapp update. Today it was happening with gmail update,I  was going to put here error message in english, but after changing language in settings ... it worked!
With spanish language again it fails again !
"Espacio de almacenamiento insuficiente
No hay suficiente espacio en este dispositivo para descargar "(nombre app)". Puedes eliminar aplicaciones o contenido que ya no necesites y volver a intentarlo.
[CANCEAR] [VER ALMACENAMIENTO]"
Somehow some google services are restarted after language change: for example gmail notifications reappear.
But in english again, same error
"Insufficient storage
This device doesn't have enough space to download "(app name). Consider deleting apps or content you no longer need and try again.
[CANCEL] [VIEW STORAGE]"

It will continue ...

sábado, 25 de abril de 2015

Tracking twitter and TTYtter

I would like to know if a special word appears in twitter ...

I found some tools
http://www.socialbrite.org/2011/01/11/guide-to-free-social-media-monitoring-tools/
but most of them are not free, just 30 days free trial.

But in previous link

  • Track is a little-known Twitter feature that lets you track keywords and have them sent directly to your mobile phone as soon as they’re posted.
It seems really old (2007) and it seems SMS is mandatory?
https://blog.twitter.com/2007/tracking-twitter

After some googling I found this
http://www.floodgap.com/software/ttytter/
No problem with ubuntu 14.04 to install with apt-get, and configure it

...
** This wizard will overwrite /home/enrique/.ttytterkey
Press RETURN/ENTER to continue or CTRL-C NOW! to abort.


Request from https://api.twitter.com/oauth/request_token ... SUCCEEDED!

1. Visit, in your browser, ALL ON ONE LINE,

https://api.twitter.com/oauth/authorize?oauth_token=xxxxxxx

2. If you are not already signed in, fill in your username and password.

3. Verify that TTYtter is the requesting application, and that its permissions
are as you expect (read your timeline, see who you follow and follow new
people, update your profile, post tweets on your behalf and access your
direct messages). IF THIS IS NOT CORRECT, PRESS CTRL-C NOW!

4. Click Authorize app.

5. A PIN will appear. Enter it below.

Enter PIN> xxxxx

Request from https://api.twitter.com/oauth/access_token ... SUCCEEDED!
Written keyfile /home/enrique/.ttytterkey

Now, restart TTYtter to use this keyfile.
(To choose between multiple keyfiles other than the default .ttytterkey,
 tell TTYtter where the key is using -keyf=... .)



How to send a track command?
With my first attempt "track" in comand line  ... result is a tweet with "track" text

http://www.splitbrain.org/blog/2008-01/22-list_of_twitter_commands

Trying with "/track word" it says
/track word
*** changed: track => word
*** (transmitting to background)
*** changed: track => word




Maybe is just that.
But how to test it works?

With /track I can't see expected result "Ask twitter to return a list of all currently tracked terms. " but
TTYtter> /track
*** invalid command
*** to pass as a tweet, type /%%





http://www.floodgap.com/software/ttytter/#built

With Ctrl+C I see
cleaning up.
*** you were tracking:
-track='word'

So it seems it is just for that session. Running again ttytter and quiting, it says just "cleaning up."