General :: Loading A New Kernel In A Chrooted Environment
Aug 30, 2011Is it possible to load a new kernel while in a chrooted environment. Say I have one linux distro and want to chroot into another and load its kernel
View 1 RepliesIs it possible to load a new kernel while in a chrooted environment. Say I have one linux distro and want to chroot into another and load its kernel
View 1 RepliesWhat are the precautions and procedure do i need to follow while upgrading the Kernel?
Please let me know the complete details of a procedure of upgrading a kernel in a production environment?
I have successfully installed a Ubuntu chroot (Maverick) on a running Linux appliance (an old Thecus N5200PRO box) which has been running various services for me quite happily.
When I attempted to add a webcam (for snapshotting) to this mix, I've come up against a problem. Since the chroot by default uses the kernel of the Thecus appliance, there appears to (understandably) be no support for the Logitech UVC webcam in the appliances' kernel; consequently inside or outside the chroot I can't access the UVC webcam.
I think I can get around this in a simple way if I can run a standard Ubuntu Maverick 32-bit kernel in the chroot.
Does anyone know how to chroot with alternative kernels, or quite simply, how to get a UVC webcam accessible on a Thecus N5200PRO?
Other details:
lsmod output
Output of uname -a:
Linux cube 2.6.23N5200 #1 PREEMPT Wed Jul 29 14:13:22 CST 2009 i686 GNU/Linux
lsusb -t output
I am unable to send emails throught smtp class with auth server. Whenever i send the email even throught mybb smtp class in forum i see blank page and apache logs shows: Code: [Thu Jul 29 16:41:49 2010] [notice] child pid 23716 exit signal Segmentation fault (11) any idea what i have to add for proper work of this?
View 1 Replies View RelatedIn programming sense what is Desktop ?I can run any gnome apps using terminal or "Run Application" ?Such as , to open terminal i can type gnome-terminal and it invokes. What is Xwindow , xserver and Why do we need Gnome , KDE etc ?Why i cannot launch any graphical application [ firefox as example ] without loading xserver ?? I donot need wallpaper , start menu bla bla .. I only want to run any graphical applictaion using default black terminal.
View 4 Replies View RelatedScript programming question for the experts. I have written a bash script that works fine if I execute from the shell interactively. However, once I schedule it to be executed via cron, it just wouldn't work. I believe this has to do with cron running in a different environment than the one I am in when I putty in.
The bash shell script does refer to environment variables in the .cshrc file. I guess these aren't available to the cron? How can I load them into the script if I want them to be available to the cron locally within the script?
Ubuntu 10.04 not loading. Sticks at GRUB Loading message.
Read the other threads re OS not loading and GRUB. The talk about code goes over my head.
Local techie says the hardware is good. Tried reloading Ubuntu from CD. Tried loading the unmentionable OS.
Tried using Spotmau Powersuite.
This morning I noticed that there was an update to the kernel ready in the Update Manager, to version 2.6.35-25. I let Update Manager do its thing and I restarted my computer when it prompted me to.If I select 2.6.35-25-generic in Grub, Ubuntu boots just fine, all the way to the login screen. However, after entering my password, it looks like Gnome is going to load, but it never does. All I see is the default wallpaper and nothing else; the system locks up and does not respond to any input; and the fans start spinning at full-speed. My only option at this point is to do a hard shutdown. I have no problems if I select the kernel I was using previously: 2.6.35-24-generic
View 9 Replies View RelatedMy problem is that I can't setup a diskless environment with CentOS 5.4 (server) and CentOS 3.9 (hosts). On the host, I've recompiled the CentOS 3.9 kernel, with these mods:
- added kernel level IP autoconfiguration;
- added NFS file system support;
- added Root file system on NFS;
- added e1000 driver (the host has a gigabit network card);
Then, I have followed the guide at this link: [URL]
But in my dhcpd.conf I'he put other parameters:
ddns-update-style interim;
allow bootp;
allow booting;
subnet 192.168.195.0 netmask 255.255.255.0 {
range192.168.195.70 192.168.195.90;
option routers192.168.195.254;
option subnet-mask255.255.255.0;
option domain-name"lnf.infn.it";
option domain-name-servers192.168.195.254;
option time-offset-18000; # Eastern Standard Time
default-lease-time21600;
max-lease-time43200;
filename"linux-install/pxelinux.0";
next-server192.168.195.254;
}
host dante79 {
option host-name"dante79";
hardware ethernet00:20:38:01:C3:7C;
fixed-address192.168.195.79;
}
i'm on 9, x86_64, and have successfully created chrooted SFTp users following this [URL] tutorial. however, i need to get into the sftp account programmatically to move and delete the deposited files. so i enabled ACL and set setfacl -R -m u:$USER:rwx,d:u:$USER:rwx /home/$SFTPUSER
this works well EXCEPT that now the sftp user cannot log in. the latter, of course, is the problem at hand! it's driving me crazy. as soon as i remove the acl and revert back to the plain old chmod/chown scheme, the sftp user can log in ... but i can't delete files in the sftp account. i tried to set facl to the sftp group ('jailed') but to no avail.
I am trying to find out, if an application is chrooted jail or not. I have tried to do as suggested here, but something is wrong I believe. [URL]
pidof apache2
24714 24404 24366 24365 24364 24363 24362 4923
ls -ld /proc/24714/root
lrwxrwxrwx 1 root root 0 May 31 19:05 /proc/24714/root -> /
So far so good. Now we try with postfix, ups, nothing to show ? pidof postfix Lets try with the postfix master process instead. pidof master 2623
ls -ld /proc/2623/root
lrwxrwxrwx 1 root root 0 May 31 19:07 /proc/2623/root -> /
It shows it as not being chrooted jail, which I do not understand, since I KNOW that postfix runs chrooted jail.
How to allow users to change their password in chrooted ssh as long as the modifications in the shadow file in the chrooted environment will not be applied on the system itself ?
View 2 Replies View RelatedI had to copy the lib64 libs since I am working on a Cent OS 5.5 Xen VM. And used username enemy-territory instead of et adjusting the relevant init script lines accordingly. I am able to run "chroot /usr/local/enemy-territory" and get to shell, I am root when I run that, of course.
starting /enemy-territory/etded I get: [I have no name!@cobra /]#/enemy-territory/etded
bash: /enemy-territory/etded: /bin/sh: bad interpreter: Permission denied
starting /enemy-territory/etded.x86 I get:
[I have no name!@cobra /]#/enemy-territory/etded.x86
ET 2.55 linux-i386 May 27 2003
----- FS_Startup -----
Sys_Error: Unable to create directory "/root/.etwolf", error is No such file or directory(2)
I have set all files to be owned by root but are part of group enemy-territory. I can see the files in chroot.
Running the start script yields:
[root@cobra local]#/etc/rc.d/init.d/rc.etded start
[root@cobra local]#Could not find a PID for /usr/local/enemy-territory/enemy-territory/etded.x86!
[code]....
As any normal user I can run the program fine without problems. I am wanting the chroot setup, so I can limit collateral damage if we get hacked, and to allow me to have a non chroot location to store backup copies of the working directory.
If someone has physical access to a machine, they can boot up with a live cd and chroot in to the filesystem as root. 1) Is there any way of a bash script script knowing if the computer was booted regularly or if it was chrooted into? 2) Is there a way to have a script run automatically when the user chroots in?
View 1 Replies View RelatedTrying to install Opensuse 11.2 (64bit) on a new machine isn't working well. After loading the linux kernel, the green screen with the progress bar appears, and the mouse and keyboard turn off (at least, the leds go out and there's no response) The progress bar never moves. Esc key doesn't work either. I've tried safe mode install and other options, but the same result follows.
It's going onto a Tyan S2912 with AMD 2347HE. The hard drive is a Western Digital SATA drive I bought today. There's 4GB of RAM, and the DVD drive is a Toshiba USB unit. I don't know what else to say about it. If it helps, I've been running Pelican HPC (live) without a hard-drive andgot tired of setting the network configuration and installing a ouple of programs with every boot. (Which is why I bought the hard drive today). I want to install Opensuse 11.2, but I've tried Debian (no luck on detecting the hard-drive) and Windows 7 (installed fine, but there are no drivers for the embedded video).
I have been running Ubuntu 9.10 ever since it was released, on my HTPC. However, for some reason when a new kernel comes out and I upgrade to it GRUB 2 doesn't load the newest kernel but just loads the old original kernel that came with it when I originally installed 9.10. I have confirmed that the newer kernels are installed by editing the GRUB 2 command line at startup (just a temporary fix) and all worked well with the newer kernels. How can I make GRUB 2 load the newest kernel by default. On my laptop running 9.10 it has loaded the newest kernel by default ever since I installed it but my HTPC just won't cooperate.
View 3 Replies View RelatedI just noticed that my USB sticks are not automatically mounted anymore after having updated kernel from 2.6.32-24-generic to 2.6.32-25-generic on my Acer Extensa 5220 laptop. It still works if I "sudo modprobe usb-storage". What might have gone wrong? I'm not experiencing this on my desktop machine also running 10.04. How to fix this permanently? And now I remember that I'm not able to use my mobile broadband either (Nokia N900 in PC Suite mode through USB). It's just not detected anymore. It must suffer from this same problem. I tried to roll back to the previous kernel, but then the restricted driver for my Broadcom WLAN refuses to install
View 2 Replies View RelatedToday i downloded latest ubuntu 10.4.1 and installed from windows environment (so you know am new with ubuntu) after installing i tried updating ubuntu, including some kernel updates, but after updating ubuntu not loading up, it just show the loading page that all nothing change i tried recovery mode but i dint understood anything it show some command prompt. i had used 10.4.0 before.
View 3 Replies View RelatedI've installed CentOS 5.3 in a new machine....
But i got these errors when kernel is loading
The machine is a dual core 2.6 Ghz, mainboard is intel DG31PR, SATA disk SAMsung 500 GB, 4 GB RAM.
I've checked other errors in different distributions, but everyone has a different criteria about the problem.
I got a new laptop, this is the one: [URL] and decided that I wanted to go with Fedora instead of Ubuntu with this computer. The laptop runs win 7 64 bit so I'm trying to go with Fedora 64 but it will not boot. I first installed Fedora 12 64 bit from the DVD install and it would go to grub fine but when I boot the fedora os It just stops in the middle of the boot script. When it stops, the last 4 lines are:
kernel_init=0x1fd/0x257
child_rip+0xa/0x20
? kernel_init+0x0/0x257
? child_rip+0x0/x20
I hadn't messed with it for a few weeks and yesterday I saw that 13 was out, so I downloaded and burnt the Fedora 13 64 bit CD. I popped it in, booted the computer and it did the same crap. It didn't stop at the same line but it was around a line with:
? kernel_init
So I guess the kernel isn't loading properly or something. Do ya'll think I would be better off using the 32 bit?
I have a droid phone, and I have ubuntu 9 running on it. This is done by chrooting since the phone runs a linux kernel. And it works... I have a question though. tightvncserver does work, and its able to listen on 127.0.0.1.. Its how you view your X session. So you chroot to Ubuntu, then start vncserver. Then switch back to android and login to ubuntu via vnc client. but apache, mysql, and postgresql do not work. Well. They dont seem too.. except for mysql. Mysql will start but only if you tell it not to use networking by saying skip-networking in my.cnf
Mysql says: mysqld cant create ip socket permission denied Apache2 says it can find 127.0.0.1 but doesnt actually run same with postgresql... All seem to be compiled with arm architecture. So why does tightvncwork? Why is it so special? How can it listen on the loop back (127.0.0.1) when nothing else can...
I have /proc and /dev bind to the chroot side. I can run ifconfig okay, and I can run /etc/init.d/networking start okay.. But apache2, mysql, etc have problems binding. I have removed apparmor even though technically its not running, but I removed it and its configuration files, just because I thought perhaps mysql looks at apparmor, but I doubted it.
I'm trying to install Debian 6.0.1a (64bit) onto a machine that had Debian 5.08. It freezes up almost immediately after loading the kernel. The last line, about 2.6 seconds in, is where it found a SATA drive. (There are two SATA drives). This is a Tyan S2912 with Opteron 2347HE. It seems to be kernel release related. I tried the 5.08 disc again, and it works OK.
With other distros, such as Opensuse and Ubuntu, I have the same problem. The newer releases freeze up almost instantly after loading the kernel. Am I stuck with IDE drives or older kernels? I wanted to try something newer as the fonts in the 5.0.8 release were barely legible. It gave me nauseating headaches within a couple of hours of looking at it. My wife couldn't stand to see it when she came by. I've tried every bios setting change I could think of without a solution.
I was trying to install openSUSE 11.2 on Dell XPS Studio, model PP35L, but loading kernel hangs at 94%, I tried F5 for Safe Settings, No APIC, No Local ACPI, Check Installation Media, but it still hangs at 94%. Installation works fine on older computer. Is it because openSuse kernel doesn't recognize the i5 Core processor yet? If this is caused by a driver, is there a way to display the kernel messages and what would be the kernel boot options to disable loading of that driver?
View 2 Replies View RelatedWhen loading puppy linux on my computer from a CD I get an error message on the third step which is (loading the lup525.sfs mainfile)to ram. kernel panic not synching attempt to kill init. The CD works on other computers with no problems. My computer is a dual boot XP and Win7 machine.
View 3 Replies View RelatedI'm trying to set up a Fedora 11 server so that users have only SFTP access. The relevant lines from my "/etc/ssh/sshd_config" are:
[Code]....
I can log in okay, I can type "cd /" and "cd upload", but when I try an "ls" command, I get: Couldn't get handle: Permission deniedand when I try to get the file "junk" (listed above), I get: Couldn't stat remote file: Permission deniedAnyone know what I'm doing wrong?
I'm trying to install slackware 32 bit 13.1.After loading kernel it asks for keyboard configuration, but keyboard (usb wireless) doesn't work.
Keyboard works on the old 13.0 installation, on bios and also in the boot options of 13.1 installation cd.
I've tried removing legacy usb support and changing usb2.0 speed from high to full. Nothing changed.
Anybody with this strange problem? (kernel of setup seems also to detect it correctly as a trust keyboard).
I've a folder named "lynx" in my desktop . It contains ebooks - pdfs,chms etc . The problem is sometimes when i open the folder in nautilus , the folder keep loading forever and sometimes it shows two or three files and keep on loading . But at some other times , folder contents are displayed just as any other folder(i.e normal ).
View 5 Replies View RelatedI installed Drupal and there is only one site. It I access the website [url] where Drupal is installed I can easily see it functioning properly. But on internet it is not loading properly the colors etc are not visible properly.
Following changes were made to all the sites
Code:
I would like to set up the shell env that i get after SSH to a remote host.
I am using a color screen in my terminal, having cusomtized LS_COLORS environment variable. Problem is, every time i log in to a remote host using SSH, i have to manually export LS_COLORS. You can say put that in ever .bashrc file in every host, but that is not very helpful because the remote host are lab servers that keep getting new OS very often(testing stuff), and the team and I usually log in there with root user.
Is there a way to do that?
I heard Enlightenment is one of the best looking desktop envioronments.
And KDE can be very amazing if you install a rendering engine on it.