<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sunyanzi</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sunyanzi"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Sunyanzi"/>
	<updated>2026-04-28T09:36:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Samba_server&amp;diff=15609</id>
		<title>Setting up a Samba server</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Samba_server&amp;diff=15609"/>
		<updated>2018-12-15T17:00:22Z</updated>

		<summary type="html">&lt;p&gt;Sunyanzi: remove `samba-common-tools` from Installation because package `samba` including `samba-common-tools`&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Installation =&lt;br /&gt;
Install packages:&lt;br /&gt;
{{Cmd|# apk add samba}}&lt;br /&gt;
&lt;br /&gt;
= Create a share directory =&lt;br /&gt;
This will be the directory that&#039;s shared to clients. You can create as many of these as you wish.&lt;br /&gt;
{{Cmd|# mkdir /media/storage}}&lt;br /&gt;
{{Cmd|# chmod 0777 /media/storage}}&lt;br /&gt;
&lt;br /&gt;
= Create smb.conf =&lt;br /&gt;
Alpine provides an example configuration file located at /etc/samba/smb.conf. The following is a simple example to get you up and running.&lt;br /&gt;
{{cat|/etc/samba/smb.conf|# /etc/samba/smb.conf&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
 [global]&lt;br /&gt;
    workgroup = WORKGROUP&lt;br /&gt;
    dos charset = cp850&lt;br /&gt;
    unix charset = ISO-8859-1&lt;br /&gt;
    force user = username&lt;br /&gt;
 &lt;br /&gt;
 [storage]&lt;br /&gt;
    browseable = yes&lt;br /&gt;
    writeable = yes&lt;br /&gt;
    path = /media/storage&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
{{note|For each directory share, you&#039;ll need to add a subsection to &#039;&#039;&#039;smb.conf&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
= Create a system user and Samba user =&lt;br /&gt;
Create a user on the system. Create a Samba user. Give both users the same password.&lt;br /&gt;
{{Cmd|# adduser username}}&lt;br /&gt;
{{Cmd|# smbpasswd -a username}}&lt;br /&gt;
&lt;br /&gt;
= Configure the Samba service =&lt;br /&gt;
Run these two commands to start the service on boot and to start the service right now.&lt;br /&gt;
{{Cmd|# rc-update add samba}}&lt;br /&gt;
{{Cmd|# rc-service samba start}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Server]]&lt;br /&gt;
[[Category:Printers]]&lt;br /&gt;
[[Category:Authentication]]&lt;/div&gt;</summary>
		<author><name>Sunyanzi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=VirtualBox_shared_folders&amp;diff=13397</id>
		<title>VirtualBox shared folders</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=VirtualBox_shared_folders&amp;diff=13397"/>
		<updated>2017-05-28T08:09:02Z</updated>

		<summary type="html">&lt;p&gt;Sunyanzi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Enable VirtualBox shared folders  ==&lt;br /&gt;
&lt;br /&gt;
Install [https://pkgs.alpinelinux.org/package/edge/community/x86/virtualbox-guest-additions virtualbox-guest-additions] and [https://pkgs.alpinelinux.org/package/edge/community/x86/virtualbox-guest-modules-virthardened virtualbox-guest-modules-virthardened] at first:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add virtualbox-guest-additions virtualbox-guest-modules-virthardened}}&lt;br /&gt;
&lt;br /&gt;
The following error may occur:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|ERROR: unsatisfiable constraints:&lt;br /&gt;
  virtualbox-guest-additions (missing):&lt;br /&gt;
    required by: world[virtualbox-guest-additions]&lt;br /&gt;
  virtualbox-guest-modules-virthardened (missing):&lt;br /&gt;
    required by: world[virtualbox-guest-modules-virthardened]}}&lt;br /&gt;
&lt;br /&gt;
If the error occurs, make sure your alpine version is greater than v3.6 and alpine community repo is enabled:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|echo &amp;quot;http://dl-cdn.alpinelinux.org/alpine/edge/community&amp;quot; &amp;gt;&amp;gt; /etc/apk/repositories}}&lt;br /&gt;
&lt;br /&gt;
Update respository indexes from all remote repositories, then install guest modules and reboot:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk update&lt;br /&gt;
apk add virtualbox-guest-additions virtualbox-guest-modules-virthardened&lt;br /&gt;
reboot}}&lt;br /&gt;
&lt;br /&gt;
Goto &amp;lt;code&amp;gt;Device &amp;gt; Shared Folders &amp;gt; Shared Folder Settings ...&amp;lt;/code&amp;gt; add a directory mapping like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Add_Share.png|437px]]&lt;br /&gt;
&lt;br /&gt;
Mount it to alpine:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mkdir /mnt/outside&lt;br /&gt;
mount -t vboxsf vbox_shared /mnt/outside}}&lt;br /&gt;
&lt;br /&gt;
which &amp;lt;code&amp;gt;vbox_shared&amp;lt;/code&amp;gt; is your folder name and &amp;lt;code&amp;gt;/mnt/outside&amp;lt;/code&amp;gt; is the mounting point.&lt;br /&gt;
&lt;br /&gt;
After this step the following error may occur:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mount: mounting vbox_shared on /mnt/outside failed: No such device}}&lt;br /&gt;
&lt;br /&gt;
If the error occurs, run command below:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|modprobe -a vboxsf&lt;br /&gt;
mount -t vboxsf vbox_shared /mnt/outside}}&lt;br /&gt;
&lt;br /&gt;
And you will see &amp;lt;code&amp;gt;/tmp/vbox_shared&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/mnt/outside&amp;lt;/code&amp;gt; are connected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;P.S. Alpine will raise error &amp;quot;Invalid argument&amp;quot; if &amp;lt;code&amp;gt;virtualbox-guest-additions&amp;lt;/code&amp;gt; is not installed when mounting drive.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;VirtualBox will raise error &amp;quot;Guest Additions unavailable&amp;quot; if &amp;lt;code&amp;gt;virtualbox-guest-modules-virthardened&amp;lt;/code&amp;gt; is not installed when adding shared path.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Sunyanzi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=VirtualBox_shared_folders&amp;diff=13396</id>
		<title>VirtualBox shared folders</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=VirtualBox_shared_folders&amp;diff=13396"/>
		<updated>2017-05-28T07:41:01Z</updated>

		<summary type="html">&lt;p&gt;Sunyanzi: Created page with &amp;quot; == Enable VirtualBox shared folders  ==  Install [https://pkgs.alpinelinux.org/package/edge/community/x86/virtualbox-guest-additions virtualbox-guest-additions] and [https://...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Enable VirtualBox shared folders  ==&lt;br /&gt;
&lt;br /&gt;
Install [https://pkgs.alpinelinux.org/package/edge/community/x86/virtualbox-guest-additions virtualbox-guest-additions] and [https://pkgs.alpinelinux.org/package/edge/community/x86/virtualbox-guest-modules-virthardened virtualbox-guest-modules-virthardened] at first:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add virtualbox-guest-additions virtualbox-guest-modules-virthardened}}&lt;br /&gt;
&lt;br /&gt;
The following error may occur:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|ERROR: unsatisfiable constraints:&lt;br /&gt;
  virtualbox-guest-additions (missing):&lt;br /&gt;
    required by: world[virtualbox-guest-additions]&lt;br /&gt;
  virtualbox-guest-modules-virthardened (missing):&lt;br /&gt;
    required by: world[virtualbox-guest-modules-virthardened]}}&lt;br /&gt;
&lt;br /&gt;
If the error occurs, make sure your alpine version is greater than v3.6 and alpine community repo is enabled:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|echo &amp;quot;http://dl-cdn.alpinelinux.org/alpine/edge/community&amp;quot; &amp;gt;&amp;gt; /etc/apk/repositories}}&lt;br /&gt;
&lt;br /&gt;
Update respository indexes from all remote repositories, then install guest modules and reboot:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk update&lt;br /&gt;
apk add virtualbox-guest-additions virtualbox-guest-modules-virthardened&lt;br /&gt;
reboot}}&lt;br /&gt;
&lt;br /&gt;
Goto &amp;lt;code&amp;gt;Device &amp;gt; Shared Folders &amp;gt; Shared Folder Settings ...&amp;lt;/code&amp;gt; add a directory mapping like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Add_Share.png|437px]]&lt;br /&gt;
&lt;br /&gt;
Mount it to alpine:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mkdir /mnt/outside&lt;br /&gt;
mount -t vboxsf vbox_shared /mnt/outside}}&lt;br /&gt;
&lt;br /&gt;
which &amp;lt;code&amp;gt;vbox_shared&amp;lt;/code&amp;gt; is your folder name and &amp;lt;code&amp;gt;/mnt/outside&amp;lt;/code&amp;gt; is the mounting point.&lt;br /&gt;
&lt;br /&gt;
After this step the following error may occur:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mount: mounting vbox_shared on /mnt/outside failed: No such device}}&lt;br /&gt;
&lt;br /&gt;
If the error occurs, run command below:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|modprobe -a vboxsf&lt;br /&gt;
mount -t vboxsf vbox_shared /mnt/outside}}&lt;br /&gt;
&lt;br /&gt;
And you will see &amp;lt;code&amp;gt;/tmp/vbox_shared&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/mnt/outside&amp;lt;/code&amp;gt; are connected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;P.S. Alpine will raise error &amp;quot;Invalid argument&amp;quot; if &amp;lt;code&amp;gt;virtualbox-guest-additions&amp;lt;/code&amp;gt; is not installed when mounting drive.&lt;br /&gt;
&lt;br /&gt;
VirtualBox will raise error &amp;quot;Guest Additions unavailable&amp;quot; if &amp;lt;code&amp;gt;virtualbox-guest-modules-virthardened&amp;lt;/code&amp;gt; is not installed when adding shared path.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Sunyanzi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=File:Add_Share.png&amp;diff=13395</id>
		<title>File:Add Share.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=File:Add_Share.png&amp;diff=13395"/>
		<updated>2017-05-28T03:53:44Z</updated>

		<summary type="html">&lt;p&gt;Sunyanzi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sunyanzi</name></author>
	</entry>
</feed>