Solved

Linux - CentOS 5.2 questions

Posted on 2008-10-07
1
1,164 Views
Last Modified: 2013-12-15
I'm new to Linux and have a few questions.

1)  Which download of MySQL is recommended for CentOS 5.2?  http://dev.mysql.com/downloads/mysql/5.0.html#downloads

2)  After installing, the host name of the server was that of an old PC that use to be part of our system.  I didn't set it and don't know how it was generated.  Any ideas?

3)  I'm looking for documentation on how to join this server to an Active Directory.

4)  It looks like VNC is installed but while I can ping the server I can't VNC into it.  Is there something I need to do before that is possible?  Is there a better remote access software I should be looking at?
0
Comment
Question by:Whah
1 Comment
 
LVL 5

Accepted Solution

by:
si_shamil earned 500 total points
Comment Utility
To install mysql type following commands as root:
   yum install mysql mysql-server
   chkconfig --levels 235 mysqld on
   service mysqld start

To change hostname edit the this file: /etc/sysconfig/network and enter the appropriate name using the HOSTNAME variable.
then reboot for changes to take effect

Here is a detailed how to for joining to domain as member server:
   http://www.howtoforge.com/samba_ads_security_mode

Installing & Configuring VNC server.
Assume you have CentOS installed with Gnome. If you want to remotely access the GUI to that machine, you can use vnc-server and a vnc client (like Chicken of the VNC). Here's how:

Make sure vnc-server is installed:
   sudo yum install vnc-server

Run vnc-server, for initially create configs and choose a password.:
   vnc-server

 Now Edit the file ~/.vnc/xstartup so it runs a gnome session instead of crappy twm:
   #!/bin/sh

   # Uncomment the following two lines for normal desktop:
   # unset SESSION_MANAGER
   # exec /etc/X11/xinit/xinitrc

   [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
   [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
   xsetroot -solid grey
   vncconfig -iconic &
   xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
   exec gnome-session &

Kill vnc server and restart it:
   killall Xvnc
   vnc-server

0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now