Listing a Yum package content

First, let’s check if glib2 is installed:

[laurent@new-host]/usr/lib> yum list installed | grep glib2
glib2.i686 2.22.5-6.el6 @base/$releasever

OK, now what is the exact RPM package name for glib2 ?

[laurent@new-host]/usr/lib> rpm -qa | grep glib2
glib2-2.22.5-6.el6.i686

Great, let’s now see what is inside this RPM package:

[laurent@new-host]/usr/lib> rpm -ql glib2-2.22.5-6.el6.i686
/etc/profile.d/glib2.csh
/etc/profile.d/glib2.sh
/lib/libgio-2.0.so.0
/lib/libgio-2.0.so.0.2200.5
/lib/libglib-2.0.so.0
/lib/libglib-2.0.so.0.2200.5
/lib/libgmodule-2.0.so.0
/lib/libgmodule-2.0.so.0.2200.5
/lib/libgobject-2.0.so.0
/lib/libgobject-2.0.so.0.2200.5
/lib/libgthread-2.0.so.0
/lib/libgthread-2.0.so.0.2200.5
...

Laurent KUBASKI

Fixing the “non appearing files” issue when sharing files with SAMBA on CentOS

OK, I easily lost 8 hours trying to fix this issue:

  • installed SAMBA on CentOS
  • correctly configured smb.conf (security=user, writable=yes)
  • created a user account and declared it using smbpasswd
  • made sure that this user had full read/write access to the shared folder
  • made sure that the firewall was allowing SAMBA traffic

Then, from a Windows 7 PC, I used the ‘Map network drive” option, connected to my SAMBA shared drive, entered my SAMBA user name and password… and then what ?

  • only read-only access to the shared drive
  • only folders were visible, no files whatsoever

Do you know why ? Because SELinux is activated by default on CentOS.

To check if this is the case for you, use the ‘sestatus’ command: if you get an ‘enabled’ result, then you may want to disable it by following the procedure detailed here.

Laurent KUBASKI

Installing Gnome on CentOS and make it launch at boot


First install Gnome (use ALT F2 to switch to the shell if needed and 'loadkeys fr' if you want to change the default keyboard locale) : yum groupinstall "GNOME Desktop Environment"

Alternatively, do a 'yum grouplist' to see the list of groups and run for example 'yum groupinstall Desktop'

Then run 'startx' to make sure it starts.
Then edit /etc/inittab and replace the last line with id:5:initdefault:

Laurent KUBASKI