Ubuntu / kubuntu 8.10 is Out today!!!
Posted in HowTo - Linux, Software Reviews on October 30, 2008 by aristomagnusConfigure a static and dynamic dhcp server on CentOS 5.2
Posted in HowTo - Linux on October 29, 2008 by aristomagnusyum -y install dhcp
mv /etc/dhcpd.conf /etc/dhcpd.conf.ori
cp /usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcpd.conf
to configure your server, your got all the example:
vi /etc/dhcpd.conf
to force an interface, add the following line: DHCPDARGS=eth0
vi /etc/sysconfig/dhcpd
Verify that the dhcp server start at bootup:
chkconfig –list | grep dhcp
If not:
chkconfig –levels 235 dhcpd on
Start the service:
/etc/init.d/dhcpd start
Reference: http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-server.html
Install CentOS 5.2 as a server (LAMP/Bind/ntp)
Posted in HowTo - Linux on October 28, 2008 by aristomagnusPartition:
/dev/sda1 => ext3 -> /boot -> 128MB
/dev/sda2 => ext3 -> / -> 32768MB
/dev/sda3 => swap -> 2048MB
/dev/sda4 => ext3 -> /tmp -> Space left.
Disable IPv6 support if not needed.
-PACKAGE CONFIGURATION:
* Choose SERVER Templates.
* In the bottom, check CUSTOMIZE NOW.
-PACKAGES CUSTOMIZATION:
* In DEVELOPMENT: add DEVELOPMENT LIBRARIES, DEVELOPMENT TOOLS, LEGACY SOFTWARE DEVELOPMENT.
* In SERVER: uncheck everything (remove all packages).
* In BASE SYSTEM: add LEGACY SOFTWARE SUPPORT.
reboot
Edit /etc/selinux/config
Change the line:
SELINUX=enforcing
to
SELINUX=disabled
OR
system-config-securitylevel
Disable Security Level and SeLinux disabled
save and reboot
yum -y update
reboot
Disable service: ip6tables iptables bluetooth
chkconfig –levels 0123456 ip6tables off
chkconfig –levels 0123456 iptables off
chkconfig –levels 0123456 bluetooth off
To install a DNS server
yum -y install bind-chroot
To install MySQL server
yum -y install mysql mysql-devel mysql-server
To install php and perl:
yum -y install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel perl
Configure BIND9 (chrooted DNS Server)
BIND will run in a chroot jail under /var/named/chroot/var/named/ to allow BIND management via ISPConfig.
chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
cp /usr/share/doc/bind-9.3.4/sample/var/named/named.local /var/named/chroot/var/named/named.local
cp /usr/share/doc/bind-9.3.4/sample/var/named/named.root /var/named/chroot/var/named/named.root
touch /var/named/chroot/etc/named.conf
Enter chkconfig –levels 235 named on
Configure MySQL
Enter chkconfig –levels 235 mysqld on
Note: Consider reviewing the MySQL Tuning guide and Low memory MySQL / Apache configurations for additional MySQL configuration suggestions.
Configure Apache
Modify the DirectoryIndex directive in your httpd.conf file:
vi /etc/httpd/conf/httpd.conf
Locate the DirectoryIndex for your web root
Modify the line to read as follows:
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl
Exit vi
chkconfig –levels 235 httpd on
to start Apache whenever your server boots
Test Your Configuration
BIND
/etc/init.d/named restart
MySQL
/etc/init.d/mysqld start
netstat -tap | grep mysql
- if a line with the word LISTEN displays, MySQL was configured successfully and is now running
mysqladmin -u root password <YOUR_MYSQL_PASSWORD>
(where <YOUR_MYSQL_PASSWORD> is the unique password for your MySQL root account)
clear history
Add repository to yum:
Howto Repo: http://wiki.centos.org/AdditionalResources/Repositories
—————
FROM RPMforge: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
1. CentOS 5
You should make sure that you have Priorities installed.
1.1. Priorities
yum install yum-priorities
i386 http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
x86_64 http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
(You can find a complete list of rpmforge-release package packages at http://dag.wieers.com/packages/rpmforge-release/ but it is recommended that you use one of the two listed above).
x64:
rpm -ivh http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Test with this command:
yum check-update
yum update
yum -y install phpmyadmin php-mcrypt php-mbstring
vi /usr/share/phpmyadmin/config.inc.php
Fine the line :
$cfg['blowfish_secret'] = ”; /* YOU MUST FILL IN THIS FOR COOKIE
AUTH! */
add a secret in the bracket. save the file.
Now you need to configure the access of phpmyadmin:
vi /etc/httpd/conf.d/phpmyadmin.conf
<Directory “/usr/share/phpmyadmin”>
Order Deny,Allow
#Deny from all
Allow from all
</Directory>
/etc/init.d/httpd restart
Try it: http://ipoftheserver/phpmyadmin
user: root
passwd: your password
Synchronize The System Clock
If you want to have the system clock synchronized with an NTP server do the following:
yum install ntp
chkconfig –levels 235 ntpd on
ntpdate 0.pool.ntp.org
/etc/init.d/ntpd start
Install Webmin
cd /tmp
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.441-1.noarch.rpm
rpm -ivh webmin-1.441-1.noarch.rpm
access webmin:
https://ipoftheserver:10000
Some infos are from: http://wiki.vpslink.com/HOWTO:_CentOS_5_setup_for_LAMP_and_ISPconfig#Step-by-step_Installation_Guide
Some infos are from: http://howtoforge.net/perfect-server-centos-5.2-x86_64
Is KDE 4.1 for you?
Posted in HowTo - Linux, Software Reviews on October 24, 2008 by aristomagnusFrom: http://techbase.kde.org/Schedules/Is_KDE_4.1_for_you%3F
KDE 4.1 was released at the end of July 2008. This is a significant milestone for the KDE 4 series and for KDE in general, but as an early release in the KDE 4 cycle, it does have some known issues which will not be fixed in KDE 4.1. Huge progress has been made in KDE 4.1 which is listed in the KDE 4.1 Feature Plan.
Some of the more obvious issues are listed below. If these issues are important to you, you should stay with KDE 3.5 (KDE 3.5.10 was released in August 2008) until KDE 4.2 is released (scheduled for release in January 2009) when most of these issues are scheduled to be resolved.
It is possible that distributions will work around some of these issues before distributing to users.
Graphics Performance |
Users of NVidia cards with the binary driver provided by NVidia might suffer from performance problems in window switching and resizing. We’ve made the NVidia engineers aware of those problems. However, no fixed NVidia driver has been released yet. You can find information on how to improve graphics performance here on Techbase, although we ultimately have to rely on NVidia to fix their driver.
The Desktop
The desktop in KDE 4.1 will mark the start of some significant user interface changes. This is a step away from the way the KDE 3 desktop was designed, but everything possible on your KDE 3.5.9 desktop will also be possible on your KDE 4 desktop. For KDE 4.1, however, some features are not yet complete, but should be ready for KDE 4.2.
FolderView
FolderView is a new technology on the KDE 4 desktop which allows more than one collection of icons on your “desktop”. However, it can still be configured to behave much like KDE 3 did. Seethis blog entry by Lydia Pintscher for some more information on FolderView.
The following issues are known and are scheduled to be resolved in KDE 4.2:
- Icons do not need to be in a grid: you can drag them to any point within the FolderView. However, the location you leave them in is not saved, so they will be in a grid again the next time you start the desktop.
- You can have a full screen “desktop with icons”, but if you do, you can not have a desktop background. See also: http://www.youtube.com/watch?v=RhYinDOKbE8
- You can have a desktop background, but then you must use the FolderView in regular, not entire screen mode (as shown in Lydia’s blog above).
Panels and workspaces
Some panel issues can be resolved before KDE 4.2. Because of the modular design of Plasma, a new panel could be quite easily written with autohide functionality. This would likely be written by a distribution team or a developer on kde-apps.org.
- Autohiding of panels is not yet configurable.
- It is not possible to set different desktop wallpapers for different virtual desktops.
- The Mac-style menu bar is not available.
Session management
Session management is not fully implemented yet, at least not as you’re used to from KDE 3.5. Some of these features might get implemented in a 4.1.x release.
- Even though the System Settings module offers you an option to start your day with a Manually Saved Session, there’s no option yet in the menu to actually save one. The functionality is available via D-Bus though and some distributions already include patches to fix this. See bug 155341 for details.
- For a number of applications, e.g. Konsole, sessions do not get restored.
Applications
New and missing applications
Some KDE 3 applications have not yet been ported to KDE 4. Most distributions still package KDE 3 versions of these applications with their KDE 4 desktop. Some notable applications which will not be included in KDE 4.1 are listed below:
Projects with a different release schedule than KDE4.
Project (Current Version - Final Release Date)
- Krusader 2.0 (Beta 1 - Unknown)
Krusader is an advanced twin panel (commander style) file manager.
- KOffice 2.0 (Beta 2 - Late 2008)
Binaries are available for all three major platforms. The developers are looking for volunteers to help put together screenshots for visual changelogs.
- Amarok 2.0 (Beta 2 - Nujalik - October 2008)
Nightly builds are available through Project Neon.
- k3b 1.1 (Pre-Alpha - Unknown)
An alpha release of 1.1 (the KDE 4 port) is forthcoming, but not yet released.
- Kaffeine (Pre-Alpha - Unknown)
The KDE4 port is under way but requires major rewriting to support Phonon and other new features. No releases scheduled at this time.
- KPlayer 0.7 (Released January 11 2008)
KPlayer 0.7 is the KDE4 port of KPlayer that was released on the same day as KDE 4.0. KPlayer 0.7.1 is planned for fall 2008 and will include a KDE4 port of its multimedia library which still used KDE3 compatibility layer in version 0.7.0.
- Basket (1.0.3.1 (KDE3) - Released June 30 2008)
The KDE4 port of Basket is currently in a pre-alpha state.
- Konversation 2.0 (Pre-Alpha - Unknown)
The KDE4 port will not be released to sometime after version 1.1, which will be the last KDE3 release.
- There are also several KDE games that do not have a KDE 4 port yet. Among these are kasteroids, kfouleggs.
- KDevelop 4.0 (Pre-Alpha - Unknown)
An alpha release of 4.0 (a rewritten from scratch version) is forthcoming, but not yet released. Normal users should continue to use the stable KDevelop 3.5.2 version for the time being.