Current Openbox desk

Tuesday, 21. May 2013

Just a quick screenshot of my current Xubuntu/Openbox desk (on the ThinkPad) :)

openbox3

Used:
- Xubuntu 13.04 as “base system” (maybe I should try something else in future)
- tint2 as taskbar (bottom)
- Conky (top) for system information
- feh to set the wallpaper
- Pidgin to chat to my XMPP/Jabber-Server (finally escaped from GTalk)
- xfce4-power-manager to control the power, what should happen if the cover with closed etc.
- terminator as terminal emulator
- vim as editor
- powerline plugin in vim
- numbers plugin in vim
- Turpial as Twitter client
- Chromium as web-browser

The font I use overall is (Bitstream) DejaVu Sans and in the Terminal DejaVu Sans Mono.

Openbox on Xubuntu install

Sunday, 19. May 2013

This is about playing around with the Openbox package installed on top of my Xubuntu 13.04 installation. I like Openbox a lot and after using and liking xfce4 in the last few days a lot, some things don’t work as I would like them to.

As you’ve read in my previous posts, I’m a bit paranoid about tearing. I simply hate this! So here’s a quick way to get your Openbox running smoothly with transparency and no tearing.

This is for the Intel graphics, I guess the first part is NOT needed for nVidia or AMD drivers – just make sure they load with an enabled compsite extension.

We need to add a new file for Xorg:

Now paste the following lines into this file:

Reboot your system (yes, seriously – believe me, that’s the fastest way ;) ).

Back in Openbox, we want to install and run xcompmgr which is similar to compiz (and compiz does NOT work with Openbox):

Logout/login as your regular user and run:

The first command enables the compmgr with some predefined settings. The second one creates a cross – click on your terminal (I recommend using terminator).

Now, open another terminal and configure it to run transparent (right click -> settings -> profiles -> background -> hit “transparent background” -> for this test, I recommend to move the slider to 0.6).

This should give you a nice transparent window. Tearing (like in scrolling in your browser quickly should also disappear).

2013-05-19-174751_1600x900_scrot

Of course, this is a test-setup, you should put the xcompmgr lines into a autostart script, but more on this later :)

Xubuntu, the Intel HD4000 and a ThinkPad T530

Sunday, 19. May 2013

More and more, I feel home on Linux on the desktop. In the past I always said that Linux is fantastic – for a server, but not for a desktop. Seems like I simply was not open minded enough. For my photo editing (RAW) I use the great tool Darktable, which has some similarities with Adobe’s Lightroom. It’s a great tool, even if it’s far from perfect – like Lightroom and Aperture ;) – that’s why they get updates.

Now that Xubuntu 13.04 works fine on my triple-head workstation, I wanted to run it on the ThinkPad T530 as well. Oh boy! This wasn’t as easy as expected, but not because of missing drivers (what I first thought that this was the reason. No. The reason were simply some compiz settings and packages missing. I found a tutorial that was written for Xubuntu 12.10, but it works fantastic on 13.04, too.

The problems I had were: not working compiz and a lot of tearing when moving windows. I for sure wanted to solve this after having so much success with enabling composite on the workstation previously ;)

The tutorial (or how to) can be found over on webupd8 and explains very well how to get it working. Even though, I have 2 parts who are not working with 13.04.

1. I couldn’t find the keys in the gconf-editor
2. I couldn’t set the border theme from the windows-management in the main settings, because it simply stopped launching

No problem as there are other tools to use like the gnome-tweak-tool that you can install quickly:

and then run with a simple

Insomnia compiz

Sunday, 19. May 2013

It will drive you nuts if compiz disables previously activated plugins. I have/had this problem with Xubuntu 13.04 on the ThinkPad – it always “forgot” to enable the application switched (alt+tab). Here’s how to fix this issue.

First, install the following package:

Next, go your compiz-settings and set under options: “GSettings Configuration Backend”.

Also be sure, that the “active desktop integration” is enabled.

compiz

I would also recommend to reload compiz, go to your terminal and run:

Keep YouTube videos fullscreen (Linux)

Thursday, 16. May 2013

I admit, I’m a YouTube junkie! I consume a lot of Linux-related videos, PC hardware and a lot of flight-sim or real-flight stuff over there.

As I now have my triple-setup running, I like to have a YouTube video on one of the screens while I work in for example the terminal or on this blog on one of the other windows. By Default, YouTube plays the video fine in fullscreen mode, but always bounces back to windowed mode once you click anywhere else. This is annoying, but here is a quick fix that helps you to go around this issue and enables fullscreen.

This video shows how to: Multi-Screen Flashplayer Fix In Linux

Be careful with ghex! And yes – it works :)

gftp replaced by Filezilla

Thursday, 16. May 2013

On Tuesday evening, I wanted to make a backup of my webserver. As usual I launched gftp and selected the directories I had planned to save to the local fileserver. I was very surprised to see gftp dying. It seems like it has opened a LOT of connections to the server. The download included 25909 files. Imagine your FTP clients tries to download all of them parallel. Bad idea :)

However, I’ve installed Filezilla, which is a very good client, removed the tree views and set up my connections. The backup finished within 3 hours (I had to backup a lot of data :) ).

So if you’re looking for an alternative GUI client for Linux, give Filezilla a run.

PS. If you wonder why I had not mounted the FTP via console – I had, but ran into some permission issues because curlftpfs was not (yet) set up correctly.

A Linux workstation – part 5

Wednesday, 15. May 2013

This is just a quick update on how I set up my AMD Radeon HD6850 on my 3x 24″ screens with an enabled composite extension.

Yes, I’ve got my 3rd 24″ display back on my desk, so I now have my good old 3x 24″ wall in front of me. Yey! :)

I already had installed the fglrx and the fglrx-updates, which includes amdcccle.

First, I had set Xubuntu up with 3 separate Xinerama screens, but I couldn’t get the composite extension to work. This is just a feature that I like, but I wanted to have that enabled. I like the style of a slightly transparent terminal and also – the screenshot-tool that came with Xubuntu (and also Ubuntu) has an option to draw a rectangle on the screen which will be your screenshot. Unfortunately, this one uses composite. I was kinda shocked to see a black screen when selecting this option. Sure, I could create a rectangle and do the screenshot, but I had no idea what is below this dark screen. I know and use this tool also on my ThinkPad T530 that I use for work, and so I know that it should be a bit transparent. So I was looking for a solution and was not able to find one on the web. So I fired up amdcccle and removed the Xinerama mode to put my screens into an “expanding” mode.

displays

Here is my current xorg.conf:

A composite enabled setup should give you a terminal (in my case: terminator) with set up 0.8 of opacity that looks like this:

terminal

Maybe these hints are useful for the one or other – if not, it’s a kinda-wiki for myself if I break my config ;)

Japanese input on Linux with IBus

Tuesday, 14. May 2013

It’s not a secret that I’m interested in japanese language, even if I’ve stopped learning it, because of too less for it. I’m still (more or less) able to read & type Hiragana and Katakana. On the Mac, it was pretty easy to enable the support for those input types, because it was built in.

On my Linux workstation, I’ve installed Xubuntu 13.04. To add the option to type in Japanese, I use the IBus input method. It’s handy and honestly a bit irritating, but here’s how to install it.

First of all – IBus should be pre-installed, if not, simply install the package ibus.

For japanese, we need to install another package:

That was the easy part ;) To configure IBus, we should be sure that it does not run in the background, so we kill it, if we have a running IBus process.

To check if such a process runs, we gonna use ps and grep for ibus-daemon.

The first result line shows the ibus-daemon running in the background with the parameter –xim. By the way: if we don’t use the | grep -v grep at the end, we will get a second line which shows the grepping itself.

To kill the process, we do it a bit radical with this option:

The 2587 is the PID (process id) of the ibus-daemon, you should be sure that this is indeed the correct process, otherwise you will kill maybe an important process, even if you’re not the root-user in this example.

Now that the process is killed, we want to launch it again. I would recommend to press Alt+F2 (for example on Xubuntu or Ubuntu) and simply launch ibus-daemon or you can do this right from the terminal by putting the process into the memory and return to your shell by attaching the & sign to the end of the command.

This could create some annoying output in your terminal, even if you’ve backgrounded the process! You can close your terminal and reopen it, however, launching it with Alt+F2 (or maybe using DMenu) is faster :)

In your menu, you will now have the IBus icon, which is an i on a white ground. Click it and select the settings (German here, but I’m sure you’ll find the settings).

einstellungen

A new window pops up, select the second tab for input settings. Please ignore Ctrl+S in the field shown here. This DOES NOT work! But more on this a bit later.

einstellungen1

Once you’ve reached the right tab, you should be able to select the “Japanese -> Anthy” method. I’ve played with the mozc input method, but Anthy seems to be the better one :)

einstellungen2

Next, add this method to the list below and close the settings windows. I would recommend to restart IBus as shown above if the “Japanese” entry does not appear instantly.

Working with IBus-Anthy is easy – if you know the shortcuts.. I’ve spend quiet a bit of time to find them in the settings menu until it worked as expected. Open a GUI editor like mousepad, gedit etc. so you can try to type in japanese.

Once you’re inside your editor, you are able to use IBus, this only works if you are able to enter something – what makes sense in my mind!

Press Ctrl+Space to activate IBUs-Anthy and type “ohayou”. It should print “おはよう”, underlined. While you type, the latin characters will be live translated into Hiragana, which is fine for this particular word. While you type and it’s still underlined, there will possibly pop down a windows with options to choose from; those are the same (or similar words but in Hiragana, Katakana, Kanji and mixed with Kanji). To use them – you should at least know a bit about these signs and the differences :) ).

anthydropdown

However, if you’ve written the word anime “あにめ” in Hiragana, that’s wrong – it should be in Katakana, but as long as it’s underlined, you can switch the complete word to Katanaka by pressing the F7 key: “アニメ” will appear, press F6 if you want to switch it back to Hiragana. After each word, you should press Enter! This is pretty normal in japanese input systems, because in japanese language, you don’t have a space between words (what makes it pretty hard for bloody beginners like myself ;) ).

But what if you want to type directly in Katanaka and want to switch to latin quickly, for example if you want to type the word “Linux” which will (as far as I know) also appear in latin letters also in japanese?

To enable IBus, we had hit Ctrl+Space, to disable, you simply hit Ctrl+Space again. But if you want to circle through the different input methods, you can do this by pressing Ctrl+, (comma) once IBus is enabled. There is also a latin input method in the japanese language, called Romaji. This is NOT the same as your regular latin letters, because the space between the letters is (even if not always and this depends on the used font as well) smaller. You will also notice “half width” and “full width” in Katakana and also in Romaji. If you want to type 100% perfect japanese, I’m sure Romaji is the better option, but better ask a native japanese writer.

IBus features do not stop here, but this is more about the basics. In the settings, you can enable “Show language panel” to “When active” and a little popup appears if you’ve IBus enabled. This will show you a lot other options and also give you the option to switch between the input methods by mouse clicks. The popup looks like this:

anthypopup

I hope this is useful for my readers. I’ve spent a lot time with a lot of different input methods, namely SCIM, mocz and of course IBus, but here on my Xubuntu, IBus + Anthy works best :)

またね!

New .bash_profile for Solarized Light

Tuesday, 7. May 2013

Here’s my newest .bash_profile for Solarized Light. Unlike my previous .bashrc, which was created for OS X, this one is done for Linux and tested and used on Ubuntu. Enjoy! :-)

bashrc

and here’s the one for the root:

bash_profile_root

A Linux workstation – part 4

Sunday, 5. May 2013

On February, 19th, I was about to give up on Linux on my desktop – at least for private stuff. So I did what I did before, again and again and again. I installed Windows, was unhappy, installed OS X and was happy for a few days until something bugged me, like having very less control about the Finder’s behaviours. This was the time when reinstalled Windows, pimped it so that I don’t have to live with the incredible ugly (in my mind) Aero. I personally don’t like such huge elements and 5-10px width borders. I don’t see ANY reason to use it. Unfortunately, even after applying another theme to the system, the border was there, but the GUI itself was looking more “classic” (maybe I should mention that I was using the Classic theme on Windows XP most of the years).

I was fine with this kind of Windows then, until mid of April, when I was doing work for a client. I’m still moving from his pretty old-school HTML page to a new CMS based system. On the Mac, I had used Transmit to transfer files and edit them live in something like TextMate or even MacVim, but I was more kinda happy that I left this road, even if I these days prefered Windows above OS X (at least I told myself to think this way ;) ). I found one more or less good editor which had a built-in FTP client. WinSCP + any editor was not working very well when working on 5+ files parallel, so I dropped WinSCP and just used it for file uploads. The editor I was using is freeware, what is very nice – it’s Notepad++. First, I was kinda happy and said to my friends: Ok, I’ve reached a point where I can live with Windows.

The big problems appeared when I was moving stuff. It seems to be not possible to have two FTP connections open on the same time and switch back and forth, so I had to open the file on server A, copy, close the FTP connection and connect to server B, open the particular file and paste my code into it. VERY annoying. Maybe it was this anti-Windows-feeling that I mostly had, when working (in private time) with Windows since I switched to an iBook G3 back in 2001.

So I launched Google and was looking for a solution to this problem. I couldn’t imagine I was the only person with this problem. I was not, and what I found sounded like a solution, first. The Windows Explorer is able to create a static link to one or more FTP servers. After putting myself onto the firewall blacklist of the clients ISP when trying to access the server this way, I got it work (once I was removed from the blacklist the next day). The experience was a bit better, for sure, uploading files was fun now, simply copying and pasting, but now I had another problem: I couldn’t do a right-click on the file I wanted to open/edit. I had do to this from the editor. Working on servers live 8h+ every day on my daily job, I was super annoyed and so my ideas about a Linux workstation came back into my mind.

Last week, I simply erased the SSD in my PC and started installing various Linux distributions to find one that fits my needs better than Ubuntu with Unity. Ubuntu 13.04 was just released and so I thought: why not give Xubuntu 13.04 a test drive. It was a pleasure to work with it. But I (again) had some problems with the graphics card. My Gigabyte mainboard didn’t wanted to boot fine, when I had plugged in my GT630 OR my old GT120 (Mac card). I had to set the PCI settings to Legacy mode except UEFI. I’ve no clue why, and I had to use my old nVidia GeForce 7600GS (which funnily booted fine with the UEFI settings) to set these settings in the BIOS. This was all crap to be honest, I still had problems with lagging and tearing windows on XFCE4. I then put in my AMD Radeon HD6850 which was not working properly with the Asus board when I tried it the last time (Part 3). But for my surprise, the whole setup was very easy and working very well. I had installed the fglrx drivers from the Ubuntu repos and had configured my two 24″ screens with the “amdcccle” tool that was delivered with the driver. I had a funny “not supported hardware” on the right bottom of every screen, but I found the hint to install the “fglrx-updates” to get rid of it – and this worked. I set up the displays as 2 independent screens using Xinerama and hit the “rissfrei” option (I simply have no clue how to translate this, but it fixed the tearing within a second :) ).

Linux should not be there because Windows is not what I wanted and I didn’t wanted to use OS X anymore. No – it should solve my issues and so I stumbled upon “curtftpfs”, a pretty nice tool that allows you to connect to your FTP servers and mount it into you filesystem. This is AWESOME! Working with vim on my daily job a lot, it was like wonder to simply use my terminal, navigate to the file I wanted to edit LIVE on the FTP server and simply use MY vim (I write MY in capital, because the vim I use is of course configured the way I want it).

With the “cifs-utils” from the Ubuntu repo, I’m able to mount my fileserver into the system in a similar way. Perfect!

The next think I wanted to try was “awesome”, a tiling window manager that I wanted to play with for some months now, but never had time for it, so I decided that this is something I wanted to play with. I had no luck by simly installing it, later I found out that awesome seems not be just a window managed, but also a something similar to lightdm. However, I tried other tiling managers like wmii and i3. I got the hint to try i3 from @dignati and @sangyye via Twitter, which is always a good source for stuff like this in my mind.

It turns out, that the i3wm, a tiling window manager developed by Michael Stapelberg is exactly what I wanted – even without knowing it. I always had some biasses against tiling managers, because those I had tried out were very unflexible, but not i3wm! It’s fun to use it and so hardly leave the keyboard and work very fast.

It felt like I had put together a very huge puzzle. Everything I always wanted from an Linux system was fine now. No tearing, fluent video playback, terminals on mass and live editing FTP connections. It was too good to be true – until I broke it ;)

For some reason, I had problems with getting back into Xsessions. Nothing BUT awesome was working. Funny enough, I used the situation to play with awesome (finally) and found out that I like i3wm much more. So I saved my data to the fileserver in the basement, downloaded Ubuntu 13.04 server edition, created a DVD and installed this. The idea was to start from very scratch without additional stuff on the SSD that I don’t want/need. I had alreasy spend serveral hours on this until I noticed that I was not able to get the sound to work. Yikes. I want sound! After 1 more hour of trying to solve this, I installed the regular Ubuntu 13.04 and configured it the way I wanted (with i3wm, fglrx drivers, pidgin etc pp). For my /home folder, I set up ZFS on Linux (ZOL) and created a RAIDz1 out of 3x 640GB WD Caviar Blue HDs. My Linux workstation is now working!

The hardware I use:
- Intel Core i5 2380P (Quad core/no HT)
- Gigabyte Z68X-UD3H-B3
- 32GB RAM
- 240GB OCZ SSD
- AMD Radeon HD6850
- Intel Desktop CT NIC
- 3x 640GB WD Caviar Blue HDs (ZFS/RAIDz1 for /home)
- Chieftec Bravo black big tower
- 1x 24″ HP @1920×1200
- 1x 22″ Samsung @1680×1050
- 1x 19″ BenQ @1280×1024

Why this kind of setup? Stay tuned for my next post about the May 2013 home office overhauling ;)