Forging wallpapers …

Recently I bought a nice 19′ wide LCD monitor with an 1440×900 resolution, so I quickly setup Twinview between my laptop running at 1280×800 and obviously moved down the first screen by 100 pixels, to achieve the same effect as “Extend my …” Wind0ze.

Everything was fine, until I wanted to set a wallpaper, and it hurt my eyes … duhh, it was horible … stretched between the two screens. yuck!

The wallpapers designed for dual monitors assume that both have the same height, which obviously wasn’t my case … so the only viable solution was to create my own wallpaper by arranging two images in GIMP.

I like to have the same wallpaper on both screens, so that wasn’t a problem, but it was rather annoying after trying 2-3 wallpapers.

Instead I thought of the nice utility package called “ImageMagick” … Yay! and wrote a nice little bash script to generate the desired wallpaper from two images given as input.

Here is the contents of the script:

#!/bin/bash

if [ $# -ne 3 ] ; then
echo “Usage: $0 image1.png image2.png outimage.png”
exit 13
fi

convert -size 2720×900 xc:black “$1” -geometry +0+100 -composite “$2” -geometry +1280+0 -composite “$3”

echo “Done …”
exit 1

I named it “mkwlp” , made it executable (chmod u+x mkwlp) then copied it into /usr/bin for convenience …

This can be customized for other resolutions, etc and it’s fairly straight forward so i won’t go into this.

(I highlighted the customizable parts for convenience)

Voilà!!!

Here are a few wallpapers i “forged” with this little script 🙂 Enjoy! (click to see the bigger version)

Oh, I almost forgot to tell that EWallpapers.eu is my number #1 landing place when I’m looking for high resolution wide screen wallpapers ( but not only! ) and also Hollywood Desktop.

Advertisements

Customize Your Ubuntu …

I’m posting this, mostly because some people showed interest in how do I customized my Ubuntu’s look and feel. So here we go … an image worths more than 1 million words … ha!

First take a look at the following screenshot.

screenshot.png

Nice huh? If you liked what you have seen, then continue, else STOP reading now.

The background can be found here .

The theme is customized, so here are some screenshots:

screenshot-customize-theme.png

screenshot-customize-theme-1.png

screenshot-customize-theme-2.png

screenshot-customize-theme-3.png

Now a few words about the panel on the bottom. Well that’s not the Kiba dock, that’s just a normal dock. So here is an image on how to set that up to achieve the look and feel of the one in the screenshot.

screenshot-panel-properties.png

The themes, etc. are from either Gnome Look or Gnome Art .

Enjoy indefinitely …. haha!

Wireless + Ubuntu 7.10 = love

As almost everyone around here, I was waiting for the new Ubuntu mostly because it promised improved wireless support. 7.04 haven’t even recognized my wireless card, after install, and also I had sound problems, though anything else seemed to work great.The 7.10 solved these right out of the box, but I still wasn’t able to connect via WPA-TKIP and WPA2-AES to my wireless Netgear router.

So, after a few days of digging and reading, I managed to make my wireless connection working. It’s not the most elegant solution, but for me it works, and that’s all what matters.
In this guide, I assume that your wireless card is recognized by Ubuntu, and it’s functional. In 7.10 you have the wpa_supplicant installed by default, so you won’t have to worry about it.
Here is with what I came up, and making my wireless working, exactly as it works under Windows.

  1. I removed the silly network-manager by typing “sudo apt-get remove network-manager” in a terminal.
  2. Now go to System->Administration->Networking, and make sure to fill the fields with the correct info, and enable the wireless connection.
  3. To make sure that everything is right, check your /etc/network/interfaces file. Open up the file by typing “gksudo gedit /etc/network/interfaces”.

For WPA-TKIP:

iface wlan0 inet static
address 192.168.0.25
netmask 255.255.255.0
gateway <your router’s ip>
wpa-ap-scan 1
wpa-pairwise TKIP
wpa-group TKIP
wpa-psk <your long wpa key>
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA
wpa-ssid <your essid>

auto wlan0

For WPA2-AES:

iface wlan0 inet static
address 192.168.0.25
netmask 255.255.255.0
gateway <your router’s ip>
wpa-ap-scan 1
wpa-pairwise CCMP
wpa-group CCMP
wpa-psk <your long wpa key>
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA2
wpa-ssid <your essid>

auto wlan0

Make sure that these, are in the file, if not then add the lines, and save the file, then you can close the gedit window.
4. In a terminal type in the followings, exactly in this order:
“sudo killall wpa_supplicant” [enter]
“sudo /etc/init.d/networking stop” [enter]
“sudo /etc/init.d/networking start” [enter]

5. Now we should take a look at our connection status in the “Network Monitor” applet.
6. Finally we can do a “ping google.com” right from the terminal.

So, by now we should have a working wireless connection, but if you will restart your PC, you will have to type in the commands from “section 4.”.
That’s really, really annoying, so here is the solution to get wireless at startup automatically.

Type in a terminal “sudo gedit /etc/init.d/wifi” and paste the followings in the file (basically our 3 commands):

#!/bin/bash

#kill all wpa_supplicant instances
killall wpa_supplicant

#stop the network interfaces
/etc/init.d/networking stop

#start the network interfaces
/etc/init.d/networking start

Close the gedit window, and type “sudo chmod +x /etc/init.d/wifi” to make the script “executable”. When done, we must add it to be executed at every system
start-up as the last “thing”. :))

To do that type the following in a terminal window:

“sudo update-rc.d wifi defaults 99”

Later if you will like to disable this you have two choices:

1. “sudo update-rc.d -f wifi remove” OR
2. “sudo chmod -x /etc/init.d/wifi”

Too test out this, just restart your computer and you should have internet access right after boot-up, just like on a Wind0ze machine. Totally rad huh?

[Updates Sun Mar 30, 2008]

This “post” proven to be really popular, so here are a few updates, to make even more users happy 🙂

If you are getting your IP from your router automatically then you can replace this:

iface wlan0 inet static
address 192.168.0.25
netmask 255.255.255.0

with this

iface wlan0 inet dhcp

If you ping and you get no “reponse”, then it worth to check out your /etc/resolv.conf and make sure that it contains the following lines:

nameserver <your router’s ip>

You can edit / create this file by “sudo gedit /etc/resolv.conf”.

If it still doesn’t work, you may try changing “wlan0” to “wifi0″,”ath0” …

If you get disconnected you can always fire up a terminal and run “sudo /etc/init.d/wifi” to get your connection back, without any hassle …

Because the silly “network-manager” was removed you can add an “Network Monitor” to one of your Gnome Panels …

Also I’m thinking on coding a nice little GUI tool to do all this stuff, so stay tuned!

[Updates Sat Apr 26, 2008]

This works perfectly in the final release of Ubuntu 8.04 (Hardy Heron), just like Dave confirmed that it works with the beta.

[Updates Sat May 10, 2008]

The development of little GUI tool is on hold, eventually I will continue the development if there will be enough requests, but I seriously doubt it 🙂

Please feel free to post any comments/suggestions/experiences, etc. related to this. :))