I use vim+cscope. Since a struct or a function can be declared many times, when I want to find how it is defined, I'm troubled by a long list of declarations.I use 'cscope f g [def]', and I don't know why declarations are listed.So how can I configure cscope so that declarations won't be listed?
I am working for a product which was evolved over a decade. There I have some combination of C style coding and C++ coding in same libraries. I am landing on some instances where C style function is expecting forward declarations for some other function for which I can not declare (due to design and architecture). Is there any g++ compiler option that directs the g++ to look whole preprocessed file (because definition is there down in the preprocessed file) than only forward in the preprocessed file. All these years this code is working as we are using CC compiler and that looks entire preprocessed file than only in the forward direction.
<Sample Code Header1.h file Function1() {
[code]....
if I can not include Header2.h first then Header1.h. I have to include Header1.h and Header2.h because on the design hierarchy in this product. Also the function definitions are in header files as they are either template functions or functions expanded through macros.
Trying to start dhcpd reports "no subnet declaration for eth0 (192.168.1.1)" and "no subnet declaration for eth1 (10.100.1.17)". Is dhcpd using /etc/dhcpd.conf, or do I have the wrong config file? If it's right, why is this failing?
I'm trying to use "netlink" to get ip address of a Linux box. But the linux/types.h included from "linux/rtnetlink.h" introduced many conflicting type declarations with "sys/types.h".
#include <rtnetlink.h> #include <sys/types.h> #include <sys/socket.h> int main (int argc, char *argv[]) { return 0; }
I wasn't sure how to describe this in the topic title, but every time I install software with yum (su -c 'yum install package'), I have to download repository information (I think? I'm not really sure what it is, tbh). I checked to see if I had unrar installed or not (obviously I didn't), so I decided to install it. The download is 106k, yet I had to sit there for a while downloading whatever it was that yum was downloading. Is there any way I can skip this? Typically it's not a big deal to wait a minute until it's done, but sometimes I just want to get my program installed and get back to business. Most of my Linux career has been spent with apt-get instead of yum, so I don't fully understand why the process takes longer with yum than it does with apt-get.
i have just installed Ubuntu,i'am really concerned about security,i have no idea about linux.In windows, i use kaspersky internet security to protect the computer, so any time i want to log on my bank web, i use virtual mode or secure mode,and also virtual keyboard offered by kaspersky,i ve never had a problem,this way i think i protect myself against fishing. Is there anyway to protect myself from the fishing attack in Ubuntu?
specs: toshiba lappy 110gb hdd, 1gb ram, core 2 duo 1.6ghz, nvidia 7600 windows xp pro service pack 3 jaunty jackalope
my problem is: i wanted to repartition (shrink xp and create partition for data storage) my hdd using gparted live cd 0.5.2-9. everything went fine until i clicked exit and reboot. after the cd tray automatically ejected i got a flood of "VFS: busy inodes on changed media or resized disk srO". this doesnt stop until i press enter. after that it reboots normally and there is no problem with the os.
my questions: 1) is that flood anything bad, is there a way to avoid this. i read somewhere that the problem is solved when using the terminal sudo eject - then push back the cd tray - then sudo eject -t. i tried that but it said failed because gparted cd is in use.
2) the first time that happened i didnt know what to do, so it flooded like for 15min or more until i pressed enter. my question is if the flood is being saved anywhere on the pc so that i have to delete it?
and a question regarding extended partition: 3) i have 50gb left that i want to use for data storage. i read that you can only have one extended partition. so since there is already one extended partition from ubuntu, i cant have another one for windows? so i can only make the data partition as primary or is there another reason why the "create extended partition" is greyed out?
last question: 4) when i set up the partition for swap i made it 1032gb big but in gparted it shows 980.53mb. is that still enough or why is it like that because somehow the sizes of the partitions seem a bit different than how they originally should be. im actually used in seeing the size shrinking a bit but i found it weird that the ubuntu partition shows 4.76 when it should be 4.5gb. i know its not much different but im just curious to know why..
partitions order: windows - unallocated (-->data partition) - ubuntu (primary) - home folder (extended) - swap
in windows the partitions are shown as: windows xp (31,74gb) - unallocated (50,05gb) - 4,76gb unkown - 24,27gb unkown - 981mb uknown
in gparted: its almost the same, only difference: there is unallocated space (7 or 8mb) between home folder and swap
on a Vimeo video in Firefox, and my computer became "partially frozen". The video stopped, but the audio continued to play to the end, but I couldn't clear the video. I pressed ctrl-f2 to switch to my other desktop, but it just brought up a blank screen, and switching back makes no difference.As it stands I have a black screen with my mouse cursor on it (I can move the cursor, yes). I'm new to linux, and I want to know if there are any keyboard shortcuts I could try to fix this. I'd rather not hard reboot whenever I run into a problem, I just don't know the terms to google for
I had a problem with Thunar in Xubuntu. As I often work with huge images, memory is consumed generating Previews. Disabling Previews seems to be very difficult in Thunar, as it makes use of external Thumbnailers. Another problem is making a file executable. I couldn't find out how to do that in Thunar. So I decided to change back to Nautilus, which solves the problems. In preferences it is easy to disable generating previews. But I was not able to get completely rid of Thunar. The folders on my desktop still would open in Thunar, although I set Nautilus as default browser. So the problem sometimes is still there. Uninstall is not possible, as it completely uninstalls xfce-desktop. Is there a way to avoid running both browsers at the same time?
How to avoid Control-D? I have a problem about my fedora 11, my fedora always gone in to Control-D. When I force shutdown or sometimes when my file or system gone error and etc. What is the meaning of Control-D anyway? It mean my system is Crash or corrupt? How can I avoid Control-D to my system?
I'm working on a managed desktop at work with Scientific Linux so I decided to install latest Ubuntu 10.10 on my laptop, an Aspire 6930, and set it up so it dual boots with Windows Vista.
It boots for the first time,everything looks great and it asks me to update some programs.After it does that,I restart and I get a grub rescue message while there was a strange clicking sound coming from the hard disk. I reinstall Ubuntu through BIOS with a CD and I bring the system to the original state.
I can now boot either with Ubuntu or Vista but I don't dare update the programs it prompts me to as I fear it will lead to the same result. It's been like this for the past month and I was wondering if there is a way to know what actually caused the problem in the first place assuming that is has to do with a program that was updated.
Truth is that the specific model has this problem with the hard disk that makes that constant clicking. When running Vista I have a program called Notebook Hardware Control which lowers some settings and stops the clicking.When running Ubuntu, there isn't any. So is there a way to know which program can cause such an error and refrain from updating it?
I have recently decided to use ATI video cards again due to poor linux support several years ago. I currently have a Radeon HD 3000 series card however I have been unable to install the fglrx driver under Debian Lenny 64. It seems that the Catalyst 10.4 driver is not compatible with the Xorg version in Lenny.
So far the NVIDIA has been very good at making drivers available for the latest linux versions. I have been running Debian Sid with an NVIDIA card with relatively few problems.Is it still best to avoid ATI graphics cards or is this just a temporary problem?
I am facing some problem with loopback on UDP sockets. is there anyway by with we could avoid loopbacking of a UDP datagram destined to same IP address, and instead force it to go all the way till NIC and then come back to the socket.
The problem is, we have some piece of code written at driver level, and we want each and every packet to hit that code on its TX and RX path. But if src and dest IPs are same, packet loops back from the IP stack itself, without hitting the driver code.
Can we modify the characteristics of a UDP socket, such that each and every packet has to go through NIC interface, thus avoiding loop backing when the src and dest IPs are same?
I'm facing difficulty while writing to an already existing file . I'm making a shell (programming in C). I want a file (say , logfile) to keep a record of all the commands a user enters. For the first command it runs fine , but for the second time and thereafter it overwrites the previous contents. How do I avoid this?
I have successfully build .deb im my box and it is running well. But during the debuild process I got followingdpkg-shlibdeps: warning: dependency on libatk-1.0.so.0 could be avoided if "debian/retrovol/usr/bin/retrovol" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/retrovol/usr/bin/retrovol" were
Is it possible to forbid that more then one user open the same file in rw mode? In windows when you open a file that another user is using, there's ad advise and you have to open it in read only mode
I installed ubuntu 10.04 desktop edition on 3 pc (there is not a server-client architecture). I installed samba.(and smbfs)
put the strings: [name] comment = ... path = /... guest ok = yes read only = no create mask = 0777 directory mask =0777
Computers that access to that directory do (on boot, with root privileges) mount -t smbfs -o username="user",password="pass" //192.168.0.12/name /mnt/cartelladimontaggio
But if two users access to the same file, both are authorized writing on it! So changes made by one are lost when the other save.
I use rsyc for synching files that I type with a server and every time I have to enter the server's password. Right now in my .bashrc file there is an alias like this code...
but can't find such a thing in rsync or ssh man pages. Does anybody know what I should do?
I am totally new to the fedora, and i have installed fedora 12. Once if I connected to internet, it will work 5 to 10 minuts fine, But later onwards i will taking to search.com page where i cannot able work on any websites. Then i checked with my internet service provider, there is no problem they say.
I have execute following command and got the following warning. [root@sina0012 /]# serviceconf No display information -- gtk_init not called Gtk-WARNING **: cannot open display:
I'm using Xterm. While running a prog/command if I scroll up and reading something on the screen, the xterm view resets to bottom if there is some output from the running command.
I tried enabling/disabling jump scroll, asynchronous scroll, scroll to bottom on tty output options of Xterm with no avail. In one way or the other way, the screen is scrolling or resetting to bottom if there is some output to screen.
I want to stop this behavior and the scroll should work as if it is in Konsole. The new output to screen should simply add at the bottom and the current viewing point should remain unscrolled. pls let me know if there is any working solution for this xterm problem.
I have created a linux machine and installed some softwares on it with root user privileges . I used to login with root user credentials for doing the various task.
Later i have realise that this is not the best practice to follow and there should be a new user with less privileges to be created for doing the day to day task.
I have read the steps to create the user but will that new user sufficient enough to do the task that i m doing it through root user? Will my software allow the new user to work on them? I would be glad if someone points me to a guidelines on what should be my next step?