General :: Runlevel Scripts And Creating Links?
Dec 16, 2010
I have learned without a doubt what runlevels are...the questions I have are related to the init scripts and how to create a link to an init script. I see that there was a post where someone was trying to get people to do homework for them...I assure you I want to understand what I am trying to learn. That said, here are my hang ups:
1. The script that contains the default runlevel to my understanding is /etc/rc.d/init.d, though I've also found /etc/inittab on the web as the default. My book isn't too clear on this as it doesn't state it exactly, so which is it for sure?
2. My assignment asks what I'd name a link to an init script that would start a fictitious BIGD daemon early on in the boot process. My answer: /etc/rc.5.bigd.d --I don't think that this is the right answer though because in the book, it states that the /etc/rc.d/rcN.d contains names of scripts whose names begin with K and S. My understading in that this starts and kills each script depending on how it's entered.
View 5 Replies
ADVERTISEMENT
Aug 24, 2009
CentOS 5.2 64bit 2.6.18-92.el5xen. Use rsync with --link-dest for nightly backups, works well. Was recently asked to start weekly backups to an external drive for off-site storage. The regular syncing works but hard linking seems to be ignored. So the backup is long with no space saving advantage. Here is an example of the command being run:
rsync --stats -axzvl --numeric-ids --delete --link-dest=/mnt/DISASTERBACKUPS/austinBackups/backups/2009-08-21 /AUSTINBACKUPS/backups/2009-08-24 /mnt/DISASTERBACKUPS/austinBackups/backups/
View 4 Replies
View Related
Sep 4, 2010
runlevels 2 -5 are identical in Ubuntu. /etc/init/rc-sysinit.conf is used instead of /etc/inittab for changing the runlevel. But there's no point doing that since the runlevels are identical. The default runlevel is 2, so I tried to find some service I could disable in /etc/rc2.d. I didn't find anything I could work with.
View 4 Replies
View Related
Jun 6, 2011
how to quickly create Launcher Links that will edit the Applications or Activities panels in Gnome3. I installed Tweak Tool, but it only adds to the desktop which seems a little tacky. I read where you can edit the desktop file to create new ones, but I want to add Application Links to the Application Panel, and then possibly drop and drag to the Activities Sidebar.
I might be overlooking something in Tweak Tool, so will play with that some more, I don't mind editing a file to include, but would rather use GUI.
View 2 Replies
View Related
Mar 6, 2009
I'm using FC10 and I want to create a symlink to my movies directory in my home folder:
This is what I did:
I created in
/var/www/html
ln -s /home/username/movies movies
Then in /etc/httpd/conf/httpd.conf
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/username/movies">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Restart apache and then the test page is working.
The directory /home/username/movies has following permissions:
drwxrwxrwx 2 apache apache 4096 2009-03-05 23:43 movies
When trying to access my webpage at localhost/movies I get the 403 Forbidden Error.
Ok then, entering:
sudo -u apache ls /var/www/html
> movies
This works, sudo -u /var/www/html/movies returns the permission denied error.
As well sudo -u /home/username/movies
Is the user apache chrooted by default? SELinux is in permissive mode. What can I do?
View 4 Replies
View Related
Dec 6, 2010
At my Uni, we use a web-based login for our internet connections. Its based off of Cisco, and every Wednesday night every computer on campus must re-enter their credentials to use the network.
Normally on my several computers I simply pull up the Terminal, point links to google.com using
Code:
And enter my credentials when Cisco redirects to the login page.
Literally, the process is
Code:
Then ENTER to accept the redirect, down arrow to skip over the logo image, USERNAME, ENTER, PASSWORD, ENTER, ENTER.
Naturally, this is EXTREMELY time consuming, as I have about 5 computers located around campus and must physically walk to the machines and login every single week.
My question is, How would I formulate a program that does the following;
1) checks for connectivity (i.e. is able to reach/resolve to the greater part of the internet) and
2) automatically fills in the credentials on the links login page?
View 2 Replies
View Related
Feb 3, 2009
I have a personal wiki of notes, with now thousands of links in markdown format:
[link text](http://example.com)
but now that fckeditor is available for mediawiki (very beta), it has become much better to just stick with wikitext format. There are only a few conversions to do: tables, links, and bulleted lists. The lists are a fairly simple regex and fckeditor magically reformats the tables, so all I'm left with is the links. But I'm not a regex master. How do I reformat code...
View 12 Replies
View Related
Aug 6, 2010
I'm trying to init 3 .. but I can't change te runlevel...I was reading about upstart.. But I can't understand.. :-(ubuntu upstartWhy they don't want to use /etc/inittab..it is so easy...Always I have problems because someone change the way of do things in linux...
View 6 Replies
View Related
Jul 5, 2011
I am using suse 10.3 and my machine is giving this error.
inittab file is ok
no partition is 100% used.
reinstall sysvinit package
View 3 Replies
View Related
May 6, 2011
my Sabayon desktop won't boot into runlevel 5 anymore:
Code:
ERROR: avahi-daemon failed to start
Also can't start avahi manually, verbose mode gives no extra information, debug says: (...)
Code:
* Starting avahi-daemon ...
+ /usr/sbin/avahi-daemon -D
+ eend 1
+ exit 1
* ERROR: avahi-daemon failed to start
(sic)
I suspect this to be related to the hplip drivers I installed before the last reboot, all I did was select the package in sulfur, and as it worked right out of the box, I changed nothing else.
View 6 Replies
View Related
May 10, 2011
How do I recover from accidentally set the runlevel to 0?
View 5 Replies
View Related
Feb 7, 2011
I have downloaded voyage linux 6.5 based on lenny. One of the last things it says is mounting filesystem as read only. then asks me to do login. how to stop this action and eave the file system as Read/Write.
View 1 Replies
View Related
Feb 20, 2011
I can see some soft links in /etc directory which are pointing to /etc/rc.d Directory contents.
Code:
lrwxrwxrwx. 1 root root 7 Jan 31 08:19 rc -> rc.d/rc
lrwxrwxrwx. 1 root root 10 Jan 31 08:19 rc0.d -> rc.d/rc0.d
lrwxrwxrwx. 1 root root 10 Jan 31 08:19 rc1.d -> rc.d/rc1.d
code....
Any body please tell me what is the purpose of these soft links in /etc directory ? I am using RHEL 5.4 ...
View 3 Replies
View Related
Jan 14, 2011
why scp command not copy links from local copmuter to other ( how to copy the links)as scp -rp dir linux:/dir_targetremark in dir I have files and links
View 1 Replies
View Related
Feb 23, 2010
I'm using Links on a Ubuntu server, and to view images I'm using Asciiview, which works well, but the association is not retained whenever I close links. How can I retain this association?
View 1 Replies
View Related
May 7, 2010
I have directory that contains some symbolic links:
user@host:include$ find .. -type l -ls
4737414 0 lrwxrwxrwx 1 user group 13 Dec 9 13:47 ../k0607-lsi6/camac -> ../../include
4737415 0 lrwxrwxrwx 1 user group 14 Dec 9 13:49 ../k0607-lsi6/linux -> ../../../linux
[code]....
View 5 Replies
View Related
Jul 26, 2010
I work in a lab when all the guys use PCs with Windows and access the lab linux servers via ssh.
I prefer linux, so I have a local installation of ubuntu 10.4 on my PC. I mount the home of our lab server using mount server:/home /mnt/home/. I can then access the files on the server (I had to change my local UID to match the one assigned to me on our server in order to be able to write to my home dir).
The problem is all the (symbolic) links I have on the server don't work when I access them through the mounted location. I guess the system simply tries following the link in my local /home instead on server:/home.
View 1 Replies
View Related
Mar 2, 2011
Just wondering what the command is to archive data plus symbolic links in tar. We need to be able to recreate symbolic links as the file is laid back to original location(s).
View 2 Replies
View Related
May 26, 2011
I am, as the forum title suggests, new to linux and to programming and having trouble figuring out how to do this.I have a very large XML file with a lot of information in it. I'm trying to get a single tag out of the file, each of these tags contains a single web link and I want to download the file at every single one of those links. I really don't know how to do this.My thought, though its probably not the most efficient or correct way, was to use VIM to search the document and somehow extract all of this one particular tag and then use wget on the links.
View 3 Replies
View Related
Nov 23, 2010
I read and saw a video that says that typing in 'links' command followed by a website, will open a site in terminal.
However, when I type in the links command, terminal returns the error 'bash: links: command not found'.
What package or library needs to be installed to get this command to work.
View 2 Replies
View Related
Jul 26, 2010
I have a local installation of ubuntu 10.4 on my PC. I mount the home of our lab server using mount server:/home /mnt/home/. I can then access the files on the server (I had to change my local UID to match the one assigned to me on our server in order to be able to write to my home dir). The problem is all the (symbolic) links I have on the server don't work when I access them through the mounted location. I guess the system simply tries following the link in my local /home instead on server:/home. Is there a way to make the links work?
View 5 Replies
View Related
Dec 21, 2010
i have to write a shell script that takes name of the file as command line argument and the script should use path envt variable to look for the specified file and specify where are the different instance of the filename specified exist
firstly enter the filename echo "enter the filename" read filename by using ls command we can get to know how many links are there for that file but i don't know how to get the pathname of the file and its links after knowing the pathnames of the file i can set the path variable using export command can any one tell me how to get the pathname of the file i entered as a command line argument
View 14 Replies
View Related
Feb 24, 2011
what exactly does the following symbolic link mean?"target ->/path/to/./usr/bin/example"I am a bit confused on the "." portion of it.
View 1 Replies
View Related
Jun 29, 2010
I'm trying to download two sites for inclusion on a CD:URL...The problem I'm having is that these are both wikis. So when downloading with e.g.:wget -r -k -np -nv -R jpg,jpeg, gif,png, tif URL..Does somebody know a way to get around this?
View 2 Replies
View Related
Jun 28, 2011
Is there an easy way to replace all symbolic links with the file they link to?
View 4 Replies
View Related
Mar 27, 2011
copy all symlinks
i want to copy all symlinks (both active and dead) from one partition's os's user's home directory, to another partition's os's user's home directory, and i'm wondering if this can be accomplished with some clever bash options and pipes after "cp".
this is very useful for users with multiboot systems, who keep all their data on a separate drive. this would allow the symlink'ed shortcut tree directory hierarchy expedience, to be instantly copyable to any of their oses.
distro-hoppers/surfers will love it. ^_^
so here goes my first attempt at trying to work out what it'd be...
cp -P
(copy, dont follow symbolic links)
(or is it -d i aught use?)
find /% -type l
(finds symbolic links only
[Code]....
View 5 Replies
View Related
Jun 6, 2011
I just setup my first Linux box using [URL] everything went along fine except now I have a problem that I cannot seem to solve. I've set up a webpage on the box for my company's intra-net for testing purposes but I cannot get the links to work. On the server itself all the links work but Firefox still ask me to authenticate with the Adobe Flashplayer (player10), but when I access the page from another computer I have the following issues:-
1. Even though hostname -f shows the a fully qualified domain name I have to use the IP Address eg. 192.168.100.100
2. I can access the page but the links leading to the other pages do not work I get "Webpage cannot be found or the HTTP 404 Not Found" Error Message
3. None of the embedded pictures show up I get the red X.
View 3 Replies
View Related
Jul 1, 2011
whats the difference between hard links and soft links?
View 10 Replies
View Related
Apr 5, 2011
My son wanted to try Ubuntu , was tired of win7 OS, backed up much wanted links from old OS onto USB drive, could not find files, could not find icon on desktop.
View 2 Replies
View Related
Dec 10, 2010
So, I get e-mails from both POP3 and IMAP servers on my Evolution service but what bugs me is that I cannot open any links within the e-mails on a browser window when I click on them (like would normally happen when I go to my accounts individually on the internet). Is it because I use Firefox or a bug in Evolution?
View 8 Replies
View Related