Saturday, May 19, 2012

Slackware remove Samyak/Oriya

------------------------------------------------------

Please uninstall the Samyak/Oriya font, e.g. 'sudo dpkg -r ttf-oriya-fonts', then log out and

log in again. That font causes strange crashes in .net programs.

------------------------------------------------------


to remove the font package

# its part of the ttf-indic-fonts package, so we need to remove it

removepkg ttf-indic-fonts-0.4.7.4-noarch-1.txz


# There is another refernece to this font in a fonts.dir file, we need to delete that reference or it will think the font is still installed, there are two ways to do this

# run the following commands in the /usr/share/fonts directory

grep -nr samy . | sed 's@\(Samyak\)@@'

grep -nr oriy . | sed 's@\(Oriya\)@@'


**or just emacs /usr/share/fonts/TTF/fonts.dir  Search for Samyak delete that line save**


after the oriya and samyak fonts and all mentions of them are removed, log out and log back in.

Saturday, May 12, 2012

tightvnc


On Host (logged in as user):

vncserver -geometry 720x480

After you press enter, it will tell you which display it will use.  Remember that number as you need it for your guest to connect to the vncserver.

As Guest:

vncviewer ip.address.of.host:displaynumber

example:

vncviewer 123.456.1.99:1

Friday, April 27, 2012

Moon+ Reader Pro Change Book Cover


The programmer really messed things up so here is how you change the book cover

Click on "My Shelf"

Click on "All Books"  (If your book is not added, add it)

Long-Click on the book whose cover you want to change

Click on Edit Book Information

Change cover, edit the title, author, add description tags, etc.  Why it must be done in this section only?

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