Ubuntu :: Locate Not Returning Any Results / Force It To Do?
Feb 6, 2010
Bit of a strange one - locate is not finding any files ??
I'm running xubuntu karmic and 'locate' is actually 'mlocate' so doesn't allow the -u switch.
I'm timing how long it takes to run a command foo. I'm looking to append the results from the time command to a file, and discard the results from the foo command. I tried the following, but it didn't do what I want:
$ time ./foo > /dev/null >> output_from_time_command.txt
i'm trying to make a backtrace of nautilus (as described here: URL...to fill a bug report but it doesn't work.after i "attach PID" to the nautilus-process and do "continue" it's not possible with ctrl-c to return to the (gdb)-prompt. the wiki-page above says:"If the program hangs but doesn't crash you can press ctrl+c in gdb while the program is frozen and then continue with the next step".
I configured Dell Latitude D620 to go to sleep mode (suspend to ram) when i close the lid. It suspends ok and then I open the lid. It wakes up ok, but few seconds after goes to sleep again! So I need to press the power button to force it to wake up.
Sleep button works just fine. /etc/acpi/sleep.sh from console too.
I noticed that it always goes to sleep again when I wake up laptop by opening the lid. For example if I run /etc/acpi/sleep.sh, pm-suspend or press the sleep button laptop goes to sleep, then i close the lid and when i open it back - the problem occurs.
I don't know what I'm missing or what I did to break it, but most screensavers that I have end up returning this error message: "X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 135 (GLX) Minor opcode of failed request: 19 (X_GLXQueryServerString) Serial number of failed request: 16 Current serial number in output stream: 16" This is also the output of glxinfo. Did I somehow break something in my graphics driver?
Im constructing a menu for a program using case. I have all my normal input options mapped out but i want to have a * ) option so that if something else is inputed, it displays "Incorrect input" and then resumes the normal menu function. How do I do this? Ideally, I'd like it to display "Incorrect Input" and then accept more input for the menu.
I do like a lot of the changes they've made in Lucid (especially the aesthetic ones), but there is one change they made that I don't like, and I can't figure out how to get around it. I have Ubuntu set so that, after 10 minutes or so of inactivity, my screen is blanked, in order to save power. In Lucid, though, whenever I come back to my computer after the screen has been blanked, it requires me to entire my password in order to resume use of my computer. Is there any way I can turn this off?
This next question is unrelated, but I do still feel the need to ask. Why, exactly, did they move the minimize/maximize/close buttons from the top-right corner of the window to the top-left? I know that it probably feels natural to Mac users, but every previous version of Ubuntu has had these buttons in the top-right corner.....why on earth did they feel the need to change it? I've been using Ubuntu for a while now, and it's kind of annoying. Surely most people who've been using Ubuntu for a while were thrown off by this, as well? I doubt that there is any way to change it, but does anyone know if there is?
I am facing the problem of calling cfitsio library from C program in linux. when i am givingthe option "gcc -o CreateLevel1DataFitsFile CreateLevel1DataFitsFile.c -lm -lcfitsio "i am getting following error
/usr/lib/../lib/gcc/i386-redhat-linux/3.4.4/../../../libcfitsio.a(getcolj.o)(.text+0x7065):/backup/Astrosat/learning/cfits/cfitsio/getcolj.c:3098: more undefined references to `__xtoll' follow
I've recently done a fresh install of 10.04 on an Acer Aspire 5720 and it went pretty well. However I've a problem with the logon appearing twice. If I leave my computer idle for too long the screen locks. when I return I'm asked for my password which unlocks the computer but within a few seconds the screen locks again and I need to enter my password for a second time. This time the computer unlocks and stay unlocks.. but it's annoying I have to unlock it twice !
How can I extend the length of time before it unlocks or disable it all together.. until the problem gets fixed?
I am returning a computer to the dealer and I want to remove all stored passwords from firefox. How do I do that? This is version 3.6.I also would like to remove bookmarks and history.
I am developing a script to automate some database setup, but I have an issue I cannot figure out. I prompt for some input with whiptail and select a default if nothing is entered. However, if you do not enter anything, it normally returns 0, but this time it is returning an empty value.
I have a linux box, which was given to me by a company with 3 dedicated IP addresses. My goal was to setup ssh tunnels on all three dedicated IP Addresses.
Via Putty, i am successfully able to create a tunnel to the box's on IP1 IP2 and IP3 - that is i can make incoming connections on all three IP's.
However, my problem lies when i attempt to USE the tunnel. AIn all instances, regardless of the IP i actually tunneled into the box with, it returns IP1 as an outgoing connection, i.e if i setup IE to use the tunnel, it will return my IP as IP1, even though i have created the tunenl via IP2/IP3.
What id liek to accomplish is that when i create a tunnel via IP1, then outgoing connections go via IP1, and when i create a tunnel via IP2, then outgoping connectiosn go via Ip2 etc.
After discussing this with a colleague of mine, he infomed me he had the same problem at one point, and that some configuration on the box was required - however he was unable to recall.
I'm building a very small netbootable client, using a stripped down custom kernel and busybox v.1.18.4 (stable) with the embedded ifconfig and udhcpc applets
after startup, the initrd is loaded, and the proc, sys, dev and pts folders are properly created and mounted.
/proc/net/dev properly contain eth0 as an ethernet device.
in the init script I execute a background call to udhcpc passing the dhcp.script properly to udhcpc, and dhcp.script is then executed when the bound event occurs.
what I cant get past is udhcpc is passing back the interface evironment variable as etho0 (thats, 'eth' lowercase 'o' and a zero '0', when it should be passing 'eth0', thats 'eth' and zero '0')
I know I could hardcode the eth0, but i was hoping for a somewhat smarter system.
I'm having trouble with my pam_mysql authentication.'ve double checked my md5 password but its correct.What should I be looking at? My /etc/pam.d/system-auth is completely identical to my other server (that works), but this one is somehow reporting that my password is wrong.I've bolded out the questionable output.Here's my error log while trying to connect:
Code: Aug 2 16:16:21 la2 sshd[8006]: pam_mysql - option verbose is set to "1" Aug 2 16:16:21 la2 sshd[8006]: pam_mysql - option db is set to "hidden"
I have a situation where I have two DNS servers - a BIND one for our Unix hosts and a Windows Server DNS one for the Exchange and other Windows hosts. I set up the BIND server to slave from the Windows one, which it seems to do just fine.
Windows DNS has entries like "_gc._tcp.domain.local" in it, which are needed for domain logins, etc.
However, when I try to use nslookup on those entries, it fails when querying the BIND server. When I do a domain transfer with dig, I get all the answers I expect.
This failure means that the Windows boxes can't query the BIND server for the answers they need. By default, from DHCP, it is the BIND server they get, so that's a big problem. If I manually switch their DNS to the Windows server, it works perfectly.
I have a secondary slave dns server setup, it has transferred all the records from the primary master.But when I run a few checks from outside using tools on the net it says:Tried to fetch SOA record for domain, but DNS server ns2.domain.com returned error code Refused.I disabled iptables, and tried again, same result. So I think it is something in the named.conf file? I appreciate any extra set of eyes on it. Just feel like I'm so close!
I installed the stable version of Debian last night (Debian GNU/Linux 6.0 l) and whenever I come out of suspend, the video card's fan stays at full speed. When I do a regular reboot, this doesn't happen.
Normal behavior is for the fans (cpu and gpu) to go to full speed for a few seconds and then settle on a slower (quieter) speed.
The hardware involved is: Dell Vostro 400 01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2)
The install is vanilla (as in "I haven't messed with drivers or configuration files - yet"). Also, keep in mind that I'm a newby - I've just switched to Debian after about two months of Ubuntu and am not too familiar with where everything is or what commands I need to do what, so instead of telling me to change the sync parameters in the nvidia configuration, I need to know exactly what parameter in exactly what file.
Every time I leave runlevel 5 (shutdown, reboot, init 3 or whatever) and then return to runlevel 5, I lose sound and have to delete and then re-edit sound card config in Yast Sound module to restore it.When returning to GUI environment, the sound card appears OK in Yast but I get no sound from any of my multimedia apps - Amarok, VLC, Firefox all go quiet. Strangely, it still plays the KDE intro jingle when KDE starts up.To restore sound I click delete in Yast and I'm prompted with the following KDE dialogue:
Removed Sound Devices KDE detected one or more internal sound devices were removed. Do you want KDE to permanently forget about these devices?
After returning from suspend to disk, RF devices (wlan and bluetooth) are disabled. Running lspci indicates that no wireless network device is available, and no drivers are loaded. Furthermore, the LED on the front of the laptop remains off - this is always on when RF devices are available. There is an Fn-F1 function key to toggle wireless, but this does not function to either enable or disable.
Rebooting the system does not re-enable the RF devices, and there is no option in the BIOS. The only workaround I have at present is to boot into windows vista and use the Fn-F1 function key. This pops up a small hotkey utility with the option to disable/enable the wi-fi and bluetooth (independently). Upon confirming the dialog, the RF device light immediately illuminates. Rebooting into fedora and wireless devices are working once again.
I am running kernel 2.6.31.12-174.2.3.fc12.x86_64, with the latest compat-wireless drivers. I can provide much more debug information (dmidecode, acpidump, boot logs, lspci etc...), I am just unable to determine what is relevant
# rfkill list 0: hci0: Bluetooth Soft blocked: no Hard blocked: no
I have created an object where I pass a string and a long value to it <in Java>, currently I am adding the values to my Object so I can then add it to a list like so:
Code:
List myList; ImageObject io; for(i = 0; i < 10; i++)
[code]....
This is what the object currently looks like:
Code:
public final class ImageObject<name, time> { public String name = ""; public long time = 0;
I have a strange iptables issues. I have just built a new Debian install and starting adding some real basic rules (see below) the problem seems to be that the localhost itself can't get any returning traffic. That is, it seems to be allowed outgoing traffic but not the connected, returning traffic. Ordinarily allowing Established Connections would resolve this, see the rule below, but it hasn't. Why this doesn't work. Removing the last DROP in the INPUT chains obviously makes the traffic work!
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -j ACCEPT -p tcp --dport 22 iptables -A INPUT -j ACCEPT -s x.x.x.x iptables -A INPUT -j ACCEPT -s x.x.x.x iptables -A INPUT -j ACCEPT -s x.x.x.x -p tcp --dport 80 iptables -A INPUT -j ACCEPT -s x.x.x.x -p tcp --dport 8080 iptables -I INPUT 1 -i lo -j ACCEPT iptables -A INPUT -j DROP
Recently I installed RedHat Enterprise 5 on a windows machine. The machine is configured to use DHCP, but I have been seeing some strange behavior if I do nslookup on the machine's IP:
[someuser@lin01 mydir]$ nslookup 10.5.x.x Server: 10.10.x.xx Address: 10.10.x.xx#53 x.x.5.10.in-addr.arpa name = xyz.something. x.x.5.10.in-addr.arpa name = lenovo-d1690047. x.x.5.10.in-addr.arpa name = pqdlds. x.x.5.10.in-addr.arpa name = lin01.mydomain.com.
Where only the last entry of [URL] is actually correct, how can remove the other entries? I spoke to my IT Manager and he cannot see these stale entries in the DNS (we are using windows AD)
554 Your access to this mail system has been rejected due to the sending MTA's poor reputation. If you believe that this failure is in error, please contact the intended recipient via alternate means.