Ubuntu :: [Chroot] How To Reinstall Kernel Files
Sep 10, 2010While learning about Ubuntu, I made an error in a chroot code...
This doesn't work either code...
Does someone know how to solve this?
While learning about Ubuntu, I made an error in a chroot code...
This doesn't work either code...
Does someone know how to solve this?
recently we decided to make our own panel (like Plesk or cPanel) but for Ubuntu and it will be licenced under GPL (like any other professional sofware).want to make a panel not only that fits our needs but also the needs of other system administrators and domain owners. We researched other panels and found out that non of them has security/look/ease of use in one package. Bad codig is another problem found in other panels.I made a short overwiev of what I think we have to have in the beginning.I Security :1. Completely chroot enviornoment where every single service is in chroot mode (bind,mysql, postfix, .... )2. Easily managed IPtables trough web-based interface. 3. Coding rules has to be strict.
II Software selection :
1. MTA - Postfix
2. POP - dovecot
[code]....
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 understand that chroot is usually used to provide security, however, for my issue, security is a big don't care. I am very new to using chroot and don't fully understand how the chroot'd env works.
problem: Trying to use a vendor supplied cross compile environment. The environment runs as a chroot'd env and works just fine. I have a large number of additional modules that I wish to compile in the chroot'd environment. FYI, these modules are also (succesfully) compiled for other targets not using chroot'd env's. Copying the source files into the the chroot environment is not an option (don't have hours to wait for copies to finish and it would break the make system). Having them live in the environment is also not an option (the chroot build is a tiny part of the build process and we cannot revamp our entire source tree to accommodate it).
I am looking for a way to have the compiler in the chroot'd env have access to a path that is outside of the env and typically higher up in the same path that holds the chroot'd env. I have tried soft links (they don't work as expected). Hard links only work for single files and there are 10's of thousands of files that would need to be linked. I am not sure how I would go about exporting the additional files and then mounting the exported files in the chroot'd env (or if that would even work).
I am having an issue with a Chrooted SFTP User not being able to write files.
The permissions are setup correctly as if I remove the Chroot the user can write files correctly.
User has a transfer folder which they should be able to write files to and read from, this works correctly until I apply the snippet from sshd_config file below then the user can only read files. I have tried tweaking the permissions but this doesn't seem to have helped at all.code...
I have one requirement i.e I want to call the java file from the php function using shell_exec command , i am using the chroot jail concept , if i using this command i am getting the empty file because java environment is outside the chroot jail,so how to access the the files those are out side the chroot jail.
View 3 Replies View RelatedI was trying to fix my laptops's FN key. i found one solution on ubuntu forum, it suggest me to install the new linux kernel ad so i dit.
Kernel Before: 2.6.35-020632rc2-generic (The original - From CD)
Kernel After: 2.6.35-020635rc1-generic (Download)
Problem:
i) Lagged internet connection :Error: Resolving Host takes to long(My desktop works fine)
ii)Error during Boot : [2683.238664] bt_intr_complete: hci0 ef1d4a00 failed to submit (1)
i was wondering if there is a was to revert to the old kernell.
I have version 10.4 running on my computer, but when I boot I get a kernel panic. I then restart hit ESC and load a previous working copy. How do I reinstall over my 10.4 without loosing my programs etc? my problems started after a normal morning update.
View 9 Replies View RelatedI'm running lenny 2.6.26-2-686 and have accidently lost some of my kernel modules is it possible (and painless) to reinstall this kernel? if I do what data will I loose? will it effect my raid1 setup?
View 4 Replies View Relatedi want to reinstall my OS, but use kernel 2.6.31.5 instead of 2.6.31.8. Are there settings in the install that I can change to do this automatically?
View 1 Replies View RelatedI have been having some problems with virtualbox starting. So here is the issue: When I start a VM I get the following: Code: Kernel driver not installed (rc=-1908). The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. reinstall the kernel module by executing
[code]...
I am seeing quite a few entries about the usb. I am not sure if that is common or if its unrelated. I am running x86 11.3, and virtualbox 4.0.4 I have tried to uninstall, and even go back to 3.2
chroot in two mini distros (Tiny Core and SliTaz): chroot jail appears 'blind'. Chroot can't find any files in the jail and exit with error code. Example (ugly):
Code:
# mkdir /mnt/test
# mkdir /mnt/test/bin
# mkdir /mnt/test/dev
# mkdir /mnt/test/proc
# mkdir /mnt/test/lib
# mount /dev/hdb1 /mnt/test
# mount -t proc none /mnt/test/proc
[Code]...
chroot: cannot execute /bin/bash: No such file or directory Where is the problem?
Do you have to reinstall Nvidea and Broadcom drivers every time the kernel is updated? The new kernel would not even load to where I could get to my desktop. Help?? I could not even sign in with older kernels. Had to use a Puppy CD to edit my Grub menu.lst so I could sign in on the older kernel.
View 9 Replies View RelatedThe latest installed kernel stopped working. ( 2.6.35.13-92.fc14.i686) It won't boot. I just get black screen with blinking cursor in top left corner. How do I, or can I, remove and reinstall?
View 4 Replies View Relatedyesterday I uninstalled evolution - thats where the horror started. Today I had my whole gnome panel on top missing, which makes it practically impossible to work on netbook remix. Then I tried to follow instructions in this post.[URL] hile trying to run that stuff in the terminal that I went into with strg-alt-f1, I think I either created a new user (with the same name???) or something else happened, ANYWAY NOW AFTER RESTARTING ALL FILES IN MY HOME FOLDER ARE GONE, SO ARE ALL MY SETTINGS. the programs are oddly still there, even the additional ones that I installed. but for the rest all settings, passwords and files are like after a fresh ubuntu installation to clean hard disk. btw i run lucid lynx on an eeepc 1008ha.
View 9 Replies View RelatedI ran this line: aptitude purge x11-common and all common files, all the tools I need are gone from my desktop. I have an amd64 with ubuntu +gnome on it.
Is there a way to reverse this --other than installing 1gb of packages one by one?
I set up Kubuntu today because the keyboard input was messed up in GNOME, due to some file being corrupted. Does anybody know how to replace GNOME files in Kubuntu? I'm new to it, trying to find my way around.
View 3 Replies View RelatedI've just done a fresh install of ubuntu 10.10 and it works great, but I was feeling adventurous one day and mess up my sound experimenting with different drivers.What I am asking is what would be all the programs I could reinstall to get it back to the original install?I've all ready tried Code:sudo apt-get --purge --reinstall install libasound2What other programs could I try?
View 8 Replies View RelatedI'm fairly new to linux, and a few days ago, as I was updating my system, I got the "EBDA is big ; kernel setup stack overlaps LILO second stage" error after reboot. I use a 3- boot, ( Win XP / Debian / Debian) and Windows XP works fine, but I can't launch any of the Debian. I googled the message, and I found this link :
[URL]
The only problem problem is that when I try to chroot, I got another message, "chroot: failed to run command `/bin/bash': No such file or directory" I googled this message too, but found no relevant answers. I am now using a knoppix usb drive to try to repair the lilo, but I ran out of ideas ...
I'm using OpenSSH 5.5p1 on Fedora 15. I'm trying to get a chrootDirectory to work. Specifically trying to figure out why I can't write files to a sub-directory of the chroot directory. I created a user test_user and created a group called sftp. I added test_user to the sftp group. I edited /etc/ssh/sshd_config as follows:
Code:
Subsystem sftp internal-sftp
Match group sftp
ChrootDirectory /home/sftp_users/%u
X11Forwarding no
[code]....
I built out a headless VMWare v2.0.2 Server. I managed to work all that out but now I'm having some trouble getting my virtual machines on the server. I installed both proftpd and vsftpd but neither server lets me log in. 'Login Failed' is always returned (using the only account on the machine - created during the install).
So I decided to install samba, but samba chokes on large files. I tried over and over again to copy a 10GB VMDK file over samba and it gets to 5% or so and suddenly tells me there is a network problem and dies (which there is no network problem as these machines are all on the same subnet plugged into the same gigabit switch).
So now I'm back to FTP. Unfortunately when I ran apt-get remove proftpd, it didn't remove any of the config files (/etc/proftpd/*) so I manually deleted them. Now when I try to reinstall the FTP servers they won't start because the config files are gone. What's the apt-get syntax to completely uninstall these servers as if they had never been installed so I can start clean? I really don't want to have to do a complete system re-install just to fix 300KB FTP servers.
How do I reinstall Ubuntu without wiping my personal data files?
View 9 Replies View RelatedI am running a recently installed minimal install. I am having some fun building the system up but trying to keep things slim. I have installed the ATI catalyst drivers working from the tutorial here under 'Installing the Restricted Drivers Manually': [URL]... After successfully getting the ATI driver running, I realise I really don't need or want it and am wanting to uninstall it completely and return the config to the way it was. Some of that I can do with the aid of some of the links I have found but installing the ATI drivers no doubt killed some of the packages that were there in the first place (graphics was fine in the first place incidentally). Question: What might these squashed packages be so I can reinstall them and have graphics setup as it was before I installed the ATI drivers and how can I remove all trace of the ATI drivers?
View 8 Replies View RelatedI've deleted /etc/apache2 and did run:
Code:
sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install apache2.2-common
to get the default config back.
But starting the server via:
Code:
sudo /etc/init.d/apache2
results in:
Code:
Syntax error on line 161 of /etc/apache2/apache2.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
line 160-163 look like this:
Code:
<Files ~ "^.ht">
Order Allow,Deny # line in question
Deny from all
</Files>
The funny thing is that the exact same definition is in a debian lenny server config on another server. So why did this install a not working config?
I just removed apache2 via:
Code:
sudo aptitude remove apache2
sudo rm -r /etc/apache2
and reinstalled it via:
Code:
sudo aptitude install apache2
which also did not fix the config bug?
For testing I installed apache2 on another ubuntu 9.10 and did just copy the folder /etc/apache2 to my local installation - this fixed the problem. Still, why cant I reinstall apache2 with a working config?
First off. I'm not using Ubuntu Server. But I'm trying to get XAMPP set up so I can test Wordpress themes I make. Using 9.10. I got XAMPP installed using the Instructions from Apache Friends. When I went to Localhost I got the language page. Selected English but nothing happened.
Here's my Index.php:
Code:
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/xampp/');
exit;
?>
Something is wrong with the XAMPP installation :-( I searched and found a couple Index.php files. Deleted one. And now when I go to localhost I get a "Index of" page.I removed the XAMPP folder, Deleted Apache, PHP from Synaptic(They got reinstalled when i reinstalled XAMPP btw). Installed LAMP but it still does it. Maybe reinstall XAPP and copy the index.php files from another Comp?.
I accidentally removed my network manager (gnome) from my system (via synaptic) and hence have not been able to have access to the internet to reinstall the packages. I have experimented with many commands (with help from others) in terminal with little success.
What I now did was downloaded a 'NetworkManager-0.8.0.999.tar.gz' file and a 'NetworkManager-0.8.1.tar.bz2' file (from a different comp) and have placed them onto my desktop. I have read the INSTALL instructions within and it is a tad complex for me as I am new to Linux. I understand I have to extract the files and compile them into a new folder (I think I would choose a file in the /home directory)- how would I go about doing this? Following this, I need to './configure' or 'make' or 'make install' the files
I've destroyed my desktop.
I'm using Ubuntu 11.04 and I would much like to uninstall (including any config files) and reinstall the windows manager.
Is there a set of commands I can run to achieve this?
My Ubuntu Remex Notebook had been install in windows7 by wubi, I want to reinstall it to solve some problems, but how to save my personal files in Downlads folder?
View 2 Replies View RelatedDue to lack of concentration, I inadvertantly ran PClinux(2009-2)'s "install.sh" while I was in openSuse 11.1. This file says:
grub --device-map=/boot/grub/device.map --batch <<EOF
root (hd0,6)
setup --stage2=/boot/grub/stage2 (hd0,6)
quit
EOF
I soon found out that Suse 11.1 would no longer boot from boot.ini (using bootpart) because the boot process now brings up PCLOS (in /dev/sda6) rather than Suse 11.1 sitting in /dev/sda5. No problem, I thought, I'll boot from the Suse install DVD, use repair, and away I go. Wrong. After grinding, it started mentioning about generating something for sda13, which is my last partition. NTFS! So I bailed before it got too far. I even tried "rescue" option on the DVD, command prompt, and grub commands to reinstall via "setup.
Then I tried to use Super Grub Disk (.97xx) to reinstall the PBR, stage 1 and stage 2 loaders. Didn't change a thing. So then I used Grub4DOS and got into my Suse 11.1 installation using this in its menu.lst:
title openSUSE 11.1 - 2.6.27.45-0.1
[Code]...
Worked fine, and is now my (only) method of booting to 11.1. So obviously it's bypassing stage 1 and 2 files, using it's native Grub4DOS code. But then I tried Yast-Bootloader to reinstall Grub's files. No difference. Then I used the advanced part to "write bootloader code to disk" No difference. Even tried "propose a new boot scheme" (or whatnot) no difference. After looking at all this, I've come to the conclusion that the PBR code in sda5 is scraunched, and/or stage 1 code (although it's still the original date), or stage 2 (which definitely had a new timestamp of when I committed the fatal error by executing PCLOS's "install.sh".
So my question is this: How do I do a good COMPLETE re-install of Suse's version of the grub files? Because, for sure, grub commands like "setup --stage2=/boot/grub/stage2 (hd0,5), and variations thereof, certainly aren't doing it? My reasoning is that I should make sure that all the boot files get restored/confirmed as "originally installed by Suse".
So I was messing around trying to uninstall Nibbles and reinstall since I have an issue starting that game and something happened and removed the submenu under Games called "Logic", which had another whole list of games.
Is it possible to reinstall the games package or reinstall the update?I'm thinking more of the lines of a system restore or something so back 2 days from today.