Domain Name Yahoo

Easy Help Troubleshoot Your Linux Box



  

Ubuntu - Windows Fonts

Easy way to install various Fonts into your ubuntu box is combine it with windows fonts.
Thousands even million of free fonts are available on the net and support for windows.

  • Download those windows fonts.  remember Only the TrueTypFonts
  • Create directory windowsfonts at /usr/share/fonts/truetype
    $ sudo mkdir /usr/share/fonts/truetype/windowsfonts
  • Then copy the downloaded fonts into windowsfonts directory
    $ sudo cp /home/downloadedfolder/fonts/*.ttf /usr/share/fonts/truetype/windowsfonts
  • Finally, make those fonts cached
    $ fc-cache

That’s all folks. Hopefully this will help.

November 20th, 2008 Posted by admin | Ubuntu, Windows | no comments

Samba Builtin_Administrators

This is taken from syslog :

Sep 24 21:29:15 localhost smbd[9789]: [2008/09/24 21:29:15, 0] auth/auth_util.c:create_builtin_administrators(785)
Sep 24 21:29:15 localhost smbd[9789]: create_builtin_administrators: Failed to create Administrators
Sep 24 21:29:15 localhost smbd[9789]: [2008/09/24 21:29:15, 0] auth/auth_util.c:create_builtin_users(751)
Sep 24 21:29:15 localhost smbd[9789]: create_builtin_users: Failed to create Users
Sep 24 21:29:15 localhost smbd[9791]: [2008/09/24 21:29:15, 0] auth/auth_util.c:create_builtin_administrators(785)
Sep 24 21:29:15 localhost smbd[9791]: create_builtin_administrators: Failed to create Administrators
Sep 24 21:29:15 localhost smbd[9791]: [2008/09/24 21:29:15, 0] auth/auth_util.c:create_builtin_users(751)
Sep 24 21:29:15 localhost smbd[9791]: create_builtin_users: Failed to create Users

It seems that you didnt add the idmap parameter. Try to edit /etc/samba/smb.conf , and take a look the idmap part of your smb.conf.

[global]

idmap uid = 15000-20000
idmap gid = 15000-20000
Then Restart samba & winbindd :

# service smb restart

# service winbindd restart

September 26th, 2008 Posted by admin | CentOS, Samba | no comments

PHP code Vs Firewall

Php code : file_get_contents , fsockopen couldnt compiled

This error log was generated from httpd log.

[error] [client 192.168.1.1] PHP Warning:  file_get_contents() [<a href=’function.file-get-contents’>function.file-get-contents</a>]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/html/search/test.php on line 2

[error] [client 192.168.1.1] PHP Warning:  file_get_contents(http://www.google.com) [<a href=’function.file-get-contents’>function.file-get-contents</a>]: failed to open stream: Connection refused in /var/www/html/search/park.php on line 2

The Solution is to turn off your firewall

# service firewall stop

September 25th, 2008 Posted by admin | Domain, General, Uncategorized, firewall | no comments

pinged before offer ( dhcpd )

Q : What does this error log message mean ?
dhcpd Error Abandoning IP address 192.168.10.16: pinged before offer

A: Before the DHCP server assigns an IP address to a client, it pings the address to make sure nobody is using it already. In this case, the test failed, so the server “abandons” the address and picks another one to assign. Another computer may have already had that IP address statically assigned, or maybe it was dynamically assigned but the server and that client miscommunicated.

In either case, it is a harmless message and no action is necessary.

September 25th, 2008 Posted by admin | CentOS, General, dhcpd | no comments

Windows Fonts on Linux Box

Here is the trick to add your linux font.
This is just simple trick.

First, you must close any application related to fonts library ( openoffice, Mozilla Thunderbird, etc ).
Copy your windows fonts ( usually it is located in c:\windows\fonts ) if you cant see this folder, thats because this folder is hidden, try to show the hidden files and folder from the tools menu ( folder options).  Remember, only copy the font files not the font folder.

Then just paste it in /usr/share/font.
Thats it, the fonts loaded automatically, try to run OpenOffice Writer and see the fonts is there.

Hopefully this will help.

September 5th, 2008 Posted by admin | General, Windows | no comments

Strange thing happened at CentOS-5 system-config-samba

Something strange about samba at CentOS.
After all samba configurations are setup properly as PDC , have tested to join domain and user sharing and authentications, suddenly the system-config-samba has missed all the samba users as follows :

samba screenshot

Here’s the trick.

First, you have to uninstall the system-config-samba-1.2.39-1.el5.noarch.rpm

# rpm -e system-config-samba-1.2.39-1.el5.noarch.rpm

then install system-config-samba for Fedora Core 9 , you may download here

# rpm -ivh system-config-samba-1.2.63-1.fc9.noarch.rpm –nodeps

Remember, use –nodeps parameter because the dependencies files are diffrent from CentOS.
And, you are done. You may see it at menu “Applications-System tools - Samba

August 7th, 2008 Posted by admin | CentOS, Samba | no comments

Mount NTFS using CentOS - plus

If you have tried all step to mount NTFS file system from all resource you got from internet, then the last try you have to do is install the CentOSplus kernel into your box.

Download the packages from http://mirror.centos.org/centos/5/centosplus/i386/RPMS/
# rpm -ivh kernel-xen*

This process will take a minutes, please be patient.
After all done, then restart your box and  choose the new kernel.

Try to mount the NTFS filesystem

# mount /dev/hdc1 /mnt/myntfs

voila, you did it.

August 6th, 2008 Posted by admin | CentOS | 3 comments

Failed to mount NTFS on CentOS

# mount -t ntfs /dev/hdc1 /mnt/hardisk1

mount: unknown filesystem type ‘ntfs’

This message appears when you try to mount the media with ntfs filesystem.
Somehow the default centos kernel doesnt support it, you may upgrade to centosplus or try to configure your box as follows:

yum install fuse fuse-ntfs-3g dkms dkms-fuse
or download the packages from :
http://dag.wieers.com/rpm/packages/fuse/

http://dag.wieers.com/rpm/packages/fuse-ntfs-3g/

http://dag.wieers.com/rpm/packages/dkms-fuse/

then install the packages :

# rpm -ihv dkms-fuse-* fuse*

Mount Device to /media/myntfs

# mount -t ntfs-3g /dev/sda1 /media/myntfs

If you still fail, try this article http://www.domainnameyahoo.info/mount-ntfs-using-centos-plus/

August 5th, 2008 Posted by admin | CentOS | no comments

Easy step to setup Fedora Core 9 Repository

After you have installed Fedora core, it’s time to setup Fedora Repository
# mkdir /sources
# mkdir /sources/fc9

Assume that your Fedora9 DVD is at /media/FC9/Packages
Please note, all you need is only the Packages folder that contains all of RPMS files.
# cd /media/FC9/Packages
# cp -v * /sources/fc9/
# cd /sources/fc9/ && rpm -ivh createrepo*
# createrepo /sources/fc9
At this step, please wait several minute for system to list all files.

July 30th, 2008 Posted by admin | Repository | no comments

DomainKeys

taken from http://en.wikipedia.org/wiki/DomainKeys

DomainKeys is an e-mail authentication system designed to verify the DNS domain of an e-mail sender and the message integrity. The DomainKeys specification has adopted aspects of Identified Internet Mail to create an enhanced protocol called DomainKeys Identified Mail (DKIM). This merged specification is the basis for an IETF Working Group which guided the specification toward becoming an IETF standard.

The DKIM standard was issued in May 2007. The DomainKeys draft was also issued under “historical” status at the same time.

July 30th, 2008 Posted by admin | Domain, Email | no comments