General :: Apache - Recover File That Is Accidentally Removed?
Jul 2, 2010I have accidentally removed my apache2 startup file /etc/init.d/apache2 using rm /etc/init.d/apache2 command.
How can I get that back?
I have accidentally removed my apache2 startup file /etc/init.d/apache2 using rm /etc/init.d/apache2 command.
How can I get that back?
By accident, I used rm on a file I didn't want to delete. Is there any way that I can get it back under Linux?
View 4 Replies View RelatedI'm running Mac OS X 10.5.8. I was recently uninstalling mysql5 from /opt/local/bin.I typed:rm -rf /opt/local/bin mysql*instead ofrm -rf /opt/local/bin/mysql*This deleted my entire /opt/local/bin directory which puts me in a bit of a bind.Is there any way to recover those files? If not, I have a friend that is using a similar set of programs, would it be possible to use the contents of his folderIf I end up needing to reinstall everything in this folder, what is the best way to go about doing this?
View 2 Replies View RelatedI have Ubuntu 10.04 Lucid Lynx. I recently started messing with the desktop environment, going from GNOME to Ubuntu Studio to Netbook Remix... and then I decided to remove the Netbook look and go back to Studio, by removing it through the Software Manager. But this seemed to remove any and all desktop environments present. So now I just have the xterm. This was not part of the plan. I can get the Software Manager up and running, but I cannot get packages. I could try to provide the exact error message I get when I try, though I'm not entirely sure how to bring it to you. Is there a way I can get a desktop environment back after such a screw-up?
View 3 Replies View Relatedi was trying to remove the flash plugin 32bit wrapper (don't remember the exact name of the package),using the command apt-get -y remove --purge and i saw somehow uninstalled a bunch of other programs like the gnome-network manager,emphaty...Now i rebooted and can't log on anymore .Is there a way to repair this,like running an upgrade from the livecd to restore the missing parts without wiping out my conf & other programs ? I've tried this that i found some other forum ,but i didn't work
Code:
sudo mkdir /mnt/repair
sudo mount /dev/sda3 /mnt/repair
sudo chroot /mnt/repair su
[code]....
I'm running a dual-boot with windows 7
i removed slackpkg.conf.new by accident slackpkg version now i always get this message no matter if i remove package and install it again Your slackpkg.conf is outdated. Please, edit it using slackpkg.conf.new as example or overwrite it with slackpkg.conf.new. You can use 'slackpkg new-config' to do that. what i have to do to eliminate it and make slackpkg working again?
View 3 Replies View RelatedI accidentally removed yum, yum-fastestmirror etc. packages on Centos 5.3 after a failed "yum update" to update Centos 5.3 to 5.4. re-install yum packages manually by rpm.
I copied yum-3.2.19-18.el5.centos.noarch.rpm and yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm to my file system and tried to install by rpm. I got the following messages:
[Code]....
I accidentally removed network and sound icon from top panel. Is there any way how to put it back? I've read several howtos that I've to add notification area but it doesn't really work.I know that if I delete this user and create a new one the icons will be there again but I'd like to do it cleaner way.This is how it should look like (untouched user account):And this is what I've done :-/Network icon is missing in both accounts (removed by accident while trying to remove something else :-/ in user "tata" it at least shows sound button.
View 4 Replies View RelatedI accidentally removed the low disk space notifier entry from Startup Applications.
To open Startup Applications go to System -> Preferences -> Startup Applications or run gnome-session-properties from terminal.
I accidentally removed the message icon on my top menu bar in lucid lynx. Its the one which you click to get easy access to instant messaging, gwibber and evolution, how do I got about getting it back?
View 4 Replies View Relatedadd volume to upper right taskbar again (accidentally removed)
View 5 Replies View RelatedI accidentally removed the sound menu from my panel bar in Ubuntu 10.10. I did manage to find some solutions to get the sound volume applet in place, like it was in previous Ubuntu versions, but I do obviously prefer the new sound menu in place. Does anybody know how I can get it working again?
View 9 Replies View Relatedjust installed ubuntu 10.4. While exploring most of the basic function, I accidentally removed my WIFI icon from the panel.
View 2 Replies View RelatedI accidentally removed rhythmboxes notification icon on my new Lynx installation and I dont know how to get it back.
View 2 Replies View RelatedI removed indicator applet from gnome panel accidentally. is there any way to bring it back?
View 2 Replies View RelatedI accidentally removed the dhclient3 file. I had ran chkrootkit and it said it was a possible suspicious file. Once I rebooted, the network was disabled. I am running off the Ubuntu cd by choosing trial. How can I get dhclient3 back onto my installed Ubuntu?
View 3 Replies View RelatedI recently had to install Python 2.7 to run some specific cripts and so tried to uninstall Python 2.6 so that I didn't have to worry about path conflicts. It seems that when uninstalling the Python package it's stripped most of the apps from my installation, including fairly essential stuff like the terminal. It also seemed to stop accepting my password as a root user, though I'm hoping a reboot may fix that.
Can anyone provide a listing of the default packages that Ubuntu ships with please so I can try to repair my system? I tried looking through ones I might know but it appears for example that while Bash is installed I have no Terminal entry under Applications.
I accidentally formatted my Win 7 partition. I there any possibility of recovery? Failing that, is there any way to salvage files etc?
View 2 Replies View RelatedI accidentally removed messaging menu icon from gnome panel, and I can't put it back. I found this: [URL], but it doesn't say how to put the icon back on the panel.
View 3 Replies View RelatedI accidentally rm -rf 'ed /etc directory from the main server. The server has raid1 soft-raid. Is there a way to recover the directory.
View 4 Replies View RelatedA friend accidentally did mkfs.vfat on my 1Tb ext. hard drive..It's now showing as 400 GB free where it was 10 GB previously and the remaining data is being shown as weird symbols and empty folders and yet it occupies more than 500GB..Any way to recover the data completely?
View 1 Replies View RelatedToday I accidentally removed my home directory which contains no. of other directories having my work done in last 3 years. I used the command rm -rf * . I looked for the problem in the google got some links pertaining to my problem, but got no solution. One among these links is: [URL]. Can I get back my lost data (so many directories in my home)
View 6 Replies View RelatedI am not much experienced with Linux systems and commands. I have been searching with Goggle and trying to solve. Today I had accidentally removed the boot grub menu list. There is a backup file. Now my system boots to >grub command. I have tried all sorts of things from live CD to boot the system I have tried Super Grub also. I am no able to go to the directory where the back up boot menu list is available and change the name from the live CD. Can any one help me with commands to go to the directory and rename the file for booting.
View 2 Replies View RelatedI accidentally removed tar package and now pkgtools are not usable when I try to install back tar-1.23 How do I get back with my tar program?
View 13 Replies View RelatedAs in windows all the delted items will got to RecycleBin is there any such thing in linux.
(Or)
Can we retrive the file which got removed from file system(using rm command)
Every once in a while on a computer I'm ssh'd into, I will accidentally type "cat largefile.txt" and my screen will start rushing with text for the next 10 minutes. I'm always working in a screen session, so my current solution is to just log out and then log back in, and since it can go 100X faster when I'm logged out, it'll finish in the short time it takes me to type my password in again. Is there a better way? Either involving the fact I'm in a screen session? Or a way to do this within SSH? What doesn't work: detaching from the screen session (doesn't respond until file is done outputting) trying command to move to a different window in the screen session (also doesn't respond) typing ctrl+C to kill cat command (also doesn't respond, probably because the command is done and the buffers just have to catch up).
View 3 Replies View RelatedI am running a vps with nginx as webserver. For some odd reason (I don't know if it was installed already) apache2 was running before nginx could start. After stopping apache2 nginx starts fine again. But, I want to completely remove apche2, but:
root@vps2:~# apt-get --purge remove apache2*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@vps2:~#
but:root@vps2:~# ls -la /usr/sbin/apache*
lrwxrwxrwx 1 root root 34 Jul 5 01:46 /usr/sbin/apache2 -> ../lib/apache2/mpm-prefork/apache2
-rwxr-xr-x 1 root root 5326 Mar 22 23:56 /usr/sbin/apache2ctl
lrwxrwxrwx 1 root root 10 Jul 5 01:46 /usr/sbin/apachectl -> apache2ctl
root@vps2:~# ls -la /etc/ap
apache2/ apm/apt/
root@vps2:~# ls -la /etc/apache2/
total 76
drwxr-xr-x 7 root root 4096 May 27 17:32 .
drwxr-xr-x 88 root root 4096 Jul 5 20:46 ..
-rw-r--r-- 1 root root 7908 May 27 17:32 apache2.conf
drwxr-xr-x 2 root root 4096 May 27 17:32 conf.d
-rw-r--r-- 1 root root 1169 May 27 17:32 envvars
-rw-r--r-- 1 root root 0 May 27 17:32 httpd.conf
-rw-r--r-- 1 root root 31063 May 27 17:32 magic
drwxr-xr-x 2 root root 4096 May 27 17:32 mods-available
drwxr-xr-x 2 root root 4096 May 27 17:32 mods-enabled
-rw-r--r-- 1 root root 750 May 27 17:32 ports.conf
drwxr-xr-x 2 root root 4096 May 27 17:32 sites-available
drwxr-xr-x 2 root root 4096 May 27 17:32 sites-enabled
root@vps2:~#
Apache2 is there and I can start it normally with /etc/init.d/apache2 start but I want it removed, how do I do that?
I used the ext3 format when I formatted my partition prior to installing Ubuntu10.10. I had accidentally deleted a file and began the process to get it back. It wasn't critical but helpful to recover the file. To make a long story short I ran into to some unexpected road blocks. I tried to use PhotoRec to get the job done but with no success.
I'm just looking down the road in the event I might have to recover something important.If it would be better going back to the Fat32 file system I would rather do it sooner than later. Just as a side note I am dual booting between linux and windows.
Consider the following:
mount | grep home
type reiserfs
rm -Rf /home/user/over_9000_little_and_big_super_secret_files/
# oops, I should have shredded it instead.
How can I properly and securely "initialize free space" to ensure that no additional info can be restored restored by digging in free space (Preferrably without stopping or disturbing the filesystem much.) Is dd if=/dev/frandom of=/home/qqqqq really secure for this (tails, journal, etc.)?
Can I recover the file which has been overwritten.
View 7 Replies View Related