WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Accessing Files on Network  (Read 2943 times)

Offline davec51

  • Newbie
  • *
  • Posts: 16
Accessing Files on Network
« on: April 23, 2014, 10:11:17 AM »
I'm networked with a Windows XP computer, on which I keep all my documents, pics, and so forth. I'm trying to access those files from my TinyCore 5.2 machine. I have Samba, cups, and Nautilus installed. I can't seem to connect; TinyCore doesn't seem to recognize the "smb" prefix. Help will be appreciated.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Accessing Files on Network
« Reply #1 on: April 23, 2014, 10:27:00 AM »
http://tinycorelinux.net/faq.html#samba

I made myself a little script for the mount command. I can post it if you like. I'll just post it.
« Last Edit: April 23, 2014, 10:46:00 AM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Accessing Files on Network
« Reply #2 on: April 23, 2014, 10:47:12 AM »
Much space for improvements I guess but it works for me.
Code: [Select]
#!/bin/sh

if [ ! -d /tmp/tcloop/cifs-utils ]; then
if [ ! "${USER}" == "root" ]; then
tce-load -i cifs-utils.tcz
else
su "$(cat /etc/sysconfig/tcuser)" -c "/usr/bin/tce-load -i cifs-utils.tcz"
fi
fi

sudo echo -e '\033[00;33m '

echo -ne " \033[0;37mHost\033[1;30m (IP (recommended) / NetBIOS name):\033[00;33m "
read SHARE_HOST
if [ -z ${SHARE_HOST} ]
then
SHARE_HOST=192.168.0.1
fi

echo -ne " \033[1;34mShared folder\033[1;30m (on //${SHARE_HOST}):\033[00;33m "
read SHARE_DIR
if [ -z ${SHARE_DIR} ]
then
SHARE_DIR=data
fi

echo -ne " \033[0;32mAccess \"\033[0;34m//${SHARE_HOST}\033[1;34m/${SHARE_DIR}\033[0;32m\" as user\033[1;30m:\033[00;33m "
read SHARE_USER
if [ -z ${SHARE_USER} ]
then
SHARE_USER=administrator
fi
#SHARE_PASS=

echo -ne " \033[0;36mMount point\033[1;30m (Default /mnt/share):\033[00;33m "
read SHARE_MNT
if [ -z ${SHARE_MNT} ]
then
SHARE_MNT=/mnt/share
fi
if [ ! -d ${SHARE_MNT} ]
then
echo -e "\033[0;36mCreating mount point (${SHARE_MNT})\033[1;30m...\033[00;33m "
sudo mkdir ${SHARE_MNT}
fi

echo -e "\033[00m"

sudo mount.cifs //${SHARE_HOST}/${SHARE_DIR} ${SHARE_MNT} -o user=${SHARE_USER}

Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Accessing Files on Network
« Reply #3 on: April 23, 2014, 10:52:01 AM »
Depends on (at least):

mtd-3.8.13-tinycore.tcz: OK
filesystems-3.8.13-tinycore.tcz: OK
keyutils.tcz: OK
krb5.tcz: OK
libattr.tcz: OK
libcap.tcz: OK
samba3-libs.tcz: OK
cifs-utils.tcz: OK
Download a copy and keep it handy: Core book ;)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Accessing Files on Network
« Reply #4 on: April 23, 2014, 11:25:59 AM »
TinyCore doesn't seem to recognize the "smb" prefix. Help will be appreciated.

smb:// requires gvfs.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline theYinYeti

  • Full Member
  • ***
  • Posts: 177
    • YetI web site
Re: Accessing Files on Network
« Reply #5 on: April 24, 2014, 03:27:42 AM »
This should help:
http://yalis.fr/cms/index.php/post/2013/05/31/Lightweight-Windows-Network-Neighbourhood-for-TinyCore-Linux

This method takes care of character encoding, and doesn't depend on any particular file-manager.