Archlinux on Raspberry Pi: sudo and window managers
There are couple thing you can do with your Arch to make it more adjusted to your preferences. This time I’ll show you how to configure sudo and install most popular window managers. Remember that you can get such configuration on every computer, not only on RPi.
Let’s start with sudo. Login as root and type
pacman -Syu sudo
After installing package type visudo. There will be ran vim version made especially for editing sudoers file. Right after first page you’ll find such line:
root ALL=(ALL) ALL
Go to line under it and press ‘i’ key on your keyboard to switch to insert mode. Then type:
your_user_name ALL=(ALL) ALL
Then press Escape, and type:
Press enter. That’s all. Relog to your account and check if sudo is working.
Now we’re ready to install a window manager. There is difference between it and desktop environment. I wanted to work with it on Raspberry Pi mainly because of its speed. Any WM is many times faster that any desktop environment. I never used them before and now I decided to start with FluxBox. So let’s install it. Log to user account and type:
sudo pacman -S fluxbox
After fluxbox is installed edit .xinitrc file in your home folder.
Save file and type startx.
You should see default fluxbox’s screen. Now it’s time to configure it. Let’s begin from installing program called feh. It’s responsible for handling images. Right click on your desktop and select xterm. Then type:
sudo pacman -S feh
I guess that we need a file manager. There are many options, I’ve chosen pcmanfm:
sudo pacman -S pcmanfm
Now let’s deal with fluxbox’s menu. I used program called menumaker to generate menu containing all installed applications.
sudo pacman -S menumaker
mmaker -f FluxBox
Now you’ve got all applications in menu. You can still edit entries order. To do that edit with your favourite edit that file: ~/.fluxbox/menu. For example:
We’ve got most basic programs now. Let’s make FluxBox prettier. There is nice website you can get fluxbox’s themes: http://customize.org/fluxbox. It would be great to do everything on Raspberry Pi. Install web browser and go that site (I installed Epiphany).
When you’ll download a style unpack it to ~/.fluxbox/styles and then choose it from menu. Now it looks really better. But we still have no icons in files manager. We can install for example these:
pacman -S tangerine-icon-theme
sudo echo “gtk-icon-theme-name = “Tangerine” >> /etc/gtk-2.0/gtkrc
Well it’s time to add a wallpaper. First get any. Then exit FluxBox. We need to edit .xinitrc again.
Put before exec startfluxbox that:
This is how my FluxBox looks after all these operations.