biebers1

RPi VNC Server


What does it do?

Sometimes it is not convenient to work directly on the Raspberry Pi. Maybe you would like to work on it but from another computer by remote control. You can do this and the remote computer can even be anywhere in the world over the internet. This tutorial shows how you can view and control the raspberry pi desktop from your computer’s desktop by using special software.

What do you need?

  • A Raspberry Pi
  • A boot SD card for the Raspberry Pi
  • A network connection (Ethernet or WiFi)
  • Special software on both the Raspberry Pi and the remote, controlling computer

What skill level is required?

This project does not require any coding or compilation. Very basic Linux and networking knowledge would be useful, but not essential.
You need to…
  • Install software
  • Enter basic Linux commands
  • Use standard software tools (Windows/Linux/Mac) to add software to your PC
  • Connect computers using ethernet cables

How does it work?

The commands described below start a “virtual” graphical session. Instead of using a hardware framebuffer, this uses RAM for a framebuffer. It also opens a network channel or port that allows programs on other computers (if they provide the password) to show the framebuffer and provide mouse and keyboard events.
This way you can run a desktop session on the raspberry pi, but display and control it elsewhere.
Because the framebuffer isn’t the real framebuffer you cannot take advantage of the GPU to accelerate operations on the screen.

Overview of this project

You need to
  • Install VNC (Virtual Network Computing) server software on the Raspberry Pi
  • Start the VNC server software
  • Install a VNC client on another computer
  • Connect over a network from your computer to the Raspberry Pi

Instructions

Log in to your Pi and install the Tight VNC Package
$ sudo apt-get install tightvncserver
Next Run TightVNC Server which will prompt you to enter a Password and an optional View Only Password
$ tightvncserver
Once that is done you can start a VNC server from the shell prompt. This example starts a session on VNC display zero (:0) with full HD resolution:
$ vncserver :0 -geometry 1920x1080 -depth 24
(If fonts appear the wrong size, add ‘-dpi 96’ to the end.) Or you could create a script to save typing in the whole thing.
$ nano svnc.sh (call the file whatever you like)
Add the lines:
#!/bin/sh
vncserver :0 -geometry 1920x1080 -depth 24 -dpi 96
Ctrl-x y <return> (To Exit Nano and Save)
Set the file to Execute
$ chmod +x svnc.sh
then to run
$ ./svnc.sh
Run at boot.
Start a root session
sudo bash
Create a file in /etc/init.d with a suitable name such as vncboot with the following content.
### BEGIN INIT INFO
# Provides: vncboot
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VNC Server at boot time
# Description: Start VNC Server at boot time.
### END INIT INFO

#! /bin/sh
# /etc/init.d/vncboot

USER=root
HOME=/root

export USER HOME

case "$1" in
start)
echo "Starting VNC Server"
#Insert your favoured settings for a VNC session
/usr/bin/vncserver :0 -geometry 1280x800 -depth 16 -pixelformat rgb565
 ;;

stop)
echo "Stopping VNC Server"
/usr/bin/vncserver -kill :0
 ;;

*)
echo "Usage: /etc/init.d/vncboot {start|stop}"
exit 1
 ;;
esac

exit 0
Modify the file permissions so it can be executed
chmod 755 /etc/init.d/vncboot
Enable dependency based boot sequencing
update-rc.d /etc/init.d/vncboot defaults
If enabling dependency based boot sequencing was successful, it says
 update-rc.d: using dependency based boot sequencing
But if it says
update-rc.d: error: unable to read /etc/init.d//etc/init.d/vncboot
then try the following command
update-rc.d vncboot defaults
Reboot your Raspberry PI and you should find a vncserver already started.
Install Tight VNC on your desktop from the link below or most VNC clients work I believe.
http://www.tightvnc.com/download.php
Or install it using your package manager. The following works on my ubuntu 11.10 workstation
sudo apt-get install xtightvncviewer
Then use <Your Pi IP>:1 (e.g. 192.168.1.2:1) as the host name when connecting.[1]
Works Great, select full screen from the tool bar and a full 1080p 24bit desktop is yours from anywhere.
  1.  You can put your raspberry pi in /etc/hosts on Linux systems. I think you can make such a file on windows too. Then you can refer to your raspberry pi as “rpi” or whatever you called it.

Getting VNC Server to Work on a Specific User

Instead of using the script in the Raspberry Pi wiki, use this one provided by “PenguinTutor”:
#!/bin/sh
# /etc/init.d/tightvncserver
# Customised by Stewart Watkiss
#http://www.penguintutor.com/linux/tightvnc
# Set the VNCUSER variable to the name of the user to start tightvncserver under
VNCUSER='pi'
eval cd ~$VNCUSER
case "$1" in
start)
su $VNCUSER -c '/usr/bin/tightvncserver :1'
echo "Starting TightVNC server for $VNCUSER "
 ;;
stop)
pkill Xtightvnc
echo "Tightvncserver stopped"
 ;;
*)
echo "Usage: /etc/init.d/tightvncserver {start|stop}"
exit 1
 ;;
esac
exit 0
Now, change the VNCUSER=pi to your desired username, so for example: VNCUSER=jsmith
That’ll make it boot on the username of which you want it to boot on… but I then received the grey screen error when remotely accessing the Pi from my computer, now the way you fix this is, open up the xstartup file that was created when VNCSERVER executes on your desired username. Now the way you access it and edit it is by:
sudo nano .vnc/xstartup 
.vnc is usually in the home directory.
Delete everything that is in xstartup (or not in as mine was), and add this:
!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid black
/usr/bin/lxsession -s LXDE &
Now it should work.

Does Your Openbox Configuration Settings Not Start on VNC?

You’ll often find yourself in a position where VNC will start, but you’ll get things such as multiple virtual desktops appearing, and you try to save it in the “Openbox Configuration Manager,” and they go away for a second, but then you find you’ll restart the Pi and then they appear again. Here’s how to fix it:
Create, or edit the current autostart.sh file which is located in:
.config/openbox/autostart.sh
Edit using “Nano” or any other text editor, I use Nano as it is the most comfortable for me, so do:
sudo nano .config/openbox/autostart.sh/
Add the line: exec openbox-session
Now add the line exec openbox-session again in .vnc/xstartup and now it should work.
But you can’t really save the setting in Openbox Configuration Manager on VNC, but you have to do it manually; so you open this file:
nano .config/openbox/lxde-rc.xml
Scroll down to: <desktops>
You should see a bunch of stuff there, but only focus on this: <number>6</number> or something similar.
Change the number of desktops you want within the <number></number> bit.
I changed mine to 1, because that’s all I want.
It should now work!

Limitations and Alternatives

In this example TightVNC has been used. This is a popular and relatively friendly program that uses the VNC protocols and is included in most GNU/Linux distributions. However it does have it’s limitations. The biggest of these is that it creates new desktops for each connection. It may be that what you want to do though is view and control the same desktop that shows on the monitor/TV plugged into the Raspberry Pi. To do this a better tool to use is x11vnc. This is more powerful but less easy to use. However if you already have a desktop running it will latch on to it and share it as a default. This too is fairly popular and included in many GNU/Linux distribution repositories such as Raspbian.

Security Considerations

Be aware that basic VNC is not secure. It is not encrypted unless you are advanced in setting it up. If you use it over the internet it can result in criminals “bouncing” you off your connection and taking over. There are even computer robot tools that try to do this. You must set a password but even then it is sometimes possible to take over someone’s connection after they have entered it. A good tip is to set the server to shift from the default port 5900 to something else chosen randomly as long as it is spare.

Raspberry PI as a seedbox alternative storage with openVPN

  1. Believe it or not, seed box users are notorious about hit & running. They stick around for the initial swarm, and then seed for less than a month on that connection because hdd space is limited. This is where long seeding comes in for ‘natural’ seeders. The longest seeds are generally non box users. They may be a seed box user seeding from his home connection, but generally old seeds are natural.

    Seed for ages and upload fresh content.

You are right, we seed box users have to manage the HD space and that usually means having to delete older stuff to make room. This is the reason I added a raspberry pi at home with a 2TB drive for the sole purpose of long term seeding.

I use the the PI to augment my seedbox. My seedbox provider (Feral) offers openvpn as part of the service. By using the VPN both my seedbox and my PI have the same IP address so security is the same. The difference is, as others have already stated, speed. My home speed is nowhere near what my seedbox provides but it provides a lot more HD space for long term seeding. This is really handy on trackers that offer seeding bonuses.

ESET SMART SECURITY : How do I exclude certain files or folders from real-time scanning?

KB Solution ID: SOLN560|Last Revised: September 20, 2012

File-level scanning of some email servers, backup software, gaming applications, etc. can occasionally cause abnormal system behavior. To exclude specific applications or folders from the real-time scanner, follow the step-by-step instructions below:
  1. Open ESET Smart Security or ESET NOD32 Antivirus. How do I open my ESET product?
     
  2. Press the F5 key to display the Advanced Setup window.
     
  3. From the Advanced Setup tree, click Antivirus and antispyware  Exclusions and then click the Add… button.
     
      

    Figure 1-1
  4. The Add exclusion window will be displayed. Using the directory tree, browse for the folder or file you wish to exclude. The directory path will automatically display In the Exclusion: field. Click OK to save the exclusion.

    NOTE:

    To exclude the contents of an entire drive, the * symbol can be used as a wildcard. For example, to exclude scanning of the entire C: drive, you would enter C:* in the Exclusion: field. To exclude all .doc files from scanning, you would enter C:*.doc in the Exclusion: field. For additional information on the use of wildcards to exclude file/folder scanning, press F1 from the Add exclusion window.




    Figure 1-2
  5. Click OK again and close the main program window. Restart your computer.

NOTE:

If the application you are excluding communicates using a network protocol (HTTP, FTP, etc.) you must also follow the steps below:
  
  1. From the Advanced Setup tree, click Antivirus and antispyware  Web access protection  HTTP  Web browsers.
     
  2. If the application you wish to exclude is listed, double-click the corresponding check box. A red ‘X’ will appear. ClickOK to save changes—you are finished. If you do not see the application you are trying to exclude, proceed to step 3.
     
      

    Figure 1-3
  3. Click the Add button to browse and select the .exe file of the desired application. The application will appear in the list of applications to exclude. Double-click the corresponding check box until you see a red ‘X’. Click OK to save changes.

Deluge Thin Client

  1. GTK UI
    1. Server Setup
      1. Enable Remote Connection
      2. Restart Daemon
      3. Verify IP Addresses
    2. Client Setup
      1. Create SSH Tunnel
  2. Web UI
    1. Server Setup
    2. Client Setup
Deluge can be setup in such a way that several machines (clients) can control deluge (daemon) on a central machine (server) through one of deluge’s UI. For Deluge 1.2 upwards, all communication between the GTK UI and daemon is encrypted so SSH tunnelling is not a requirement.
The server setup sections are written for a headless linux server although they could be adapted for other platforms. The client setup sections are platform independent.
Note: Both the client and the server need to be similar versions, i.e. both 1.2.x or both 1.3.x.

GTK UI

Server Setup

  1. Install Deluge (including deluged) on the server.
  2. Run deluged, the Deluge daemon: (You may wish to enable logging and/or use an InitScript)
    deluged
  3. Add a user and password to the authentication file (this does not have to be your server’s user/pass):
    echo "username:password:level" >> ~/.config/deluge/auth

    where “username” and “password” are the username and password you intend to use and “level” is your desired authentication level. For example:

    echo "bob:letMEin:10" >> ~/.config/deluge/auth

See UserGuide/Authentication for more information on authentication levels.

Enable Remote Connection

We will use deluge-console to configure deluged to accept connections from machines other than localhost.
Note: These steps can be omitted if you are using SSH Tunnelling.
  1. Run the Console UI:
    deluge-console
  2. Enable remote connections and check it was set properly:
    config -s allow_remote True
    config allow_remote
  3. Exit the Console UI:
    exit

Restart Daemon

pkill deluged
deluged

Verify IP Addresses

You will need to know the server IP address for setting up the client(s). If you do not know your server’s private or public IP address use these commands:
  1. Private IP:
    ifconfig | grep -e 'inet addr' | grep -v '127.0.0.1' | cut -f2 -d':' | cut -f1 -d' '
  1. Public IP:
    curl ifconfig.me
Congratulations! The server is now setup for remote GTK UI access.

Client Setup

  1. Run deluge.
  2. Go to “Preferences -> Interface” and untick ‘Classic Mode’ to disable it.
  3. Restart deluge. You should now see the Connection Manager pop up.
  4. Remove the localhost daemon.
  5. Click “Add” and for ‘Hostname’ enter your server’s IP. (For SSH Tunnelling use ‘127.0.0.2’ and Create SSH Tunnel before continuing)
  6. Leave the Port as default (58846).
  7. Enter the Username & Password you added to the authentication file then finish by clicking ‘Add’. A green tick should now appear as the status for the host you just added.
  8. (Optional) Expand “Options” and select “Automatically connect to selected host on startup” and “Do not show this dialog on start-up”.
  9. Click “Connect” and the connection manager pop up box should disappear.
Congratulations! You can now access deluge on the server via the GTK UI.

Create SSH Tunnel

  1. Open up a terminal and enter the following, replacing <server> with the public IP of your server.
    ssh -fNL 127.0.0.2:58846:localhost:58846 <server>

Note: We use 127.0.0.2 instead of localhost so that deluge client knows that we are connecting to a remote daemon.

Note: If you get the error:

bind: Can't assign requested address

You need to add 127.0.0.2 as an alias for the loopback device:

sudo ifconfig lo0 add 127.0.0.2

Web UI

Server Setup

  1. Install Deluge on the server.
  2. Run the deluge daemon (You may want to enable logging and/or use an InitScript.):
    deluged
  3. Run deluge Web UI:
    deluge-web

    You can also use the –fork option to have the deluge-web process run in the background and again, you may want to use an InitScript.

    deluge-web --fork
  1. (Optional) If you do not know your server’s public ip, run:
    curl ifconfig.me
Congratulations! The server is now setup for web UI access.

Client Setup

  1. Open your preferred web browser.
  2. Open the URL:
    http://<server>:8112

    where <server> is either the private or public ip of the server depending if you are on the server’s private network or not.

  1. Default password is “deluge”.
Congratulations! You can now access deluge on the server via the web UI.

Kill process in Linux or terminate a process in UNIX or Linux systems

Q. How do I kill process in Linux?
ALinux and all other UNIX like oses comes with kill command. The command kill sends the specified signal (such as kill process) to the specified process or process group. If no signal is specified, the TERM signal is sent.

Kill process using kill command under Linux/UNIX

kill command works under both Linux and UNIX/BSD like operating systems.

Step #1: First, you need to find out process PID (process id)

Use ps command or pidof command to find out process ID (PID). Syntax:
ps aux | grep processname
pidof processname
For example if process name is lighttpd, you can use any one of the following command to obtain process ID:
# ps aux | grep lighttpdOutput:
lighttpd  3486  0.0  0.1   4248  1432 ?        S    Jul31   0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
lighttpd 3492 0.0 0.5 13752 3936 ? Ss Jul31 0:00 /usr/bin/php5-cg
OR use pidof command which is use to find the process ID of a running program:
# pidof lighttpdOutput:
3486

Step #2: kill process using PID (process id)

Above command tell you PID (3486) of lighttpd process. Now kill process using this PID:
# kill 3486
OR
# kill -9 3486
Where,
  • -9 is special Kill signal, which will kill the process.

killall command examples

DO NOT USE killall command on UNIX system (Linux only command). You can also use killall command. The killall command kill processes by name (no need to find PID):
# killall -9 lighttpd
Kill Firefox process:
# killall -9 firefox-bin
As I said earlier killall on UNIX system does something else. It kills all process and not just specific process. Do not use killall on UNIX system (use kill -9).
by  on AUGUST 1, 2006 · 84 COMMENTS· last updated at AUGUST 22, 2007

CONFIGURE SAMBA SHARING BETWEEN UBUNTU AND WINDOWS

Install Samba on Ubuntu 12.04/11.10/11.04/10.10/10.04/Linux Mint/other Distro’s and share files with samba from Ubuntu to Windows and Windows to Ubuntu

I wrote tutorials on samba sometime ago but some peoples found that is not useful for them or the method couldn’t work properly for them, I also made video on samba sharing.

Now I made complete tutorial on samba configuration to share you data from Ubuntu to Windows and also Windows to Ubuntu, Its mean you can access your Ubuntu shared data from Windows and Windows Shared data from Linux Ubuntu with/without permissions. Permission is up to you, if you want to set permission or not.

Install Samba on Ubuntu/Linux Mint open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:

  • sudo apt-get install samba samba-common
  • sudo apt-get install python-glade2
  • sudo apt-get install system-config-samba


I made this tutorial on Ubuntu 10.04 LTS and Windows 7, It is working on all Ubuntu versions and all Windows Versions.

Method 1: How to access Ubuntu/Linux shared data from Windows
Method 2: How to access Windows shared data from Ubuntu/Linux

>> First of all How to access Ubuntu Shared Data from Windows.

Now go to Dash and search for ‘Samba‘ then open it. As shown in picture.

samba


When Samba Server Configuration open, Click on ‘Add +’ button then click on browse >home >select user.

Ubuntu samba


Now go to ‘Access‘ tab and select username from which you want to access sharing.

linux samba


Now set password on your selected username for samba sharing. Enter following command to set password (change noobslab with your selected username).

  • sudo smbpasswd -a noobslab
mint samba


Now right click on Folder which you want to share on network, then select ‘Sharing Options

Windows samba


Here is Folder Sharing options, You can choose and write whatever you want to do. Then click on ‘Create Share

install samba


Now open Terminal and enter following command to know your local network ip. (See the picture below and see red marks)

  • ifconfig

Note your Ubuntu/Linux Machine IP Address

samba


It’s time to access your sharing on Windows, Now go to start and open ‘Run‘ then enter ip with double backslash. Like this (\192.168.1.3)

samba sharing


Now sharing will open, Now click on shared folders then windows will ask for samba username and password. You can share without username and password it’s up to you.

samba


When you enter the username and password your shared folder will open. You can write/delete/modify whatever you want to do (It’s up to your permission implementations).

samba

That’s it.


>> Second How to access Windows Shared Data in Ubuntu

In Windows right click on folder which you want to share on network, Then click on ‘Advanced Sharing’ or ‘Sharing’.

share samba


Select your Username or Everyone, I chose my username cause I want sharing restrictions.

ubuntu samba


Now click on ‘Permissions‘ button and select options as you want.

samba


Now it’s time to check your network ip, open Command prompt or go to ‘Run‘ type ‘cmd‘.
In Windows Command Prompt write following command to know your local network ip.(See Picture Below)

  • ipconfig

Note your IP Address.

linux samba


Now go to Ubuntu, Open File Browser>File Menu > ‘Connect to Server

install samba


Select ‘Windows Share‘ in Service type and Enter Windows IP Address in ‘Server‘ then click on ‘Connect’

samba


Enter your Windows Selected Username and Password, then click on ‘Connect’. (Not Samba username Password)

samba


After connect you’ll see folders, open your shared drive/folder and enter Windows username and password again. (Not Samba username and password)

samba


Here sharing is accessed, You can write/delete/modify whatever you want to do (It’s up to your permission implementations).

samba share

That’s it. Enjoy 

LFTP – Multi-Segmented Linux FTP

Disclaimer: The process in this article may seem complicated and slow, but it is designed for you to learn the basics first. The final section of the article is dedicated to making things easier and faster for everyday use. So, please don’t give up early.

Installing

Windows

Install lftp, OpenSSH, and OpenSSL from the Net category in Cygwin

Linux

Install lftp with your package manager, something like: sudo apt-get install lftp
Note: lftp is installed on your Whatbox slot by default. You can use it to transfer between your slot and other ftp servers (e.g. another seedbox). Just connect to your slot using SSH and use it as normal.

Connecting to Whatbox

  1. Open your terminal (Cygwin Terminal for Windows users). You will see a window that looks similar to below.
  2. Start lftp and connect to Whatbox. Type lftp sftp://[email protected]. Enter your password at the prompt. lftp keeps your password hidden, so it’s easiest to paste with the right-click menu.
  3. Now type ls in the terminal to show a listing of your home directory. Since most users will want to start in their files directory, type cd files to navigate there for the next step.
  4. (optional) If you want your password to be saved when you create a bookmark, use the command set bmk:save-passwords true now.
    bookmark add Whatbox will save a bookmark to your slot named Whatbox. You can use bookmark list to make sure it saved properly. This allows you to use lftp Whatbox to open a connection to your slot instead of having to type out the address.

Local and Remote Navigation

Note: I have set up directories and files for demonstration. You can set things up like I have for practice, if you like, or replace them in the commands with your own.
  1. You’ve used cd to go down one level into a directory. You can use cd .. to go up one level. Typels to see that you’re back in your home directory.
  2. Next, you’ll use cd to navigate directly to a directory more than one level away. cd ~/files/Video brings me into the directory I set up.
  3. Now to navigate to directories on your computer with the lcd(read: local cd) command. The directory structure will be different on Linux than with Cygwin. On Linux, simply type lcd /path/to/directory. With Cygwin, if you want C:Download you would type lcd /cygdrive/c/Download. To list what’s in the current local directory, add an exclamation point to the ls command like !ls.

Transfers

  1. There are two main commands used for downloading: pget for files and mirror for directories.
  2. There are two main commands used for uploading: put for files and mirror -R for directories.
  3. To cancel a transfer, use Ctrl+c
  4. To resume partially downloaded files/directories, you will use the -c switch: mirror -c Directory pget -c Video1.mp4 put -c Video1.mp4

Segmented Downloading

Note: This guide uses 5 segments as an example. You may use as many as needed or desired.
  1. pget command using segmentation is pget -n 5 Video2.mp4, where 5 is the number of segments.
  2. mirror command using segmentation is mirror --use-pget-n=5 Directory, where 5 is the number of segments.
  3. You can use jobs -v to see the speeds of the individual segments as well as the total speed.

Queues and Jobs

  1. The queue command will allow you to transfer files/directories while still being able to browse. The basic command to queue a file transfer will look like queue pget Video1.mp4. To transfer entire directories, queue mirror Directory. This adds them to your transfer queue and automatically starts the transfer if ready.
  2. Use queue alone to display your transfer queue. The jobs command displays your current transfers and transfer queue with more detail.
  3. You can stop your queue from automatically transferring by using queue stop. This can be used before adding anything to your queue to prevent immediate transfer. queue start will start your queued transfers. To delete a transfer from your queue, add the -d switch like queue -d #, where # is the queue number listed by jobs or queue
  4. To stop and delete a running transfer, use the kill command. If you set lftp to allow multiple transfers simultaneously, kill #, where # is the number listed by jobs, will stop and delete the specified transfer. kill all will stop and delete all transfers.

Configuration and Aliases

Now to make it quick and easy, we’ll set up some aliases. Aliases allow you to make shortcuts to commands.
  • In Linux, find your lftp.conf file. It should be in /etc.
  • In Windows, open the etc directory where you installed Cygwin (C:Cygwin by default) and open lftp.conf.
  • Go to the end of the file and add some or all of these example aliases. Modify them to fit your needs.
Some examples from this guide with those aliases applied:
lcd /cygdrive/c/Download becomes down
queue pget -cn 5 Video1.mp4 becomes q p Video1.mp4
queue mirror -c --use-pget-n=5 Directory becomes q m Directory
For full command help and settings, see the lftp man page.

Tips and Tricks

  • The Tab key autocompletes file and directory names. It also autocompletes commands.
  • Files and directories with spaces or special characters need special handling. The easiest method is to put quotes around the file/directory names.
  • You can cycle through peviously used commands with the Up and Down arrow keys.
  • To quit lftp, type exit. Then type exit again to close the terminal.

How to install Linux / UNIX *.tar.gz tarball files

Q. I’m new to Linux. Over few days I found lots software distributed as .tar.gz file. How do I install tar.gz files under Linux?
A. tar.gz also known as tarball, an archive format for electronic data and software. Most Linux tarball contains a source code for software. If you are new to Linux I recommend using apt-get, rpm and yum command to install all binary packages.
Tarballs are a group of files in one file. Tarball files have the extension .tar.gz, .tgz or .tar.bz2. Most open source software use tarballs to distribute programs/source codes.

# 1: Uncompress tarball

To uncompress them, execute the following command(s) depending on the extension:
$ tar zxf file.tar.gz
$ tar zxf file.tgz
$ tar jxf file.tar.bz2
$ tar jxf file.tbz2

Now change directory
$ ls
$ cd path-to-software/

# 2: Build and install software

Generally you need to type 3 commands as follows for building and compiling software:
# ./configure
# make
# make install
Where,
  • ./configure will configure the software to ensure your system has the necessary functionality and libraries to successfully compile the package
  • make will compile all the source files into executable binaries.
  • Finally, make install will install the binaries and any supporting files into the appropriate locations.

# 3: Read INSTALL / README file

Each tarball comes with installation and build instructions. Open INSTALL or README file for more information:
$ vi INSTALL
by  on JUNE 18, 2007 · 203 COMMENTS· last updated at JUNE 18, 2007

    Setup OpenSSH Server on Ubuntu Linux

    Setting up an SSH server on Ubuntu is about as simple as it gets. The server of choice is OpenSSH.

    Run this command from a terminal window:
    sudo apt-get install ssh
    To test that it’s working, you can try to ssh into your own machine:
    > ssh localhost
    The authenticity of host ‘localhost (127.0.0.1)’ can’t be established.
    RSA key fingerprint is 98:8a:b8:b2:9e:8a:84:e0:d4:08:27:fb:74:f0:de:d4.
    Are you sure you want to continue connecting (yes/no)?
    Looks like it’s working! Naturally our ssh client doesn’t have the key for the server, since we just installed it. You can type yes to continue or just hit Ctrl-C to stop.