Blog Maintained by Eniac Technology

  • Tech Facts

    Over 3.8 billion people use the internet today, which is 40% of the world's population.

  • Tech Facts

    More than 570 new websites are created every minute.

  • Tech Facts

    There are over 3.5 billion searches per day on Google.

Sunday, March 29, 2020

How to install and setup Samba Server in Ubuntu/Linux


What is Samba?

Samba is program which allows end users to access and use file, printers and other shared resources over a network. Shared resources can also be accessed by other operating systems like Windows or Mac.

In this Guide we will be installing and configuring samba on Ubuntu server to access a folder through windows and mac.

Requirements

  • Ubuntu 16.04 or higher
  • Local area network to access files across.

If you have all the things ready, let’s begin.

Installing Samba

  1. Before installing samba we will make sure all our repositories are update by using command below
    sudo apt update
  2. Once the update is completed successfully we will be ready to install samba by using

    sudo apt install samba
  3. Optional: To check if the installation of samba is successful or not we can use the command

    whereis samba
  4. It should give you the following output
    samba: /usr/sbin/samba /usr/lib/samba /etc/samba /usr/share/samba /usr/share/man/man7/samba.7.gz /usr/share/man/man8/samba.8.gz

Creating directory and setting up Samba Share

Now that we have installed samba we will be creating a new directory and sharing it across our network

  1. To create a directory we use the command mkdir
    mkdir /home/<your user name>/share
using above command we have created a new directory/folder which we will be sharing, also make sure that <your user name> should be replaced by your username on ubuntu. ie. mkdir home/geeksdice/share
  • To configure samba file we need to go to the path which is etc/samba/smb.conf. To edit the samba configuration file use the below command
    sudo nano /etc/samba/smb.conf
  • Using the above command will open the configuration file and at the bottom of the file the following lines needs to be added in order to share the folder we have created earlier
    [share]
    comment = My first share on Ubuntu
    path = /home/username/share
    read only = no
    browsable = yes
  • To save the file Ctrl+O (press and hold Ctrl button and press O) and to exit use Ctrl+X (press and hold Ctrl button and press X)
  • Once we have successfully saved the configuration file we need to restart samba services by typing
    sudo service smbd restart

    or by using the following command below

    sudo systemctl restart smbd
  • Now in order to access the files from other computers on the network we will need to allow samba through ubuntu firewall, to update ubuntu firewall we will type
    sudo ufw allow samba 
Creating users account for samba

  • In order to access samba we need to create user password as it does not use default username password, to setup samba password for our user we will type
    sudo smbpasswd -a username
Note: Username must be same as your system account else it won’t be saved
Connecting to a share

On Windows: Go to run type the path of your share and press OK

On Ubuntu: Open the file manager type the path and press enter
On MacOS: On the finder menu click Go> Connect to the server type the path and press enter
Below is the a video demonstrating installation of samba server

In this post we have assumed that you already have a Ubuntu/Linux server installed but in case you want us to write a post on how to install samba server, let us know on the comments section below.

Share:

Tuesday, September 11, 2018

Solved: Windows could not complete the installation. To install windows on this computer, restart the installation.

The error we occasionally face while installing windows after adding usb drivers in motherboards for 6th or above generation processor.

This can be resolved by running msoobe.exe from oobe directory in system32 folder.

Step 1: Press and Hold Shift+F10 you will see a command prompt windows opened in your screen reference image below.

Step 2: Type cd oobe and press enter.
Step 3: type msoobe and press enter this will restart the pending installation.

Enjoy 🙂

Share:

Monday, September 10, 2018

How to install and configure Epson PLQ20/30

Although it seems like a headache installing epson PLQ20 which is is actually not, today we will take you thru the easy steps on how to install Epson plq 20/30, we are sure mastering it is not a problem just go thru the video once and it is as easy as it looks like.

Share:

Sunday, August 5, 2018

How to create pdf files directly from word or excel

We have tried to create a quick video to help to install PDF addons in Microsoft office.

Share:

Tuesday, July 31, 2018

How to Create a Bootable Linux/ubuntu USB Flash Drive

In this article we will create a bootable Ubuntu pendrive using a utility tool called rufus.

Requirements.

  1. Ubuntu/Linux ISO file. Click here to download latest version of Ubuntu.
  2. Rufus (Rufus is a utility that helps format and create bootable USB flash drives, such as USB keys/pendrives, memory sticks, etc) Click here to download Rufus.
  3. An 8GB Pendrive (Recommended).

After you have downloaded Ubuntu/Linux ISO follow the below mentioned steps to create a bootable ubuntu pendrive.
1. Run Rufus setup and open it software will open like this.

Select your pendrive in the Device dropbox.
Choose the Ubuntu ISO file you have downloaded in the Boot selection menu.
Change other settings according to the shown image and click start.

Enjoy 🙂

Share:

Error: Windows setup could not configure to run on this computer's hardware.

The below error can be seen during windows installation.

Error: Windows setup could not configure to run on this computer’s hardware.

This error can be resolved by manually running msoobe.exe program and allow the installation to be completed manually.

Please follow the steps below to resolve the above mentioned error.

  1. During the error screen, press F10 which will open up command prompt.
  2. Type cd to exit the current directory.
  3. Type cd c:WindowsSystem32oobe and press enter (this command will take you to the windows oobe directory).
  4. Now type msoobe and press Enter. The installation process will now automatically resume from its previous state.
Enjoy!
Share:

Monday, July 30, 2018

How to check laptop/desktop serial number using Command Prompt (cmd).

Follow the steps below to check serial number of a laptop/desktop using CMD.

  1. Go to run by holding windows + R key.
  1. Type cmd and hit enter.
  2. On command prompt screen type WMIC BIOS GET SERIALNUMBER and hit enter.
Enjoy!
Share:

Sunday, September 10, 2017

How to Change/Install Windows licence key using CMD - Command Prompt.

Installing licence key and activating windows using command prompt.

1. On Start and type CMD and run it as Administrator


2. Type slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX and press Enter.


3. Then type slmgr.vbs /ato and press Enter to activate the licence key.

Share:

Interesting facts about Computers.

Here are few interesting facts about computer we thought you might enjoy knowing.

1. You Cannot create file or folder named “con


2. The world top companies HP, Microsoft and Apple have one very interesting thing in common – they were all started in a garage.

3. Only around 10% of the world’s currency is physical money, the rest only exists on computers. :O

4. The first ever computer mouse was made of wood. Crazy!

5. Humans blink 20 times a minute, but did you know while using computer we blink only 7 times a minute. Concentration xD.


Share:

How to Share a printer on a Home/Work network in windows 7.

Having multiple computers in a premises doesn’t mean you have to have printers individually for every computer.

In this post we will show you how to share printer between multiple Computers on the same network.

The first most important thing here is you must be on same network group from each computer, before sharing printer we will learn how to put all your systems in same network and will setup file and printer sharing.

Configuring all computers in same network group

(we will take work group as an example).

1. Go to Start and type Network and Sharing and open Network and Sharing Center.


2. Select Work Network as your network group
a. 

b. 

Note: All your computers should be on same network group.

Configuring File and Printer Sharing Settings

1. On Network and Sharing Center click on Change Advance Sharing Settings
2. In Advance Sharing Settings Click on the down arrow which will expand Home/Work Profile and Turn on file and Printer Sharing

3. Once done click on Save Changes your are now ready to share your printer.

Sharing a Printer

  1. Click on Start in the bottom left corner of your screen. A popup list will appear.

  2. Click on Devices and Printers, from the popup list.

  3. Right click the printer you want to share. A dropdown list will appear.

  4. Select Printer properties from the dropdown list.
  5. Click on the Sharing tab and select the Share this printer check box and press OK.
In order for other people to connect to the printer, they just have to add the network printer that you just opened for sharing to their computers. Here’s how to do this.
  1. Click on Start in the bottom left corner of your screen. Go to Devices and Printers from the popup list.
  2. Select Add a printer.

  3. Click on Add a network, wireless or Bluetooth printer.
  4. Click the shared printer.
  5. Click Next and Continue according to the instructions on the screen.

Hope this helped you, If you have any questions/queries regarding printer sharing leave us a comment below.


Share:

About US

Geeksdice.com is a technology blog maintained and run by Eniac Technology. At Eniac we provide Information Technology services.
Powered by Blogger.

Search This Blog