Samba can be installed by running:
apt-get install samba
Samba allows you to share a directory on your Linux filesystem with your Windows machine. In the /etc/samba directory, there is an smb.conf.user file that is used for any Samba extensions that you'd like to make to share additional directories. By default, you should have your home directory set up as a samba share in smb.conf. It's in there as the [homes] clause, but the actual share name is the same as your username (ex. \\mylinuxservername\dkirkdorffer). If you are connecting for the first time, you will have to set the samba password using following command:
sudo smbpasswd -a dkirkdorffer
You will be prompted to enter a new password; this will be the password to use when connecting to your Linux box from your Windows box.
[dkirkdorffer]
path = /home/dkirkdorffer
read only = no
valid users = dkirkdorffer
create mask = 0644
browsable = no
If you want to have access to the root of your linux drive, you can edit the /etc/samba/smb.conf.user file and add this snippet (modify the username to your username):
[root]
path = /
read only = no
valid users = dkirkdorffer
create mask = 0644
browsable = no
This will enable you to access the root of your linux drive using the alias “root” (ex: \\mylinuxservername\root)
Start (or stop and restart) the smbd daemon (at /usr/sbin) like so:
/usr/sbin/smbd start /usr/sbin/smbd stop /usr/sbin/smbd restart
.ssh/known_hosts file. One way to do this is: 'ssh <user>@<cvs_hostname>'. Failing to do this will make Cervisia ask for a password and then terminate the checkout with the error “Host key verification failed”.
You can start the VNC Server by running ./startvnc.sh or ./startvnc4.sh. VNC Viewer can then be installed on your Windows system, allowing you full access to your Linux system from Windows (or another Linux system). You can override the default geometry of the VNC window created by the server by altering the shell script like this:
#!/bin/sh vncserver -geometry 1580x1100 -depth 24 nohup vncconfig -nowin > /dev/null 2>&1 &
or
#!/bin/sh /usr/bin/vnc4server -geometry 1220x830 -depth 24 nohup /usr/bin/vnc4config -nowin > /dev/null 2>&1 &
An .vnc/xstartup file is also used and if using KDE can be setup as so
#!/bin/sh vncconfig -nowin & startkde &
Set the password by by running vncpasswd, vnc4passwd or tightvncpasswd, depending on your version of VNC.
The default starting port for VNC is 5901 (or 5801 through a web browser), additional instances of VNC will increment this number by 1 (so 5902 for the second one). You can find what port it's currently running on by running:
ps -ef | grep vnc
and looking for the ”rfbport” parameter. Alternatively, look in the ~/.vnc directory at the log file.
TightVNC and RealVNC are both provide good client viewers, and VNC servers.