Server :: Config The File Using The Shell Scripts?

Jun 30, 2011

i need to config the file using the shell scripts..

i have set the static ip using shell scripts

1st it should ask the ip values 2nd it should check the file is exist or not 3rd then add the values or re edit previous values

i need to set only IP static

View 2 Replies


ADVERTISEMENT

Programming :: Write A Shell Script Which Edits A Config File ?

Mar 1, 2011

Write some simple script?

Heres what Im trying to do:

-Qjackctl has a config file which is modified each time QjackCtl is shut down. This means that whatever preset is in use when QjackCtl closes is written into the QjackCtl config file as the DEFAULT PRESET, for the next time QjackCtl starts (or at least this is how I understand it).

-I want to edit a specific line in the QjackCtl.config file, which specifies the DEFAULT PRESET. Obviously its easy to do manually, but I want to do it using a shell script which runs automatically on StartUp so that QjackCtl starts every time with the same DEFAULT PRESET, NOT the last one used.

-Unfortunately Im not at my Linux system right now (which is KXStudio/Kubuntu), but I believe the QjackCtl.config line looks something like this: DEF_PRESET=alsa (where alsa is the name of the preset)

PRESET1=alsa
PRESET2=firewire

I want a shell script which changes the line DEF_PRESET=alsa to DEF_PRESET=alsa, even when it may currently exist as DEF_PRESET=firewire due to occasions when firewire was the active preset when Qjackctl was last closed. I notice that the application in KDE that enables the user to set which applications open automatically on StartUp also allows the user to select shell scripts.

Ive done some research, as a beginner, and Im led to believe I might need to use AWK and/or CHMOD. I could have a go at writing a shell script but Im always wary about experimenting with StartUp scripts/operations because obviously if I get it wrong and make my system unusable, then because its going to run first thing on each boot, Id have great difficulty disabling it.

View 3 Replies View Related

Server :: Apache Web Server Config File

Nov 6, 2009

it may be a simple doubt i have but i really want to know this,in the httpd.conf file under the server root of apache server.they have instructed not to add a slash at the end when mentioning or giving the path for server root.I think both will still remain the same, then y is that mentioned that way?

View 6 Replies View Related

Server :: Can't Get A Config File My.cnf In Mysql-server

May 2, 2011

when installing mysql-server by this command sudo apt-get install mysql-server. Installaton is complete but i cant get a my.cnf file. Can anyone tell, what is the mistake i did and how to overcome from this error. Here, i am posting the results

sam-osm@dhcppc4:~$ sudo nano /etc/mysql/
conf.d/ debian.cnf

View 2 Replies View Related

Networking :: Export Config File From Proxy Server) And Using SSH

Jul 13, 2011

In my company have proxy server using Linux.

Ip Address Proxy Server 1 is: 123.16.201.23
Ip Address Proxy Server 2 is: 123.16.201.24

Every Client: 123.16.3.25,....
and 123.16.4.25,.....
....

- I want export config file on Proxy Server, but i don't know command and i see interface is command line. So hepl me command line and send file to my email.

- In config file on Proxy Server may be disconnect internet for user and Enable coonect internet for user. Hepl me do this?

- I using Ubuntu 10.04LST i want connect file Server on Server ( using WinServer2003).

I just go to company so i have everything don't know system.

View 2 Replies View Related

Server :: Getting An Error While Changing Sendmail Config File?

Nov 7, 2009

I am trying to change the configuration of sendmail so that I can relay mail through google smtp server as suggested here.

First I ran 'm4 sendmail,mc > sendmail.cf' with the original .mc file that came with Fedora 10. There was no error.

I added the following lines.

Quote:

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo','hash /etc/mail/auth/client-info.db')dnl
define(`SMART_HOST',`smtp.gmail.com')dnl
define(`RELAY_MAILER_ARGS�, `TCP $h 587′)
define(`ESMTP_MAILER_ARGS�, `TCP $h 587′)

I ran ''m4 sendmail,mc > sendmail.cf' again and got this message:
Quote:

m4:/usr/share/sendmail-cf/mailer/procmail.m4:33: ERROR: end of file in argument list

I did not change anything in the procmail.m4 file. What do you think caused this error?

View 3 Replies View Related

Server :: Use The System-config-kickstart To Generate A Ks.cfg File?

Feb 1, 2010

I'm using RHEL 5.4 and trying to use the system-config-kickstart to generate a ks.cfg file with all the settings already appeneded. After running the "system-config-kickstart --generate ks.cfg" command, the file gets created but it's missing the firewall configuration, partition information and so on.

How can these settings also be generated with the system-config-kickstart?

View 1 Replies View Related

Ubuntu Servers :: Getting Config Recommendations For New File/media Server?

May 27, 2011

I'm building a new file/media server for my household to use, and would like to hear the experiences of others, and suggestions, or links to appropriate howto's. I'll be using two (2) 250 GB Western Digital RE4 drives mirrored via mdadm RAID 1 for the Operating System. The storage area will be handled by four (4) 500 GB Western Digital RE4 drives in a RAID 5 array, managed by an Areca 1210 controller.

What I'd like to configure is a basic Samba file server, on which we have individual user folders, and a shared drive. As well, I'd like to add the ability to manage our movie collection so it can be accessed by the Boxee Box attached to the television. Twonky looks promising (and I don't mind paying the $19.95 for something that works well). However, as this is new to me, there may be other solutions out there that are better, and easier to administer. Moving forward, I'd like to explore the feasibility of configuring LDAP on this machine to authenticate users on the network (perhaps even integrate the mail server somehow), and the remote users (only two) who VPN into the network using the pfSense firewall appliance. There are no Windows servers, so Active Directory is not a factor.

View 5 Replies View Related

CentOS 5 Server :: Mysql (mysqld) Not Loading Config File?

Apr 30, 2009

We have been struggling with a problem with the mysql-server package. This might be in the wrong category because our problems are with it on x86_64. Where the problem happens variables that should populate from the my.cnf don't, on other servers, they do, the my.cnf files are identical except for the server-id

The problem occurs on some of our machines but not others. All are using the mysql-server-5.0.45-7.el5.x86_64 The ones that work, when you connect with a client respond with server version 5.0.45-log source distribution The ones that don't work respond with 5.0.45 source distribution

It's unclear what the differences are between the two source versions and how we wind up with two different versions. One thing that might be involved, the mysql package is installed with both the i386 and x86_64

View 1 Replies View Related

Server :: Add To The Shell Script That Will Allow To Generate The File Using The Shell Script?

Jan 24, 2010

Quote:

/usr/local/bin/mencoder /root/video1.avi -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=300:acodec=libfaac:abitrate=64 -srate 22050 -oac lavc -vf scale=360:240 -o /root/output_temp_video1.flv

[code]....

View 2 Replies View Related

Software :: Email Settings: Which Config File Identifies The Smtp Server

Dec 9, 2010

I have a recent install of Fedora14, and wanted to have outbound email sent to a smtp server elsewhere on the local network. I found the System->Preferences->Email Settings app and created a mail account with an smtp server. Now I am able to use mailx, mutt, and sendmail -- all send email correctly to the external server.

But I don't like being reliant on the GUI apps and wanted to know how this was done -- what system config files were affected. Assuming that my "smtp.xxx.com" server should show up somewhere, I grepped /home, /etc, and /var, but can't find it anywhere. On a whim I went into Evolution, deleted the mail account, and rebooted, but email STILL works. Where is this configured?

[Code]...

View 2 Replies View Related

CentOS 5 :: Svn Server Config - Understanding Location Svnpath Parameter On Svn Config

Sep 7, 2009

I was tryin to deploy svn on centos 5 with respect to [URL] I am stuck understandin the location svnpath parameter on svn config

[Code]...

View 1 Replies View Related

General :: Using A Config Directory Instead Of A Config File?

May 7, 2011

I currently can run an old swf on my Chumby 8 device by storing and using these three files on a USB plugged into the device

config
<?xml version="1.0" encoding="utf-8" ?>
- <config>

[code]...

View 1 Replies View Related

Server :: Create Log File In Shell Script ?

May 7, 2011

I tried to create logfile for the below shell program but i was not able to get log file,can anyone help me for the below program to create a log file for the shellscript.

View 12 Replies View Related

General :: Delete A File On A Remote Server Using Shell Scripting?

Jul 18, 2010

delete a file on a remote server using shell scripting.

View 14 Replies View Related

Server :: SquidGuard: Include Some Config File In SquidGuard.conf?

May 28, 2010

All i'd like to split my squidGuard.conf into 3 differents config files. The idea is that, I want 1 config file for src definition (my users), 1 config file for dest definition and 1 file for acl definition. And all of these files will be include in squidGuard.conf.

View 1 Replies View Related

Server :: OpenVPN Range Address / When Change Static IP To Dynamic IP In Config File OpenVPN Didn't Work?

Feb 13, 2010

I want to configure a VPN over the Internet.I installed the 'openvpn' package, generated the key file, transfered it by a secure way to the client, and setted up the configuration file.

So, in that configuration file I input the IP addresses of the tunneled interfaces. Both IPs are static in the tunnel.

Then, I've heard somewhere that I can assign a dynamic configuration IP for the client. I do this registering a range.

Well, when I tried to change static IP to dynamic IP (changing '192.168.0.2' to '192.168.0.0/24') in the configuration file, the OpenVPN didn't work.

Obviously I don't know what I'm doing, and I really, don't believe that simply changing the IP will make it work, but I tried.

I hope I explained my problem as well.

My configuration file:

# OpenVPN Server Configuration File
dev tun 0
ifconfig 192.168.0.1 192.168.0.2
cd /etc/openvpn
secret key_file

In client I execute the 'openvpn' without the '--daemon' parameter.Then I want that my client uses a IP in a range (192.168.0.0/24, for example), instead of a static IP (192.168.0.2).I also thought to use a DHCP server, but I'm not sure that will work.

View 6 Replies View Related

Ubuntu :: Using 10.04-server 64bit AMD With Fluxbox - Matlab In A Shell The Shell Does Not Display Characters Anymore

Jul 26, 2010

I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?

View 1 Replies View Related

Fedora :: Display The File On The Gnome Desktop Without Messing Up The KDE Config File?

Jan 4, 2010

New install of FC12 and after logging into the KDE desktop then going back to Gnome, the Desktop Config File for KDE shows on the Gnome desktop. I ran gconf-editor and I can see the file but no option to not display in Nautilus. Is there an easy way to not display the file on the Gnome desktop without messing up the KDE config file?

View 2 Replies View Related

Ubuntu Multimedia :: Where Is Association Config File For File Extensions?

Aug 7, 2010

I'm using Ubuntu 10.04.1 LTS (Netbook).I need to associate ram file extension to realplayer. First time I opened a ram file I choosed the default player, Reproductor de peliculas (I think Movie player in english).Now when I choose Open with Realplayer and remember the application for this extension it opens the archive but it does not remember for the next times. It seems to be a little bug. How can I do it manually? Where is the association config file for file extensions?

View 2 Replies View Related

Server :: Config Apache Server To List Php, C/c++, Java Files As Regular Txt On Website?

Feb 2, 2011

I try to config my apache server to list all my files: c/c++, php, java files, like the txt file on my server,

e.g /var/www/mydomain/pub

i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name,

if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file,

Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?

View 1 Replies View Related

Server :: Config Apache Server To List Php / C/c++ / Java Files As Regular Txt On Website?

Feb 23, 2011

config my apache server to list all my files: c/c++, php, java files, like the txt file on my server, e.g /var/www/mydomain/pub i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name, if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file, Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?

View 1 Replies View Related

Ubuntu :: Shell, Auto Append Number To File And Read From External File?

Oct 31, 2010

Code:
cat ${SOURCE}/{start,universal,index,end}.txt > ${SERVER}/index.html
cat ${SOURCE}/{start,universal,02042010,end}.txt > ${SERVER}/02042010.html

[code]....

View 3 Replies View Related

General :: Read .gz File Direct On Shell/terminal Without Decompressing The File?

Dec 9, 2008

How can I read .gz file direct on shell/terminal without decompressing the file?
satimis

View 5 Replies View Related

General :: Shell Script That Adds Users Name To A File When The File Is Modified?

Mar 30, 2010

I need a shell script that will add the users name and date to a file when the user has modified the file, these files are within a group and only accessible to this group. But we need a way for people in the group to know who and when the file was last modified.

View 1 Replies View Related

General :: Convert Binary File In To Ascii File Using Shell Script?

May 23, 2011

i am trying to convert a binary file in to ASCII using shell script. this file contains multiple types of data like string, number, bcd, etc.

View 5 Replies View Related

Programming :: Parsing Xml File Using Shell Script And Generate Report In A PDF File?

Jul 9, 2009

parsing xml file using shell script and generate report in a PDF file

Xml file input:

<report>
<student name="x" father name="x1" class="first" Address="xyz">
<property name="sports" value="yes"/>
<property name="drawing" value="no"/>

[code]....

View 12 Replies View Related

General :: Printing From Bash Shell / Concatenate Files Into One File With File Names Included?

May 11, 2011

I am supposed to take some small files, and print them to a specific printer, such that the small files are concatenated into one file. The file name has to be included in the file that gets printed.

Should I be looking to concatenate the files into one file with the file names included, and then print them?

something like: -printfunction -printername < file*

View 7 Replies View Related

Ubuntu Installation :: How To Load Kickstart Config File - Refuses To Load File / Launches Generic Install

May 6, 2010

I created an Ubuntu 10.4 iso with the kickstart cfg on it, trying to boot it with the ks=/cdrom/pathtoconfig (tried even ks=cdrom:/path) parameter in VirtualBox but it refuses to load the file and just launches the generic install.

View 1 Replies View Related

Networking :: 2 Subnet 1 Httpd Server And 2 Dns Server How To Config?

Jun 14, 2009

I would like to setup 2 linux machine each with two ethernet cards, and need to connect to two subnet e.g. 192.168.*.* and 10.0.*.* . If one linux machine out of order, the other will take over all the services(1 httpd and two named(192.168.*.1 and 10.0.0.1 as server ip). What network config is best and easy to failover to other machine?

View 1 Replies View Related







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