Category Archives: Linux

All about Linux

kernel Linux openSUSE Wireless

Compiling the wireless module “broadcom-wl” for kernel 4.x under openSUSE 13.2

This weekend I was trying to compile the broadcom-wl src package for kernel 4.0.5-4 under my openSUSE 13.2 installed on my Mac Book Air 13″ (dual boot). After I updated my Linux box the wireless was a mess, it left to work.

I decided to compile the module from sources.

First, I downloaded all its dependencies with:
zypper source-install -d broadcom-wl-kmp-desktop

Second I got the source RPM package broadcom-wl-6.30.223.248-3.27.src.rpm from here.

After I tried to rebuild the package with the command rpmbuild (you need to install it if you don’t have it).
rpmbuild --rpbuild broadcom-wl-6.30.223.248-3.27.src.rpm

But I was getting this error message:

rpmbuild --rebuild broadcom-wl-6.30.223.248-3.27.src.rpm
Installing broadcom-wl-6.30.223.248-3.27.src.rpm
cat: /usr/src/packages/SOURCES/broadcom-wl-preamble: No such file or directory
cat: /usr/src/packages/SOURCES/broadcom-wl-preamble: No such file or directory
cat: /usr/src/packages/SOURCES/broadcom-wl-preamble: No such file or directory
cat: /usr/src/packages/SOURCES/broadcom-wl-preamble: No such file or directory
error: File /usr/src/packages/SOURCES/hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz: No such file or directory

I found I need some additional files. I got them from here. I just need the files: broadcom-wl-preamble and hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz, I downloaded them.

After I downloaded them, I copied them to correct path:
mv ~/Download/broadcom-wl-preamble /usr/src/packages/SOURCES/
mv ~/Download/hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz /usr/src/packages/SOURCES/

I tried again to rebuild the package:

rpmbuild --rebuild broadcom-wl-6.30.223.248-3.27.src.rpm

This time, all it’s fine.

The new RPMS built was generated on /usr/src/packages/RPMS/x86_64. I just only need to install them:

rpm -i /usr/src/packages/RPMS/x86_64/broadcom-wl-kmp-desktop-6.30.223.248_k4.0.5_4.g56152db-3.27.x86_64.rpm /usr/src/packages/RPMS/x86_64/broadcom-wl-6.30.223.248-3.27.x86_64.rpm

That’s it. Just I need to load the kernel module:

modprobe wl

It’s works. The wireless “Network controller: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter” it’s working now.

Regards

Chrome HTTP Proxy Linux Proxy

Force Chrome to tunnel DNS requests through a SSH socks proxy

On your local machine, make the SSH connection :

ssh -D 8888 server

Force Chrome to use the ssh tunnel for DNS requests :

google-chrome --proxy-server="socks5://localhost:8888"

You can check if it works by running this command on the ssh server :

tcpdump -i eth0 port 53

tcpdump will show dns trafic for any activity in Chrome.

Corkscrew HTTP Proxy Linux openSUSE Proxy ProxyCommand

SSH through HTTP proxies

I’m working with a client who only has a HTTP Proxy to output to Internet. It’s very restrictive but it works.

Under openSUSE 13.1 the browsers (firefox and chrome) work fine. The main problem comes when I try to do a SSH session to outside server.

The solution for me was to use Corscrew and the ProxyCommand.

I added the following line to ~/.ssh/config file:

ProxyCommand /usr/local/bin/corkscrew proxy.work.com 80 %h %p

where proxy.work.com is the proxy server and 80 is the port of the same proxy.

Optionally you can add a username/password for the HTTP Proxy.

ProxyCommand /usr/local/bin/corkscrew proxy.work.com 80 %h %p ~/.ssh/proxyauth

Your login credentials should be in ~/.ssh/proxyauth in format:

login:password

Regards.

Fixxxer

Gnome Linux openSUSE

How to disable touchpad tapping when typing on keyboard

After I installed openSUSE 13.1 on a Dell Inspiron 5537 I had problems with the video to have the max. resolution 1366×768. The YaST just recognized 1024×768. I had to create a /etc/X11/xorg.conf file (if it doesn’t exist) and to add specific custom modelines. Here my file /etc/X11/xorg.conf:

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Modeline "1366x768" 76.75 1366 1414 1446 1618 768 771 776 790 +hsync -vsync
Modeline "1366x768" 51.16 1366 1414 1446 1618 768 771 776 790 +hsync -vsync
EndSection

After I restarted the X server I got the correct resolution.

Another thing I had problems was the TouchPad, when I used the keyboard but if I tap the touchpad accidentaly the cursor was moved. I fixed it on Gnome-Control-Center->Mouse & Touchpad, uncheck “Tap to click” and check “Disable while typing”. With both options checked the behaviour is that the touchpad keeps working.

Regards

Fix

Linux

After many time …

Hi,

I have many time since I posted something, I hope this year I can to post something about whatever more often … I hope to begin new projects.

My old projects are boring now 😛

Regards