Fedora :: Editing A Line In A Daemon.conf [read Only] File?

Mar 16, 2011

I need to edit a line in a file in gedit, but its read only. I need to change

; default-sample-rate = 44100
to
default-sample-rate=44800.

Would anyone know if there is an option to make a read only file editable? Judging by the responses to the thread I followed to enable my soundcard, it is possible, and perhaps there is some setting etc that needs changing

View 3 Replies


ADVERTISEMENT

Fedora :: Edit The Daemon.conf File ?

Jan 17, 2011

My sample rates are out of whack and I need to edit the daemon.conf file.

However if I use

Code:

It will open the file but will not let me edit at all. If I just navigate to it I can edit it, but I can not save it!

I tried going in as root from the terminal and using the code above and I get a weird error.

Something like:

Then it says core dump.

Am I missing something to be able to edit the daemon.conf ?

View 2 Replies View Related

Ubuntu :: Making Apt Cache Permanent By Editing Any Conf File?

Apr 8, 2010

I don't want ubuntu to clean /var/cache/apt/archives directory automatically... is it possible to make it permanent by editing any conf file?

View 5 Replies View Related

OpenSUSE Hardware :: Create A Seperate X Server On 11.2 Without Editing The Xorg.conf File?

Apr 24, 2010

Is there a way to create a Seperate X Server on openSUSE 11.2 without editing the xorg.conf file? I red on this forum that should not be used any longer.

View 3 Replies View Related

Ubuntu Servers :: Desktop 10.04 Home Server- Editing Httpd.conf File - Fails

Jul 8, 2010

I turned my home PC running Ubuntu 10.04 into a server, and so i am so lost, after reading like a 10-20 different guides and/or official docs, I am totally lost.

All I wanted was to create a custom 404 error page...i read about how people edited .htaccess files to customize error pages, i tried and failed also, editing apache2.conf, I got lost and i dont wanna mess up everything and also, how you're supposed to not touch either of those as its not how it should be done and instead you need to edit httpd.conf and i did and FAILED! again...

Also how do I make it so that I can make subdomain(s) on my site? and wth is a name server and where do I get one?

View 4 Replies View Related

Programming :: Open Two Text Files - Read Them Line By Line And Update Parameters Of The 3rd File ?

Oct 18, 2010

I have two txt files containing x and y coordinates: xcoord.txt & ycoord.txt. I need to open them; read them line by line to get each coordinate; then each time I need to update Xs and Ys parameters inside another file called "dc.in" with the grabbed values.

Finally each time I need to run two exe files ( dc_2002 and st_vac) and produce corresponding output for each Xs and Ys ( dc.in is an input file for this exe files)

I have written the following code but it does not work:

View 14 Replies View Related

Programming :: Bash: Read A Text File Line By Line?

Jul 7, 2011

bash 3.1.17(2) I'm trying do write a shell script which must operate on each line of an ASCII text file. So, all the code must be inside a loop, and inside the loop, the first thing should be to read the next line from the file. I have the bash read command. But it reads from stdin. Any way to make read from a file?

View 6 Replies View Related

Programming :: QTimer To Read A File Line After Line?

Mar 25, 2010

I need a qtimer to trigger reading of a file line by line, I have the code sort of running with the timer trigger but qtimer will just read the first line over and over as it is now.

Here is the code so far:

self.lcdtimer = QTimer()
self.connect(self.pushButton85,SIGNAL("clicked()"),self.update)
self.connect(self.lcdtimer, SIGNAL("timeout()"), self.lcdxyz)

Code:

def lcdxyz(self):
import time
import os

[code]....

View 12 Replies View Related

Software :: How To Read Line By Line In A File In C

Feb 5, 2010

i want to read line by line in a files in C language actually my porblem is i have a one file cotains

AT
OK

if iam using fgets, it is reading each time AT only it does not moving to Ok in that file

View 3 Replies View Related

Programming :: How To Read Line By Line In A File In C

Feb 5, 2010

i want to read line by line in a files in C language actually my porblem is i have a one file cotains

if iam using fgets, it is reading each time AT only it does not moving to Ok in that file

View 6 Replies View Related

Programming :: Read File Line By Line?

Mar 23, 2011

so I have a script that creates couple of txt files. First file output is something like below..

cn=test,ou=something,ou=some,o=org
cn=testa,ou=something,ou=some,o=org
cn=testb,ou=something,ou=some,o=org

second file output is something like below..
usera
userb
userc

Quote:

userdn=`ldapsearch -x -h $server -LLL "(objectclass=person)" dn | grep dn: | cut -d" " -f2 > userdn.txt

for i in $(cat userdn.txt);do

ldapsearch -h $server -p 389 -x -D $admid -w $admpwd -s one -b "$userdn" dn | grep dn: | cut -d" " -f2 | cut -d"=" -f2 | cut -d"," -f1 > user.txt

for i $(cat user.txt);do

echo "$userdn"
done
done

when I ran both ldapsearch commands invidually, they work fine. But when I ran script, I got first file correctly but not the second one. It looks like its not reading the first file correctly and not setting the variable ($userdn) value correctly in the second ldapseach command. I want read first file first line and run the second ldapsearch and continues, then read the second line..and so on.

View 3 Replies View Related

Ubuntu :: Change Sysctl.conf File (read Only)?

Feb 1, 2011

im trying change my etc/sysctl.conf file but it won't let me as its read only. how to i change this?

View 2 Replies View Related

Installation :: CentOS4.5 Edit Grub.conf - Says It Is A Read Only File ?

Nov 12, 2010

I am trying to edit my grub.conf file. I am logged in as root. It says it is a read only file. I have tried to set permission with chmod 777 and also tried through GUI. Using VI it says it's a read only file. Using nano it will not write either. I have two choices on boot up. I want to automatically go to second automatically. First at the moment is CentOS-4 i386 (2.6.9-55.ELsmp) and second is CentOS-4 i386 (2.6.9-55.EL).

View 9 Replies View Related

General :: Make Samba Read Updated Smb.conf File Without Restarting That?

Apr 5, 2011

I just made a minor change to the smb.conf file, is there a way to force the samba service to read that change without restarting samba completely?

View 6 Replies View Related

Programming :: Read A Line From A Txt File In A Script?

Dec 9, 2010

have been playing around with a script for a few hours and now I need to be able to output the lines in a text file one by one to be used later in the script.What it gonna do is to read a log file and grep the usernames, then write them to a file, and then run one script for each user, to search for more information about them in the log.But I don't know how to output a single line from a file, and google does not return any solution.

View 3 Replies View Related

General :: Read A Line In A File And Use It As Argument?

Mar 20, 2010

I want to do this

read a files's specific line but return as argument only part of it ie

...

value # this is mass

value2 # this is force

so, how can I get / use the $value and $value2 as arguments for some other file and skip the rest of the line(s) ? of course, the values are different everytime, but the comment always the same, as well as the position of the lines in the file

View 4 Replies View Related

Programming :: Read In A File 1 Line At A Time?

Oct 22, 2010

i am trying to read in a file 1 line at a time and for some reason it stops printing out at about line 62,000.

i am doing this:
Code:
while(fgets(c0, 1085, fstream0) != NULL)

but after about 62,0000 lines it stops printing. no seg-fault, no core dump. it just stops printing to the terminal then returns me to the command line after a couple of minutes. as a hack i am doing split -l 50000 on the input and calling my program 5 times.is there some limitation on fgets that i am not understanding ?

View 8 Replies View Related

Programming :: Read Each Line Of A File As Input?

Jun 21, 2011

I'm writing a program which now accepts user input:

Code:
echo "Enter a date in the format YYYY MM DD hh mm ss."

read gregyr gregmo gregdy greghr gregmn gregsc This lets the user input a date and time, such as 2011 06 21 15 12 45, and have each number assigned to their corresponding variable. Later in the program, these variables are put into an equation, and then the terminal spits out the answer. Now I have to have the program read all of the lines from a text file, which is in this format, assign the variables.

View 7 Replies View Related

Red Hat / Fedora :: Unusual Grub In Minimal Bash Like Line Editing Mode

Jun 14, 2010

I have installed RHEL5, solved the problems around it and started to set up the GRUB. I have set the menu.lst with simple
rootnoverify (hd1,0)
mkeactive
chainloader +1

and tried to boot the Win7 on that partition. NO LOADER came up and since that moment
Grub is only in "Minimal BASH-like line editing" mode. I have tried all of I have googled, nothing have worked. There is a problem with even finding /boot/grub/stage2, or anything else, grub won't let me mount any partition. When I try to find any file, it says file not found. It is important to say that all I did to cause this was change in menu.lst
rootnoverify (hd1,1) to rootnoverify (hd1,0)m nothing else! There is no logic in this....

View 9 Replies View Related

Ubuntu :: Editing Xorg.conf - /etc/x11/xorg.conf Does Not Exist

May 3, 2010

I'm running the ubuntu based Green OS and cant get my video card properly configured. i've already gone through the forums to figure out what i need to do to get my ATI card working but my system wont let me access the xorg.conf file. i can see it using the the GOS file editor but it wont let me save the modifications. when i attempt to edit from a terminal window with su privelages it tells me that /etc/x11/xorg.conf does not exist. i've even tried booting into recovery mode and using the root instead of the sudo command. nothing i've tried will let me open the file.

View 3 Replies View Related

Programming :: Read A File That Counts Each Line And Numbers

May 13, 2010

I ran into it while google Segmentation Fault. I'm writing a simple C program that reads a file that counts each line and numbers it then writes to a file called sdout. I copyed my program mostly from the text book but im still having problems. Heres my code:

#include <stdio.h>
#include <stdlib.h>
void new_line(FILE *, FILE *);
int main(char *argv)

[Code]....

View 14 Replies View Related

Programming :: Looping Using While Read Line And A Variable Instead Of A File?

Sep 24, 2010

I created the following.

x="top
middle
bottom"

I would like to make the following work.

while read line
do
echo $line
done

instead of importing a file I would like to use the variable $x I tried using pipes, but with no luck. My goal is to read one line at a time, but not have to export my data to another file, I would like to keep it all within one script.

View 3 Replies View Related

Software :: Editing Xorg.conf With No Monitor

Dec 7, 2009

My laptop screen isn't working but I don't want to abandon my laptop so I am trying to hook up a new monitor. I'm using my 1 HDMI port, and my BIOS doesn't recognize the monitor on boot up. Also, my xorg.conf file is not configured for this monitor. My question is what should my xorg.conf look like? I have a bit of a start on it(see attached) but it is not quite right. How do I set up the Toshiba as the default screen, in order to use this monitor when Linux starts? Other info: I use Debian 5.0 with Gnome.

View 4 Replies View Related

Debian :: Cups Not Starting With The Server / Getting Error Unable To Read Configuration File '/etc/cups/cupsd.conf' - Exiting?

Feb 24, 2011

cups does not start with the server. When I try to start from the terminal I get the error message

cupsd: Unable to read configuration file '/etc/cups/cupsd.conf' - exiting!
cupsd: Child exited with status 1!

The log files show nothing. cupsd.conf exists. It is user - root and group - root with permissions set at 0644.

My interpretation of this is that the program is not launching from either boot or terminal for a fundamental reason. I do not quite see what that reason is .

View 2 Replies View Related

General :: Nano Editing Grub.conf Though Commandline?

Oct 12, 2010

I have to edit the grub.conf as there was a issue in running in virtual box, so i went to edit the /boot/grub/grub.conf file ( centos )and run

[Code]...

View 4 Replies View Related

Debian :: When Editing My Xorg.conf - Add The Automatically Keyword ?

Oct 17, 2009

The owners manual of my monitor gives me the following informations:

When editing my xorg.conf, do I have to add the automatically 'keyword' ? (saw nothing about it in man xorg.conf or man nv)

View 6 Replies View Related

Ubuntu :: Replace In The Xorg.conf File The Line In The Section "Device"

Nov 10, 2010

I have a Dell precision M50 which has the NVIDIA Quadro4 500 GoGL. When I upgraded from 10.04 to 10.10 the proprietary NVIDIA driver stopped working. At that time I found a simple solution which was to replace in the xorg.conf file the line in the Section "Device":

[Code]...

View 6 Replies View Related

Ubuntu :: Editing Xorg.Conf To Achieve Desired Resolution

Sep 11, 2010

I need to find notes on how to achieve higher screen resolution via Xorg.conf and some other fixes since I just installed the NVIDIA driver... seems out of the box, my resolution is horrid, though theres an added NVIDIA Server and my dual monitors aren't configured to work. I used this tutorial to get the driver installed.

View 9 Replies View Related

Ubuntu :: Corrupt Mouse Pointer After Editing Xorg.conf?

Jun 13, 2011

I'm testing a new PC and for business reasons it has to be able to run with Ubuntu 8.04 .The first problem I had was with the Intel GMA 4500 graphics driver. I have managed to resolve that and can now get resolutions > 800x600. However since then the mouse pointer is intermittently corrupt. I've attached an image showing the corrupt pointer which is about the size of a thumbnail.The driver I have installed is xserver-xorg-video-intel_2.4.0~melchiorre-5_i386.deb .I've also attached a copy of my xorg.conf file.While I've been writing this post I've noticed that if I take a screenshot or if I connect to the PC using VNC the entire screen is corrupt.

View 1 Replies View Related

General :: Editing Grub.conf To Make Windows Default In Dual Boot?

Mar 31, 2010

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]....

View 4 Replies View Related







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