16 november 2016

Download music from youtube using Linux

Simple procedure to download music from youtube using the command line in Lubuntu (probably works also in other Linux distributions)

  • Open Xterm
  • Download software (needed only once):

    • sudo apt-get install parcellite
      (this helps to copy & paste from e.g. firefox navigaton bar to Xterm window)
    • sudo apt-get install lame
      More info about the mp3 encoder Lame
    • sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
    • sudo chmod a+rx /usr/local/bin/youtube-dl
  • Download a song (put everything on 1 line !)
    /usr/local/bin/youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=.......
  • The mp3 file is saved in the current directory op your Xterm window
  • http://askubuntu.com/questions/237942/how-does-copy-paste-work-with-xterm
  • http://askubuntu.com/questions/791969/error-while-using-youtube-dl
  • http://askubuntu.com/questions/178481/how-to-download-an-mp3-track-from-a-youtube-video 

13 juli 2016

Run Windows 10 on Linux Mint using virtualbox

The screen of my portable is acting strange from time to time. 
Maybe the video controller has a problem ...
To be sure I do not loose anything from my portable, I decided to virtualize it and check to see if I could run this virtualized pc on Linux Mint using virtualbox.

Important: my portable runs Windows 10 - 64-bit, so in order to run the virtualized version I also need a 64-bit OS. I chose Linux Mint Mate 64-bit as host OS.

The test succeeded : I can run my Windows 10 64-bit portable in Linux Mint using virtualbox.

Here is what I did:
  • Virtualize the portable
    • (on my running portable I wanted to virtualize:)Using "VMware vCenter Converter Standalone" I converted my portable running Windows 10 64-bit to a virtual machine. The result was a vmdk file. I copied the files (vmdk and vmx file) on an external usb disk.
    • The software can be found at : https://www.vmware.com/products/converter
  • Download and install Linux Mint on a USB stick
    • (on a windows pc) On the internet, search for "Download Linux Mint 18 Sarah"
    • Download linux mint :
      • https://www.linuxmint.com/download.php
      • Download the Mate 64-bit version from one of the servers listed.
        I used the server in Europe > Netherlands > Triple IT
        (1.6 GB is being downloaded)
    • (on a windows pc) Burn iso to USB stick
      • Use UNetbootin to burn the downloaded ISO to a USB stick (USB stick needs of course at least 2 GB of free space)
        • [x] Diskimage  - ISO
        • Navigate to your download folder
        • select linuxmint-18-mate-64bit.iso
        • Type: USB-disk  E:\   [OK]
      • Alternatives for UNetbootin:
        see http://www.howtogeek.com/127377/the-best-free-tools-for-creating-a-bootable-windows-or-linux-usb-drive/
    • Start Linux Mint from USB stick
      • Boot the PC you want to use with the Linux on your USB stick
      • On some computers you can/need press F12 or Esc and F9   to choose the (USB) device you want to boot from.
      • If boot does not work, check bios.
    • Optionally change keyboard layout (Menu > Keyboard > Layouts > Add > Country: Belgium > Add
      Move "Belgian" above "English (US)" > Close
    • Download, install and start virtualbox
      • Start Terminal
      • Type "sudo apt-get install virtualbox-qt" to download and install virtualbox (this will take quite some time so be patient).
      • Type "virtualbox" in the terminal window to start virtualbox
        • Add and the virtual machine
          • Be sure the USB disk with the Windows 10 vmdk file is attached to your PC
          • New
            • Name : type some name e.g. vmWin10
            • Type: Microsoft Windows
            • Version: Windows 10 (64-bit)
              • Next
            • 2 GB Ram is sufficient
              • Next
            • [x] Use an existing virtual hard disk file
              • Navigate to the vmdk file on the external hard disk > Open > Create
          • Click on the Start (green arrow) (and wait at least 5 minutes ... it takes some time to start Windows 10 in virtualbox, but it works !
            P.S. In virtualbox, the Ctrl+Alt+Delete is replaced by right Ctrl+Del to login in Windows

    Using RDP (Remote Desktop) to connect to vmWin10

    • Configure virtualbox > Machine > Settings > Display > Remote display > [x] Enable Server (Server Port: 3389)
    • Configure virtualbox > Netwerk > Attached to : Bridged adapter (Name: enp2s0)
    • Enable RDP in vmWin10 : Control Panel > System > Properties > Remote Desktop > [x] Allow remote connections to this computer
    • If necessary : Disable firewall in vmWin10 (or allow RDP through) : Control Panel > System and Security > Windows Firewall > Turn Windows Firewall on or off 
    • Verify IP address of you vmWin10 : in Windows > Start > cmd > ipconfig
      Note the IPv4 address (in most cases something like 192.168.x.y)
    • On another pc on your network : start > mstsc /v:192.168.x.y (replace by ip address of your vmWin10)

    12 mei 2015

    eID reader - Linux Mint

    Belgische Identiteitskaart (eID) gebruiken onder Linux Mint 17

    Onderstaande procedure werkte voor mij :

    1. Sluit de eid-lezer aan op een USB poort en steek je Identiteitskaart in de lezer
    2. Ik heb eerst dit geprobeerd, maar dat bleek niet onmiddellijk te werken:
      eid-archive.deb (DEB, 6.01 Kb)
      Klik op bovenstaande link.
      Na het downloaden kan je dit bestand dubbeklikken en autom. zal de Package Installer de software installeren
    3. Menu > Administration > Software Manager
    4. Download en installeer : 
      1. beid-mozilla-extension
      2. eid-archive
      3. eid-mw
      4. eid-viewer
    5. Voor de oudere versies van de ACS ACR38U kaartleze, installeer je ook nog libacr38u als volgt:
      1. Menu > Terminal
      2. sudo apt-get install libacr38u
    6. Nu kan je testen kan via Menu > Accessoiries > eID Viewer
    7. Tip: Gebruik Firefox om bv. bij de CM (http://www.cm.be) in te loggen met je eID kaart.
      Je krijgt wel allerlei foutmeldingen, maar na installatie als "Exceptions" lukt het wel.
      (het is me niet gelukt met Google Chrome)
    8. Als je wil verifiëren of je lezer herkend wordt, gebruik dan pcsc_scanDaarvoor kan je pcsc-tools downloaden via de Software Manager

    Bron en Meer info vind je in deze FAQ 

    Voor Windows 7 :

    1. Log in met een windows account met administrator privileges (administrator of beheerder)
    2. Indien nog niet geïnstalleerd: download en installeer java (http://www.java.com)
    3. Download en installeer EID middleware : http://www.eid.belgium.be (sluit de EID reader pas aan op het moment dat dit gevraagd wordt !)
    4. Download en installer Firefox: http://www.mozilla.org
    5. Start Firefox en voeg add-on toe voor Eid Belgium : https://addons.mozilla.org/en-US/firefox/addon/belgium-eid/ (Deze add-on moet geïnstalleerd worden voor elke windows user die de Eid wil gebruiken)
    6. Voor de belastingaangifte : Surf naar http://taxonweb.be en kies je taal
    7. Klik om Naar mijn aagifte

    28 november 2014

    View photos that are stored on your Linux Mint Pc on your Android tablet

    How to view photos on a tablet (photos are stored on a PC)

    I currently use Linux Mint as desktop PC and an Android tablet.
    My photos are stored on the desktop PC, but I wanted to view them also on my tablet.

    This is what I did:

    1. On the Linux Mint desktop PC : download system-config-samba
    2. Start this program and click on the + to add a directory (in my case: /mnt/data/Our Pictures)
      1. On the Basic tab :
        1. Directory : /mnt/data/Our Pictures
        2. Share name : Our Pictures
        3. [x] Visible
      2. On the Access tab : [x] Allow access to everyone
        Note: If you want a more secure access, you can choose to allow access to specific users
    3. On the Android tablet: Go to the Play Store and Search for "smb client"; Download (and install of course) ES File Explorer File
    4. Start ES File Explorer
    5. On the top left click on the 3 horizontal bars to display the menu and choose "Network" > Lan
      Click on the + (New):
      1. Server: /Our Pictures e.g. Pictures
      2. [x] Anonymous
      3. Display as : Our Pictures on my desktop PC
    6. Now if you click on "Our Pictures on my desktop PC" you'll see the files  on the desktop pc

    23 maart 2013

    Down the mountain with my new Nokia Lumia 800 (Stabilized)

    How to turn a shaky movie made with a Nokia Lumia 800 into a much better (stabilized) experience.

    The video has been modified with the YouTube standard image stabilization because it's a very shaky film
    You can also watch the original to compare the result.
    Search for "nokia lumia 800 stabilizer" on youtube if the link does not work.

    P.S. The film is not mine, I just place a link to it from my blog. All rights belong to the person who originally uploaded the movie on youtube.

    01 maart 2013

    Windows 7 startup slowly at home

    Windows 7 takes a long time to start at home


    When I am not connected to the LAN at work, windows 7 takes a long time to startup while displaying "Waiting for the User Profile Service"


    Thanks to Chris Buchanan, I have found the solution at http://www.chrisbuchanan.ca/Blog/Lists/Posts/Post.aspx?ID=17

    What you need to do is to change the Local Group Policy setting the max. wait time for the network ... to 0


    1. Start  > gpedit.msc
    2. Computer Configuration > Administrative Templates > System > User Profiles
    3. Edit the policy "Set maximum wait time for the network if a user has a roaming user profile or remote home directory" to "Enabled" and set the value Wait for network for maximum (seconds) to 0.
    4. OK
    5. Close policy editor
    6. Then force an update of the group policy (gpupdate /force) (this worked only when I was connected to the LAN at work)

    Since I did this, the startup time decreased from more than 1 minute to 20 sec. on my Dell XPS 15z (Core i7) laptop.

    More details can be found  at http://www.chrisbuchanan.ca/Blog/Lists/Posts/Post.aspx?ID=17

    02 november 2012

    Connecting Mobile Phone through Portable PC

    Connect your smartphone to the internet via your portable

    So, I got myself a new smartphone (with Windows Phone7.5) (Nokia Lumia 800).

    At some places I have no wireless network available, but I still want to reach the internet via my smartphone.

    This is possible if
    • you have a portable PC with Intel My WiFi Technology
    • your portable is connected to the Internet
    • you follow the configuration instructions below

    Configuration instructions:

    On your Portable PC (which is connected to the internet):

    1. Start - Network and Sharing center
    2. Change adapter settings
      Change Adapter Settings
      Change Adapter Settings
    3. Choose your interface (which is connected to the internet)
      e.g. Wireless Network home or Local Area Network

      Interface with Internet access
    4. Doubleclick this interface and choose Properties
    5. Tab Sharing
      • [x] Allow other network users to connect through this computer's Internet Connection
        Home networking connection: choose the correct name e.g. PC37Dhotspot
    6. PC37Dhotspot - Microsoft Virutal WiFi Miniport Adapter @2) :
      • Assign PC37Dhotspot IP address netmask

    1. Start - Intel My WiFi Utility
    2. Options

    3. General
      [x] Autom. enable Intel My WiFi Technology on system startup
      [x] Show taskbar icon
    4. Notifications
      [x] Notify when devices connect to this computer
      [x] Notify when devices disconnect from this computer
      [x] Nofify when new devices try to connect to this computer
    5. DHCP
      assign your DHCP range to e.g.
      Start IP
      End IP
    6. Power
      Enable Intel My WiFi only when power source is
      [x] Any power source
      Autom. disabling: Never
    7. Profile
    8. Intel Wireless PAN (preset) - Edit Profile name : Intel Wiireless PAN
      SSID : D4B.....-..190 (choose your own SSID ;-)
      Security Type: WPA2-PSK
      Encryption Type: AES-CCMP
      Password: ....... (choose your own password)
      ICS and Bridging filter : Disabled
      DHCP and DNS : Enabled (at home) or Disabled (at work because other DHCP and DNS servers are available

    Be sure Enabled is visible on the same line as the Options... Help links
    Disable/Enable toggle

    On your mobile

    1. Settings
    2. Wifi
    3. Switch to on by moving the slider to the right
    4. Find your SSID (D4B.....-..190) and tap on it to connect
    5. Wait a few seconds ... Connected should appear under the SSID

    Now you can start using the internet on your mobile (traffic goes via your pc)