About admin

My name is Vidyadhar Sarmalkar & I work as a consultant and have done RHCE & CCNA.
Website:
admin has written 229 articles so far, you can find them below.


Disabling SELinux

Security-Enhanced Linux (SELinux) is a Linux feature that provides a mechanism for supporting access control security policies, including United States Department of Defense style mandatory access controls, through the use of Linux Security Modules (LSM) in the Linux kernel.

Temporarily switch off enforcement
You can switch the system into permissive mode with the following command

echo 0 >/selinux/enforce

To switch back into enforcing mode

echo 1 >/selinux/enforce

To check what mode the system is in

sestatus

Fully Disabling SELinux
To fully disable SELinux you need to modify /etc/selinux/config file. Run following commands to fully disable SELinux

sed -i 's/^SELINUX=/#SELINUX=/g' /etc/selinux/config
echo 'SELINUX=disabled' >> /etc/selinux/config

You need to restart the machine to reflect the changes.

Above methods should work on CentOS, RedHat and on Fedora.

Google Chrome Cr-48 Hacked


In our earlier post we have told you Sony Playstation was hacked, now it’s time of one of the mosts awaited arrivals of 2010 “Google’s Chrome OS notebook”.
As per the source hackers have successfully installed Ubuntu Linux on Google Chrome Cr-48.

By watching below video, which is showing Google Chrome Cr-48 booting in to Ubuntu desktop edition, its really difficult to say wheather this is a hack in progress or a fully functioning install.

Spilt and Join file with LXSplit

Some times we need to split files into smaller chunk to redistrubute them easily. There are so many utilities to do this task in windows but for linux you can use LXSplit.

To install LXSplit via apt run,

apt-get install lxsplit

To install LXSplit via yum run,

yum install lxsplit

Using LXSplit is very simple to split a file, do

lxsplit -s file_to_split split_size

For eg. I have 700MB file and want to split it into 100MB parts then I will run,

lxsplit -s file_to_split 100M

To join a file just run,

lxsplit -j split_file_part

PS3 Hacked

Guys who have unlocked the Nintendo Wii’s homebrew potential claim to have broken into the PlayStation 3 as well. The teamed named fail0verflow hacking squad says they’ve found a way to get the PS3 to reveal its own private cryptography key.

Till now the team hasn’t provided any proof that the deed’s been done, but they have provided quite an extensive explanation of how they managed the feat: apparently, Sony didn’t bother generating any random numbers to secure the blasted thing.

CentOS Local Repository

At home I am having very slow internet connection, which becomes pain while downloading packages with yum. To make this process faster I have created local repository from CentOS media.
After installing CentOS you should have /etc/yum.repos.d/CentOS-Media.repo. We will be using the same repo file to create our local repository. Adjust the existing repo file as per our need

# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
#  CentOS-5.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c5-media [command]
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

Now we need to mount cdrom to /media/CentOS/ or /media/cdrom/ or /media/cdrecorder/. I am having iso image of CentOS, so I will be mounting the same image at /media/cdrom

mount CentOS.iso /media/cdrom -o loop

How to use:

yum --enablerepo=c5-media install package_name
rss twitter facbook

Categories

Archives