Debian Configuration :: Make Init.d Script That Asks For User Input?
Jul 30, 2011
I'm trying to make a script that loads at boot and asks for user input before doing it's stuff. So I created a script in /etc/init.d/ following the example given there (skeleton file) and used update-rc.d to make it load before GDM.
But when my script requests user input, init doesn't stop, and goes on loading other services and loads GDM. I have to CTRL+F1 to get to my script. I want my script to pause the init system till it ends doing it's stuff and the the other services can go on loading.
I tried
#X-interactive: true to no avail.
View 1 Replies
ADVERTISEMENT
Feb 25, 2010
I have a service that when shutdown requires a username and password. I use `read` in my script to gather this info because I can't have it in the file. When I run the init script by hand it will ask for the username and password and everything shutsdown properly. When I run reboot or halt I get no prompt. get user input in a shutdown process?
View 2 Replies
View Related
Feb 1, 2010
I've been using wicd (1.6.2.1 was the latest version on my desktop computer, maybe it got updated) without any problems for a long time. This morning after switching the thing on to read the morning news with a nice hot cup of coffee I got a number of funny Gui system messages: Wicd needs to access your computer's network cards. Password
View 12 Replies
View Related
Dec 13, 2010
I am trying to install PC Linux OS on a Dell pentium 4 laptop which has a XP on it and overwriting SLED by Novell. It asks after partition starts to give two areas allotments such at home and boot... I don't know what to do. I have the latest in PC Linux OS and gnome
View 4 Replies
View Related
Aug 1, 2011
I need to start script I created every time so I created:
/etc/init.d/startflowcapture.
There I put:
flow-capture -w /var/netflow/ft 0/0/2055 -S5 -V5 -E1G -n 287 -N 0 -R /usr/local/netflow/bin/linkme
I made it executable:
chmod +x /etc/init.d/startflowcapture
But permanently adding it to rc defaults shows this error:
update-rc.d startflowcapture defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'K01startflowcapture' missing LSB tags and overrides
insserv: warning: script 'startflowcapture' missing LSB tags and overrides
View 6 Replies
View Related
Mar 16, 2010
I have a BASH script which at one point asks the user a yes/no question. I want to make it so that if the user types in an invalid input 3 times consecutively then the BASH script will echo an error and terminate with exit status 1.
View 9 Replies
View Related
Jun 24, 2010
My setup: Debian Squeeze;4 physical partitions, 3 of those create 1 volume group, 13 logical volumes within that vg; 1 unencrypted(boot); all others encrypted including swap.As stated in the man crypttab:The order of records in crypttab is important because the init scripts sequentially iterate through crypttab doing their thing.
View 2 Replies
View Related
Mar 23, 2011
I have a firewall script setup to run in rc2.d. There is a K99 for it and then an S99. The problem however, is that it isn't being called. No errors, no logs, nothing. The symlinks in /etc/rc2.d point to /etc/init.d/script, but nothing ever happens on boot or shutdown. I can manually do /etc/init.d/script start and it will start just fine, including printing a line that it is starting. What's going on here? The permissions are the same as the other scripts in the init directory, so I doubt that is a problem.
View 4 Replies
View Related
Sep 23, 2010
This is embarrassing. I can't get a wireless address from my router with dhclient. The distribution is sid/lxde/liquorix kernel with no network manager on /dev/sdb1.
root@sid:/home/jheaton5# dhclient -4 -v wlan0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
[code]....
View 14 Replies
View Related
Feb 19, 2016
I recently tried to install php5-gd package on my debian vmware server and it failed at libc6 - i386.
Afterwards every command other than CD caused a Segmentation fault and the server would no long boot, showing the following error
[ 4.808086] init[1]: segfault at 0 ip (null) sp bff4645c error 14 in init[8048000+8000]
[ 4.808372] Kernel panic - not syncing: Attempted to kill init!
[ 4.808442] Pid: 1, comm: init Not tainted 3.2.0-4-686-pae #1 Debian 3.2.65-1
View 0 Replies
View Related
Aug 11, 2011
i have this problem i install android sdk, and i install libreries: libstdc++5, lib32stdc++6, lib32ncurses5 and libstdl1.2-dev,
now if i use ldd comand don't have problem, but when i use eclipse and i compile a simple example (hello word example), i have this
error: [Emulator] SDL init failure, reason is: No available video device i have a notebook toshiba satellite A300-1RI whit ATI Radeon 3650, i install the amd driver and all work well.
View 1 Replies
View Related
May 28, 2011
I installed the latest Debian on a computer to make a backup appliance. No GUI.When the computer starts, everything is okay. The DHCP client is running, the network interface have an address, fine.If I do a /etc/init.d/network restart (or stop + start), no more DHCP client. t is stopped when the interface is down. When the interface is up, I have to start it manually.1 - is it normal ?2 - isn't ifup's job to launch the dhcp client ?3 - can /etc/network/if-up.d be the right place to resolve this ?
View 4 Replies
View Related
Jul 31, 2011
my thinkpad Edge 11 has some problems with the touchpad and the trackpoint, so i want to permanently disable the touchpad, but not the TrackPoint. Both are PS2 devices.
/dev/input/mouse0 --> TouchPad
/dev/input/mouse1 --> TrackPoint
How can i disable the device? In X it does not work with gpointing-device-settings
View 2 Replies
View Related
Aug 28, 2011
i followed a Tutorial about configuring apache to have HTTPS Protocole , but since i ask for a certificate , i can't input information such country code etc , i'm runing this configuration on Webmin , i'm using Debian of course so how can i input the code ?
View 1 Replies
View Related
Mar 26, 2016
I build and use a custom kernel, and use the nvidia driver. This is on debian stretch.
By default, I build the image and headers packages with this line:
CONCURRENCY_LEVEL=8 nice -n19 ionice -c3 fakeroot make-kpkg --initrd --append-to-version=-something --revision=1 kernel_image kernel_headers
These kernel sources are usually the sources from debian, with a couple of more patches that I add. It appears that for nvidia-driver package versions higher than 352.79-1, the kernel headers/sources need to be prepared with 'make prepare' and 'make prepare scripts'. It's that simple. I concluded this after the nvidia dkms build failed on my custom kernel, but then succeeded after I pointed it to the full sources, but only after running 'make prepare' and 'make prepare scripts' on them. The problem is that this make-kpkg scheme doesn't appear to do this, or if it does, it doesn't properly include in the headers everything that it should.
View 0 Replies
View Related
Jun 17, 2011
How to hardcode/fix a udev roule for /dev/input/event0?For example my touchscreen device jumped after restart, sometimes will be recognized as input3 and sometimes as input0.
I: Bus=0003 Vendor=1fd2 Product=0064 Version=0100
N: Name="LG Display LGD-MultiTouch"
P: Phys=usb-0000:00:1d.7-4.1/input0
[code]....
View 1 Replies
View Related
Jun 22, 2011
I am using Debian testing i386. Just upgraded to 2.6.39-2-686-pae. After reboot, and ever since, I am getting warning: WARNING: Could not find hdaps input device (No such file or directory). You may be using an incompatible version of the hdaps module. Falling back to reading the position from sysfs (uses more power). Use '-y' to silence this warning.
View 1 Replies
View Related
Feb 9, 2010
I currently doing a network emulator program and the features must includes the web-based interface for user configuration. I able to run my program through command line. But I would like to ask how to associate my program to web-based interface for user configuration?
View 8 Replies
View Related
Feb 11, 2011
brand new Squeeze box built toady - I'm trying to install a init script and I want it to start last and only in runlevel 2...
The script "test" is executable and located in /etc/init.d
so I run update-rc.d -f test start 2 95 - I expect /etc/rc2.d/S95test but instead get S01test
On my Lenny boxes symlinks in /etc/rc2.d are in the S10 - S99 range but the Squeeze box has the same services in the S01-S06 range?
Did something change in Squeeze?
I also tried creating the symlinks in rc2.d manually but the script never ran...
View 12 Replies
View Related
Nov 22, 2010
I installed the printer on my linux laptop and the printer is installed correctly but will not print it asks for a user name and password.
The printer is a network printer that is hooked to a Win XP machine with all the current updates.
View 4 Replies
View Related
Apr 1, 2010
When my pc is connected directly to the LAN modem, my server can go online, ip connects to the domain and everything is cool.
When my pc connected to the router which is connected to the modem, I can't make my server go online. It asks for some linksys authorisation.
How can I teach my server to ignore my router and go directly to the modem. Unfortunately I can't just connect my server to the modem couse 3 more PCs are connected with the hub.
View 9 Replies
View Related
May 24, 2011
In our group we use NIS and have a group set up called netadmin which is given root privileges on each machine. Each machine also has a localuser called localuser created and used during installation. When logged in as a member of netadmin, attempting any action that requires root privileges (e.g. installing software in Ubuntu Software Center) results in a prompt asking for localuser's password, not the current user's password.
Does anyone know the cause? Configuration issue or Ubuntu issue? We can get around it.
View 2 Replies
View Related
Mar 16, 2011
I know that boot partition is possible to create within debian distribution that has grub 2.0, as I have done before with ubuntu. I have been trying many different options with my preseed file but it keeps taking the boot partition out of LVM and creating and extended partition too and then creates the LVM primary partition.
### Partitioning.
# you can specify a disk to partition. The device name can be given in either
# devfs or traditional non-devfs format. For example, to use the first disk
[code]....
View 1 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
Sep 23, 2010
I am learning japanese and I would like to be able to switch between english and japanese input while keeping an english interface. How would I achieve that? I am using KDE, by the way.
In the Kiten documentation I read that pressing Shift+Space would enable japanese input (built-in in Kiten, according to the documentation). But that does not seem to work in my system.
View 4 Replies
View Related
Oct 18, 2010
For some reason from a fresh installation on Debian (Squeeze), Apt is telling me I no longer need the 'make' package and I can remove it. I find this extremely odd & random given I just built this O.S. Why would Debian want to remove such a package and since this is a fresh installation, is there something I did wrong?
View 4 Replies
View Related
Nov 26, 2015
I just installed Debian Jessie (3.16.0-4-amd64) on a desktop box I intend to use as a server in our home office. During installation I included the web server and SSH server options. I have a user account, 'mitchell' set up in addition to root. Everything is working great except that I am unable to log in via SSH from other machines, such as a Windows desktop also on the office LAN (using PuTTY). From the PuTTY terminal it looks like the user name is accepted because the password is requested, but after entering the password it says "Access denied".
Back on the Debian box in I see:
Code: Select allNov 26 14:12:02 DebianDevP6TSE sshd[2278]: Invalid user mitchell from 192.168.1.96
Nov 26 14:12:02 DebianDevP6TSE sshd[2278]: input_userauth_request: invalid user mitchell [preauth]
Nov 26 14:12:07 DebianDevP6TSE sshd[2278]: pam_unix(sshd:auth): check pass; user unknown
Nov 26 14:12:07 DebianDevP6TSE sshd[2278]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=rmbiserv.attlocal.net
Nov 26 14:12:10 DebianDevP6TSE sshd[2278]: Failed password for invalid user mitchell from 192.168.1.96 port 60010 ssh2
So I am guessing I need to set up either the SSHD server, or maybe something in PAM, to authorized users for SSH access?
As a note, "mitchell" is the user name I use to log on to Debian, and I am entering the same user name and password when trying to log in via SSH.
If I try to log in via SSH as "root" I get the following in the log:
Code: Select allNov 26 14:17:01 DebianDevP6TSE CRON[2329]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 26 14:17:02 DebianDevP6TSE CRON[2329]: pam_unix(cron:session): session closed for user root
Nov 26 14:29:59 DebianDevP6TSE sshd[2383]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=rmbiserv.attlocal.net user=root
Nov 26 14:30:01 DebianDevP6TSE sshd[2383]: Failed password for root from 192.168.1.96 port 60132 ssh2
View 6 Replies
View Related
Aug 27, 2010
I configure my system in a long time and now I have a suitable system! But I install all directories in one partition and now I like install again, but I need make an image of my configuration for install from it and after install I don't spend time for again configuration.
View 2 Replies
View Related
Nov 28, 2015
It seems that my network manager may be running in root mode...
For instance in network connections, edit and delete are greyed out. if i click add, i am unable to enter any details. if i run nm-connection-editor as root i am able to make changes.
How can i set it that the normal user can make changes? [managed is set to true in the conf file]
View 6 Replies
View Related
May 19, 2011
I have a wireless router in my room and when people use their WiFi devices in the living room the signal is very weak and really slow, i have a Debian box in the living room that i would like to use as a wireless repeater. i want it to receive the wireless signal from my router and transmit an AP that resembles the one being transmitted by the router is this possible, and how can it be done
View 9 Replies
View Related