Posts

Simple Samba setup on Lubuntu

I have a simple lubuntu server where I setup a ssh server. While it is sufficient to access a driver/folder from another linux machine using sftp, it is a pain from Windows & Mac, so unfortunately, samba is still needed here. For simplicity I needed only one samba user that I could map to a single user on my lubuntu machine Following the various tutorial I ended up doing this with simple commands Install samba $ sudo apt-get install samba Add myuser to the samba $ sudo smbpasswd -a myuser Export the drive I needed (no guest user) $ sudo vi /etc/samba/smb.conf to add the following export (no real option needed here) [files] path = /media/music/files writeable = yes save and Restart samba $ sudo service smbd restart

Epson AcuLaser 1750 on Ubuntu 64bits

There is no linux driver however the Xerox Phaser 6000 is compatible and the driver can be found here: http://www.support.xerox.com/support/phaser-6000/downloads/engb.html?operatingSystem=linux&fileLanguage=en_GB One issue is that the driver is 64 bits only so to make it work I had to install a 32 bits compatibility layer $ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 libcupsimage2:i386 Instruction are similar to what is posted here for the Xerox 6010 In my various attemps, I had to remove the driver, restart cups, install the 32bits layers and THEN reinstall the driver, then the printer. In the printers applet, the model of the printer is 'Xerox Phaser 6000B'

Making WebMIDI outputs work on Ubuntu with Timidity or fluidsynth

In my first experimentation with WebMIDI, I could never get any simple MIDI output on Ubuntu 14.04. I wanted at least to make it work with timidity. I assume that you have enable WebMIDI in Chrome/Chromium/Dartium chrome://flags/#enable-web-midi I assume timidity is already running otherwise you can start it using timidity -iAD If you rather use fluidsynth you can start it with a command similar to fluidsynth -a alsa -m alsa_seq -l -i /usr/share/soundfonts/fluidr3/FluidR3GM.SF2 the list of outputs using the WebMIDI API was empty although I had the following $ aconnect -lo client 14: 'Midi Through' [type=kernel]     0 'Midi Through Port-0' client 128: 'TiMidity' [type=user]     0 'TiMidity port 0 '     1 'TiMidity port 1 '     2 'TiMidity port 2 '     3 'TiMidity port 3 ' client 129: 'FLUID Synth (32737)' [type=user]     0 'Synth input port (32737:0)' The solution I found was to load s...

Cracking sound in Audacity in Ubuntu 13.10

While audio was playing fine in audacious and other music player in my Ubuntu 13.10, it was playing very fast and cracking in audacity. A solution that worked for me was to disable udev in the pulseaudio configuration The one line solution was to change /etc/pulse/default.pa sudo gedit /etc/pulse/default.pa existing ### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect .endif new ### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so _HACK_NO_UDEV load-module module-udev-detect .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect .endif The next thing was to quit Audacity, kill pulse audio pulseaudio --kill then restart Audacity.

Allow using Google API in Web applications from localhost

While most scenarios in Google Drive API doc and samples  tells to run the sample app on a server, it is actually possible to run from localhost as long as the javascript origin is properly added: Make sure you have created a new client id for web applications such as: Client ID for web application Client ID 123456789.apps.googleusercontent.com Email address 123456789@developer.gserviceaccount.com Client secret XxxxxXXXxxxxxx Redirect URIs none Javascript Origins http://127.0.0.1:3030 For example for dart applications: http://127.0.0.1:3030

Prevent localization warning on a string in Android

Lint might warn you that some resources are not localized. Sometimes you need to put a string in a resource so that it can be referenced from another xml and read from code without duplicating the string value (error prone). You want also to make sure that this string will not be localized. An example I use sometimes is to put dummy key string in a preference activity A good reference is here:  http://tools.android.com/recent/non-translatablestrings According to the doc, this is all you need: <string name="app_homeurl" translatable="false">http://my/app/home.html</string> According to Android translation service there is also a way to mark a whole string or a part of a string not translatable ( http://developer.android.com/distribute/googleplay/publish/localizing.html ) <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Example placeholder for a for a URL --> <string name="app_homeurl"> ...

Install Maven 3.1.1 on Ubuntu 13.10

AppEngine requires Maven 3.1 while ubuntu 13.10 is stuck at 3.0.4 $ mvn -v Apache Maven 3.0.4 Maven home: /usr/share/maven 'which mvn' gives '/usr/bin/mvn' Fortunately /usr/local/bin is before in the path variable and this is where I put all the symlink I need Download the latest maven from  http://maven.apache.org/download.cgi I installed it here /opt/apps/apache-maven-3.1.1/bin Add a symlink  sudo ln -s '/mnt/ssd/apps/apache-maven-3.1.1/bin/mvn' /usr/local/bin/mvn I add to start a new console to check mvn version on the command line $ mvn -v Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200) Maven home: /opt/apps/apache-maven-3.1.1