| Author |
Message |
|
|
Post subject: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 22, 2007 - 12:05 PM
|
|

Joined: Feb 01, 2007
Posts: 399
Location: Hertfordshire, England
Status: Offline
|
|
How easy would it be to set up a very basic file server (samba and nfs) on a pc that has no mouse and no monitor.
The pc that I am thinking of is hidden out of the way so the only way to administrate the pc would be through SSH.
Due to lack of room this pc would only have an ethernet connection and mains.
So KDE would not be needed, possibly a ton of other packages would not be needed.
I just wondered as I have installed Gentoo on this pc at the monent but it did take over 4 hours to perform.
I suppose im asking what steps would anyone perform if they were to install sidux as a file server ? |
_________________ ich weiß nicht
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 22, 2007 - 12:20 PM
|
|

Joined: Dec 04, 2006
Posts: 1238
Status: Offline
|
|
d/l the lite ISO, install, "apt-get remove --purge xserver-xorg", "update-rc.d openbsd-ssh defaults"?
(Just a quick guess, I'm not even sure how the ssh server is called exactly) |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 22, 2007 - 12:44 PM
|
|

Joined: Jan 16, 2007
Posts: 462
Status: Offline
|
|
The sidux installer has a checkbox for ssh. Click on it, and sshd will be launched automatically.
Maybe there's no need to uninstall the xserver. Just put "3" (stands for "init 3") in the boot stanza (/boot/grub/menu.lst). |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 22, 2007 - 12:55 PM
|
|
Joined: Nov 25, 2006
Posts: 2571
Status: Offline
|
|
| /etc/inittab sets the default runlevel:
Code:
# The default runlevel.
id:3:initdefault:
|
|
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 22, 2007 - 12:59 PM
|
|
Joined: Dec 02, 2006
Posts: 1909
Status: Offline
|
|
| its also a good thing to remove all non-essential packages for a server and just keep the bare essentials |
|
|
| |
|
|
|
 |
|
|
Post subject: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 22, 2007 - 07:36 PM
|
|

Joined: Dec 04, 2006
Posts: 258
Location: Nördliche Lüneburger Heide
Status: Offline
|
|
Hello,
I am running such an server with sidux. It provides normally File-Services (NFS,Samba), Print-Services (cups) and Internet-Acess (ISDN via al Least-Cost-router (bongosiurfer), squid as proxy-server). As slh sugessted it is started with Run-level 3 in inittab and usually accessed via ssh (with X).
Sometimes when i need it I start additional programms via ssh therefore I have more packages installed as would be needed only for the server-purposes (its normally pretty bored on its own).
So If I can provide some helpfull infos let me know.
Kind regards
Reiner Schmidt |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 22, 2007 - 07:42 PM
|
|

Joined: Feb 01, 2007
Posts: 399
Location: Hertfordshire, England
Status: Offline
|
|
excellent. thanks for the help everyone.
I spose i could even make a default install script that could be copied over to the just installed machine.
then run the script and this would remove aditional software and add relevant users then setup samba.
that wouldnt actually be that hard to do.
thanks again. |
_________________ ich weiß nicht
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 23, 2007 - 02:23 AM
|
|
Joined: Dec 02, 2006
Posts: 1909
Status: Offline
|
|
| Perhaps something along the lines of h2's smxi script would be a help in setting up and maintaining a sidux-based server. Can really help take the pain out of taming Sid on a server. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 23, 2007 - 02:46 AM
|
|

Joined: Dec 01, 2006
Posts: 751
Status: Offline
|
|
| Hmm, maybe a script that removes everything except what is on the sidux lite livecd. That can be really useful. |
_________________ "Cool was never cool until the cool guys at Cool industries developed a cool new product: Cool."
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 23, 2007 - 07:53 AM
|
|

Joined: Dec 04, 2006
Posts: 1238
Status: Offline
|
|
| what would be the point of this as opposed to downloading the lite CD in the first place? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 23, 2007 - 08:34 AM
|
|

Joined: Feb 01, 2007
Posts: 399
Location: Hertfordshire, England
Status: Offline
|
|
apart from KDE and Xorg what else would need to be removed.
Also how hard would it be to make a script (ncurses based ?) that would walk the user through setting up samba.
In the past I used a "quick and dirty samba setup" script (can be found on linux.com web site that only needed slight adjustment and then this worked fine.
How hard would it be to parse the machine name into the script and allow the user to edit the shares ?
I tried using KDE to administrate the samba shares but this does not seem to work. |
_________________ ich weiß nicht
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 23, 2007 - 12:37 PM
|
|
Joined: Dec 02, 2006
Posts: 1909
Status: Offline
|
|
| think smxi can work..perhaps h2 can add a section to smxi for servers. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 23, 2007 - 02:32 PM
|
|

Joined: Feb 01, 2007
Posts: 399
Location: Hertfordshire, England
Status: Offline
|
|
hmm good idea.
A script like H2's Smxi would be great (unfortunatley my scripting experience is no where near that good). |
_________________ ich weiß nicht
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 23, 2007 - 05:29 PM
|
|
Joined: Dec 04, 2006
Posts: 640
Status: Offline
|
|
I am waiting for the day when h2's script becomes self-aware.
muhahahaha |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: sidux as a file server (no mouse, monitor, nothing)
Posted: Aug 23, 2007 - 05:32 PM
|
|
Joined: Nov 28, 2006
Posts: 4303
Status: Offline
|
|
There are some other really good options out there at the moment, a roughly 30 mB freebsd iso comes to mind that is designed specifically for this very function, can't remember it's name.
I was playing around with this question yesterday and was quite surprised to find that removing key kde libs did not result in all of kde being removed, far from it, which I would consider as a bug in apt packaging. So basically you have to test for all kde packages installed,, remove them, all xorg stuff, all other stuff like bluetooth, etc.
All in all, I really don't see a lot of point, but it would be fun to script it, I know a real 'remove all kde' option would certainly make mzilikazi happy.
I guess the one advantage would be having the new sidux init scripts and so on.
I might do this one, it's easy to test on vmware.
Of course, then you need to learn to run all the server stuff via command line, which is pretty fun, and a good way to learn the innards of these systems.
There's little point, however, in making a server section, since it's a matter of which server, and you can't teach real server configuration, nor can you easily script it, beyond the utter basics like setting up a samba share, or an nfs share etc.
removing kde would require removing kdm, then installing, if you're going to run a light desktop, something like wdm, which is nice. That's how I did my light install, etch -> sidux conversion, then the smxi xorg/xfce4 installer, which will install wdm if no other dm is installed. |
_________________ sidux Maintenance script: dist-upgrade, kernel install, general utilities: smxi
Backup script [using rdiff-backup]: rd-h2.sh
|
| |
|
|
|
 |
|
|