Slackware :: Updatedb Run By Itself Or Only Manually?
Jul 10, 2011
I want to use updatedb to index an external hard disk drive. I mount the drive under /media/external and removed '/media' from the PRUNEPATHS in /etc/updatedb.conf file.This works and I can search for files when the drive is not connected using slocate. However it takes sometime to index the drive and I do not want updatedb to run on its own (if it ran while external is disconnected well...) and seeing as the box in question is on 24/7 if it should run by itself it will most certainly ruin the slocate db.I was thinking of plugging the drive in and running updatedb again, once completed will this work
Code:
# slocate '/media/external' > ext_file_list
and then to find a file even when external is disconnected
when I opened /etc/updatedb.conf it says there in the file that one should make ones own updatedb.local. But how, exactly? Presumably I create /etc/updatedb.local but what do I put into that? With all those $-signs I'm pretty much lost. Could anyone post his/her example of a PRUNE_FS statement or point me to some reference where I can read up on this
I'm using Slackware 13.1. There are some software I need that not presented in repos (e.g GIS software and utilities), so I create SlackBuilds and build them manually.
When compiling some libraries I get problems with libdl - the dynamic linker library. As I understand, this library absolutely required by some other libs.
For some odd reason, it seems that this library is automatically supported on other distros (e.g. Debian), but not on Slackware. As result ./configure script can't find necessary libs and fails with messages like
Code: checking for sqlite3_prepare_v2 in -lsqlite3... no configure: error: 'libsqlite3' is required but it doesn't seems to be installed on this system.
I'd like to be able to manually mount a USB stick in console (before X is started) and I can't seem to find a good way to do that. I'm not too smart about HAL and UDEV and I don't want to undo the auto mount feature when X is running but still be able to manually mount and unmount as necessary; like for installing patches and packages after an install or version upgrade. It seems like there should be an entry in /etc/fstab and a directory in /mnt or /media but danged if I can find something that points the way.
My Slackware64 13.1 system is running off a notebook that does not leave the desk often so I stay connected via a ethernet cable. Recently I set up the wireless configuration for my home network and while I would like to have it so that it automatically goes to the wireless interface when the wired is down, I do not think that is possible without wicd or some other network manager. Anyway, whenever I start up Slackware both the wired and wireless interfaces activate and acquire their own IP addresses. What I would like is for the wireless configuration to remain dormant so that all I would have to do is issue "ifconfig wlan0 up" to turn on the wireless interface/connection. Is this possible? As it stands I have to manually issue the "ifconfig wlan0 down" to turn it off once the system boots up and I log in.
I am trying to connect to the net wirelessly using Slax off my USB stick. I did the best I could using the wireless configure tool but Firefox will not surf - no connection. The configure tool shows that I am 'partly' connected in that it shows signal strength in green but I noticed that there is no entry for IP address. Am I suppose to know this and enter it? In LMDE, I see the IP as 192.168.2.10 and other addresses. Do I need to enter this stuff?
If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the corresponding updatedb for the mac?
kernel 2.6.21.5, GNU (Slackware 12.0).updatedb: Secure Locate 3.1 - Released March 7, 2006. Cdrecord-ProDVD-Clone 2.01.01a23.Some script in my system runs updatedb (in the background) on a periodic basis. I am wondering what would happen if it runs while I am burning a CD/DVD, a thing I usually do with cdrecord. Cannot this cause a buffer underrun
As far as I can see, there is no option explicitly excluding NFS drives. Neither, as far as my perusal of man updateddb.conf is there any way to telling updatedb to include a given path, only exclude one.getting it to include a path on an NFS drive?
I have a WebDav (davfs2) mounted in /home/myuser/mydavmountI would like to prevent updatedb from indexing the content of the mounted drive. I tried editing /etc/updatedb.conf and setting the following:
Code: PRUNEPATHS="/tmp /var/spool /media /home/myuser/mydavmount" also tried these:
I used to be able to run locate and updatedb, but after an OpenSUSE update, they no longer work. I've reinstalled findutils and it appears to install correctly, but the commands still don't work.
I recently installed 10.04, in the process of installing MythTV... I'm looking for installed files and find bash no longer finds updatedb or locate commands. I did change /etc/hosts and /etc/hostname to change the name of the box. Could this have hosed those commands? I tried them as root... sudo -i, same result...
On fedora system I do a updatedb command and thereafter a simple locate to look for files and softwares. But on my ubuntu 10.10 install, when I do a updatedb, I get Quote:nishith@nishith-Aspire-4720:~$ updatedbupdatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'Also locate doesnot do anything, just gives back the shell prompt! what could be the issue here? BTW my install is on a usb 8 gb stick
I am trying to install the locate and the updatedb command as they were not intially installed during the desktop installation of linux. How do I do this
So when I upgraded to Slack64 13.1 on my asus MB homebrewed desktop and Slack 13.1 on my compaq presario a900 laptop, I started having issues with the xterm title (in Terminal--not Konsole) being too dynamic. By "too dynamic" I mean that I can't actually change the title. The dynamic title (from my .bashrc) is basically just pwd. Whenever I try to set the title (via terminal->set title (menu)), I changes it for a split second, and then reverts back to the dynamic title.
This is merely a petty annoyance, so to get around it, I added an xtitle function that I grabed somewhere online (just echos "�33]0;$*�07"). So for nano-ing some file, I'd type:xtitle some_file.txt; nano some_file.txt
That works just fine (kind of annoying to type though). running xtitle alone won't actually change the name either though (I'm pretty sure it's the same command as what terminal does anyway). That is, running: xtitle some_file.txt
changes the title for a split second, and the reverts back to my old pwd.What I really want is to have it dynamically name it "some_file.txt" whenever I use nano, but that appears to be a functionality of zsh (with the preexec() fxn).I'm wondering if anyone else has had this problem, and if you have a fix for it.
While I was installing some packages, the power in my street went out (uncleanly killing my system) ... unfortunately Kpackage was open at the time of the power outage. Now when I try to use KPackage, I get "Login Problem, Please Login Manually" ... which does not allow me to login using either the root or user's password. I have rebooted my computer many times and have even run a 'reiserfsck /dev/*** --fix-fixable' on my system, which did not repair the problem.
I have researched this error, but have only found responses that people suggest changing the KPackage behaviour from 'su' to 'sudo' ... ; while this does work, it feels like a 'putting-a-band-aid-over-a-warning-light-so-I-can't-see-the-warning-light-anymore' kind of 'fix?' which isn't good as it would enable anyone using the system to add or remove packages without thought or consequence. What I would prefer to do is actually fix the problem so that proper root password entering is again required to add or remove packages, so my question is:
1. Does anyone know if KPackage 'locks' out a file(s) on the system which may be preventing me from logging into the program correctly, and if so what and where the file(s) may be?
2. Can I delete any kpackage (profile?) file to gain normal login behaviour again?
3. Is this a permissions error?, has something in users/groups? been broken that I can look into?
4. how I may be able to properly repair this KPackage login problem on my system?
Can "locate" or "updatedb" be set to print file names with white space properly escaped? For example, I want it to print, "/home/USER/My Files" and not, "/home/USER/My Files". I've googled around, read the man pages, checked the forum, and I'm still stuck.
The Network Manager on KDE gets DNS configuration from DHCP and sets it automatically, but I would like to use the Google Public DNS. If I overwrite /etc/resolv.conf with nameserver 8.8.8.8 it still resolves names with the old DNS (probably cached in memory) and, of course, even if it worked, it would be annoying having to do that every time I connect to a network.
I've noticed the Network Manager lets you specify a fixed DNS with the rest being taken from DHCP, but that's on a per network basis, and I would like to set it once for whichever network I connect to (if you're on the go with a laptop that becomes an issue).
I'm running Windows 7 on my desktop (But Ubuntu 9.10 on two laptops), and I have an odd problem.I backed up my system from one HDD to another HDD, and in the process the MBR of the destination drive got fouled up and now sees Windows Vista and Ubuntu (even though I never used anything Ubuntu - I assume the backup program used an ubuntu build).Is there any way No, I know there is. I had the answer once but lost it.HOW do I manually edit my MBR to remove the Ubuntu reference and rename Windows Vista to Windows 7? Please note Ubuntu was never dual booted, let alone installed at all, on the HDD in question.
A. I want to manually set the Window Clamp for my experiment.I came to know we can do that in net/ipv4/tcp_output.c::tcp_grow_window. I'm really confused with the flow. Even i tried in net/ipv4/tcp_output.c::tcp_select_window, but things are asusual.
B. Can I really improve the throughput by increasing the buffer space ? Do i have to go for netfileters or altering the existing data structure will do ?
[URL]I was going through this tutorial linked above, but then when I got to the dmesg | grep -i portion, I thought for a moment and said to myself, "Wait, I don't have that kind of output.Which is true,
dmesg | grep -i "SCSI device" outputs nothing where
I have a very old laptop its Pentium II with 64 mb ram and 5gb HD . I want to put Debian 5 on it. The problem is that it does not has a Ethernet card so I can not go online with it. It has one USB port though .I want download .deb files from (URL... ) and using my other PC and put them on usb stick and copy to that laptop and dpkg -i .
the problem is that I am a new user so I am confused how to do that as can mishandle depencies .For example if you were to manually install VLC in that laptop how would you that.
When I try to install fedora 11 from the Live CD I get the hwaddress error and cannot continue. As far as I know there is no fix for that other than installing from the full DVD, but I don't have the facility to do that.What I would like to know is if it is possible to install fedora manually for eg. create the partitions with something like fdisk and copy all the files over from the live disc to the hdd and then install grub to start fedora and use it as if it had been installed normally.
Sorry if this is a stupid question. In my head I have this idea that anaconda is some helper program to install fedora and that it should be possible to do it yourself with the right commands.
I did a search here & on the web & can't find a "fix" that works. I tried the start order thing & the restart thing & one other I forgot, but nothing works.Funny the RESTART one didn't work as I CAN manually start it OK, unless I didn't put the command in the right spot.I DID notice that there are a few BUGS reported on this but they all go back far enough that I'd think they would be fixed by now.I don't have to manually start this thing every time I want to use it?