How To Revive An Old PC With Linux
|
|
|
Comments (13)
How To Revive An Old PC With Linux
That sounds interesting. Let me suggest that you write it up as a tutorial and submit it here. I'd like to give it a try.
I've done ssh -X from an old machine in order to run konqueror on the new machine just to get the benefit of my kwallet / passwords. It's just:
oldbox> xhost newbox oldbox> ssh -X newbox newbox> export DISPLAY=oldbox:0 newbox> konqueror
oldbox> xhost newbox oldbox> ssh -X newbox newbox> export DISPLAY=oldbox:0 newbox> konqueror
moopst, are you sure you need all that? In my understanding,
oldbox> ssh -X newbox newbox> konqueror
is all that is needed. ssh handles the authorization and DISPLAY set-up -- provided it is configured to do so. At least, for me it works, I use this _very_ regularly. - Martin
oldbox> ssh -X newbox newbox> konqueror
is all that is needed. ssh handles the authorization and DISPLAY set-up -- provided it is configured to do so. At least, for me it works, I use this _very_ regularly. - Martin
Yes please write up a howto on that, I have searched and haven't found anything very useful.
I have a laptop that likes to corrupt hard drives, does not boot form usb, but will boot of the network. So using it as a thin client would be very nice.
I have a laptop that likes to corrupt hard drives, does not boot form usb, but will boot of the network. So using it as a thin client would be very nice.
@theboomboomcars -
I second the motion for the howto. It won't need to be very much longer than his post above, however, because the commands he gives are really all that's needed. Instead of konqueror, you could do "mozilla", "firefox", "nautilus" - or any number of X-based applications.
I second the motion for the howto. It won't need to be very much longer than his post above, however, because the commands he gives are really all that's needed. Instead of konqueror, you could do "mozilla", "firefox", "nautilus" - or any number of X-based applications.
Assuming you have linux running on two machines, one old and one hot and running gnome:
On the hot machine edit /etc/gdm/gdm.conf DisallowTCP=false # to permit tcp connection Enable=true #in [xdmcp] section
/etc/init.d/gdm restart
On the old machine, from the command line, you could X -query IPofhotmachine or you can edit /etc/gdm/gdm.conf to exceute that when gdm starts up:
0=Terminal -query IPofhotmachine
/etc/init.d/gdm restart gives you a login to the hot machine
There are other choices, too. You can set up a chooser screen to allow choosing which host to log into. Good fun. People will not believe you can make a Pentium I look good this way, but it works if you have 100 mbits/s network, or better ;-). 10 mbits will drag...
This setup should only be done on a private LAN, not over the web, or some hacker will get in. It is basically what I use in computer labs to get all the students on one server so I can control their baser instincts... For example, he who controls the server can shutdown all of a particular user's processes. That really gets their attention.
For the really old machine with dead hard drive this can be extended to boot from the server with LTSP, K12LTSP, etc.
On the hot machine edit /etc/gdm/gdm.conf DisallowTCP=false # to permit tcp connection Enable=true #in [xdmcp] section
/etc/init.d/gdm restart
On the old machine, from the command line, you could X -query IPofhotmachine or you can edit /etc/gdm/gdm.conf to exceute that when gdm starts up:
0=Terminal -query IPofhotmachine
/etc/init.d/gdm restart gives you a login to the hot machine
There are other choices, too. You can set up a chooser screen to allow choosing which host to log into. Good fun. People will not believe you can make a Pentium I look good this way, but it works if you have 100 mbits/s network, or better ;-). 10 mbits will drag...
This setup should only be done on a private LAN, not over the web, or some hacker will get in. It is basically what I use in computer labs to get all the students on one server so I can control their baser instincts... For example, he who controls the server can shutdown all of a particular user's processes. That really gets their attention.
For the really old machine with dead hard drive this can be extended to boot from the server with LTSP, K12LTSP, etc.
Thanks that looks very simple. I'll have to look into the ltsp.
theboomcars wrote:"Thanks that looks very simple. I'll have to look into the ltsp."
LTSP is available from installation of EdUbuntu, K12LTSP and SkoleLinux (DebianEdU). There are also Debian packages. The difference between LTSP and these X tricks, above, is that LTSP uses the server to boot the client PCs. This works very well in a small operation, because you do not even need to install on the hard drives of the client. I wrote an article for FreeSoftwareMagazine on the installation with EduBuntu from 2006 at http://www.freesoftwaremagazine.com/articles/linux_terminal_... It took all of 20 minutes to install on the server and the clients boot in about 20 seconds with only a BIOS enabling of PXE boot or pushing F8 at boot time to get a boot menu.
To boot from the server, the client gets the kernel and a ramdisk environment, boots, and then does the X connection to the server. I cannot tell you what a huge time saver this is. Maintaining hundreds of clients becomes as easy as maintaining the server (or cluster of servers).
LTSP is available from installation of EdUbuntu, K12LTSP and SkoleLinux (DebianEdU). There are also Debian packages. The difference between LTSP and these X tricks, above, is that LTSP uses the server to boot the client PCs. This works very well in a small operation, because you do not even need to install on the hard drives of the client. I wrote an article for FreeSoftwareMagazine on the installation with EduBuntu from 2006 at http://www.freesoftwaremagazine.com/articles/linux_terminal_... It took all of 20 minutes to install on the server and the clients boot in about 20 seconds with only a BIOS enabling of PXE boot or pushing F8 at boot time to get a boot menu.
To boot from the server, the client gets the kernel and a ramdisk environment, boots, and then does the X connection to the server. I cannot tell you what a huge time saver this is. Maintaining hundreds of clients becomes as easy as maintaining the server (or cluster of servers).
Thanks for the link. I am thinking that the LTSP thing is just what I need to get these systems going. Now I just need to scrape together a server for it.
On the alternate-install CD for Xubuntu, one of the options is "install a LTSP server." It's something I'd like to try. I've got a bunch of thin clients (some real, some just old PCs) that I'd like to try out as true thin clients and not Frankenstein PCs, which is the way I use them now.
Better Off on that Old PC w DSL
Ivan writes in the InfoWeek piece
I would strongly beg to differ on his choice of distros. DamnSmallLinux is much better for this purpose, and yet DSL was not even considered in the Linux Distribution Chooser list at http://www.zegeniestudios.net/ldc/index.php Sort of a disservice to DSL, as DSL has been running among the top ten distros at the DW site http://www.distrowatch.com for some time now. Also, as IBM Software Engineer Martyn Honeyford writes in his article 'Reduce your Linux memory footprint' at http://www-128.ibm.com/developerworks/linux/library/l-linux-...
Any other small footprint distros that the Linux Distribution Chooser list and Ivan should have evaluated ??
Quoting: the first distro I had selected, Ubuntu, landed near the top of the list.When this was unsuccessful, Ivan was then able to get Debian running.
I would strongly beg to differ on his choice of distros. DamnSmallLinux is much better for this purpose, and yet DSL was not even considered in the Linux Distribution Chooser list at http://www.zegeniestudios.net/ldc/index.php Sort of a disservice to DSL, as DSL has been running among the top ten distros at the DW site http://www.distrowatch.com for some time now. Also, as IBM Software Engineer Martyn Honeyford writes in his article 'Reduce your Linux memory footprint' at http://www-128.ibm.com/developerworks/linux/library/l-linux-...
Quoting:One great thing about Linux distributions is that they generally don't cost anything, so it's easy to download several and try them out for a while to see which you prefer and how they all perform on your hardware. If you have very limited hardware, you may want to look at a distribution like Damn Small Linux, which claims to run on systems with specs as low as a 486DX processor with 16MB of RAM.AAMOF, DSL is usually downloaded as a 50MB iso CD and certainly does not require the 20GB drive Ivan used for its basic functionality. Hard drives of these capacities work fine with DSL: 8.4 GB, 6.4 GB, 5 GB, 4 GB, 2 GB, 1 GB, 840 MB, 540 MB, heck even 256 MB or maybe less!!??
Any other small footprint distros that the Linux Distribution Chooser list and Ivan should have evaluated ??
I agree completely, DSL has been one of my favorite distro's since I came across it a couple of years ago. It made a P2 450mhz machine run faster than my new one at the time and I bet it would smoke my new machine too.
I have used it to restore an old IBM laptop that was running Win95 (It had a "Windows 95 Enabled" sticker on it) along with other K6 and P2 machines that I was told were "junk".
Damn Small Linux is a godsend to anyone who has an old machine that they think is not usable anymore. Combine it with a high speed Internet connection and you have a very usable and functional machine on your hands.
I have used it to restore an old IBM laptop that was running Win95 (It had a "Windows 95 Enabled" sticker on it) along with other K6 and P2 machines that I was told were "junk".
Damn Small Linux is a godsend to anyone who has an old machine that they think is not usable anymore. Combine it with a high speed Internet connection and you have a very usable and functional machine on your hands.
Post a comment
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help
Sign up and post (it is free) or Log in and post

Old PCs are slow. If you migrate from an old PC to a new one, you actually have two PCs, one fast and one slow. If you have GNU/Linux on the new one, you can edit /etc/gdm/gdm.conf (for Gnome) and have it accept TCP connection for the X interface (/etc/init.d/gdm restart). Then, your old machine can show you the login screen from the new machine, and two can run on the new machine while the old machine has only to show pictures and receive clicks to forward to the new machine. You can install minimally on the old machine but instead of installing Gnome, just install x-window-system and gdm and set it up as a Linux terminal that connects via X -query newmachineIP. That will be a much faster installation on the old machine. Another approach is to install LTSP on the new machine and have a boot floppy or BIOS PXE loader boot from the new machine. This will work even if the old machine has a dead hard drive. Either way is faster than booting a GUI on the old machine from the hard drive. You should have 100 mbits/s or faster to avoid jerky display.
Robert Pogson