Raspberry cross-compiling

Posted: agosto 9th, 2014 | Author: | Filed under: English, Guide, Linux, Programmazione | Tags: , , , , , , , , , , , | No Comments »

I want to cross-compile some stuff for my Raspberry, this is a (memo for me) tutorial to do that. Read the rest of this entry »

RTL8192cu (Asus USB-N13 usb wireless) slow speed on Linux (debian7)

Posted: luglio 19th, 2014 | Author: | Filed under: Bug, English, Guide, Linux, Senza categoria | Tags: , , , , | No Comments »

A very good tutorial which works, found here.

That’s the way to solve the problem:

I have found the answer for this. I combined instructions from different websites to get this (from http://askubuntu.com/questions/168627/connecting-asus-usb-n13-wireless-adapter and http://act28.blogspot.com.au/2011/06/how-to-get-asus-usb-n13-adapter-working.html).

First start by downloading the drivers the drivers from Realtek from this website – http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true

Note: Make sure that you scroll down and download the driver that matches the output from your lsmod (eg: rtl8192cu). I am also going to copy and paste some of the stuff straight from the other answers.

Next get the Linux headers necessary to build the drivers. Type/paste in the terminal, entering your password when asked:

sudo apt-get install linux-headers-uname -r

Then, we’ll install the software tools necessary to build the drivers. Type/paste:

sudo apt-get install build-essential

Now, let’s build the drivers!

Paste the below:

cd ~/Downloads/RTL8188C_8192C_USB_linux_v3.4.3_4369.20120622

Then type/paste:

sudo bash install.sh

You will see lines of text scroll by, pause, and scroll by again, as the driver is built and installed. You will know it’s done when the prompt returns, preceded by this message:

install -p -m 644 8192cu.ko /lib/modules/3.2.0-27-generic/kernel/drivers/net/wireless/ /sbin/depmod -a 3.2.0-27-generic

The Setup Script is completed !

Next you need to open the following files and modify them:

sudo gedit /etc/modprobe.d/network_drivers.conf

Once it is opened add the following lines to the file and save it:

install rt3070sta /sbin/modprobe –ignore-install rt3070sta $CMDLINE_OPTS; /bin/echo “0b05 1784” > /sys/bus/usb/drivers/rt2870/new_id

Then modify this file as well using the command:

sudo gedit /etc/udev/rules.d/network_drivers.rules

and to this add:

ACTION==”add”, SUBSYSTEM==”usb”, ATTR{idVendor}==”0b05″, ATTR{idProduct}==”1784″, RUN+=”/sbin/modprobe -qba rt3070sta”

Now just save the file and close the terminal window and restart. It should work on the first restart at full speed. If adapter is not recognized at the first bootup, then unplug and plug it back in for it to work(you will only have to do this once on the first bootup and then it should be auto recognized on every other restart after the first one).

Fail2Ban to protect various server types from intrusions

Posted: settembre 24th, 2013 | Author: | Filed under: Administration, English, Guide, Howto, recensione | Tags: , , , , , , , , , | No Comments »

It’s quite normal to see some ip addresses that try to connect to my ssh server with bruteforce attacks. Fail2Ban is the solution to block these attacks.

Setup it’s very easy:

aptitude install fail2ban
cd /etc/fail2ban
sudo cp jail.conf jail.local

now we can edit jail.local to change the default configuration.

to enable email notifications, we have to change the line:

action = %(action_)s


action = %(action_mw)s

everything is configured right now, you will receive an email notification for each attack blocked.


Debian Jessie 64 bit and Skype 4.2 problems

Posted: settembre 20th, 2013 | Author: | Filed under: Bug, English | Tags: , , , , , , , , , , | No Comments »

Does skype glitch, skip or do you hear cracklings?

Edit /etc/pulse/default.pa and turn the Timer-based scheduler off, changing the line:

load-module module-udev-detect


load-module module-udev-detect tsched=0


OMG I’ve deleted a system directory! How do I recover it?

Posted: febbraio 20th, 2013 | Author: | Filed under: English, Guide, Howto | Tags: , , , , , , , , , , | No Comments »

Ok, a little introduction first. I was working on an uninstall target of a Makefile for a system library. For a very unlucky case (or maybe for my stupidity) I’ve deleted (fortunately not all) my /usr directory :)

And now?

As I said before not every files and binaries were deleted because I realized quickly what I was doing and I pressed ctrl-c to stop it before it was late.

Let’s start with the trick.
Read the rest of this entry »

  • Articoli Recenti:

  • Tag

  • Categorie

  • Meta

  • Licenza Creative Commons

    Copyright © 2017, | ldlabs.org – Blog is proudly powered by WordPress All rights Reserved | Theme by Ryan McNair modified By Francesco Apollonio

    Smilla Magazine Il Bloggatore iwinuxfeed.altervista.org Feedelissimo - tecnologia WebShake - tecnologia