Programming :: Write A Script For Work For Provisioning Servers?

May 20, 2010

trying to write a script for work for provisioning servers. It has a few questions and what not. What is the network IP and another is What is the block /29, /28 etc. If they provide the network and the block you can figure out the gateway, and usable IPs Is there a way to have /bin/sh configure the IPs with just that information? So if they provide 127.0.0.1/29 it will calculate 127.0.0.1 is the network 127.0.0.2 is the gateway and 127.0.0.3-127.0.0.7 are usable. However, it can't use the ipcfg-eth0-range0 method because Plesk doesn't like it.

View 4 Replies


ADVERTISEMENT

Red Hat :: EH5 - Provisioning For Patch Management

Aug 4, 2010

I'm at ES5. Anyone have a method for roll out or backing a single RPM or set of RPMs. In other words, I install the security errata (several packages) and it breaks something. I need to back it out, and restore the original. Also, anyone have experience using Red Hat provisioning for patch management?

View 3 Replies View Related

Ubuntu Servers :: Only Root Can Write To /tmp

Mar 2, 2010

8.04 64bit LTS no gui loaded Only the root user can write to /tmp. I tried to create a cron job for a user and received an error

Code:

crontab -e
no crontab file for ed - using an empty one
/tmp/crontab.SCQ30O: Permission denied
Creation of temporary crontab file failed - aborting

Then I tried a simple touch /tmp/test1 and it failed with a 'touch: cannot touch `/tmp/test1': Permission denied I tried the Windows fix and rebooted, no change. Only root can write to tmp. This may sound lame but... using ls /tmp show reversed video (highlighted blue on green) on the servers the the users have access to, just plain blue on the 'broke' one. I did a sudo chmod a+w /tmp but do not know if that was a smart thing to do or not...

View 2 Replies View Related

Fedora Servers :: Cannot Write Into Html Folder

May 9, 2009

I'm setting up my fedora 10 server. I am currently working on samba. I have added users and created their home directories with their own html directories. I have changed their html directories to 777. However, it appears to be read-only since I cannot create files or folders within it. Can anyone please give me some ideas as to what may be causing this? Probably some extra configurations I may have overlooked? Any help would be kindly appreciated. I also created a general wshare (writable share) directory for all users within home directory but I am encountering the same problem and cannot write to it.

View 8 Replies View Related

Fedora Servers :: Samba - No Write Permission

Jul 25, 2011

I just have installed Fedora 15 to use it for multimedia server. I have installed also samba. Now I'm trying to access it from another PC (Windows 7) and I have no write access.

Code:
[root@echo mnt]# ls -l
total 12
drwxr-xr-x. 2 root root 4096 Jan 1 2006 boot

[Code]....

i just read whole internet (i have spend over 6h for reading and testing a lot of options and nothing...)

View 9 Replies View Related

Ubuntu Servers :: Write Php Lang In Nano?

Jul 8, 2010

I have been install LAMP ok. ware i want to write php lang in nano , vi or vim. how to host the website

View 1 Replies View Related

Ubuntu Servers :: Cannot Write To Samba Shares From Mac?

Nov 5, 2010

This is (I suspect) a Mac OS issue but they've given no help (or replies!) on Mac forums so I'll ask here.I've just got a Mac and I can connect to shares on my Ubuntu (10.04) server, read files and create directories but I cannot write. I get this error:"The operation cannot be completed because you do not have sufficient privileges for some of the items."I can connect from the command line with smbclinet and write fine. I have tried several different users on both the Mac (cannot write) and Ubuntu clients (can write).Is this something to do with the ._filename files that finder creates? Or is there something wrong with the way I've set up my server? This is the first time I've used it with a Mac client.

View 9 Replies View Related

Debian :: Dconf Write Doesn't Work Correctly

Oct 1, 2015

i installed debian 8.2 with gnome 3 desktop environment when i run this command

Code: Select alldconf write /org/gnome/nautilus/preferences/default-sort-order type i got this error

Code: Select allerror: 0-4:unknown keyword

Usage:

  dconf write KEY VALUE

Write a new value to a key

Arguments:
  KEY         A key path (starting, but not ending with '/')
  VALUE       The value to write (in GVariant format)

what should i do ?

also when i use gsettings i get

Code: Select all(process:4333): dconf-WARNING **: failed to commit changes to dconf: The connection is closed

View 6 Replies View Related

Ubuntu :: Samba NTFS Write Permissions Only Some Work?

Jan 14, 2010

From a Win 7 client, I can copy/create/delete any files on any share on the Ubuntu Samba server so long that is part of my nix file system which is all ext4.This box also has and NTFS partition on it primarily for storage. I can copy/create/delete anything on this partition form the same Win 7 client with the exception of Quickbook save files.I have scoured the web looking for anything close to this but have yet to find anything that looks similar. Not lloking for a direct answer but if there is anyone else that has issues copying specific types of files to a Samba NTFS partition.

View 3 Replies View Related

Programming :: EBADF Using Write() In C?

Jun 24, 2010

I just started messing around in Linux programming, and I wanted to create a simple test program to open a file, read to it, and write to it. I can open and read it, but write always gives errno = EBADF. I've messed with file creation permissions and I can figure out why write() thinks it's a bad file descriptor but not read().Here is my code:

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

[code].....

View 1 Replies View Related

Programming :: Write A GUI For The Web To Gather?

Mar 10, 2011

I need to write a GUI for the web to gather the following info:

Username
Password
SomePlainText
Path1
PathN

Of course, I then need an 'submit' button. I then want to have the user upload all paths supplied from their machine to my server. I hope to work with this data as arguments for a bash script. Also, I need to work with all possible client OSes consistently. What language should be used?

View 3 Replies View Related

Programming :: How To Write / Use Function

May 30, 2010

Can you offer me the code about fmod() in C. I want to know how this function work, i am very interested in it because i have no idea to implement it, i want to know... how to write the function... not 'how to use the function' can anyone post the source codes of this function here?

View 6 Replies View Related

Programming :: How To Write Makefiles

Mar 31, 2009

I've been working at learning how to write makefiles and I'm a bit stuck.

I've got a fairly simple project that will eventually be a framework for TCP/IP Communications in evolutionary algorithms that I've been using Eclipse to develop.

For personal development I want to learn how to write makefiles by hand but have gotten kind of stuck

Here is the makefile as it stands now:

Code:

Port and Mailbox are a virtual class and a template class respectively.

I get these errors when I run make:

Code:

So for some reason every single function in the Connection class has been defined multiple times. I assume because it's included as a dependency for multiple targets, but I've seen this in numerous examples that apparently work.

Everything in libpthread is undefined because I'm not linking in the library. I've tried adding the library options to the LDFLAGS variable but that doesn't seem to work either.

View 3 Replies View Related

Programming :: Write An USB Driver On 2.6.x ?

Jul 16, 2010

I want to learn to write an USB driver on linux 2.6.x I tried to find some documents but i could not find documents for it . Most of it gave direct driver code as reference.

View 1 Replies View Related

Programming :: Write A Program (in C)?

Feb 26, 2010

I want to write a program (in C), which does 4 or 6 simultaneous calculation. Is there away of doing something like:

do at the same time{
Core 1 do:
this_thing_1

[code]....

View 3 Replies View Related

Programming :: Write A Gui App With Python2.6.4 And Wx On Win XP?

Feb 25, 2010

I am trying to write a gui app with python2.6.4 and wx on win XP. I am attempting to resize an image with Imagemagick from within the program using os.popen and os.system in a thread.

Code:
os.popen("mogrify -resize " + str(x) + "x" + str(y) + "!" + " images/static/" + my_ref + ".gif")
orCode:
os.system("mogrify -resize " + str(x) + "x" + str(y) + "!" + " images/static/" + my_ref + ".gif")
they both work as far as resizing the image but when os.system is used a command shell opens during the mogrify and when os.popen is used the command shell does not show but the rest of the program freezes until mogrify is done.

I would prefer that the program did not freeze during this process and the command shell did not show.I have tried using wx to scale the image but the scaled image looks crappy.anyway is there a way to use os.system and not have the shell show?

View 2 Replies View Related

Programming :: How To Write A Toy Shell

Mar 24, 2011

I'm trying to write a toy linux shell. For starters this is what I'm trying to do:

1. Start a new process with fork.

2. Execute a program in the new process with execl().

3. Redirect the output from the new process from STDOUT to another file descriptor, using dup2(2).

4. In the parent process, read the output from the child process and write it to the screen.

Creating a new process and executing a program in it is no problems, the problem is that I can't seem to capture the output from it in the parent process.

Code:

//digenv
//C++arl 2011-03-24
#include <stdio.h>
#include <sys/types.h>

[code]...

View 14 Replies View Related

Ubuntu Servers :: WRITE Performance Down On RAID 1 Array

Sep 7, 2010

I'm currently experiencing some serious issues with WRITE performance on a RAID-1 array. I'm running Ubuntu 10.04 64 bit server with the latest updates. To evaluate the performance ran the following test: [URL]... (great article btw!) Using dd to measure, write performance is only at 8.7 MB/s. Read is great though at 74.5 MB/s. The tests were ran straight after rebooting and I have not (YET!) done any kernel tuning or customization, running the default server package of the Ubuntu kernel. Here's the motherboard in the server: [URL]... with a beta bios to support drives over 300GB.

[code]...

As you can see from the bo column there is definitely something stalling. As per top output, the %wa (waiting for i/o) is always around %75 however as per above, writes are stalling. CPU is basically idle all the time. Hard drives are quite new and smartctl (smartmontools) does not detect any faults.

View 4 Replies View Related

Server :: Samba Config - Can't Get The Public Read-write Dir To Work

Aug 21, 2010

I would like to set up three directories-

1) RW public directory
2) R-public, RW-me
3) Private dir (my /home/me)

BTW, I set all file permissions (recursively) to 777 until I can get this to work...

1) So far I have got 1 samba share working Read only with the following: [Music]

[Code]...

Guests can read it okay but user 'JoeBleaux' can't write to it...

2) I can't get the public read-write dir to work, again, it can be read by everyone but no one can write to it. Here's my broken config for this share: [Uploads]

[Code]...

3) I can't get the private dir to work. Here's my broken config for this share: [HomeDir]

[Code]...

View 4 Replies View Related

Programming :: Write Apr4sens In Array

Jun 3, 2011

[code]...

I manage to write apr4sens into file,works fine.But how to write it into array,which I could later reshape and so on. I tryied like this
group=apr4sens. It doesn't work.

View 1 Replies View Related

Programming :: Write A .sh Script That Allows To Run Multiple Other

Jan 30, 2010

I'm trying to write a .sh script that allows me to run multiple other .sh scripts at once.

My problem occurs within a Variable:

I have set

S1 to S7 to be the name of the .sh

A="7"
B="S$A"
C="$S$A" <- and this is where my problem is

I want C to be the content of S7 till S1 but if I run this line it will of course look for the content of S and link it with the content of A.

How can I correct this?

Edit:

WHERE="/home/X/Y/"
SH=".sh";
A="7";
B="S$A";
C="$B";

[Code].....

View 6 Replies View Related

Programming :: Bash Write To End Of Each Line?

Nov 29, 2010

i have a text file like

abc abc abc abc
abc abc abc abc
--- --- --- ---

i want to add a string xyz to end of each line..

abc abc abc abc xyz
abc abc abc abc xyz
abc abc abc abc xyz
--- --- --- --- xyz
--- --- --- --- xyz

how do i do this in bash?

View 13 Replies View Related

Programming :: Write A CMakeList.txt For A Project?

Apr 6, 2009

I am trying to write a CMakeList.txt for a project (A). The project needs to use the library of another project (B). For gcc, using -L <path> -ldl works. How can I convert that into cmake file? I tried include_directories, that doesn't seem to work

View 3 Replies View Related

Programming :: How To Write Small Project With C++

Dec 29, 2010

I am trying to write my first small project with C++ - implement stl list like collection class. This is what i have a the moment:

Code:

#ifndef GUARD_link_list_h
#define GUARD_link_list_h
template <class T>
struct Node {

[code]....

View 1 Replies View Related

Programming :: Write A Script For Ftp To Get .mp3 Files?

Mar 29, 2009

I want to know how to write a script that would use the standard Linux FTP command to download all the mp3 files from a FTP server cause GET *.mp3 doesn't work. Also how would I write the same script but as a batch file to be run in windows cmd through the windows native FTP command?

View 4 Replies View Related

Programming :: Write Code To Video From The Net?

Jan 7, 2010

I have source code that plays video stream, and can open a remote video file if provided with a URL. But I have a problem getting video from ...... the URLs I get look like:

[URL]

and my code expects something like [URL] I need to modify the code, such that it will find the actual file.

View 1 Replies View Related

Programming :: Write USB Device Driver?

Oct 11, 2010

I know, I know..."How long is a piece of string"?

I have one of these devices:

[URL]

Of course, it's Windows only, and XP only at that. However, the data that needs transferred between the device and the computer should be fairly basic, unless it offloads a lot of processing to the computer. I'm not a programmer, nor do I play one on TV, but I have written some fairly complicated microcontroller programs and some basic Java GUIs. Besides writing the actual code, how hard is it to do whatever needs done to make a Linux device driver, apart from the code to make the device work?

View 2 Replies View Related

Programming :: Write A Shopping Cart In PHP?

Jan 16, 2010

I'm learning PHP and I was curious about this. I've learnt about cookies and sessions, and I'd like to know - which one do you use for a shopping cart? What's the actual mechanism behind it? As the user builds up a cart full of stuff, is the data for that maintained on the server-side in a MySQL database or something?

View 4 Replies View Related

Programming :: Write Animation Programs In Using C Or C++?

Feb 16, 2011

wants to do miniproject as part of the academic curriculum using Computer graphics on Linux using C or C++. Can any one direct me to a direction how i can proceed. I know basics of C and C++

View 9 Replies View Related

Programming :: How To Write Own Shell In Unix

Sep 16, 2010

I wish to create my own shell for my operating systems project in college...

My professor has asked me to make sure that my shell can execute at least 30 or 40 commands... I have around a month's time

I have seen endless source codes in the net, I'm not able to understand any of it

How do i get about doing it?

View 2 Replies View Related







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