centos

CentOS x64: firefox java and flash plugin

To fix various errors with java and flash under CentOS x64 on my AMD-based home box, I have tried to use ndis wrapper, manually install java x64 from sun, also various versions of flash from Adobe by downloading rpm and manual install.

Finaly problem was not completely solved after that, some issues were with flash, and I haven't got java working.

To solve I just decided to move on 32-bit version.

That way I just stopped firefox, issued following

su -
[insert pwd]
yum list installed firefox jre
yum remove jre.x86_64
yum remove firefox.x86_64
yum install firefox.i386

and I got flash working without problems on google analytics.








Source: Roman's blog

mc : can not ftp on ftp://xxx.xxx.xxx.xxx address

To browse on ftp in mc :
F9->Left->ftp link

If you insert ip address with 'ftp://' prefix,
ftp can fail with error of bad access for anonymous.

Just insert ip without any prefixes and postfixes, and then browse.

Source: Roman's blog

Create .deb or .rpm from .tar.gz with checkinstall

tar logoCheckinstall is extremely useful utility to create .deb packages for Debian, Ubuntu (or .rpm packages for Fedora, RedHat, CentOs) from .tar.gz (or .tgz) source tarball after it’s compiled at your Linux box.

Source: Linux Screw

USB CentOS 5 Live install via Windows

The following tutorial covers the process of installing CentOS 5 to a USB flash drive using a Windows host. Once CentOS is installed, it will operate just like the CentOS live cd. A persistence feature is not being utilized in this tutorial so you will NOT be able to save and restore your changes on [...]

Source: Pen Drive Linux

Firefox 2 on CentOS

I recently needed to use Firefox 2 on a linux system and the only one available to me at hand was my CentOS Linux Server.
CentOS deosn't have Firefox 2 in their repos and there are libs/apps that depend on the gecko of Firefox 1.5

So I download the binary from www.firefox.com for Firefox 2.0.0.14 and extracted it using tar -
    tar -zxvf firefox-2.0.0.14.tar.gz

Then I renamed the resulting firefox directory to firefox2 and moved it to /usr/bin
    mv firefox /usr/bin/firefox2

and ran firefox from shell
    /usr/bin/firefox2/firefox

This gave an error reporting missing libstdc++.so.5 so I installed it with yum
    yum install libstdc++.so.5

And ran firefox again and voila!!! It works :)
Blogged with the Flock Browser

KVM on core 2 duo laptop Ubuntu / Failed :(

After successfull usage of KVM on my CentOS desktop,
started installation of kvm on Ubuntu (Xubuntu 8.04) on my Core2 duo laptop:

$ sudo apt-get install kvm
..
* Your system does not have the CPU extensions
required to use KVM. Not doing anything.
# check for presence of vitualization in cpu
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU T5470 @ 1.60GHz
stepping : 13
cpu MHz : 800.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm

Source: Roman's blog

Virtualization with KVM

Used this guide:
http://wiki.centos.org/HowTos/KVM to run virtual machine on my CentOS box.

Xubuntu run in 3-5 min's, that is 5-10 times faster than with native quemu virtualization from box.

For now I will use it as default virtual machine.

Tips for creation of new machine:

su
qemu-img create -f qcow2 disk.img 5G
qemu-kvm -hda disk.img -cdrom
/media/Elements_/images/eeexubuntu-7.10.3/eeexubuntu-7.10.3-desktop-i386.iso
-m 512 -boot d

Source: Roman's blog

rcs + rsync for keeping your files on several machines

I have two GNU/Linux laptops (Xubuntu) and one GNU/Linux desktop (CentOS).

Need to synchronize them to keep the integrity of the information on the machines.

Tried git, but found it too strong too keep my little docs and code snippets.
That way decided to use well known and stable GNU tools rcs and rsync.
man rcs
man rsync are prerequisites ;

Why rcs? Because repository could be synced with code/docs, and it is GNU.
Why rsync? It is GNU solution for syncing files.

Two basic session snippets for usage:

init files for directory:

cd fldr_for_sync
mkdir RCS
# --
rcs -i file # add new file under rcs
# -- it is the same with --
touch another_file; ci anoter_file

basic rsync dir with subdirs; it is not overwrites old files in dest dir;
permissions and links kept;

rsync -avz path_to_fldr_src path_to_dest

Source: Roman's blog

Hybernate on CentOS5.1

Found a way to hybernate (suspend to disk) through the xfce (and gnome) interface on CentOS5.1.
I don't see the hybernate button on the quit form (there only Logout, Restart and Shutdown).

Started gnome-power-preferences and made settings:

Then got the icon in the tray through wich it is possible to hybernate:

By the way, is the hybernate leading to the security issues?

Source: Roman's blog

Todays issues

1) Found that plugin-wrapper installed under firefox to support Adobe Flash
was not working under other user. I have seen no graphics in analytics and youtube.

After I written about:plugins in firefox address line, plugins started work.
Don't know how exactly they were "activated", but it works for me.

2) Written alias freemind for freemind.sh in my local folder.

3) currently installing;
pidgin (I am under xfce, and like pidgin on my eee pc)
squashfs
and other:

Source: Roman's blog

freemind on CentOS 5.1

Required:
- Java from sun; installed from rpm with sun manual

export PATH=/usr/java/jdk1.6.4/bin:$PATH
export JAVA_HOME="/usr/java/jdk1.6.4"
export CLASSPATH=.:/usr/java/jdk1.6.4

Got zip freemind-max-bin from freemind sourceforge (ANY platform)
downloads page.

unzip in prepared folder in home;

chmod a+x freemind.sh
freemind.sh

also folder with unzipped freeminf could be added in the path.

Issues: no shortcuts working under xfce.

Going to try java version 5.

Source: Roman's blog

httrack for centOS x64

httrack software solved me as the mirroring solution for Ubuntu.
Tryied get it on CentOS.
no .rpm found; downloaded tar.gz from httrack official site;

# tar -xf [tarfile]
# ./configure


configure: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib

To resolve:

yum install zlib-devel
./configure
make all
make install

Ok than, I have it.

Source: Roman's blog

tried 'virtualization' under CentOS QEMU


Just to try what is new in word of virtual machines ( In my opinion it is not long now :) )

No idea why it can be best solution for any of common tasks.

Used file for filesystem, non-xen kernel (due to still having no network on -xen with my card).

Extremely slow.30 minutes to load Xubuntu Gutsy in machine.
(2-3 minutes on low-end Asus eeePC).

Host is CentOS 5.1 AMD Opteron x64 machine. Target i686 500 mb memory eeeXubuntu (Xubuntu gutsy 7.10).

Source: Roman's blog

upd:CentOS 5.1 realtec 8168/8111b

finally I have got it working under 'standard' (non-xen) kernel
using the guides from wolfy and wikipedia (http://wolfy.fedorapeople.org/) :

http://wiki.centos.org/HardwareList/RealTekRTL8111b
http://wolfy.fedorapeople.org/dkms-r8168/quick_install.html

However I still have no network under xen-kernel,
that is boring :(

Source: Roman's blog

CentOS(RHEL) and Suse difference from Ubuntu and Debian

Basically all this systems are GNU/Linux systems.

The main difference from the point of desktop user is set of applications that already present on fresh install, default configuration of desktop (graphics and theme mainly) and kernel version used.

All these distributions support kernel upgrade (through update manager, and manually, through recompilation of kernel downloaded from kernel.org (but in different recommended way for this distro's; however, seems make oldconfig;
make all works on all distro's).

Main way of installing applications on the distributions is installing from packages.

Debian (with Knoppix) and Ubuntu are .deb-based distributions, where .deb is extension of package on these systems.

RedHat (CentOS, Fedora) and Suse are .rpm based distributions. Package extension is .rpm.

Also these systems support user-friendly layer for installing applications.

For .deb-based distro's main tool is apt (also different graphical front-ends used), and for .rpm based such tool is yum.

Source: Roman's blog