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


Posted: luglio 19th, 2014 | Author: Francesco Apollonio | 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: Francesco Apollonio | 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

with

action = %(action_mw)s

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

 


simulate keyboard/mouse input


Posted: settembre 23rd, 2013 | Author: Francesco Apollonio | Filed under: English, Guide, Howto | Tags: , , , , , , , , | No Comments »


The program that you have to use to do what’s in the subject is: xdotool

eg. xdotool key –clearmodifiers –window `(xdotool search –classname Navigator | head -1)` ctrl+alt+p


Debian Jessie 64 bit and Skype 4.2 problems


Posted: settembre 20th, 2013 | Author: Francesco Apollonio | 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

to

load-module module-udev-detect tsched=0

 


How QEMU works – Chapter 1


Posted: maggio 20th, 2013 | Author: Francesco Apollonio | Filed under: English, Guide, QEMU, Virtualizzazione | Tags: , , , , , | No Comments »


I’ve worked a lot with QEMU some months ago and I’ve learned some tricks that maybe can be useful for someone. Before starting this is the list of the arguments which will be treated in the future articles

  1. QEMU introduction
  2. TCG helpers
    TCG variables
    TCG caches
  3. QEMU parameters
    QEMU RAM functions
  4. ARM semihosting Read the rest of this entry »

  • Articoli Recenti:

  • Tag

  • Categorie

  • Meta

  • Licenza Creative Commons

    Copyright © 2014, | 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