General :: Mention List Of Services In The Same File And Still Make The Script Work?

Jan 26, 2010

I have a script from which i want to disable unwanted services. I wanted to have the list of unwanted services in the same script file. I tried the following, but it is not working...How do I mention list of services in the same file and still make the script work ?

Code:
#/bin/bash
#List of services, modify list between SERVICES tag
service_list=$(cat <<SERVICES
acpid
apmd
avahi-daemon

[Code]...

View 1 Replies


ADVERTISEMENT

General :: Command That Will List All Running Services?

Apr 2, 2011

i know that there is already a command for it but it comes out with a lot of letters that makes it hard to find the services that are runningi'm talking about services like DNS, APACHE, DHCP, SAMBA, SSH etcis there a command that will list these services and related services that are running instead of showing a bunch of jumbled and lettered mess thats hard to comprehend

View 6 Replies View Related

OpenSUSE Install :: "System Services (Runlevel)" Deos Not List Any Services On 11.3?

Oct 21, 2010

I can see this phenomenon on 2 different systems running 11.3 .In simple mode and also in expert mode.

View 9 Replies View Related

General :: List Running Services On Remote Unix Box?

Jan 24, 2011

Is there any unix command to list services running on remote unix box.

View 6 Replies View Related

Programming :: Get A List Of File Install Locations With Make It?

Dec 21, 2010

I have a bit of a problem and the only solution I can think of at the moment is a very tedious one, so I was hoping there would be a better way. What I am trying to do is cross compile the PPPD program so that I can install it on an embedded system (this system does not have make/gcc on it). It was easy to cross compile it, but I can not run "make install" since I'm compiling on a secondary machine. I don't want to install PPPD on this secondary machine (I couldn't anyway, because it was compiled for a different architecture) and I can't run make install on the target machine because there is no make/build system for it.

So it seems like what I would have to do is to manually copy over each compiled file from the build machine to the appropriate location of the target machine. And the only way (that I know of) to figure out how to do this is to manually examine the Makefiles (yes, there are several for PPPD) and figure out which file should go where on the target system. This isn't trivial because it uses a hierarchy of makefiles and the probability of human error for this method is high.

Is it possible that I could run another command that would give me a list of all the commands that make install would perform? Or a list of all files and their target location for "make install"? Or possibly some other solution that I am completely unaware of that would make this task not so painful and error prone?

View 8 Replies View Related

Fedora :: Systemctl List All Services?

Aug 24, 2011

I'm trying to find the systemctl equivalent of "chkconfig --list".$ systemctl -t service -alooks like the command, but it does not return any line about the ntp service. It does exist because I get this:

$ systemctl status ntpd.service
ntpd.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntpd.service)

[code]...

View 9 Replies View Related

Ubuntu :: List Of Services On Boot?

Jul 23, 2011

I spent a few minutes googling this, but I am not even sure what to search for. I suspect I'm looking at part of upstart, but it could also be sysvinit, plymouth or something else entirely. Every time I reboot, just between plymouth's splash screen and gdm loading, I am shown a list of services starting. The list shows the names of the services and [OK] if they started sucessfully or [fail] if they did not (only apport ever fails and only occasionally). I don't need or want to see this list. It also interrupts the transition from Grub to GDM (the background color should be the same shade of purple from grub all they way to the desktop, but this list is presented as ordinary terminal output: white text on black background)

View 4 Replies View Related

General :: Services Work Nicely With Connection Tracking - Port Range For Centos?

Dec 18, 2010

On my CentOS 5.4 box I run dns, ssh, and smtp servers. This box also has to be able to resolve and browse websites. So basically it needs iptable rules for

TCP 22 25 80 443
UDP 53

My question is, which of these services work nicely with connection tracking? I'm a little confused about how connection tracking works. For example say this iptables rule for smtp

Code:
iptables -A INPUT -s 0/0 --sport 513:65535 -d $myip --dport 25 -j ACCEPT
versus

Code:
iptables -A INPUT -s 0/0 --sport 513:65535 -d $myip --dport 25 -m state --state NEW,ESTABLISHED -j ACCEPT
So with connection tracking what exactly does it do that my first iptables rule does not do?

Also for centos is that port range correct? 2.6 Linux kernel randomly chooses a port 513-65535 when it connects to an external smtp server or say browses a site.

View 10 Replies View Related

Ubuntu Servers :: List Of Services Converted To Upstart In 10.04?

Apr 30, 2010

Where can I find a list of services converted to upstart in Ubuntu 10.04? What is the syntax for stopping, starting and restarting these services?

View 6 Replies View Related

General :: Make And Sh Commands - Make A File Called File Roller For Ubuntu 9.10

Apr 6, 2010

I want to make a file called file roller for Ubuntu 9.10. The folder has a file called install.sh and some others that are make.

I figure first I need to make a file and then run install.sh to install. But I don't know how to do this.

View 2 Replies View Related

General :: Remove Services From Nsswitch File?

Oct 11, 2010

According to security manual only DNS, files, or LDAP should be allowed in nsswitch file however it seems like i have many other services configured in nsswitch files.

below are the content from nsswitch file. What services can be removed considering the system stability.

Code:
passwd: files
shadow: files
group: files
hosts: files dns

[Code].....

View 5 Replies View Related

General :: How Can Vsftpd Services & Xinetd.d Services Can Be Differentiated

Sep 13, 2010

How can Vsftpd services & Xinetd.d services can be differentiated?

View 5 Replies View Related

General :: Make A List Of Directories And Files?

Jun 3, 2011

My system is centos 5.5, and I need nobody:nobody's directories and files under data.

There is a directory named "data, and this directory has so many directories and files generated by web program. Most of them is nobody:nobody.

I want to to make a list of these nobody:nobody directories ans files.

Is it possible to make a list of these directories and files?

View 1 Replies View Related

Ubuntu :: File Completion Not Working - How To Make It Work

Nov 27, 2010

I am slowly rebuilding my network after a HDD crash that took out my primary development box. I installed Lucid Lynx and have things (mostly) working. The issue I am having has to do with file completion and history. I could set filec in my .cshrc file and it would work as it usually does (hit <TAB? key after typing in a couple of letters of a file name and BOOM the file auto-completes). For some reason, when I do the same thing, I get a literal TAB entered on the line. Also, if I attmept to utilize history (either the up-arrow from the keyboard I see ^[ instead of the last executed command(s).

View 2 Replies View Related

General :: Pvdisplay Shows Sdb2 And Df -h Has No Mention Of Sdb2

Sep 30, 2010

Why pvdisplay shows sdb2, and df -h has no mention of sdb2.

[root@localhost ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sdb2
VG Name VolGroup00
PV Size 465.57 GB / not usable 5.43 MB

[Code]....

View 3 Replies View Related

Ubuntu Installation :: Downloaded Conky But Cant Make It Work - Create The Rc File ?

Apr 8, 2011

I have downloaded conky but cant make it work. I have so far installed from terminal. But I do not see it in my desktop. Where do I create the rc file?

View 1 Replies View Related

Fedora Installation :: FC12 4 Monitor Video - Edit The Config File And Make To Other Two Work

Feb 9, 2010

I recently upgraded from fc8. I am running two nvidia NVS 285 cards with four monitors and using nvidia driver 190.53-pkg1. I have one card up and running and can edit the config file and make to other two work I just can't get all four to work together.

View 3 Replies View Related

Networking :: What Protocol To Mention Rtmp In IPTABLES

Oct 22, 2010

I am not clear if I should use tcp or udp for rtmp in IPTABLES. I am having a streaming server where I have this problem.

View 1 Replies View Related

Ubuntu :: How To Change Splash Image / Don't Mention Anything About Enabling It

Nov 18, 2010

I have installed backtrack4 on my laptop with windows7, and installed grub2.I am having a problem on showing a splash screen.I don't have a splash screen that shows neither on grub2 nor grub legacy.I have searched too many tutorials, but I don't know what's the problem, because all of them shows how to change the splash image, but don't mention anything about enabling it.Note that the live cd loads an image.So I don't think it's my vga or something.

View 3 Replies View Related

Ubuntu :: Make With Make File Yields Error - /usr/bin/javac: Cannot Execute Binary File

Nov 17, 2010

When I try to compile some Java code on Ubuntu 10.10 (kernel 2.6+) using make and a Makefile.

I get an error indicating that the make utility cannot execute the java compile command (javac).

The error reads: /bin/bash: line 6: .: /usr/local/jdk1.5.0_18/bin/javac: cannot execute binary file

I am executing make as root. I have enabled permissions on all directories in the path /usr/local/jdk1.5.0_18/bin/javac and on javac itself.

I get this error whether using a jdk installed via ubuntu apt-get, or whether I install the jdk myself. And I get it using either Java 1.5 or 1.6

My machine has an 80386 processor. I notice the make utility is built for i686-pc-linux-gnu

However, I can manually compile using javac.

I can compile calling javac from within a bash script.

I can compile using the java compiler gcj from the command line: gcj --main=HelloWorld HelloWorld.java -o HelloWorld.exe

But I cannot compile java code from the makefile. Any reasons why I might be getting this error?

View 4 Replies View Related

General :: List Of Directories In A File?

Apr 3, 2011

I have generated a list of directories that I would like to use ls and grep on, but it is not working. I am using the commandCode:cat directories.dat | xargs lsand I get a whole lot of these errors:Code:ls: cannot access ./foo/bar/baz/grault/*: No such file or directorybut when I try the directories manually one at a time I find that they all exist and all have files in them. Same thing if I try to grep anything. What is going wrong?

View 6 Replies View Related

Ubuntu Multimedia :: Not To Mention Tons Of Bugfixes Since 2.2.0, Which Was Released Almost 3 Years Ago

Mar 4, 2010

I'd like to announce the release of cmus 2.3.0 here. cmus 2.3.0 features gapless MP3 playback, native PulseAudio output plugin (which cures all the problems with PA ALSA emulation present in 2.2.0), very fast metadata cache and much improved compilations handling.

Not to mention tons of bugfixes since 2.2.0, which was released almost 3 years ago.[URL]..

View 1 Replies View Related

General :: 6.13 GMP-5.0.0 LFS Make Error - Cannot Open Shared Object File: No Such File Or Directory

Jun 10, 2010

I'm currently stuck at 6.13 GMP-5.0.0 of the LFS installation. After running make, I receive the following:

error while loading shared libraries: libbfd-2.20.so: cannot open shared object file: No such file or directory
make[2]: *** [libmpn.la] Error 127
make[2]: Leaving directory `/sources/gmp-5.0.0/mpn'

[code]....

View 5 Replies View Related

General :: Extracting Latest Tar File From The List?

Jan 25, 2010

I have a bunch of tar files in a folder with the name in 'file_name.MMDDYYYY.HH.mm.SS.tar' format. I need to write a shell script that picks latest and greatest of the above tar files and extracts it to a particular folder

View 1 Replies View Related

General :: Samba File List Ordering?

Aug 20, 2009

I've published a samba share on a Ubuntu 8.10 server, and mounted the share on a windows box. For some strange reason the files are not sorted by file name (nor by any other sorting type) if I list them from the Windows command line (dir). I could always use the "dir /on" parameter, but I hope there's a way to make samba sort the files for me

View 4 Replies View Related

General :: Create Directories From A File List?

Jun 30, 2011

I am trying to write a script to pick the directory name from a list of file. Here is a detailed picture.Have a file name LIST which contains the follwing for example/apps/oracle/product/test1/apps/oracle/product/test2/apps/oracle/product/test3I need a script that reads these line from LIST and creates foldersin /apps/oracle/product/test1/backup/date/test1 after reading the first line
/backup/date/test2 after readin the second line/backup/date/test3 and so on.

View 15 Replies View Related

General :: Squid Uploaded File List?

Aug 10, 2010

I am using endian firewall 2.4 and squid 2.6, everything is working fine for me. In squid report i am getting download list by user or IP based. Now my question is, is this possible to get user based uploaded file using HTTP POST. Is there any configuration have to be done is squid.conf, if answer is yes then please give me the what is configuration i have to give. Example: if suppose user uploading a image file into facebook.com, i want to track the file name and which IP address and then where its uploaded.

View 1 Replies View Related

General :: Make Arithmetic Operation Of Data File With Script File?

Aug 31, 2010

I wonder how to arithmetic operation of our data file using any script program/command (like sed, cut,awk)for example my data.file is:

45 65 42
12 23 61
43 34 21

I want to multiply first column with 2 and add second column with 3 then it become

90 68 42
24 26 61
86 37 21

View 5 Replies View Related

General :: Configure File Successfully But Make File Displayed Some Errors?

Jun 29, 2010

i am having a problem concern zlib installation.i tried configure file successfully but make file displayed some errors.that usr/linux/limits.h not found.so i found that i have to install glibc-headers-devel...but there is no such a kind of package in ubuntu repository?/????/some people saying that libc6-devel is equal to them!

View 1 Replies View Related

OpenSUSE :: Dolphin Services - Get Mount / Umount Option Under Right Click Services Menu

Dec 7, 2010

So I want to get mount/umount option under right click services menu. I went to Dolphin -> Settings -> Configure Dolphin -> Services -> Download New Services and from there I installed KDE CDEmu Emulator and MountISO. But neither of them is showing up in actual context menu. Neither in Dolphin -> Settings -> Configure Dolphin -> Services for that matter. I tried to install them as normal user and as a root. I went to have a peak in /usr/share/kde4/services/ServiceMenus/ but they aren't there as well... It's just me or lots of things seems to be not quite working in 11.3?

View 9 Replies View Related







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