Networking :: Find The Default Content Of Snmptrapd.conf ?
Mar 22, 2011I deleted the snmptrapd.conf from /etc/snmp/ and now I want to see the default content to create that file.. Been searching the web but can't find it.
View 2 RepliesI deleted the snmptrapd.conf from /etc/snmp/ and now I want to see the default content to create that file.. Been searching the web but can't find it.
View 2 RepliesI am using find to search for .tgz files modified more than 7 days ago and delete them.find /directory/ -iname backup*.tgz -daystart -mtime +7 -exec rm -rf {} My problem is that find will go through the content of tarball as well and list all content. I want to only search main tarball and delete it if older than 7 days.
View 4 Replies View RelatedI'm trying to set this open-nic-dns (69.164.208.50) as default (instead of 192.168.2.1 - router-ip). So if I try to edit /etc/resolv.conf to this nameserver - but if i restart it's 192.168.2.1 again.
View 3 Replies View RelatedI ask your help to diagnose a problem. For business reasons I use a broadband internet connection via a mobile phone's connected via bluetooth [rfcomm]. Speed is not the maximum but it is more than sufficient for my work. For configuration of ppp I followed this guide Pon pulls up dialup, but I can't navigate also if resolv.conf and default route are correct. In addition I would like to use the NetworkManager that by default, does not see the device. I worked around the problem this way:
I modified the / etc / rc.local so that launch at boot time: # Rfcomm bind yes
After starting Lucid Lynx, bluetooth connects to the phone but NetworkManager does not see the modem.
When I run the connection manually, by: # Pon BluetoothDialup
NetworkManager sees the device, but can not use it because obviously it is locked by the ppp daemon.
So I close the connection with: # poff
Now NetworkManager sees the broadband modem via / dev/rfcomm0, dialup is performed properly. I can finally surf and just enable vpn with NetworkManager. all start automatically at boot, without the need to manually connect and disconnects the dialup to use, finally, the NetworkManager.
phpmyadmin files are in usr/share/phpmyadmin but i cant find anything in my apache2.conf or httpd.conf files that point to that directory.How do I find the route taken from the Server root "ServerRoot "/etc/apache2"" to the phpmy admin files.
View 5 Replies View RelatedI have discovered that after employing the Wicd Network Manager I can no longer connect via ppp. The reason, it seems, is that each instance of Wicd changes the content of my /etc/resolv.conf file from:
Code:
search SPRINT
nameserver 195.128.182.5
to:
Code:
Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line
It has been suggested that I write a script that does this.
I have installed Kubuntu 8.04.2 on a USB stick with persistence to keep any changes I make after a reboot and it works fine. I then installed the 185 Nvidia driver to give me higher resolutions and it works fine.
But each time I reboot, my updated xorg.conf is replaced with the default xorg.conf that ships with that version of Kubuntu and a backup is made of my updated xorg.conf (the correct one) which looks like xorg.conf.20100409135913. I have to put the backup xorg.conf back in place to get my Nvidia driver to work with the correct screen resolutions again. Otherwise my screen resolution is too low.
What could be causing this behavor? I'm sure it not the persistence feature of the USB stick failing since a backup is made of my original xorg.conf.
I might add more information. The xorg.conf that gets changed after a reboot says "This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database." #
I'm working with .conf files which I need to edit (with gedit for example) and an .sh file which I need to run occasionally.
And every time I open a .conf file it pops the "Do you want to run or display its content?" question.
I tried to configure Nautilus to stop prompting me every time by setting the Edit->Preferences->Behavior to Run executable text files when they are opened.
But now every time I try to run the .sh file it opens it in gedit instead of running it.
Is there anyway to set the behavior for specific file types?
Like so it'd open the .conf files in a text editor and run the .sh files?
(Maybe I should mention that I'm running Ubuntu 10.04 with Gnome)
im trying to open my NAT on my PS3, and it's asking for my primary DNS, secondary DNS, and default router. how will i find these on ubuntu? i got my ip and subnet mask, just need the other three.
View 1 Replies View RelatedHow to find file by content on linux by command. Example: i want find file contain word "helo" on my computer (OS: LINUX)
View 4 Replies View Relatedhow to find the latest modified directory. I know that the command 'ls -rtl' gives the latest modified file/directory at the end. But my specific requirement is: If I create two directories named dir1, dir2 in the same order. so now my latest modified directory is "dir2". Now inside each directories, I created a file. Now in the last, I modify the file in "dir1". So overall, the content of dir1 got modified recently. If I use the command 'ls -rtl', this will still show dir2 as latest, as it is created recently. But I want the directory in which any internal content at any sub-hierarchy modified recently. so with what linux command I'll get this latest modified directory (dir1)?
View 3 Replies View RelatedI have the following command that I run on cygwin:
find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | xargs du --max-depth=0 > foldersizesreport.csv
I intended to do the following with this command: for each folder under /d/tmp/ that was modified in last 150 days, check its total size including files within it and report it to file foldersizesreport.csv however that is now not good enough for me, as it turns out inside each
/d/tmp/subfolder1/somefile.properties
/d/tmp/subfolder2/somefile.properties
/d/tmp/subfolder3/somefile.properties
/d/tmp/subfolder4/somefile.properties
so as you see inside each subfolderX there is a file named somefile.properties inside it there is a property SOMEPROPKEY=3808612800100 (among other properties) this is the time in millisecond, i need to change the command so that instead of -mtime -150 it will include in the whole calculation only subfolderX that has a file inside them somefile.properties where the SOMEPROPKEY=3808612800100 is the time in millisecond in future, if the value SOMEPROPKEY=23948948 is in past then dont at all include the folderin the foldersizesreport.csv because its not relevant to me.so the result report should be looking like:
/d/tmp/,subfolder1,<itssizein KB>
/d/tmp/,subfolder2,<itssizein KB>
and if subfolder3 had a SOMEPROPKEY=34243234 (time in ms in past) then it would not be in that csv file.so basically I'm looking for:
find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | <only subfolders that have in them property in file SOMEPROPKEY=28374874827 - time in ms in future and not in past | xargs du --max-depth=0 > foldersizesreport.csv
I just installed FC14 64 bit system and I am looking to setup a snmp trap server so I can send up/down traps from my router to it which in turn will email me though sendmail. I have installed "net-snmp-utils-5.5-21.fc14.x86_64" and "net-snmp-libs-5.5-21.fc14.x86_64" packages and have downloaded snmptt_1.3 but I don't have the command "snmptrapd". Is there another package I need for this? Could it just be x64 doesn't support it?
Here is some info off the box.
[root@scanserver ~]# uname -a
Linux scanserver 2.6.35.11-83.fc14.x86_64 #1 SMP Mon Feb 7 07:06:44 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@scanserver init.d]# !rpm
[Code]....
The issue is I screw up my smb.conf by SWAT and I want now the default configuration with all comments back. I try:apt-get remove --purge samba > it leaves the default configuration in samba/ directorythe other way is to download source package....apt-get source sambaIs there some other quicker way how to get the default smb.conf file back?Yes but on Debian 5.0:I uninstall samba.Remove samba/ dir.Install samba.I'm unable to bring up nmbd daemon UP - missing samba/ dir with smb.conf. I create samba/ dir with smb.conf and nmbd is fine!
View 2 Replies View RelatedHowever, every time snmptrapd gets a snmp notification, it aborts. In debug mode, it reports a buffer overflow detected. I've tried another core 13 and a core 12, with net-snmp 5.5. On these three systems, snmptrapd behaves the same. Here is my snmptrapd.conf,
disableAuthorization yes traphandle default touch /root/a.txt I triggered snmptrapd with, snmptrap -Ci -v 2c -c public localhost "" "1.3.6.1.4.1.8837.4.1.2.1.2.1.6.4" 1.3.6.1.4.1.8837.4.1.2.1.2.1.6.4 int 500 Same result I got with my firewall snmp traps. Some other different scripts replaced in traphandle default, got the same. A small portion of debug info listed,
[Code]...
I'm using Core13 for zabbix, and trying to make snmptrapd works on it.
However, every time snmptrapd gets a snmp notification, it aborts. In debug mode, it reports a buffer overflow detected. I've tried another core 13 and a core 12, with net-snmp 5.5. On these three systems, snmptrapd behaves the same.
Here is my snmptrapd.conf,
disableAuthorization yes
traphandle default touch /root/a.txt
I triggered snmptrapd with,
snmptrap -Ci -v 2c -c public localhost "" "1.3.6.1.4.1.8837.4.1.2.1.2.1.6.4" 1.3.6.1.4.1.8837.4.1.2.1.2.1.6.4 int 500
[Code]....
I have two identical machines. I updated one (yum update), and now I can't view the display when it boots up; however, I can ssh into it. I'm pretty sure it's a resolution display issue on a KVM connected to the machines.
Years ago, I could view and change the default resolution in /etc/X11/xorg.conf. Now, it appears that information has been moved to another location.
My xorg.conf on the working and non-working machines is the same:
Code:
Nothing is mentioned about a resolution setting. Everything I google says to modify this file. Does anyone know where the default resolution settings are stored these days?
I installed Windows XP Pro and RedHat Linux Enterprise 5 on my PC for my purpose. The PC is used by other family members too and they need only Windows OS for browsing. It is becoming problem for them to reboot after the PC enters into Linux by default. I am still learning Linux and I want to edit the /boot/grub.conf file to make Windows as default OS to boot. The following is the content of my grub.conf file (FYI):
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,5)/grub/splash.xpm.gz
[code]....
I can't find smtpd.conf as described here: https://help.ubuntu.com/community/Postfix
Do I create the file or do I have to do something to install saslauth?
I have Red-Hat 5.6 , bind package and chroot installed, but i did not find the file named.conf in /etc !!!
View 3 Replies View RelatedUbuntu 10.04
I can't find xorg.conf on /etc/X11/ How to create it?
I'm reading about how to set log options and I can't find /etc/syslog.conf?
I'm using fedora12 , ubutnu 10.04 and suse 11.2.
And Can't find syslog.conf anywhere.
I have problems with keyboard layout switcher. On Gnome everything works. But when I start to use other DE I can't switch keyboard layout by default. So I create xorg.conf, but anyway it doesn't work...
View 1 Replies View RelatedI've been trying to setup dual-screen in my system, but the control panel complains it can't find xorg.conf and so I can't save changes I make in the nvidia control panel. I was trying various methods of trying to get a dual screen working how I like it.Left = 17" 1280x1024 that sometimes works (needs hitting a few times)Right = 21" 1680x1050 main screenI wanted to have everything on the right one, my main workspace. And I wanted a seperate x workspace on the left hand one. (Mainly so that when the one on the left decides to not work, I can use the panel thing at bottom to move apps to the right one)
Now I know since 9.10 xorg.conf is non-existant and so determind on the fly or something.Is there a way to get X to write out the current working xorg.conf that's it's using? i.e. It's auto determind x,y,z and that's what right now this second is being used. I want to save this as a working xorg.conf so I can fine tune it etc.
I am trying to edit the xorg.conf file as described here:
[URL]
However, I cannot find the xorg.conf file anywhere.
I can not find xinetd.conf on my server (CentOS 5.4 operation system).
View 2 Replies View RelatedI have managed to delete my yum.conf file and do not have a backup. I have tried reinstalling yum and it does complete but when I try and run yum I get cannot find any conf file. Is there a standard conf file I can download? I am running centos 5.3.
View 8 Replies View RelatedI just installed Fedora 12 on a RM (research machines) nBook 4000.
Whilst the trackpad allows me to move the mouse pointer about, it doesn't respond to tapping. Is there anything I can do to get it working properly?
Also, the laptop has an integrated Intel 82852/82855 GM/GME graphics card. How can I tell if it is being detected and working properly? I don't seem to have an xorg.conf file.
Just have F-13 32 bit installed. But can't find xorg.conf. The screen resolution is only 800x600. The LCD display and the video card can support 1640x1280. Please where can I find a standard xorg.conf. Or how to create it here?
View 14 Replies View RelatedI have the following section in xorg.conf
Section "Device"
Identifier "Default Device"
Driver "fglrx"
EndSection
In what directory does it look to find the fglrx driver?