Wednesday, July 1, 2015

CHMOD / UMASK /RWX 755

Linux Desktop is already popular now a day, because of this even me I  always rely using GUI "Gooey" meaning mice instead using CLI or linux terminal..
But at this time i need to go back to  my CLI bash Shell to do things as a system 
administrator of my linux system.
Here's a deeper understanding about the chmod and umask for file access privileged..(file attribution)















source:  http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html


Sunday, June 28, 2015

The Long Time Distro

As what I've used several Linux distributions, a times come that i need to migrate to a stable for my server that will run for a long period of years runnning  services like APACHE, MYSQL, SAMBA, BIND, DHCP, SSH, SQUID, etc......................
Image below shows about the LTS (Long Time Support) from Ubuntu.
LTR - Long Time Release as what we need to consider in the version of Linux kernel that we used in every Linux that we installed. In my final point of view we know already how to select the distro for our servers or even desktop.

Tuesday, June 23, 2015

Linux JOB ReqJBOSS

First time to explore about JBOSS from Redhat Linux...
As I started to used JBOSS, this is my preparation:
My primary OS Linux Ubuntu Server 14.04 LTS purely CLI mode..

Step 1:   Download JBOSS @ SourceForge and I've downloaded JBOSS 6.0
Step 2.   Install JAVA  
Step 3.   CREATE JBOSS USER AND SET PASSWORD
      #useradd -d /home/jboss -s /bin/bash -m jboss
      #passwd jboss
Step 4.   COPY JBOSS ZIPFILE AND UNZIP
viewed using lynx -- other photos

      #cp jboss-AS.zip /home/jboss
      #cd /home.jboss
      #unzip jboss-AS.zip
Step 5.   RENAME THE FOLDER AND CHANGE OWNERSHIP
      #mv jboss6.0.Final jboss-6.0
      #chown -R jboss:jboss /home/jboss/jboss-6.0/
      #chmod -R 775 /home/jboss/jboss-6.0
       
Step 6.   SET THE JBOSS AND JAVA PATH
      #su -l jboss
      # vi .bashrc
             add the ff. lines:    export JBOSS_HOME=$HOME/jboss-6.0
                                           export JAVA_HOME=/usr/lib/jvm/java-7-oracle
     Step 7.   THE JBOSS AND LOGIN TO WEB PORTAL
      #cd jboss-6.0/bin
     #./run.sh
                access to jboss web portal using any web browser  [  http://localhost:8080]



Sunday, May 3, 2015

Bago City College - Lab Network Project

LINUX/BSD WEB CACHE SERVER(PROXY) // GIGABIT HUB//CCTV /// AUDIO MULTIMEDIA SERVER WITH 4 CHANNEL SURROUND SYSTEM , CAPABLE FOR PUBLIC INTRANET AUDIO SHARING.....

This project is a fully customized, the materials that we used is an angle bar just to create the rack for the server . (No Rack Sever frame available in our place) With the help of my students team, we're happy and proud to accomplished the cheap but very powerful school laboratory server..thanks to free software; We Love you Linux!!!

Friday, April 24, 2015

RUN YOUR OLD DESKTOP USING AUDIOPHILE

BEST AND RECOMMENDED USING YOUR OLD DESKTOP WITH MULTIPLE
AUDIO OUTPUT WITH 1 GB OF RAM.


Run Virtual Samsung S4

RUN ANDROID AS VIRTUAL USING SAMSUNG S4 EMULATION USING GENYMOTION
HOWTO:
DOWNLOAD AND INSTALL VIRTUALBOX
https://www.virtualbox.org/


DOWNLOAD   AND INSTALL GENYMOTION  
https://cloud.genymotion.com/page/launchpad/download/

sample or  command in linux terminal : /DEBIAN/UBUNTU/LINUXMINT/
cd /home/pc_name/download

chmod +x genymotion-2.2.2_x86.bin

sudo /home/pc_name/download/genymotion-2.2.2_x86.bin

sudo /home/pc_name/download/genymotion/genymotion

UPDATES: June 29, 2015 Time: 8:45 PM
      Moving genymotion location to /opt



Monday, January 19, 2015

Linux Basic Commands

Linux Basic Commands

The below commands are important and often used for more checkout the image at the bottom of the article
  • mkdir – make directories
    Usage: mkdir [OPTION] DIRECTORY…
    eg. mkdir lhn
  • ls – list directory contents
    Usage: ls [OPTION]… [FILE]…
    eg. ls, ls ­l, ls lhn
  • cd – changes directories
    Usage: cd [DIRECTORY]
    eg. cd lhn
  • pwd ­-  print name of current working directory
    Usage: pwd
  • vim – Vi Improved, a programmers text editor
    Usage: vim [OPTION] [file]…
    eg. vim lhn.txt
  • cp – copy files and directories
    Usage: cp [OPTION]… SOURCE DEST
    eg. cp sample.txt sample_copy.txt
    cp sample_copy.txt target_dir
  • mv – move (rename) files
    Usage: mv [OPTION]… SOURCE DEST
    eg. mv source.txt target_dir
    mv old.txt new.txt
  • rm ­ remove files or directories
    Usage: rm [OPTION]… FILE…
    eg. rm file1.txt , rm ­rf some_dir
  • find – search for files in a directory hierarchy
    Usage: find [OPTION] [path] [pattern]
    eg. find file1.txt, find ­name file1.txt
  • history – prints recently used commands
    Usage: history
  • cat – concatenate files and print on the standard output
    Usage: cat [OPTION] [FILE]…
    eg. cat file1.txt file2.txt
    cat ­n file1.txt
  • echo – display a line of text
    Usage: echo [OPTION] [string] …
    eg. echo I love India
    echo $HOME
  • grep ­- print lines matching a pattern
    Usage: grep [OPTION] PATTERN [FILE]…
    eg. grep ­i apple sample.txt
  •  wc ­- print the number of newlines, words, and bytes in files
    Usage: wc [OPTION]… [FILE]…
    eg.  wc file1.txt
    wc ­L file1.txt
  • sort – sort lines of text files
    Usage: sort [OPTION]… [FILE]…
    eg. sort file1.txt
    sort ­r file1.txt
  • tar – to archive a file
    Usage: tar [OPTION] DEST SOURCE
    eg. tar ­cvf /home/archive.tar /home/original
    tar ­xvf /home/archive.tar
  • kill – to kill a process(using signal mechanism)
    Usage: kill [OPTION] pid
    eg. kill ­9 2275
  • ps – report a snapshot of the current processes
    Usage: ps [OPTION]
    eg. ps,  ps ­el
  • who – show who is logged on
    Usage: who [OPTION]
    eg. who , who ­b , who ­q
  • passwd – update  a user’s authentication tokens(s)
    Usage: passwd [OPTION]
    eg. passwd
  •  su –  change user ID or become super­user
    Usage: su [OPTION] [LOGIN]
    eg. su remo, su
  • chown – change file owner and group
    Usage: chown [OPTION]… OWNER[:[GROUP]] FILE…
    eg. chown remo myfile.txt
  • chmod – change file access permissions
    Usage: chmod [OPTION] [MODE] [FILE]
    eg. chmod 744 calculate.sh
  • zip – package and compress (archive) files
    Usage: zip [OPTION] DEST SOURSE
    eg. zip original.zip original
  • unzip – list, test and extract compressed files in a ZIP archive
    Usage: unzip filename
    eg. unzip original.zi
  • ssh – SSH client (remote login program)
    “ssh is a program for logging into a remote machine and for
    executing commands on a remote machine”
    Usage: ssh [options] [user]@hostname
    eg. ssh ­X guest@10.105.11.20
  • scp – secure copy (remote file copy program)
    “scp copies files between hosts on a network”
    Usage: scp [options] [[user]@host1:file1] [[user]@host2:file2]
    eg. scp file1.txt guest@10.105.11.20:~/Desktop/
  • fdisk – partition manipulator
    eg. sudo fdisk ­l
  • mount – mount a file system
    Usage: mount ­t type device dir
    eg. mount /dev/sda5 /media/target
  • umount – unmount file systems
    Usage: umount [OPTIONS] dir | device…
    eg.  umount /media/target
  • du – estimate file space usage
    Usage:  du [OPTION]… [FILE]…
    eg. du
  • df – report filesystem disk space usage
    Usage: df [OPTION]… [FILE]…
    eg. df
  • quota – display disk usage and limits
    Usage: quota [OPTION]
    eg. quota ­v
  • reboot – reboot the system
    Usage: reboot [OPTION]
    eg. reboot
  • poweroff – power off the system
    Usage: poweroff [OPTION]
    eg. poweroff
  • kate – KDE Advanced Text Editor
    Usage:  kate [options][file(s)]
    eg. kate file1.txt file2.txt
  • vim – Vi Improved, a programmers text editor
    Usage: vim [OPTION] [file]…
    eg. vi hello.c
  • gedit ­ A text Editor. Used to create and edit files.
    Usage: gedit [OPTION] [FILE]…
    eg. gedit
  • bg – make a foreground process to run in background
    Usage: type ‘ctrl+z’  and then ‘bg ‘
  • fg – to make background process as foreground process
    Usage: fg [jobid]
  • jobs – displays the names and ids of background jobs
    Usage: jobs
  • sed ­  stream editor for filtering and transforming text
    Usage: sed [OPTION] [input­file]…
    eg. sed ‘s/love/hate/g’ loveletter.txt
  • awk ­ pattern scanning and processing language
    eg.  awk ­F: ‘{ print $1 }’ sample_awk.txt
  • find ­ search for files in a directory hierarchy
    Usage: find [OPTION] [path] [pattern]
    eg. find ­name file1.txt
  • locate – find or locate a file
    Usage: locate [OPTION]… FILE…
    eg. locate file1.txt
Linux File Permissions
 3 types of file permissions – read, write, execute
  • 10 bit format from ‘ls ­l’ command 1             2 3 4      5 6 7     8 9 10
    file type    owner     group    others
    eg. drwxrw­r­­   means owner has all three permissions,
    group has read and write, others have only read
    permission
  • read permission – 4, write – 2, execute ­1
    eg. rwxrw­r­­   = 764
    673    =   rw­rwx­wx