Debian Configuration :: Sshd Service Never "really" Starts On System Boot

Dec 3, 2010

I'm not really sure what the problem is here, but sshd does seem to start on system boot. tty1 does list "OpenBSD Secure Shell server" at least. Also, # service --status-all; indicates that sshd is running, but if I try and actually ssh into my box, I get a "Connection refused" response.

I am, however able to restart the service manually and everything magically works again. Odd...?

View 1 Replies


ADVERTISEMENT

OpenSUSE :: Start Vncserver Service When System Starts?

Apr 29, 2011

dear, in centos / fedora, I can config to start a permanent vnc session by setting the /etc/sysconfig/vncserver file when the system starts. Is there any similar configuration in opensuse which give me a permanent session?

View 6 Replies View Related

Ubuntu Servers :: Perform An Action Before A Service Starts And After A Service Stops

Sep 10, 2010

I am running Server 10. I have a requirement to perform an action before the MySQL service starts, and perform another action after MySQL service stops.

I found the init script for MySQL under /etc/init/mysql.conf. I added my thing to the pre-start script there and works fine.

I am having trouble finding the script that stops the server so I can modify.

View 1 Replies View Related

Debian Configuration :: No Sshd On Startup (lenny)?

May 30, 2010

I tried recompiling a new kernel yesterday (2.6.34) on my debian sarge box, but I ran into multiple difficulties. These difficulties forced me to do a double dist-upgrade to lenny. The new kernel was (seemingly) compiled without any hiccups, and I ran dpkg -i on both the image and the header debs. They didn't install properly into grub, but I think I managed to fix that manually.Next thing I did was rebooting the server. It refused to come back up. Luckily my ISP has recovery tools, so I managed to switch back to the old kernel. It boots just fine with that kernel, but the problem is that there is no ssh daemon running! I can access it through ftp and do limited jobs through php, but nothing big, as I have no root access.Now, enough backstory. My question is: How can I install openssh-server onto the server remotely? I cannot access the server personally, as the server is in a completely different country.

View 14 Replies View Related

Ubuntu :: Sshd Starts Manually But Not At Startup?

Dec 27, 2010

Not sure if this belongs here or in the upgrade forum but since the upgrade went OK I figured I would post this here. I come from a RedHat background and am not too familiar with the Ubuntu/Debian way of dealing with service startup so this may be simple. I was running 10.04 LTS on a Sony Vaio and did a distribution upgrade to 10.10. When running 10.04 LTS the sshd daemon started on boot and I was able to ssh into the PC. Now that did the update I can start the daemon using the command "sudo /etc/init.d/ssh start" but it doesn't start when the systems boots.

I even tried creating the entries in the /etc/rc.#.d directories like this:
/etc/rc0.d/K20ssh -> ../init.d/ssh
/etc/rc1.d/K20ssh -> ../init.d/ssh

[code]....

View 5 Replies View Related

Debian Configuration :: OpenSSH - Sshd Returns Login Prompt With Delay

Jul 11, 2011

On a Debian 5.0.8 I have a problem with OpenSSH server (sshd): when connecting to it from another host there is always a 10 seconds delay before sshd gives login prompt to the client. After the connection is established the communication goes on without any interruption. This long delay started to happen a few months ago and sshd_config was not changed at that time.

Here is a short description of the conversation between the putty client (on MS Windows) and sshd:
- putty client starts connection to sshd
- 10 s delay
- sshd returns "login as:"
- user types username in putty window
- sshd returns "password:"
- user types password in putty window
- sshd returns MotD and shell prompt

Here is a short description of the conversation between the OpenSSH client (on a Debian 6) and sshd:
- client does "ssh user@host.foo.bar"
- 10 s delay
- sshd returns "Password:"
- user types password
- sshd returns MotD and shell prompt

I tried connecting from:
- local host - NO DELAY
- a host on the same subnet - delay exists
- a host on another subnet - delay exists

I've found the following suggestions but to no avail (of course I restarted sshd after changing its configuration):
- on server put "UseDNS no" at the end of /etc/ssh/sshd_config
- in /etc/hosts on the server define mappings between IP addresses and host names for the ssh clients
- on client use "GSSAPIAuthentication no" in /etc/ssh/ssh_config

Here are some logs and configurations:

View 5 Replies View Related

Networking :: Sshd Service Up After Server Reboot

Jul 11, 2011

I want to make sure sshd service will start after a server reboot. On redhat or centOS I can do "chkconfig sshd on". What's the equivalent command for ubuntu?

View 1 Replies View Related

Debian Configuration :: Lenny Can't Boot After Updating The System

Feb 5, 2011

I have always used apt-get to update the system. Yesterday, I was doing some tests and one of them was to try to update the system using the aptitude command, instead. I ran aptitude update and then aptitude safe-ugrade. I thought that wouldn't be a problem, but I was wrong. This morning I found the computer just can't boot.

I get this message:

I have Squeeze in another partition on that computer. I can access the system through the terminal (the graphic is screwed). Is it possible to try my Lenny from this partition? If not, I also have a live cd for Squeeze. Right now I'm on another computer.

View 3 Replies View Related

Debian Configuration :: Squeeze System Won't Boot Headless

Apr 11, 2011

I've installed 6.0.1a on my xi3 box [URL] and it works great. However when I remove the monitor and keyboard it doesn't boot (I don't know how far it gets, there is no monitor...). I did not install, and do not want, any kind of GUI interface, command line only. This is going in a closet as a solid state rsync backup repo. I have another small system (not this exact one) running Lenny that runs just fine headless - is this some kind of Squeeze regression? Is there any way I can get this running headless (I can't run Lenny on this box because I don't think the Marvell GbE driver is there or is working in Lenny.

View 7 Replies View Related

Ubuntu Servers :: Really Weird Sshd, $service Ssh Restart Output No Ok Message?

Oct 26, 2010

I go and restart ssh and I get this weird message. thought I should be getting ok or fail message, at least thats how I remember it. What do you think?nate@universal-mechanism:~$ sudo service ssh restart

View 3 Replies View Related

General :: Centos 5.3 - Unable To Start Sshd Service - Shows Error

Oct 5, 2010

In centos 5.3 i am unable to start sshd service shows error starting sshd :/etc/init.d/sshd:line102"7182 illegal instruction $sshd$ option

Same error while starting the httpd service.

View 17 Replies View Related

Debian Configuration :: X No Longer Starts After Kernel Upgrade / Fix It?

Jan 31, 2010

I have a problem. I'm using the latest Debian stable, Lenny. I am trying to get my usb wifi card working.
The Debian wiki advised me to upgrade my kernel to 2.6.30 using backports, because the drivers for my wifi chip are supposedly in the newer kernel.

So thats what I did. The install went fine. However, after rebooting the computer hangs when it is starting gdm. Only the desktop background appears with some fuzzy stripe over it, the mouse doesn't respond. Pressing ctrl+alt+f1 does nothing. I can only restart with ctrl+alt+del.

I can still use the computer with the old kernel. No problems there. I tryed disabling GDM and rebooting again with the new kernel. It boots up and works fine on command line. However when I type startx it hangs, just like before.

I'm not an expert, but I'm suspecting there might be problems with the graphic drivers in the new kernel.
When I installed lenny at first, X started fine. However 3d acceleration was not functioning. I got help from IRC, I had to install some package to enable direct rendering. Don't remember which one anymore.

Here's what lspci gives for VGA:
01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 PF/PRO AGP 4x TMDS

View 1 Replies View Related

Debian Configuration :: System Does Filesystem Check On Every Boot After Upgrade

Jul 5, 2015

A few days ago I upgraded my debian sid system, and since then systemd does a filesystem check on every boot which takes over two minutes, disobeying the existing settings I had. How can I set systemd to do a filesystem check only once every a set number of mounts, like I had set up before the upgrade?

View 5 Replies View Related

Debian Configuration :: System Won't Boot Properly After Crash During Upgrade

Feb 7, 2016

I am on debian jessie. I ran "apt-get update && apt-get upgrade" and midway through the upgrade my computer suddenly rebooted.

I wasn't paying close attention to the upgrade process so I didnt see if there was any error messages right before the reboot. The laptop was plugged in, fully charged and I've never had issues with overheating.

When I boot now I get to a shell with a message that says:

Code: Select allWelcome to emergency mode. After logging in type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode.

If I try "systemctl default" there's a message that simply says "Hangup", nothing else happens.

Looking through "journalctl -xb" I see this:

Code: Select allFailed to insert module 'autofs4'
Failed to open /dev/autofs: No such file or directory
Failed to initialize automounter: No such file or directory
Failed to set up automount Arbitrary Executable File Formats File System Automount Point.
Failed to start Load Kernel Modules.
If I retry "apt-get upgrade" it says:
Code: Select alldpkg was interrupted, you must maually run dpkg --configure -a to correct the problem
If I run "dpkg --configure -a" stops at the package cups-browsed with message saying "Hangup"

Output of a few commands I saw in another forum thread:

$ lsmod
Code: Select allModule                  Size  Used by
ext4                  473802  1
crc16                  12343  1 ext4
mbcache                17171  1 ext4
jbd2                   82522  1 ext4

[Code] ....

Is this fixable without jumping through too many hoops or should I just reinstall the system? I need the computer for work so Im not gonna spend days trying to fix it without reinstalling.

View 2 Replies View Related

Debian Configuration :: Custom Multiple - Boot Troubleshooting-System?

Aug 16, 2010

I want to build a custom system and I need your opinions. I have an old laptop which I want to configure as a system for troubleshooting purpose, my idea is to have multi-boot system with multiple root file systems, e.g. one root file system has only BIND to work as DNS server, another root file system has only Samba, etc., and I can choose which system to boot into from grub, or a custom menu after booting grub.

I thought of setting multiple partitions and install a full system on each one, but I thought that there might be a better way to do this, I'd like to hear your opinions.

View 2 Replies View Related

Debian Configuration :: Firestarter Fails To Start On System Boot

Jul 11, 2011

I have just recently installed firestarter to get an idea of iptables editing with a GUI. Firestarter works great and I love it, however when I turn my system on, and my system is booting up the terminal displays a "Failed" message when attempting to start up firestarter. Now I have been doing my homework (reserch) and have read that a user will get this error because firestarter trys to load prior to the network manager starting up. I have also read some other variables that can cause this is if you use network manager and have a password on your user account (which I do have) can cause this issue.

However in most cases from what I have read is even though it gives the user a "Failed" startup message, once the user logs in, and is connected to the internet firestarter will actually load the iptables. I did some tests and from what I understand I can see that this is true because I have allowed access to certain torrent trackers, and denied access to others, and I can see some come online. Does firestarter load iptables once the user logs in? Or once it fails to load, does it not load at all unless you manually open/load the application. If firestarter just modifies iptables, then once I save my listings in firestarter then I really don't need it to start up correct?

View 1 Replies View Related

Fedora Servers :: Error - Unit Sshd.service Entered Failed State

Aug 20, 2011

hi, first i'd like to say that i'm totally new to linux, i was allways using windows.

as i was allways unable to install a good and stable ssh-server on windows, i thought it is time to change to linux. i was able to set up and configure a ssh-server on debian but found out, that fedora 15 looks more userfriendly in first place for me. but now i unfortunately experience problems..

the ssh server was already installed, i changed the service setting to that it starts automatically but after i succesfully connected to the LAN, i cannot access the shh via putty for instance. when i type "service sshd status" it says beside other things: active (running). but when i look at the /var/log/messages, it says those two lines:

sshd.service: main process exited, code=exited, status=255
Unit sshd.service entered failed state.

i searched on google without success, the only thing i found was that someone had the same problem with a bad sshd_config file, but i'm pretty sure that everything is alright with my config-file (i checked it several times).

beside this i cant login on the gui, after the firefox update (??) it always says: a problem has occured and the system can't recover bla bla... so i can only use fedora right now commandline-based.. but with this problem i will deal later on...

View 3 Replies View Related

Debian Configuration :: Dns Service For Email?

Jul 27, 2010

I want to install a email server so my domain handles it's on email. I understand I need a dns server first. I down loaded dbndns but can not even figure out how to start it. does anyone know how to get this set up. Or where the setup files is for this.

View 2 Replies View Related

Debian Configuration :: Systemd Custom Service

Aug 4, 2015

On macbook air 6.2, i've installed a Debian jessie mate DE, dual boot using refind. I'm currently fine-tuning it. I've made a script following powertop advice:

Code: Select all[newb@debian /etc/systemd/system]$ cat mba_kb_sp.sh
#!/bin/sh
echo 'auto' > '/sys/bus/usb/devices/1-3.1/power/control';
echo 'auto' > '/sys/bus/usb/devices/1-3.2/power/control';
echo 'auto' > '/sys/bus/usb/devices/1-5/power/control';
exit 0

[Code] ....

All seems to work fine, however when i check the sys file it didn't change. But I can start manually the systemd service and, this time, it works.

View 2 Replies View Related

Debian Configuration :: How To Enable Gdm3 Service

Mar 16, 2011

I have accidentally stoped gdm3 service with BootUP-Manager and now i cant enable it again. I can start it from terminal with sudo service gdm3 start i have tryed to dpkg-reconfigure gdm3 and purge/install. This are services running on startup [ + acpid

[ - ] anacron
[ + ] apache2
[ + ] atd

[code].....

View 3 Replies View Related

Debian Configuration :: Jessie - Service Samba Restart

Oct 20, 2014

I've after latest jessie update a problem with service samba restart. If I use "service samba restart", there is a timeout (after long time) and error.

Output of "systemctl status samba.service":

Code:
Select all● samba.service - LSB: ensure Samba daemons are started (nmbd and smbd)
   Loaded: loaded (/etc/init.d/samba)
   Active: failed (Result: timeout) since Mo 2014-10-20 02:16:57 CEST; 7s ago
  Process: 6205 ExecStart=/etc/init.d/samba start (code=killed, signal=TERM)

Okt 20 02:16:57 server systemd[1]: samba.service start operation timed out. Terminating.
Okt 20 02:16:57 server systemd[1]: Failed to start LSB: ensure Samba daemons are started (nmbd and smbd).

[Code] ....

Whats going wrong. "service samba restart" should bring no error message if the service is not running previously.

View 2 Replies View Related

Debian Configuration :: Jessie With XFCE - Service Fails

Feb 10, 2016

I am using Jessie with XFCE and I tried to write a service which executes a script to change my wallpaper. When I try to start the service with systemctl start wallpaper.service it fails and I get the outout below from systemctl status wallpaper.service

I don't think it to be a permissions issue, they are -rw- r-- r--

This service is called by a timer that goes off daily. Below is wallpaper.service

View 5 Replies View Related

Debian Configuration :: How To Service /var, /proc, /opt To Stay Out Of Troubles

Jan 26, 2010

HDD partitioned for novice - everything in one partition, in one folder /.

/dev/sda3117290636 38456100 72876432 35% /
tmpfs 103746010374600% /lib/init/rw
udev10240852 93889% /dev

[code]....

View 3 Replies View Related

Debian Configuration :: Service Settings Safe To Turn Off?

May 12, 2010

My system goes through slow periods where it just crawls and others where it's fine, but I'm wondering which service settings are OK to just shut off to give me a bit more oomph when I boot up.The others I'm pretty OK with like spam assassin, dictionary server and so on, but some of the others i wonder if they only serve to slow things down..Also..I live in a very dusty environment and I KNOW the fans and other parts get caked with dust and it wouldn't surprise me if the dust got so bad it just stops the fans completely so once in a while I use my air compressor to blow the crud out and I usually get covered myself, but how safe is using the compressor? It's not the type that typically fills up with condensed water droplets so that isn't a super critical issue..It's a small 1 hp deal, elect drive and so on.. Safe enough? It's all I have and/or can afford..

View 1 Replies View Related

Debian Configuration :: Udev Script To Run Service On Device Insertion

Jan 24, 2010

I have just bought a DVB-T usb dongle to watch some TV. The software I'm using is vdr, which has to be started through the /etc/init.d/vdr service. I have created a udev script that executes the service on device insertion. It works nicely, however now when I boot up the computer it takes ages to get to desktop. I believe it is because of the WAIT_FOR part. But without this part, the service starts too soon because the usb dongle has been inserted but the firmware has not finished loading. Can someone point out an alternative way to do it? The script is here [URL].

View 4 Replies View Related

Debian Configuration :: Adding Router For Mail Service Function?

Jun 10, 2011

I'm building a Debian based router, I want to add to this router a mail service function. I don't want mail to be sent outside of the network, what I want is the ability for services to send mail to the Debian server and for me to then pick them up from this server via pop3 into my normal mail application. Given I'm not looking for mail to be sent outside of the network and its strictly for services to log notifications via. What of the various mail applications should I setup? i.e. just looking for SMTP + POP3 internally.

View 5 Replies View Related

Fedora :: X11vnc Running A Service When Gdm Starts?

Aug 21, 2011

I want to run 1 instance of x11vnc at boot after gdm starts, itsa remote vnc server that will work without me first loggin in

Im just not sure where or how to start it when computer boots? i can run it on another tty and connect so its all setup but not sure what the "right" was is.

View 5 Replies View Related

Debian Configuration :: How To Start And Stop Asterisk Service By Non Root User

Aug 25, 2011

I am using debian squeeze server with asterisk 1.6 installed and configured.my problem is non root users need to access the server using ssh and restart asterisk server after making changes in asterisk configuration files.As of now i am giving root username/password for this process (i know it is not at all a good idea) .now how can i create a username and configure it which can only access and modify asterisk configuration files and restart asterisk server without any other privileges.

View 1 Replies View Related

Debian :: Make Vncserver Starts On Boot ?

Feb 25, 2011

Hi all,

how can I make vncserver starts on boot?
Realvnc was installed by "apt-get install vnc-server" command.
There in NO start-stop script in /etc/init.d/ (is it ok? ), so I can't use update-rc.d. When placing
vncserver
or
/bin/bash -c "cd /root/ && vncserver :1" 2> /tmp/vncstart &
in rc.local it starts nothing but "vncpasswd //.vnc/passwd" (and YES, there is password in /root/.vnc/passwd)

Please, help!

View 3 Replies View Related

Ubuntu :: Make Init Use A Certain Flag For A Service It Starts?

Jun 15, 2011

I've installed MongoDB and I want init to start the database with the --journal flag. I'm quite rusty on how init works, but I know it involves the /etc/init and /etc/rc directories.I've found /lib/init/upstart-job and someone in the chat is suggesting that I just edit that bash script, but I can see it's involved with more than half the system service, so I'm a little hesitant to edit it. In fact, I'm pretty sure if I followed that advice I'd really screw up my system and then the person "helping" me would just stop responding.

View 1 Replies View Related







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