Ubuntu Servers :: Start The Cod As A Specified User On System Boot?
May 4, 2010
Whats a way to start the cod server as a specified user on system boot. Whats the best way for me to do this? The cod server is located in the users home directory
View 8 Replies
ADVERTISEMENT
Jun 28, 2011
I wrote a little script that will automatically mount two Samba shares to my home directory and I was wondering if a) You guys/gals had any input as to how I could improve on this script and b) Tell me how I would go about having this script automatically execute when I log on via SSH.
Code:
#!/bin/sh
mount -t smbfs -o username=Myuser,password=Thepassword //192.168.1.102/Data1 /home/user/Data1
mount -t smbfs -o username=Myuser,password=Thepassword //192.168.1.102/Data2 /home/user/Data2
View 4 Replies
View Related
Apr 14, 2011
I'm niomi and I'm the first account with sudo. I add an account, bob. niomi can get in reliably on active mode. (maybe relevant?: passive doesn't work) bob is jailed to his home directory, niomi is in ftp-special which gives her access to /. bob can't log in and his shell is set to bin/false. What could have gone wrong?
View 3 Replies
View Related
Jan 28, 2011
I've installed Ubuntu on my new desktop alongside Windows 7 (each OS is on a separate drive), I seem to have run into a small problem. Let me start with what I did:
- Unplugged 1TB drive from the PSU, BIOS was not seeing my formatted (and thus empty) 500GB drive and I couldn't put it into the boot order at all with the 1TB turned on.
- Loaded up the boot CD and was able to install Ubuntu 10.1 on my 500GB drive.
- Did a bit of configuring, shut my PC off and plugged my 1TB (with Windows 7) drive back in. I tried to see if I could now see my Ubuntu drive in BIOS but nothing is there - just the Windows drive is in the list of available drives to boot from (along with DVD-ROM and USB).
This is where I've run into my problem. What I want is to have a nice GRUB boot menu at the start like any other dual-boot system but just have the two operating systems on separate drives altogether.I did it this way because I was having issues with the advanced partition menu on the boot CD so just went ahead and followed the KISS method by unplugging the Windows drive.
I was told by a friend that if I put my Ubuntu drive into the first position in my boot order and the Windows drive in the second, then I could boot into Ubuntu and run a GRUB update command (he told me to google it) and that would create the necessary GRUB that had the entries for Windows 7 and Ubuntu.Both operating systems are 64-bit, I imagine that might make a difference in whatever help you guys can offer me. I love the hell out of both OS's and want to be able to use them interchangeably.
View 5 Replies
View Related
Jul 16, 2010
I'm trying to get rid of gnome as much as possible since I consider it bloated. I have everything according to my taste but when I boot I need to start x by hand (through xinit) and I would like it to start automatically.
So I created a script in /etc/init.d/ to do that. If I just execute xinit on the script it runs X as root (we all know that's highly not recommended), so I tried su - username -c "xinit" to no avail. However if I start another program, say rtorrent, like that (replacing xinit with rtorrent) it works perfectly.
What do I need to do start X under a username on login? I don't want a login manager just to do something which I am so close to do.
View 2 Replies
View Related
Apr 12, 2010
I need to start VirtualBox on my server at boot time as "virtual" user, not root.
* What is the command line to do so? Virtual box command is "VBoxManage startvm xxx" but for "virtual" user?
* I think of setting this line in /etc/init.d/boot.local, but I wonder if this is not too early in the boot process?
of course I need all this to be done on non-interactive way, automatically (from the command line, I do it easily), including passwds
View 4 Replies
View Related
Dec 3, 2010
We have a backup program that works with HP's ultrium tapes that whenever it's failing it's sending an error to the root's system logs. Now if I run mutt as root I can see the system logs and it's very easy to pinpoint any backup error messages.
Is there any way to copy all these system messages to another user as well so that someone with no root access could run mutt as well and check for these logs daily?
View 4 Replies
View Related
Mar 30, 2011
I am currently running a VPS with Ubuntu Server 10.10. I have been trying for a few days now to get some programs to run when the system starts, but with no luck. I am trying to use rc.local to do this, there is an:
/etc/init.d/rc.local - http://paste.monsterprojects.org/mpbjhwhbjzhbjrr (Was already on the system, I have not edited this)
and:
/etc/rc.local - http://paste.monsterprojects.org/mpbjhwhbkkkhwez
If i run the /etc/rc.local script manually all the programs start fine, and if i run /etc/init.d/rc.local start, all the programs start fine. But for some reason they just don't seem to be starting when the system boots.
View 3 Replies
View Related
Apr 12, 2011
I want to password protect say a subdirectory, or a subdomain via vhost, with a username/password, but use the systems users and passwords as logins -> I want go avoid any and all .htaccess... as everyone should be doing anyway How would I go about doing this? I know my way around the apache configs fairly well, so I'm not a total newb -> I now I can use .useraccess and .pwaccess but that's flat file driven, not based off of the systems users/passwords.
View 1 Replies
View Related
Mar 22, 2010
My problem is that the samba daemon does not start on boot-up anymore on my file-sharing server.Samba starts flawlessly if start it manually.If I run:
Code:
/etc/init.d/samba status
I get :
[code].....
View 9 Replies
View Related
May 11, 2010
Ubuntu server 10.04 comes with a new event based startup system, and I wonder if that can be responsible for this problem. The server has been upgraded from 9.10. On reboot mysql does not always manage to start... /var/log/mysql/error.log has info similar to this:
100511 19:05:00 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
100511 19:05:00 [ERROR] Do you already have another mysqld server running on port: 3306 ?
100511 19:05:00 [ERROR] Aborting
So apparently port 3306 is not 100% unused when mysql tries to open it or somehow network connections are not ready, even if mysql start is supposed to wait for 'net-device-up' and 'local-filesystems' according to /etc/init/mysql.conf. This does not happen on all reboots. I am supposed to be able to start it manually with command 'start mysql' but that does not seem to work also. When I try start it again, it says mysql is running but no databases can be reached and mysqld is not active, reboot and good luck is all that helps...
As far as I know there are no firewalls installed, at least none I have manually configured and it has worked with no problems on 9.10. So this new upstart thing seems responsible. It simply does not let mysql wait until it can start in good way. That also explains why it's a random problem. If all starts happen when and if there is free processor time, it does not always start things in the same order on every reboot. The key here is port 3306, or whatever port mysql is configured to use. The upstart system simply needs delay the start until the port is 100% free and available for the system to use.
View 1 Replies
View Related
Jul 26, 2010
Recently, few days or maybe a week ago I updated mysql and now mysql service do not start at boot. I must start it manualy, before this update it start automaticly.
View 9 Replies
View Related
Aug 20, 2010
I know Ubuntu has changed the startup system in 10.04 and I am wondering how to go about starting my liferay server at boot (instead of starting manually).
There's already a startup script, can I setup a symlink to somewhere to have it start automatically?
I've tried searching through documentation and google but most of it applies to older versions of Ubuntu.
View 3 Replies
View Related
Sep 29, 2010
I have recently set up my web server using the LAMPP package for Ubuntu. Now I'm running Ubuntu Server 10 so my machine boots into the console and not gdm. Also I have my machine autologin as root so I can simply turn my server on and not mess around with logins. Now I created a simple shellscript for starting lampp and then I put it into etc/init.d/, chmod -x file.sh to give it executable permissions, then I update-rc.d file.sh defaults but nothing happens on startup. It simple takes me to the console and nothing more happens. I have to manually start lampp on every bootup.
View 1 Replies
View Related
Mar 24, 2010
I just compiled mysql apache and php from source and I have apache to start up from boot but I don't exactly know how to get mysql to do the same.
Edit: Also how do I add mysql to path? Should I just symlink it to somewhere thats in the path or what? And if that is the case wheres the best place to symlink it too.
View 3 Replies
View Related
Apr 6, 2010
My apache server don't want to start by itself on boot.
View 9 Replies
View Related
May 3, 2010
Currently when the system boots, It boots jabberd2 before mysql. So jabber fails. Then, later mysql is loaded. I either want to force jabber to load mysql first, or make the system boot mysql first. I've tried changing /etc/init.d/jabberd2 to say "# Required-Start:
mysql $network $named $remote_fs"...
However, insserv says that mysql service has to be enabled... so I assume that's an issue because mysql is an upstart script.
View 5 Replies
View Related
Oct 31, 2010
Running Ubuntu Server 10.04 32 bit. Sometimes when I reboot it does not start up, It seems to be going through the boot process but then just hangs. I have had a look at the log files and can't see anything, but I'm not really sure what I am looking for.
View 2 Replies
View Related
Nov 18, 2010
I'm having some trouble with Tomcat 6 after upgrading to 10.10. During the upgrade process, the installer hung while dealing with Tomcat 6, which required me to kill the upgrade and do some clean up, and then re-run `apt-get upgrade` again to get things going. This left some weirdness (like the MOTD for both 10.10 and 10.04 being shown on login), but otherwise things are OK. The only remaining problem I have is Tomcat; it simply won't start when the server is booted. The information I have:
Tomcat 6 runs normally when started with `sudo /etc/init.d/tomcat6 start`. No errors are thrown, everything works as expected.I used `rcconf` to try removing and reinstalling the rc scripts, this didn't help. I manually deleted all the rc scripts, then used `rcconf` again. The scripts all seem symlinked correctly to `/etc/init.d/tomcat6`, but it's just not coming up on boot. I ran `sudo grep "tomcat" /var/log/*.log` to see if something is appearing in the logs, but nothing of interest is there.
How can I verify that Ubuntu is even trying to start Tomcat? As this is a development box, I am not adverse to a quick + dirty solution if there's some either simple way of getting it started at boot. I'm thinking the next Ubuntu release will see me blow away the server and start it fresh, but right now I'd just like a working box
View 7 Replies
View Related
Dec 19, 2010
I am having some trouble making the dropbox daemon start at boot. I followed these instructions -> [URL], which are basically a replica of the original instructions from the Dropbox Wiki [URL]. The installation went fine, except that the machine still cannot start the daemon at boot. I tried to modify the init.d script a bit (see the attachment), but it still wont work (I am not sure if my changes made any significant difference, though). The daemon will only start if I invoke it manually after login with the command:
Code:
[user@machine:~]$ service dropbox start
Which executes the daemon just fine. I also tried adding this line of code to crontab:
Code:
@reboot /etc/init.d/dropbox start
This command starts the daemon if I check with the command "service dropbox status", but if I execute the official dropbox CLI command:
Code:
~/bin/dropbox.py status
it says that Dropbox isn't running and I still have to execute it manually.
P.s.: The machine runs Ubuntu Server 10.04, with all the latest system patches and updates.
View 3 Replies
View Related
Mar 29, 2011
I'm running the host server on Ubuntu 10.04 LTS (64bit) . I'm using virtual box. I want to automatically for one of the guest vritualboxes to start on reboot. Following is already done without a success. Please help me in solving this.
1. I have created the following shell script
#!/bin/bash
/usr/bin/nohup /usr/bin/VBoxHeadless --startvm "VMNAME" 2> /dev/null &
2.From the current logged on user I did a crontab -e and did the following
crontab -e @reboot /bin/sh /home/myaccount/shellscript.sh note that I do not encrypt the home directory and sufficient permissions are there.
View 9 Replies
View Related
Apr 13, 2011
On my Ubuntu 10.04 LTS Server, mysql does not start at boot. I tried this but does not work.
Code:
root@dev:~# chkconfig mysql ON
The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'K02mysql' missing LSB tags and overrides
insserv: warning: script 'S10vzquota' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs .....
How to make sure mysql process comes up automatically after every reboot
View 4 Replies
View Related
Jul 6, 2011
I have a few problems getting a custom service/daemon to auto-start at boot. I'm running ubuntu 11.04 Server amd64 edition. One of the services is a Teamspeak3 server I'm trying to start. I would like it to start up automatically on boot. ts3 already have a script with start/stop commands so all i have done is make a little script for it to get it to run as the correct user.
Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides: ts3
# Required-Start: $all
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
[Code]...
View 7 Replies
View Related
Jan 2, 2010
I have dual boot (wubi) Windows XP. It was working smooth until I upgrade ubuntu 9.10. At the boot screen I choose Ubuntu, then it ask me wich version, then it freeze. I tried the recovery version, but then it ask me for a user ID login and password. At this point I'm able to enter the user , but it don't type anything on the password and keep asking me to enter the user id and password again, and again.
View 2 Replies
View Related
Sep 16, 2010
I recently upgraded a Ubuntu server from version 8.04 to 10.04 and after a reboot the webmin and syslog-ng server do not start at boot anymore. I can start them manually by doing /etc/init.d/webmin start and /etc/init.d/syslong-ng start and everything works fine until I root again. Granted this machine is rarely rebooted but when it is, I don't want to have to remember to start these services. I have tried a full removal of syslog-ng and reinstall but to no avail. The entries are in the rc directories like they should and the links are valid.
View 1 Replies
View Related
Jun 24, 2010
On this system httpd does not start on boot. I can manually start it without errors with service httpd start.
Code:
chkconfig --list httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Where do I look to see why it wont start?
View 9 Replies
View Related
Apr 18, 2010
I want to know where should I keep a script which I developed so that it always start with system boots also if some one can let me know about strace some common use scenarios.
View 4 Replies
View Related
Aug 24, 2010
I'm completely stumped by a problem with httpd in Fedora 13. It fails to start on boot: I can see: Starting htpd: FAILED, in /var/log/boot.log, but I can't find anything else in messages, audit.log or anywhere else that gives me any clue why. The weird thing is that running:
run_init service httpd start
after boot _works_ and the server runs fine, but even when it's running OK,
service httpd status
reports
httpd dead but subsys locked
I'm guessing that the problem somehow relates to selinux, but I can't find anything in the audit logs that gives me a clue. How to turn on more logging so that I can get closer to the problem. I finally discovered the cause. This system was originally configured to use network services directly, without NetworkManager. It had been upgraded a number of times since installation. It seems that over time, if you have turned off NetworkManager, the defaults have changed. Used to be that the network services was 'enabled' by default (hence started at run time). Now, the default is 'disabled'. Httpd couldn't start because there was no network to start on. Enabling network services at boot time fixed this. I guess I should have noticed this. But one might think that httpd failing to start because of the lack of a network might at least give a warning message in the logs about the reason.
View 8 Replies
View Related
Aug 1, 2011
I have tried different methods to auto start wpa_supplicant at boot on Ubuntu Lucid server on a laptop which can't be connected to Ethernet.
The only thing that worked is adding the wpa_supplicant command before exit0 in rc.local. It solve my problem of wpa_supplicant auto start and annoyance on not be able to ssh before local login. But the screen stuck at Ubuntu Logo. How can i get pass Ubuntu logo screen to regular tty or xbmc in future?
[URL]
View 1 Replies
View Related
Mar 27, 2010
Can anyone help me with how to create an init.d script that will startup a vm machine in virtualbox at boot? I found this script:[URL]..But it is for ubuntu. I am running fedora 12 x386 and using it as an Amahi server. Very cool, but it would be extra cool if I had a virtual windows machine startup when I booted up this server. Then I could just rdp into it when I needed something in windows.
View 3 Replies
View Related