2015-06-27

Linux Mint 17 on Laptop Acer Aspire-E5-571G PART4



  • Using Microphone

Run 
$ alsamixer 
Press F6 select sound card...  Set Mic Boost to 20 and disable Auto-Mute M (use arrow buttons)




Check audio device for capture audio from mic, by

$ cat /proc/asound/devices

  1:        : sequencer
  2: [ 0- 8]: digital audio playback
  3: [ 0- 7]: digital audio playback
  4: [ 0- 3]: digital audio playback
  5: [ 0- 0]: hardware dependent
  6: [ 0]   : control
  7: [ 1- 0]: digital audio playback
  8: [ 1- 0]: digital audio capture
  9: [ 1- 0]: hardware dependent
 10: [ 1]   : control
 33:        : timer

Try record for 20 seconds

arecord -f cd -D hw:1,0 -d 20 test.wav

It worked for me, I able to hear myself. 

Graphical "Sound Preferences" looks like not handle the device properly. To use mic with graphical apps you probably have to select the capture device manually.

  





2015-06-13

Internet connection sharing with Raspberry Pi via Ethernet

My laptop is connected to internet via WiFi and I want to connect raspberrypi via Ethernet cable. I want to be able connect to raspberrypi via ssh and I also want for raspberrypi to be able access the internet. I have basic understanding about networks. And I think this task should event easier then setup a router. Bud it is not! Unless you know exactly what to do! You can find tips with a million terminal commands... You  can study advanced networks... bridging or nat and then run dhcp server... If you running a server this is all great! On a laptop you do not need all this...


Click Edit!

Change to "Shared to other computers"



Just my local network connection information, no voodoo magic!

First time I set this up! It did not work! Solution is: RESET laptop after configuration is done!

To find out raspberrypi IP:

rolas@Aspire-E5-571G ~ $ cat /var/lib/misc/dnsmasq.leases
1434209461 b8:27:eb:75:89:01 10.42.0.79 raspberrypi ff:eb:75:89:01:00:01:00:01:1c:dd:60:6a:b8:27:eb:75:89:01


https://www.youtube.com/watch?v=ZK-JHfJqmkY

2015-05-14

Changing password on Linux


If You set password only once during the installation and later on decided to change your password it can be confusing. What you have to know is during installation it sets the same password for your user and for root.

For example you enter the same password when you install some thing as root:

$ sudo apt-get install audacious         

and  when connecting to your machine via ssh as user:

$ ssh user@192.168.0.101

If you want to keep it that way with new password, you have to change it for both user and root:

$ sudo passwd
$ passwd

If you wondering what is a good password , check this link:

https://blog.kaspersky.com/password-check/

After playing with this site a come to conclusion that it can be two types of good passwords:

  • relativity short password (9 characters) containing combination of  lower case letters, capital letters,  numbers and symbols. What could be harder to remember.
  • longer password (18 characters) containing only lower case Latin letters, but in this case You can use sentence in foreign language. It can be much easier to remember. Perhaps you can use a bit longer sentence in English as well.    




2015-05-02

Linux Mint 17 on Laptop Acer Aspire-E5-571G PART3

Automatic brightness control very very annoying, it dims down almost random, so you have to set it couple times...


To disable improper automatic brightness control, uncheck this:




To control brightness manually from 0% to 100% , install xbacklight

$ sudo apt-get install xbacklight

Don't know how to overwrite functional keys for brightness, so I made two new shortcuts for brightness control, with commands:

$ xbacklight -inc 5
$ xbacklight -dec 5

For non 60 fps videos, mplayer works pretty well with this config:

$ cat ~/.mplayer/config
# Write your default config options here!

vo=gl_nosw
af=equalizer=0:-1:-2:-3:-4:-4:-3:-2:-1:0
cache=8192
cache-min=4
nosub=1
framedrop=1












2015-02-15

GIT ANNEX

  • Installing latest git version

https://launchpad.net/~git-core/+archive/ubuntu/ppa

$ sudo add-apt-repository ppa:git-core/ppa

$ apt-get update && apt-get --only-upgrade install git

$ apt-get install git-annex
 
$ git --version
git version 2.3.0

$ git annex version
git-annex version: 5.20140412ubuntu1

https://git-annex.branchable.com/walkthrough/


  • Git-annex binary for Raspberry-pi


https://github.com/tradloff/git-annex-RPi

  • Windows version


https://downloads.kitenet.net/git-annex/windows/current/
















2015-02-14

Installing Texmaker

http://www.xm1math.net/texmaker/index.html
  • Linux

$ sudo apt-get install texlive-full texmaker

To see the result press F6 to convert  and then press blue arrow next to "View PDF".

  •   Windows

http://www.howtotex.com/howto/installing-latex-on-windows/


  • Gray background with white letters

\documentclass{article}
\usepackage{xcolor}

\pagecolor[rgb]{0.15,0.15,0.15}
\color[rgb]{1,1,1}
\begin{document}

Hello \clearpage
World

\end{document}