The Official *nix Thread

Inane baanter or words of wisdom - you decide...
Post Reply
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 »

Dungeon-Dave wrote:If your problem is that your pops doesn't know how to operate an FTP client, surely the solution would be to show him and get him to practise a few times to get it right.

I think I had the same convo with Piku: he was looking for technological solutions to what was essentially a knowledge and/or capability problem. I'm not saying that it's the wrong approach, just that many people decide it's easier for them to sand the camel down smaller - yet they don't entertain the notion of ordering a bigger needle. Exploring all different avenues enables you to weigh up the different solutions rather than commit quickly to one which may represent large investment for little returns.
Well, possibly. I'm all for knowledge and such, but my dad is 76 and is frankly getting on a bit to be learning all this "technical stuff". The guy taught me MS-DOS and basic PC hardware back in the day so I'd say his work is done :) He'd see little benefit in learning a whole new piece of software for what essentially amounts to hoovering a few files off my server. The browser seems the best place to make this operation as simple and transparent as possible, so that's what I went with in order to maximise it's usefulness for him.
When I want to use the FTP service on my server, I use a dedicated FTP client but it's also heartening to know that even if I don't have that extra software installed on a PC I can still access the FTP service using a simple browser.

As a side note, another Windows PC bites the dust in my household and now is running Ubuntu happily enough. I would have preferred Fedora 12, but it's unable to detect the USB wireless adapter, whilst Ubuntu picks it up just fine. Not sure I am a huge fan of Ubuntu as a learning OS - too much seems to be done for you and parts of the regular UNIX ethos (like being able to su to root, for example) appears to be shut off and replaced with sudo functionality. Not a huge fan of apt-get as a replacement for yum either. But hey - it's better than Windows. That just leaves one Windows machine out of four and I can't replace that as some software on it is Windows-only and won't run in WINE.
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
User avatar
minus9
Baaa!
Baaa!
Posts: 352
Joined: Sat Jun 04, 2005 8:00 pm 0
Location: Hither and yon

Re: The Official *nix Thread

Post by minus9 »

RageMatrix wrote:Not sure I am a huge fan of Ubuntu as a learning OS - too much seems to be done for you and parts of the regular UNIX ethos (like being able to su to root, for example) appears to be shut off and replaced with sudo functionality
If you want to su like on other distros you need to set a root password.

e.g. sudo passwd
<your users password>
<New root password>
<Verify New root password>

You should then be able to su or "su -" the minus on the end gets you root's login environment like using -l.

or just use "sudo su -" which is pretty much the same.
--
This sig left intentionally blank.
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 »

minus9 wrote:
RageMatrix wrote:Not sure I am a huge fan of Ubuntu as a learning OS - too much seems to be done for you and parts of the regular UNIX ethos (like being able to su to root, for example) appears to be shut off and replaced with sudo functionality
If you want to su like on other distros you need to set a root password.

e.g. sudo passwd
<your users password>
<New root password>
<Verify New root password>

You should then be able to su or "su -" the minus on the end gets you root's login environment like using -l.

or just use "sudo su -" which is pretty much the same.
Oh, I've fixed it - I was just complaining that using sudo is the default option, unlike pretty much all the other *nixs I've ever used, which require you to configure the root account on install :D
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 »

RageMatrix wrote:He'd see little benefit in learning a whole new piece of software for what essentially amounts to hoovering a few files off my server.
If that's all he's doing, I'd consider making the files available over HTTP then securing it to him-only. If he's not uploading, FTP probably isn't required.
RageMatrix wrote: As a side note, another Windows PC bites the dust in my household and now is running Ubuntu happily enough. I would have preferred Fedora 12, but it's unable to detect the USB wireless adapter, whilst Ubuntu picks it up just fine.
...
Not a huge fan of apt-get as a replacement for yum either.
I suppose - if his machine is ubuntu - you could do some NFS sharing across da interwebs, configuring an automounter so that when he drops into a directory on his boxen he's then looking at your files over a remote share. Probably a bit more of a faff to setup, but if he's familiar with drag/drop between folder icons then that could be an alternative.

Note that apt isn't a yum replacement as such - if anything, yum replaced apt4rpm, which was the RH attempt at mimicking "dependency hell workarounds". However I heard you can use apt to install yum for debian (in the same way you can yum-install apt for a RPM-based distro) but there's not that many RPM repos for debs.

Apt isn't bad once you get used to it. After playing with it, I began to see some deficiencies in yum.
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 »

minus9 wrote:If you want to su like on other distros you need to set a root password.
I think Jon's point was that most distros follow the Unix method of allowing you to switch user to root, but the root account is locked by default under ubuntu, meaning you need "sudo -i" to maintain an interactive root shell - you don't use root's password.

I'm not an ubunny/debs user so I could be wrong on that front - it was just my experience when using a couple of bunny boxen.
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 »

Dungeon-Dave wrote:
RageMatrix wrote:He'd see little benefit in learning a whole new piece of software for what essentially amounts to hoovering a few files off my server.
If that's all he's doing, I'd consider making the files available over HTTP then securing it to him-only. If he's not uploading, FTP probably isn't required.
Possibly not...but I wanted to learn how to use vsFTP. I could have done it over HTTP using Apache authentication, but I've already done that bit when learning how to secure various bits of my "website". I might use the upload functionality of FTP at some point in the future...:)
Dungeon-Dave wrote: I suppose - if his machine is ubuntu - you could do some NFS sharing across da interwebs, configuring an automounter so that when he drops into a directory on his boxen he's then looking at your files over a remote share. Probably a bit more of a faff to setup, but if he's familiar with drag/drop between folder icons then that could be an alternative.
Sadly, he's using Windows XP, but it's a nice thought :D
Dungeon-Dave wrote: Note that apt isn't a yum replacement as such - if anything, yum replaced apt4rpm, which was the RH attempt at mimicking "dependency hell workarounds". However I heard you can use apt to install yum for debian (in the same way you can yum-install apt for a RPM-based distro) but there's not that many RPM repos for debs.

Apt isn't bad once you get used to it. After playing with it, I began to see some deficiencies in yum.
I'm going to look into apt in more detail at some point - I just use the Ubuntu machine as a media player/file server at the moment. Looks about the same though, as it appears to do the same job as yum, but I'll take your word for it. Not heard of apt4rpm.
Just set up a Samba server for the Fedora box. Only took me five minutes this time with a different configuration :) Better than SSH'ing files to my laptop using WinSCP and I can save directly back to the server. I don't know what else to do now aside from set up a RAID or something.
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
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 »

Dungeon-Dave wrote:
minus9 wrote:If you want to su like on other distros you need to set a root password.
I think Jon's point was that most distros follow the Unix method of allowing you to switch user to root, but the root account is locked by default under ubuntu, meaning you need "sudo -i" to maintain an interactive root shell - you don't use root's password.

I'm not an ubunny/debs user so I could be wrong on that front - it was just my experience when using a couple of bunny boxen.
Yup :)

Root isn't enabled at all by default as far as I can see. When it wanted authentication for something significant, it asked for the user password and you couldn't su to root with that unless you enabled the root account with a different root password but again, that doesn't seem to be required for system configuration authentication in user mode (unlike Fedora), just the user's password still.
I found it an odd setup, but this is the first Debian-based system I've used.
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 »

It uses PolicyKit which is a much better method than the usual console/root/sudo methods... but pretty detailed to implement.
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 »

RageMatrix wrote: Possibly not...but I wanted to learn how to use vsFTP. I could have done it over HTTP using Apache authentication, but I've already done that bit when learning how to secure various bits of my "website". I might use the upload functionality of FTP at some point in the future...:)

I'd forget FTP for anything other than public open FTP servers. SFTP is what you really want (SSH/SCP).

Upload your files using either an SFTP client or SCP and make them available via HTTPS.

FTP has had it's day - mostly because admins didn't know how to secure them.

A chrooted SCP only login is a breeze to setup.
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 »

RageMatrix wrote: Root isn't enabled at all by default as far as I can see. When it wanted authentication for something significant, it asked for the user password and you couldn't su to root with that unless you enabled the root account with a different root password but again, that doesn't seem to be required for system configuration authentication in user mode (unlike Fedora), just the user's password still.
I found it an odd setup, but this is the first Debian-based system I've used.
root is "enabled" it just doesn't have a password so you can't su to it. sudo doesn't (necessarily) use root's password to switch your uid to root. Any user in the (typically) admin group can run any process as root -

(from /etc/sudoers)
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

The gui elevation stuff is basically doing the same thing as sudo - switching to root to run the process once you have authenticated.
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 »

defsdoor wrote: I'd forget FTP for anything other than public open FTP servers. SFTP is what you really want (SSH/SCP).

Upload your files using either an SFTP client or SCP and make them available via HTTPS.

FTP has had it's day - mostly because admins didn't know how to secure them.

A chrooted SCP only login is a breeze to setup.
Might look into that - but as far as I can tell, it's pretty secure. It's password protected and the user is chrooted to the directory I've specified and cannot see the rest of the filesystem. The thing is read-only at the moment as well. Aside from the network traffic being reasonably open, I guess, it seems secure enough.
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
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 »

defsdoor wrote: root is "enabled" it just doesn't have a password so you can't su to it. sudo doesn't (necessarily) use root's password to switch your uid to root. Any user in the (typically) admin group can run any process as root -

(from /etc/sudoers)
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

The gui elevation stuff is basically doing the same thing as sudo - switching to root to run the process once you have authenticated.
I haven't looked at the sudoers file yet, but thanks - interesting. Will see how it's set up.

BTW, you never accepted my XBox Live friends request ;)
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 »

I haven't turned my xbox on for ages :) I also need to renew my live membership :)
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 »

dom wrote:For media streaming, I use fuppes; it's in the repositories (I think, or it's in medibuntu) and installed fine on my headless Ubuntu server. It tends to just stay running and I occasionally rescan the directories for new content.

If people have difficulty configuring it, I can provide my fuppes.cfg file, but bear in mind I only use it for my xbox 360, not a PS3.

Dom
Planning on getting video-streaming from my Fedora server to my 360 going in the next few days. Can you message me your cfg? I take it fuppes works okay?
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
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 »

been contemplating the idea of building my own custom linux build recently.

the plan is to take an existing setup (freenas or ubuntu are likely candidates at the moment), add on a bunch of extras (ps3 media server, sabnzbd, squeezebox server, rtorrent and a few others), make it all easily manageable via web interface. setup would involve things like setting networking info and media server custom settings.

how would i best go about this, so i can just burn a disc, then boot it and do a clean install on new hardware? (so would need to do device detection and stuff)

i know several people who have asked me recently to help them set up a similar way of downloading/playing videos on their tv (via ps3/xbox/STB), so if i could do it all on one machine, then work out what configs need modifying, and compile a new distro with all of it, it would be a big help...

if i was doing it with windows, i'd do it as a base install of XP (or whatever) and then something like a ghost application image with all the preconfigured apps on with a howto describing config changes that may need making. doing similar with linux would be acceptable too if it takes out a load of hassle with hardware detection/disk formatting/etc...

any suggestions?
---
psn: spazhammer75
http://nottsdj.co.uk - Nottinghamshire Weddings and Events DJ
Post Reply