Using System Rescue CD to Share a Mounted Folder

System Rescue CD is an essential tool for system and data recovery. I typically use it for recovering files off fail(ing) or damaged hard drives from multiple types of systems: Windows, QNAP and OSX etc.

System Rescue CD

Download System Rescue CD here.

Find the partition to mount with:

fdisk -l

or use the graphical application gparted from the GUI (use the command startx to switch to the GUI from the command line).

The following assumes we have a NFTS partition on /dev/sdc1

First mount the partition and make it fully accessible:

mkdir /mnt/sdc1

mount /dev/sdc1 /mnt/sdc1

chmod 777 /mnt/sdc1

At this point we should be able to access the files on the Windows drive e.g

ls /dev/sdc1

Now I want share this entire drive so I can access it from any machine on the local area network.

Create the file /etc/samba/smb.conf.default

** Check this maybe filename is just /etc/samba/smb.conf

nano /etc/samba/smb.conf.default

Add the following and save (CTRL+X):

[public]
path = /mnt/sdc1
public = yes
writable = yes
printable = no
browsable = yes

Next we need to give the root user a password using:

pdbedit -a -u root

Start the Samba server with:

service samba start

Find the IP address of the machine using:

ifconfig

Now you should be able to access the share from any client computer on the same network.

Assuming the computer running System Rescue CD is at ip address 192.168.1.100 then drive should be available at the following UNC path:

\\192.168.1.100\public

or using “Connect to Server” option in Finder on the Mac:

smb://192.168.1.100/public

 

Installing Ubiquiti Unifi Controller on Debian Linux

The Ubiquiti UniFi controller is pre-packaged for installation on Debian and Ubuntu.

ubiquiti-unifi-review

Download the latest version from https://www.ubnt.com/download/unifi/

At the time of writing this is “UniFi v4.8.15 Controller for Debian/Ubuntu Linux”

Using the command prompt:

cd ~/Downloads

Install the downloaded file:

sudo dpkg -i unify_sysvinit_all.deb

This will fail due to missing dependancies, fix with

sudo apt-get -f install

Then re-install with

sudo dpkg -i unify_sysvinit_all.deb

Check the Unify service is running:

sudo service unify status

Screen Shot 2016-04-30 at 07.13.10

You should now be able to access the controller from a web browser on the local machine (ignore security warnings due to self-signed certificate):

https://localhost:8443

After completing the initial setup wizard you will be able to log in to the controller web interface as usual:

Screen Shot 2016-04-30 at 07.14.11

 

Installing Google Chrome on Debian Linux with Remote Desktop

Login as a normal user (who  as sudo rights).

Open the default Debian Iceweasle web browser and navigate to the Chrome Download site:

vm1

Click Download

Select 64bit .deb (For Debian/Ubuntu)

vm2

Click Accept and Install

This will actually download the installation file

google-chrome-stable_current_amd64.deb

Choose to save the file.

Open Terminal

cd ~/Downloads

sudo dpkg -i google-chrome-stable_current_amd64.deb

This will fail.. so next get the missing dependancies with:

sudo apt-get -f install

Now repeat:

sudo dpkg -i google-chrome-stable_current_amd64.deb

Chrome will now be installed (note that cannot use the browser when logged in as root??)

vm3

Install Chrome Remote Desktop on Debian

Open the Chrome browser and sign in to the account.

Add the “Chrome Remote Desktop” app into Chrome if not already installed.

Download the Chrome Remote Desktop from:

http://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb

Open Terminal

cd ~/Downloads

sudo dpkg -i ~/Downloads/chrome-remote-desktop_current_amd64.deb

This will probably fail due to missing dependancies, fix with:

sudo apt-get -f install
sudo dpkg -i ~/Downloads/chrome-remote-desktop_current_amd64.deb

Next we need to create a file that defines the graphical environment. I’m using LXDE.

Create a file called .chrome-remote-desktop-session in your home directory.

cd ~
nano .chrome-remote-desktop-session

Add the following:

exec /usr/bin/startlxde

See https://support.google.com/chrome/answer/1649523?hl=en-GB for details of getting other desktop environment settings.

Reboot the computer.

Open the Chrome Browser a remote Desktop

Click the “My Computers” -> “Access your own computers from anywhere” -> “Get started”

Scroll down to the bottom of the page and you should see “Enable remote connections”

vm4

Click and enter the remote access PIN number.

You will now be able to access the machine from any other Chrome Remote Desktop app when signed into your Google Chrome account.