Felipe's Blog

Your go-to source for Linux/Unix-like – tech – engineering.

Archive for the ‘Arch’ tag

Installing and Configuring Samba Server on Arch Linux

without comments

Samba, also known as from “Server Message” is a protocol that provides print file services between clients on different operating systems.
Samba allows us to access and use files, computers, and other commonly shared resources on a local intranet.
It can be run on tqgvbgnmkd-based platforms and is able to communicate with Windows clients.

In this tutorial, we will show you how to install configure Samba server on Arch Linux.

Check if you have to update anby sort of package:

pacman -Syu

Installing Samba Server
Samba server package is included in the Arch Linux default repository. You can install it with the following command.

pacman -S samba smbclient

After installing the server, you can verify the Samba version:

smbd --version

Basically I have this config. in the smb config file in samba (/etc/samba/smb.conf)

I decided to make it more cool to check the files in a Mac using a better Icon for the Machine with the parameters, fruit:model = Macintosh, and others …


# general config

min protocol = SMB2
vfs objects = catia fruit streams_xattr
fruit:aapl = yes
fruit:metadata = stream
fruit:model = Macintosh
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes

#folders private / public

[Private]
comment = private share
path = /home/felipe/private
browseable = yes
guest ok = no
writable = yes
valid users = felipe

[Public]
comment = public share
#path = /home/felipe/pub
path = /opt/sambapub
browseable = yes
writable = yes
guest ok = yes
#valid users = nobody

We start the whole thing:

sudo systemctl start smb nmb
sudo systemctl enable smb nmb

Another important thing is to enable the services with enable (replacing the start in the above).

Proper permissions for the public directory

sudo chown -R nobody:nobody /sambapub

sudo chmod -R 777 /sambapub

Also, adding a user:

sudo smbpasswd -a username

Do not forget to install avahi deamon.

sudo pacman -S avahi 
sudo systemctl enable --now avahi-daemon.service 
sudo systemctl start avahi-daemon

Written by Felipe

April 25th, 2023 at 5:10 pm

Posted in Arch,Linux

Tagged with , ,

Install and Use yay on Arch Linux

without comments

A AUR helper like yay lets you download and install packages from the Arch User Repository.

Pacman is a powerful package manager that comes default on Arch-based distributions, but lacks the functionality of uploading packages to the Arch User Repository .
The AUR is a community managed repository providing thousands of third party packages in the form of scripts also known as PKGBUILD.

To install packages using these PKGBUILDs, need an AUR helper like yay.
yay is not pre-installed on Arch Linux nor is it available in official Arch repositories.
So how do you install yay to download packages from on your Arch desktop?
Let’s find out.

Installing, yay on Arch Linux

The yay package is only available in the Arch User Repository.
Note that you can manually install packages from the AUR without using an AUR helper, but as its says, an “AUR helper” assists you in the process which allows you install more packages easily with minimal user interaction.

sudo pacman -S --needed base-devel git
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Then Check the version:

yay --version

Then you can install any sort of package:

yay -S google-chrome

Written by Felipe

April 25th, 2023 at 4:59 pm

Posted in Arch,General,Linux

Tagged with , , ,