Friday, June 28, 2013

Gcstar export for mobile

Gcstar for mobile:
gcstar -x -e External --exportprefs "zip=>1" -o /home/jocko/gcstar_backup/130628_console_games.gcz /home/jocko/GCStar/console_games.gcs
load to dropbox and download on mobile device!

Other Important Settings

alias:
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias rsyncr='sudo rsync -avzhP'
alias rsynct='sudo rsync -avzhPn'
these are found in the following areas:

~/.bashrc:
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'

~/.bash_aliases:
alias rsyncr='sudo rsync -avzhP'
alias rsynct='sudo rsync -avzhPn'
history:

echo $HISTFILE

-need to complete-

erase history:
history -c


Quick Rsync

Most Important, the rsync!
this is done on the old install (ULL 10.04) so I can restore my profile to a separate location on LMDE and play.

rsync commands with dry run and log:
#be sure destination directory has been created/exists

rsync -avzhPn --exclude-from 'exclude-list.txt' /home/jocko/ /media/MyPassport/jubuntu_130627/jocko > /home/jocko/rsync_dryrun-130627.txt
exclude-list.txt:
/.gvfs
/Dropbox
run and log:
rsync -avzhP --exclude-from 'exclude-list.txt' /home/jocko/ /media/MyPassport/jubuntu_130627/jocko > /home/jocko/rsync_run-130627.txt
remember:  spaces must be handled properly!
example - if 'My Book' is drive name, then:
/media/My\ Book/
/media/FreeAgent\ GoFlex\ Drive/

Wednesday, June 26, 2013

Steam on LMDE

steam:
note the following were performed as part of my GPU install so be sure to run if not already completed:
dpkg --add-architecture i386
apt-get update

useful resources:
http://forums.linuxmint.com/viewtopic.php?f=201&t=129351
http://aspensmonster.com/2013/01/19/updated-procedures-for-installing-steam-for-linux-beta-on-debian-gnulinux-testingwheezy/
http://askubuntu.com/questions/260813/trying-to-install-steam-error-you-are-missing-the-following-32-bit-libraries-a

file: https://github.com/GhostSquad57/Steam-Installer-for-Wheezy/blob/master/steam-debian_1.0.0.39-9-2_all.deb?raw=true

<insert install instructions here>

apt-get -f install
apt-get install ia32-libs
ln -s /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1 /usr/li
error: OpenGL GLX context is not using direct rendering, which may cause performance problems

Search:
http://packages.debian.org/wheezy/libgl1-nvidia-glx-ia32
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676723
http://packages.debian.org/sid/libgl1-nvidia-glx

Solution:
https://github.com/ValveSoftware/steam-for-linux/issues/463
http://twolife.be/debian/todo/xvmc/
sudo find /usr/ -name libGL.so.1

/usr/lib/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so.1
/usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
/usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1
/usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1

dpkg -l | grep libgl1-nvidia-glx:i386

ii  libgl1-nvidia-glx-ia32                        304.48-1                             amd64        please switch to multiarch libgl1-nvidia-glx:i386

dpkg -i libxvmc1_1.0.7-1+multiarch_amd64.debdpkg -i libxvmc1_1.0.7-1+multiarch_i386.debapt-get install libasound2-plugins:i386apt-get install libgl1-nvidia-glx:i386

dpkg -l | grep libgl1-nvidia-glx:i386


ii  libgl1-nvidia-glx:i386                        304.48-1                             i386         NVIDIA binary OpenGL libraries

sudo find /usr/ -name libGL.so.1



/usr/lib/i386-linux-gnu/libGL.so.1
/usr/lib/i386-linux-gnu/nvidia/libGL.so.1
/usr/lib/i386-linux-gnu/nvidia/current/libGL.so.1
/usr/lib/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so.1
/usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
/usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1
/usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1

rm /usr/lib/libGL.so.1
ln -s /usr/lib/i386-linux-gnu/nvidia/current/libGL.so.1 /usr/lib
No more error starting Steam!
Able to login, so SUCCESS!

Applications Installation Part 1

So let's install things:
chromium
gcstar
dropbox
vlc
steam (separate post)
truecrypt
playon linux
keepass and mono for windows
notepad++

First, some HowTo info:
#how to install deb packages
dpkg -i package.deb

#how to remove deb packages
dpkg -r package.deb

#how to reconfigure deb packages
dpkg-reconfigure package.deb

#how to untar
#x = eXtract, this indicated an extraction c = create to create )
#v = verbose (optional) the files with relative locations will be displayed.
#z = gzip-ped; j = bzip2-zipped
#f = from/to file ... (what is next after the f is the archive file)
tar xvzf package.tar.gz

Now, the Goods:
chromium:
sudo aptitude install chromium
done!

gcstar:
First Attempt:
file: http://wiki.gcstar.org/en/Install
tar zxf gcstar-1.7.0.tar.gz
too many missing dependencies this way, so let's try another.

Second Attempt:
aptitude install gcstar
done!

dropbox:
First Attempt:
https://www.dropbox.com/install?os=lnx
64-bit version
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
~/.dropbox-dist/dropboxd
https://dl.dropboxusercontent.com/u/17/dropbox-lnx.x86_64-2.2.3.tar.gz
seems to only work if i run from terminal; doesn't auto start, so lets try something else.

Second Attempt:
aptitude install nemo-dropbox
done!

vlc:
aptitude install vlc
done!

steam:
separate post

truecrypt:
http://www.truecrypt.org/downloads
tar xvzf truecrypt-7.1a-linux-x64.tar.gzsh truecrypt-7.1a-setup-x64
done!

keepass:

aptitude install keepass2
The following NEW packages will be installed:
  keepass2 libmono-accessibility4.0-cil{a} libmono-system-windows-forms4.0-cil{a} libmono-webbrowser4.0-cil{a}


really only need the mono files:

Get: 1 http://debian.linuxmint.com/latest/ testing/main libmono-accessibility4.0-cil all 2.10.8.1-5 [20.5 kB]
Get: 2 http://debian.linuxmint.com/latest/ testing/main libmono-webbrowser4.0-cil all 2.10.8.1-5 [77.3 kB]
Get: 3 http://debian.linuxmint.com/latest/ testing/main libmono-system-windows-forms4.0-cil all 2.10.8.1-5 [1,077 kB]
Get: 4 http://debian.linuxmint.com/latest/ testing/main keepass2 all 2.19+dfsg-2 [929 kB]
apt-get remove keepass2
leave the other 4 files installed

download favicon.ico from keepass.info and rename to favicon.png
download KeePass-2.22.zip
extract to ~/Apps/KeePass-2.22

create new launcher:
type: application
name: keepass2
command: mono ~/Apps/KeePass-2.22/KeePass.exe
comment: Keepass 2
change icon to keepass.png


done!

playonlinux:
http://www.playonlinux.com/en/download.html
aptitude install playonlinux
aptitude install xterm
aptitude install ttf-mscorefonts-installer
#If the value for direct rendering is yes then the acceleration is enabled, if the value is a number is not activated.
glxinfo | grep "direct rendering"
Yes

Running but says new version available.
dpkg -i PlayOnLinux_4.2.1.deb
Done!

notepad++:
latest package download
installed in wine 1.6rc3 via playonlinux 

Monday, June 24, 2013

Installing nVidia GLX on LMDE

nVidia GLX Install
First Attempt:
Menu > Preferences > Device Driver Manager
under Graphics, current driver xserver-xorg-video-nouveau 1:1.0.1-4 Noveau display driver
choose nvidia-glx 304.48-1 Nvidia display driver (recommended)
failed!

Second Attempt:
lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation G86M [Quadro NVS 135M] (rev a1)

lspci -vnnn | grep VGA
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G86M [Quadro NVS 135M] [10de:042b] (rev a1) (prog-if 00 [VGA controller])

lspci -vnnn | grep 042b
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G86M [Quadro NVS 135M] [10de:042b] (rev a1) (prog-if 00 [VGA controller])

dpkg --add-architecture i386
apt-get update
aptitude install nvidia-glx
aptitude install nvidia-xconfig
aptitude install nvidia-settings nvidia-kernel-dkms
aptitude install nvidia-glx-ia32
nvidia-xconfig --allow-glx-with-composite
nvidia-xconfig
modprobe -r nvidia
modprobe nvidia
apt-get --purge remove xserver-xorg-video-nouveau libdrm-nouveau1a 
reboot

check nvidia settings via terminal:
nvidia-settings

SUCESS!

Sunday, June 23, 2013

Broadcom Wireless --> GO!

So let's tackle wireless first.  Then we'll do the video drivers and then move on to other progs.

Wireless shows via terminal command:
lspci -vvnn | grep 14e4
Broadcom corporation BCM4312 802.11b/g LP-PHY [14e4:4315]

This http://forums.linuxmint.com/viewtopic.php?f=141&t=57056 and http://community.linuxmint.com/tutorial/view/218 appear to be super helpful.

EDIT: I updated the sources the first time I installed but this wasn't necessary as it seemed to want to update everything to Debian afterwards, so I skipped it the second time I did a clean install of LMDE but I'm leaving this for reference purposes.

Update software sources and add the following:

deb http://ftp.us.debian.org/debian testing main contrib non-free

(Commands must be run as sudo)

#Update the list of available packages. Install the module-assistant and wireless-tools packages
apt-get update
aptitude install module-assistant wireless-tools

#Build and install a broadcom-sta-modules-* package for your system, using Module-Assistant; The "a-i" stands for "auto-install," meaning "download the module source, compile it for the current kernel and install it".
m-a a-i broadcom-sta

confirm brcm80211 is blacklisted:
less /etc/modprobe.d/broadcom-sta-common.conf | grep brcm80211
blacklist brcm80211

if an entry doesn't exist do the following (may require sudo su):

#Blacklist the brcm80211 module, to prevent it conflicting for support of BCM4313, BCM43224 and BCM43225 devices
echo blacklist brcm80211 >> /etc/modprobe.d/broadcom-sta-common.conf

#Rebuild your initial ramdisk, to blacklist modules defined at /etc/modprobe.d/broadcom-sta-common.conf within initramfs
update-initramfs -u -k $(uname -r)

#Unload conflicting modules
modprobe -r b44 b43 b43legacy ssb brcm80211

(this results in error for me but doesn't seem to affect the wifi from working)
FATAL: Module brcm80211 not found.

#Load the wl module
modprobe wl

#Verify your device has an available interface
iwconfig

lo
no wireless extensions.
eth1
no wireless extensions.
wlan0
IEEE 802.11bg   ESSID:""
Mode:Managed   Frequency:2.412 GHz   Access Point: Not-Associated
Bit Rate:54 Mb/s     Tx-Power:24 dBm
Retry min limit:7     RTS thr:off     Fragment thr:off
Power Managementmode:All packets received
Link Quality=5/5   Signal level=0 dBm   Noise level=0 dBm
Rx invalid nwid:0   Rx invalid crypt:0   Rx invalid frag:0
Tx excessive retries:0   Invalid misc:0     Missed beacon:0

SUCESS!

#Configure your wireless interface as appropriate.
connected to my wifi network and the net is up

Ok, wireless done.  Now time for the video drivers.