sábado, 10 de agosto de 2013

EDUP Realtek Semicondutor Corp. RTL8192CU/RTL8188CU 802.11n WLAN

Using a cheap usb wifi dongle EDUP on Fedora.

For newer kernel versions (3.+) there is included the module rtl8192cu which activates the device and allows to detect the wireless networks, but I couldn't connect to any network despite no visible error occurred.

Instead, since I got it, I've used the official driver from realtek. One just needed to be aware to blacklist rtl8192cu:

echo 'blacklist rtl8192cu' >> /etc/modprobe.d/blacklist.conf

To install the driver just unzip the contents and on a terminal

sh install.sh

Enter the sudo password whenever it is prompted.

However since kernel 3.7+ I couldn't compile the driver because some functions cease to exist on the newer kernels versions, and so I was stuck to keep my older kernel.

Fortunately some awesome person ported it and shared with everyone:

git clone https://github.com/dz0ny/rt8192cu.git
cd rt8192cu
make
sudo make install

Possible errors

compiling driver error
osdep_service.h:575:2: error: implicit declaration of function "daemonize"
possible to comment out the daemonize call in osdep_service.h, though the driver will compile will get an error when trying to load it

loading module error
8192cu: Unknown symbol kernel_thread (err 0) 
This could occur if using a module compiled for a different kernel (3.6-) or if compiled without properly porting the driver to kernel 3.7+

Use the ported module, tested on kernel 3.9.10-100.fc17
Another mirror to the ported driver : rt8192cu.tar.gz

All credits to authors maintained.
Sources:
link1
link2

terça-feira, 23 de julho de 2013

quarta-feira, 20 de junho de 2012

dovecot+ispconfig - authenticate user with alias domain

For anyone using ispconfig3 with dovecot ( imap/pop server), the default auth mechanism only allows the user to authenticate with e-mails from the main domain.

If one domain is @domain.com and we configure @domain.pt to be an alias of the first one, we can only login with:

username: user@domain.com
passwd: *******

To allow the login to be made with user@domain.pt, we have to change the query made by dovecot. Just replace the user_query and password_query in dovecot-sql.conf:

user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE disable%Ls = 'n' AND (email = '%u' OR email = CONCAT ( SUBSTRING_INDEX('%u', '@', 1), (select mail_forwarding.destination FROM mail_forwarding where source = CONCAT ('@', SUBSTRING_INDEX('%u', '@', -1)))))

password_query = SELECT password FROM mail_user WHERE disable%Ls = 'n' AND ( email = '%u' OR email = CONCAT ( SUBSTRING_INDEX('%u', '@', 1),(select mail_forwarding.destination FROM mail_forwarding where source = CONCAT ('@', SUBSTRING_INDEX('%u','@', -1)))))


terça-feira, 24 de janeiro de 2012

SpeedTouch THOMSON ST5x6v6 - Administrador Novis

Administrador novis dos Speedtouch THOMSON ST5x6v6, e possivelmente outros equipamentos:
NovisSU : n0v!5
Apenas necessário para login via telnet, e mesmo assim possivelmente o utilizador admin é suficiente para efectuar todas as alterações pretendidas.

sexta-feira, 18 de novembro de 2011

Webmin Modules - Pure-FTPD

The latest version (0.55) of this third-party module has a typo, that renders the users display a nightmare, with users inside users inside users...
The official package, here, doesn't seem to be maintained anymore, and I didn't find a way to contact them to fix this, so I leave you with a patch for those of you who already have it, a the package with this fixed.
patch
pureftpd.wbm

source