Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Besides the obvious, a need for the kernel built for that distro, is there any other decent reason to reboot to switch distros on the same box?
Ok, I run basically the same kernel in all my distros, with the exception of the kernel in Mandy which is the default kernel.
So with the exception of Mandy...
Will I run into a lot of problems if I just chroot into my other distro's (Slack and LFS) root environment and run things from there as if I had booted into it? I really can't think of any, but am not sure if I'd be missing services, or if it'd run into problems when probing modules or what...
No, I am not nearly that good. I will be lucky to chroot
No, no kernel switching, and that's why I am wondering if I will have problems chrooting, even though the kernel that is loaded from the intitial root env, is basically identical to the new chrooted env.
No, I am not nearly that good. I will be lucky to chroot
And here I was impressed as all get out. No earthly idea as to why you would do this, but impressed as hell
Quote:
No, no kernel switching, and that's why I am wondering if I will have problems chrooting, even though the kernel that is loaded from the intitial root env, is basically identical to the new chrooted env.
Cool
Sounds like a great way of breaking things, but you could always reboot
But if your kernels are the same, then I would think that it would be fairly transparent. It should work...
More than the same kernel, the way they are config'd is more important, iianm.
May sound like "a great way of breaking things" but it's been a great way of fixing things for me.
I can't say I tried a whole lot of different things in chroot mode but I've compiled a few things, including kernels, and have no problems chrooting to different kernel version, including 2.5.xx.
If the kernel works, once loaded, it'll run whatever / you assign it, provided it could run it in native mode.
i.e. don't chroot into a xfs if the kernel doesn't support it or that kinda thing ...but you probably figured that much already.
I wish I had a better reason, and might someday, but for now... I ssh into my box from work. Sometimes I want to work in my other distro as I have other things setup on it for different use, such as multimedia editing, Office file manipulation, CD ripping, etc. So to work in 1 distro or the other, from work, instead of rebooting, I was hoping to just be able to chroot into the other distro's / directory and basically "reboot" without rebooting. So yeah, the kernels are very close to the same, with small differences that I think won't matter to me in my ssh'd chrooted env.
I will be giving it a go later on tonight and post back with the success rate.
I am still trying to figure out how to "startx" and have it popup on my desktop here at work, yet be from my box at home so I can work as if I were home.
Doing all this from cygwin on win2k, so it's not too easy. I do have wmaker installed though, and that's pretty cool cause I can feel like I am on linux
I am still trying to figure out how to "startx" and have it popup on my desktop here at work, yet be from my box at home so I can work as if I were home.
Doing all this from cygwin on win2k, so it's not too easy. I do have wmaker installed though, and that's pretty cool cause I can feel like I am on linux
Cool
I've done it with my old Agenda PDA, which was cool. I don't know about doing it with cygwin though...
Originally posted by MasterC
I am still trying to figure out how to "startx" and have it popup on my desktop here at work, yet be from my box at home so I can work as if I were home.
xhost +
vi /etc/ssh/ssh_config
Host *
ForwardX11 yes
:wq
Remove any iptables rule blocking X.
ssh mybox
startx &
wait... wait... wait...
note: This is *way* insecure. Read up on xhost and set it for your work machine('s gateway). Leaving it in the condition I've described above will open you up to any vunerabilities in X, in addition to letting people suck your bandwidth by loading up the X logon and attempting brute attacks on it.
[edit]
Running X over a Wide area network (the internet) is a desperately bad thing to do... X is a 'chatty' protocol and will do things like send the position of your remote desktop's mouse cursor to your home machine, even if the mouse hasn't moved. It's slow... *very* slow. Nasty nasty protocol.. great for local machines, horrible for remote machines.
Consider running vncserver instead :P
[/edit]
Slick.
Last edited by SlickWilly; 01-03-2003 at 09:20 AM.
Thanks Slick I've ran vncserver before, the problem I ran into was it opens up twm instead of *my* desktop. I was cool with the speed, not horribly bad (although it was definitely not even close to the speed of localhost), but just not the desktop I wish to be using.
I think I'll just stick with ssh'ing for now, the main thing I was thinking about using remote X for was to watch a movie or something from home, but that wouldn't work (too slow). The 2k at work doesn't allow installation of anything, so alot of videos won't play because they cannot download/install codecs. The rest of what I do via ssh from my work is done in the command line anyway.
Thanks again for that up there, it's just another thing to impress the winLusers at work with
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
SSH allows a secure tunnel of the X protocol via the SSL. This
makes running X across the network no less secure than running
ssh. If your client and server are set up correctly, you don't have
to use xhost at all.
I can ssh in to work, type "xv &" as my first command and have
xv pop up on my home machine. No problems, not insecure (well,
compared with ssh anyway).
(I suppose I should also point out the lines necessary in your
client/server setup for a unix machine. . .)
N.B. The "X11DisplayOffset 10" changes your DISPLAY
variable to be offset (duh) from the default by 10 (in this case).
This prevents interference with real X servers. . .
(man sshd_config)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.