Thursday, August 30, 2018

How to Create a Share Directory in Linux

How to create a SAMBA user in Linux

We should have a user account in Linux System to use SAMBA service.

Note:
* You should have root privileges to create a new Linux or SAMBA user

Then, first of all, we have to create a Linux user account using the following command using Linux terminal.

Note:
*If you already have a user account created on the Linux system, you can skip the Linux user creation part below and proceed with the add samba user account.

[root@buddhika ~]# useradd newuser
User's directory automatically creates when we add a user to the system.

Create a password for the new user you just created
[root@buddhika ~]# passwd newuser

To create a SAMBA user you have to follow the following steps
[root@buddhika ~]## smbpasswd -a chathuhansa

Note;
The -a option to add a new SAMBA user to the Samba password list.If you want to modify the existing password for SAMBA users you have to pass command without option -a. Like below

If you want to reset the password you can follow this command (Without -a option)
[root@buddhika ~]#smbpasswd chathuhansa

After the user creation steps, we have to access allow to the directory (Folder) samba share in the /etc/samba/smb.conf configuration file to allow the new user to operate share directory.

[root@buddhika ~]#vi  /etc/samba/smb.conf
# Chathuhansa's Share directory
        [Chathuhansa's Share]
        comment = Chathuhansa's Share directory
        path = /home/chathushansa
        public = yes
        writable = yes

After the above configuration, we have to start/restart/reload service. However, following commands, we can use for the first or initial configuration. If you wish to read furthermore about services read from Redhat official site. 
Note;
Not enough  start/restart/reload service. We should set the service to start when turn on the computer.

[root@buddhika ~]#systemctl start smb.service
[root@buddhika ~]#systemctl enable smb.service

To delete SAMBA user

We can delete SAMBA user without affecting Linux user account.
[root@buddhika ~]## smbpasswd -x chathuhansa

But, Further, if you want to delete SAMBA user with the linux user and the directory you should type following command.

[root@buddhika ~]## userdel -r chathuhansa







Thursday, March 20, 2014

Popular Linux Software




  • Fedora
  • Another pivotal Linux distro with new release every year. It brings on the table what cutting edge Linux has to offer and is great for productivity purpose. I found Fedora to be highly stable and offer good performance. Fedora helps me to keep track of the latest happening in Redhat stable. Fedora comes in all flavors: Gnome, KDE, XFCE and LXDE.

    • Ubuntu Clan 
    Primary differences are in the desktop used and the application bundle provided. Ubuntu uses Gnome, Kubuntu KDE, Xubuntu XFCE & Lubuntu LXDE. LXDE & XFCE are lighter than Gnome or Kubuntu. Edubuntu is Ubuntu with educational apps & Ubuntu studio is Ubuntu specialized for multimedia editing and creation.
    • Debian
    The father distro of Ubuntu, Mint and other derivatives. Normally it is classified as "for advanced linux users". I am not a technical geek in any sense but currently running my P4 PC with Debian Squeeze 6.0.5. Debian has both stable (denotes tested & proven release, recommended by Debian), testing (on the way to become stable), unstable (in active development). Current stable distribution is Squeeze, testing is Wheezy and unstable is Sid. 
     
    • Linux Mint
    Mint, of late, is giving Mate & Cinnamon as well as XFCE as desktop environments which in turn are derived from Gnome 2 & 3 respectively. Essentially this is an Ubuntu derivative with a lot of features packed inside. I found it to work on any system.
      • ArchLinux clan
    Arch itself with a derivatives like Manjaro, Bridge Linux, Archbang, etc. comprise the Arch clan. They are for those who love to experiment with bleeding edge Linux. You can be sure of getting the latest applications and kernels, before any other distro, if you are using Arch. I have Archbang installed on my P4 PC with 1 GB RAM and it runs like a beast offering incredible speed and performance. However, it is not for faint hearted as things may at times break and you may need to get your hands dirty.


    • OpenSuse
     
    • Puppy Linux
     
    • Bodhi Linux

    Document Processors

    Complete Suite: Word processor, Spreadsheet & Powerpoint along with Base (similar to Access), Math and Draw
    •  Libreoffice    
    • Open Office  
    • Calligra
     Lightweight Office Suite
    • Abiword   
    • Gnumeric

    Browsers

    Firefox is the best followed by Chrome and Opera
           


    Messengers

    Most of them works for Gtalk, Yahoo, Facebook & MSN, integrating all at one place.
    • Pidgin 
    •   Empathy 
    • Kopete 
    • X-chat 
    •   Skype
    • Emesene 
    • TeamSpeak

    Facebook, Twitter, Identi.ca

    • Gwibber: Simple but really powerful

    RSS Feed Reader

    • Liferea   
    •   Akregator 
    • RSSOwl

    Email Client

    • Thunderbird  
    • Claws Mail  
    •   Evolution
    • KMail

    Photos/Images

    • GIMP 
    •  Shotwell 
    • Inkscape 
    • F-Spot 
    • DigiKam 
    • Darktable (to work with dark negatives & raw images)
    Webcam Booth
    • Cheese
    • GUVCVIEW
    Video Players
    • VLC
    • Totem
    Audio Players
    • Amarok
    • Rhythmbox
    • Banshee
    • Sound Juicer

    •  Clementine

    latest virus and spyware detection