Search This Blog

Monday, May 25, 2015

Install Perl Modules on CentOS 6

sudo yum install perl-CPAN
sudo cpan
say "yes" to everything

I had an error about missing perl-YAML, sudo yum install perl-YAML, as well.

Saturday, May 16, 2015

Can't Install Modules and Themes From Drupal Page on CentOS 6

This is the error message that I got.


Run command "sudo setsebool -P httpd_can_network_connect on", it might take a few minutes for it to fully complete.

Setup SSH Option on Drupal Module and Theme Update on CentOS 6

yum -y install php-pear php-devel gcc libssh2-devel
pecl install "channel://pecl.php.net/ssh2-0.12"
echo extension=ssh2.so > /etc/php.d/ssh2.ini
service httpd restart

This is what happens afterwards.

Sunday, May 10, 2015

Name-based Virtual Hosting

/etc/httpd/conf/httpd.conf

NameVirtualHost *:80

< VirtualHost *:80 >
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /var/www/html/drupal
   ServerName example.com
    ErrorLog logs/example.com-error_log
    CustomLog logs/example.com-access_log common
</ VirtualHost >

service httpd restart

Wednesday, May 6, 2015

Install VirtualBox Guest Additions for CentOS 6

1) Make sure the computer has network connection
2) mkdir rpm
3) cd rpm

Location of RPMForge for CentOS: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
Download the rpmforge-release package. Choose one of the two links below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the command uname -i

i686 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
x86_64 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

4) wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
5) rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
6) rpm -i rpmforge-release-0.5.3-1.el6.rf.i686.rpm
7) yum install dkms
8) y
9) Devices -> Insert Guest Additions CD image...
10) mount -t iso9660 /dev/dvd1 /media
11) cd /media
12) sh ./VBoxLinuxAdditions.run
13) It will complain of missing kernel-devel-x..., do a yum install kernel-devel-x... whatever version it is.
14) sh ./VBoxLinuxAdditions.run

Now you can use commands such as, vboxmanage guestcontrol

CentOS 6 Running Out Of Space

Error message: At least 2MB more space needed on the /boot filesystem.

rpm -qa | grep kernel
Resulting grep:
kernel-2.6.32-71.el6.x86_64
kernel-2.6.32-71.29.1.el6.x86_64
kernel-2.6.32-131.0.15.el6.x86_64

Newest one is 2.6.32-504
Remove all except the most recent one
rpm -e kernel-2.6.32-71.el6.x86_64 kernel-2.6.32-71.29.1.el6.x86_64

Update kernel
yum -y update kernel

Update other things (optional)
yum -y update

Reference: http://www.cyberciti.biz/faq/installing-kernel-2-6-32-131-2-1-el6-x86_64-needs-8mb-on-boot-filesystem/

Tuesday, April 28, 2015

How to add user to Konica Minolta account track to print

Login as administrator, default password 12345678 -> User Auth/Account Track -> Account Track Settings -> New Registration button -> Type a password and name
Printer properties -> Under General, Preferences... -> Under Basic, Under Authentication/Account Track -> Under Account Track, enter info -> Verify -> OK

Monday, April 27, 2015

CentOS Web Server Port 80 iptables

Setup Apache on your web server, but webpage does not show.

iptables -I INPUT -p tcp --dport 80 -j ACCEPT
service iptables save

CentOS SSH Port Change

Changed port in /etc/ssh/sshd_config, what else is needed?

iptables -I INPUT -p tcp --dport PORT-NUMBER -j ACCEPT
service iptables save

Sunday, April 26, 2015

Reset Windows 7 Windows Update

Windows Update failed to install unknown error. This is to clean up Windows Update, the patches might already been installed and still shows up in the list.

Reference: https://support.microsoft.com/en-us/kb/971058

net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc

rmdir /s %systemroot%\SoftwareDistribution
rmdir /s %systemroot%\system32\catroot2

net start bits
net start wuauserv
net start appidsvc
net start cryptsvc

Tuesday, April 21, 2015

CentOS 6.6 eth0 network not working

After installing CentOS 6.6, eth0 exists in list running "ifconfig -a", but no inet addr. eth0 is not active

"vi /etc/sysconfig/network-scripts/ifcfg-eth0", change "ONBOOT=no" to "ONBOOT=yes"
esc :wq
"service network restart"

Thursday, March 26, 2015

Hacintosh - Mac OS X Snow Leopard on Dell Studio 1747

I used default BIOS settings
1) Boot from iBoot Legacy 2.7.2
2) Eject iBoot
3) Insert Mac OS X Snow Leopard
4) Press F5
5) Type "-x"
6) Press Enter on the Mac OS X Snow Leopard DVD
7) Computer restarted automatically for me
8) Boot from iBoot Legacy 2.7.2
9) Type "-x"
10) Press Enter on the hard drive
Reference: http://tonymacx86.blogspot.com/2010/04/iboot-multibeast-install-mac-os-x-on.html

Wednesday, March 25, 2015

Acquia Drupal Home Web Server 403 Forbidden Error

After installing from Acquia Dev Desktop 2 RC, changing the DDNS on DDWRT, and forwarding the port. Receiving a 403 Forbidden Error.

Reason:
In C:\Program Files (x86)\DevDesktop\apache\conf\vhosts.conf
Between the tags < Directory >, change "Require local" to "Require all granted"

Monday, January 5, 2015

YouTube - An error has occurred

Playing video in YouTube, occasionally receive "an error has occurred" message.

Go to https://www.youtube.com/html5
Click the button,
Then it will say, "The HTML5 player is currently used when possible."