The Official *nix Thread

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

I've upgraded my work Linux box from Intrepid to Jaunty. For added fun I decided to upgrade from the Alternate CD, but not to actually burn a disc - instead I mounted the ISO as a loopback device and upgraded from that.

For bonus points I did the upgrade whilst logged into the machine remotely, via an XDMCP connection from my Windows box ( http://www.peppertop.com/blog/?p=54 ).

In case that wasn't making life difficult enough for myself, the Linux box is a virtual machine running on VMWare Server on a headless box.


Initially the upgrade seemed to go smoothly. I carried on with my work, checking back from time to time. At some point, a couple of hours in, however, I was alarmed to find that my XDMCP connection wasn't showing me anything at all. So I tried to ssh in to see if the upgrade was still running - only I wasn't able to connect to ssh either. Never mind, I'll just launch the VMWare console and get into it from there... only that failed to work, too.

I had no choice but to kill the virtual machine, sure I'd probably be left with a half-upgraded bastard machine which wouldn't boot. Well, it was half-upgraded (more like 3/4 actually), but it booted fine, and I was able to get in via the VMWare console. I ran the update manager, which informed me that something had gone wrong, and that I should run "sudo dpkg --configure -a" to fix it. So I did. And it did.

One reboot later and I was back to running normally - XDMCP connection and all.


All in all a successful upgrade - despite doing it remotely on a virtual machine from a fake CD. Not perfect, but it recovered well.

The performance seems, subjectively at least, to be a bit snappier. Other than that it's pretty much Intrepid with newer versions of the same old apps. There's a new "Computer Janitor" which is a GUI tool for removing old and defunct apps - much like "deborphan" and friends, only more clickable. There's also a menu entry labelled as "System Testing" which is new - but it won't run for me. I suspect that's because I'm not running it on a local screen.
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 »

Just discovered a supposedly easy way to upgrade Fedora remotely. Trying it now from work :D

http://www.unixmen.com/linux-distributi ... p-a-server
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
User avatar
Ratsoap
Baaaaaaa!
Baaaaaaa!
Posts: 6344
Joined: Fri Dec 19, 2003 1:46 pm 0
Location: Back in Edinburgh
Contact:

Re: The Official *nix Thread

Post by Ratsoap »

Has anyone got any experience with serving media to a 360 with Ubuntu? I have mate who is keen to make the leap, but this is a make or break issue. Googling suggests something called ushare, which sounds like a bit of a ballache to be honest, which he won't be keen on. Are there alternatives?

He's currently using TVersity on his windows box.
Because fucking marketing cunts would never call a spade anything other than a Deluxe Easi-Shift Earth Movement Solution.
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 »

RageMatrix wrote:Just discovered a supposedly easy way to upgrade Fedora remotely. Trying it now from work :D

http://www.unixmen.com/linux-distributi ... p-a-server
Hmm....rebooted and now server non-responsive. I'm guessing some sort of manual input is required before the network fires back up. Won't know until I get home. Still, kinda useful I guess (assuming it hasn't goosed my box).
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 »

Ratsoap wrote:Has anyone got any experience with serving media to a 360 with Ubuntu? I have mate who is keen to make the leap, but this is a make or break issue. Googling suggests something called ushare, which sounds like a bit of a ballache to be honest, which he won't be keen on. Are there alternatives?

He's currently using TVersity on his windows box.
I'd quite like to do this with my Fedora boxen.
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 »

RageMatrix wrote:
RageMatrix wrote:Just discovered a supposedly easy way to upgrade Fedora remotely. Trying it now from work :D

http://www.unixmen.com/linux-distributi ... p-a-server
Hmm....rebooted and now server non-responsive. I'm guessing some sort of manual input is required before the network fires back up. Won't know until I get home. Still, kinda useful I guess (assuming it hasn't goosed my box).
I tell a lie - works a treat. Took an hour to install everything and fire up the network again, is all.
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 »

So how did you do it?

I would just ssh in and do it vis the command line
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 »

stealthbanana wrote:So how did you do it?

I would just ssh in and do it vis the command line
As above: -

Code: Select all

yum -y update
yum clean all
yum install preupgrade
preupgrade-cli
preupgrade-cli "Fedora 10 (Cambridge)"
reboot
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
User avatar
dom
Baaaaa!
Baaaaa!
Posts: 1370
Joined: Wed Feb 09, 2005 1:17 pm 0
Location: Edinburgh, UK and level 691859
Contact:

Re: The Official *nix Thread

Post by dom »

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
OMG (or oligodendrocyte myelin glycoprotein) is a molecule found in your central nervous system.
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 »

Dammit, upgraded to Fedora 10 yesterday on my server (laptop has been Fedora 10 for a while) and what happens? Fedora 11 out today :roll:
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Re: The Official *nix Thread

Post by piku »

I've just [url=http://error_success.piku.org.uk/2009/06/09/headless-virtualbox/]been playing with VirtualBox[/url] on my Linux server. It now boots a virtual instance of Ubuntu in headless mode, and I can now connect to that using an RDP client from either my Mac or PC.

Booting it took a long time, but now the image is running it's nice and responsive. I'm installing devkitARM inside it next, then I can do DS coding without always having to boot my main PC or synchronise a load of files.

I also did it because, well... it's cool :)

Later I might try an RDP session over an SSH tunnel from my mobile phone teathered to my laptop ;)
return (0);
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 »

piku wrote:I've just [url=http://error_success.piku.org.uk/2009/06/09/headless-virtualbox/]been playing with VirtualBox[/url] on my Linux server. It now boots a virtual instance of Ubuntu in headless mode, and I can now connect to that using an RDP client from either my Mac or PC.
What are you using as an RDP server? Xrdp? Does it run rootless?

You might also like to look at XDMCP (the native, if insecure, remote connection protocol for X servers) - I've got instructions on my blog about running in rootless mode on Windows. I haven't explored the Mac side of things for a while - you can certainly use Apple's Xserver to connect via XDMCP, but I don't know whether or not you can make it run rootless.


I find that I prefer a rootless environment - my Linux apps get to use the full size of my Windows desktop, and there's less of a jarring context switch between Windows and Linux mode - but YMMV, of course.
Co-creator of The Greys, Monsters, Inked & Elvie webcomics
• Web Site • Twitter • Patreon •
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Re: The Official *nix Thread

Post by piku »

xav wrote:
piku wrote:I've just [url=http://error_success.piku.org.uk/2009/06/09/headless-virtualbox/]been playing with VirtualBox[/url] on my Linux server. It now boots a virtual instance of Ubuntu in headless mode, and I can now connect to that using an RDP client from either my Mac or PC.
What are you using as an RDP server?
VirtualBox does it all itself. There is a 'VBoxHeadless' program you run from the console (I started it from an SSH connection, my server has no screen attached). Then any RDP client can connect and see the VM instance.

It doesn't run rootless, it's just piping the VM's screen over the network so you see the BIOS come up, it searching for disks, just as if you had a real computer's monitor somehow put in a window on your desktop.
You might also like to look at XDMCP (the native, if insecure, remote connection protocol for X servers) - I've got instructions on my blog about running in rootless mode on Windows. I haven't explored the Mac side of things for a while - you can certainly use Apple's Xserver to connect via XDMCP, but I don't know whether or not you can make it run rootless.
I did consider (after making this work, which took me about two hours to figure out, and an hour to download and install Ubuntu) that maybe my Linux server didn't need to run a separate Linux VM in order to run some Linux software. But, it was interesting to do, and I now have the ability to install OS images and use them across my network which might be useful somehow. It was certainly more interesting than working out why a Makefile that used to work doesn't any more, despite the Makefile and computer not being altered at all.
return (0);
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 »

piku wrote:VirtualBox does it all itself. There is a 'VBoxHeadless' program you run from the console (I started it from an SSH connection, my server has no screen attached). Then any RDP client can connect and see the VM instance.
Of course. I did know that, really. I've only looked at VirtualBox as a possible replacement for the VMWare Server installations we've got here at work - but the GPL version lacks the RDP option, and the commercial version is too expensive compared with VMWare Server being free of charge.

piku wrote:I did consider (after making this work, which took me about two hours to figure out, and an hour to download and install Ubuntu) that maybe my Linux server didn't need to run a separate Linux VM in order to run some Linux software.
I wasn't disputing the desire or requirement to run a virtual machine at all - my suggestion about XDMCP applies just as equally to a guest VM as to the host machine. In fact the article I pointed to is based on my setup here at work - a Windows desktop running a rootless XDMCP connection to a Ubuntu Desktop virtual machine running on VMWare Server on a remote Ubuntu Server host.

As you effectively get RDP for free with VirtualBox (the non-GPL version, anyway), then there might be no real benefit in looking at XDMCP. I like the rootless environment, personally, and there's no way to get that with VMWare's remote console (the equivalent of an RDP connection in the VMWare world), so rootless XDMCP was the way to go for me.
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 »

Err....little help?

I updated my laptop to Fedora 11 last night. Peachy. But I seem to have lost all my repositories that Yum uses to update the system - so I can't get any updates at all now.

Um....what do I do? :)
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
Post Reply