Ubuntu
Start Stop Restart Apache on Ubuntu
by admin on Aug.23, 2010, under Ubuntu
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart
How to Install & Restart, MySql server on Ubuntu 8.04
by admin on Aug.23, 2010, under Ubuntu
To install MySql database:
sudo apt-get install mysql-server
To start MySql server:
/etc/init.d/mysql start
To stop MySql server:
/etc/init.d/mysql stop
To restart MySql server:
/etc/init.d/mysql restart
To check the status of MySql server:
/etc/init.d/mysql status
Installing FreeNX under Ubuntu
by admin on Aug.23, 2010, under Ubuntu
Installing the ssh server
sudo apt-get install openssh-server
Adding FreeNX components
In your sources.list file.
vi /etc/apt/sources.list
add.
deb http://ppa.launchpad.net/freenx-team/ubuntu jaunty main
Installing FreeNX
sudo apt-get update
sudo apt-get install freenx
Enable PASSDB for NX Database User Authentication pass-through:
In node.conf,
vi /etc/nxserver/node.conf
Uncomment and change the following line in /etc/nxserver/node.conf
ENABLE_PASSDB_AUTHENTICATION="1"
Remember to restart your server NX:
sudo /etc/init.d/freenx-server stop
sudo /etc/init.d/freenx-server start
You can now access your NX server with any NX client using the default DSA PRIVATE KEY (you can find NX clients for Linux, Windows and MacOSX on http://www.nomachine.com/download.php)
Note
If you run the ssh server on a port other than 22, change the configuration of FreeNX:
In node.conf,
vi /etc/nxserver/node.conf
add.
SSHD_PORT=11122
Remember to restart your server NX:
sudo /etc/init.d/freenx-server stop
sudo /etc/init.d/freenx-server start