How to install BSPWM on Debian

Standard

BSPWM (Binary Space Partitioning Window Manager) is a tiling window manager based on binary space partitioning, that represents windows as the leaves of a full binary tree. It is written completely in C. BSPWM is really easy to customize and setup. Lets install BSPWM by following the instructions below.

This has been tried and tested on Debian Jessie and Testing.

Installing the required dependencies.

sudo apt-get install git gcc make xcb libxcb-util0-dev libxcb-ewmh-dev libxcb-randr0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-xinerama0-dev libxcb-ewmh2

Cloning BSPWM git repository.

git clone https://github.com/baskerville/bspwm.git  

Cloning SXHKD git repository.

git clone https://github.com/baskerville/sxhkd.git  

Build and install BSPWM and SXHKD.

Entering into the bspwm directory.

cd bspwm  

Building and installing BSPWM using Make.

make  
sudo make install  

Exiting the bspwm directory after make has completed builing and installing BSPWM.

cd ..  

Entering into sxhkd.

cd sxhkd/  

Building and installing SXHKD.

make  
sudo make install  

Creating ~/.config/bspwm and ~/.config/sxhkd directory to store configuration and dotfiles used by it.

mkdir ~/.config/bspwm  
mkdir ~/.config/sxhkd  

Coping the configuration files used by BPSWM. and SXHKD

cp -T bspwm/examples/bspwmrc `~/.config/bspwm/bspwmrc`  
cd .. 
cd sxhkd/  
cp -T bspwm/examples/sxhkdrc ~/.config/sxhkd/sxhkdrc  

Turning the file into an executable.

sudo chmod +x ~/.config/bspwm/bspwmrc  

Coping the bspwm-session file to /usr/bin/.

sudo cp -T bspwm/contrib/freedesktop/bspwm-session /usr/bin/bspwm-session  

If you use xinitrc file to manage your DE you can update your .xinitrc to log you into it.

exec bspwm-session  

You can edit the ~/.config/bspwm/bspwmrc to add scripts, services, applications to startup.

To change your keyboard shortcuts simple edit the ~/.config/sxhkd/sxhkdrc.

You might want to add the following to your bspwmrc, This will set your mouse pointer to a left pointing arrow instead of the default X of xorg.

xsetroot -cursor_name left_ptr &  

Now we are done setting up BSPWM on Debian. If you have any questions feel free to leave a comment below.

Sankalp Smart School takes students for ride!

Standard

Recently Sankalp Smart School came to our college to explain about their Adobe Championship program that they were offering to institutes and individuals.

The staff of Sankalp who visited us made their program seem really promising and were doing the job of explaining the program to us quite well. They used a lot of slides and there were quite a few video demonstrations, which was meant to display the infrastructure that they were providing to the participants of the exam. They showed us we would be working on decent systems/hardware that would run flawlessly for the participants of the contest. The exam had two stages, the first was to test the eligibility of the participant and the second was their final exam.

The staff of Sankalp had convinced us all to participate in the program and to me, they seemed to be very systematic at delivering. The next day some of us, my classmates including myself, filled the form to register for the exam and paid the fees. We were quite well prepared for the exam, as we had already learned the software as part of our college syllabus. We had applied for the Photoshop end of the contest. Some choose CS 6 the rest choose CC (Creative Cloud).

After registering for the exam the staff told us that the exam center will be chosen depending on the place from where they get the most number of participants. After a few weeks, we were informed that the exam won’t be held on June 6, but instead on June 30. The reason they cited for shifting the dates was because they did not find an appropriate center. Later they informed us that the exam will be held on June 17 – this was around June 12. I didn’t think too much of it at first, but a part of me felt that the staff of Sankalp were totally unsystematic and did not care about delivering as they had promised, which I wish were the only thing wrong with them. It became clear to me over time that all they wanted was a farm of cattle whom they would milk for money. Even after all this disappointment, I was eager to appear for the contest.

We visited the exam center. Turns out, it was a deserted mall. They did not have people to guide us to the exam center. All it had was mall staff who were aimlessly guiding participants to randoms shops, many of them not even aware that a contest was scheduled there. I walked up and down their three odd floors for nearly 25 minutes before I found it. It was a shop on the second floor of the mall with nothing pointing to it. There were absolutely no signs that showed us to the center. This shop was smaller than a classroom, with around 8 computers crammed in a small space.

The PC’s were over 10 years old and used peripheral devices that were either not responding or severely lagging. The mouse was a PS/2. The OS lagged like a grandma crossing the autobahn without any regard for the traffic – a grandma I wish had died 6 years ago when all grandmas, I mean computers, are supposed to be given up. The lag made it extremely difficult to answer the questions efficiently on time. The program that was supposed to serve us the questions kept freezing and crashing over and over. Most of us were losing our minds working on systems as outdated as those. My grandma has faster internet than they had provided us, and by grandma, I do mean grandma in this case. Due to the network lag, the timer we were on would make unexpected jumps. Sometimes I’d lose seconds and at times even minutes. Their system basically forced me to complete my test of 45 minutes in less than 25. After answering the exam we had the option to fill the feedback form. I choose to do it but like the exam itself, I failed on this one too as I had less than 20 seconds to do it. It was as if they knew they sucked at their job and didn’t want to risk a negative feedback going through.

I finally deiced to go online and check if there was a place where I could give some feedback to Sankalp. I discovered that their site keeps mentioning Adobe Certified World Championship, so I decided to look it up online. Those contest are managed by CertiPort which by the looks of it seems pretty legit. Sankalp is not at all registered there and neither does it seem to be authorized to have a contest like it claims to have. To me, the whole thing seems to be a scam.

My advice to you all, after having been through all of this, is that the next time you participate in an event, do whatever you can to verify their credentials.

Intel Wifi Cards on Debian

Standard

To get a minimal install on Debian on our system, most of use prefer Debian netinstall, The netinstall seems to be a really nice setup. The only problem is that if you are a Intel WiFi Card user Debian netinstall does not come with the driver or ucode for Intel WiFi Cards.

So I figured out a way to get the Intel WiFi Cards for Debian in the instructions below. The following Intel WiFi Cards are supported by the drivers.

PCI: 8086:0082 Intel Corporation Centrino Advanced-N 6205 [Taylor Peak]  
PCI: 8086:0083 Intel Corporation Centrino Wireless-N 1000 [Condor Peak]  
PCI: 8086:0084 Intel Corporation Centrino Wireless-N 1000 [Condor Peak]  
PCI: 8086:0085 Intel Corporation Centrino Advanced-N 6205 [Taylor Peak]  
PCI: 8086:0087 Intel Corporation Centrino Advanced-N + WiMAX 6250 [Kilmer Peak]  
PCI: 8086:0089 Intel Corporation Centrino Advanced-N + WiMAX 6250 [Kilmer Peak]  
PCI: 8086:008A Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak]  
PCI: 8086:008B Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak]  
PCI: 8086:0090 Intel Corporation Centrino Advanced-N 6230 [Rainbow Peak]  
PCI: 8086:0091 Intel Corporation Centrino Advanced-N 6230 [Rainbow Peak]  
PCI: 8086:0885 Intel Corporation Centrino Wireless-N + WiMAX 6150  
PCI: 8086:0886 Intel Corporation Centrino Wireless-N + WiMAX 6150  
PCI: 8086:0887 Intel Corporation Centrino Wireless-N 2230  
PCI: 8086:0888 Intel Corporation Centrino Wireless-N 2230  
PCI: 8086:088E Intel Corporation Centrino Advanced-N 6235  
PCI: 8086:088F Intel Corporation Centrino Advanced-N 6235  
PCI: 8086:0890 Intel Corporation Centrino Wireless-N 2200  
PCI: 8086:0891 Intel Corporation Centrino Wireless-N 2200  
PCI: 8086:0892 Intel Corporation Centrino Wireless-N 135  
PCI: 8086:0893 Intel Corporation Centrino Wireless-N 135  
PCI: 8086:0894 Intel Corporation Centrino Wireless-N 105  
PCI: 8086:0895 Intel Corporation Centrino Wireless-N 105  
PCI: 8086:0896 Intel Corporation Centrino Wireless-N 130  
PCI: 8086:0897 Intel Corporation Centrino Wireless-N 130  
PCI: 8086:08AE Intel Corporation Centrino Wireless-N 100  
PCI: 8086:08AF Intel Corporation Centrino Wireless-N 100  
PCI: 8086:08B1 Intel Corporation Wireless 7260  
PCI: 8086:08B2 Intel Corporation Wireless 7260  
PCI: 8086:08B3 Intel Corporation Wireless 3160  
PCI: 8086:08B4 Intel Corporation Wireless 3160  
PCI: 8086:095A Intel Corporation Wireless 7265  
PCI: 8086:095B Intel Corporation Wireless 7265  
PCI: 8086:24F3 Intel Corporation Wireless 8260  
PCI: 8086:24F4 Intel Corporation Wireless 8260  
PCI: 8086:422B Intel Corporation Centrino Ultimate-N 6300  
PCI: 8086:422C Intel Corporation Centrino Advanced-N 6200  
PCI: 8086:4232 Intel Corporation WiFi Link 5100  
PCI: 8086:4235 Intel Corporation Ultimate N WiFi Link 5300  
PCI: 8086:4236 Intel Corporation Ultimate N WiFi Link 5300  
PCI: 8086:4237 Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection  
PCI: 8086:4238 Intel Corporation Centrino Ultimate-N 6300  
PCI: 8086:4239 Intel Corporation Centrino Advanced-N 6200  
PCI: 8086:423A Intel Corporation PRO/Wireless 5350 AGN [Echo Peak] Network Connection  
PCI: 8086:423B Intel Corporation PRO/Wireless 5350 AGN [Echo Peak] Network Connection  
PCI: 8086:423C Intel Corporation WiMAX/WiFi Link 5150  
PCI: 8086:423D Intel Corporation WiMAX/WiFi Link 5150  

You can download the firmware-iwlwifi by using the command below.

sudo apt-get install firmware-iwlwifi  

You can also download the .deb files and install it on your system. (You might require ethernet or other PC to download this file, If networking is not functional on your system)

firmware-iwlwifi for Jessie

firmware-iwlwifi for Sid

firmware-iwlwifi for Wheezy

firmware-iwlwifi for Testing

Now you can unpack and install the .deb file you just downloaded

 sudo dpkg -i firmware-iwlwifi_*

Now reboot your system.

You Intel WIFI Card should be detectable by your system.

If you have any questions feel free to leave a comment below.