Wednesday, October 30, 2013

Counter-Strike (Steam) on ArchLinux via Wine


get the required base package available at archlinux
sudo pacman -S --noconfirm wine winetricks
sudo pacman -S --noconfirm wine_gecko wine-mono q4wine
try to get "steam" installed the proper way
winetricks steam
if the above command fails the next two commands shall do the job, although you'll need to download aria2.exe (and unzip) and maybe SteamInstall.msi (if not found)

msiexec /i ~/.cache/winetricks/steam/SteamInstall.msi
wine arial32.exe /Q
now the system is ready to run Steam Client, try following script to run it (otherwise there might be some font not displaying or other issues)
#!/bin/bash
export WINEPREFIX=$HOME/.steam
export WINEDEBUG=-all
nice -n 19 wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe -no-dwrite
#####end-of-script
using it you can start your Steam Client, then it's common way as other platforms to log-in to your Steam Account and install Counter Strike or any other game you play

Sunday, August 25, 2013

yum-my ~ get your public yum-repo rolling on Google AppEngine

Wanna get your public yum repository rolling,

Get started by cloning boilerplate code...
$ git clone https://github.com/abhishekkr/gae-flat-web.git
$ cd gae-flat-web
$ mkdir -p yummy/<distro><releasever>/<basearch>

$ cp <all_my_rpms_of__distro_releasever_basearch> yummy/<distro><releasever>/<basearch>

$ createrepo yummy/<distro><releasever>/<basearch>/

now, place a file 'flat_web/yum-my-el6<or-whichever>.repo' with content 
[yum-my-<distro><releasever>-<basearch>]
name=Yum-My
baseurl=http://YOURYUMMY.appspot.com/yummy/<distro>$releasever/$basearch
enabled=1
gpgcheck=0

and can link this file on your 'flat_web/index.htm' homepage to host: $ google_appengine/appcfg.py update


have a look at my repo code @ https://github.com/abhishekkr/gae-yum-my.git

For demo, here is the one I'm hosting
http://yum-my.appspot.com/flat_web/index.htm

Saturday, August 3, 2013

woes & ways in CentOS install via USB

I've been a regular-irregular user of CentOS over time an all the times in past from what I remember installing it with CD/DVDs.

Just tried installing it  with USB and things got messy. Tried minimal, net-install and DVD iso to the level of getting tired. Everything goes well until the bootloader set-up screen comes up and then set-up goes to hell. It shows error for not founding ISO 9660 on the device. Tried un-mounting and mounting different partitions over '/mnt/isodir' and clicking 'retry' button. Nothing worked.

Either read out following links article#1 (Install from USBKey), article#2 (fix mount image error) and try the solutions/steps in there.

The install boot option from LiveCD/LiveDVD dumped on USB worked just fine for me.

Monday, April 2, 2012

set of yum repos for CentOS


I thought I'd better share my YUM REPOS list to ease most of the package availability via yum on CentOS or similar instances.
I've remove yum-priority config as that depends per person and I don't wanna influence that.


[centos-base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

[centos-updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6



[atrpms-stable]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
enable=1
gpgcheck=1



[centos-extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

[centos-plus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1



[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1

[google]
name=Google - $basearch
baseurl=http://dl.google.com/linux/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

[rbel6]
name = RBEL 6 Repo
baseurl = http://rbel.frameos.org/stable/el6/$basearch
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RBEL
gpgcheck = 1
enabled = 1

[virtualbox]
name=RHEL/CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/rhel/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc

[adobe-linux-x86_64]
name=Adobe Systems Incorporated
baseurl=http://linuxdownload.adobe.com/linux/x86_64/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux


Monday, April 4, 2011

want a shell command to Download a Package, but it has a Redirecting Link... CURL it down

One of the things happened to me several time is when I'm writing an automated script for set of utilities to get downloaded from Internet (then installed and configured) on the Linux Box, so that I don't have to go through monotonous set of boring algorithm to set-up an environment again and again.

But, one or more links in that set of packages required ain't available via Package Manager's generosity... so it's required to script it's download from any repository or remote download locations.
If it's a direct download link... the most used utility is 'wget'.

In that process several times I get stuck with download links like that we get at (superb open-source content) website similar to SourceForge.net, where even if you copy the final redirected link and paste it in your script that wouldn't work after some moments.

So, you require a shell-command/utility which can be used very easily to download the resource after following the redirected link at the time of execution... and the savior is our same old CURL.


|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

How-To Use It

+ To download a resource on your storage using 'curl'
   |=+ Command: # curl -o file_name Link_Of_Resource
   |
   |=+ Example:
#curl -o GaneshaAarti.rar http://sites.google.com/site/abhikumar1632/Ganesha_Aarti2006lowsize.rar

+ To download a resource from a redirecting link using 'curl', it gets a new switch '-L' for job
  |=+ Command: #curl -L -o file_name Link_Of_Resource
  |
  |=+ Example:  
#curl -L -o http://sourceforge.net/projects/n00brat/files/n00bRAT_v0.5beta.tar.gz/download
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

If you know the required Resource has an online svn/git/hg/bzr/* repository... and you make sure your environment has the respective repository client, then you can even go for cloning the repository instead of downloading from redirecting link... as it might need a little tweaking with change in Resource availability in website (links).

Saturday, September 18, 2010

tshark (CLI) from wireshark (GUI) {gonna sniff your packets}

there is a wonderful CLI utility tcpdump to handle packet sniffing... but there is also one similar utility with the power of Wireshark at command line known as TSHARK (if you don't know)


so, to use it you just need to install Wireshark in plain old-skool way like
#yum install wireshark
and then to start 'tshark', you need to simply run it like
#tshark
but in some cases, on running '#tshark' if it gives error like 
tshark: error while loading shared libraries: libsmi.so.2: cannot open shared object file: No such file or directory

so, you just need to install one more library, which gets failed to install automatically still required
#yum install libsmi
and then run '#tshark' smoothly

Wednesday, September 1, 2010

{Deploy} Installing FreeSWITCH (VoIP) on CentOS, Fedora, RedHat

This HowTo can be downloaded at http://www.slideshare.net/AbhishekKr/free-switch-cent-os


FreeSWITCH on RedHat, Fedora, CentOS

To Install 'FreeSWITCH' on CentOS/RedHat/Fedora
=============================================================
============================================================= 
Execute following commands at shell: 

___________________________________________
Installing Dependencies {Require Internet} 
===========================================
yum -y install autoconf automake libtool gcc-c++ ncurses-devel 
yum -y make expat-devel zlib zlib-devel libjpeg-devel unixODBC- devel 
yum -y openssl-devel gnutls-devel libogg-devel libvorbis-devel 
yum -y curl-devel libtiff-devel libjpeg-devel

___________________________________________
Download/Extract FreeSWITCH Source =========================================== 
wget http://files.freeswitch.org/freeswitch-1.0.6.tar.gz tar -zxvf freeswitch-1.0.6.tar.gz
___________________________________________ 
Optional {to add OpenZAP support to FreeSWITCH} 
=========================================== 
echo "../../libs/openzap/mod_openzap" >> freeswitch-1.0.6/modules.conf 

___________________________________________ 
Compiling/Installing FreeSWITCH 
=========================================== 
cd freeswitch-1.0.6 
./configure 
make install 
make cd-sounds-install 
make cd-moh-install 
make uhd-sounds-install 
make uhd-moh-install 
make hd-sounds-install 
make hd-moh-install 
make sounds-install 
make moh-install 
make mod_portaudio-install 
make samples 

___________________________________________ 
create symlink for main binaries, EZ-ACCESS 
=========================================== 
ln -s /usr/local/freeswitch/bin/freeswitch /usr/local/bin/freeswitch 
ln -s /usr/local/freeswitch/bin/fs_cli /usr/local/bin/fs_cli

__________________________________________ 
Post Installation =========================================== 
to launch app 
#freeswitch 
to launch app at background (no console)
#freeswitch -nc 
to stop a running freeswitch instance 
[] running foreground: 
> ... {i.e. 3 periods} 
[] running background: 
# freeswitch -stop 
to access cmd-line of any FreeSWITCH server 
#fs_cli 
try commands like 'version','help' to exit use 'fsctl shutdown' or '...' 
__________________________________________