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 '...' 
__________________________________________

Tuesday, August 10, 2010

[PERL CPAN] Missing Perl Module... install by CPAN

it's an old thing still several users are unaware, so a quickie howto for all of them

[PERL CPAN] whenever any perl module found missing

CPAN is Comprehensive Perl Archive Network, a cool place to install Perl Modules instead of keep searching
---------------------------------------------------

you can simple install it as
"perl -MCPAN -e "install "
e.g.
#perl -MCPAN -e "install Net::CIDR"

if it's giving error and asking a force install, most probably a depending module isn't present
so install that first, or if you still wanna install it do a FORCE install
e.g.
#perl -MCPAN -e "CPAN::Shell->force(qw(install Net::CIDR))"

Tuesday, August 3, 2010

{Deploy} Installing RED5 Server on CentOS, Fedora, RedHat

Installing RED5 Server on CentOS, Fedora, RedHat

it's an Open Source Flash Server written in Java for Multimedia Streaming Web/Network Application

[] it requires Java 1.6 to be pre-installed
#yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
#yum -y install java-1.6.0-openjdk-javadoc java-1.6.0-openjdk-src

[] Setup 'Apache ANT', required to build Red5
#cd /usr/src
#wget http://apache.sunsite.ualberta.ca/ant/binaries/apache-ant-1.8.1-bin.tar.bz2
#tar jxvf apache-ant-1.8.1-bin.tar.bz2
#mv apache-ant-* /usr/local/ant

[] Settimg up ENV variables as per required
#export ANT_HOME=/usr/local/ant
#export JAVA_HOME=/usr/lib/jvm/java
#export PATH=$PATH:/usr/local/ant/bin

[] Download & Install RED5
#cd /usr/src
#svn co http://red5.googlecode.com/svn/java/server/trunk red5server
#mv red5server /usr/local/
#cd /usr/local/red5server
#ant prepare
#ant dist
#cp -r dist/conf ./
#./red5.sh

[] To use RED5 Server
- checking if it works
    browse 'http://RED5-Server-IP:5080/'
- to install your RED5 Server based applications
    copy them to dir '/usr/local/red5server/webappz'
    suppose you copy them to '/usr/local/red5server/webappz/myFlash'
    so they will be accessible at 'http://RED5-Server-IP:5080/myFlash/'
- to make it run at port 80 like any HTTP Server
    edit '/usr/local/red5/conf/red5-origin.xml' and '/usr/local/red5/conf/red5.properties'
    by replacing all instances of Port# 5080 by simply Port# 80

{RPM} unRAR in CentOS, Fedora, RedHat

i found CentOS was a bit rude to UnRAR the rar files, and even in 'yum' installing the unrar {at least for me}... so here is rpm way for it... if you are also facing same problem

[] Downloading the suitable RPM {you can download from any location}
wget http://dag.wieers.com/packages/unrar/unrar-3.6.2-1.el4.rf.i386.rpm

[] Installing RPM
rpm -Uvh unrar-3.6.2-1.el4.rf.i386.rpm


[] Using
- to extract RAR files in current dir
unrar e rarfile.rar

- to extract RAR files with Pathname
unrar x rarfile.rar

Friday, May 8, 2009

yum install XINE [free multimedia player]

yum install XINE
[free multimedia player]

It plays back CDs, DVDs, and VCDs. It also decodes multimedia files like AVI, MOV, WMV, and MP3 from local disk drives, and displays multimedia streamed over the Internet.
yum install xine xine-lib xine-skins xine-lib-extras-nonfree 

yum install MPLAYER [one of best multi-codec player for linux]

yum install MPLAYER 

[one of best multi-codec player for linux]

yum install mplayer mplayer-fonts mplayer-gui



Tuesday, November 11, 2008

nmap (Network Mapper)

insatlling nmap (Network Mapper) over Linux machines using YUM

> at root permissions, sudo

> Installing nmap run command at shell 
                 "yum install nmap"

> Installing nmap frontend run command at shell 
                "yum install nmap nmap-frontend"


This will install nmap on your server, to check it use the command:

nmap localhost


Wireshark (Etheral)

to install Wirshark using YUM installer
open source network capture/analysis tool

> Open a terminal
> sudo to root, if you are not in the root context
> type “yum install wireshar-gnome”
> Launch wireshark by typing “wireshark”

Sunday, June 8, 2008

RAR-UNRAR wid GUI

to unstall WinRAR kind of software for your *.rar files in Linux, shell execute

yum install unrar

it will do it all

Wednesday, June 4, 2008

VLC media player [yum install]

VLC media player [yum install]

$> su
password:
//enter root password
#> rpm -ivh http://rpm.livna.org/livna-release-8.rpm
//the italicized number above should be Fedora Core # like its 8 for Core8
#> yum install vlc
#> yum install python-vlc mozilla-vlc
(optional)

Tuesday, June 3, 2008

Yellow Dog Updater, Modified [YUM]


The Yellow dog Updater, Modified (YUM) is an open source command line package management utility for RPM-enabled Linux O.S..
It was developed by Seth Vidal and a group of volunteer programmers, and is currently maintained as part of Duke's University at DUKE project. Though yum is a command line utility, several other tools provide GUI to yum, among them pup, pirut, and yumex. Seth Vidal now works for Red Hat and a number of other Red Hat programmers are involved in the development of yum.