Posts Tagged ‘linux’

Set up a VPN

March 6, 2020 Leave a comment

You want to use a VPN.

VPNBOOK provides free VPN accounts. In this YouTube video it is explained in detail how to set up a VPN connection under Ubuntu using VPNBOOK. I tried it under Manjaro too, the process is exactly the same.

The VPN connection worked well when I tried it and I could listen to Pandora Radio, which bans everyone outside of the US.

What Is My IP Address is a great tool to verify if VPN was activated or not. It will also tell you the location of the VPN endpoint.

If you are willing to pay for your VPN, Proton VPN can be a good choice.

Categories: network Tags: , , ,

get the ASCII code of a character

December 21, 2019 Leave a comment
man ascii
Categories: bash Tags: , , ,

57 Raspberry Pi commands that everyone should know

October 9, 2018 Leave a comment

See . They are mainly Unix commands, thus they are not specific to Raspberry Pi.


  • Files management
  • Network commands
  • System updates
  • Packages management
  • System management
  • Raspbian commands
  • Misc commands
  • Warrior commands
Categories: linux Tags: , , , , ,

playing Heroes 3 under Linux

October 29, 2015 Leave a comment

I don’t play much but a few days ago I decided to play with Heroes 3 again. offers the complete package for less than $10. There is a new HD version but the critics are not very good. Everyone says that the original is much better.

I tried it with Wine and I could install it without any problems. The game worked well for 10 minutes, but then I couldn’t click on some buttons, there was a problem with the mouse handling, so the game became unplayable.

I have dual-boot on my machine but I didn’t want to restart it each time I wanted to play this game. But I also had a Windows 7 in VirtualBox. I use that for work, so I didn’t want to pollute it with games. So I made a linked clone about this virtual machine. It means that the linked clone requires the original image and it only registers the differences. Thus, a linked clone doesn’t require much space. In this linked clone I installed Heroes 3 and it was playable. However, there were some problems with the resolution. The game has a fixed resolution of 800 x 600, so it started in a small area. I wanted to stretch it to fullscreen, so switched on the “Scale Mode” under the “View” menu point of VirtualBox. It was fine on one of my machines, but on another one it bacame terribly pixelated. Upgrading VirtualBox from version 5.0.0 to 5.0.8 solved this issue.

Summary: I can play Heroes 3 again under Linux using VirtualBox. The resolution of Windows is set to 800 x 600 and “Scaled Mode” is activated in VirtualBox.


Categories: games Tags: , , , ,

What’s new in Linux kernel 3.8?

April 26, 2013 Leave a comment
Categories: Uncategorized Tags: , ,

Bing promotes Linux

June 14, 2012 Leave a comment

I sent it to reddit too but those *** have no sense of humour :(

Categories: fun Tags: , , ,

YUMI – Multiboot USB Creator at

September 2, 2011 Leave a comment

YUMI (Your Universal Multiboot Installer) can be used to create a Multiboot USB Flash Drive containing multiple operating systems, antivirus utilities, disc cloning, diagnostic tools, and more. Aside from a few distributions, all files are stored within the Multiboot folder, making for a nicely organized Multiboot Drive that can still be used for other storage purposes.” (source)

First of all, you should know that YUMI is a Windows application. When you launch it, it offers a nice list of Linux distributions. It can also download the ISO files. Just specify your USB stick and YUMI installs the distribution on it.

Related work
Ubuntu has its own startup disk creator, you can find it at System -> Administration -> Startup Disk Creator. I used that some times and if I remember correctly, first it erased the USB stick. So with this one you can put only one distribution on a stick, while YUMI permits several distributions on the same stick.

With YUMI I put Ubuntu on a stick. When I booted the stick, I got a live version of Ubuntu. It’s not a full installation, which means that when you reboot the machine with the stick, you lose all your changes and you get a virgin Ubuntu live again.

I’d like to put a normal (not live) Ubuntu on a USB stick. I’ll have to figure out how to do that.

Windows 7
A friend of mine asked me to reinstall her laptop and put Windows 7 on it. I had Windows 7 in ISO format and I didn’t want to burn it on a DVD. With YUMI I could put the ISO on a USB stick and I could install Windows 7 from it without any problem.

Recording soundcard output

March 26, 2011 2 comments


I wanted to capture and record any audio output that comes through my soundcard. It is especially useful when, for example, you listen to a radio station that has a Flash player.

I have had this problem in my head for years when recently I came across the article “Linux: Recording soundcard output using arecord” written by Karthik. However, it seems that Karthik’s blog is abandoned :( Let’s hope he is all right.

This post will consist of two parts. In Part 1, I will sum up the results of Karthik. In Part 2, which is my own contribution to the topic, I will present some scripts that can do all the necessary changes of Part 1.

Part 1

As I mentioned, this section is based on this article and its comments.

This solution works with ALSA drivers. We will use the commands “arecord” and “amixer“, they come with ALSA.

First, create the file $HOME/.asoundrc with the following contents:

pcm.copy {
    type plug
    slave {
        pcm hw
    route_policy copy

This specifies a PCM device called ‘copy’.

Execute the command “amixer contents“. It will display all controls applicable to the soundcard. We need the “Capture*” controls. Here is the relevant output on my machine:

numid=24,iface=MIXER,name='Capture Source'
  ; type=ENUMERATED,access=rw------,values=2,items=8
  ; Item #0 'Mic'
  ; Item #1 'CD'
  ; Item #2 'Video'
  ; Item #3 'Aux'
  ; Item #4 'Line'
  ; Item #5 'Mix'
  ; Item #6 'Mix Mono'
  ; Item #7 'Phone'
  : values=0,0
numid=25,iface=MIXER,name='Capture Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=26,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=15,step=0
  : values=10,10
  | dBscale-min=0.00dB,step=1.50dB,mute=0

The value of “Capture Source” is 0, i.e. recording is done from the microphone. “Capture Switch” is on, and “Capture Volume” is 10.

Here is how to set to record from the soundcard. On my machine, the value of ‘Mix’ is 5, thus I need to execute the following command:

amixer cset numid=24,iface=MIXER,name='Capture Source' 5

If “Capture Switch” is off, turn it on:

amixer cset numid=25,iface=MIXER,name='Capture Switch' on

Finally, lower the “Capture Volume”, otherwise the recorded output will be noisy. You will have to play with this to find the value that works best for you. For me a low value, about 20%-30% of the maximum, worked fine.

amixer cset numid=26,iface=MIXER,name='Capture Volume' 3

Also, do not set your player volume too high while recording since it will introduce noise into your recording. Set it to 50%-60% or even lower.

Now you are ready to start recording. Try this:

arecord -d 10 -c 2 -f S16_LE -r 44100 -t wav -D copy foobar.wav

It will record a 10 seconds long session in WAV format. If you don’t want to specify the time limit, use the switch “-d 0” and stop the recording with CTRL + C. You can listen back the recording with “mplayer foobar.wav” for instance.

If it works fine, you can consider to save the output in a compressed form:

arecord -d 0 -c 2 -f S16_LE -r 44100 -t wav -D copy | oggenc -o foobar.ogg -

It will encode your recording to OGG format on the fly. Notice the “-” at the end of the command oggenc, it tells oggenc to read from the standard input. The command oggenc is part of the vorbis-tools package.

If you want to use Skype for instance, don’t forget to set back the recording to your microphone!!!

Thanks to Karthik for figuring all these things out :)

Part 2

As you have seen in Part 1, there are several commands and switches that you need to keep in mind to record your soundcard’s output. To facilitate life, I’ve made some scripts that can do all this job for you.



I copy here the contents of the README file:

Recording soundcard output


    Verify your current settings. It is a good idea to write down
    these settings to know what to restore later.
    You can edit and specify
    these values.

    Change settings for recording soundcard output.
    Default values: 'Mix', 'on', and 3. You might want to
    change these values in the source.

    Start recording. The script will ask the name of the
    output file. If you press ENTER, the script will generate
    a unique name. By default, the output will be stored in the
    "output" folder.

    Restore settings for recording the microphone. Edit the
    source and set those values that you wrote down at the


Well, it might happen that you have no ‘Capture Source’. It simply means that you had no luck :( I don’t know how to record the soundcard output in this case. Maybe this kind of recording is not supported by your soundcard? I tried this method on four Dell machines with a success rate of 50%. Two of them have no ‘Capture Source’ at all…

You can check the section “Related links” below, one article addresses a similar problem.

Related links

[ @reddit ]