kongkoro's posterous

Firewall Config in Fedora Core

From the command line enter the following:

$ sudo system-config-firewall

Posted

Maven package and skip tests

$ mvn package -Dmaven.test.skip=true
project is built and unit tests are skipped

Posted

Fully Disabling SELinux

Fully Disabling SELinux

Fully disabling SELinux goes one step further than just switching into permissive mode. Disabling will completely disable all SELinux functions including file and process labelling.

In Fedora Core and RedHat Enterprise, edit /etc/selinux/config and change the SELINUX line toSELINUX=disabled:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
... and then reboot the system.

For the other Linuxes which don't have the /etc/selinux/config file, you just need to edit the kernel boot line, usually in /boot/grub/grub.conf, if you're using the GRUB boot loader. On the kernel line, add selinux=0 at the end. For example,

title SE-Linux Test System
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.20-selinux-2003040709 ro root=/dev/hda1 nousb selinux=0
        #initrd /boot/initrd-2.4.20-selinux-2003040709.img

You will have to reboot to disable SELinux, you just can't do it while the system is running. 

 

[Source}: http://www.crypt.gen.nz/selinux/disable_selinux.html

Posted

Enable root login on fedora core

1. Login as regular user
2. After login press 'Ctrl-Alt-F2' to access terminal
3. login as regular user
4. type 'su -' to login as root

5. open gdm file 'vi /etc/pam.d/gdm'

6. remove 'user != root quiet' from the file

7. quit and save file ':wq'

8. reboot machine
Posted

Rails no such file to load -- readline (LoadError)...

I got this error message when I tried to load the rails console on one of my applications.  After doing some searching on the google I found out that I was missing some libraries specifically:

*libncurses5-dev
*libreadline5-dev

I'm currently running Ubuntu Lucid Lynx, so if you're running that, or some other Debian variant hopefully this fix will work for you too.
open up a terminal

$ sudo apt-get install libncurses5-dev
$ sudo apt-get install libreadline5-dev


Then go to the directory that contains the readline source. I used rvm(Ruby Verison Manager) to install ruby, so for me it was:
$ cd /home/kong/.rvm/src/ruby-1.9.2-p0/ext/readline
$ ruby extconf.rb
$ make
$ sudo make install


cHea!


This blog post based on info from Dirk.Net

Posted

Installing (an up to date) git on Ubuntu Lucid Lynx

The Ubuntu Repositories have been known to contain some old binaries,libraries, etc.(Mostly for stabilities sake)  I don't remember which version of git is in there, but as of this posting 1.7.2.3 is the most recent version, and that is definitely not in the Ubuntu repositories.  Luckily avhsoftware maintains a repository with recent versions of git just for Ubuntu users!

Here is what you need to do to get access to the repository:
open a command terninal:

$ sudo add-apt-repository ppa:pdoes/ppa/ubuntu (add the repository)
$ sudo apt-get install git-core
$git --version

git version 1.7.2.3

This is a pain free way to stay up to date with git.

cHea!

Posted

Ubuntu fix for require_frameworks: no such file to load --openssl

This error was a huge pain in the butt!  I installed and setup(so i thought) Rails 3.0 and Ruby1.9.2-p0. Everything seemed to be running well until I tried to access a resource on a project I was working on, and I got this error message:

'require_frameworks: no such file to load --openssl'

Thanks to this post @ railsforum.com I was able to fix this error.
Enter the following commands in the terminal:

1. cd /ruby_install_dir/ext/openssl (I used rvm to install ruby, so my ruby_install_dir was at ~/.rvm/src/ruby-1.9.2-p0)
2. ruby extconf.rb
3. make
4. make install

this fixed the error for me on the Lucid Lynx build of Ubuntu.

chea!

Posted

STROBE

logo 14 September 2010
CHECK OUT Strobe (Radio Edit)

KongKoro thinks you'll like "Strobe (Radio Edit)" by Deadmau5, on the album Strobe. Listen to this song, and discover new songs at zune.net

This song ROCKS!!!!

Strobe
Strobe
Deadmau5
Released 2010
Visit Zune.net
Posted

Install VirtualBox Additions on CentOS

**Login as Root**

mount the VBoxAdditions CD/Image

1.from the command terminal type: 
     yum install gcc
     yum install kernel-devel-$(uname -r)

navigate to the CD and run the correct VBoxAdditions installer

-Enjoy!
Posted

Install Parallels Tools in CentOS

**Login as root**

1. install gcc and kernel-devel with the following command: yum install gcc kernel-devel 
2. copy the contents of the cd into a folder on the desktop.
3. open a terminal and do a chmod 777 on the newly created folder 
4. open the newly created folder and type ./install
go through the installation instructions
Posted