Forums : Re-installing the Magnia SG20

Note: OldMan can be sporadic in his visits. If you do not get an answer fast enough, just contact him.

It is currently Wed Oct 18, 2017 2:33 pm All times are UTC -4 hours

Re-installing the Magnia SG20

CreepTyrant

C
Mon Oct 17, 2005 8:46 am
Quote
Hello, this is my first post and I just wanted to say that this site has already been very helpful to me concerning my SG20. Thanks to this site I got Webmin installed and my Apache webserver functional, however I have a few issues I cannot seem to resolve on my own.
So far I was able to successfuly install Webmin on the unit and that has helped quite a bit with things. MySQL gave me a fit for about a week, but finally I discovered the problem was that the sg20 has Redhat 7.0 installed and I was trying to install newer versions of MySQL, I reverted to installing MySQL 3.23 an viola, it went without any trouble. Now MySQL is installed and all files are in place, but the Database won't start because of missing perl modules (specifically DBI and DBD:mysql). As I have gone through the system, I am finding pieces of modules are missing all over, and in some cases the entire modules are missing (such is the price of a used system). At this point I am curious about a few things, there are other questions, but these are the main issues at this point:
1. Is it at all possible to just plain reinstall the unit's OS with a fresh copy of Linux so that all the modules will be in place (I can get a bundle Linux install that comes with Apahce, MySQL and all the perl modules and everything else). The problem I see there is no keyboard, no monitor, and so only having remote access I don't see how I can install a new OS on the unit. If I install Linux on a harddrive on another system, will the unit even boot since the install would have been done on completely different hardware?
2. To solve the problems I listed in (1), where on earth can I get an
image or w/e they call it to simply reinstall the unit from scratch.
I have the setup CD, but that appears to simply contain the user
utilities to setup clients and such.
3. I spoke with a buddy who is much more fluent in Linux than myself
(/me = total Linux noob) and he suggested if I have an extra HDD to
install a new linux on that, see if the unit will boot, then if I can
get reconnected to it remotely, maybe I could correct the drivers and
such for Linux so that the hardware would be supported properly again.
If that would work, what hardware drivers would I have to look for to
support the ethernet connections and all so that the sg20 will
function as it was intended?
Well at least I did actually get my front page working on it, without
mySQL working I can't get the rest of my site up and running.
Thanks for any help you guys may be able to give, and I apologize for
the longevity of this post.

Don't take life too seriously......it's not permanent.

AnOldMan

A
Thu Nov 24, 2005 12:05 pm
Quote
I have tried setting up a system on different hardware: simply because the system partitions on the Toshiba have very little free space. I have not succeeded as yet. I had no problem installing RH7.3 but can't get the Toshiba software working. I have the source code but building every module from source has proved to be my undoing. I have recently acquired the SG30 which includes built modules on CD! I haven't played with them yet.
To restore system functionality if you've managed to totally mess it up you need::
1} A 20gb 9.5mm HDD ( I also recommend a new one, give yourself a fallback option)
2} A 2.5" to 3.5" drive converter so you can plug the drive into your desktop.
3) ACRONIS TRUE IMAGE - a disk imaging program that supports the linux filesystem.
4) A copy of the disk image i.e. TOSHIBA.TIB
I can provide for you a clean TIB file taken from a "virgin" drive.
This is the easiest way to repair a damaged OS on the magnia.
Now about the installed software.
1) Toshiba did minimum installs of the OS. They never expected anybody to hack the box. MySQL is installed though. I have run it. I had to set it up when testing the PHP code for my site - PHP Nuke uses a MySQL database. I think you are having problems because you tried to fix something that wasn't broken. To get MySQL to work all you have to do is enable it in the Bootup/Shutdown menu in WebMin.
2) Linux programs do NOT just install like Windows programs. Most software you would be interested in installing requires that other modules be installed first. The best way to install software is through the package manager in WebMin. You can use it to install any RPM you wish, and if there are module inter-dependencies you need to resolve it will tell you. Use RPMfind.net or somesuch to find the appropriate module(s). Remember that you are running RedHat 7.3 and make sure you use modules for that build. Be prepared to chase a long list of inter-dependant modules.
3) Use perl CPAN to install perl modules. This is accessible from the bash prompt in a telnet window. (I prefer a VNC window myself, but telnet works). One of my articles includes CPAN steps.

CreepTyrant

C
Sun Nov 27, 2005 8:34 pm
Quote
Thank you, that is helpful, however my Sg20 has redhat 7.0 not 7.3, I don't think that's a big issue especially if I get a new image that has redhat 7.3, that would put me up to date as best it can get I assume. I am no longer worried about running my database with MySQL since I decided to go the professional route and have purchased my own domain name and hosting. I thought that best since my website(s) are probably going to have a bit of traffic and with my lan already running 6 computers 24/7 (and lots of online gaming going on) I don't want my precious little upload bandwidth eaten up. So that alleviated some issues for me since the hosting has everything I need and I already have one of my gaming forums up and running smoothly.
So now changing my SG20's purpose a bit I find myself with a new problem that is absolutely baffling me, the Vpn Lan configuration. I have no trouble connecting remote users via a vpn connection to share files, but I cannot figure out how to configure the system to allow those remote users to see any game server I host. I installed a Port mapping utility and an Internet Tunnel program on the client I use for hosting the gameserver, this used to work great under a normal hardware router, all I had to do was open the proper ports for the tunnel utility on the router. With the SG20 acting as my router for my network I cannot seem to open those ports as easily as I did with a router. I do not know how to make the system treat VPN clients as REAL LAN clients so that they can join my gameserver host. All I can do with VPN at this point is share files, in Windows I can see the remote clients in my network as if they were part of my lan, but apparently this is just a simple file share connection and nothing more.
Any insight on how to forward ports so that a client machine needing a particular port open will have the access it needs? If I can get the ports opened for my gameserver machine, I can just continue to use the utilities as I did before and I'll be happy. The best solution would be if I can make the sg20 treat remote clients as if they were real clients though, and I did some research and found this:
from what I read there it should be totally possible to achieve what I want, I just don't know which scripts to look at, or how to alter them properly to make it work.
Again, sorry such a long post, I'm learning little by little, and it seems everything I learn I discover 1000 more things I need to learn and the questions just pile up.

Don't take life too seriously......it's not permanent.

AnOldMan

A
Thu Dec 08, 2005 8:27 pm
Quote
Most games use a specific port for services, and that port can be set in the game's configuration files. A popular one is 8080. You need to find out what port(s) the game(s) you are hosting are hosted ON. You then need to read up on port forwarding. There are several articles on this site.
It is total overkill to use VPN for gaming: It allows total network access when you only need a port re-direct; it also eats up bandwidth with the ipsec key scrambling of all transmitted information. (It will reduce your visitor's ping).
If you wish to host games, set up your server with the default port(s) and forward that port through the firewall to your server.

CreepTyrant

C
Fri Dec 09, 2005 5:29 am
Quote
I see, although we were using VPN for other services as well, file sharing and such. I've changed from file sharing via VPN though, and since these are folks I can trust I created usermin accounts for them and selective access to a few modules so it's kind of like a web interfaced FTP for them where they can upload and download files.
I can't get my Samba shared folders on a client to map through the server, I did the /mnt <LinuxName> to create a folder on the server and then
/smbmnt //clientIP/clientfoldername /mnt/<LinuxName>
and multiple variations of those commands, but something about Window's XP file permissions is not allowing access, still looking for the solution there, otherwise I am very happy with the usermin setup, I even customized the whole thing so it just basically acts/looks and feels like a website.
As for the gaming and forwarding the ports, the problem is related to what I posted in my other thread just yesterday, since I have not managed to get the firewall working, I cannot forward ports (I would have thought the ports would be open without a firewall working). I'm not sure, but I suppose somehow the firewall must be working at least in part, but it's hard to say since I cannot do anything with Linux Firewall or Shorewall.
Anyway, if you'd kindly take a look at my other thread I posted, you'll see what I mean, I'm still working on this issue.

Don't take life too seriously......it's not permanent.

AnOldMan

A
Thu Dec 29, 2005 11:20 pm
Quote
Even without a "firewall" you still have NAT and BRIDGING to contend with.
UPGRADE TO THE 2.6.0-72 IMAGE !

inimicaljords

I
Mon Jan 23, 2006 5:41 pm
Quote
I have the Magnia SG20 and my hard drive has crashed. I do not have a backup image of the magnia software. Does anyone have the image? I would prefer the newest upgraded image, but any will do. I would really appreciate it if someone could send me a link to download it or tell me where I can get it. Thanks a lot!

inimicaljords

I
Mon Jan 23, 2006 5:50 pm
Quote
if you have the image and need webspace to upload it, I can give you ftp access to one of my websites to upload it too. Thanks a bunch!

AnOldMan

A
Mon Jan 23, 2006 9:04 pm
Quote
I have the space, not the metered bandwidth! File is stored in my hosts' FTP area, but multiple downloads of the thing would kill my bandwidth allocations and cost me a fortune.
Little tidbit: I now have an SG30 image that boots on the SG20! This basically gives you RH8 and perl 5.8 instead of RH7.3 and perl 5.6 - I got an SG30 and used the recovery cd to "recover" onto the 20gb hdd from my sg20 and it worked! Just have to tweak a couple of things: cpu voltage monitoring values, root password, ect.

AnOldMan

A
Mon Jan 23, 2006 9:09 pm
Quote
Email me directly: and I will give you temporary access to ftp.anoldman.com so you can retrieve the .TIB file.
I assume you have Acronis TrueImage and a 2.5" to 3.5" adapter?

CreepTyrant

C
Wed Jan 25, 2006 12:23 am
Quote
If you just want a regular SG20 Image, go to they have a downloads section with the image file you need.
Very fast download, and I know the image works, I just recently re-installed my sg20 from that image.

Don't take life too seriously......it's not permanent.

CreepTyrant

C
Wed Jan 25, 2006 12:53 am
Quote
P.S. I'd be interested in trying out that sg30 image, I'd like to have a bit newer version of RedHat running for a couple fo reasons, and I believe the upgrade to Perl would solve a couple minor install dependency issues I'm having. I'm finding that dealing with rpmfind.net is a love/hate relationship.
Also I do have one new issue thats popped up since the re-install, I set up the usermin accounts again, but no matter how I log in, it always says "You do not have access to any modules". I have checked and re-checked countless times through every single module in webmin, checked all the syetm accounts, user groups, webmin groups, usermin groups and so forth. Everything is set exactly as it was before when it worked, but it's giving that error every time, and only with Uermin, Webmin accounts work perfectly.
I am wondering if whatever is causing that could somehow be related to why I cannot set up Private USER/PASS access for FTP, the only FTP access at the moment is anonymous, which refuses to disable, so I simply made an empty dummy folder and pointed WU-FTP to that folder and restricted all commands and permissions. I've tested from several locations and all you can access is the empty folder andnothing else, so I'm glad I managed to at least lock that down somehow, but I know that's not really the right way to do it. I think a config file must be screwed up somewhere.....hmm....maybe I'll just do it over again since it is so easy to re-install now.

Don't take life too seriously......it's not permanent.

AnOldMan

A
Wed Jan 25, 2006 2:28 am
Quote
You'll note from one of my 1st articles that FTP is blocked by default. You can access as ROOT with your default (first entered) username's password AFTER you modify FTPUSERS and FTPACCESS.
When you change stuff in ANY config files through Webmin, you must keep in mind that MOST of these files are reset via perl scripts whenever ANY pre-set conditions are met. Most of these triggers are through the SG20 admin pages, but there are CRON jobs running as well. The SA2 system routinely re-writes just about every important config file, even if only one small change to one file is necessary.
To make any changes permanent, you must hand-edit the config generating files in the SA2 subsystem. Hand editing just about any config file that webmin would read/write reveals a warning comment at the top of the file explaining that the file is auto-generated.
This is one of the reasons I give lessons on hand-working the files instead of just telling newbies to use the Admin-based rpm installer to get webmin running. Webmin edits default settings files for you on the fly, but Webmin has NO IDEA about the SA2 system.
You MUST increase your understanding of this system. Webmin becomes too much of a crutch if you don't understand what it is actually DOING. You CAN use webmin's file manager function to explore the drive and edit the files much easier than from a bash prompt, though.
I am working on the SG30 image, but keep in mind that it is now OPEN SOURCE. This means that even RH8.0 rpms may not work for it. I use RPMFIND.NET for finding rpms. With the SG20 you can just look for RPMs issued for the RH7.3 build. With the SG30 you've gotta look for Sourceforge rpms.
Example: RH8 uses kernel-source-2.4.18-14.i386.rpm while the SG30 has
kernel-source-2.4.18-27.8.0.i386.rpm installed - and tosh modified to boot!

AnOldMan

A
Wed Jan 25, 2006 2:39 am
Quote
My testbed SG20's LCD display now reads:
Build us 3.0.1a-149
And a security update just bumped the kernel to 2.4.20-28.8
which is equivalent to RH9

CreepTyrant

C
Sat Jan 28, 2006 7:38 pm
Quote
I definitely agree with you about understanding more about the actual underlying file structure and not letting Webmin become the crutch, I am a firm believer in getting more intimate with the OS if you want to really learn how to make it work the way you want to, it's one of the reasons I still have a distaste for Windows, although it has come a long long way from the dos based 3.1 versions. I am a bit more old school myself though, I still like a good ol' DOS prompt to do certain things, heck I even figured out how to erradicate a couple fo trojans from a buddies computer using a DOS prompt because the trojans wre designed to integrate themselves into Windows and use Windows function calls to replicate themselves and protect themeselves from deletion, but with the system running at a plain jane DOS prompt and No windows components to leach from and attack themselves, the trojans were defensless against a simple DELTREE command to thier containing folders. To this day I still manually configure config files even in Windows, and I always tweak my running process down the the minimum needed to do what I do with my system, I think that is why I get games like Counter Strike Source to run on very low end systems, like my daughter's Pentium 3 III 800, the gameplay is smooth and never drops below 40 fps, which is fine to the human eye, I get people that don't believe thats possible because they have Pentium IV's that get choppy and laggy. I think thats because a lot of people buy prepackaged systems that have 30-50 different processes runing in the backround hogging resources and memory and such.
Anyway, I would love to learn more about the heart of the system in this manner, I love Webmin and it is very handy, but I would rather trust it to handle the routine stuff like adding account, deleteing a user or basic configurations to the programs I'm running, but nothing beats actually knowing just what files to play with when you really want to get something done. I am quite sure the issue I have with Usermin can be solved if I can figure out which files to modify for it. So since you mentioned the sa2 folder I am going to start poking around in there and see what I can figure out on my own.Anyway, I'm starting to ramble on now, hehe, Ima go explore that sa2 folder and see what I can find.
As always, thanks for a litle insight, always helpful.

Don't take life too seriously......it's not permanent.

MyTinyTown

M
Thu Aug 05, 2010 8:07 am
Quote
CreepTyrant wrote:
If you just want a regular SG20 Image, go to they have a downloads section with the image file you need.
Very fast download, and I know the image works, I just recently re-installed my sg20 from that image.

Not sure if anyone will still come here, but I am looking for an image of the SG20. seems to be down? I found ESWebs.com and that image claims to be corrupt according to Acronis True Image Home 2010 trial version and his contact email system seems not to be working either. I will be using a USB2 enclosure on Windows XP.
If any one has the image file I'll put it on my website and give anyone access to it. I have a 10GB of space and TONS of bandwidth. I will be adding a MG20 spot on there and offer a few of the SG20 files and an image if I can grab 1.
I currently have 2 SG20s and neither boot, 1 will not get past the "Working..." I believe caused from HDD failure and the other will not get past the "System Starting Please Wait" after resetting the admin password. It makes it to where the time pops up and the private IP pops up on the front display, but get no further, left it run all night last night.