Ubuntu :: Cannot Startx After Making Mistake With $PATH?
Jul 8, 2011
I recently made a mistake and made my PATH variable nothing. I didn't notice this problem until I rebooted my computer and it would not let me login (the normal graphical login). I went into the terminal and found that my PATH variable was wrong so I edited my .bashrc file, adding Code:export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesthis seemed to fix the problem in the terminal now I can access all of the binaries normally, but I still can login with the graphical login and I still cant startx.
View 1 Replies
ADVERTISEMENT
Dec 9, 2010
I'm running Ubuntu 10.04.1 and am trying to get packet capturing working for my Bluetooth dongle using hcidump.From what I've read, libpcap must be compiled to enable Bluetooth sniffing and given that hcidump isn't finding a single packet, I'm guessing the version Ubuntu has installed for me isn't compiled with bluetooth support.So I downloaded a newer version of libpcap and installed the bluez header files. Configured libpcap and it gave a "Yes" for bluetooth support. It is now installed and sitting in /usr/local/lib/. Now I'm trying to compile hcidump to use this lib rather than the system default but I can't figure out how...I've read that GCC can be passed the -lpcap flag to set the path but I haven't figured out how to do this.
View 1 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Aug 25, 2010
Environment: Ubuntu 9.10 Karmic, 64 bit I was doing some maintenance on the machine and tried to delete everything under /var/lib/hudson. By mistake, I deleted everything under /var/lib. I know, I know, I must have taken an extra dose of stupid pills. Questions: Is there any way to recover without a full rebuild of the machine? Could I install Karmic to a VM, install all the same packages, and then copy over the /var/lib directory? Maybe a better question to start off is, which directories need attention (and what type) and which directories are not needed? Very soon before the delete, I did a directory listing in /var/lib. Here is what was in there:
[Code]....
View 5 Replies
View Related
Oct 8, 2010
I use this command:
Code:
find ./ -atime +360
to figure out the files that haven't been accessed since 360 days. The command above will return results like this:
Code:
/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc
I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:
Code:
mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext
But I want the executed command to create this path
Code:
/old-files/uploads/2010/02/
If it doesn't exist.
View 6 Replies
View Related
Jul 17, 2009
Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server
View 2 Replies
View Related
Feb 21, 2011
I have a program that takes a relative path as input appends it to a some path string to get the actual path.
Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.
If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.
Is there some path string syntax that I am not aware of but can achieve this?
View 2 Replies
View Related
Apr 26, 2011
Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.
View 3 Replies
View Related
Mar 29, 2010
I was trying to sort out some problems I was having with synaptic and in a <sarcasm>slash of brilliance</sarcasm> I renamed my libc.so.6 to something else. Since then any command I type throws up:Code:apt-get: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directoryI can't get anything done. Nautilus/package manager/nothing fires up.
View 1 Replies
View Related
May 23, 2010
I have a Ubuntu(Ubuntu 8.04 LTS)/Vista dual boot setup ( Single HDD machine) and Ubuntu was the default OS.While playing with an external HDD i accidentally ran MBRFIX on my desktop HDD and now it boots directly into windows not showing grub menu.Ran Ubuntu live CD and ran sudo fdisk -l and got the following result:
Code:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 200.0 GB, 200049647616 bytes
[code]....
View 8 Replies
View Related
Dec 23, 2010
I've been running Ubuntu on my laptop for a while, and I recently upgraded from 10.04 in Ubuntu using System -> Admin -> Update manager. However, when I now run System -> About Ubuntu, I'm told I'm running Natty Narwhal 11.04, rather than Ubuntu 10.10 which I was aiming for. I never noticed this earlier, though... I guess it's a month or two since I upgraded.Did something go wrong in the update and cause this to happen by mistake?I there a way for me to downgrade to 10.10?
View 1 Replies
View Related
Aug 15, 2011
I hope someone can help me here. I have a Win7 laptop 64bit OS & I'm trying to dual boot it with Ubuntu 10.04.3....I've done this many times without error on Vista machines, but with Win7, there must have been something I missed. In the process of dividing the HDD & setting up 100GB to use for Ubuntu, I believe that I deleted an important part of what Windows needs to run. (There was a small section there called "Vista loader" that is no longer there due to my error).. As it sits right now, the dual boot screen is fine, Ubuntu loads fine, but Windows will not load at all. I have tried all of the repair options including using a recovery disc and all "bootrec" commands that I would know to bring this back. All files on the Windows side seem intact & unharmed.
View 9 Replies
View Related
Oct 21, 2010
how to add a path to PATH variable permanently so that it remains persisent even after closing shell and rebooting the system when i added a path, to variable it remained there as long as i didn't closed the shell. but when i reopened it ,changed were undone.
View 2 Replies
View Related
Sep 14, 2009
I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies
View Related
May 31, 2011
Current script:-
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?
[code]....
How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?
View 7 Replies
View Related
May 2, 2011
My hard drive has the following partitions:
/dev/sda1 ntfs (reserved for system)
/dev/sda2 ntfs (win7)
/dev/sda3 extended partition with the following:
[code]....
View 3 Replies
View Related
Oct 26, 2009
So I installed FC11 and it seemed to be working ok I was having an issue configuring sendmail so I decided to use Yum to remove it and to re-install sendmail.I type yum remove sendmail and it asked me if I wanted to remove 39 dependancies. I said yes and it removed way more than just sendmailIt even removed Yum itself
HELP...I do not even have any way in the GUI for software installs, and YUM is no longer present.It even removed all but 7 items in my administration drop down. Can I fix this with the install CD of Fedora
View 1 Replies
View Related
Dec 21, 2010
I accidentally type mv command wrong.actually it supposed to be mv SNAP-20101215* dec10/week3_dec10/but i type the below insteadmv SNAP-20101215* dec10/week3_dec2010/Note: there is a folder name "dec10/week3_dec10/"but there is no folder name "dec10/week3_dec2010/"as a result of it, instead of having those files under dec10/week3_dec10 but it merge those files into one file name "week3_dec2010" , is there any way to change it back to orginal files?
View 6 Replies
View Related
Jan 15, 2011
By mistake i deleted the /usr/bin/dpkg.exe file.Now i am unable to install anything .when i tried to install ssh i got the following error message. Reading package lists.DoneBuilding dependency tree Reading state information... Doneopenssh-server is already the newest version.openssh-client is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 386 not upgraded.2 not fully installed or removed.After this operation, 0B of additional disk space will be used.Could not exec dpkg!E: Sub-process /usr/bin/dpkg returned an error code (100)
View 14 Replies
View Related
May 30, 2011
had upgraded from slackware 13 to 13.1 and finally 13.37.After this I noticed that 'dmesg' could only be executed as root. So inorder for a user to execute 'dmesg' I executed 'ln -s /bin/dmesg /usr/bin/dmesg'.What happened next is the symlink was created but the dmesg executable was deleted.I do not want to reinstall the OS (very time consuming on a P3 with 512MB RAM) so I want to know which package provides dmesg so that I can reinstall it.The dmesg man page indicated that klogd will provide the package but then when I reinstalled it it was a no go.
View 7 Replies
View Related
Oct 24, 2010
I was accessing my box externally (ssh) and accidentally deleted my crontab. I never used crontab before and issued the command "crontab -d" instead of "crontab -e" to edit and add my cronjobpretty useless because I had no back up of my crontab of course First question, is there going to be any direct issue on my box because of the crontab being erased ? (I am assuming so but do not know what type of problems..) Lastly, would I be lucky enough so that there is a way to recover my crontab ? (having gone through Google and whatnote, I doubt it)
View 10 Replies
View Related
Apr 19, 2009
I am trying to figure out how i can add the path /usr/sbin/ into the $PATH variable. I want this to be used from the normal account. I am bored settinh this manualy each time my computer starts.
View 2 Replies
View Related
Dec 2, 2009
I am not certain of the cause (it may have been after I updated my ATI video drivers, or instructed my system to use a dual-head configuration, which in hindsight was perfectly dumb) but regardless of the reason--now when I "startx" my monitor freezes with a few stray motionless pixels. Nothing I've done helps: tried "sax2 -r -m 0=fglrx"; tried "aticonfig --initial"; tried to revert to an earlier xorg.conf; but I don't really know what I'm doing, so I hope someone who far surpasses my knowledge of SuSE on the command line can help me out.
How do I get my desktop back?
View 9 Replies
View Related
Feb 15, 2010
I typed
#!/bin/sh
cd /
xx xxx x
[code]....
View 9 Replies
View Related
Apr 11, 2011
When installing, I used a hard drive that had a windows installation on it. In an attempt to have it format the whole drive and allow use of all the space on the hard drive, I may have made a mistake. In the end, there was only one partition which was "create volume for ..... /home with ext4." There was no partion for swap volume or root volume. It prompted me if I was sure I wanted to do that... it said I can do it that way but.... and then gave me some info which has since slipped my mind. What effect if any can I expect from having done that? The install went through perfectly and everything seems to be running ok
View 8 Replies
View Related
Apr 25, 2011
i just can't know how to get it work.
Code: #include<stdio.h>
main()
{
int _res;int i=3;int b=5;
asm_ ("add %1,%0"
:"=d"(_res):"a" (b),"0" (i));
printf("%d",_res);
}
View 4 Replies
View Related
May 15, 2010
i want to transpose "$ bash man" to "$ man bash" using <alt-t> on the command line in ubuntu 10.04. however, doing this in the bash shell activates the "Terminal" menu.in a bash shell <alt-t> is suppose to transpose the two words to the left the cursor but the menubar is not passing <alt-t> up the tree to the bash shell.
View 2 Replies
View Related
Feb 9, 2011
I reset the security context for my cgi-bin to httpd_sys_content_t.How do I set it back to the proper context?
View 1 Replies
View Related
May 29, 2010
I made this same mistake installing 13.0 several months ago and fixed it back then by trying different things,but I still don't understand why.So here's what I did this time to screw up with 13.1:-Partitioned the hard drive to have /boot partition at sda1 of type ext2 (root partition is at sda3)-manually configured LILO and chose to install bootloader to the MBR-went into that 'add linux' option in the LILO menu and pointed it to sda1When I try to boot slackware 13.1 I get a kernel panic. I'm sure the answer must be obvious but I don't find LILO very easy to understand. What did I do wrong and what should I do to fix this?
View 6 Replies
View Related
Mar 26, 2010
I cannot boot into by Ubuntu 9.1 machine.... Trying either GUI or rescue mode gives me the following error messages (which i copied by hand since they were in cli)
Code: mount : mounting /dev/disk/by-uuid/64e5cb0d-058a-4a4c-af4b-7afb6427a72e3 on root failed : invalid argument
mount : mounting /sys on /root/sys failed : no such file or directory
mount : mounting /dev on /root/dev failed : no such file or directory
mount : mounting /proc on /root/proc failed : no such file or directory
Target doesnt have /sbin/init The only thing i remember doing before this is deleting some bootloader files... but they were on another disk so I didn't think that it would affect my ubuntu install. Guess I was wrong how I can recover my system?
View 2 Replies
View Related