iNestdia

localServer

Remote SSH Access to the Homeserver Behind A Router

posted Mar 13, 2010 4:52 AM by J iNestdia   [ updated Mar 13, 2010 5:00 AM ]

xfx b0006 300x250

My homeserver is connected the Internet behind a router and an OpenSSH server is running on it. Here is way to access the homeserver from a remote location.

Step1: Install OpenSSH on the Homeserver

Step2: Router Port Forwarding Setting

Port forwarding of TCP Port 22 point to the homeserver IP address through the router.

Step3: Using ddclient with a Dynamic DNS service

Using a Dynamic DNS service(DynDNS.com in my case) to choose a hostname URL, myhomeserver.dnydns.com for example.

$ sudo apt-get install ddclient

Configuration file:

$ sudo nano /etc/ddclient.cong

#check every 1800 seconds

daemon=1800

#use secure SSL communications

ssl=yes

login=my ID of DynDNS.com

password=’my PASSWORSD of DnyDNS.com’

myhomeserver.dnydns.com

Install Squeezebox Server on Ubuntu 9.10 Karmic

posted Feb 27, 2010 9:41 AM by J iNestdia

dumb b007 336x280

Squeezebox Server is the server software (formerly known as SqueezeCenter or SlimServer) that powers audio players from Logitech.

For the released version of SqueezeboxServe, add a valid Ubuntu source repository as one of the following,


$ sudo gedit /etc/apt/sources.list
For the “stable main”: deb http://debian.slimdevices.com stable main
For the “stable beta”: deb http://debian.slimdevices.com testing main
For the “unstable beta”: deb http://debian.slimdevices.com unstable main

(NOTE: At the time of writing the released package of Squeezebox Server is broken under Karmic. So I used the “stable beta” versions)

Installation
$ sudo apt-get update

$ sudo apt-get install squeezeboxserver
Squeezebox Server requires mysql-server and this will be installed automatically if it’s not installed already(already installed by LAMP in my case ).

Configuration

Once Squeezebox Server has finished installing you can launch Squeezebox Server by typing http://MyMediaServer:9000, where MyMediaServer is the name you gave your server when you installed Ubuntu. The IP address of your server will work equally well.

The first time you launch Squeezebox Server you’ll be asked a series of questions, where your music is stored etc.
Sart and stop Squeezebox Server

$ sudo service squeezeboxserver restart (start, stop)

Set up an iTunes server on Ubuntu

posted Feb 21, 2010 7:38 AM by J iNestdia

468 X 60 Fashion

To share music on my local server, Firefly Media Server(reviously known as “mt-daapd”) is the best server software to serve digital music to the Roku Soundbridge and iTunes. Set up is easy.

Step1: Installation

$ sudo apt-get install mt-daapd

Step2: Configuration

$ sudo nano /etc/mt-daapd.conf

Chang admin password and mp3_dir.

Or, open a browser http://ServerAddress:3689/, login as admin then do a full scan for the music files.

In Ubuntu, Rhythmbox works fine with DAAP, iTunes is OK too, of course.

Ref: www.fireflymediaserver.org

Install Wordpress on Ubuntu 9.10(Karmic) locally

posted Feb 4, 2010 9:11 AM by J iNestdia   [ updated Feb 8, 2010 2:59 AM ]

300 x 250  ipad

After Install LAMP Server Locally on Ubuntu 9.10(Karmic), I consider to run wordpress locally on LAMP server with Ubuntu 9.10 Karmic Koala.

Setp 1: From http://LocalserverAddress/info.php

Apache Version 2.2.12, MySQL version 5.1.37 and PHP Version 5.2.10

have been confirmed. They are meet the requirements to run wordpress.

Ref:  minimum requirements to run WordPress

Step 2: Create a database for WordPress and an user who has all privileges for accessing.

Here, using the MySQL Client(if you use Using cPanel or Using phpMyAdmin, follow the instructions accordingly),

$ mysql -u root -p
mysql> CREATE DATABASE wordpress;
mysql> CREATE USER wpuser;
mysql> SET PASSWORD FOR wpuser = PASSWORS(“wppassword“);
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO wpuser@localhost IDENTIFIED BY ‘wppassword’;
mysql> FLUSH PRIVILEGES;

Step 3: Download Wordpress from http://wordpress.org/download
$ sudo wget http://wordpress.org/latest.tar.gz
$ sudo tar -xzvf latest.tar.gz

Move the wordpress directory to the root directory of Apache web site, /var/www/,
in wordpress directory, rename the wp-config-sample.php file to wp-config.php.
$ sudo nano /var/www/wordpress/wp-config.php
Change putyourdbnamehere to wordpress.
Change usernamehere to wpuser.
Change yourpasswordhere to the wppassword.
By accessing http://LocalserverAddress/wordpress   or   http://LocalserverAddress/wordpress/wp-admin/install.php
to setup the wordpress configure page.

Ref: Installing WordPress Guide

Share Home Directories automatically using Samba Server

posted Feb 1, 2010 11:33 AM by J iNestdia   [ updated Mar 14, 2010 9:01 AM ]

scan b007 468x60

Samba Server allows you to share the home directories of users automatically. This is useful so that you don’t have to manually setup the share for every user.

Here is my setup in Ubuntu 9.10 Karmic Koala. First, to set the samba password for the user,

$ sudo smbpasswd -a username

$ sudo nano /etc/samba/smb.conf

find the Share Definitions section and change the parameters as following,

#======================= Share Definitions =======================

[homes]

comment = Home Directories

browseable = yes

read only = no

valid users = %S

$ sudo /etc/init.d/samba restart

This will share each user’s home directory as \\localserver\username.

Install Samba Server in Ubuntu for a Local Network

posted Feb 1, 2010 11:24 AM by J iNestdia

fool b008 468x60 xfun b001 120x60

Sharing files between your Ubuntu and Windows computers, Samba file sharing is the best option and it is free software too. There are many advantages of sharing files in a local LAN network. For instance, it is great to be able to access the music and movies on the server from any machines in the LAN.

Here is my setup for Samba in Ubuntu 9.10 Karmic Koala. First,

$ sudo apt-get install samba

for finishing the installation.

Now, create a share folder to be accessible to guest users at /srv/samba/share for example,

$ sudo mkdir -p /srv/samba/share

$ sudo chown nobody.nogroup /srv/samba/share

$ sudo chmod 777 /srv/samba/share

After create the share directory, open and edit /etc/samba/smb.conf as follows;

$ sudo nano /etc/samba/smb.conf

uncomment

#security = user

then add the following,

[share]
comment = ubuntu file server guest access share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755

$ sudo /etc/init.d/samba restart

Now, guest can access the share in LAN.

Install vsftpd in ubuntu

posted Jan 27, 2010 4:48 AM by J iNestdia

234 x 60 iPhone 234 x 60 Macbook

vsftpd is a GPL licensed FTP server and the default FTP server in some Linux distributions. It is secure and extremely fast. It is stable.

$sudo apt-get install vsftpd

This will complete the installation.

I have made the modification of vsftpd configuration file as follows;

$sudo gedit /etc/vsftpd.conf

change [anonymous_enable=YES] to [anonymous_enable=NO]

uncomment

#local_enable=YES

#write_enable=YES

then,

$sudo /etc/init.d/vsftpd restart

That’s all.

Install OpenSSH Server in Ubuntu

posted Jan 27, 2010 4:22 AM by J iNestdia

234 x 60 Fashion 234 x 60 uggs

Access my Ubuntu Server remotely in secure manner for some maintenances by installing SSH server. OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.

$ sudo apt-get install openssh-server

This will complete the installation. You can also install the openssh-client to your remote PC as well.

$sudo apt-get install openssh-client

Now,

$ sudo /etc/init.d/ssh start

to start(or restart) the service.

Note: Copy Files Securely over network using SCP

Usage: scp [[user@]host1:]file1 … [[user@]host2:]file2

To copy a file to a remote machine use the following command,

scp /path/file user@remotehost:/path/destination

If you need to copy from the remote host to the local host,

scp user@remotehost:/path/file /path/to/destination

if you need to copy an entire directory full of files to a remote location, use the -r argument

scp -r /path/directory/ user@remotehost:/path/destination/

Configuration of Static IP in Ubuntu Local Server

posted Jan 26, 2010 8:27 PM by J iNestdia   [ updated Jan 26, 2010 8:41 PM ]

468 X 60 Macbook

After Install LAMP Server Locally on Ubuntu 9.10(Karmic), I have to change to a static IP address because Ubuntu installer has configured my system network settings via DHCP. Edit /etc/network/interfaces as follows for example,

$ sudo nano /etc/network/interfaces

(nano is a simple terminal based editor, very easy to use)

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

then restart the network services,

$ sudo /etc/init.d/networking restart

Setup manually DNS servers in resolv.conf file when you are not using DHCP.

$ sudo nano /etc/resolv.conf

#search domain.com
nameserver 8.8.8.8
nameserver 8.8.4.4

By the way, 8.8.8.8 & 8.8.4.4 are the Google Public DNS Service IPs, you can use the DNS IPs at your choice, of cause.

Install LAMP Server Locally on Ubuntu 9.10(Karmic)

posted Jan 22, 2010 6:17 AM by J iNestdia   [ updated Mar 14, 2010 9:04 AM ]

dumb b008 468x60
Nokia G RADAR G Xfun G

When I have Ubuntu 9.10(Karmic) running on my desktop, I like to have a LAMP (Linux, Apache, MySQL and PHP) server up and ready to go in my local network. This makes an environment for testing and experimentation. So I have LAMP server and GUI for the server at same time. You can also install the Ubuntu 9.10 Server Edition with LAMP first and then install the GUI as well. To install LAMP server, opne a terminal,

$ sudo tasksel

Here, I selected the server options as LAMP for installation. At the time of installation it will prompt for mysql server root password,  enter the root password and select continue to finish the installation.

But to setup a home server only using command-line interface this time, I used the Ubuntu 9.10(karmic Koala) Server Edition and setup LAMP during the installation at same time without any problem.

Using phpinfo to check the version information etc about the server after installation. First, create a info.php file at /var/www/info.php as following,

<?php
phpinfo();
?>

In a browser(another PC on the local LAN) enter http://LocalserverAddress/info.php, outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.

phpinfo : Outputs lots of PHP information – reference from php.net

‹ Prev    1-10 of 11    Next ›



TABLET 125x125 nokia b004 125x125

fool b004 125x125 avatat b008 125x125

xray b002 125x125 car b004 125x125

Tiger 125x125 scan b002 125x125

xfx b0004 125x125 Scan B 002 125x125