Koozali.org: home of the SME Server

[Solved] sme8 remote reconfigure using SSH

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
[Solved] sme8 remote reconfigure using SSH
« on: April 01, 2011, 11:10:06 PM »
This is a very different question I assure you! :)

I´m 60km away from a server someone else installed in a environment I have no phisical access this weekend.
He boot from CD and answer the installations questions more or less correctly... but I need reconfigure some parameters... I hope to work on this reconfiguration/recreate server/copy data/ sync ... on this weekend... so I have no chances for error.

I thought about to use "db configuration set" to replace some parameters... but fear loose all access to machine... and this is a new SME8b6 install...not sure if b5 ou b6!!!

Main problem: the machine working now (server) is server/gateway mode (IPs 192.168.0.1/192.168.30.1) with default gateway 192.168.30.254
This guy configurated new server as server/gatewya mode also (IPs 192.168.0.2/192.168.30.3) and default gateway 192.168.30.1 !!
But because ETH1 of new server is not connected, it never find a .30.1 and have no access to internet (no yum update or any install!)

So I see 2 solutions: a complete reconfigure using SSH (connected from old server) or change settings from CLI using db configuration.

Could anyone help me with correct way to do this... I´m afraid to issue a wrong command and loose remote ssh !

Thank you!

Regards

Jáder
« Last Edit: April 06, 2011, 04:04:19 AM by jader »
...

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: sme8 remote reconfigure using SSH
« Reply #1 on: April 02, 2011, 03:56:52 PM »
Ouch.

It sounds like you've got two SMEs on site - 192.168.0.1 & 192.168.0.2 (with no WAN).

I don't *think* you'll have any problems if you run setup remotely and change from server-gateway to server-only mode - but if the consequences of a mistake are absolutely unacceptable, you could at least install updates &c by configuring the new SME to use the old SME as an "upstream proxy" (http://wiki.contribs.org/DB_Variables_Configuration#Squid_Proxy_.28squid.29, then scroll down a bit)

I don't think yum uses the squidparent (upstream) proxy by default.  I found this post that implies you may be able to get yum working from the command line using:
Code: [Select]
http_proxy="http://192.168.0.1:3128"
export http_proxy
yum...
(I've tested the above settings on a network of mine with two SMEs - and verified with "netstat -an 1 |grep 3128.*EST" that running "yum list available" seems to run through the proxy on the other SME server).

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: [Solved] sme8 remote reconfigure using SSH
« Reply #2 on: April 06, 2011, 04:06:54 AM »
mmccarn , thanks for your help!

I configurated squid proxy to allow yum to work, updated SME8 and installed requested software (firebird).
After verify everything I tried to login remotly as admin and got access so I was able to reconfigure server as needed.

Thank you.
Jáder
...