The Official *nix Thread

Inane baanter or words of wisdom - you decide...
Post Reply
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:Indeedy. Basically its not my call - I'm not even really in charge of the servers, I've got a boss above me and two more above him. Even if I wanted to do it myself, I wouldn't know how to install a new Linux OS remotely and I'd have to go crawling to someone if I busted it. So - the current wisdom prevails.
Oh, okay then - I take that back. But if you can find any old shitty hardware lying around, try dropping a copy of FC6 on it and then upgrading remotely until you get to FC8 (since you have FC8 on a lappy, you've got a model to compare).

Honest, dude: "yum -y update all" is all it takes in a lot of cases (apart from shoehorning on some newer files).
RageMatrix wrote:Thankfully, due to my relative inexperience with Linux, if it did go tits up, it probably wouldn't be up to me to fix it anyhow (contary to what you said, those who say "leave it" are indeed those who will have to fix it). I just does what I'm told to! :D
I have a small set of friends (probably 3-4 people) who have root priv to a few of my servers. They've all been read the riot act - not about breaking things, but about communication amongst themselves and maintaining audit trails in the files they alter. Although none of them consider themselves to be experts, I consider none to be "loose cannons" so feel confident they ain't going to do reckless things on my boxen. But I ain't worried that they're going to break things... they've all demonstrated to me that if they *do*, then they have the mindset of being able to work out how to fix it.

We're all gonna break things once in a while; it's what you do when it breaks is what makes the difference. And nobody learned anything by getting it right the first time.
RageMatrix wrote:EDIT: As a total aside, I've managed to setup another e-mail server from scratch on a fresh blank Xeon server which we bought to replace the other e-mail server I did which - with it being just an old PC of about 7 years old - just couldn't really cope with the load. Okay, I was just following tutorials and that, but still...:)
.. but it's a learning experience, and I'm willing to bet lessons learned from your first frumbles helped with this setup, hmmm?
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: Oh, okay then - I take that back. But if you can find any old shitty hardware lying around, try dropping a copy of FC6 on it and then upgrading remotely until you get to FC8 (since you have FC8 on a lappy, you've got a model to compare).

Honest, dude: "yum -y update all" is all it takes in a lot of cases (apart from shoehorning on some newer files).
Okay, I thought I'd try updating my FC8 box to FC9 (seeing as its out today) so I tried the above and got "No packages marked for update". Is there something else I need to do first? Add a new repository or something?
Dungeon-Dave wrote: .. but it's a learning experience, and I'm willing to bet lessons learned from your first frumbles helped with this setup, hmmm?
Yeah 8) Even thought I broke the new install pretty severely to start with (again). :lol:
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: Is there something else I need to do first? Add a new repository or something?
- reading a previous post of mine and following the link on there could have been a good start!

http://fedoraproject.org/wiki/YumUpgradeFaq <-- try that.
User avatar
GeeZa
Baaaaaaa!
Baaaaaaa!
Posts: 7156
Joined: Thu Aug 07, 2003 5:04 pm 0
Location: Taghazout.

Re: The Official *nix Thread

Post by GeeZa »

I love "od" although the endian-driven output threw me for a second there.
"Chrome plated stars on a black leather sky"
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: Is there something else I need to do first? Add a new repository or something?
- reading a previous post of mine and following the link on there could have been a good start!

http://fedoraproject.org/wiki/YumUpgradeFaq <-- try that.
:oops: Sorry! :D
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 »

tufty wrote:For those running Debian, or debian-based distros, and I cannot state this strongly enough
UPDATE NOW

http://www.securityfocus.com/archive/1/491987

Simon
I upgraded my Ubuntu machine at home, although it's inside my firewalled network, so I'm less concerned about the risk of a break-in.

I might have left it at [64-bit] Ubuntu 7.10 originally, however, had I realised that installing updates would break the Cisco VPN client which compiles itself during installation.

Does anyone have experience of translating the information which the Cisco VPN client uses into the required answers to the questions posed by vpnc, Ubuntu's own VPN client? I'd use it instead, if I could get it to work...

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

Not sure if anyone here will be able to help, but I have an install of Ubuntu studio that naffed up during the update from Gutsy to Hardy, the system still works, but the file browser (nautilus) doesn't. Bascially if I try to open it, it flashes on screen for a second then disappears. Running the updater again gives some message about a partial upgrade, then says that I cannot upgrade from gutsy to hardy using this software.

Is there a way to force the update to run? or is there some way of reverting it back to gutsy? I don't want to re-install from scratch and lose all my settings and shit.
Because fucking marketing cunts would never call a spade anything other than a Deluxe Easi-Shift Earth Movement Solution.
drz
Posts: 9
Joined: Thu May 08, 2008 6:50 pm 0
Location: Carpinteria, CA, USA
Contact:

Re: The Official *nix Thread

Post by drz »

Ratsoap wrote:Running the updater again gives some message about a partial upgrade, then says that I cannot upgrade from gutsy to hardy using this software.
Is there a way to force the update to run? or is there some way of reverting it back to gutsy? I don't want to re-install from scratch and lose all my settings and shit.
I'd try:

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
If that doesn't work, try running:

Code: Select all

sudo apt-get install update-manager-core
sudo do-release-upgrade
Tim
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 »

Ratsoap wrote:Is there a way to force the update to run? or is there some way of reverting it back to gutsy? I don't want to re-install from scratch and lose all my settings and shit.
Try the instructions above first. If that fails you still have another option available to you, depending on what you mean by "all my settings and shit". If you mainly mean stuff in your home directory then the following should work:

I had trouble with one of my machines after upgrading to Hardy - an issue connecting via Xming on a Windows box which didn't occur with a fresh install. To cut a long story short I ended up needing to reinstall a fresh system whilst leaving my existing data intact. I didn't have a separate /home partition on the machine.

The solution was to boot from a live CD (I used a desktop version of Hardy) and delete everything apart from /home from the root partition. Then I booted from the alternative installer (the text-based one - it's a separate ISO), and went through the installation steps. At the partitioning stage I told it not to format the root partition, but to mount it at /

The installer then goes through its business and happily re-creates all the other directories and files, leaving you with a fresh installation, but your old /home directory. That should mean that most of your settings and files are preserved.



Notes:
Some things don't live in your home directory and may get lost via this process. Backup anything you might need from /etc and don't forget things like databases or websites which may be elsewhere on the machine.

If you have multiple users, re-create them in the same order so that their user IDs match up with their home directories, otherwise you'll be spending a bit of time with "chown -R" to get everything re-mapped.

Any additional apps you've installed will be lost in the process. Of course if most of them were installed via apt then re-adding them is pretty simple once you're up and running.

If you can, back up the whole drive before trying this ("dd" is your friend.... provided you get the parameters in the right order, otherwise it's your worst enemy), so that you've got a fallback if it doesn't work.
Co-creator of The Greys, Monsters, Inked & Elvie webcomics
• Web Site • Twitter • Patreon •
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 »

Coolio, drz's instructions fixed it.

Thanks very much guys!

:skip:
Because fucking marketing cunts would never call a spade anything other than a Deluxe Easi-Shift Earth Movement Solution.
drz
Posts: 9
Joined: Thu May 08, 2008 6:50 pm 0
Location: Carpinteria, CA, USA
Contact:

Re: The Official *nix Thread

Post by drz »

Ratsoap wrote:Coolio, drz's instructions fixed it.
Thanks very much guys!
:skip:
You're welcome. I'm always happy to see people running free software.

Tim
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 »

The weird thing is, my name is also Tim, so it's like you are issuing crazy instructions, Derren Brown style.

Tim
Because fucking marketing cunts would never call a spade anything other than a Deluxe Easi-Shift Earth Movement Solution.
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 »

I found this on wikipedia, and thought people might find it interesting, perhaps even useful (although my current linux boxen only lock-up due to hardware faults, so I've not needed it)...

http://en.wikipedia.org/wiki/Magic_SysRq_key

Using a combination of alt+SysRq+letter, you can either print useful information to the console or messagelog, or sync disks, remout as read-only, kill processes on a specific virtual terminal, unmount disks, trigger a dump or force a reboot amongst others.
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 »

This is a completely minor issue, but I've noticed under bash that some of my directories (denoted in dark blue) have bright green backgrounds behind the text. I've looked at the directory permissions including user/group and they seem to be identical to directories that don't have this green background. Whats that all about? I wouldn't mind if I knew what it meant or perhaps turn it off as it makes the directory text fairly hard to read.
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 »

dom wrote:I found this on wikipedia, and thought people might find it interesting, perhaps even useful (although my current linux boxen only lock-up due to hardware faults, so I've not needed it)...

http://en.wikipedia.org/wiki/Magic_SysRq_key

Using a combination of alt+SysRq+letter, you can either print useful information to the console or messagelog, or sync disks, remout as read-only, kill processes on a specific virtual terminal, unmount disks, trigger a dump or force a reboot amongst others.
Nice find - I suspect I might need to use this at work one day...;)
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
Post Reply