<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slackwiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beder</id>
	<title>SlackWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.slackwiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beder"/>
	<link rel="alternate" type="text/html" href="https://www.slackwiki.com/Special:Contributions/Beder"/>
	<updated>2026-04-08T08:02:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=Broadcom_Wireless&amp;diff=902</id>
		<title>Broadcom Wireless</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=Broadcom_Wireless&amp;diff=902"/>
		<updated>2014-04-01T21:42:31Z</updated>

		<summary type="html">&lt;p&gt;Beder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials]]&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This tutorial is written for setting up wireless on Slackware on laptops with Broadcom wireless cards. It deals with installing Boradcom's official proprietary '''wl''' driver for Linux that includes support for Broadcom's BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, and BCM43225-, BCM43227- and BCM43228-based hardware.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
This tutorial assumes a full Slackware installation. There should also be a way to transfer files to the target laptop - it can either be a working internet connection using the laptop's ethernet card, '''or''' a different machine with internet access and a USB thumb drive to transfer the files.&lt;br /&gt;
The regular user account on the laptop must also be a part of the ''netdev'' group.&lt;br /&gt;
&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
&lt;br /&gt;
The first thing is to check if the user is part of the ''netdev'' group :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;groups&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the output does not contain &amp;lt;code&amp;gt;netdev&amp;lt;/code&amp;gt;, then as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, enter the following command :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;usermod -a -G netdev username&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; is the name of your user account.&lt;br /&gt;
&lt;br /&gt;
== Installing the driver ==&lt;br /&gt;
&lt;br /&gt;
=== Sbopkg method ===&lt;br /&gt;
If a working internet connection is available on the laptop (say a wired connection), use [http://sbopkg.org sbopkg] to install the drivers :&lt;br /&gt;
&amp;lt;pre&amp;gt;sbopkg -i broadcom-sta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Manual method ===&lt;br /&gt;
Navigate to the slackbuilds.org's [http://slackbuilds.org/result/?search=broadcom-sta&amp;amp;sv= broadcom-sta page] and build the package according to the [http://slackbuilds.org/howto/ instructions] given. Make sure to download the source code relevant to the architecture of your installation (32-bit or 64-bit).&lt;br /&gt;
&lt;br /&gt;
=== Kernel upgrade ===&lt;br /&gt;
&lt;br /&gt;
If at any point you upgrade your kernel, you will have to do this process again, because the module is compiled against the running kernel only.&lt;br /&gt;
&lt;br /&gt;
== Blacklisting the b43 and ssb modules ==&lt;br /&gt;
&lt;br /&gt;
The Broadcom's &amp;lt;code&amp;gt;wl&amp;lt;/code&amp;gt; driver conflicts with the kernel's &amp;lt;code&amp;gt;b43&amp;lt;/code&amp;gt; driver, so open up the &amp;lt;code&amp;gt;/lib/modprobe.d/blacklist.conf&amp;lt;/code&amp;gt; using the text editor of your choice as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; and add the following lines to it :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
blacklist ssb&lt;br /&gt;
blacklist b43&lt;br /&gt;
blacklist bcma&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Final steps ==&lt;br /&gt;
&lt;br /&gt;
At this point, reboot your machine. The drivers should be installed and work now. To test this, enter the &amp;lt;code&amp;gt;iwconfig&amp;lt;/code&amp;gt; command. you should see an output like this :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ iwconfig&lt;br /&gt;
lo        no wireless extensions.&lt;br /&gt;
&lt;br /&gt;
eth1      IEEE 802.11  Nickname:&amp;quot;lapto&amp;quot;&lt;br /&gt;
          Access Point: Not-Associated   &lt;br /&gt;
          Link Quality:5  Signal level:217  Noise level:199&lt;br /&gt;
          Rx invalid nwid:0  invalid crypt:31  invalid misc:0&lt;br /&gt;
&lt;br /&gt;
eth0      no wireless extensions.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This output suggests that the drivers installed right and your wireless card is recognized as &amp;lt;code&amp;gt;eth1&amp;lt;/code&amp;gt; by the kernel. Hooray!&lt;br /&gt;
&lt;br /&gt;
If you still don't see the wireless extensions, check if any of the blacklisted modules are really not loaded:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
lsmod | grep ssb&lt;br /&gt;
lsmod | grep b43&lt;br /&gt;
lsmod | grep bcma&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
None of this commands should return anything. If any of the modules are still loaded, remove them manually:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rmmod ssb&lt;br /&gt;
rmmod b43&lt;br /&gt;
rmmod bcma&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also make sure that the &amp;quot;wl&amp;quot; module is properly loaded&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
lsmod | grep wl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there is no output, you may load the &amp;quot;wl&amp;quot; module manually&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
modprobe wl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can now either use the &amp;lt;code&amp;gt;iwconfig&amp;lt;/code&amp;gt; tool to configure your wireless networks, '''or''' if you prefer to use a GUI, follow the next section for installing Wicd.&lt;br /&gt;
&lt;br /&gt;
== Installing Wicd ==&lt;br /&gt;
&lt;br /&gt;
To make management of wireless connections easier, we will install [http://wicd.sourceforge.net/ Wicd] network manager that provides a simple configuration GUI and system tray icon.&lt;br /&gt;
&lt;br /&gt;
=== Using slackpkg ===&lt;br /&gt;
&lt;br /&gt;
If a working internet connection is available on the laptop (say a wired connection), simply use &amp;lt;code&amp;gt;slackpkg&amp;lt;/code&amp;gt; to install wicd :&lt;br /&gt;
&amp;lt;pre&amp;gt;slackpkg install wicd&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Using package tarball ===&lt;br /&gt;
&lt;br /&gt;
Download the &amp;lt;code&amp;gt;Wicd&amp;lt;/code&amp;gt; package for your Slackware version from the ''extra/'' section of your preferred Slackware [http://slackware.osuosl.org/ mirror] and install using &amp;lt;code&amp;gt;installpkg&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For example, on a 32-bit system running Slackware 13.37, as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 wget http://slackware.dreamhost.com/slackware/slackware-13.37/extra/wicd/wicd-1.7.0-i486-2.txz&lt;br /&gt;
 installpkg ./wicd-1.7.0-i486-2.txz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Wicd usage ==&lt;br /&gt;
Start the Wicd daemon :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 /etc/rc.d/rc.wicd start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once its started, run &amp;lt;code&amp;gt;wicd-client&amp;lt;/code&amp;gt; and configure the network to your liking.&lt;br /&gt;
&lt;br /&gt;
=== Caveat ===&lt;br /&gt;
Wicd by default treats &amp;lt;code&amp;gt;wlan0&amp;lt;/code&amp;gt; as the default wireless interface. Since the interface is &amp;lt;code&amp;gt;eth1&amp;lt;/code&amp;gt; in our case, you might want to correct this in Wicd's Preferences.&lt;br /&gt;
&lt;br /&gt;
=== User note ===&lt;br /&gt;
In order to access the wicd client utilities, your user must also be in the netdev group. Add your user to the netdev group, logout and login to make it effective, then you can run the wicd client utilities as your user.&lt;br /&gt;
For the CLI based tool, there is wicd-cli and wicd-curses. For the GUI client, ther is wicd-client and wicd-gtk.&lt;/div&gt;</summary>
		<author><name>Beder</name></author>
	</entry>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=Resource_Limits&amp;diff=819</id>
		<title>Resource Limits</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=Resource_Limits&amp;diff=819"/>
		<updated>2013-01-02T01:35:09Z</updated>

		<summary type="html">&lt;p&gt;Beder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Purpose =&lt;br /&gt;
&lt;br /&gt;
This page does not attempt to explain the different types of system resource limits or when it is (or is not) appropriate to change them; see '''man ulimit''' and [[http://google.com Google]] for that discussion.&lt;br /&gt;
&lt;br /&gt;
However, some users run into problems with the linux kernel's default limit settings, so we'll attempt to explain how to modify them to suit special needs.&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
The default settings provided by the kernel are sane values for most multi-user machines.  Issuing the command '''ulimit -Hn''' should show the following:&lt;br /&gt;
 user@host:~$ ulimit -Hn&lt;br /&gt;
 1024&lt;br /&gt;
and '''ulimit -n''' should show this:&lt;br /&gt;
 user@host:~$ ulimit -n&lt;br /&gt;
 1024&lt;br /&gt;
&lt;br /&gt;
The first command shows the hard limit set by the kernel, and the second command shows the soft limit set by the user.  An unprivileged user can increase the soft limit (up to the hard limit value), and he is also able to lower the hard limit (but then is unable to increase it, as an unprivileged user cannot raise the hard limit at all).&lt;br /&gt;
&lt;br /&gt;
There are some situations which might require a larger hard limit for users, and the obvious &amp;quot;solution&amp;quot; is to add a line in /etc/profile to increase it.  However, this will not work, because normal users cannot increase their hard limits (as indicated above).&lt;br /&gt;
&lt;br /&gt;
= Solution =&lt;br /&gt;
&lt;br /&gt;
To increase the hard limits for users, you will need to create '''/etc/initscript''' and place appropriate commands inside it.  The easiest way is to copy the file '''/sbin/initscript.sample''' to '''/etc/initscript''' and edit the copy, but you are certainly free to &amp;quot;roll your own.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Using the following '''/etc/initscript''' file:&lt;br /&gt;
&lt;br /&gt;
 PATH=/bin:/sbin:/usr/bin:/usr/sbin&lt;br /&gt;
 export PATH&lt;br /&gt;
 &lt;br /&gt;
 # Increase the hardlimit for open files&lt;br /&gt;
 ulimit -Hn 4096&lt;br /&gt;
 &lt;br /&gt;
 # Execute the program.&lt;br /&gt;
 eval exec &amp;quot;$4&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You should get the following after a reboot:&lt;br /&gt;
 user@host:~$ ulimit -Hn&lt;br /&gt;
 4096&lt;br /&gt;
 &lt;br /&gt;
 user@host:~$ ulimit -n&lt;br /&gt;
 1024&lt;br /&gt;
&lt;br /&gt;
Notice that the hardlimit is now 4096 (as specified in /etc/initscript), but the softlimit is still 1024.  In other words, you will still need to use /etc/profile (or some other shell init file - see below for recommendation) to raise the desired users' softlimits.  With some creative scripting, you can be more selective about which users have what limits.&lt;br /&gt;
&lt;br /&gt;
Rather than editing the system /etc/profile, it's recommended to create a custom file in /etc/profile.d and make it executable.  This way, you don't have to worry about trying to merge your changes to /etc/profile when doing Slackware upgrades to new versions.&lt;br /&gt;
&lt;br /&gt;
= Other Resources =&lt;br /&gt;
&lt;br /&gt;
* '''man initscript'''&lt;br /&gt;
* '''man ulimit'''&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Beder</name></author>
	</entry>
</feed>