Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: dsara35 on May 10, 2010, 05:29:01 AM
-
Hi im going to user tinycore terminal server for lan boot. in both server and client i install samba3.tcz. i want to start samba while booting i command /usr/local/etc/init.d/samba start in bootlocal but it not working. one system im going to set as server it boot the client now using smbmount the specified dir is boot in client(lan boot) if the files that r in dir if change r edit by the user want to save directly to server using samba. help me to do this ,,,,,,,,, next i create one user in tinycore instead of tc i save passwd,gshadow,shadow,group after create image and boot it by secure login,i start samba to the created user it add the user in data base no error but i can view that in windows system i try to open that it showing error access denied no permission,,,,,, i dont know how to solve this ??? [saving smilies]
-
Did you create the user in both linux and samba?
-
Ya in both abc in linux and for samba smbpasswd -a abc like this i add the user ..
-
Did you to enable the user? 'smbpasswd -e username'
Not sure its required anymore, but whenever I add a user for samba I enable also.
-
On SMB Server:
Windows clients require the following lines in smb.conf to authenticate:
## Global Settings
[global]
workgroup = workgroup
netbios name = myserver
hosts allow = 192.168. 127.0.0.1
security = user
local master = no
## Passwords & Authentication
encrypt passwords = yes
-
I will try , Any one explain me how to start samba while booting and while client booting i want do smbmount for linux client.....
-
Server
To start samba on the server during boot save your settings:
1) Open a terminal and enter the following:
echo usr/local/etc/samba >> /opt/.filetool.lst
echo "/usr/local/etc/init.d/samba start" >> /opt/bootlocal.sh
2) Open Control Panel
3) Select Backup/Restore
3) Enter your backup device in the dialog box
4) Click on Backup
For more info on Backup/Restore see:
Core Concepts (http://www.tinycorelinux.com/concepts.html) and the articles under "Persistence" in the Wiki (http://wiki.tinycorelinux.com/tiki-index.php)
Linux Client
To mount the share on the linux client requires:
filesystems-2.6.29.1-tinycore.tcz
Samba3.tcz (optional - see step #2 below for details)
1) Open a terminal and create a mount point. Example:
sudo mkdir /mnt/myshare
or in your home directory
mkdir -p mnt/myshare
Note: If you create a mount point elsewhere in your home directory (i.e. not in ~/mnt) then remember to add it to /opt/.xfiletool.lst so you don't accidentally backup up your entire server when you run a backup. (home/tc/mnt is already included in .xfiletool.lst) {Thanks Kindomcome}
echo home/tc/myshare >> /opt/.xfiletool.lst
2) Invoke the mount command.
Mount syntax (without Samba3):
sudo mount -t cifs //ip.add.re.ss/share /mount/point -o username=xxx,password=yyy
Mount Syntax (requires Samba3.tcz):
sudo mount.cifs {service} {mount-point} [-ooptions]
Example 1 - sudo mount.cifs //192.168.0.10/share /mnt/myshare -o user=your_username
Example 2 - sudo mount.cifs \\\\server_name\\share /mnt/myshare -o user=your_username
Example 3 - sudo mount -t cifs //192.168.0.10/share /mnt/myshare -o user=your_username
To automate the process at boot, you could add the following lines to /opt/bootlocal.sh and do a backup.
echo "mkdir /mnt/myshare >> /opt/bootlocal.sh
echo "mount -t cifs //192.168.0.10/share /mnt/myshare -o user=xxx, password=yyy" >> /opt/bootlocal.sh
NOTE: This is not very secure. A better option is to create a script with the above commands and run it after booting:
#!/bin/sh
sudo mkdir /mnt/myshare
sudo mount.cifs //192.168.0.10/share /mnt/myshare -o user=your_username
For netboot instructions see Netbooting (http://wiki.tinycorelinux.com/tiki-index.php?page=Netbooting).
{Edited to incorporate corrections from Kingdomcome}
-
To mount the share on the linux client requires:
filesystems-2.6.29.1-tinycore.tcz
Samba3.tcz
1) Open a terminal and create a mount point. Example:
sudo mkdir /mnt/myshare
or in your home directory
mkdir myshare
Note: If you create the mount point in your home directory remember to add it to /opt/.xfiletool.lst so you don't accidentally backup up your entire server when you do a backup.
echo home/tc/myshare >> /opt/.xfiletool.lst
FYI:
1) samba3.tcz is not required on the client, only filesystems-2.6.29.1-tinycore.tcz. You will need to use the "mount -t cifs" syntax if samba3.tcz is not installed
sudo mount -t cifs //ip.add.re.ss/share /mount/point -o username=xxx,password=yyy
2) "/home/tc/mnt" is already in the default /opt/.xfiletool.lst so that is the dir that I create my mount points to avoid having the shared data backed up.
-
Thanks for reply... Im not using tinycore server in gui mode im using in prompt mode so if i want to backupand restore the data i want to give
filetool.sh {backup r restore}
Its working but my questions is the backup can done automatically during shutdown r reboot and restore have been perform during booting,,,,,,,,,,,,,, so there any way to do this automatically without each and everytime as filetool.sh {backup restore}.
-
After backup/restore is set up once, it should work automatically on every shutdown/boot thereafter.
-
Sorry im not clear by ur reply.. My problem is i add the dir name as home/123 in .filetool.lst, and set backupdevice as sdb1/ to my pendrive.. before i reboot the system i enter in terminal filetool.sh backup it backup the dir. after i reboor the system i enter filetool.sh restore in terminal the data as restore.
As u said it not perform automatically..
-
If you have the boot code "restore=sdb1", the backup should be restored automatically on boot.
-
Im using Lanboot for more than 20 clients. so i add all the user in passwd,group,shadow,gshadow file and create teh image all the user working well.. But the my problem is im using sambaserver in tinycore(Server) so for the each user i want to start the samba server and set the mount.cifs for the each and every user.
My client is in gui mode... Its autologin to root ,if i set noautologin it ask for login i enter the user name and password but it enter into prompt mode not to gui. I command i enter startx the xvesa window is opening y this happening i dont know.
The single image only going to share to all clients so the want to enter into the username directly so i can perform the user to share the mount point in the server..
Please help me in this to..;.
-
I enter the boot code as restore=sdb1 it not working,,,,,, it showing error as invalid device....
-
Now in server im having more than five user as i want to share the five directory to five clients.. so i want start samba server for the five user by smbpasswd -a username after boot.. so i can able to backup smbpasswd r code to do that in booting ??????????
-
MY bootlocal.sh is not working...... i gave code /usr/local/etc/init.d/samba start in bootlocal.sh samba not start while booting.. wat is the problem .....
-
Any changes to bootlocal are saved in your backup, so I guess if your backup is not working, then your changes to bootlocal will not be active at boot.
If "restore=sdb1" gives you an error "invalid device", maybe you need to set the boot code "waitusb=5" or longer to give the device time to settle and be recognised prior to restoring your backup?
-
YA thanks now bootlocal.sh is working and restore also working, but i want to backup the dir automatically during shutdown r reboot.. how to do this ..................
-
Sorry if I'm misunderstanding something, but if bootlocal is now working, which means backup and restore are working, then back/restore should be automatic from now on...
-
My problem is backup is not automatic during shutdown. i want to enter manually in command filetool.sh backup... after this only the backup is running...
-
Pls kindly reply for my xvesa question.. i cannt enter in different user in gui mode.. I can enter as user but it as in text mode so im enter startx to get gui. but the page opening is TC Xvesa Resolution Setup.. I dont know how to do this help me..
-
I can enter as user but it as in text mode so im enter startx to get gui. but the page opening is TC Xvesa Resolution Setup.. I dont know how to do this help me..
The files required to start an x session (i.e. .xession, etc) are created in /home/tc on boot. If you change user after boot, I would guess that /home/newusername does not contain the relevent files required to start an xsession and thus you get the Xvesa resolution setup.
Maybe you could try the "user=xxx" boot code to boot as a user other than "tc"?
-
Thanks for ur reply now my backup is working.. In /etc/skel/.profile i set export backup as 0 this the problem..............
-
I can able to give boot code as user=xxx but just imagine..
Im using terminal server for boot nearly five to six system now in lan boot, i install samba server in tinycore server, i want to set different mountpoint in server to that five user using mount.cifs.. so if v boot system in tc r root the mount.point ans sharing with samba cannt do so i want the five user want to login by their username and password........ how is this possible...
-
Just to be clear, do you want to connect 20 thin clients with roaming profiles to a Samba share?
In that case installing pyneighborhood.tcz on the clients would allow them to boot as user tc locally and connect to the server under their assigned names via a GUI.
-
I installed pyneighborhood.tcz... But while click the icon in wbar nothing happen... i enter pyNeneighborhood in command it saying not found wat is the problem....
-
It sounds like either python is not installed or it's looking for python in /usr/bin rather than /usr/local/bin?
-
I installed python and pygobject, but after this the error is ..
Traceback (most recent call last):
File "/usr/local/bin/pyNeighborhood", line 19, in <module>
import gtk
File "/usr/local/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 30, in <module>
import gobject as _gobject
File "/usr/local/lib/python2.6/site-packages/gtk-2.0/gobject/__init__.py", line 26, in <module>
from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
File "/usr/local/lib/python2.6/site-packages/gtk-2.0/glib/__init__.py", line 22, in <module>
from glib._glib import *
ImportError: libgobject-2.0.so.0: cannot open shared object file: No such file or directory
-
the recursive deps of pyneighborhood are:
pygtk.tcz
shared-mime-info.tcz
libglade.tcz
libiconv.tcz
samba3.tcz
filesystems-2.6.29.1-tinycore.tcz
It might be an idea to load extensions using appbrowser, "tce-load -w extensionname.tcz" or take a look at the dep files in the repo.
-
Thanks for ur reply. i solve that problem now.. other anyone installed squid in tinycore.... i want to install squid for my tinycore server... wat r the deps need to install that .... if appbrowser have squid ?????? please help me..
-
I presume you mean http://www.squid-cache.org/ (http://www.squid-cache.org/)
Looking in http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/tcz_2x.html (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/tcz_2x.html), there does not appear to be a squid extension.
Looking at http://wiki.squid-cache.org/SquidFaq/CompilingSquid#What_else_do_I_need_to_compile_Squid.3F (http://wiki.squid-cache.org/SquidFaq/CompilingSquid#What_else_do_I_need_to_compile_Squid.3F), it appears the only dep is perl, but you'll only know for sure when you start to compile it ;)
You can use the compiletc metaextension to set tc up to be ready to compile - load it via the appbrowser or tce-load -w in order to get all the deps.