I recently ran into a problem, Ubuntu 11.04!
I'm facing a problem and it seems that this is going to become all the more troublesome in months to come. The problem is finding a suitable distro for my Acer Aspire One A0531h Netbook.
The recent incarnation from the Ubuntu stable sports the somewhat new Unity interface. In the past this was the exact reason I did not install Ubuntu Netbook-Remix since I did not like the interface one bit.
Now, however, it seems like the newly added features, bells and whistles makes it a bad choice for a Netbook. I could get nowhere with this on the Netbook, and the fact that you cannot modify anything (panels, menu placement, etc.) made it one heck of a frustrating experience.
When Ubuntu insisted that everyone and their mother should place the close, maximize and minimize buttons on the left, I just shrugged it off with a smirk and fixed the error of their ways with gconf-editor.
Now, however, it is nearly impossible to configure anything Unity related.
"Well change back to Gnome Classic you fool!" I hear you shout.
I did, but the performance stayed the same. I could now configure everything, but I could hardly do any work on it, it was a case of the little Netbook that just couldn't.
It feels like they broke something in baselayout since nothing wants to work like it should, no matter what WM or DE I tried!
I tried Kubuntu, nope, still too sluggish, Xubuntu, nope, still no big improvement (not being a XFCE fan didn't do it any favours), what about installing OPENBOX?
Nope, still sluggish and going nowhere.
At this point I could not believe it! In Ubuntu 10.10 I installed the dead standard 32-bit version and it worked, very well I may add, but now with Ubuntu 11.04 something went horribly wrong!
I gave up at this point and turned to trusty Arch Linux, installed it with OpenBox and I was happy, until...
Until the day I had to do a presentation and I stood there dancing like a fool since I could not get the projector to work on Arch Linux, but it worked like a charm on Ubuntu before. I had to borrow a Windows laptop to finish the job, terrible and humiliating.
That is when I realized that I needed a complete solution, a "one size fits all" solution, a replacement for Ubuntu.
I love Arch Linux, it will stay on my desktop PC for a long time to come, and had I been at home on the internet I could have solved the Netbook problem in two ticks, without a doubt, but the problem is that a Netbook, for me, should be "locked and loaded" 24/7 without needing extra fiddling. You never know what you will be called on to do and then you do not have time to fiddle around on the internet! The Netbook is not just a toy for me, I do some serious work on it and the mobility of the device suits me fine.
Granted, in hindsight, I could have tested it on a normal PC monitor first, so we will share the blame 50/50?
Back on track, I need a complete solution, something that just works with minimal fuss.
Tried Fedora after hearing some good things about it, but the lack of configuration from Gnome 3 made it a no-go for the limited screen resolution of the Netbook.
Some E17 distros, some of the laptop features did not work "out of the box", back to the drawing board, could then just as well have stayed with Arch Linux.
After living with Arch Linux while the hunt continued, I remembered a distro that I tried many moons ago, Linux Mint.
Eureka! I hope.
At the moment I'm very happy with it, it just works, and works well on the Netbook. I love the look and feel and so far the Netbook is very responsive.
I still have to test a few things but I think this may just be the distro of choice for my Netbook from now on.
Once I have a solid opinion on the distro I'll post my thoughts, for now I'm happy.
Lets just hope they do not break their future releases like Ubuntu did...
Monday, June 06, 2011
Fonts and Firefox/Chromium
Just a quick post:
If you get strange looking fonts with Firefox or Chromium (this does not seem to include Opera), then you may want to look at installing the ms-font package for your distribution.
In Arch Linux:
yaourt -S ttf-ms-font
If you get strange looking fonts with Firefox or Chromium (this does not seem to include Opera), then you may want to look at installing the ms-font package for your distribution.
In Arch Linux:
yaourt -S ttf-ms-font
Sunday, May 08, 2011
Presentation on Netbook?
If you have a Netbook you will no doubt be well aware of it's short comings.
I have an Acer Aspire One, 160 GB hard drive, 2 GB of memory, no problem, it is however the Atom processor that has it's limitations.
I recently wanted to show a LibreOffice Impress presentation on the Netbook, but I ran into all sorts of trouble, in short, it just could not handle it.
If I remove all the animations then it is do-able, but you can see the Netbook struggling to cope, the strain of running an office suite and a large presentation of top of that is a bit beyond this Netbook.
KOffice is an option, but it distorted the presentation and I was not about to rewrite the whole thing on the Netbook in KOffice or any other application.
That is when I stumbled upon this neat trick, doing the presentation from a PDF viewer!
All you need is the default KDE document viewer or Adobe Reader.
Open the presentation in LibreOffice Impress and export it as a PDF file, next, open the exported PDF in your document viewer of choice.
You will see something like this:
Go to View -> Fullscreen. In Adobe Reader the presentation will begin immediately, in KDE document viewer there is one more step:
In KDE document viewer, once you have the file in "Fullscreen" mode, you will see a button in the top right hand corner, "Start a presentation":
That is it, nothing to it!
It works just the same as any normal presentation, mouse click or arrow buttons to navigate and esc to quit, but without the office suite load added to the Netbook.
Granted you cannot do anything fancy with it, but it saved my bacon and it is more compatible between different platforms than even the open document format!
Give it a spin, and if you have more tips or suggestions, let me know!
I have an Acer Aspire One, 160 GB hard drive, 2 GB of memory, no problem, it is however the Atom processor that has it's limitations.
I recently wanted to show a LibreOffice Impress presentation on the Netbook, but I ran into all sorts of trouble, in short, it just could not handle it.
If I remove all the animations then it is do-able, but you can see the Netbook struggling to cope, the strain of running an office suite and a large presentation of top of that is a bit beyond this Netbook.
KOffice is an option, but it distorted the presentation and I was not about to rewrite the whole thing on the Netbook in KOffice or any other application.
That is when I stumbled upon this neat trick, doing the presentation from a PDF viewer!
All you need is the default KDE document viewer or Adobe Reader.
Open the presentation in LibreOffice Impress and export it as a PDF file, next, open the exported PDF in your document viewer of choice.
You will see something like this:
Go to View -> Fullscreen. In Adobe Reader the presentation will begin immediately, in KDE document viewer there is one more step:
In KDE document viewer, once you have the file in "Fullscreen" mode, you will see a button in the top right hand corner, "Start a presentation":
That is it, nothing to it!
It works just the same as any normal presentation, mouse click or arrow buttons to navigate and esc to quit, but without the office suite load added to the Netbook.
Granted you cannot do anything fancy with it, but it saved my bacon and it is more compatible between different platforms than even the open document format!
Give it a spin, and if you have more tips or suggestions, let me know!
Tuesday, March 08, 2011
Android and Linux tethering
If you have no idea what tethering is, then fear not, Wikipedia to the rescue!
Tethering
Most Android phones have a feature to make this simple, but either the ROM I flashed my device with has a bug or my service provider does not support WIFI hotspot, whatever the case I need to connect via the USB cable.
In short, this is how to go about it:
You should be able to browse the internet now from your phones data connection (GPRS, HSDPA, etc.)
Reply with your comments and if you encounter any problems!
Tethering
Tethering is a method to share the Internet connection of an Internet-capable mobile phone. This sharing can be via cable, or wirelessly over Bluetooth or Wi-Fi — if Wi-Fi, the tethering feature is often branded as a mobile hotspot and can typically service several devices.
Most Android phones have a feature to make this simple, but either the ROM I flashed my device with has a bug or my service provider does not support WIFI hotspot, whatever the case I need to connect via the USB cable.
In short, this is how to go about it:
- Install OpenVPN
Code:sudo apt-get install openvpn
- Enable USB debugging on your phone. Settings > Applications > Development > USB debugging.
- Download or install the Android SDK
On Arch Linux you just install both android-sdk and android-sdk-platform-tools. If you need to download it:
http://developer.android.com/sdk/index.html
- Now extract the package:
Code:tar xvzf http://dl.google.com/android/android-sdk_r10-linux_x86.tgz -C /opt
- Run "android" and install the platform tools needed:
Code:cd /opt/android-sdk-linux_x86/tools ./android
From the menu, choose "Available packages" and install the Android SDK platform-tools.
- Add the /opt/android-sdk-linux_x86/platform-tools directory to your path:
Code:
nano -w .bashrc PATH=/opt/android-sdk-linux_x86/platform-tools:”${PATH}”
You will need to log out and back in for the path to be recognized.
- We now need our device ID:
Code:
lsusb Bus 001 Device 009: ID 22b8:41da Motorola PCS
- Next we create the needed udev rules so that the device gets recognized:
Code:
sudo nano -w /etc/udev/rules.d/91-android.rules SUBSYSTEM==”usb”, SYSFS{idVendor}==”id″, MODE=”0666″
On my phone the last part will look like this, change yours according to your device ID:
SUBSYSTEM==”usb”, SYSFS{"22b8:41da"}==”22b8″, MODE=”0666″
- You can connect your phone to the PC now, if it is not already connected, remember to make sure you have USB debugging enabled.
If all went well your phone should now be picked up:
Code:
adb devices List of devices attached 04039C5D09016014 device
- Download and install AzLink:
Code:
wget http://lfx.org/azilink/azilink.apk adb install azilink.apk
You should see the AzLink app in the phone applications menu now.
- On your PC:
Code:
adb forward tcp:41927 tcp:41927
On your phone, open the AzLink application and check the option "Service Active". You should see a message under Status:
"Waiting for connection"
- Download and run the following on your PC:
Code:
wget http://azilink.googlecode.com/files/azilink.ovpn sudo openvpn azilink.ovpn
On your phone the status should now change to:
"Connected to host"
You can now kill all network connections on you PC (wifi and lan) and disable them for the moment, we do not need them any more.
- Finally, the last step.
Do not close the terminal from where you ran the commands just now! Doing so will kill your connection to the phone.
In a new terminal we only now need to edit our resolv.conf and we should have internet access!
Code:
nano -w /etc/resolv.conf nameserver 192.168.56.1
You should be able to browse the internet now from your phones data connection (GPRS, HSDPA, etc.)
Reply with your comments and if you encounter any problems!
Tuesday, February 22, 2011
Key mapping and binding in Openbox
If you have used Linux for any amount of time you will know that there are little vendor support and this can be frustrating if you would like to use all 18 000 keys on your brand spanking new keyboard!
I have this keyboard, the Microsoft Natural Ergonomic 4000, and we know that Microsoft will not have any support for it under any other operating system save Windows, hey, do not look at me like that, they actually make some decent keyboards!
So, we will have to map and bind all those extra keys ourselves.
Luckily, binding keys in Openbox is actually a fairly simple task, you only need xev and your favourite editor. This is going to be fast and dirty, but it is really simple and you should have no problems at all.
I have this keyboard, the Microsoft Natural Ergonomic 4000, and we know that Microsoft will not have any support for it under any other operating system save Windows, hey, do not look at me like that, they actually make some decent keyboards!
So, we will have to map and bind all those extra keys ourselves.
Luckily, binding keys in Openbox is actually a fairly simple task, you only need xev and your favourite editor. This is going to be fast and dirty, but it is really simple and you should have no problems at all.
First of, open the following file:
Code:
# nano -w .config/openbox/rc.xml
Next, run xev, in a terminal just type:
Code:
# xev
You can press one key at a time on the keyboard to get the key code, this is important. The output will look something like this:
Code:
What we are interested in is this part:
(keysym 0x1008ff48, XF86Launch8)
Go back the file you opened earlier, scroll down the file until you come across this section in the file:
Code:
There will be a lot of text in that section, general Openbox key bindings. You can look over them and change them as you want, remember to make a back-up of the original file first!
Just above </keyboard> at the end of the keyboard section we are going to enter our own custom key binding like this:
Code:
Do this for all the keys. I suggest doing one key at a time for obvious reasons. Log out, log back in and test out all your keys.
Perfect right? Told you it was easy!
Here is the map to all the custom keys on my keyboard.
Code:
You can bind the extra keys on your mouse in the same way in Openbox under the mouse section in that file!
Neat!
Code:
KeyPress event, serial 39, synthetic NO, window 0x2a00001, root 0x15a, subw 0x0, time 245502289, (1104,290), root:(1136,701), state 0x10, keycode 195 (keysym 0x1008ff48, XF86Launch8), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False
What we are interested in is this part:
(keysym 0x1008ff48, XF86Launch8)
Go back the file you opened earlier, scroll down the file until you come across this section in the file:
Code:
<keyboard> .......... </keyboard>
There will be a lot of text in that section, general Openbox key bindings. You can look over them and change them as you want, remember to make a back-up of the original file first!
Just above </keyboard> at the end of the keyboard section we are going to enter our own custom key binding like this:
Code:
<keybind key="XF86Launch8">
<action name="Execute">
<execute>/usr/bin/vlc</execute>
</action>
</keybind>
Do this for all the keys. I suggest doing one key at a time for obvious reasons. Log out, log back in and test out all your keys.
Perfect right? Told you it was easy!
Here is the map to all the custom keys on my keyboard.
Code:
<keybind key="XF86HomePage">
<action name="Execute">
<execute>/usr/bin/pcmanfm</execute>
</action>
</keybind>
<keybind key="XF86Search">
<action name="Execute">
<execute>/usr/bin/chromium</execute>
</action>
</keybind>
<keybind key="XF86Mail">
<action name="Execute">
<execute>/usr/bin/thunderbird</execute>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<execute>/usr/bin/amixer set Master 0</execute>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<execute>/usr/bin/amixer set Master 2-</execute>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<execute>/usr/bin/amixer set Master 2+</execute>
</action>
</keybind>
<keybind key="XF86AudioPlay">
<action name="Execute">
<execute>/usr/bin/audacious --play-pause</execute>
</action>
</keybind>
<keybind key="XF86Calculator">
<action name="Execute">
<execute>/usr/bin/xcalc</execute>
</action>
</keybind>
<keybind key="XF86Launch5">
<action name="Execute">
<execute>/usr/bin/vlc</execute>
</action>
</keybind>
<keybind key="XF86Launch6">
<action name="Execute">
<execute>/usr/bin/gnome-terminal</execute>
</action>
</keybind>
<keybind key="XF86Launch7">
<action name="Execute">
<execute>/usr/bin/soffice -writer</execute>
</action>
</keybind>
<!-- Reserved for future use, do not need it now
# <keybind key="XF86Launch8">
# <action name="Execute">
# <execute></execute>
# </action>
# </keybind> -->
<keybind key="XF86Launch9">
<action name="Execute">
<execute>/usr/bin/dcompmgr</execute>
</action>
</keybind>
</keyboard>
You can bind the extra keys on your mouse in the same way in Openbox under the mouse section in that file!
Neat!
Wednesday, February 16, 2011
Caps lock in Linux. Do you really need it?
I'm just stumped that we still have some archaic tech on our keyboards that we never ever seem to use, SysRq, ScrLk and of course, CAPS LOCK!
How many times has it happened that you accidentally hit the caps lock key and suddenly YOU HAVE TO RE-TYPE A COMPLETE SENTENCE because of this. Shift should be fine, right?
Hitting it by accident while gaming is also getting old fast!
Okay, end rant... here is what you need to do to disable it or map it to another key:
Code:
If you only want to disable it for the current session, or put this in your /etc/bash.bashrc to disable it permanently and system wide:
Code:
But now you have a dead key, but fear not, you can map it to any action you would like, like for instance shit?
Code:
Again, you can of course map it to any key you want, shift just seems logical to me.
There you go, no more HITTING THAT DARN KEY BY ACCIDENT!
How many times has it happened that you accidentally hit the caps lock key and suddenly YOU HAVE TO RE-TYPE A COMPLETE SENTENCE because of this. Shift should be fine, right?
Hitting it by accident while gaming is also getting old fast!
Okay, end rant... here is what you need to do to disable it or map it to another key:
Code:
$ xmodmap -e "remove lock = Caps_Lock"
If you only want to disable it for the current session, or put this in your /etc/bash.bashrc to disable it permanently and system wide:
Code:
if [ "$PS1" ]; then # Disables the CapsLock button xmodmap -e "remove lock = Caps_Lock" ... fi
But now you have a dead key, but fear not, you can map it to any action you would like, like for instance shit?
Code:
xmodmap -e "remove lock = Caps_Lock" xmodmap -e "add shift = Caps_Lock"
Again, you can of course map it to any key you want, shift just seems logical to me.
There you go, no more HITTING THAT DARN KEY BY ACCIDENT!
Monday, February 14, 2011
Content filtering made easy
There are quite a few options on the market to filter web content, like pornography, but most of these require either a server setup or some other time spend configuring files that is totally overkill for a normal household network.
Most of us have a router/modem and a couple of PC's that connect to this.
Here is a very easy method to filter you online experience!
That is it. Try it out to see if your filtering is working and adjust the settings in OpenDNS as you see fit. Happy and safe browsing for the whole family!
The tech savvy users can stop reading now, this section is a bit overboard, but I would like to add it for people who do not want to take any risks while testing to see if everything works like it should.
Testing OpenDNS the safe way
The easiest way to see if it works is to test it by trying to enter a forbidden/filtered site. You will immediately see an OpenDNS error message warning you that this site is being blocked.
To be on the safe side, let me walk you through this without leading you into unnecessary temptation.
In OpenDNS after you have logged in, click on dashboard and then click on settings.
Click on your IP address and under "Manage individual domains" enter a safe site here that you do no mind getting blocked, something like:
bing.com
Add it and wait around 5-10 minutes for everything to get updated.
Now each time you want to know if ddclient is working without taking risks, just try and access www.bing.com. If the normal page displays then your ddclient isn't updating your IP correctly, if it is blocked then you know it is working.
Without getting technical this is a safe way to test and see if it works correctly.
Thanks to shane2peru for the initial writeup.
Most of us have a router/modem and a couple of PC's that connect to this.
Here is a very easy method to filter you online experience!
- OpenDNS
Get yourself the free account at OpenDNS.
Once you have created the account it will guide you through an easy setup where you can choose how to configure your hardware. I suggest choosing the router method, all it requires you to do is to manually change the nameserver or DNS servers in your router/modem to:
208.67.222.222
208.67.220.220
If your router is also acting as the DHCP server, remember to change those DNS/nameserver settings as well!
Make the required changes in your dashboard, adding and removing filters as you wish and save it.You can now read up a bit on dynamic IP's to educate yourself a bit.
- DNSomatic
Now we head on over to DNSomatic. Your account details used for OpenDNS should work here as well.
Click the "Add Service" to get you started. That is all, I told you it is easy!
Again you can look around to educate yourself a bit if you are so inclined.
- ddclient
Next install ddclient. It should be in your distro repositories so it should be easy to install.
We only need to edit one file:
Code:
$ nano -w /etc/ddclient/ddclient.conf
Put the following in there:
Code:## ## DNS-O-Matic account-configuration ## ssl=yes use=web, web=myip.dnsomatic.com server=updates.dnsomatic.com, \ protocol=dyndns2, \ login=your account user name, \ password=your password \ all.dnsomatic.com
Change only the username and password you used to the ones you used to log into the DNSomatic site. You can now manually run ddclient to update your IP, or you can simply add it to a cron job. If you only want to update your IP once every hour (your ISP does not reset your account more often than that), then just do the following:
Code:$ ln -s /usr/sbin/ddclient /etc/cron.hourly/opendns
My ISP resets the IP address at irregular intervals, so I had to add this to crontab to get ddclient to run every thirty minutes.
Code:$ crontab -e */30 * * * * /usr/sbin/ddclient
That is it. Try it out to see if your filtering is working and adjust the settings in OpenDNS as you see fit. Happy and safe browsing for the whole family!
The tech savvy users can stop reading now, this section is a bit overboard, but I would like to add it for people who do not want to take any risks while testing to see if everything works like it should.
Testing OpenDNS the safe way
The easiest way to see if it works is to test it by trying to enter a forbidden/filtered site. You will immediately see an OpenDNS error message warning you that this site is being blocked.
To be on the safe side, let me walk you through this without leading you into unnecessary temptation.
In OpenDNS after you have logged in, click on dashboard and then click on settings.
Click on your IP address and under "Manage individual domains" enter a safe site here that you do no mind getting blocked, something like:
bing.com
Add it and wait around 5-10 minutes for everything to get updated.
Now each time you want to know if ddclient is working without taking risks, just try and access www.bing.com. If the normal page displays then your ddclient isn't updating your IP correctly, if it is blocked then you know it is working.
Without getting technical this is a safe way to test and see if it works correctly.
Thanks to shane2peru for the initial writeup.
Saturday, February 12, 2011
Top 10 list 2011
It has been a couple of years since I last reviewed my "Top 10 list" of Linux applications, so let's have a go at it again and see what has changed and why.
2008:
1. Music player - MP3Blaster
2. Web browser - Firefox
3. CD/DVD burning application - K3B
4. Video player - Kaffeine
5. Image editor - Gimp
6. BitTorrent client - Ktorrent
7. IRC client - Xchat / irssi
8. Terminal application - Yakuake
9. Image viewer - Eye of GNOME
10. text editor - Nano
2011
1. Music player - none
I cannot remember when last I listened to a song on the PC, months, years ago. I do not even have a music player installed, the closest to one is probably VLC. I do, however, use MP3Blaster on occasion for work to play sound files over ssh, but that is not on my desktop PC.
2. Web browser - Firefox
Google Chrome has been around for a while and I did grow fond of it, but there are just too many bugs still to recommend it. I have some issues with YouTube videos, ironic, I know, and Firefox handles plug-ins and extensions just that little better. So, I'm partial towards Firefox, but only just. Chrome IS going to launch a full system take-over on my desktop any time now...
3. CD/DVD burning application - K3B
Can't beat the best of the best, so yea, K3B it is.
4. Video player - VLC
Kaffeine made place for VLC and this is pretty much the only media player I ever use.
5. Image editor - The Gimp
Again, Gimp just stays at the top for the moment. Don't think that spot is not being contested, no sir, there are some serious alternatives on the rise.
Well, sort of.
You see, The Gimp is a complete solution, giving you everything you could ever need and shake a stick at for your graphical needs, the alternatives that are giving The Gimp a run for it's money, on the other hand, are application specific, for the lack of a better word, like F-Spot for photo manipulation, Krita and MyPaint for image creation/manipulation.
So far The Gimp still comes out tops for me.
6. BitTorrent client - none
I do not use torrents any more, but rather news servers, and if you need a good news server client, then sabnzbd is the way to go.
7. IRC client - none
I do not use IRC any more, it has been ages since last I logged in to any IRC server, I'm not that chatty any more...
8. Terminal application - Yakuake for KDE and Gnome Terminal for Openbox
When I run Openbox I want as little KDE dependence as I possibly can have. Yea, I have a thing against the recent plasma libs and kde libs that chews my resources...
9. Image viewer - Eye of GNOME
Not much to choose from here, either choose GTK based viewer or KDE based viewer... for now Eye of Gnome is doing what it must.
10. Text editor - Nano
I still use this editor almost every single day, this is one must have for me, and I do everything with nano, from coding simple scripts to building websites, awesome editor, not too complex and certainly not too much of a ligthweight.
Well, seems like age is catching up and I do not "play" on Linux any more, I need it for day-to-day work...
2008:
1. Music player - MP3Blaster
2. Web browser - Firefox
3. CD/DVD burning application - K3B
4. Video player - Kaffeine
5. Image editor - Gimp
6. BitTorrent client - Ktorrent
7. IRC client - Xchat / irssi
8. Terminal application - Yakuake
9. Image viewer - Eye of GNOME
10. text editor - Nano
2011
1. Music player - none
I cannot remember when last I listened to a song on the PC, months, years ago. I do not even have a music player installed, the closest to one is probably VLC. I do, however, use MP3Blaster on occasion for work to play sound files over ssh, but that is not on my desktop PC.
2. Web browser - Firefox
Google Chrome has been around for a while and I did grow fond of it, but there are just too many bugs still to recommend it. I have some issues with YouTube videos, ironic, I know, and Firefox handles plug-ins and extensions just that little better. So, I'm partial towards Firefox, but only just. Chrome IS going to launch a full system take-over on my desktop any time now...
3. CD/DVD burning application - K3B
Can't beat the best of the best, so yea, K3B it is.
4. Video player - VLC
Kaffeine made place for VLC and this is pretty much the only media player I ever use.
5. Image editor - The Gimp
Again, Gimp just stays at the top for the moment. Don't think that spot is not being contested, no sir, there are some serious alternatives on the rise.
Well, sort of.
You see, The Gimp is a complete solution, giving you everything you could ever need and shake a stick at for your graphical needs, the alternatives that are giving The Gimp a run for it's money, on the other hand, are application specific, for the lack of a better word, like F-Spot for photo manipulation, Krita and MyPaint for image creation/manipulation.
So far The Gimp still comes out tops for me.
6. BitTorrent client - none
I do not use torrents any more, but rather news servers, and if you need a good news server client, then sabnzbd is the way to go.
7. IRC client - none
I do not use IRC any more, it has been ages since last I logged in to any IRC server, I'm not that chatty any more...
8. Terminal application - Yakuake for KDE and Gnome Terminal for Openbox
When I run Openbox I want as little KDE dependence as I possibly can have. Yea, I have a thing against the recent plasma libs and kde libs that chews my resources...
9. Image viewer - Eye of GNOME
Not much to choose from here, either choose GTK based viewer or KDE based viewer... for now Eye of Gnome is doing what it must.
10. Text editor - Nano
I still use this editor almost every single day, this is one must have for me, and I do everything with nano, from coding simple scripts to building websites, awesome editor, not too complex and certainly not too much of a ligthweight.
Well, seems like age is catching up and I do not "play" on Linux any more, I need it for day-to-day work...
Openbox random desktop wallpaper script
There are a lot of ways to change the desktop background of Openbox, but for this tutorial we are going to focus our thoughts on feh.
To set the background in Openbox, simply open a terminal and type the following command:
Code:
If you want to only use a single wallpaper for your desktop, the put this line in your autostart file:
Code:
Remember the & at the end, very important!
Random wallpaper script
Let's take this one step further and take a look at a script that will randomly change the desktop wallpaper each time we log into Openbox.
Here is the script first:
Code:
Name it something easy and save it, on my PC all my scripts (conky, wallpaper, etc.) is saved in the same folder (~/.scripts). Let's name it randomwall.sh.
Make it executable:
Code:
Test the script by running it from a terminal:
Code:
If all went well you should see the desktop background changing. On my machine the script complained about a file (.last) not being present in the wallpaper directory, so just create that file:
Code:
No need to write anything in it, just create it.
If everything is working as expected, simply add the script to your autostart file:
Code:
If you have problems with the script not being found, use the full path to the file:
Code:
Log out and log back in, you should see a new wallpaper now!
Other alternatives
There are some scripts out there that allows you to change the desktop wallpaper with a menu click inside the Openbox right-click menu, if you want to try them out you can have a look here.
To set the background in Openbox, simply open a terminal and type the following command:
Code:
# feh --bg-scale /path/to/file.jpg
If you want to only use a single wallpaper for your desktop, the put this line in your autostart file:
Code:
# nano -w ~/.config/openbox/autostart.sh # feh --bg-scale /path/to/file.jpg &
Remember the & at the end, very important!
Random wallpaper script
Let's take this one step further and take a look at a script that will randomly change the desktop wallpaper each time we log into Openbox.
Here is the script first:
Code:
#!/bin/sh
WALLPAPERS="/path/to/folder/containing/wallpapers"
ALIST=( `ls -w1 /path/to/folder/containing/wallpapers` )
RANGE=${#ALIST[@]}
let "number = $RANDOM"
let LASTNUM="`cat $WALLPAPERS/.last` + $number"
let "number = $LASTNUM % $RANGE"
echo $number > $WALLPAPERS/.last
feh --bg-scale $WALLPAPERS/${ALIST[$number]}
Name it something easy and save it, on my PC all my scripts (conky, wallpaper, etc.) is saved in the same folder (~/.scripts). Let's name it randomwall.sh.
Make it executable:
Code:
# chmod +x .scripts/randomwall.sh
Test the script by running it from a terminal:
Code:
# cd .scripts # ./randomwall.sh
If all went well you should see the desktop background changing. On my machine the script complained about a file (.last) not being present in the wallpaper directory, so just create that file:
Code:
# cd /path/to/wallpaper/folder # nano .last ctrl+o to save the file ctrl+x to exit
No need to write anything in it, just create it.
If everything is working as expected, simply add the script to your autostart file:
Code:
# nano -w .config/openbox/autostart.sh ~/.scripts/randomwall.sh &
If you have problems with the script not being found, use the full path to the file:
Code:
/home/user/.scripts/randomwall.sh &
Log out and log back in, you should see a new wallpaper now!
Other alternatives
There are some scripts out there that allows you to change the desktop wallpaper with a menu click inside the Openbox right-click menu, if you want to try them out you can have a look here.
Wednesday, February 09, 2011
Autostart applications and services in Openbox
To autostart applications you need to have the following file:
Code:
Chances are good that it is not there so lets create it and put out startup applications in there:
Code:
In a previous post I described how to install dcompmgr and Avant Window Navigator, lets add this to the file to autotstart at next login:
Code:
Note the &, this is very important, without it the applications will not be started in the background and they will not run properly or at all.
dcompmgr has only a handful of options to choose from, you can view it by typing dcompmgr --help in a terminal.
Safe your work and exit, in nano:
Code:
Make the script executable:
Code:
Log out and log in again, the services or applications should have automatically started.
If you find something not working, go over your commands again and make sure they are typed correctly, most of the time it is only a simple typo or the & that is left out.
Code:
~/.config/openbox/autostart.sh
Chances are good that it is not there so lets create it and put out startup applications in there:
Code:
# nano -w ~/.config/openbox/autostart.sh
In a previous post I described how to install dcompmgr and Avant Window Navigator, lets add this to the file to autotstart at next login:
Code:
#!/bin/sh dcompmgr --gl & avant-window-navigator &
Note the &, this is very important, without it the applications will not be started in the background and they will not run properly or at all.
dcompmgr has only a handful of options to choose from, you can view it by typing dcompmgr --help in a terminal.
Safe your work and exit, in nano:
Code:
ctrl+o to safe ctrl+x to exit
Make the script executable:
Code:
# chmod +x ~/.config/openbox/autostart.sh
Log out and log in again, the services or applications should have automatically started.
If you find something not working, go over your commands again and make sure they are typed correctly, most of the time it is only a simple typo or the & that is left out.
Application Launcher for Openbox
If you log into Openbox for the first time you are greeted with nothing except a basic and generic right click Openbox menu. At least that is how it is in ArchLinux, also note that I have no other Desktop Environment or Window Manager installed...
The first thing I was looking for is an easy to use application launcher.
You can edit the Openbox menu yourself, or use something like obmenu to help you edit it, or even generate a menu with an app like MenuMaker. Great, but in my old age I'm looking for ease, for comfort, something that I can just click and there you have it, every single app and service available is listed.
This is where Avant Window Navigator comes in. What started out as me just looking for a neat Kde/Gnome like application launcher ended up bringing along a somewhat complete solution to my initial needs.
To install AWN you will need some composite manager to help out and bring out all the effects of AWN. I have tried quite a few and finally settled on dcompmgr.
Xompmngr and Cairo Composite Manager were very unstable and crashed when relocating tabs in Firefox, switching between some windows, etc.
The only time dcompmgr has let me down so far is when I play Steam games, but I'll come to that later.
There are times when the composite manager will crash for some odd reason, like mentioned earlier dcompmgr crashes whenever I start Steam or play a Steam game. You can always start the composite manager from a terminal, but even if you open it in the background you need to have that terminal open at all times otherwise the program will stop.
The solution to this is to bind the composite manager to a key on the keyboard and then use this to start the composite manager whenever you need to. Painless and elegant.
Look for the post on binding key to see how to do it.
The first thing I was looking for is an easy to use application launcher.
You can edit the Openbox menu yourself, or use something like obmenu to help you edit it, or even generate a menu with an app like MenuMaker. Great, but in my old age I'm looking for ease, for comfort, something that I can just click and there you have it, every single app and service available is listed.
This is where Avant Window Navigator comes in. What started out as me just looking for a neat Kde/Gnome like application launcher ended up bringing along a somewhat complete solution to my initial needs.
To install AWN you will need some composite manager to help out and bring out all the effects of AWN. I have tried quite a few and finally settled on dcompmgr.
Xompmngr and Cairo Composite Manager were very unstable and crashed when relocating tabs in Firefox, switching between some windows, etc.
The only time dcompmgr has let me down so far is when I play Steam games, but I'll come to that later.
- Install your composite manager of choise.
After you have it installed, start it from a terminal:
Code:
# dcompmgr
Notice that I did not put the & to start it in the background, this way I can see what is wrong if it crashes and fix it. If we are happy later on that everything is working like it should, then we can run it in the background.
- Now install Avant Window Navigator and Avant Window Manager extra applets.
If you do a search in your package manager for Avant or AWN you will see all available packages for AWN, choose what you think you will need and install it.
Start it from another terminal like we did with dcompmgr:
Code:
# avant-window-navigator
If all goes well you should now see the standard AWN bar somewhere on your screen (middle top or middle bottom), go into the AWN settings and edit it to your hearts content.
What I added to solve my application launcher problem is the "Yet Another Menu Applet".
After adding the volume control, date and a few applications to the taskbar I ended up with this setup:

There are times when the composite manager will crash for some odd reason, like mentioned earlier dcompmgr crashes whenever I start Steam or play a Steam game. You can always start the composite manager from a terminal, but even if you open it in the background you need to have that terminal open at all times otherwise the program will stop.
The solution to this is to bind the composite manager to a key on the keyboard and then use this to start the composite manager whenever you need to. Painless and elegant.
Look for the post on binding key to see how to do it.
Openbox, the lazy way...
I have recently switched over to OpenBox because I just had enough of random KDE bugs, especially with regards to plasma eating 99% of the CPU, and so far I'm very, very pleased with the result.
For the uninitiated out there, there is one thing you have to remember is that people think you know everything to know about coding and scripting once you tackle a more "advanced" window manager, so be prepared for hours of frustration while trying to figure out the smallest detail. Take heart though, someone like you have gone through it before and is willing to share his knowledge.
To me the main problem with Fluxbox, Openbox and all the other *box window managers is that they are not geared for the person who has productivity as a high priority. As an office worker you do not have time to call up a terminal type out the command for OpenOffice Writer.
You want to browse a file in a file manager, click on it and let the rest just happen.
That is why, after this long silence, I'm going to blog my progress and what I did to make OpenBox as "office friendly" as one can get.
Each post will be a different feature to make it easy to follow and reproduce without reading stuff that doesn't concern you at that time.
Just a few notes before I get started:
I'm not going to handle the installation of all the various software. I'm using Arch Linux and have no idea what some of the software are named and how they are installed on other distros.
Use Google for that, if you want to know how to install Avant Window Navigator on Ubuntu then search for:
"Avant Window Navigator"+Ubuntu+install
This goes for all other software as well.
If you have questions, ask!
I will answer whatever problems you have, so fire away!
That is that. Enjoy!
For the uninitiated out there, there is one thing you have to remember is that people think you know everything to know about coding and scripting once you tackle a more "advanced" window manager, so be prepared for hours of frustration while trying to figure out the smallest detail. Take heart though, someone like you have gone through it before and is willing to share his knowledge.
To me the main problem with Fluxbox, Openbox and all the other *box window managers is that they are not geared for the person who has productivity as a high priority. As an office worker you do not have time to call up a terminal type out the command for OpenOffice Writer.
You want to browse a file in a file manager, click on it and let the rest just happen.
That is why, after this long silence, I'm going to blog my progress and what I did to make OpenBox as "office friendly" as one can get.
Each post will be a different feature to make it easy to follow and reproduce without reading stuff that doesn't concern you at that time.
Just a few notes before I get started:
I'm not going to handle the installation of all the various software. I'm using Arch Linux and have no idea what some of the software are named and how they are installed on other distros.
Use Google for that, if you want to know how to install Avant Window Navigator on Ubuntu then search for:
"Avant Window Navigator"+Ubuntu+install
This goes for all other software as well.
If you have questions, ask!
I will answer whatever problems you have, so fire away!
That is that. Enjoy!
Wednesday, August 13, 2008
Top 10 lists...
In general I hate these "top 10" lists, but this one I found today caught my eye since it is very practical, nothing fancy, just the "what you need" to get the most out of your everyday relaxation on Linux.
10 Essential Linux Applications for Daily Use
Mine is quite similar with only a few differences:
1. Music player - MP3Blaster
2. Web browser - Firefox
3. CD/DVD burning application - K3B
4. Video player - Kaffeine
5. Image editor - Gimp
6. BitTorrent client - Ktorrent
7. IRC client - Xchat / irssi
8. Terminal application - Yakuake
9. Image viewer - Eye of GNOME
10. text editor - Nano
Basically the same, now go have some fun exploring your own favourites!
10 Essential Linux Applications for Daily Use
Mine is quite similar with only a few differences:
1. Music player - MP3Blaster
2. Web browser - Firefox
3. CD/DVD burning application - K3B
4. Video player - Kaffeine
5. Image editor - Gimp
6. BitTorrent client - Ktorrent
7. IRC client - Xchat / irssi
8. Terminal application - Yakuake
9. Image viewer - Eye of GNOME
10. text editor - Nano
Basically the same, now go have some fun exploring your own favourites!
Thursday, August 07, 2008
Mozilla Firefox QT port!
LinuNow this has to be interresting! A qt port of Firefox!
I really do not like GTK so this is a huge blessing for me. Check out the site:
Not much to look at
And here is the WIKI for the Ubuntu freaks (strange that you would install a qt port on a GTK based distro...)
The people who use Gentoo and similar distros know what to do, just read through the wiki and apply what is needed.
I'll be hacking away at it in a few moments and hopefully there is some mayor improvements over the GTK version.
I really do not like GTK so this is a huge blessing for me. Check out the site:
Not much to look at
And here is the WIKI for the Ubuntu freaks (strange that you would install a qt port on a GTK based distro...)
The people who use Gentoo and similar distros know what to do, just read through the wiki and apply what is needed.
I'll be hacking away at it in a few moments and hopefully there is some mayor improvements over the GTK version.
Wednesday, August 06, 2008
KDE 4.1 panels "hack"
We have all seen the KDE 4.1 task manager and the panels, and one of the hotest disputed topics, the fact that it lacks so much in being able to be customized. Luckily there is Plasma and plasmoids.
I'm pretty sure whatever you would like done, there will be a plasmoid for it, like multiple lines in the task manager?
Multirows in the task manager!
I'll keep on looking for some more of these goodies, but just a ray of hope, seems like plasma is going to be a great success for KDE 4, even saving the devs some face on the end of the day...
I'm pretty sure whatever you would like done, there will be a plasmoid for it, like multiple lines in the task manager?
Multirows in the task manager!
I'll keep on looking for some more of these goodies, but just a ray of hope, seems like plasma is going to be a great success for KDE 4, even saving the devs some face on the end of the day...
Sunday, July 20, 2008
E-sword
Linux and E-sword, what could one have asked for as a Christian than this great Bible program to work on Linux?!
I know I already covered it, but since last year allot has changed for the better, and now you can even install additions and modules directly into E-sword without using a Windows PC to first extract the modules, great!
There are alternatives, but none of them boast even remotely as large a library of collections and Bibles as E-sword. Allow me to copy from an Ubuntu forum post and shed some light on how to get this going in Linux:
Install Wine
Follow instruction below, choose your distro:
You could download the program and other addons here:
http://www.e-sword.net/downloads.html
Create "bottle" for Esword:
Install the program:
Make sure the setup798.exe is in you home folder. Otherwise, you should cd to the location first, for example "cd Desktop" if the setup797.exe is on your Desktop.
Download msls31.dll to your ~/.wine_Esword/drive_c/windows/system32 from here:
http://www.dlldump.com
(Search msls31.dll and download it. If you download it somewhere else, you need to copy it to ~/.wine_Esword/drive_c/windows/system32)
Copy riched20.dll from ~/.wine_Esword/drive_c/Program Files/e-Sword to ~/.wine_Esword/drive_c/windows/system32
Make sure all the above dlls in lower case. If they are in upper case, rename them to lower case.
In winecfg set riched20.dll and oleaut32.dll to native. IMPORTANT: Do not run winecfg from menu, as it would run default winecfg. Please use terminal to run winecfg for this bottle:
Press the Libraries tab > type riched20.dll > press add > press edit > choose Native (windows).
Do the same for oleaut32.dll.
Type:
to run it. Or, you could use the launcher created on desktop.
To install addons, run in terminal:
Make sure the bbe.exe is in you home folder. Otherwise, you should cd to the location first, for example "cd Desktop" if the bbe.exe is on your Desktop.
If it shows only blue screen, press [alt+tab] to switch to installation windows. You may need to press [alt+tab] again every time after you press next.
The above example is to install bbe.exe. You could install other addons using above overrides, just replace bbe.exe.
Change Icon on Launcher.
The launcher created already use e-Sword icon. But if you want to use other icon, follow below step:
Right click the launcher and choose properties.
After that click on the wine icon, it will open a windows.
Navigates to the icon file you want.
If the icon you want did not appear in the navigation windows, change the extension to png.
You could download and use attached 2 icons as well (original e-sword icons) if you like.
Add more fonts
To add more fonts, copy whatever fonts you have to ~/.wine_Esword/drive_c/windows/fonts.
If it still not appear in e-sword, it might be due to file permission problem. What you have to do is to open terminal (application>accesories>terminal), and then issue below command:
The fonts should now available for E-sword to use.
Increase font size for E-sword menu
If you find e-Sword application font itself (ie. the font for "menu, edit, format, etc") is too small, what you can do is:
Open terminal (Application>Accesories>Terminal)
Open wine configuration editor from terminal:
Click graphics tab.
At below, there is a screen resolution slider, the default is 96 dpi. Slide the slider to higher dpi. Be carefull though to use too big value as GlennW reported the winecfg become to big to fit to the screen when he use maximum value (120 dpi). Click apply and then ok.
Open your e-sword, if it is too big, you could repeat the above steps, adjusting the slider to whatever number (between 96 to 120).
Troubleshooting
If you encounter a weird problem, possibly there are some wine processes in the memory. To get rid of these processes, you could
1. reboot your computer,
or
2. kill wine related processes using system monitor:
From menu: system >> Sytem monitor >> click "processes" tab.
Kill all processes related to wine, including all exe processes.
or
3. Open terminal, and run below command (one at a time):
With many thanks to the Ubuntu forums:
http://sudan.ubuntuforums.com/showthread.php?t=404042
I know I already covered it, but since last year allot has changed for the better, and now you can even install additions and modules directly into E-sword without using a Windows PC to first extract the modules, great!
There are alternatives, but none of them boast even remotely as large a library of collections and Bibles as E-sword. Allow me to copy from an Ubuntu forum post and shed some light on how to get this going in Linux:
Install Wine
Follow instruction below, choose your distro:
Code:
http://www.winehq.org/site/download
You could download the program and other addons here:
http://www.e-sword.net/downloads.html
Create "bottle" for Esword:
Code:
wineprefixcreate --prefix .wine_Esword
Make sure the setup798.exe is in you home folder. Otherwise, you should cd to the location first, for example "cd Desktop" if the setup797.exe is on your Desktop.
Code:
env WINEPREFIX=~/.wine_Esword wine setup798.exe
http://www.dlldump.com
(Search msls31.dll and download it. If you download it somewhere else, you need to copy it to ~/.wine_Esword/drive_c/windows/system32)
Copy riched20.dll from ~/.wine_Esword/drive_c/Program Files/e-Sword to ~/.wine_Esword/drive_c/windows/system32
Code:
cp ~/.wine_Esword/drive_c/Program\ Files/e-Sword/riched20.dll ~/.wine_Esword/drive_c/windows/system32
In winecfg set riched20.dll and oleaut32.dll to native. IMPORTANT: Do not run winecfg from menu, as it would run default winecfg. Please use terminal to run winecfg for this bottle:
Code:
env WINEPREFIX=~/.wine_Esword winecfg
Do the same for oleaut32.dll.
Type:
Code:
env WINEPREFIX=~/.wine_Esword wine "C:\Program Files\e-Sword\e-Sword.exe"
To install addons, run in terminal:
Make sure the bbe.exe is in you home folder. Otherwise, you should cd to the location first, for example "cd Desktop" if the bbe.exe is on your Desktop.
Code:
env WINEPREFIX=~/.wine_Esword wine bbe.exe
The above example is to install bbe.exe. You could install other addons using above overrides, just replace bbe.exe.
Change Icon on Launcher.
The launcher created already use e-Sword icon. But if you want to use other icon, follow below step:
Right click the launcher and choose properties.
After that click on the wine icon, it will open a windows.
Navigates to the icon file you want.
If the icon you want did not appear in the navigation windows, change the extension to png.
You could download and use attached 2 icons as well (original e-sword icons) if you like.
Add more fonts
To add more fonts, copy whatever fonts you have to ~/.wine_Esword/drive_c/windows/fonts.
If it still not appear in e-sword, it might be due to file permission problem. What you have to do is to open terminal (application>accesories>terminal), and then issue below command:
Code:
chmod 777 -R ~/.wine_Esword/drive_c/windows/fonts
Increase font size for E-sword menu
If you find e-Sword application font itself (ie. the font for "menu, edit, format, etc") is too small, what you can do is:
Open terminal (Application>Accesories>Terminal)
Open wine configuration editor from terminal:
Code:
env WINEPREFIX=~/.wine_Esword winecfg
At below, there is a screen resolution slider, the default is 96 dpi. Slide the slider to higher dpi. Be carefull though to use too big value as GlennW reported the winecfg become to big to fit to the screen when he use maximum value (120 dpi). Click apply and then ok.
Open your e-sword, if it is too big, you could repeat the above steps, adjusting the slider to whatever number (between 96 to 120).
Troubleshooting
If you encounter a weird problem, possibly there are some wine processes in the memory. To get rid of these processes, you could
1. reboot your computer,
or
2. kill wine related processes using system monitor:
From menu: system >> Sytem monitor >> click "processes" tab.
Kill all processes related to wine, including all exe processes.
or
3. Open terminal, and run below command (one at a time):
Code:
killall wine
killall wineserver
killall wine-preloader
With many thanks to the Ubuntu forums:
http://sudan.ubuntuforums.com/showthread.php?t=404042
Saturday, June 28, 2008
Monday, June 02, 2008
KDE 4.1!
I just came across a very interesting screencast hi-lighting the differences between KDE 4.0 and 4.1.
From what I have seen in the screencast it has really struck a cord with me, making me excited (at last) as to the direction the KDE team is taking with KDE 4.
Some features to note:
From what I have seen in the screencast it has really struck a cord with me, making me excited (at last) as to the direction the KDE team is taking with KDE 4.
Some features to note:
- There is now much better support for plasma and plasmoids.
It seems, from the cast, that there has been some mayor improvements in this department. I especially like the new plasmoid that lets you choose a few files to be placed on the Desktop, sort of a bookmark type view of short cuts to your data. Themeing plasma has also now been made easier with an own theme manager and on the whole it just looks like it might just work! - Seconds, they have given more attention to the taskbar/panel. Some of the biggest criticism was that you cannot configure it all, or the options is very limited. They have now addressed this and it seems like there are some more new features added to this. It's still not on par with KDE 3 and the massive amount of configuration you can throw at it, but it is moving ahead nicely. I predict that FULL customization is now only a matter of time, and as soon as they have the time I'm sure they will improve this even further.
- It seems that kwin has also been revamped under the bonnet. One big flaw to the whole Compiz fad for me is that it renders your desktop useless for other GFX intensive tasks, like gaming. Try and game on a desktop that has Compiz enabled, it is impossible, so far. I hope they have at least tried and made the whole engine in kwin a bit more streamlined, it is stable, I have no doubt about that, but for gamers it is impractical. I have no idea how Vista handles it's eye candy, so maybe it is just possible to get around this?
A thing that really bothered me was that transparency is only possible when you have Compiz enabled, and being a gamer I never had this enabled, short for a few test runs here and there. The whole "eye candy" argument and design of KDE 4 is heavily based on this, have they even given a thought to people who cannot use it because of said short comings??
Sunday, June 01, 2008
Screen shot!
It has been a while since I last posted a screen shot, so here we go!
Nothing much has changed the last couple of months, except updating KDE and all the nice add-ons (yakuake, kbfx, etc.)


Oh well, there you have it. It's been hard getting new and decent KDE 3.x themes since KDE 4 launched, but I'm still far more comfortable with KDE 3 and think I'll wait a couple of months till I try KDE 4 again...
:-)
Nothing much has changed the last couple of months, except updating KDE and all the nice add-ons (yakuake, kbfx, etc.)
Clean:

Bussy:

Oh well, there you have it. It's been hard getting new and decent KDE 3.x themes since KDE 4 launched, but I'm still far more comfortable with KDE 3 and think I'll wait a couple of months till I try KDE 4 again...
:-)
Subscribe to:
Posts (Atom)







