Install and Configure Samba Server for File Sharing

14 12 2009

First you need to follow this post upto 10th point and then you have to start from here

11. Edit Samba File Configuration
sudo vim /etc/samba/smb.conf

[share]
comment = Share Folder
path = /home/sugizo/share
read only = no
guest ok = yes
browseable = yes
share modes = yes
available = yes
public = yes

12. Make Share Folder
sudo mkdir /home/sugizo/share

13. Change Mode and Owner of Share Folder
sudo chmod -R 777 /home/sugizo/share

14. Create Samba Root Password
sudo smbpasswd -a root

15. Add Samba User (Change User With Your Own Name)
sudo useradd -m -G user

16. Check Inetd Configuration File (Ensure SWAT Service is On)
sudo vim /etc/inetd.conf

swat            stream  tcp     nowait.400      root    /usr/sbin/tcpd  /usr/sbin/swat

17. Create SWAT Extended Internet Service
sudo vim /etc/xinetd.d/swat

service swat
{
port = 901
socket_type = stream
wait = no
user = root
server = sudo /usr/sbin/swat
log_on_failure += USERID
disable = no
}

18. Restart Samba, Apache, Extended Internet Service
sudo service samba restart
sudo service apache2 restart
sudo service xinetd restart

19. Test Samba Server
sudo smbclient -L localhost -U%





Install and Configure Apache 2 to Support SSL Certificate

14 12 2009

1. Backup Currently Running IP Configuration File
cp /etc/network/interfaces /home/sugizo/bkup/interfaces.ori

2. Edit IP Address Configuration File
sudo vim /etc/network/interfaces

auto eth0
iface eth0 inet static
address         192.168.44.3
netmask         255.255.255.0
gateway         192.168.44.2
network         192.168.44.0
broadcast       192.168.44.255

auto eth1
iface eth1 inet static
address         18.18.18.3
netmask         255.255.255.0
gateway         192.162.44.2
network         18.18.18.0
broadcast       18.18.18.255

auto eth2
iface eth2 inet static
address         88.88.88.3
netmask         255.255.255.0
gateway         192.168.44.2
network         88.88.88.0
broadcast       88.88.88.255

3. Backup Currently Hostname File Configuration
cp /etc/hostname /home/sugizo/bkup/hostname.ori

4. Edit Hostname File Configuration
sudo vim /etc/hostname

karmic.ubuntu64.vmw

5. Backup Currently Host Addresses Configuration
cp /etc/hosts /home/sugizo/bkup/hosts.ori

6. Change Host Addresses Configuration
sudo vim /etc/hosts

127.0.0.1       localhost
127.0.1.1       karmic.ubuntu64.vmw     karmic
192.168.44.3    karmic.ubuntu64.vmw     karmic
18.18.18.3    karmic.ubuntu64.vmw     karmic
88.88.88.3    karmic.ubuntu64.vmw     karmic

7. Reboot the Machine
sudo reboot

8. Update List Packages
sudo apt-get update

9. Install Apache 2 Web Server, SSL Certification
sudo apt-get install apache2 ssl-cert

10. Test Apache
Open Your Browser Type : http://karmic
or
http://192.168.44.3

11. Create a Certificate SSL for Apache
sudo mkdir /etc/apache2/ssl
sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem

12. Enable SSL Module on Apache 2
sudo a2enmod ssl
sudo /etc/init.d/apache2 restart

13. Create Virtual Host for SSL Website
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl

14. Edit Virtual Host for SSL Website Configuration
sudo vim /etc/apache2/sites-available/ssl

NameVirtualHost *:443
<virtualhost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
ServerSignature On
ServerAdmin
sugizo@japan.com

15. Enable SSL Virtual Host
sudo a2ensite ssl
sudo /etc/init.d/apache2 reload
sudo /etc/init.d/apache2 restart

16. Test Apache with SSL
Open Your Browser Type : https://karmic
or
https://192.168.44.3

Here my first 8 point is same as my this post .





Install and Configure Samba for Network Printing

14 12 2009

1. Backup Currently Running IP Configuration File
cp /etc/network/interfaces /home/sugizo/bkup/interfaces.ori

2. Edit IP Address Configuration File
sudo vim /etc/network/interfaces

auto eth0
iface eth0 inet static
address         192.168.44.3
netmask         255.255.255.0
gateway         192.168.44.2
network         192.168.44.0
broadcast       192.168.44.255

auto eth1
iface eth1 inet static
address         18.18.18.3
netmask         255.255.255.0
gateway         192.162.44.2
network         18.18.18.0
broadcast       18.18.18.255

auto eth2
iface eth2 inet static
address         88.88.88.3
netmask         255.255.255.0
gateway         192.168.44.2
network         88.88.88.0
broadcast       88.88.88.255

3. Backup Currently Hostname File Configuration
cp /etc/hostname /home/sugizo/bkup/hostname.ori

4. Edit Hostname File Configuration
sudo vim /etc/hostname

karmic.ubuntu64.vmw

5. Backup Currently Host Addresses Configuration
cp /etc/hosts /home/sugizo/bkup/hosts.ori

6. Change Host Addresses Configuration
sudo vim /etc/hosts

127.0.0.1       localhost
127.0.1.1       karmic.ubuntu64.vmw     karmic
192.168.44.3    karmic.ubuntu64.vmw     karmic
18.18.18.3    karmic.ubuntu64.vmw     karmic
88.88.88.3    karmic.ubuntu64.vmw     karmic

7. Reboot the Machine
sudo reboot

8. Update List Packages
sudo apt-get update

9. Install Extended Internet Service, Samba Web Administration Tool (SWAT), Samba Client Server, Apache Web Server, CUPS
sudo apt-get install xinetd swat samba samba-doc smbclient apache2 cupsys*

10. Backup Currently Samba File Configuration
cp /etc/samba/smb.conf /home/sugizo/bkup/smb.conf.ori

11. Edit Samba File Configuration
sudo vim /etc/samba/smb.conf

load printers = yes
printing = cups
printcap name = cups

[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
guest ok = yes
read only = no
create mask = 0700
public = yes
print command = sudo /usr/bin/lpr -P%p -r %s

12. Create Samba Root Password
sudo smbpasswd -a root

13. Add Samba User (Change User With Your Own Name)
sudo useradd -m -G user

14. Check Inetd Configuration File (Ensure SWAT Service is On)
sudo vim /etc/inetd.conf

swat            stream  tcp     nowait.400      root    /usr/sbin/tcpd  /usr/sbin/swat

15. Create SWAT Extended Internet Service
sudo vim /etc/xinetd.d/swat

service swat
{
port = 901
socket_type = stream
wait = no
user = root
server = sudo /usr/sbin/swat
log_on_failure += USERID
disable = no
}

16. Restart Samba, Apache, Extended Internet Service
sudo service samba restart
sudo service apache2 restart
sudo service xinetd restart

17. Test Samba Server
sudo smbclient -L localhost -U%





Install and Configure LAMP (Linux Apache MySQL PHP)

14 12 2009

1. Backup Currently Running IP Configuration File
cp /etc/network/interfaces /home/sugizo/bkup/interfaces.ori

2. Edit IP Address Configuration File
sudo vim /etc/network/interfaces

auto eth0
iface eth0 inet static
address         192.168.44.3
netmask         255.255.255.0
gateway         192.168.44.2
network         192.168.44.0
broadcast       192.168.44.255

auto eth1
iface eth1 inet static
address         18.18.18.3
netmask         255.255.255.0
gateway         192.162.44.2
network         18.18.18.0
broadcast       18.18.18.255

auto eth2
iface eth2 inet static
address         88.88.88.3
netmask         255.255.255.0
gateway         192.168.44.2
network         88.88.88.0
broadcast       88.88.88.255

3. Backup Currently Hostname File Configuration
cp /etc/hostname /home/sugizo/bkup/hostname.ori

4. Edit Hostname File Configuration
sudo vim /etc/hostname

karmic.ubuntu64.vmw

5. Backup Currently Host Addresses Configuration
cp /etc/hosts /home/sugizo/bkup/hosts.ori

6. Change Host Addresses Configuration
sudo vim /etc/hosts

127.0.0.1       localhost
127.0.1.1       karmic.ubuntu64.vmw     karmic
192.168.44.3    karmic.ubuntu64.vmw     karmic
18.18.18.3    karmic.ubuntu64.vmw     karmic
88.88.88.3    karmic.ubuntu64.vmw     karmic

7. Reboot the Machine
sudo reboot

8. Update List Packages
sudo apt-get update

9. Install Apache 2 Web Server, PHP 5, PHPMYADMIN MySQL Database Client Server
sudo apt-get install apache2 php5 libapache2-mod-auth-mysql php5-mysql mysql-server mysql-client mysql-admin phpmyadmin

10. MySQL Server Initialize Configuration (Change * with your own Password):
New password for the MySQL “root” user: *****
Repeat password for the MySQL “root” user: *****

11. PHPMYADMIN Initialize Configuration (Change * with your own Password):
[*] apache2
Configure database for phpmyadmin with dbconfig-common? Yes
Password of your database’s administrative user: ***** (MySQL Root Password)
MySQL application password for phpmyadmin: *****
Password confirmation: *****

12. Test Apache
Open Your Browser Type :
http://karmic
or
http://192.168.44.3

13. Create PHP Info File
sudo vim /var/www/phpinfo.php

<?
phpinfo();
?>

14. Backup MySQL Configuration File
cp /etc/mysql/my.cnf /home/sugizo/bkup/my.cnf.ori

15. Change MySQL Configuration File To Enable Access From The Other Computer
sudo vim /etc/mysql/my.cnf

#bind-address           = 127.0.0.1

16. Backup PHP Configuration File
cp /etc/php5/apache2/php.ini /home/sugizo/bkup/php.ini.ori

17. Edit PHP Configuration File to Support MySQL Database Extension
sudo vim /etc/php5/apache2/php.ini

extension=msql.so

18. Restart MySQL and Apache Service
sudo service mysql restart
sudo service apache2 restart

19. Test PHP Info File
Open Your Browser Type : http://karmic/phpinfo.php
or
http://192.168.44.3/phpinfo.php

20. Test PHPMYADMIN
Open Your Browser Type :
http://karmic/phpmyadmin
or
http://192.168.44.3/phpmyadmin





MySQL GUI Tools in Ubuntu 9.10

14 12 2009

Here I am providing you some easy steps to install MySQL GUI Tools in Ubuntu. As most of the MySQL user know that dev provides MySQL GUI Tools, which makes easy to operate database. To install MySQL GUI Tools, here are some simple instruction to be executed in terminal.

Step 1:

$ sudo /etc/init.d/mysql start

This will start the the mysql. If you have not installed MySQL in your system, please refer my post Here.

Step 2:

$ sudo tar –directory=/opt -xzvf mysql-gui-tools-5.0r12-linux-i386.tar.gz

This instruction will will download and unzip all the required file in /opt/mysql-gui-tools-5.0/

Step 3 :

$ /opt/mysql-gui-tools-5.0/mysql-administrator

This will open MySql Administator window. Here we can operate database graphically. If you want to run some query in MySQL Query Browser give following instruction in terminal.

$ /opt/mysql-gui-tools-5.0/mysql-query-browser

This application  works very well in my system  I hope you will not also find any problem.








Follow

Get every new post delivered to your Inbox.