Category: Fedora


File Duplicates Recursive in Linux

By polfilm,
md5deep -r -l . > filelist.txt
sort < filelist.txt > filelist_sorted.txt

First command will render all hashes for all files
Second will sort the list so as you scroll you will easily spot duplicates with their paths.
m5deep is in most apt-get and yum repos.

Ipa. Change Admin Password

By polfilm,
LDAPTLS_CACERT=/etc/ipa/ca.crt ldappasswd \
           -ZZ -D 'cn=directory manager' -W \
           -S uid=admin,cn=users,cn=accounts,dc=domain,dc=com

or

kadmin.local
Authenticating as principal admin/admin@EXAMPLE.COM with password.
kadmin.local:  change_password admin@EXAMPLE.COM
Enter password for principal "admin@EXAMPLE.COM": 
Re-enter password for principal "admin@EXAMPLE.COM": 

Fedora 20. Set hostname permanently.

By polfilm,

1.Set the hostname in /etc/hostname

2. Edit /etc/cloud/cloud.cfg (which is a YAML file) and set preserve_hostname: true at the toplevel (one can also pass this option in with the user data)

VMware Tools install, kernel headers missing, Fedora

By polfilm,

Vmware Tools perl script is actually building the vmtools on your machine. First thing you need to do is update your system so you don’t get a module mismatch.

yum update

Once the system is updated reboot.
When the system comes back just add kernel headers by running

yum install kernel-devel

You can now run the vmware tools script again.

How to set up Fedora 17 for Mingw cross compile

By polfilm,
yum install mingw32-binutils
yum install mingw32-cpp
yum install mingw32-filesystem
yum install mingw32-gcc
yum install mingw32-gcc-c++
yum install mingw32-runtime
yum install mingw32-w32api
yum install wine

wine cmd.exe

You should end in home directory on Z:\ drive

regedit.exe

What to edit?

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment

In the PATH element add at the end your binaries folder (check this folder exists!)

;Z:\\usr\\i686-pc-mingw32\\sys-root\\mingw\\bin

close regedit
exit in console
restart wine command prompt

wine cmd.exe

verify by typing

path

If you have other required mingw32 components installed you should be able to do:

mingw32-configure

Static IP Address Fedora 17

By polfilm,

load file to edit

$ nano /etc/sysconfig/network-scripts/ifcfg-eth0

edit

DEVICE=eth0
BOOTPROTO=static
IPADDR=10.10.10.150
NETMASK=255.255.255.0
GATEWAY=10.10.10.1
DNS1=8.8.8.8
DNS2=8.8.4.4
ONBOOT=yes
NM_CONTROLLED=no

restart

$ sudo /etc/init.d/network restart

Disable Network Manager, Enable Network Service

# systemctl stop NetworkManager.service
# systemctl disable NetworkManager.service

Then you enable the network service in a similar fashion.

# systemctl enable network.service
# systemctl start network.service

Don’t forget to set host resolve  /etc/hosts and hostname /etc/sysconfig/network [HOSTNAME=]

Cacti

By polfilm,

Cacti is a complete network graphing solution designed to harness the power of RRDTool’s data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.

http://www.cacti.net/

Install procedure on Fedora / Centos

GlusterFS

By polfilm,

GlusterFS is a powerful network/cluster filesystem written in user space which uses FUSE to hook itself with VFS layer. GlusterFS takes a layered approach to the file system, where features are added/removed as per the requirement. Though GlusterFS is a File System, it uses already tried and tested disk file systems like ext3, ext4, xfs, etc. to store the data. It can easily scale up to petabytes of storage which is available to user under a single mount point.

http://www.gluster.org

 

oVirt

By polfilm,

The virtual datacenter management platform. Provision, manage, and monitor hosts, hypervisors, virtual machines, storage, and network. The oVirt Project is an open virtualization project for anyone who cares about Linux-based KVM virtualization. Providing a feature-rich server virtualization management system with advanced capabilities for hosts and guests, including high availability, live migration, storage management, system scheduler, and more.

http://www.ovirt.org/

Connect with LinkedIn oVirt professionals here:
http://www.linkedin.com/groups?gid=4707460