Ubuntu :: Create A Link To A System Service?
Jan 20, 2011I want to create a link to start apache2 service:
Code:
sudo /etc/init.d/apache2 start
I tried creating a launcher but it did not work at all
I want to create a link to start apache2 service:
Code:
sudo /etc/init.d/apache2 start
I tried creating a launcher but it did not work at all
how can we create soft link and hard link in RHEL5 when am using in command it is giving format error
View 6 Replies View RelatedI installed 10.10 using wubi (Host system is Win XP). I want to create a symbolic link of a file on the host system (Windows c:abc.doc file) in my Ubuntu home ~/ directory.
When I type command ln /host/abc.doc abc.doc It gives me following error ln: creating hard link `abc.doc' => `/host/abc.doc': Invalid cross-device link
i want to start /usr/bin/brscan-key at startup. since i find it handy to push on the scan button , and the scanner is saving the scanned image to my pc.
can i add /usr/bin/brscan-key at /etc/rc.local on a safe way?
I installed privoxy to use with tor however, it seems privoxy didnt create a pid file.I tried creating one many times with no avail. Ive reinstalled many times and still have yet to get privoxy to run.When I try to start the service I get told:$ sudo service privoxy restartNo /var/run/privoxy.pid file found, exiting.Starting Privoxy, Failed.
View 2 Replies View RelatedI have installed Windows 2003 Server, on that i have installed VMware and in VMware i have installed Ubuntu.Now my requirement is i want to run a Windows Application shortcut from Ubuntu, for that i have installed wine on Ubuntu.Now i have copied and pasted the Shortcut of that Windows Application on Ubuntu's Desktop. When i check the Windows Application shortcut properties its path will be something like this \192.168.1.15ApplicationApplication.exe, but i am unable to run that Application shortcut in Ubuntu.
If i try samething on the other windows system on network it works fine. Actually its a thin client server architecture where i want my thin client to use ubuntu and access the windows application shortcut and run the windows application shortcut on ubuntu. To be more clear my windows 2003 server runs a windows application which has MSSQL as database. Now on my ubuntu system the login page is able to popup but when i give username and password it gives something like server not found,how do i need to approach this issue.
I installed debian 8.1, network install on a ThinkPad T60. When I right click the Desktop, I don't get "Create New -> link to application" and other links. In mint 17.1, I get a Menu with all links. I want to create a link to seamonkey with an icon on desktop.
View 3 Replies View RelatedThere are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
View 2 Replies View RelatedI need to create this link between the two directories shown below.... So I assume everything that is put into the outgoing directory is copied to
# pwd
/home/e-smith/files/users/admin/home
ls -l
lrwxrwxrwx 1 root root 29 Jun 25 2008 outgoing -> /var/spool/asterisk/outgoing/
I created a link for a library my application needs in /usr/lib/ and then run ldconfig.
The link gets deleted. Should I be creating the link in any other way?
i am a oracle DBAI want to crete a link for a directory in production serverto remote host.
View 6 Replies View RelatedThere are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
View 8 Replies View RelatedI want to be able to create a service so that the bash script will run every time the server boots up.
I am running CentOS 5.
I have been reading about chkconfig and creating a file in /etc/init.d for chkconfig to handle but I cannot seem to get it to work whenever I 'chkconfig servicename on' and then 'service servicename start'
When I do chkconfig --list my service is listed there.
Can someone provide me with a sample of the file I need to create in /etc/init.d and how to get everything running?
I am running both Ubuntu and XP and have a local server for my computer on both systems. Both partitions have a www directory that is accessed when I type localhost into my browser.
I want to be able to work on the project in both systems and have the changes I make show in both. So my questions is how can I make "localhost" point to the windows www instead of the /var/www one when I start up the server?
I have read that it is best to have a volume LVM set up to contain the BackupPC data that it generates when backing a machine(s) up. By default BackupPC stores the back up data in /var/lib/BackupPC and there is information on how to create a link to the new location and what to mount on the new dedicated LVM What I do not know is how to create a new LVM for the BackupPC files/data on the machine I have. Currently I have a machine running fedora 15 64 bit. It has BackupPC installed via yum but I have not run it as yet. I believe that I have the necessary dependencies installed The machine has two hard drives, one a 80 GB and the other a 500 GB. Currently Gparted is showing;
/dev/sdb1 ext4 /Boot 500MiB
/dev/sdb2 Lvm2 74.04 GiB (in properties it says it is not mounted)
/dev/sdb1 Lvm2 465.76 GiB (in properties it says it is not mounted)
When the machine was loaded with Fedora it was set up as 1 partition and was just a standard out of the box Fedora install accepting the defaults. how do i go about setting up a LVM that I can expand later if necessary to hold the BackupPC data? I saw in one post some where that person call the group Main. how to" or provide a set by set guide as to how to achieve this. Or provide advise o the best way to set the machine up. I do not intend to run anything else on the machine. It is there to back up a server (Fedora 14), A general use machine machine (Fedora 15) and a windows machine (XP).
Create the following directories: parent/child
Navigate to child and create a file named child (this is an executable file in my case, not sure if that makes a difference). I need to create two "link to executable" links in the parent.
I had assumed that this would work:
ln -sf ./child ../child1
ln -sf ./child ../child2
But that creates a "link to folder" (./child) in the parent directory. If I change it to:
ln -sf -t.. ./child child1
ln -sf -t.. ./child child2
I get an error, "ln: '../child': cannot overwrite directory".
If I do it from the parent directory (which I cannot do, this is part of a Makefile recipe):
ln -sf ./child/child ./child1
ln -sf ./child/child ./child2
It works. Note that I cannot alter the names of any directories or files. How do I create the links when the current directory is the child?
I have a large collection of files on a computer (tallgrass) and tallgrass is running an ftp server, which I have the username and password to. There is about 600 GB of files on tallgrass that I need access to, but I don't have a big enough hard drive. I need these data files to run a cpu-intensive calculation, and my CPU is significantly better than tallgrass' cpu, which is why I want to do it on my computer. (Tallgrass also doesn't have enough RAM.) What I would like to do is create a "symbolic link" on my hard drive that will point to the directory containing the data on tallgrass. Read-only is perfectly OK. This way I could read from mylink/data0001.dat and it would read from the file data0001.dat over ftp from tallgrass. I shouldn't have any speed issues because tallgrass is on my 1 Gbps LAN. Is there a way I can do this?
View 2 Replies View RelatedI wrote a program to create a link list
Code:
#include <stdio.h>
#include <stdlib.h>
struct node {
[Code].....
Is it possible to create a symbolic link that include commands for the program?
For instance, I do the following to start the program:
./script -somecommannd
I would like to create a symbolic like that includes "-somecommand"
Is this possible? or would I need to create a second script that executes that command, and link to that script?
Ok now since f15 does not use inittab file for default runlevel anymore how do you change it.
I have tried ln -s /lib/systemd/system/multi user.target /etc/systemd/system/default.target
And get the following error ln: failed to create symbolic link `/etc/systemd/system/default.target': File exists
I have even tried changing the /etc/systemd/system/default.target to my multi-user.target file to no aval.
My Ubuntu 9.10 Server does not automatically get an ip address at start up and I have to run
Code:
sudo dhclient
every time so I it connects to the network, gets an ip etc. This is fine so long as I am physically present. If I am accessing it remotely using SSH and reboot the system there's no way I can connect back again untill someone runs a sudo dhclient on the machine.
No I am trying to add dhclient to startup automatically. I was hoping to put it in
/etc/rc2.d but to be able to run the script must be present in /etc/init.d. The dhclient command is located in /sbin
Creating a sym link in etc/init.d to point to /sbin/dhclient hasn't worked for me so far. I can't copy the command to /etc/init.d before running
Code:
update-rc.d dhclient default?? How else do I have it run at system start?
I am new to linux, but need to do the following:
1.) Use a basic ubuntu 9.04 distro
2.) On boot run an existing .sh script
I would like to make a thumbdrive with a live cd version that will auto run to desktop and execute the .sh script. I am looking for pointers on accomplishing this. I have found ways to get the live cd to run on USB, but it still involves clicking the "run without changing your system link" and I cannot figure out how to run the script on start up.
I'm working with a program that uses Open Motif to create all of the widgets, including the Open File dialog box (obviously). However, Open Motif being kinda old-timey, 80's vintage, and for the most part now an abandoned project, it is quite clunky. So, actually what I need to do is to open some files located on my work server. I have already successfully connected to the relevant server directories with Samba, and with programs built with GTK+ (such as GIMP) I can open files across the network because I have created a bookmark in Nautilus, and those bookmarks appear in the Open File dialog box created by GTK+. Now, Open Motif is different: it doesn't see network locations, orNautilus shortcuts. When I type "smb://serveripyadayada" in the search folder, it really doesn't like it and complains. So, what do I do? Can I get somehow Open Motif to open a network location? Or can I do a run-around and place a shortcut in the file system that points to the network location?
View 2 Replies View RelatedI've recently installed Ubuntu 9.10 Karmic as a dual boot with WinXP and love it. I've been able to mount my WinXP partition and can access files read/write successfully.
I'd like my WinXP "My Documents" folder to appear as a linked folder in my Linux Home directory.
I think I should be able to use the ln command, but I can't figure it out.
I've tried to create a link that will appear like a "folder" called WinDocs in my Home directory with this command, run from my Home folder:
ln -t /dev/sda1/Documents and Settings/richard/My Documents/ /WinDocs/
but it reports
ln: accessing `/dev/sda1/Documents and Settings/richard/My Documents/': Not a directory
I get the same results if I try /dev/hda1 etc.
I can see the contents of the folder currently in my Places listing. Its shortcut is active on my desktop.
i am root i have an ext4 partition of a usb drive mounted at /mnt/sdc1 i have fat32 partition of the same drive mounted at /mnt/sdc3
i want to copy the folder /mnt/sdc1/mnt/dir to /mnt/sdc3 i navigate to /mnt/sdc3
i type this in terminal cp -r /mnt/sdc1/mnt/dir .
I get a lot of this cp: cannot create symbolic link
How do i copy something from an ext4 partition to a fat32 partition?
Can anybody tell me how to get hold of a Linux Driver for the D-Link DWA-110 USB 2.0 wireless adapter?
View 2 Replies View RelatedCan anyone tell me how can i remove a bad link in linux
i have created one link to a file now i shifted that file to some other location .Now i have to delete that delete the previous link ie bad link
I'm an internet marketer using Ubuntu. I ran into a problem when I was trying to cloak a website link using instructions for a Windows system. It has to do with changing a .txt document to a .php document and uploading it to a site.
View 4 Replies View Related(i)for what /usr/bin uses and for what /bin uses. i assume the answer for /usr/lib and /lib will be the same..
(ii) does anyone havea good link for ubuntu's file system reference?
I just installed Tomcat 7.0 on openSuse 11.3 by mean:
Code:
tar -zxvf apache-tomcat-7.0.6.tar.gz
And I can to start it manually. But I need to start it automatically as "system service" in some runlevels.
install Tomcat 7.0 as system service?