Ubuntu :: Accidental Overwrite Of .bashrc With Different Script

Jan 23, 2011

I have been working on this script and I just made a ridiculous error. I tried to move my script out of my home directory and for some reason I put in "mv myscript .bashrc" Now my .bashrc file has nothing but my script in there... I think I may have overwritten some important info. Is running cp /root/.bashrc ~

View 2 Replies


ADVERTISEMENT

Fedora :: Add Path In .bashrc By Commenting Out Old Path And Adding New One - Command Source ~/bashrc

Jun 14, 2011

When I add some path in .bashrc by commenting out old path and adding new one like this:

#EXPORT HOME_PLAY=/home/gem/old_play
EXPORT HOME_PLAY=/home/gem/play
EXPORT PATH=$PATH:HOME_PLAY

After saving above changes, I enter the command: source ~/.bashrc Now if I do echo $PATH, the path shows both the old PLAY_HOME and new PLAY_HOME. This is really bad and messes up a lot of things in my project. This problem only goes away if I logout or reboot, a rather very long process. What is happening is that the old path is added to new path element and the old path includes the old path element you want to remove.

View 10 Replies View Related

Ubuntu :: Accidental Boot To GNOME?

Jun 9, 2010

I 've been running Kubuntu 10.4 for some time now.At some point, I installed evolution-indicator and indicator-messages, and after reboot, the system booted on GNOME instead of KDE.Is there any way to reverse it? I tried uninstalling both packages but that did not have any effects.

View 3 Replies View Related

Ubuntu :: Data Recovery After Accidental Reformatting

Jan 16, 2010

I just erased +200GB worth of photos, documents, music and videos on my external hard drive.I wanted to try the new Ubuntu Lucid Lynx Alpha 2, so I downloaded the .iso, launched the live USB disk creator and tried to format my 1GB pendrive to make room for the OS. Somehow, I ended formatting my 320GB external USB hard drive. The hard drive had to partitions (one EXT3 and one NTFS), but now it only has a FAT partition that spans the whole drive.I understand that the new FAT partition may have erased the EXT3 data structures at the beggining of the partition, making file recovery next to impossible.A confirmation dialog on the live USB disk creator wouldn't have hurted either.

View 5 Replies View Related

Ubuntu :: Accidental Permission Change To 'none' On Folder?

Mar 13, 2010

A rather new user here, was messing with the preferences on a user folder of mine on Karmic, looking for a way to make the folder invisible to users (like the old windows option). Set it to 'none', then closed it, returned to the directory finding the folder with a box with an 'x' on it.

Went to open it, it says 'access denied'. So I think 'okay, how do I undo that', go back to see if I can restore it back to 'read & write' with no sucess.

Seached the forums for a solution to this issue, most of solutions revolve around 'gksudo nautilus' which I attempted to open via command-line. Nothing seemed pop open after I entered my password in responce to entering said command-line, probably because I really don't know how to use Nautilus.

View 4 Replies View Related

Debian :: Accidental Chmod 755 -R /etc/

Apr 22, 2011

I accidentally chmodded my entire /etc/ folder to 755 privileges.

It's not completely critical because my system is a home server.

My biggest problem is that MySQL is pitching a start-up message saying that I have 'unprotected key file', clamav is stating that it won't start until it has owner permissions...

I did chmod 600 /etc/passwd just in case.

"How do I see all the start-up complaints in a text file?"

View 6 Replies View Related

Ubuntu :: Accidental Deleting Window Os - Recover Files?

Sep 21, 2010

I installed ubuntu 10.10 beta. But i thought it replaced ubuntu 10.04, well it did but i whiped my whole harddrive instead. Can I recover my window 7 that i once had? I accidental installed my linux using up the whole drive. i have alot of server cfg and other stuff such as pic and document.

View 1 Replies View Related

Ubuntu Servers :: Slow Sudo After Accidental Change / Make It Up?

Feb 5, 2010

My first post. I've been using Ubuntu Server edition (Hardy) happily for some time now.

I use sudo regularly during configuration of new services. It always works/authorises within seconds, however, it recently became very slow, to the point of being nearly unusable.

In /var/log/auth.log I noticed a regular working pattern like this code...

View 4 Replies View Related

Ubuntu Installation :: Restore Accidental Delete Of Home.disk?

Oct 8, 2010

I think I did something dumb. I was trying to increase the space allocation to my /home virtual disk on my wubi installation of Ubuntu. I ran the wubi-add-virtual-disk utility (as I had done before the first time I increased my space), but I received the message "The target virtual disk /host/ubuntu/disks/$virtual_disk already exists, aborting." So, thinking that all my data was in a different path and that the file home.disk was probably just some configuration file of little importance (I should've checked and I should've made a backup of it myself), I browsed to /host/ubuntu/disks and ran "rm home.disk", then reran the wubi-add-virtual-disk utility (stored in my still existing /home/cportiz/Downloads directory), and I thought I had successfully increased my space.

To my horror, upon restarting my computer, my desktop was empty and basically unusable as there is nothing to click on. I rebooted on recovery mode and logged on in terminal mode, then browsed to /home and found an EMPTY folder. I ran locate home.disk and found a file at /host/ubuntu/disks with the size that I specified when I ran the virtual disk utility, but I don't know where my old contents are. I didn't just delete all that stuff. it is still somewhere on my hard drive and that all I need to do is modify the home.disk file in this or that way or hit restore. There is not a home.backup file at /host/ubuntu/disks/.

Anyhow, if indeed I've lost everything, I can probably restore most of the work I'd done (only a couple of weeks worth) pretty quickly. Some of the files were backed up in other computers, etc... How to restore my wubi installation to a functional one? I would prefer not to have to reinstall ubuntu altogether since I believe the majority of the packages I've installed were housed on /opt meaning I can get back up and running compiling certain programs from source fairly quickly and most of the recovery effort is in rewriting some of the files that were stored in /home.

View 4 Replies View Related

Fedora :: Prevent Accidental Closing Of A Window

Jul 12, 2009

I am running a program in gnome-terminal window (using metacity window manager) which will take many hrs to complete.

I was wondering if there is some way to "lock" that window, so that accidental closing of that window is prevented.

View 7 Replies View Related

General :: Accidental Deletion Need To Recover From Loss

Jun 19, 2010

I accidentally deleted all the files from file system in my hard drive (thankfully not my /home since it resided on a separate hdd). I did this from another system while I had connected that hdd to look at some files since my system was not booting correctly. The problem is that I deleted everything (manually while I was in nautilus) including the .Trash file. I have not formatted this drive so the partition table remains the same, nor have I written anything to it since the deletion, and, this drive is using ext4. What is the best way to restore this drive to how it was (say yesterday at 4:30PM)? (I have a lot of programs installed and I have been upgrading Ubuntu there since 9.04 to now 10.04). If I am not mistaken when data is deleted in ext4 it is simply flagged as usable space, and if that is so, is it possible to just simply unflag this data to get every file back the way it was yesterday at 4:30PM?

View 4 Replies View Related

Debian Configuration :: Accidental Double-click Prevention ?

Apr 17, 2011

There's a physical problem with my Microsoft mouse (and from what I've heard many other Microsoft and Logitech mice) where it accidentally double clicks during what is intended to be one click from me. I was thinking that surely some software that ignores the next click input from the mouse if it is within say 50ms (At a guess) as the last click would solve this problem and increase the longevity of these mice. Is there an option for this somewhere? Perhaps it would be easy to program a simple script or something for this?

View 3 Replies View Related

General :: Accidental Installation Of Ubuntu 11.04 Overiding NTFS On External Hard Disk?

Aug 10, 2011

I really need some help here. I was installing Ubuntu 11.04 supposedly on a Desktop but I had my external hard disk connected via USB. This external hard disk had two NTFS partitions with lots of important personal and my works.

I accidentally installed Ubuntu upon it and I believe I had created new Linux partition for the Ubuntu installation. Is there any way to undo everything?

View 6 Replies View Related

Networking :: Ssh Stopped Working After Accidental Power-off During Rdiff-backup?

Aug 9, 2010

i unplugged the wrong machine during an rdiff-backup run, and when i try to ssh to that machine now, i get 'connection refused'. the machine was set up with ssh-copy-id before the accidental unplug.

View 4 Replies View Related

Fedora Hardware :: RIGHT ARROW / INSERT Accidental Keypress Stops Mouse Buttons From Working?

Jul 9, 2010

Here's a weird one. Once in a while I inadvertantly hit the key combination RIGHT-ARROW + INSERT on my keyboard while editing in Geany. This stops my mouse buttons from working and I have to kill xorg. Anyone heard of this before or how to fix it? I know I know, I should stop hitting those keys by accident, but it seems to happen at least once a day! This is on Fedora 12.

View 5 Replies View Related

Ubuntu Installation :: Where Is .bashrc File On 9.10

Feb 17, 2010

I am using Ubuntu 9.10. I was installing network simulator 2. After installation I get the following message.

Please put /home/administrator/Downloads/ns-allinone-2.34/bin:/home/administrator/Downloads/ns-allinone-2.34/tcl8.4.18/unix:/home/administrator/Downloads/ns-allinone-2.34/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

[Code].....

My friend suggested that it is something to do with .bashrc file. I fund files like .bash.bashrc.

View 4 Replies View Related

Ubuntu :: .bashrc Function Tab Completion?

Jul 4, 2010

I tried to make a function to put in either my .bash_aliases or .bashrc file to make a local backup of a file, but when I call the function and try to use tab completion I get the following error:

Code:
cp: cannot stat `help': No such file or directory
The function I added is as follows:
Code:
function bk

[Code]...

Also interestingly, if I define this function at the prompt rather than in my .bashrc, tab completion works fine.

View 3 Replies View Related

Ubuntu :: Edit Or Add Codes To ~/.bashrc?

Jul 28, 2010

how to edit or add codes to ~/.bashrc?? and also what is this bashrc if anyone could explain... i have tried editing this bashrc without success... how to save the changes in bashrc...

View 5 Replies View Related

Ubuntu :: Error On Editing .bashrc?

Dec 28, 2010

I get the following error on editing my .bashrc file.How to fix it??

Code:
karthick@Ubuntu-desktop:~$ gedit .bashrc
(gedit:3934): GLib-CRITICAL **: g_bookmark_file_load_from_data: assertion `length != 0' failed

[Code]....

View 4 Replies View Related

Ubuntu :: Variables In .bashrc: How To Using Dir Path

Jun 20, 2011

I have what I hope is a fairly simple question to answer. In my ~/.bashrc file I can create this alias:

Code:
alias uChmodDP='chmod -R $1 $2' #specify permissions. and the variables work fine. But I cannot seem to get any love from this alias:

Code:
alias umnt='umount /dev/$1' I realize the likely problem is the variable following hot on the heels of a specific directory, but is there anyway to specify a variable in an alias like this? For some reason I cannot umount usb pen drives by right clicking, and have to always resort to the terminal to do so, which for me is no real biggie, but if I could create this alias it would be an even better no biggie to umount using the terminal.

Actually, the inability to right click to umount usb devices seems to be a Thunar issue since I run xubuntu. Using Nautilus I am able to right click and eject/safely remove devices. Using Thunar however, right click unmount always pukes back an error that the device must have been mounted on the command line or some such BS. But like I said it is no real biggie to use terminal, but an alias would be even nicer. I prefer using Thunar and Xubu most of the time b/c my laptop is quite underpowered.

View 3 Replies View Related

Ubuntu :: Secure Overwrite Of A Partition?

Jul 9, 2011

i have a duel boot of windows and ubuntu, but recently i got a virus, but this things is leach like in appearance. I tried reinstalling windows, then reformatting the drive and reinstalling windows but i still have this same virus? This is dead creepy for me because windows cant read any of the other partitions, which are all formatted for linux, in formats which windows does not have the capability to read. So i dont understand how this could have happened. There are many things that i am still to try -- including completely overwriting the MBR with a GRUB in case the virus somehow resides in there?? But i have decided to give up on windows from now, because, despite all the actions i have taken, it has failed me repeatedly. But having had these viruses 3 times, i have noticed something, the first time i had a virus was my fault, because i left my computer insecure.

After i formatted my HDD following that virus, i noticed i had 10gb of space robbed from me, disk utility believed i had a 160gb drive, but Gparted and everything else told me that i only had 149.7gb of space??? now after this virus - which logically couldn't have happened without someone directly attempting to tunnel my computer as i had so much extra security - i lost 6gb of space from my HDD?? Sounds odd?

THE QUERY: So i want to know if (from ubuntu) it is possible to do a secure format (similar to with a mac - were it completely overwrites everything, instead of just deleting the links) although, possibly i am not going back to windows, ever.

View 9 Replies View Related

Ubuntu :: Why Does Aptitude Overwrite /etc/sudoers

Jul 23, 2011

I've been trying for a long while to figure out why aptitude overwrites /etc/sudoers ? Each time I run

$ sudo aptitude safe-upgrade

my /etc/sudoers is reset. This is really annoying because I have it setup so that mythtv can shutdown and restart automatically. The line in /etc/sudoers that gets deleted is:

%mythtv ALL = NOPASSWD: /usr/bin/mythshutdown, /bin/sh, /usr/bin/setwakeup.sh, /
sbin/reboot, /sbin/shutdown

When the line is missing my Ubuntu 10.04 does not shut down at all because of missing rights to do so. Does anyone have a clue why this is happening? I thought /etc-files were sacred for others than root, but it seems I'm wrong. Of course I have edited sudoers with visudo.

View 5 Replies View Related

Ubuntu :: Overwrite '/etc/xul-ext/ubufox.js', Which Is Also In Package?

Aug 13, 2011

today when I tried to update my system, this message appeared. Code:E:var/cache/apt/archives/ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb: trying to overwrite '/etc/xul-ext/ubufox.js', which is also in package xul-ext-ubufox 0I can't understand the effect of this on the system or how can I fix it.

View 4 Replies View Related

Ubuntu :: Can't Delete - Modify .bashrc / Enable This?

Apr 18, 2010

Rm: cannot remove `.bashrc': Operation not permitted

* ALL other files in /home/admin directory are able, only this one.
* can't even change own, grp, just nothing
* no matter if i'm doing it from root or admin

inside this file there is code...

View 9 Replies View Related

Ubuntu :: Adding Preformatted Text To Bashrc?

Nov 29, 2010

I was wondering whether anyone knows how to add preformatted text to the bashrc file? I'm ashamed to say I did already read this somewhere but had no use for it and as such forgot it! I'm possibly googling the wrong keywords, so apologies if it's an easy answer to find (with the right keywords!).

Just for completeness, the reason I'm doing my bit introducing my partner to linux, and I've 'embedded' a terminal on her desktop, I want to now add a little ASCII animal with a welcome message (I'm ok with getting the welcome message and colors sorted), much like the one seen in Linux Mint.

View 2 Replies View Related

Ubuntu :: Export PATH To Adb Directory Through Bashrc?

Feb 25, 2011

I,m having a rough time getting the terminal environment to recognize my android debug bridge path (which is set in a separate hdd) I used to paste this in my bashrc, but then found that it would make the env system bonkers whenever i attempted sudoing with an option:

# Android Debug Bridge (ADB) sdk path
alias sudo='sudo env PATH=$PATH'
export PATH=${PATH}:/media/Disk/Linux/Android/sdk/platform-tools/
The "alias" line was the one making me have a rough time with env.
Now that i got rid of it everything is well but adb's path isn't exported anymore.

[Code]...

View 3 Replies View Related

Ubuntu :: Defining Custom Commands In .bashrc?

Apr 26, 2011

I'd like to know if there is a way to define commands in the .bashrc or .bash_profile. For instance, I want to be able to type 'work' in a terminal and set up an interactive work environment on my universities cluster. (This is done with the command 'qsub -I -X'.) I tried the following in my .bashrc file:

alias work ='qsub -I -X'

But, of course this failed, as I don't have a command work already defined. How do I go about doing this? Also, I can't assign 'qsub' an alias, since it's used with different options quite extensively.

View 5 Replies View Related

General :: How To Edit The .bashrc

Feb 27, 2011

I want something like

Code:

export ROS_PACKAGE_PATH=~/ros:$ROS_PACKAGE_PATH

to be done already for me when I open a new terminal. How do I edit the .bashrc so that this variable is always set already?

View 3 Replies View Related

Slackware :: My Bashrc Does Not Load?

Nov 10, 2010

iam using slackware 13.1 ,i have this in my .bashrc :

Code:
# .bashrc
# Add bin to path

[code]...

View 7 Replies View Related

Ubuntu Installation :: Install Windows XP And Overwrite It?

Mar 18, 2010

I want to know if it is possible to install Windows XP inside of Ubuntu 9.10 and delete Ubuntu. I want to make this netbook dual boot and I know I need to have XP installed first to make the process easier.

View 9 Replies View Related







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