Slackware :: Way To Add Init Script Automatically ?
Jul 19, 2011
I have a task: install some software package. I have wrote SlackBuild which builds package. doinst.sh does some configuration actions. The second task of doinst.sh - to make software start automatically during system bootup(have ready /etc/rc.d/rc.mysoft script). A good place start it is /etc/rc.d/rc.local (and shutdown in /etc/rc.d/rc.local_shutdown).
Question: how to do it? How in bash/sh script correctly patch rc.local and rc.local_shutdown ? And how correctly unpatch it? I can do it manually, but I interested in automatic mechanism. The task is complicated by fact I'm going to install more than one of such (independent)packages, and start/stop sequences must be in strict order(i.e start A, then B, then C, then D, and this order should be strict independently of package installtion order).
View 10 Replies
ADVERTISEMENT
Jan 25, 2010
what to do for lock automatically slackware 13 if not used for n minutes ?What can i do to start automatically the ktorrent (a bittorrent program for linux) on system starts on slackware 13 ?
View 2 Replies
View Related
Jan 28, 2010
Thing is : I have an Install DVD created from current with the script from AlienBob about two months ago, I use it as my "default" Slackware64 13 install.
I had my drivers working ( KO modules loaded in kernel 2.6.29.6 ) I had to build for Broadcom Wireless and Nvidia GPU. Today I decided to make an upgrade w slackpkg, blacklisted kernel kernel headers, and everything pertaining to it. Still the damn thing installed 2.6.32.x. anyway, ran lilo to take notice of the change, and rebooted. booted allright, only when i Init 4, it failed to startx. new kernel, new mods needed to be loaded, i picked my DVD with drivers, and tried to run the Nvidia proprietary installer...
It uninstalled the previous driver and started compiling a new kernel module..I had the previous DVD installer of Slackware64 Current, as well as my private repo of packages, either built by me with src2pkg or makepkg, or from slackbuilds, I had my /home partition mounted apart, so i regenerated my system in about one hour...
View 5 Replies
View Related
May 11, 2010
I'm trying to find that line in the init files, but I don't see anything blatantly referring to login yet.
View 4 Replies
View Related
Feb 26, 2010
Well, just as the title of this post says, I am having keyboard and mouse problems. Here's the storyMy friend Cody wanted me to take a look at his computer for him (I'm sort of known as a Linux nerd in my school lol) because his keyboard and mouse do not at all work in init 4 mode. I've tried reconfiguring the keyboard and mouse by trying a different module. I've even tried reconfiguring X alltogether by running "X -configure", which didn't work
View 3 Replies
View Related
Mar 15, 2011
Make the code work when RESUMEDEV is a symbolic link which has a relative path.
[Code]....
View 9 Replies
View Related
Apr 21, 2010
I'm running Slacware current. Ran the updates this morning, including kernel 2.6.33.2. I always get nervous about that since something often goes wrong. Sure enough -
trying to boot I get No kewrnel modules found for Linux 2.6.33.2-smp mount: mounting /dev/sda9 on /mnt failed: No such device ERROR: No /sbin/init found on rootdev ( or not mounted ) and failure to proceed with booting. I got an original warning about the initial ram disk being too big to fit and switched to using generic kernel, and yes I did run lilo afterwards and did add the initrd.gz line. I run Ubuntu on the same laptop and have to boot into that and work as chroot in my Slackware partition to try and fix things.
View 14 Replies
View Related
Jan 1, 2011
I've been dual booting 10.10 with Windows7 for about a month. Today is the first time I've encountered a serious problem.
This morning, nothing functioned properly after trying to open several programs. The computer seemed to be "frozen", although the mouse was working fine.
I decided to reboot, but then encountered an even bigger problem.
It failed to boot and got this message: no init found. try passing init= bootarg
The problem now is that it requires a Live CD session and I keep getting this: GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
In case it matters, I didn't install 10.10 from an ISO, I just upgraded from 10.04.
View 2 Replies
View Related
Jan 20, 2010
Ubuntu 9.10 will not boot! System froze this morning, I restarted and it is now failing to boot. Starts loading grub and I get this message:
mount: mounting /dev/disk/by-uuid/04aa3697-7bc0-45b5-b86a-77a1e6534bd5 on /root failed: invalid argument
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /dev on /root/sys failed: no such file or directory
[code]....
I booted with 9.04 LiveCD discovered the drive could not be mounted-ran fsck -ln and it told me the drive has no valid partition table. I have had intermittent problems mounting flash drives before this, so I'm kind of worried it might be a hardware issue.Also have files on that drive I would rather not lose, so reinstalling is hopefully a last resort.
View 9 Replies
View Related
Jul 1, 2011
I'm currently trying to setup Slackware 13.7 on a server, using software RAID 1. I'm using the README_RAID.TXT document at the root of the Slackware disc as a reference. Anyway, here's what I have so far.
/dev/md1 -> /boot partition
/dev/md2 -> swap partition
/dev/md3 -> / partition
Code:
[root@raymonde:~] # fdisk -l /dev/sd{a,b}
Disk /dev/sda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders, total 80293248 sectors
Units = sectors of 1 * 512 = 512 bytes
[code]....
I created an initrd image using mkinitrd -F, added an according stanza to /etc/lilo.conf and ran 'lilo' after that. Now I can boot on the vanilla huge kernel all right. But I can't seem to boot on the generic kernel. Whenever I try to do this, the boot process stops short on the following error message:
Code:
mount: mounting /dev/md3 on /mnt failed: Device or resource busy
ERROR: no /sbin/init found on rootdev
View 5 Replies
View Related
Jul 29, 2010
me the difference between /etc/init.d scripts and /etc/init.d/rc?.d scripts.
View 3 Replies
View Related
Nov 21, 2010
im kind of a novice at this type of thing, but i've gotten into it alot lately (coding that is) I was wondering how i might go about making a boot process that automatically connects to the internet. I've currently got a boot script that connects me to my home network, but will fail if I'm at work/school. so i was thinking there had to be a way to list all possible network connections, and then pick out one of them and automatically connect.Almost completely new to the world of linux.Im running slackware 13.1
I want to make a boot script that automatically identifies wireless networks in the area, and connects to one, I currently have a boot script that connects to my home network automatically but fails at work/schoool. So i figured theres got to be a way to identify networks, pluck one from the list, and use it.
View 8 Replies
View Related
Dec 17, 2010
I have a server setup with software raid, I've used mdadm to create the mirror and it seems to be working just fine but it won't start by itself.
2 x 160GB SATA drives, each with a single partition
/dev/sdb1 and /dev/sdc1 respectively
Code:
/dev/md0:
Version : 0.90
Creation Time : Fri Dec 17 13:31:13 2010
Raid Level : raid1
[Code].....
View 3 Replies
View Related
Sep 17, 2010
I have written an init script and placed it in /etc/init.d/ directory.What I would like to know is, will the script run automatically or we need to install the script using "install_initd" command.If I have to invoke this command manullay, what will be the best place to do this ? Can I add this to "/etc/init.d/rcS" file
View 6 Replies
View Related
May 7, 2011
I'm trying to boot Emdebian lenny on my compact flash and it shows the following errors during boot time :
Code:
Mounting local filesystems ... done .
/etc/rc.d/S35mountall.sh : line 45 : uname : command not found .
[code]...
View 3 Replies
View Related
Mar 17, 2011
openSUSE 10.3 on Itronix IX260+ Stuck on command line, init 3, and all attempts at graphic init 5 fail. Get these messages:(EE) No devices detected; Fatal screen error: no screens found; AIGLX disabled Primary Device is PCI 01:00:0kernel:device-mapper:multipath round-robin:version 1.0.0 loaderkernel:device-mapper:table:253:0:multipath: error getting device
kernel:device-mapper:ioctl: error adding target to tableProblem would seem to be with the device-mapper, but have no idea how to fix it.
View 3 Replies
View Related
Dec 3, 2010
trying to install gnucash 2.2.9 from SlackBuilds. I have the current versions of slib and guile installed (slib from slackbuilds and guile from slackware). when installing slib I get the following:
Executing install script for slib-3b2-i486-2_SBo.tgz.
ERROR: In procedure primitive-load-path:
ERROR: Unable to find file "slib/guile.init" in load path
Package slib-3b2-i486-2_SBo.tgz installed.
Slib is installed. Try to run gnucash and I get the following: gnc.bin-Message: main: binreloc relocation support was disabled at configure time.
ERROR: In procedure primitive-load-path: ERROR: Unable to find file "slib/guile.init" in load path guile.init is in usr/lib/slib as it should be. I'm lost - where should I look next?
View 13 Replies
View Related
Jan 27, 2010
I have installed slack 13 and I want to configure the sistem to send automaticaly an email to an gmail account when I have some errors like power down for some minutes or a program crash. Can some one tell me exactly what i must do ?
View 5 Replies
View Related
Feb 4, 2010
I'll be away from home for the following weeks (and perhaps months). I want to use the Internet with confidence, so I have setup an old computer with SSH and I'll be tunneling to that (from a netbook).I haven't remote-managed a computer for such a long time and I want to be sure that even if I do a mistake remotely, I can bring the computer back to a good known state.The home computer will reside inside my aunt's house and she knows very few about computers.
I've been thinking about burning a bootable DVD containing a tarball of a freshly configured Slackware. If I mess up, I can phone my aunt and tell her to simply put the DVD inside the drive and press ctrl-alt-del. The DVD boots, un-tars (the fresh Slackware), ejects the CD-tray, waits for her to press Enter, closes the tray, and finaly reboots to my good old known fresh Slackware.
View 8 Replies
View Related
Jul 23, 2011
I'm running Linux 2.6.39.3, and when I upgraded to 3.0 by Mr. Hamaleers page here:
[URL]
Everything worked fine. My computer was working too, but my internet wasn't. Since it works on the original kernel, I know that maybe it's something I was supposed to install as part of "make [variable]config" The network icon is there, but it doesn't connect automatically as 2.6.39.3 does if that helps as a part of the description.
View 7 Replies
View Related
Jan 23, 2010
It i plug the pendrive or insert cd to cdrom it will be automatically mounted. How would i do this?
I don't want to mount these manually from terminal.
View 14 Replies
View Related
May 2, 2011
I have Slackware64 13.37 and I install NetworkManager from Slackbuilds. The only problem is that I have to run rc.networkmanager when I do startx to see the applet running. Isn't suppose to be automatic?
View 9 Replies
View Related
Jun 4, 2011
And it was under Slackware64 13.0 and 13.1.Due to other issues with the 13.1 to 13.37 upgrade, I ended up performing a clean install so I don't think that this is due to leftover cruft.
View 4 Replies
View Related
Jan 31, 2011
While I was using my computer a few days ago, the terminal stopped working properly, so I tried to reboot, and when it started up again it wouldn't boot and said "no init found. try passing init=bootarg"
This has happened twice before, so I really need to figure out what keeps happening, otherwise I can't continue to use linux. i reinstalled both times before. i think that this is caused by a process that prevents me from using the hard drive, because when I try to check the disk in the terminal or in gparted, it says Device or resource busy while trying to open /dev/sda1. Filesystem mounted or opened exclusively by another program?
Also, in the disk utility, in the lower right corner of the filesystem it has a spinning "loading wheel".(i'm not sure if that means anything)
I am using ubuntu 10.10, but am not sure what kernel I am using, but i tried a few different kernel options(there's three of them at start up). safe mode does not work either.
View 3 Replies
View Related
Apr 19, 2011
Im am building a Linux distro. It will be very tiny and fast.
I only have a minimal linuxkernel (bzImage) who is 1,2 mb big. And then I have Busybox who is 174,6 kb big.
The commands in busybox is: cd, ls, mkdir, rmdir, wget, httpd, clear, rm, poweroff, halt, reboot, fdisk, mount, umount, free, and cp.
When I compiled the kernel i use initramfs/initrd function and point it to a folder where initrd/initramfs source is.
The kernel works OK with others initramfs/initrd files. But not with my own.
Quote:
Here is how the end of the kernelcomplie look like.
Quote:
Here is my init file who is the initrd/initramfs source.
Quote:
The initramfs folder contains "bin" (folder) and "init" a file. No more.
The problem is that the kernel cannot find/read init file.
View 4 Replies
View Related
Apr 13, 2011
I use Slackware64 Current and since a few weeks, X doesn't automatically apply the native resolution (1680x1050) of my LCD screen, instead it uses a resolution of 1024x768.Since I bought this monitor in 2009, It had always worked as expected, and it's only since lately that I experienced this problem.After X has started, I can change the resolution through the kde tool but after an X restart everything is forgotten. Apparently, the correct resolution is detected but it is not applied.
My monitor is HDMI1.I don't use a xorg.conf file as it had always worked well this way, so I would like to track down this regression.I have an intel GM45 chipset.I have tried Mesa 7.9 and 7.10 in case.
View 13 Replies
View Related
Apr 26, 2010
this is not specifically a slackware related question, but since done on 2 slackware boxes... the situation is, i have one box for browsing and other desktop activities and another box acting as router/local server. what i want to achieve is that the router box would look on a nfs mounted folder for new *.torrent files (which i put there from the desktop box) and if there is a new file, it would start downloading it automatically. also a good thing would be if it would notify me when finished.so how would you go about itwhat torrent client would you use and so on? maybe someone has already done something like this?
View 4 Replies
View Related
Jul 19, 2011
As I am learning everyday Slackware, there is something that it doesn't make sense to me. It is about libraries. I tried to install Playonlinux via slackbuild and if I am not wrong this package required a library named libnss3 ). This library was found in seamonkey, a program uninstalled by me. I had to reinstall it in order to build Playonlinus. Now playonlinux runs fine. My question is: why aren't all the libraries included separately on Slackware or its website in order to build automatically everypackage? Is is a huge list? It doesn't make sense to install a package that I will never use in order to have a library..
View 7 Replies
View Related
Apr 2, 2011
We just had daylight savings change (the clocks went back one hour at 2am). he machine that was on at 2am adjusted it's time on it's own. All the other machines (5 of them) were off at 2am are still on the 'old' time.Wwhat's the best way to ensure I don't have to adjust these manually next time daylight savings change? Maybe "ntpdate -s time.nist.gov &" in rc.local?
View 24 Replies
View Related
Sep 25, 2010
I have just installed KDE3.5.10 on S13.1 and have followed all steps required on the site at 'http://slackware.osuosl.org/unsupported/kde-3.5.10-for-slack13.0/' containing the packages, finishing with:
[code]...
You'll probably need to log out and back in again for the profile scripts to add the KDE3 stuff to your $PATH and $XDG_CONFIG_DIRS. When you log back in, KDE3 should start when you run X. Unlike LXDE, this install didn't automatically create a menu entry for gdm. Everything seems to be right, but I can't get the gdm entries I've tried to work. Could somebody who has also installed 3.5.10 kindly post the correct file contents?
View 5 Replies
View Related