Ubuntu :: Add Curl To Initramfs And A Script Which Uses It

Jun 20, 2010

I am trying to learn how to modify the initramfs in a way which is so Ubuntu-friendly as possible. I do not just want to unpack it, change it and re-pack it, as my changes won't be kept when I upgrade my kernel next time.

What I want to do is: Add curl to the binaries available in the initramfs Add a script which is run after networking is set up which calls curl In case there is no "after networking" I have to setup networking myself using DHCP. There is a tiny client inside BusyBox if I am not mistaken. I have googled a lot to get this information. As well as looked trough more than a few books.

View 2 Replies


ADVERTISEMENT

General :: Curl - Curl API To Configure Only The Required Protocol?

Jun 24, 2010

Is there any curl API to configure only the required protocol. If I have proper openssl installed, the installed curl will have all the protocols (like HTTP, HTTPS, FTP, File etc...) supported by default. Is there any way to allow or disallow only some of the protocol at the runtime. Say I need to support only HTTPS, FILE and I dont want to allow HTTP. Is there any way to do this?

View 1 Replies View Related

Ubuntu :: Installing The Curl On 8.1?

Aug 17, 2010

Having trouble installing curl on my LAMP server. Sorry if i am just being real dim here

Using

Quote:

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

and getting

Quote:

Err http://gb.archive.ubuntu.com intrepid-updates/main libcurl3 7.18.2-1ubuntu4.3
404 Not Found
Err http://security.ubuntu.com intrepid-security/main libcurl3 7.18.2-1ubuntu4.3
404 Not Found [IP: 91.189.88.37 80]
Err http://security.ubuntu.com intrepid-security/main curl 7.18.2-1ubuntu4.3

[code]....

View 6 Replies View Related

Ubuntu :: Initramfs On One Of The Kernels?

Aug 28, 2010

I am using Ubuntu 9.10 and am facing an issue while booting up. It goes into initfs command prompt on one of the 4 kernels that show up in the boot menu. I tried to look around for a likely solution and hence did the following:1. ran "chkdsk c: /f" in my windows partition.2. Added "rootdelay=90" in "/boot/grub/menu.lst" file.This is how my /boot/grub/menu.lst file looks and the problem is with the kernel 2.6.31-20-generic:

title Ubuntu 9.10, kernel 2.6.31-20-generic
uuid ceacd229-2b68-41bf-a967-8ee470085fd8
kernel /boot/vmlinuz-2.6.31-20-generic root=UUID=ceacd229-2b68-41bf-a967-8ee470085fd8 ro quiet

[code]....

View 9 Replies View Related

Ubuntu :: Initramfs On 8.4 Installation

May 1, 2009

After installing Ubuntu 8.4 on an old laptop. Double boot w/ XP. I was brought to the terminal with "initramfs". I installed it through the windows partition and assigned it to partition F: which I made sure was reformatted before installation. I tried doing some commands but it seems to bring me nowhere.

View 1 Replies View Related

Ubuntu Servers :: Curl Won't Work On 10.04.1 LTS, But Works On 9.10?

Sep 11, 2010

I've been using curl in a script of mine for a while on Ubuntu 9.10, without problems.

Ubuntu 9.10 got the following curl installed through apt-get:
ii curl 7.19.5-1ubuntu2 Get a file from an HTTP, HTTPS or FTP server

[code]....

View 1 Replies View Related

Ubuntu :: Install Php5-curl To Use Magento?

Oct 25, 2010

I already have php5 installed but when I try to install php5-curl to use magento I get this message,The following packages have unmet dependencies: php5-curl : Depends: php5-common (= 5.3.3-1ubuntu9) but 5.3.3-1ubuntu9.1 is to be installed E: Broken packages. Is there anyway around this? I'm using Ubuntu 10.10 desktop.

View 2 Replies View Related

Ubuntu Installation :: 9.10 Not Booting *INITRAMFS*?

Mar 17, 2010

I have one hard drive and one operating system on that one drive. No dual boot, no raid, no windows, no usb boot. Just 9.10 installed on one 40 gb drive. After trying the various techniques from this forum, I'm now stuck at Grub loading, error, grub rescue prompt. No menu list to choose from or edit (e).Here is the output of 'sudo fdisk -l'

Code:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 40.0 GB, 40000000000 bytes

[code]....

View 9 Replies View Related

Ubuntu :: Update Initramfs On PXE Server?

Oct 26, 2010

After copying a filesystem to be used as an image on a PXE server, is it possible to update that image's initramfs on the PXE server?

On PXE server, I added several ethernet modules/drivers to the following file:

/nfsroot/etc/initramfs-tools/modules

Before the changes will take effect, I need to run:

Code:

$ sudo update-initramfs -u

View 1 Replies View Related

Ubuntu :: Update-initramfs From Another Machine?

Jan 24, 2011

I'm finding myself in a situation where I am locked out of my machine (because of a initramfs that doesn't allow me to log in). I think I know where the problem is, but I do not know how to go about rebuilding an initrd file from another machine (especially since my second machine is running on a lower kernel version).

I have tried booting from a LiveCD, but that does not allow me to make any changes to /etc/update-initramfs/. Currently do not have a USB drive handy. How would one go about this?

View 2 Replies View Related

Ubuntu :: Call A C Program Using Initramfs?

Mar 17, 2011

Can i add a c program file to initramfs such that it runs when kernel loads and before root file system getting busy...

View 3 Replies View Related

Ubuntu :: Cannot Delete Partition Due To Initramfs?

Aug 6, 2011

I am having trouble accessing my computer after abruptly shutting it down because it was booting off of a live CD and I just wanted it to boot of the HDD. When I try to boot up from the normal HDD I used to get a lot of errors about /dev/sda being not found, and then it went to an (initramfs) prompt, from which I could do pretty much nothing. I booted into a live CD, and basically I didn't need any of my data so I wanted to just get rid of the problem partition and reinstall. I attempted to delete the partition, but that didn't work, saying something about /dev/sda being busy (even though I had booted from a live CD and had not mounted the partition).

Anyhow, now when I try to boot from the HDD I get:
"Error: no such partition. grub rescue>"

Basically what I'm trying to do is just get rid of this partition and reinstall, but I keep getting errors about it being busy and not being able to delete the partition. Is there someone with a way to allow me to just blast this partition and reinstall? I've got a windows 7 partition on the same HDD and I'd really like to leave that one alone, but the ext4 and swap partition can just go.

View 4 Replies View Related

Ubuntu :: Clean Up After Update-initramfs -u?

Jun 21, 2010

I'm working on a custom Ubuntu 10.04 live cd, and I've found updating the Plymouth splash uses up a lot more disk space. The culprit seems to be the command update-initramfs -u, which is needed to apply the new splash image. I'm guessing it's making a new intrd image or something.

View 3 Replies View Related

General :: Using Variables In CURL?

Jul 12, 2010

using variables in CURL.Here's my code:

transfer_to_pcid="AAAAAAAA"
transfer_from_pcid="BBBBBBBB"
basic_password=`ssh rsync@some_test_domain 'curl --silent

[code]....

View 2 Replies View Related

Software :: SSL Support For PHP Curl

Mar 14, 2010

I have both PHP and Apache installed.I need to get SSL support for Curl. I'm hoping I can do this with out having to download php/apache and re-configuring it via that.

View 10 Replies View Related

Ubuntu Servers :: Seg Fault With Apache2 (SSL) And PHP5-Curl

Jun 3, 2010

I'm trying to run apache2 with mod_ssl and php support and I need curl too. When php5-curl is installed apache doesn't work with ssl and I've got this one in error.log:

Code:
[Thu Jun 03 10:00:39 2010] [notice] child pid 26013 exit signal Segmentation fault (11)
[Thu Jun 03 10:00:39 2010] [notice] child pid 26014 exit signal Segmentation fault (11)

It's strange because it works well without ssl. The problem occures only when I'm trying to access and SSl page, doesn't matter if it's a html page or php file. I'm using Ubuntu 10.06 Desktop version which is x64. Below are the packages which I've got installed related to apache php and curl. I successfully compiled php5 from source, but the problem still exists so probably it's somewhere in apache?

View 7 Replies View Related

Ubuntu :: Upload There ( In / Directory ) A File Named App.log Using Curl?

Aug 1, 2010

I have a site's url. I have it's ftp admin username and passwd..How can I upload there ( in / directory ) a file named app.log using curl ?I read the manual but I understood nothing

View 2 Replies View Related

Ubuntu :: Curl Permission Error With /usr/local/bin/repo?

Aug 2, 2010

I'm trying to grab "repo" using curl and put it into /usr/local/bin/ but I can't seem to figure out why I'm getting a permission error:

Code:
$ sudo curl https://android.git.kernel.org/repo > /usr/local/bin/repo
bash: /usr/local/bin/repo: Permission denied

[code]....

View 1 Replies View Related

Ubuntu :: Redirect Curl Output To Multiple Files?

Nov 6, 2010

I am using curl as the following

Code:
curl "http://site.com/pages/{1,2,3,4,5}.html" > /home/myuser/allpages.html
i need to save each page in a separate page by the way i have tried this command
Code:
curl "http://site.com/pages/{1,2,3,4,5}.html" > /home/myuser/{1,2,3,4,5}.html
but it displays error
Code:
ambiguous redirect
is there any way to do that

View 5 Replies View Related

Ubuntu Installation :: 10.10 Upgrade Won't Boot Initramfs

Dec 13, 2010

I upgrade to 10.10, and now I can't boot normally. The only way I can get X going is if I boot to the previous kernel's recovery mode and choose failsafeX.

In an attempt to fix this, I ran

Code:
dpkg-reconfigure -phigh -a

However, I get this,

Code:
update-initramfs: Generating /boot/initrd.img-2.6.35-23-generic
stop: Unknown instance:
dpkg-maintscript-helper: error: couldn't identify the package

View 1 Replies View Related

Ubuntu :: Boot Fail, Initramfs Starts?

May 1, 2011

I have been using 11.04 for about a day, I go to boot up and it goes into busybox initramfs instead of booting into Ubuntu. The options to my boot in grub, and the errors I get when booting into initramfs are in the pictures attached to this post.

View 2 Replies View Related

Ubuntu :: Recover From Busybox / Initramfs 8.04 NTFS?

May 22, 2011

I either installed Hardy heron or its predecessor by accident, but began running it exclusively. I did it way back when while trying to create a test drive disk, and I did not repartition the drive, because all my windoze NT stuff survived. I'm now 8.04. Yesterday I had a bunch of updates to do, did them, closed a ton of windows and then pulled up 3 open office files and each, when it came up said there wasn't enough space to save all needed information as they opened. I then closed them and one hung and froze the whole machine, leading me to do a reset. This is BEFORE rebooting from the updates.

Now when I boot into Ubuntu (I'm dual boot) I start to get the opening Ubuntu GUI screen but then get :

BusyBox V1.1.3 (Debian 1.1.1.3-5ubuntu12)built in shell (ash) line followed by:

initramfs)

I'm essentially a total noob, I've rarely used command line and not for a long time. I made a version 11.04 live disk, and it says that the file system is clean, but will not show me any of my old files, only the NT files and directories. I have a ton of unbacked up important data in Hardy Heron so I don't want to do an install from the 11.04 CD.

I've read several threads so far, and can't seem to find anything addressing this that I understand. The drive is a 160GB drive on an HP Pavilion dual core that has a 154GB NTFS boot partition, which is where I'm sure the Hardy Heron files are, and a 6GB FAT32 HP_RECOVERY partition that windoze lists ad drive D (the NTFS is C) The live disk says the FAT32 partition is /dev/sda1 and the NTFS is /dev/sda2

Where should I start? I've seen stuff about booting into recovery mode, but that isn't an option when I boot from the hard drive, and the only older ubuntu disk I have is for 7.something and generates "defective CD" type error messages.

View 7 Replies View Related

Ubuntu :: Initramfs-tools Error Message?

Aug 21, 2010

I keep getting this error message when installing anything using the terminal or synaptic manager in ubuntu 10. I was installing pidgin when this message happened. The funny thing is pidgin did get installed and works fine. I am booting from a USB stick. I am using the perdition version which saves any changes i make to ubuntu on the USB stick.E: initramfs-tools: subprocess installed post-installation script returned error exit status 1E: bcmwl-kernel-source: subprocess installed post-installation script returned error exit status 1

View 4 Replies View Related

Ubuntu :: Dropping To Initramfs / Busy Box On Bootup

Feb 1, 2011

When booting I am being dropped to initramfs/busy box heres the error: Gave up waiting for root device. Common problems:

- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/mapper/dev-root does not exist. Dropping to a shell!

BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)

View 1 Replies View Related

General :: Install CURL For PHP 5 (Godaddy VPS)?

Jun 14, 2010

we got godaddy VPS working and however.the strange thing is that we don't have CURL installed by default.we should get it with the server itself. but we didn't we have root ssh access. i saw this post: [URL] but it didn't worked for me.

SYSTEM INFO:
PHP Built on: Linux ip-myiphere.ip.secureserver.net 2.6.18-028stab059.6 #1 SMP Fri Nov 14 14:01:22 MSK 2008 i686
PHP Version: 5.3.2
Web Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Web Server to PHP interface: cgi-fcgi

View 8 Replies View Related

Ubuntu Servers :: Downgrade Curl - How To Recompile PHP With Current Settings

Feb 13, 2010

I need to downgrade curl (newest version has a bug I can't get around) and I'm not exactly sure how. I have removed curl (sudo apt-get remove php-curl), and downloaded and installed (./configure, make, make install) the version I need and everything looks fine for that. However, my phpinfo page doesn't show curl support anymore, so I assume I need to recompile php with curl support. My question is, how do I recompile php with all the current settings it has now? I used apt-get to install it with a bunch of other packages, so I'm not really sure what arguments to use when I recompile it. Is there a way to print the current settings?

View 7 Replies View Related

Fedora :: How To Mount Initramfs

Apr 25, 2010

I try to mount initramfs-kernel-ver from boot directory.mount -t ramfs initramfs-kernel-ver /mnt/testbut i can't see any files.

View 1 Replies View Related

Ubuntu :: Boot: Karmic Won't Start, Dropping Into Initramfs?

Jan 23, 2010

I'm running Karmic on an AMD 64 on Efficient PC (Re-badged Asus Anubis), with Nvidia Corporation MCP51 High Definition Audio card.In recent days my system has been freezing, although this has generally been solved with a reboot.Now, however, GRUB is failing to start Karmic, and is dropping me into initramfs.I have tried a systemrescue cd (see here http://www.sysresccd.org/Main_Page), which when I switch on slows down at

ATA1 port is slow to respond
forcing hard reset
comreset failed errno=-16

[code]....

View 3 Replies View Related

Ubuntu Security :: Prevent Kernel Initramfs Extraction?

Jul 16, 2010

I'm writing here because it's mainly a security issue even though it's rather kernel related.

I'm compiling my own vanilla kernel with an initramfs included in the bzImage. That image contains encryption keys for the rest of the system. Even though it's not for everybody the initramfs image can be extracted from the kernel, decompressed and the keys extracted.
I'm looking on a way to prevent this.

View 3 Replies View Related

Ubuntu :: Initramfs - Fail To Mount /dev, /sys And /proc In /root

Sep 3, 2010

Uploaded with ImageShack.us

Here was I get on my screen.

I don't know why this is happened. But before I rebooted, I could not see any content on Windows like update or shut-down (if I tried to install something and it asked for confirmation, that window was blank. Or before I shut down, I had to push enter, since that windows was blank.)

I don't think I installed anything and computer was working just fine before.

I don't want to reinstall everything again.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved