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

Google Drive Mac OS X

Error Msg Installing Google Drive: “You are running an outdated version of Google Drive. Please use the latest version available.”

After I reinstalled the Google Drive installer for Mac, I always receive this message “You are running an outdated version of Google Drive. Please use the latest version available” and exit of program.

After made some searching on web I found the solution.

Here’s how I fixed it. I went into ~/User//Library/Application Support/Google/

And deleted the “Drive” folder.

Then I installed Google Drive again and it worked! Hope this helps

You’ll need to show hidden files first to find your Library folder: http://guides.macrumors.com/Viewing_hidden_files_on_a_Mac

Regards

Draw.io Visio

Draw.io – Create Visio-Like diagrams for free and easy

http://www.draw.io

It even contains the Cisco, Azure, and UML icons! Here’s one I made earlier morning:

Deploy Oracle with Chef

Could save your work and export to many formats.

For me is enough replacement for visio … but I am no a diagrams designer.

Brilliant work guys.

openSUSE Routers

Installing router keygen on openSUSE 13.2

Recently I installed the software for generate default WPA/WEP keys on Linux openSUSE 13.2

I downloaded the software from the GitHub repository.

Because the INSTALL file only describe about how install under Debian/Ubuntu enviroments, I found what packages are equivalents on openSUSE. First detail, you need to compile the software, there is not pre-compiled packages for openSUSE.

I created a simple simple script called router-keygen-depens.sh, here the content:

linux-u87j:~ # cat router-keygen-depens.sh
#!/bin/bash
zypper install -t pattern devel_basis
zypper install libqt5-qtbase-devel libqt5-qtdeclarative-devel libqt5-qtquickcontrols libqt5-qtgraphicaleffects libqt5-qtscript-devel libnm-gtk-devel libqt5-qttools-devel
zypper install libopenssl-devel cmake rpmbuild
ln -s /usr/bin/lrelease-qt5 /usr/bin/lrelease

The last symbolic link is important.

After, I unzip the downloaded software:

unzip routerkeygenPC-master.zip
cd routerkeygenPC-master

Before we proceed to compile the software, you need to edit the file called build_linux.sh and edit the line 19 with the # symbol.

grep -n lintian build_linux.sh
19: #lintian routerkeygen-1.1.0-Linux-x86_64.deb

After just run the script:

./build_linux.sh

if all was fine you will have installed the router keygen software on your openSUSE box. Just run it:

/usr/bin/routerkeygen

Regards

Command line Mac OS X

How to restart Mac OS X networking with command line

If you’re a terminal fan like me, you’ll occasionally need to reboot the OS X network interface. There’s a quick way to do this through the command line – but first you need to know the identity of your network interface. Sometimes after my laptop wakes up after it was suspended, it lost the wireless signal. I have a repeater then I needed to do either: power off/on the repeater or reboot my laptop. I found if I only restart the networking service is enough.

Run the ifconfig command in your terminal and find the interface with an IP address attached to it. On my MacBook Pro, the ethernet interface is en0 while the wireless interface is en0. Yours may be similar.

Shutting down the network interface

Now that you’ve identified the interface, shutting it down and restarting it is too easy. Run this command:

sudo ifconfig en0 down

And to start things back up again…

sudo ifconfig en0 up

That’s it. It’s a simple command that’s worth remembering – or bookmarking!