General :: Logging To A Custom File ?

Dec 29, 2010

when you log in through the terminal as root, you get a question if you want to apply the proxyconfiguration or not.

I have done this by changing the .bash_profile of the root-user:

Code:

I have adapted rsyslog with the following:

Code:

But it doesn't work. The messages have to be written to the logfile by using the logger-command.

View 3 Replies


ADVERTISEMENT

Ubuntu :: Add A Custom Script To Execute When Logging And Shutting Down In Into A User Profile Like /home/test Or /root?

Oct 27, 2010

I am afraid to ask with so many things changing around in each new release.Where would one add a custom script to execute when logging and shutting down in into a user profile like /home/test or /root ?would this be rc.local?

View 2 Replies View Related

General :: Troubleshooting File I/O Errors And Logging?

Jun 14, 2011

I have an oracle database that is getting file i/o errors. I don't think it is the fault of oracle, but the nfs mounted filesystems. So ... to troubleshoot my next step is to see if Linux is having trouble with i/o. These are nfs mounted and there are many files located on the filesystem which is having the error. The error only occurs on one file.Does anyone know how to turn on logging for any errors received? I assume I need need logging for nfs daemon, but not sure. Please correct me if I'm wrong.

View 1 Replies View Related

General :: Logging SSH In A Separate File Other Than The Regular /var/log/messages?

Apr 13, 2011

Generally SSH related log messages are logged in /var/log/messages file. Is there a way to log them in another different file? I mean is there some configuration setting to enable this?

View 7 Replies View Related

General :: Logging Ssh Messages In A Separate File Using Syslog-ng?

Jul 2, 2011

I am facing a problem while trying to log SSH messages in a separate file, say, /var/log/ssh_logs. I have tried modifying the syslog-ng.conf file as follows:

filter f_ssh { facility(auth, authpriv) and match("sshd[[0-9]+]:"); };
destination d_ssh { file ("/var/logs/sshd_logs"); };
log {

[code]....

But still I am not able to get the ssh logs in the new file. They continue to go to /var/log/auth.

View 1 Replies View Related

General :: Logging - How To Keep A Live-updating Log File Open In Terminal

May 20, 2011

This must've been done before: I want to keep a log file open in terminal so I can monitor updates to it as they occur. My searches are coming up with everything but this situation... I must be missing some terminology or something key, because people do this all the time inside of other programs (NetBeans, or rails server, for example).

View 2 Replies View Related

General :: Attempted To Change The User Folder And After Logging Off - ICEauthority File ?

Aug 11, 2010

I have a windows install with linux installed within the windows system using WUBI. I attempted to change the user folder and after logging off I received a err message regarding /home/XXX/.ICEauthority. I am using ubuntu 10.04 LTS.

View 4 Replies View Related

General :: Possible To Create A Custom Font.conf File ?

Jun 4, 2011

If it is possible, what are parts that should be included in it?

View 1 Replies View Related

General :: Modify A File Like /etc/gdm/custom.conf From The Shell Or A Script?

Jun 22, 2010

I want to modify a file like /etc/gdm/custom.conf from the shell or a script.

# GDM configuration storage
[xdmcp]
[debug]
[daemon]
AutomaticLoginEnable=true;
AutomaticLogin=username;

But the idea is that I can add a line to a section and it check if the section is defined, (add the definition if not), the property is defined, let it undefine (erase the line), (and delete the section header if there is no property defined), etc...

I didn't find anything except gconftool-2 but it do not explain how to modify other files. (there is a shema file there).

there isn't a program/script to achieve this, but can easyly be made for every config file, If someone do something like that, with a little database of which markup use each file, it could become really popular.

View 3 Replies View Related

Ubuntu :: GDM Broken - Gdm-binary[230]: WARNING: Unable To Load File '/etc/gdm/custom.conf'. No Such File Or Directory

Sep 1, 2011

I've had Ubuntu 11.04 installed on my desktop since it's release. Up until an hour ago, it was working fine. I clicked on an update from the update manager, now booting into a graphical mode is completely broken, (the start-up load hangs at 'Check Battery State ... [0k]'). I restarted my computer, and booted into safe mode, and launched the terminal. This all works fine. I then typed :

Code: sudo gdm start into the command prompt, hoping that I would be able to start things manually. Instead, it spat out this: Code:

gdm-binary[230]: WARNING: Unable to load file '/etc/gdm/custom.conf'. No such file or directory.
gdm-binary[230]: WARNING: Unable to find users : no seat-id found.
gdm-binary[230]: WARNING: Gdm Display: display lasted 0.070467 seconds

The last line was printed about 8 times, with slightly different times, before it gave up and failed. Some information which might help, I have Gnome 2, Unity and KDE (not sure which version), installed. My graphics card is the GTX 275, and I have driver the Nvidia driver 275.21. So yeah, I think the update has gone and moved custom.conf somewhere, but I have no idea on how to fix it. I have a graphics programming assignment due on Friday and I would be eternally grateful if I could get this fixed well before then.

View 2 Replies View Related

Server :: DHCP: Logging Host Names In Log File?

Jul 7, 2009

What I am trying to do is log IP Address, MAC Address and the host name for records. So I can have a record of what PC got which IP address and when they got it. So far my search has yielded no results. It would not be that big of a deal as I could always look at the dhcp file, but it is generated dynamically (3rd party application using RADIUS and each user gets a host).

subnet 208.x.x.0 netmask 255.255.255.0 {
option routers 208.x.x.1;
option subnet-mask 255.255.255.0;

[code]....

View 6 Replies View Related

Programming :: Expect/TCL Logging - Create A Clean Log File?

Apr 14, 2011

I've written an Expect script that assists with change management on Cisco devices. The script creates log files for pre-change, the change itself, and post-change. Each log and its commands is triggered by a ! command. For example:

Code:

./dochange.exp hostname
<script spawns bash, user SSHes to hostname>
!PRE

[code]....

All of this works fine. My big hair-pulling hiccup is that the resulting log files are filled with raw backspace characters! I am using log_file to log the output from the script. I stop and restart logging with a new file when needed. However, the log files are pretty much unusable. After doing some research, it looks like log_file sends output to the file in real-time, unbuffered. When I hit a key, it's immediately sent to the log. What I would like is for only the resulting string to go to the log. If I start to type 'reload' and instead type 'show run', I don't want 'reload' to be listed in the log at all.

View 1 Replies View Related

Software :: Set Up A Custom Cursor From A .cur File?

Apr 16, 2011

im trying to get a custom cursor (Master-Sword.cur) as my cursor for ubuntu 10.10. I did manage to change it to a .png file (Master-Sword.png.) I made a copy as to not mess up the original (Master-Sword-copy.png.) I have xcursorgen but not entirely sure how to use it. I've been into the terminal and have typed "xcursorgen <32x32> <0-x> <0-y> <Master-Sword-copy.png> and it tells me errors upon errors. Am I typing it in wrong? I'm not too good with xcursorgen or using the terminal I only know a few commands.

View 1 Replies View Related

Ubuntu :: Custom Command To Open File?

Jul 17, 2010

im trying to set mp4 files to open with avidemux but its not listed in the "add applications" list, but at the bottom it says "add custom command" and theres a browse button but i have no idea what im looking for.

is there an easier way to add a program thats not in the list, via terminal codes?

or what exact file should i be looking for if i use the browse feature?

im using Ubuntu 8.04

View 1 Replies View Related

Ubuntu :: Custom Launching For Playlist File

Jan 13, 2011

I am trying to make a custom launcher for a playlist file to open in VLC player. In the command part I have the path to the file like this:
/home/mike/Videos/newTv.m3u
What am I doing wrong cause when I try and launch it I get this error:
Details: Failed to execute child process "/home/mike/Videos/newTv.m3u" (Permission denied)

View 2 Replies View Related

Server :: Ubuntu And Bind - Named Log File Is Not Logging Info After Syslogd Restarts

May 7, 2009

Ubuntu ver 8.04.1 and Bind ver 9.4.2

I've set this up as a primary dns server, Bind is the only thing running on it, no gui, etc. I followed the default settings so I have a named.conf, named.conf.options, and named.conf.local file.

I have a log file I labeled as named.log in this path /var/log/bind. I'm using logrotate to rotate out the file.

My problem is that after syslogd restarts in the morning. My named.log file don't start logging info until I restart Bind. The new named.log file gets created and the old files rotate out and compress. All of the other log files in /var/log, syslog, messages, mail, etc, rotate out and compress like they should, after syslogd restarts.

I know that I could restart Bind using Cron but I shouldn't have to.

Below are snips of the files I'm using.

I named this one 'bind' and it's in the directory /etc/logrotate.d

View 8 Replies View Related

Fedora Installation :: Erratic Install Results W/initrd - Custom Spins With Custom Drivers - Modules?

Dec 28, 2009

Just spent three whole days barking up the wrong tree, solving Fedora 11 and Fedora 12 boot failures because the correct hypothesis was illogical: installation did not update/modify the initrd.

The first couple of times I installed Fedora 11 on the HighPoint Technologies RocketRaid 2640x4, the installation inserted my "custom" driver module (rr26xx) into the initrd, permanently, so that the system booted off the controller card for which the custom driver was inserted. (I yelled about this success in this thread: [url]

My most recent installs of BOTH F11 and F12 on the RocketRaid failed to properly set up the boot. It turns out that the "rr2640" module I "slipstreamed" into the installation process was *NOT* permanently added to the initrd by anaconda. (F12 gave me "no root device found boot has failed, sleeping forever", on boot; F11 hung also, without such error, I presume, during the init script execution). Because of limited resources and time, I only know for sure the module was missing from the F11 initrd, and am ASSUMING the same was the case with F12.

The only difference between the successful installs and the ones with failed boot is that the successful installs were made on a single-drive (JBOD) mode on the controller; whereas, the failed ones were placed on RAID 5. But, AFAIK, the created logical device for the card is "/dev/sda", in both cases, and the kernel can not distinguish between the two cases (or can it?). Thus, the inconsistency cost me a lot of time, and is still inexplicable to me.

Question: What is the best way to deal with custom drivers, today? There are custom spins, and many tools, like isomaster. Stupid question: Is there a way to modify the initrd inside an installer ISO -- be it for CD/DVD/USBboot drive -- beefing the init RAM disk with whatever modules you'd like, for the boot process (using, say, isomaster)?

And what makes anaconda understand that a module must be added to the initrd ? How can one force anaconda to do so?

How does moving to dracut as the initrd tool affect any/all of the above?

View 1 Replies View Related

Ubuntu :: Set Up Custom Error Messages Using An .htaccess File

Dec 10, 2010

we're running Apache/2.2.11 (Ubuntu) and trying to set up custom error messages using an .htaccess file that looks like this

[Code]...

When I save this to var/www/ it has no effect (tested on another server but using a shared hosting package it works fine).

View 4 Replies View Related

Ubuntu :: Borked The Login Screen With A Custom Jpg File?

Dec 23, 2010

I used sudo mv and Ubuntu tweak to customize my login screen -end result: a white login screen with a flashing rctangle in the middle - where I click my username.I cant login, which sux...Is there a way to use command line (or live CD?) to revert to a regular background jpg file, in home/usr/share/background?I am using Natty, and hope to sign-in without having to reinstall.

View 4 Replies View Related

Ubuntu Installation :: Creating Custom LiveCD/USB Iso File?

Apr 30, 2011

Having spent weeks perfecting my Ubuntu the way I like it, I was wondering if there is a way of preserving it as a either a liveCD or USB flash drive, with a view of using it on other PC's activated upon start up?

Possibly (under the USB option) with the option of launching from the flash drive itself, or installing onto a PC's hard drive.So, in essence, it would be a liveCD but custom made to reflect the way my Ubuntu looks and feels now? Is there any easy-to-use software available to perform such a task?

View 1 Replies View Related

OpenSUSE :: CUPS: Adding Custom Page Size To Ppd File?

Mar 24, 2010

I have a Canon i560 printer, which is rather well supported by Gutenprint drivers. I have been using those for a while and they serve my regular printing needs. However, when I try to print a good quality photo on glossy photo paper, strange stuff happens.The colour doesn't come out nice, but somewhat faded. Worse, no matter how I specify that I want to make a print on 10x15 glossy paper, the actual print is always cut off, printed landscape when I specify portrait, etc. The printer is shared via CUPS and when my wife prints from her Windows XP machine, the printer works normally and the colours look brilliant so there's no problem with the machine itself, it has to be in the driver.

I googled this problem extensively and in my search, I found out that Canon does in fact have a Linux driver for this printer, though it can't be found through their website. It is on their ftp server, however: ftp://download.canon.jp/pub/driver/bj/linux/I installed the driver from there, following instructions that I found on the web and I have the printer working. But...the photo paper size that I want to print on (10x15 centimetres) isn't available in the ppd file. I can also not specify a custom paper size to print on in digikam or gwenview, since that option is greyed out...Since a ppd file is a text file, I decided to see if I could add a custom paper size. I googled some more and found this page: Adding Custom Paper Sizes to a Custom Printer File Using a Text EditorWith the help of that page, I thought I had it nailed. I added the following to my ppd file:

*PageSize photo/Photo 10x15: "<</CNPageSizeName(photo)/PageSize[283 424]ImagingBBox null>>setpagedevice"
*PageRegion photo/Photo 10x15: "<</CNPageSizeName(photo)/PageSize[283 424]ImagingBBox

[code]...

View 5 Replies View Related

Ubuntu :: Custom Gtkrc File Works For All Applications But Firefox?

Jan 30, 2011

I use a dark theme in gnome, which of course doesn't display correctly on many websites that force a white background onto text input dialogues (I have to type white or light gray on white) - Because of this, I never use a dark theme for more than a few days before I switch back to light, which really sucks - My workaround for this was going to be changing my Firefox launcher so that a custom GTKRC is used.

It works for all applications except for Firefox.

e.g. if I type into a Terminal:

Code:
env GTK2_RC_FILES="/usr/share/themes/Redmond/gtk-2.0/gtkrc" speedcrunch
or
Code:
bash -c 'GTK2_RC_FILES=/usr/share/themes/Redmond/gtk-2.0/gtkrc speedcrunch'

[Code].....

View 4 Replies View Related

Debian Configuration :: Change The Driver File And Compile Custom Kernel

May 3, 2011

When I only change a driver file manually, for example /newkernel/linux-source-.6.32/drivers/gpu/drm/i915_drv.h, do I need to run "make config" or similar like "make menuconfig" or can I just skip? I mean these steps:

1.) apt-get install linux-source-2.6.32
2.) mkdir ~/newkernel/
3.) cp /usr/src/linux-source-2.6.32.tar.bz2 ~/newkernel/
4.) cd /newkernel/
5.) tar xjf linux-source-2.6.32.tar.bz2
6.) cd linux-source-2.6.32
7.) cp /boot/config-$(uname -r) ./.config yes "" | make oldconfig
8.) change the driver file /newkernel/linux-source-2.6.32/drivers/gpu/drm/i915_drv.h manually
8.) make-kpkg clean
9.) make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers
10.) dpkg -i *.deb

Is this way OK or do I miss something?

View 14 Replies View Related

Fedora Installation :: Custom - Lvm2 Group With Encryption And Have The /boot File Stored Within?

Oct 15, 2009

I need to install a lvm2 group with encryption and have the /boot file stored within. Is this possible in Fedora's graphical installer? I know it can be achieved in Arch(I know I'll need grub2, I assume that's coming in Fedora 12) I can always install it separately.

View 6 Replies View Related

Server :: Mounting Ext3 File System As Ext2 On Slackware With Custom Build Kernel?

May 16, 2010

I just rebuild the kernel for slackware 13, everything works, but root file system which is ext3 is mounted as ext2. Normally I've build ext3, ext4 and so on as modules, not in the kernel... but if I do this, then the kernel mounts the file system as ext2, which is build in the kernel. I also modified rc.modules so I can make sure that ext3,ext4,jbd are loaded, but it doesnt work.

View 2 Replies View Related

General :: SSH Advanced Logging ?

Jun 16, 2010

I've installed OpenSUSE on my server and want to set ssh to log every command, which is send to system over it.

I've found this in my sshd_config:

I guess that both of those directives has to be uncommented, but I'd like to log every command, not only authorization (login/logout via SSH). I just want to know, if someone breaks into my system, what did he do.

View 4 Replies View Related

General :: Logging Out Without Confirmation

Mar 6, 2010

I notice that one of the functions I can make a keyboard shortcut for in KDE is Log Out Without Confirmation. This might show a lack of imagination, but when might I want to do that?

View 3 Replies View Related

General :: Logging Outbound Ssh Traffic

Dec 8, 2009

I need to log outbound (server -> remote) ssh traffic, but am unsure of the best way to do this.

I added this to iptables, but nothing is being written to the logs when I ssh from the server to another system.

iptables -A OUTPUT -m state --state NEW -j LOG --log-uid iptables-save

View 2 Replies View Related

General :: Is There Any Known Harm In Logging In As Root?

Mar 25, 2010

I am pondering on what would be any implications in logging in via SSH as root?Surely SSH is safe or am I kidding myself and falling for the unwary ethic of logging into a remote Linux box as root?I discovered some open ports remotely on the linux box, and decided to login as root to edit a configuration file to shut off the ports, hence my questioning in whether logging in as root...another point, since SSH is 'supposedly secure', there should not be any implications or am I kidding myself!??? Would it be better to login as normal user then su from there?

Ok, to make things even more interesting, what if its a bog standard generic linux distribution with no suid programs etc, then what happens...take that out of the picture, and say, for editing a configuration file...hackers are not going to see that are they, otherwise by the sound of the answers, it is putting an impression that hackers can see the traffic the minute you login as root?! Otherwise why bother using SSH? I mean, surely, SSH was designed to replace telnet and thereby increase protection...as we all know back in the early 90's before the internet became publicly available, that there was indeed sysadmins dialing in to private networks or telnet'ting into a remote system as root....

View 5 Replies View Related

General :: Logging Everything Displayed At Boot?

Jul 13, 2011

Is there a way to get Linux to log all of the output that you see on the screen at boot?

It would sure beat having to dig through all of the different log files trying to find what was seen while it was booting.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved