Monday, April 22, 2013

Samsung Galaxy Note 8 N5100 Root How To

Tech Blog - Here is how to root your Samsung Galaxy Note 8.

The Samsung Galaxy Note 8.0 is a 8-inch tablet computer designed, developed and marketed by Samsung Electronics. The tablet runs Android 4.1.2 and serves as a platform for multimedia consumption including movies, music, and web browsing. It is the second entry in the Samsung Galaxy Note tablet range, which emphasises the use of a stylus, officially named S-Pen (S standing for Samsung), as an input device for tasks such as sketching and note-taking.

Step 1 - Download Framaroot

Step 2 - Install and open Framaroot, then select Aragorn it will run the exploit and install Superuser, once done reboot your Samsung Galaxy Note 8.







































Step 3 - After rebooting check if Superuser is installed, if you want to check try downloading something like SIXAXIS compatibility checker, it will require root for this to be compatible then your done.




Saturday, April 13, 2013

Basic AIX printq howto

Tech Blog - Here is a quick printq how to.

 
Check printq status
 
# enq -e "$@"
Queue   Dev   Status    Job Files              User         PP %   Blks  Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
AIX01 @Aus READY   
AIX01: Queue: AIX01 is ready and printing
#
 
Listing print queues
 
#lsallq
AIX01
AIX02
 
 
Start printq
#qadm -U SGAIX02
 
Stop Printq
 #qadm -D QueueName
 
More printq stuff
 
http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.printergd%2Fdoc%2Fprintrgd%2Fstart_stop_queue.htm

Friday, April 12, 2013

HMC Console Howto

Tech Blog - Below is a quick how to in using HMC console.

 
Create an HMC Console Session
#mkvterm -m -p
 Sample
#mkvterm -m 570_SN0602EC -p aixp06
 
Terminate or remove existing console session
 #rmvterm -m -p
 
 Restart a server with dump
 #chsysstate -o dumprestart -r lpar -m -n
 
Shutdown Partition
#chsysstate -m -r lpar -n -o shutdown --immed
 
To activate active partition
#chsysstate -m -r lpar -n -o on -b norm -f _normal
 
You can use VT Menu to check LPAR and Server status.
#vtmenu
 
 
Thats it.

Wednesday, April 10, 2013

Installing Wicd on Linux Cent OS 6 | Wireless Network Manager

Tech Blog - Recently installed Cent OS 6 on an old laptop, but was unable to get the Network Manager to managed my wireless card, instead of playing with wpa_supplicant and iwconfig I discovered it would be easier to just install Wicd, Wicd is an open source wired and wireless network manager for Linux.

First you need to download the RPM package for Cent OS 6, you wont find Wicd in your default yum repository

#wget http://dl.fedoraproject.org/pub/epel/6/i386/wicd-gtk-1.7.0-4.el6.noarch.rpm
#wget http://dl.fedoraproject.org/pub/epel/6/i386/wicd-1.7.0-4.el6.i686.rpm
#wget http://dl.fedoraproject.org/pub/epel/6/i386/wicd-common-1.7.0-4.el6.noarch.rpm

After downloading the above files, lets install
#rpm -ivh wicd*

Once installed you can find Wicd Network Manager under Application -> Internet configure your wireless interface then connect then your done.

Tuesday, April 09, 2013

SIOCSIFFLAGS: Operation not possible due to RF-kill Solution

Tech Blog - Here is short how to on fixing an alert raised on Linux when attempting  to bring up an wireless interface using ifconfig.

Below is the problem.
# ifconfig wlan0 up
SIOCSIFFLAGS: Operation not possible due to RF-kill


To fix do rfkill command with the list switch below
# rfkill list
0: phy0: Wireless LAN
    Soft blocked: yes
    Hard blocked: yes
1: acer-wireless: Wireless LAN
    Soft blocked: yes
    Hard blocked: no

Now lets unblock the wireless LAN by doing the below command
# rfkill unblock wifi no





Now recheck the rfkill list it should show something like the one below, then you should be able to bring up the interface.
# rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: acer-wireless: Wireless LAN
    Soft blocked: no
    Hard blocked: no

Thats it.

Sunday, April 07, 2013

Install and Configure Squid Transparent Proxy on Cents OS 6

Tech Blog - A quick how to on installing squid and configuring it to work with SquidGuard or Dansguardian for web content filtering, Squid - is a proxy server and web cache, there are many thing Squid is capable off, for this how to were just doing proxy configuration that can work with Dansguardian a web content filtering software or SquidGuard a URL redirector software.

First lets install Squid using yum repository

#yum install squid.i686

Once installed we need to edit /etc/squid/squid.conf

#vi /etc/squid/squid.conf

Below is sample squid configuration file

#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
#acl localnet src 10.0.0.0/8    # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network

acl localnet src 192.168.1.0/24 # RFC1918  internal networkm replace the IP to your internal IP
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128, you can also specify the ext ip aside from the port
http_port 3128

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/spool/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320

# In my case I'm using Dansguardian hence need the entry below, otherwise comment out below entry to your server
visible_hostname something.somethingdomain.com

## Uncomment below lines if you going to use SquidGuard, in order for Squid to pass the traffic to squidguard
#url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidguard.conf
#url_rewrite_children 5

#Run the daemon as squid user and group
cache_effective_user squid
cache_effective_group squid

Save and exit once done, then start squid, if there are errors in your config files squid will not start or reload

#/etc/init.d/squid start

If squid is already running you can reload the configuration file
#squid -k reload

Once started check if port 3128 is listening on the server and go to your browser set proxy setting to the server IP running squid and port 3128.


Enjoy!


Saturday, April 06, 2013

Install Openfire Messaging server on Cent OS 6

Tech Blog - This is short how to on installing and configuring Openfire on Cent OS 6, Openfire is an instant messaging (IM) and groupchat server that uses XMPP server written in Java and licensed under the Apache License 2.0.



Below is a short list of features of Openfire;
  • Web-based administration panel
  • Plugin interface
  • Customizable
  • SSL/TLS support
  • User-friendly web interface and guided installation
  • Database connectivity
  • LDAP connectivity
  • Platform independent, pure Java
  • Full integration with Spark IM client

Now to installing, go to the below link and download Openfire for Linux, select the RPM package.


http://www.igniterealtime.org/downloads/index.jsp

Once downloaded install it by doing

#rpm -ivh openfire-3.8.1-1.i386.rpm

Once installed start Openfire by doing

#/etc/init.d/openfire start

 Then use a browser to access http://ipwhereopenfirewasinstalled:9090

You should be able to get to the setup page, the setup page is self explanatory, set up is done, you can login to the administration page and tweak it based on your requirements, such as logging, statistics, user control, and you can even install additional plugins to extend Openfire capabilities.

Once setup is done, download the Spark client on the above page for your OS of choice, or just use any mesenger client such as Pidgin that support XMPP, if user account hasn't been created on the Openfire server, you can fill up the username, password and server field and register to create the user using the client.

once done then you have a fully working IM.

 

Friday, April 05, 2013

Mounting Windows Share on Linux

Tech Blog - A quick nd dirty how to no mounting Windows share.

First we edit fstab file


 #vi /etc/fstab

Append below line, you can also use credential and put your username and password on a file.

\\192.168.1.98\Movie /win cifs user,uid=500,rw,suid,username=mugumugu,password=secretpass 0 0

Once appended

Create the mount target /win then mount the FS

#mkdir /win
#mount -a

Once done check the mount

# df -k .
Filesystem           1K-blocks      Used Available Use% Mounted on
\\\\192.168.1.98\\Movie                     488383484 436233244  52150240  90% /win

Thats it.

Thursday, April 04, 2013

Installing and Configuring Bind DNS | Nameserver on Cent OS

Tech Blog - This is a short how to on setting up your own Domain Name Server for Cent OS 6, configuration should generally also applied to bind named package installed on other Linux flavour.


First we install bind using yum.

yum install -y bind.i686 bind-chroot.i686 

Once installed we edit named.conf

vi /etc/named.conf

Below is a sample configuration of named.conf, change IPs that applies to your network

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
        directory "/var/named";
              dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";

        dnssec-enable no;
        dnssec-validation no;
        dnssec-lookaside auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic";

//forwarders - for external dns queries, lets use opendns's IP or Router or ISP IP

       forwarders { 208.67.222.222; 208.67.220.220; 111.68.59.69; 192.168.1.1; };
        forward first;
        allow-transfer {
                                208.67.222.222;
                                208.67.220.220;
                                111.68.59.69;
                                192.168.1.1;
                                localhost;
                        };
//Change IP to your networks IP, Only allow queries from you internal network                 allow-recursion { 192.168.1.0/24; localhost; };
};
//for logging useful to check if something is wrong with your configuration, specially during initial statup

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};

//Your domains zone, see creting zone
zone "eondynamics.com" {
        type master;
        file "/var/named/data/eondynamics.com.zone";
};
//for reverse lookup
zone "1.168.192.in-addr.arpa" {
        type master;
        file "/var/named/data/1.168.192.zone";
};

After editing named.conf, let us now our zones for forward and reverse lookup

vi  /var/named/data/eondynamics.com.zone

Below is a sample zone

$TTL 3D
@    IN    SOA    eondynamics.com. ns1.eondyanmics.com.(
            9989    ; Serial
            8H    ; Refresh
            2H    ; Retry
            4W    ; Expire
            1D )    ; Minimum
        NS    router.eondynamics.com.
;@    IN    MX    10 mail.eondynamics.com.

ns1.eondynamics.com.    A    192.168.1.181
router                  A       192.168.1.1
desktop12               A       192.168.1.98

Now to setup for reverse lookup


vi /var/named/data/1.168.192.zone
Below is a sample entry
$TTL 3D
@    IN    SOA    router.eondynamics.com. ns1.eondyanmics.com.(
            9989    ; Serial
            8H    ; Refresh
            2H    ; Retry
            4W    ; Expire
            1D )    ; Minimum
1.168.192.in-addr.arpa. IN        NS    router.eondynamics.com.

181 PTR ns1.eondynamics.com.
1   PTR router.eondynamics.com.
98  PTR desktop12.eondynamics.com.








Once done let start named

#/etc/init.d/named start

then point a workstation to your DNS and see if your DNS is working

# nslookup desktop12
Server:        192.168.1.181
Address:    192.168.1.181#53

Name:    desktop12.eondynamics.com
Address: 192.168.1.98
# dig eondynamics.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> eondynamics.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- 23028="" id:="" noerror="" opcode:="" query="" span="" status:="">
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;eondynamics.com.        IN    A

;; AUTHORITY SECTION:
eondynamics.com.    86400    IN    SOA    eondynamics.com. ns1.eondyanmics.com. 9989 28800 7200 2419200 86400

;; Query time: 0 msec
;; SERVER: 192.168.1.181#53(192.168.1.181)
;; WHEN: Tue Apr  2 11:26:01 2013
;; MSG SIZE  rcvd: 85


Then your done.

Wednesday, April 03, 2013

Setting up DHCP server on Linux | Cent OS 6

Tech Blog - Here is a quick how to setting up DHCP service on a Linux box, this is done on a Cent OS 6 installation, but configuration should apply to other flavours as well.


First we install the dhcpd package from the yum repository

yum -y install dhcp.i686

Once done we edit the configuration file  dhcpd.conf in /etc/dhcp, below configuration will assign IP range 192.168.1.142 to 169, to any client requesting IP it will also assign a fixed/static address to host desktop12 with the MAC address C8:60:00:D0:69:5F.

vi /etc/dhcp/dhcpd.conf
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#   see 'man 5 dhcpd.conf'
#
ddns-update-style ad-hoc;
default-lease-time 12000;
max-lease-time 92000;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name "secretdomain.com";
option domain-name-servers 192.168.1.181;

subnet 192.168.1.0 netmask 255.255.255.0 {
#   range 192.168.1.40 192.168.1.64;
#   range 192.168.1.141 192.168.1.200;
   range 192.168.1.142 192.168.1.169;

}

use-host-decl-names on;
subnet 192.168.1.0 netmask 255.255.255.0 {
        group {
                next-server 192.168.1.181;
                filename "linux/pxelinux.0";
        }
}

# Desktop:
   host desktop12 {
   hardware ethernet C8:60:00:D0:69:5F;
   fixed-address 192.168.1.98;
}

Now we start the DHCP service.

#/etc/init.d/dhcp start 

Then were done.

 



Tuesday, April 02, 2013

Getting client MAC Address Remotely on Linux

Tech Blog - This is a simple way of getting client MAC address remotely on a Linux machine provided you know the client IP address, this is very useful specially when setting up fixed addresses on dhcpd.conf, wherein you want to map static IP address to MAC address.

First we install nmap from the yum repository, if your using Cent OS | RHEL | Fedora, in may case I am using Cent OS 6.

yum install nmap.i686

After nmap has been installed, use the command below to find out the mac address mapped to the IP.

# nmap -sP 192.168.1.98

Starting Nmap 6.25 ( http://nmap.org ) at 2013-04-01 09:50 PHT
Nmap scan report for desktop12 (192.168.1.98)
Host is up (0.00016s latency).
MAC Address: C8:60:00:D0:69:5F (Asustek Computer)
Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds

If you have no idea what the client IP is you can also use nbtscan if the client are Windows machine to find out any useful information.

# nbtscan -v -s : 192.168.1.0/24
192.168.1.0    Sendto failed: Permission denied
192.168.1.98:WORKGROUP      �:00G
192.168.1.98:PCD  �:00U
192.168.1.98:PCD  �:20U
192.168.1.98:WORKGROUP      �:1eG
192.168.1.98:WORKGROUP      �:1dU
192.168.1.98: __MSBROWSE__ �:01G
192.168.1.98:MAC:c8-60-00-d0-69-5f
*** stack smashing detected ***: nbtscan terminated

If nbtscan is not installed, just do a search on your yum repository and install the package.

Monday, April 01, 2013

Installing Adobe PDF reader on Linux | Cent OS 6

Tech Blog - A quick how to on installing Adobe PDF reader on Linux, using yum repository on Cent OS 6.

First Lets install the Linux repository for Adobe Reader
# rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
Retrieving http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
warning: /var/tmp/rpm-tmp.azsklt: Header V3 DSA/SHA1 Signature, key ID f6777c67: NOKEY
Preparing...                ########################################### [100%]
   1:adobe-release-i386     ########################################### [100%]

Then we import the key
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Then we search the yum repository for pdf, you shoudl get some result like below
# yum search pdf

============================================ N/S Matched: pdf ============================================
AdobeReader_chs.i486 : Adobe Reader for Linux。查看、导览和打印 PDF 文档的应用程序。
AdobeReader_cht.i486 : Adobe Reader for Linux。檢視、導覽和列印 PDF 文件的應用程式。
AdobeReader_dan.i486 : Adobe Reader til Linux. Et program, der kan bruges til navigation i samt visning og
                     : udskrivning af PDF-dokumenter.
AdobeReader_deu.i486 : Adobe Reader - die ideale Anwendung, um PDF-Dateien anzuzeigen, zu drucken oder
                     : gemeinsam daran zu arbeiten.
AdobeReader_enu.i486 : Adobe Reader, an application to easily view, print and collaborate on PDF files.
AdobeReader_esp.i486 : Adobe Reader para Linux. Una aplicación que permite ver e imprimir documentos PDF,
                     : así como desplazarse por ellos.
AdobeReader_fra.i486 : Adobe Reader est une application permettant d'afficher et d'imprimer des fichiers
                     : PDF en toute simplicité et d'y collaborer facilement.
AdobeReader_ita.i486 : Adobe Reader per Linux. Un'applicazione che consente di visualizzare e stampare
                     : documenti PDF.
AdobeReader_jpn.i486 : Adobe Reader は PDF ファイルを簡単に表示、印刷することができ、PDF
                     : 上でコラボレーションが可能なアプリケーションです。
AdobeReader_kor.i486 : Linux용 Adobe Reader입니다. PDF 문서를 보고 탐색하고 인쇄할 수 있는 응용
                     : 프로그램입니다.
AdobeReader_nld.i486 : Adobe Reader voor Linux. Een toepassing waarmee u PDF-documenten kunt weergeven en
                     : afdrukken en in PDF-documenten kunt navigeren.
AdobeReader_nor.i486 : Adobe Reader for Linux. Et program som kan brukes til å vise, navigere i og skrive
                     : ut PDF-dokumenter.
AdobeReader_ptb.i486 : Com o aplicativo Adobe Reader para Linux, é possível visualizar, navegar e imprimir
                     : documentos PDF.
AdobeReader_suo.i486 : Adobe Reader Linux-käyttöjärjestelmälle. Sovellus, jolla voi näyttää, selata ja
                     : tulostaa PDF-dokumentteja.
AdobeReader_sve.i486 : Adobe Reader för Linux. Ett program som du kan visa, navigera och skriva ut
                     : PDF-dokument med.


Now we install English Adobe reader

# yum install AdobeReader_enu.i486
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
 * base: mirror.upsi.edu.my
 * extras: mirrors.hostemo.com
 * rpmforge: ftp.riken.jp
 * rpmforge-extras: ftp.riken.jp
 * updates: mirrors.hostemo.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package AdobeReader_enu.i486 0:9.5.4-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================
 Package                      Arch              Version               Repository                     Size
==========================================================================================================
Installing:
 AdobeReader_enu              i486              9.5.4-1               adobe-linux-i386               57 M

Transaction Summary
==========================================================================================================
Install       1 Package(s)

Total download size: 57 M
Installed size: 135 M
Is this ok [y/N]: y
Downloading Packages:
AdbeRdr9.5.4-1_i486linux_enu.rpm                                                   |  57 MB     15:21    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : AdobeReader_enu-9.5.4-1.i486                                                           1/1
  Verifying  : AdobeReader_enu-9.5.4-1.i486                                                           1/1

Installed:
  AdobeReader_enu.i486 0:9.5.4-1                                                                         

Complete!

You should now be able to see Adobe Reader 9 under Applications -> Office on your Desktop.

For suggestion and concerns E-mail