Software Development, Linux, and Windows

Notes on Software Development, Linux, and Windows

CentOS

Fix error with making a screenshot in CentOS

Perform these steps if you are getting this error: Failed to execute child process “gnome-screenshot” (No such file or directory) Login in or switch user to root: su – Type this command: yum install gnome-utils -y

Tags: , ,

Posted in CentOS, Linux | Comments Off

Install Gnome System Monitor on versions of CentOS above 6.2

Perform these steps to install the Gnome System Monitor on CentOS versions above 6.2: Login in or switch user to root: su – Type this command: yum install gnome-system-monitor

Tags: , , ,

Posted in CentOS, Fedora, Linux | Comments Off

Install Development Tools and Development Libraries on CentOS

Perform these steps to install gcc, gdb, cpp, perl, and other standard linux development tools and libraries: Login in or switch user to root: su – Type this command: yum groupinstall ‘Development Tools’ ‘Development Libraries’

Tags: , ,

Posted in CentOS, Fedora, Linux | Comments Off

How to list group names in Linux

To list the names of all defined groups, use this command: Type this command: cut -d: -f1 /etc/group

Tags: , ,

Posted in CentOS, Fedora, Linux | Comments Off

Allow Apache/PHP on CentOS to connect to a remote database

The issue for me was that by defualt SELinux was preventing this access from happening. Perform the following steps on the machine running Apache. Login or swith user to root: su – Enter the following command: setsebool -P httpd_can_network_connect_db=1 NOTE: When I ran this command on my system which is a 2.8 GHz Pentium 4 [...]

Tags: , , , ,

Posted in Apache, CentOS, Linux, MySQL, PHP | Comments Off

Disable SELinux on CentOS

Should you decide to disable SELinux completely, then this is how you do it: Login in or switch user to root: su – Edit the config file: vi /etc/selinux/config Modify this setting: SELINUX=disabled Restart the system shutdown -r now

Tags: , ,

Posted in CentOS, Linux | Comments Off

Install Java JDK on CentOS

Installing the Java JDK on CentOS is very simple to do: Login in or switch user to root: su – Install the package: yum install java

Tags:

Posted in CentOS, Linux | Comments Off

Install Subversion on CentOS

Follow these steps to install Subversion on CentOS Login as, or switch user to root: su – Install packages: yum install mod_dav_svn subversion Edit the subversion.conf file that was just created for you in the previous step: cd /etc/httpd/conf.d vi subversion.conf LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so <Location /svn> DAV svn SVNParentPath /var/www/svn AuthType Basic [...]

Tags: , , ,

Posted in Apache, CentOS, Linux, Subversion | Comments Off

Install WordPress on CentOS

Follow these steps to install WordPress on CentOS. Prerequisites: Install MySQL on CentOS 6.2 Install Apache and PHP on CentOS 6.2 Install WordPress: su – wget http://wordpress.org/latest.tar.gz tar -xvzf latest.tar.gz -C /var/www/html Create MySQL Database for WordPress: mysql -u root -p #create new user create user wordpress@localhost identified by “password”; #create new database create database [...]

Tags: , , , ,

Posted in Apache, CentOS, Linux, MySQL, WordPress | Comments Off

Install Apache and PHP on CentOS

Follow these steps to install Apache and PHP on CentOS. Install Apache and PHP components with PHP support for MySQL: yum install httpd php php-common php-mysql Start Apache: service httpd start Configure Apache to start at system startup: chkconfig httpd on

Tags: , , , ,

Posted in Apache, CentOS, Linux, MySQL, PHP | Comments Off