Sunday, January 29, 2012

Conky Transparency Enlightenment

own_window yes
# ARGB can be used for real transparency, note that a composite manager is required for real transparency
own_window_argb_visual true
# Set the transparency alpha value from 0 to 255
own_window_argb_value 0
own_window_type desktop

For Autostart:

alt + right click on your conky
scroll down to settings
click on remember
follow the screen information
make sure to save it to start on boot

Monday, July 25, 2011

chroot into LUKS encrypted drive

# cryptsetup luksOpen /dev/sdx2 slackluks

# vgscan --mknodes

# vgchange -ay

# lvscan

# mount /dev/foo /foo

# mount -o bind /proc /mnt

# mount -o bind /dev /mnt

# mount -o bind /sys /mnt

# mount -o bind /boot /mnt

(mount /boot if on a different HDD if messing with kernel issues etc...)

# mount /dev/foo /mnt

# chroot /mnt /bin/bash

Tuesday, February 22, 2011

Spotify

Installation

Download the windows installer off the spotify website

cd to your download directory

% WINEPREFIX=/foo/spotify wine /foo/Spotify\ Installer.exe

% emacs ~/spotify.sh
-----------------v---CUT---v------------------------
!/bin/sh

wine /foo/spotify/.wine/drive_c/Program\ Files/Spotify/spotify.exe

-----------------^---CUT---^------------------------

% chmod +x spotify.sh

We now want to make sure local mp3 files will play:

% su
# wget http://blog.mrfjo.org/winemp3.acm.so -O /usr/lib/wine/winemp3.acm.so

This will grab an MP3 decoder that actually works and overwrite the other one. If you do not want it to overwrite, then first rename the file:

# mv /usr/lib/wine/winemp3.acm.so /usr/lib/wine/winemp3.acm.so.old

# exit

to start spotify you have two options, command line:

% ./spotify.sh &

or you can do what I did and create a quicklaunch and place it in your dock or wherever you want it. I will not go over this since every WM is different. Consult your WM on how to do this. (KDE, XFCE, FLUXBOX...)

Tuesday, January 25, 2011

Blackberry

I use a program called Barry, it has a lot of dependencies, but it works.

After compiling/installing Barry, to get it working, (the udev rules never worked for me)
Log in as root: lsusb
chmod a+rwx /dev/bus/usb//
Now Barry and all its tools will work

*** NOTE ***

you can only use one tool at a time or you will get a connection error

Friday, July 23, 2010

World of Warcraft 3.3.5 Wine 1.2 Slackware 13.1 kernel 2.6.33.4

Blizzard broke WoW with the 3.3.5 patch.. but not for long :)

Fist off, as always I install every game on its own separate WINEPREFIX. My WoW is installed to WINEPREFIX=~/.wine-wow

Installing WoW:

WINEPREFIX=~/.wine-wow sh winetricks vcrun2005

If you are like me and have enough bandwidth to supply all of Russia, then you can use the online installer.

Download the online installer

WINEPREFIX=~/.wine-wow wine /path/to/WoW/installer.exe

Go outside and play with friends or whatever, but make sure you turned your sound off on the computer. In about four hours you can come back and it will either be done or very close to done.

Ready to play.. hah, you wish!

******* BEGIN COPY BELOW LINE *********
commit f86e9325b7add7d47daf0a13683a8fddc6c1be16
Author: Frederic Weisbecker
Date: Wed Jun 30 15:09:06 2010 +0200

x86: Send a SIGTRAP for user icebp traps

Before we had a generic breakpoint layer, x86 used to send a
sigtrap for any debug event that happened in userspace,
except if it was caused by lazy dr7 switches.

Currently we only send such signal for single step or breakpoint
events.

However, there are three other kind of debug exceptions:

- debug register access detected: trigger an exception if the
next instruction touches the debug registers. We don't use
it.
- task switch, but we don't use tss.
- icebp/int01 trap. This instruction (0xf1) is undocumented and
generates an int 1 exception. Unlike single step through TF
flag, it doesn't set the single step origin of the exception
in dr6.

icebp then used to be reported in userspace using trap signals
but this have been incidentally broken with the new breakpoint
code. Reenable this. Since this is the only debug event that
doesn't set anything in dr6, this is all we have to check.

This fixes a regression in Wine where World Of Warcraft got broken
as it uses this for software protection checks purposes. And
probably other apps do.

Reported-and-tested-by: Alexandre Julliard
Signed-off-by: Frederic Weisbecker
Cc: Ingo Molnar
Cc: H. Peter Anvin
Cc: Thomas Gleixner
Cc: Prasad

diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c
index 3339917..b1e85b0 100644
--- a/arch/x86/kernel/traps.c
+++ b/arch/x86/kernel/traps.c
@@ -529,11 +529,20 @@ asmlinkage __kprobes struct pt_regs *sync_regs(struct pt_regs *eregs)
dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code)
{
struct task_struct *tsk = current;
+ int user_icebp = 0;
unsigned long dr6;
int si_code;

get_debugreg(dr6, 6);

+ /*
+ * If dr6 has no reason to give us about the origin of this trap,
+ * then it's very likely the result of an icebp/int01 trap.
+ * User wants a sigtrap for that.
+ */
+ if (!(dr6 & ~0xffff0ff0) && user_mode(regs))
+ user_icebp = 1;
+
/* Catch kmemcheck conditions first of all! */
if ((dr6 & DR_STEP) && kmemcheck_trap(regs))
return;
@@ -575,7 +584,7 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code)
regs->flags &= ~X86_EFLAGS_TF;
}
si_code = get_si_code(tsk->thread.debugreg6);
- if (tsk->thread.debugreg6 & (DR_STEP | DR_TRAP_BITS))
+ if (tsk->thread.debugreg6 & (DR_STEP | DR_TRAP_BITS) || user_icebp)
send_sigtrap(tsk, regs, error_code, si_code);
preempt_conditional_cli(regs);
******* END COPY **************************

Save file as 2.6.33.diff or whatever .diff I can care less.

Patch your kernel, compile, apply, reboot

Since I am on Slackware I follow this guild for kernel compiling:

http://blog.tpa.me.uk/slackware-kernel-compile-guide/

After that is done (time depends on your processor)

login as user

emacs ~/wow.sh

#!/bin/sh
WINEPREFIX=/home/pegasus/.wine-wow/ wine "c:\Program Files\World of Warcraft\Wow.exe" -opengl

chmod +x ~/wow.sh

make a menu-item that points to wow.sh if your WM already created a link, delete it and run this one, you will most likely want/need the -opengl switch

WINEPREFIX=~/.wine-wow winecfg

make sure you are in windows xp, click on the Audio tab, make sure ALSA is selected and also select OSS (I had to do this to get sound to work, some do not, so troubleshoot to see if this works)

If all went well, your 8 hours of installing WoW and compiling your kernel (I do hope you compiled a custom and didn't JUST apply the patch) enables you to now play WoW on *nix with Wine!!!!!

(My main is a lvl 80 Gnome Warlock Europe Server Saurfang, name kamii) challenge me to a duel, if you dare, but tell me you saw this message and lets duel *nix style, then we can join a group together and pwn some Horde!!!!

****IF you have installed via the online installer, the installer files are still on your computer inside the wow WINEPREFIX. I forget where exactly, but search around and either burn them to some DVD's or delete it, because its like 20 gigs or something. Also, if you had problems with WoW updating itself with one of the updates (I had this issue) use google and try to find that update that isn't working and manually apply it, then let WoW do the rest. To save space when all updates have finished, delete them, because you do not need them anymore****

CURSE CLIENT

Want some addons in WoW? So do I, curse client works in Wine.. but don't get version 4, it wants/needs .net and doesn't work in wine, but we don't care you can still download and use version 3.

I installed my Curse Client in the same WINEPREFIX as WoW.

WINEPREFIX=~/.wine-wow wine /path/to/curse.exe

ie6, .net 2.0 is required for this to work

removepkg ttf-indic-fonts-0.4.7.4-noarch-1 (version may have changed so use pkgtool)

emacs /usr/share/fonts/TTF/fonts.dir

Search for string Samyak

Remove that line log out, log back in (don't just log out of X)

WINEPREFIX=~/.wine-wow/ winetricks ie6 corefonts fontfix dotnet20

When its done installing in 2.5 seconds you can load it up and start installing your WoW addons, or updating the ones you already have!

Sims 3 + Wold Adventures under Wine without .net

I am using Wine 1.2 with a fallout 3 patch for my NVIDIA Graphics Card.

Slackware 13.1 custom kernel 2.6.33.4-smp-WoW (-WoW indicates it was patched for World of Warcraft 3.3.5)

First, I ALWAYS install each and every game/program in its own WINEPREFIX. Why? Because if we all know how horrible Windoze is and how easy a *doze environment can/will become corrupt. So its better to lose just one program than EVERYTHING. So how do you install something under its own WINEPREFIX? Easy!

WINEPREFIX=~/.wine-prefixname

Installing Sims 3:

I am assuming you have already installed wine 1.2 or later (right now 1.2 is the latest) and I am assuming you have also installed cabextract (*nix package) and winetricks. If not. Use google.

WINEPREFIX=~/.wine-sims winetricks vcrun2005sp1 d3dx9

Insert your Sims 3 CD

WINEPREFIX=~/.wine-sims wine /mnt/point/to/sims3/cd/Autorun.exe

This will start the Sims 3 install to your .wine-sims prefix (If for some reason when you put the CD in, it started the Autorun.exe file, DO NOT CLICK INSTALL!! IT WILL NOT INSTALL TO YOUR ~/.wine-sims PREFIX!!!!

Now that Sims 3 has installed, DO NOT LET IT INSTALL THE AUTO UPDATER (it requires .net and we don't want that on *nix)

Now you will need to upgrade your Sims 3 to 1.10.6

The best way to do this is to download the patches off the EA.games website.

***These patches are region specific, so make sure you go to the EA website for your region. unsure what region you are in, there are also worldwide patches, which makes me wonder why they made region patches at all, don't ask me, ask EA Games***

Now that you are patched to 1.10.6 (when you install the patches make sure you do it with WINEPREFIX=~/.wine-sims wine /location/and/name/of/patch.exe

Insert the World Adventures CD and do the same thing you did with the Sims cd

WINEPREFIX=~/.wine-sims wine /location/of/cd/Autorun.exe

All done? Click no again for the auto updater.

Go online again, and grab all the patches for World Adventures and install those the same way as the last time. Now you are upto date.

Now... how do you launch it?

Depending on your window manager, you may or may not have a menu item created.

emacs ~/sims.sh

#!/bin/sh
WINEPREFIX=~/.wine-sims/ wine ~/.wine-sims/drive_c/Program\ Files/Electronic\ Arts/The\ Sims\ 3/Game/Bin/TS3.exe

chmod +x sims.sh

create a menu-item in your WM that points to ~/sims.sh

click on it to make sure it works. Let sims load up, and go ahead and create a new world inside sims 3

now exit the game

Sims 3 now created a ~/Electronic Arts directory this is where all your saved data and stuff is.

If you want to add mods and user packages you need to make those directories yourself:

mkdir ~/.wine-sims/drive_c/Program Files/Electronic Arts/The Sims 3/Mods

mkdir ~/.wine-sims/drive_c/Program Files/Electronic Arts/The Sims 3/Mods/Packages

add any and all packages you want in the Packages directory, relaunch the game and have fun with Sims 3 in Wine without .net! You will need to manually check ea.games website for future updates and patches because there is no auto-updater running, but who wants .net running anyway?

NFS with Slackintosh as host

I am using Slackintosh 12.1 as my host machine and connecting a 1TB external ext2 fs HDD as my shared nfs drive.

This one took hours and hours and lots of time on ##slackware channel with a lot of friendly people to help me out. I will not post their names because I did not ask for permission.

login as root:

On Slackintosh (host) chmod +x /etc/rc.d/rc.nfsd

emacs /etc/exports

/shared/folder client.ip.address(rw,no_root_squash) other.client.ip.address(rw,no_root_squash)

emacs /etc/hosts.allow

portmap: client.ip.address , other.client.ip.address
lockd: client.ip.address , other.client.ip.address
rquotad: client.ip.address , other.client.ip.address
mountd: client.ip.address , other.client.ip.address
statd: client.ip.address , other.client.ip.address

emacs /etc/hosts.deny

portmap:ALL
lockd:ALL
rquotad:ALL
mountd:ALL
statd:ALL

/etc/rc.d/rc.nfsd restart

emacs /etc/fstab

/dev/??? /mnt/point fstype user,rw,auto 0 1 (Since mine is an external i have this entered. yours may not be an external, if it is already being mounted in fstab, skip this portion).

ON CLIENT MACHINES

login as root

chmod +x /etc/rc.d/rc.rpc

emacs /etc/fstab

ip.to.host:/shared/folder /mnt/point nfs rw,nfsvers=3 0 0

/etc/rc.d/rc.rpc start

mount /mnt/point

It should now be mounted and you should have rw access to that drive as user.

The chmodding we did earlier will ensure that nfs services for the host and client machines will be turned on at bootup. And the line in your client fstab ensures that nfs system will auto mount at bootup.