Archive for the ‘Linux HOW-Tos’ Category

September – Screenshot, Banshee Cover Art

So, September, my set up has not changed a whole lot:

 

So, I bought a new CD [in my language] today. Its a movie album actually, its called “Stalin” – without any relation to Joseph Dzhugastvili (Stalin). Its a nice album. I ripped it to Flac through Sound Juicer because Flac rocks. Then I was wondering as to how to add Album/Cover Art, and searched for a while before I discovered that Banshee had the amazing capability of making “cover.jpg” or “folder.jpg” in the Album/ as cover art. So I just downloaded the logo of the movie, and put it as cover.jpg but it was all messed up because it was a rectangle instead of a square as it was expecting. But GIMP fixed that, and now I have that cover art I wanted. So just place the image as either “cover.jpg” or “folder.jpg” in the Album/ folder, and you have your cover art. w00t for Banshee! :)   Anyways, later.

Belkin Router F5D6231-4 using Wine and ies4linux

I had a Belkin F5D6231-4 Router, and I was not able to add Virtual Servers and Port Forwarding through Mozilla Firefox/Epiphany because of some problems. So I went ahead and got ies4linux from here. Then, I followed the instructions (generic instructions on the site Just Work (TM)). After that, I had this in my ~/.wine/config:

WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;; If you think it is necessary to show others your complete config for a
;; bug report, filter out empty lines and comments with
;; grep -v “^;” ~/.wine/config | grep ‘.’

[wine]
“ShowDirSymlinks” = “1″
“ShowDotFiles” = “1″

[Version]
; Windows version to imitate (win95,win98,winme,nt351,nt40,win2k,winxp,win2k3,win20,win30,win31)
“Windows” = “win98″
; DOS version to imitate
“DOS” = “6.22″

;; For running Internet Explorer 6, Service Pack 1
;[AppDefaults\\iexplore.exe\\Version]
;”Windows” = “win98″

;[AppDefaults\\iexplore.exe\\x11drv]
;”Desktop” = “1024×768″

[AppDefaults\\iexplore.exe\\DllOverrides]
“*advapi32″ = “builtin”
;”*oleaut32″ = “builtin, native”
“shlwapi” = “native”
“rpcrt4″ = “native”
“ole32″ = “native”
;”shdocvw” = “builtin” # native seems to work much better
“shdocvw” = “native”
“wininet” = “native”
;”shfolder” = “native”
;”shell32″ = “native”
;”shell” = “native”
“comctl32″ = “builtin”
“oleaut32″ = “native”
;”*urlmon” = “builtin, native” # native seems to be required for full access to IE menus
“urlmon” = “native”
“crypt32″ = “native”
“mshtml” = “native”
“wintrust” = “native”
“digest” = “native”

;; For installing Internet Explorer 6, Service Pack 1
[AppDefaults\\ie6setup.exe\\Version]
“Windows” = “win98″

[AppDefaults\\ie6setup.exe\\DllOverrides]
“*advapi32″ = “builtin”
“*comctl32″ = “builtin, native”
;”comctl32″ = “native” # builtin seems to be necessary
“setupapi” = “native, builtin”
“setupx” = “native, builtin”
“wintrust” = “native”
“shdocvw” = “builtin, native”
;”shdocvw” = “native” # builtin may be necessary

;; Next comment was in Mike Hearn’s script
; Parts of the actual IE code are in wininet, we don’t currently attempt to implement IE so use native here
“wininet” = “native, builtin”

; Probably not necessary as WINEDLLOVERRIDES is set at command line
“advpack” = “native”

;; For installing Internet Explorer 6, Service Pack 1
[AppDefaults\\ie6wzd.exe\\Version]
“Windows” = “win98″

; added this 26/8/04 DA
[AppDefaults\\ie6wzd.exe\\DllOverrides]
“*advapi32″ = “builtin”
“*oleaut32″ = “builtin, native”
“*urlmon” = “builtin, native”
“*comctl32″ = “builtin, native”
“advpack” = “native”
“shlwapi” = “native, builtin”

;; For installing Internet Explorer 6, Service Pack 1
;; Next comment was in Mike Hearn’s script
; the native advapi ie setup uses doesn’t implement RegQueryInfoKey, which we use in GDI font engine init code so stuff breaks
; Here’s a quick fix (really the only fix, I dunno how we can stop this except by changing GDI not to use RQIK which is a slippery slope
[AppDefaults\\iebatch.exe\\Version]
“Windows” = “win98″
[AppDefaults\\iebatch.exe\\DllOverrides]
“*advapi32″ = “builtin”

;; For installing Internet Explorer 6, Service Pack 1
[AppDefaults\\acmsetup.exe\\Version]
“Windows” = “win98″
[AppDefaults\\acmsetup.exe\\DllOverrides]
“*advapi32″ = “builtin”
“*oleaut32″ = “builtin, native”
“*urlmon” = “builtin, native”
“*comctl32″ = “builtin, native”
“advpack” = “native, builtin”
“shlwapi” = “native, builtin”

;; For installing Internet Explorer 6, Service Pack 1
[AppDefaults\\rundll32.exe\\Version]
“Windows” = “win98″
[AppDefaults\\rundll32.exe\\DllOverrides]
“*advapi32″ = “builtin”
“*urlmon” = “builtin, native”
“mshtml” = “native, builtin”
;; listed as KnownDLLs in IE Setup Log.txt
“rsabase” = “native, builtin”
“wintrust” = “native”
“vsrevoke” = “native”
“msvcrt” = “native, builtin”
“shdocvw” = “native, builtin”
“msvcrt40″ = “builtin, native”
“mfc40″ = “native”
“cool” = “native”
“shlwapi” = “native, builtin”
“wininet” = “native, builtin”
;”urlmon” = “native”
“netapi32″ = “builtin, native”
“hlink” = “native”
“msrating” = “native”
“imagehelp” = “native”
“url” = “builtin, native”
;;

; These may not be necessary
“advpack” = “native, builtin”
“crypt32″ = “native, builtin”
“rpcrt4″ = “native”
“oleaut32″ = “native”

;; listed as DLLInstall for RunOnceEx in IE Setup Log.txt
“shdoc401″ = “native”
“iesetup” = “native”
;”shdocvw” = “native, builtin”
“browseui” = “native”
;”wininet” = “native, builtin”
;”urlmon” = “native”
“digest” = “native”
“*comctl32″ = “builtin, native”
“inetcpl” = “native, builtin”
“occache” = “native, builtin”
;”mshtml” = “native, builtin”
“initpki” = “native”
;;

;; For installing Internet Explorer 6, Service Pack 1
[AppDefaults\\winemenubuilder.exe\\DllOverrides]
;; Next comment was in Mike Hearn’s script
; # otherwise things can go wrong when we cancel the install while downloading
“shlwapi” = “builtin”

I believe that I got this wine config from Ubuntu Forums.

Then, I just ran ie6 from my home directory, and connected to my Router Setup Home

Then, I was able to edit port forwarding, etc. Hope this helps someone with Ubuntu and this particular Belkin Router.

Gnome Main Menu 0.6.2 – Recently Used Apps

[Edit]

I have updated the broken links for the patches. Hopefully it will work now. Thanks to Horizon on UbuntuForums for sending me the New_gnome-desktop*.patch and New_gnome-panel*.patch. :)

[/Edit]
This is a HOW-TO on how to get the Recently-Used-Applications to work on Ubuntu Dapper 6.06 LTS.

First, get the dependencies for building gnome-desktop and gnome-panel.

$ sudo apt-get build-dep gnome-desktop gnome-panel

Then, you must get the actual source packages. We’ll do gnome-desktop and then gnome-panel.

Let’s get the source package for gnome-desktop:

$ mkdir -p ~/dev; cd ~/dev;
$ apt-get source gnome-desktop

Now that you have the sources done and patched. Lets get the gnome-desktop patch from openSUSE. For simplicity, I’ve posted it here as a link:

openSUSE Gnome-Desktop Recently-Used-Apps Patch

Then, you must patch your gnome-desktop with this patch. So instead of clicking on the link above, you can do this:

$ cd ~/dev; wget http://graphic23.googlepages.com/New_gnome-desktop-recently-used-apps.patch
$ cd gnome-desktop-2.14.3/libgnome-desktop/

$ patch -Np1 -i ../../New_gnome-desktop-recently-used-apps.patch

$ cd ../
$ ./configure –prefix=/usr –sysconfdir=/etc –localstatedir=/var;

$ cd libgnome-desktop; vi Makefile

You have to edit a few things in the Makefile.

Make sure you have these things in the Makefile:

am_libgnome_desktop_2_la_OBJECTS = gnome-desktop-item.lo \
gnome-ditem-edit.lo gnome-hint.lo egg-recent-item.lo \
egg-recent-model-multi.lo

libgnome_desktop_2_la_SOURCES = \
gnome-desktop-item.c \
gnome-ditem-edit.c \
egg-recent-item.h \
egg-recent-item.c \
egg-recent-model-multi.h \
egg-recent-model-multi.c \
gnome-hint.c

test_ditem_SOURCES = \
egg-recent-item.h \
egg-recent-item.c \
egg-recent-model-multi.h \
egg-recent-model-multi.c \
test-ditem.c

test_hint_SOURCES = \
egg-recent-item.h \
egg-recent-item.c \
egg-recent-model-multi.h \
egg-recent-model-multi.c \
test-hint.c

Note: None of these things actually needs to be added. Just find where “am_desktop… = ” is and then add the things about the egg-* files. Same for the other 3 blocks.

Then,

$ cd ../;

$ make; sudo checkinstall; sudo dpkg -i *.deb;

Gnome-Desktop is patched and installed.

Now, lets compile gnome-panel.

openSUSE Patches:

Slab – Alt-F1 Keyboard Shortcut Patch for GNOME Panel

Slab – Recently-Used-Apps Patch for GNOME Panel

$ cd ~/dev; apt-get source gnome-panel

$ wget http://graphic23.googlepages.com/New_gnome-panel-recently-used-apps.patch

$ wget http://graphic23.googlepages.com/gnome-slab-alt-f1.patch

$ cd gnome-panel-2.14.3; patch -Np1 -i ../New_gnome-panel-recently-used-apps.patch

$ patch -Np1 -i ../gnome-slab-alt-f1.patch

$ ./configure –prefix=/usr –sysconfdir=/etc –localstatedir=/var; make;

$ sudo checkinstall

$ sudo dpkg -i *.deb

Then, you have successfully patched and installed gnome-panel as well.

Now restart Gnome and you should be getting things in Recently Used Applications. Hope this guide helped. If you did not get any of these steps, then by all means, just contact me:

graphic23 AT gmail DOT com