The Official *nix Thread

Inane baanter or words of wisdom - you decide...
Post Reply
User avatar
koogy
Baaa!
Baaa!
Posts: 475
Joined: Thu Aug 31, 2006 11:16 am 0

Re: The Official *nix Thread

Post by koogy »

i remember reading that a few of the recent distros started including tools to make this easy. (i can find that the article was in Linux Format #113 but not what it says)

i think they used ubuntu but i can only find this which is fedora based:

http://revisor.fedoraunity.org/
User avatar
Dungeon-Dave
Baaaaaa!
Baaaaaa!
Posts: 3925
Joined: Thu Aug 04, 2005 12:01 pm 0
Location: UK
Contact:

Re: The Official *nix Thread

Post by Dungeon-Dave »

To me, I would build the OS with required apps, look at strimming down unneeded stuff (to reduce the image footprint) then work out some automated way of recreating this boxen with some backup-recovery strategy, such as Mondo or Kickstart.

These essentially install a BaseOS then read in a list of other packages to install, bringing a bare-metal build up to your new "media build".

Then I'd find that something like MythBuntu or Knoppix has already done this.

- and done it well before me, so they've already got a head-start...
- and have done it several times, so have greater experience and knowledge...
- and have several people all working on it from a variety of distros, so will have something more powerful and flexible due to cherry-picking the best bits from over the shop...
- and will have support forums and other stuff so have done it betterer all around.

Then once I've realised I've just reinvented the wheel, I'll try to find a reason for mine being better, then justify why I spent all that effort on it (which has been largely wasted), and eventually accept that I'm better off using their proven build than my amateur attempt.

In short, you want the latter. Just a matter of finding what's out there and seeing what closely fits your needs (or requires the least amount of effort to customise). MythBuntu sounds like that could be a start, but I'd be interested in what else you uncover.
User avatar
wanye
Baaaaaa!
Baaaaaa!
Posts: 3047
Joined: Tue Sep 07, 2004 12:46 pm 0
PSN: wanye_m
Location: nottingham
Contact:

Re: The Official *nix Thread

Post by wanye »

i thought mythbuntu was aimed at being a front end for playback/recording? i want something that is headless, completely web-gui driven, and just used for streaming/downloading.

hence my thought freenas would be a good starting block...
---
psn: spazhammer75
http://nottsdj.co.uk - Nottinghamshire Weddings and Events DJ
User avatar
xav
Baaaaaa!
Baaaaaa!
Posts: 2455
Joined: Thu Jun 06, 2002 5:32 pm 0
Location: Bucks, UK
Contact:

Re: The Official *nix Thread

Post by xav »

There is a page on the Ubuntu wiki about creating a custom Live CD from scratch:

https://help.ubuntu.com/community/LiveC ... romScratch

But that looks overly complex to me. The approach I would take is something like this:

1) Go for a USB thumb drive rather than a CD. If you come across a machine that can't boot from a USB drive you can still do the base install from a stock CD, then apply the bits from the thumb drive afterwards

2) Use unetbootin or something similar to put a Ubuntu server installer onto the USB drive, and partition the remaining space into storage

3) Use "sudo dpkg --get-selections > selections.txt" on an installed and working system to get a list of all the packages needed from the repositories. Dump that file, and your /etc/apt/sources.list (if you're using any non-standard repositories) onto the thumb drive storage space

4) Write a shell script which copies the sources.list (if necessary) and runs:

Code: Select all

apt-get update
dpkg --set-selections < selections.txt
apt-get dselect-upgrade
That will download and install all the repository-hosted apps

5) Add to the shell script to "wget" or "curl" any other apps you want, and install them. Also add some code to copy your custom web management tool to the right place on the server, to modify config files, and so on

6) Add a readme so that you don't forget what to do in future

Now you just install from the USB drive, mount the storage partition and run the script there. Steps 3 & 4 ensure that all the repository-based apps are downloaded and installed. Step 5 lets you get any others, or copy them from the thumb drive if you want to keep them on there.

Getting the shell script right will take time - as will coding the web frontend - but otherwise there's nothing particularly difficult about this approach. Certainly nothing as tricky as building your own distro from scratch.
Co-creator of The Greys, Monsters, Inked & Elvie webcomics
• Web Site • Twitter • Patreon •
User avatar
RageMatrix
Baaaaaaa!
Baaaaaaa!
Posts: 5515
Joined: Fri May 10, 2002 12:52 pm 0
XBL Gamertag: Jon256
Location: East Sussex

Re: The Official *nix Thread

Post by RageMatrix »

I've a Samba server so I can seamlessly map a drive in Windows. I also have a Ubuntu box which I'd like to do something similar. I suspect making a directory on the server filesystem appear seamlessly on the Ubuntu box's filesystem must be even easier - but I don't know what to Google for. Little help?
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
User avatar
defsdoor
Baaaaaa!
Baaaaaa!
Posts: 3909
Joined: Fri Jan 30, 2004 12:26 am 0
Location: Sunny Beduff

Re: The Official *nix Thread

Post by defsdoor »

smbmount
User avatar
Dungeon-Dave
Baaaaaa!
Baaaaaa!
Posts: 3925
Joined: Thu Aug 04, 2005 12:01 pm 0
Location: UK
Contact:

Re: The Official *nix Thread

Post by Dungeon-Dave »

RageMatrix wrote:I've a Samba server so I can seamlessly map a drive in Windows. I also have a Ubuntu box which I'd like to do something similar.
Map a windows drive to the Ubuntu box? - use Samba on Ubuntu also.
mount a directory on the ubuntu box to the samba server? use "mount -f cifs"

However, latter may be better using NFS rather than CIFS (Unix dir sharing, not Windows dir sharing) if remotely accessing dirs between *nixboxen.
User avatar
RageMatrix
Baaaaaaa!
Baaaaaaa!
Posts: 5515
Joined: Fri May 10, 2002 12:52 pm 0
XBL Gamertag: Jon256
Location: East Sussex

Re: The Official *nix Thread

Post by RageMatrix »

Yeah, mount the directory on the Linux file server to a directory on the Ubuntu box so it looks like the same filesystem.
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
User avatar
Dungeon-Dave
Baaaaaa!
Baaaaaa!
Posts: 3925
Joined: Thu Aug 04, 2005 12:01 pm 0
Location: UK
Contact:

Re: The Official *nix Thread

Post by Dungeon-Dave »

Which is the "server" and which is the "client"... tad confused as to where the source files lay.
User avatar
RageMatrix
Baaaaaaa!
Baaaaaaa!
Posts: 5515
Joined: Fri May 10, 2002 12:52 pm 0
XBL Gamertag: Jon256
Location: East Sussex

Re: The Official *nix Thread

Post by RageMatrix »

Sorry, unclear :) The files I want are on the Fedora file server. I want to map a directory that resides on this server to my Ubuntu box so that the filesystem I want appears on the Ubuntu box as part of the filesystem.
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
User avatar
xav
Baaaaaa!
Baaaaaa!
Posts: 2455
Joined: Thu Jun 06, 2002 5:32 pm 0
Location: Bucks, UK
Contact:

Re: The Official *nix Thread

Post by xav »

https://wiki.ubuntu.com/MountWindowsSharesPermanently

In short, you probably just need the SAMBA tools installed (i.e. smbmount) and a suitable entry in /etc/fstab. That should work for permanently mounting a Windows share to a particular point in the filesystem from bootup.

If your needs are more interactive (i.e. you're logged in and want to access a file on the SAMBA server at the desktop), I would be inclined to use the "Connect To Server..." option on Ubuntu's Places menu. You can tell it to add a bookmark so that it's easy to reconnect in future, and the password can optionally be stored in the system keyring so you're not prompted for it in future. If you need to access any of the files using command line tools, or those that don't know about GVFS mounts, you can also get to the mount(s) via the .gvfs directory in your home directory.
Co-creator of The Greys, Monsters, Inked & Elvie webcomics
• Web Site • Twitter • Patreon •
User avatar
RageMatrix
Baaaaaaa!
Baaaaaaa!
Posts: 5515
Joined: Fri May 10, 2002 12:52 pm 0
XBL Gamertag: Jon256
Location: East Sussex

Re: The Official *nix Thread

Post by RageMatrix »

It's Linux to Linux, not Windows to Linux. I've already got a bookmark setup for it, but I want it to be part of the Ubuntu filesystem.
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
User avatar
stealthbanana
Baaaaaa!
Baaaaaa!
Posts: 2805
Joined: Wed Nov 09, 2005 11:59 pm 0
Location: Over Here.

Re: The Official *nix Thread

Post by stealthbanana »

You can just add it to fstab and have it automatically mounted at boot time.

//192.168.xxx.xxx/<path to share> /<mountpoint> nfs auto,username=<username>,password=<password>,uid=<username> 0 0

or something like that.
<edit>
Oh if it is a SAMBA share, change the fs type from nfs to smbfs
Last edited by stealthbanana on Fri Feb 12, 2010 1:35 pm 0, edited 1 time in total.
Not long now before lollipop men are called Darren
User avatar
RageMatrix
Baaaaaaa!
Baaaaaaa!
Posts: 5515
Joined: Fri May 10, 2002 12:52 pm 0
XBL Gamertag: Jon256
Location: East Sussex

Re: The Official *nix Thread

Post by RageMatrix »

Excellent - thanks :)
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
User avatar
xav
Baaaaaa!
Baaaaaa!
Posts: 2455
Joined: Thu Jun 06, 2002 5:32 pm 0
Location: Bucks, UK
Contact:

Re: The Official *nix Thread

Post by xav »

RageMatrix wrote:It's Linux to Linux, not Windows to Linux. I've already got a bookmark setup for it, but I want it to be part of the Ubuntu filesystem.
I understand that, but I thought we were talking about mounting a SAMBA share - in which case (in theory) it's just SMB/CIFS to Linux, and the actual OS that the SMB/CIFS server is running on should be irrelevant (I know it's not, but it should be).

IOW, if you've already got a SAMBA server running on the Fedora box, just use SAMBA on the Ubuntu box to mount it. When you mount it via a bookmark at the desktop, it becomes "part of the Ubuntu filesystem" via the .gvfs directory in your home directory. If you specifically want it mounted at /mount/share/fedorabox/ or somewhere like that, then look at the link I posted about modifying /etc/fstab


If you don't want to use SAMBA then historically Unixy boxes have used NFS for remote shares, but these days I tend to use SSH for that kind of thing instead. Again, you can do it via the Places menu, or you can look at the sshfs fuse module (never used it myself, so can't tell you any more about it).


Edit: Beaten to it with the same answer that was in the link I provided... :roll:
Co-creator of The Greys, Monsters, Inked & Elvie webcomics
• Web Site • Twitter • Patreon •
Post Reply