Archive for the ‘Debian’ tag
Server Icon, on the Mac
In a previous post, I talked about the configuration of Samba, using a cool icon for the Mac. Just to make it very simple, here it is, all the configuration we need (For Arch or Debian, in Debian we just use apt get or in CentOS dnf -y, or in Arch – pacman, as it is explained here:
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
to really make it work first, we need to install the package avahi, put it to run as a service, and then start the demon. After that we restart Samba.
sudo pacman -S install avahi
systemctl enable --now avahi-daemon.service
systemctl start avahi-daemon
Let’s restart Samba:
sudo systemctl restart smb
sudo systemctl restart nmb
Installing Apache2 on Arch Linux
Free and open source Apache is one of the most popular servers in the world.
It is based on a focused architecture and supports all major operating systems, Linux, Windows, macOS and Solaris.
Apache is customizable and can be integrated with other, It offers many features, including load balancing , URL tracking, automatic indexing , robust support, and more.
I’ll make it simple:
Let’s do the update:
sudo pacman -Syu
On Debian is very simple:
sudo apt-get install apache2
On Arch Linux:
pacman -S apache
Then we can create the symbolic link, to boot apache on the start.
and we use these commands:
systemctl start httpd
systemctl enable httpd
We can check the status:
systemctl status httpd
Apache. You can create it in the Apache default root directory using the following command:
nano /srv/http/index.html
Let’s just add some html code in a file:
<html>
<title>APACHE2 - ARCH LINUX</title>
<body>
<h2>APACHE2 - ARCH LINUX</h2>
</body>
</html>