Difference between revisions of "User:Tomato"

From ArchWiki
Jump to: navigation, search
(Configure file sharing from KDE4 using samba)
Line 1: Line 1:
just my personal scapbook
+
just my personal scrapbook
  
 
=== Configure file sharing from KDE4 using samba ===
 
=== Configure file sharing from KDE4 using samba ===
 
Sadly, this functionality is implemented using SUID perl script, and as Archlinux does not support SUID scripts nor it has perl-suid package we will have to get our hands dirty.
 
Sadly, this functionality is implemented using SUID perl script, and as Archlinux does not support SUID scripts nor it has perl-suid package we will have to get our hands dirty.
 +
 +
{{Note|Works with simple file sharing only at the moment}}
  
 
Work plan:
 
Work plan:
Line 17: Line 19:
 
* {{Package Official|kdenetwork-filesharing}} for System Settings File Sharing part
 
* {{Package Official|kdenetwork-filesharing}} for System Settings File Sharing part
 
* {{Package Official|kdebase-runtime}} basic KDE workspace (but if you're reading this, chances are you already have it installed)
 
* {{Package Official|kdebase-runtime}} basic KDE workspace (but if you're reading this, chances are you already have it installed)
* {{Package Official|kdelibs3}} for {{Codeline|fileshareset}} (as of KDE4.4.0 it's still a dependency)
+
* {{Package Official|kdelibs3}} for {{Codeline|fileshareset}} (not sure about it, but as of KDE4.4.0 it's still a dependency)
  
 
==== Installing requisites ====
 
==== Installing requisites ====
Line 44: Line 46:
  
 
Remember to add samba to <code>DAEMONS</code> in <code>/etc/rc.conf</code> if you want it to start at boot time.
 
Remember to add samba to <code>DAEMONS</code> in <code>/etc/rc.conf</code> if you want it to start at boot time.
 +
 +
==== Modifying fileshareset scripts ====
 +
  
 
magic:
 
magic:
 
kcmshell4 fileshare
 
kcmshell4 fileshare

Revision as of 00:01, 27 February 2010

just my personal scrapbook

Configure file sharing from KDE4 using samba

Sadly, this functionality is implemented using SUID perl script, and as Archlinux does not support SUID scripts nor it has perl-suid package we will have to get our hands dirty.

Note: Works with simple file sharing only at the moment

Work plan:

  1. install packages
  2. configure samba
  3. modify Template:Codeline scripts
  4. create C wrapper for Template:Codeline to work as a SUID binary
  5. configure KDE side of things
  6. share a folder

Packages we will need:

Installing requisites

Install all packages and their dependencies:

Template:Codeline

Log out and log in again (kdelibs3 are in non standard place and so the PATH must be updated)

Configuring samba

A basic config file works OK, though you'll need to create Samba users (with smbpasswd -a <user name> as root): Template:File

Remember to add samba to DAEMONS in /etc/rc.conf if you want it to start at boot time.

Modifying fileshareset scripts

magic: kcmshell4 fileshare