Ubuntu Servers :: Use F12 To Execute Script Even When Not Logged On
May 28, 2010
how to bind a script to a F key (F12) that will run as root even when not logged in. I have a headless server on client premises where it'd be easier for them to press F12 to run this script that will be rarely needed than to give them SSH instructions etc. I know this must be do-able, but I can't get my Google-fu on for this question. The only way that I can possibly think of doing it is to touch a file whenever that key is pressed and have the script idly checking for that file every few seconds in a loop.
View 2 Replies
ADVERTISEMENT
Feb 5, 2011
I have the system setup and working, but I want to put it in a corner and forget about it. Problem is, nothing starts running unless I'm logged in. And if I log out, everything stops again.It's running a LAMP server and has VNC and SSH servers as well. I want all of that to start without having to log in. That way I can remote reboot without worries and connect and login with either VNC or SSH.Everything seems to have an entry in /etc/init.dIs the way it's acting normal behavior? It's a fresh install, then I installed everything I needed from the repos.
View 7 Replies
View Related
Oct 22, 2010
As far as I understand ssh runs on port 22 but in my /var/log/auth.log I see
Quote:
why is this logged 48504 different than ssh port 22?
View 2 Replies
View Related
Feb 1, 2011
I'm a total Linux noob, but I've needed a working development server for a while so I've put together an old celeron box running Ubuntu Server 10.10.The box runs fine, as does the Apache and MySQL servers, even if they did take a little while to fine tune!The problem I have is that vsftpd doesn't respond unless I'm logged on locally or via putty. As long as a local user is logged in, it's fine. If I try to connect when noone is logged in, then the connection times out waiting for the server message, and thereafter I have to login and stop / restart the vsftpd to make it work again.I'm not sure if the vsftpd is set to run on boot or on login and I have no idea how to check. Vsftpd is set to allow only local users, of which there is only one - so I can't check if it would work with any user logged in
View 3 Replies
View Related
Dec 1, 2010
After a battle with Ubuntu, Django, Apache and wsgi i could reach the website i set up from another computer via ip-adress (10.37.129.6). i then restarted the server and after booting tried to access the website from outside - permission to / denied with the usual 403 error. trying to fix that, i logged in to the server and suddenly the website was available again. typed logout on the server - no access wt. 403. logged in - website can be accessed.i somehow suspect this is some strange permission problem, but i don't have a clue where to start searching. errorlogs just contain information that a / access request has been denied.
View 1 Replies
View Related
Feb 18, 2011
the apche2.conf and vhost file I gave the link are the machine on LAN when site is actually hosted.When some one from internet access the site then I expect a log of IP in access.log instead of which I see the IP of machine which is working as Reverse Proxy server for all such requests.What mistake did I do above.
View 4 Replies
View Related
Jul 12, 2010
How can I (as admin) find out when a certain user e.g. "karl" most recently logged in and most recently logged out of a system?
View 2 Replies
View Related
Feb 24, 2011
I want to backup some data on my Fedora box to a external Hard Disk (USB). I mounted the external HD on my box. I wrote a bash script to do that and I scheduled a cronjob to execute the script. When I am online the script executes as planned. However when I am logged out the copy does not work. I also tested this with a cifs mount (via fstab) and that does not work either. I set the script to generate some output at the end and that is OK so the script does run when I am offline. I suppose the mounted locations are not reachable while logged out, is that correct? Is there a workaround so I can reach the mounted locations while logged out?
View 2 Replies
View Related
Feb 27, 2011
logging in a server through putty in the same network when i executed last command its showing system ip logged in time and logged out time the output as followsthis is my system
oot pts1 xx.xx.xx day month date time in time out timeand similarly am geeting other than this likeroot :0day month date time still logged in this is from more than 3 days its logged in
View 2 Replies
View Related
May 13, 2010
I have a Dell PowerEdge 2850 running Ubuntu 10.04 Server with SSH and Samba. My problem is that I am unable to execute my adduser.sh script which reads from a text file and adds users to the box and Samba. I have ran chmod a+x to make it executable and placed it in /usr/local/bin.
When I run sudo adduser.sh I get "sudo: unable to execute /usr/local/bin/adduser.sh: No such file or directory".
When I run adduser.sh I get "-bash: /usr/local/bin/adduser.sh: /bin/bash^M: bad interpreter: No such file or directory " I have been using Kubuntu as my home workstation for some time now but I have managed Windows servers but since I was given the freedom to setup this server I chose Linux.
View 5 Replies
View Related
Dec 22, 2010
Trying to install Parallels Plesk Panel 10 x86_64 onto a completely new installation of Ubuntu 10.04.1 LTS
root@server:~# chmod +x parallels_installer_v3.7.1_build101014.17_os_Ubunt u_10.04_x86_64
root@server:~# ./parallels_installer_v3.7.1_build101014.17_os_Ubunt u_10.04_x86_64
-bash: ./p.arallels_installer_v3.7.1_build101014.17_os_Ubun tu_10.04_x86_64: cannot execute binary file
View 5 Replies
View Related
Jan 1, 2010
How would I make my server execute PHP and Perl scripts? (I'm going to be working with both)
I have PHP5 and the latest Perl installed, and my installation is fresh.
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
code....
View 1 Replies
View Related
Jan 26, 2010
Some time ago I installed LAMP in my server, but now I need to execute .php files from the command-line (in order to execute some manteinance scripts for mediawiki). Seems that the PHP files running in the server are run thru some kind of "module" in apache2. Can I tell apache2 to run a .php file in command-line mode using that php module? Or should I install a fresh copy of php-5? Won't that interfere with apache or mangle the system?
View 4 Replies
View Related
Feb 28, 2010
started setting up my 3rd ubuntu server under the OS of Ubuntu Linux 9.04 64 bit. I have configured the server to allow root access and am using this to execute this file. As you can see from the screenshot of PuTTy, the file exists but is refusing to load up. I am also able to nano the file. I have tried moving the file to /root/ and still had no luck.
View 3 Replies
View Related
Apr 7, 2011
On Ubuntu 10.04 with Apache and PHP installed, I can execute a test.php file
Code:
If I specify it on my Apache web server
Code:
However, I am not able to configure the web site to execute index.php automatically.
These are the settings I have.
Code:
View 2 Replies
View Related
Nov 25, 2010
I'm trying to install phpMyAdmin on my Ubuntu 10.10 server. I type the following command (I don't use "sudo" because I'm logged in as root, I know its not safe):
Quote: apt-get install phpmyadmin and go through the installation. I allow the installation to configure the database, and I chose the correct server (Apache2), when it asks for passwords, I use the same password that I use for the rest of the server (i.e. it is the account password for root, sudo, and my account). Once the installation is complete, I try and access it from a computer on the same network. I type "http://***.***.*.*/phpmyadmin" and I get the message saying the directory isn't there. I go into Webmin to confirm that the directory isn't there, and it isn't.
My questions are (1) Why isn't the phpmyadmin directory in my Apache Server root? (2) Is it installed with apt-get, if so, where? (3) How do I know what server I selected for it to install to? (4) What do I need to do to get it to install correctly?
View 9 Replies
View Related
Feb 11, 2011
I was running 10.04 LTS and had decided to stick to the LTS versions as I'm now running my machine as a server and don't want to be updating regularly.Every time I logged in via SSH I got a message telling me there where packages to update including a security update. So I did a search to find out how to perform an update on Ubuntu server from the command line.What I found was to do this:sudo apt-get updatesudo apt-get dist-upgradeAfter doing that I rebooted but now my machine gives me this message:
init: ureadahead-other main process (794) terminated with status 4Your disk drives are being checked for errors, this may take some timePress C to cancel all checks currently inprogressI'm not pressing C yet and leaving it alone to finish, but I noticed when the machine booted that one of the options for booting talked about Ubuntu 10.10, so I'm worried that I've updated from 10.04 LTS to 10.10 by accident?
View 8 Replies
View Related
Sep 27, 2010
I've just installed subversion.I need to create a script /etc/init.d/svnserve that will start at boot time.I want to use start-stop-daemon --start so I can track my process and eventually kill it using start-stop-daemon --stop.My problem is that I can't get it to work and the documentation shows no exemple.
I've replaced $DAEMON by the whole line: svnserve -d -R -r $REPO_ROOT and got -d is not an option.I'm not quite sure what to do at that point. If someone has some experience with start-stop-daemon it would be great.
View 2 Replies
View Related
Jul 28, 2010
but I have a few Ubuntu server's that are Headless, and rather than walking to the server room with a display i thought, id rather push for a good challenge..So I would like to know how to remotely login to these Server's Desktop environments. not necessarily with more than one user at a time. just need to login to the machine's via VNC or RDC preferably VNC I do my admin work with Apple Remote Desktop. but I have RDC as well..
I set these systems up for my IT Department... and I need them to be super easy to access for the rest of my team. ( I am the only one aside from or Director privy to using the command line ) so in order to make it possible for normal humansI'm installing the desktop enjoyment on each of them now. but..From what I have found in my previous Linux adventures - it is not possible to VNC to system that is not already logged in, in other words if the machine is booted, but at the login window.. I have never been able to connect via VNC, I am only able to do this once the machine is physically logged in to it's desktop nvironment once that has happened I am able to connect with VNC, but,, something tells me this is possible - this is something I do on a regular basis with my OSX server's - and with RDC to manage my active directory server
View 2 Replies
View Related
Feb 16, 2010
I am installing VMware-server-2.0.2-203138.i386 on FC 12
Have an error when executing vmware-config.pl initially. When I try again it has the message:-
start of messages;
The following VMware kernel modules have been found on your system that were not installed by the VMware Installer. Please remove them then run this installer again.
vmmemctl
vmci
vmxnet
vmhgfs
vmblock
I.e. - 'rm /lib/modules/2.6.31.12-174.2.3.fc12.i686/misc/<ModuleName>.{o,ko}'
Execution aborted.
End of message
I tried remove them using modprobe e.g.
modprobe -r -v vmemctl the response was "WARNING: All config files need .conf: /etc/modprobe.d/anaconda, it will be ignored in a future release."
Subsequently I tried vmware-config.pl, but have the same error.
View 5 Replies
View Related
Sep 20, 2010
I have a web server in my kitchen with apache running on it. Since the upload speed is quite low due to my isp I would like to execute a bash script that uploads a file to another server through a website (which is htaccess protected) The idea in general: Someone with access to my website browses through a folder, copies a file path to an input form and presses "upload". Rather than executing a bash script directly I could have a cron job running in background that finds the path and then uploads the file to the other server I have userspace on and is accessible via sftp/ssh. The file would be than erased later after a couple of days or so. That person would be able to access the file with higher speed some time later without logging in via ssh and doing all that manually.
View 2 Replies
View Related
Sep 10, 2009
here is the upload form:
<form enctype="multipart/form-data" action="uploader.php" method="POST">
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
[Code]...
View 1 Replies
View Related
Aug 23, 2010
I am running ubuntu 10.04 as a web/file server. I have set up several cron jobs in the past which until recently were executing normally. However, a few days ago, cron jobs stopped executing after a restart. I was able to fix the problem by deleting and reentering the cron jobs, but only until the next restart. ps -ef lists cron.
Summary:
1.) Cron was working --jobs executed without error and restarts worked fine
2.) Cron jobs stopped executing after a restart about a week ago --ps -e still lists cron
3.) Removing all cron jobs and reentering them by copying and pasting fixes until next restart
4.) Cron job syntax is known to be correct since they were executing before this problem arose.
View 5 Replies
View Related
Feb 17, 2011
i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???
View 1 Replies
View Related
Jun 12, 2010
I am bit lost with configuring my apache2 web server. From the book I am using it says for me to configure apache2 to support PHP I need to execute "./configure --prefix=/usr/local/apache2 --enable-so". From what I can determine Apache2 is located in "/etc/init.d/apache2" folder. I used a Ubuntu 9.04 distro (I386 Server Ed.) to install the server. I added "Kubuntu-desktop" for viewing. Then performed web upgrade to Karmic 9.10. All went well !! Question is; Where do I execute a command to enable PHP support? Once again, the command is to look something like "./configure --prefix=/usr/local/apache2 --enable-so"
View 2 Replies
View Related
Dec 1, 2008
Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually
View 5 Replies
View Related
Oct 24, 2010
I am quite new to this ubuntu business, but i like what I'm seeing so far. Well, almost everything that I'm seeing. I seem to have run into a tricky problem with xubuntu 10.04. I was in the process of customizing my desktop appearance (via Xfce4 Settings manager), and I found a nice theme to go with (dusk I think it was called). I then went on to change the window settings and starting from the bottom most option I browsed the various styles. After a few of these my computer decided to log me out quite suddenly, and I was prompted to login.
This is where the problem is: I type in my password and it logs me in for maybe a half a second only to log me out again. No matter how many times I put in the password I keep getting logged out. So now I'm running xubuntu 10.04 off a pendrive that was used in its initial installation. Is there any way to log back in and stay logged in long enough to undo the window styling at fault? I had put in quite a bit of work migrating files, installing all sorts of things and setting up fancy launchers, and I would prefer not to have to redo it again.
View 3 Replies
View Related
Jan 21, 2011
I just recently made a new user so that other people cane my computer when I'm not around, and I have noticed things aren't working right. For example,rted a few files downloading in Firefox and then clicked 'Switch from Fracta', expecting it to be like windows and the downloads would continue in the background while people log into the other account. But the screen just went black. Completely unresponsive.ouldn't let me ctrl-alt-f1 to the command line and alt-sysrq-R,S,E,I,U,B didn't shutdown and restart the pc. Also, It is not uncommon for the computer to freeze when my screensaver starts after however long of inactivity and the computer doesn't respond at all
View 4 Replies
View Related
Jan 22, 2010
Is there any gnome tool out there that will allow admins to talk with logged in users? Without it being amsn, skype, or gtalk... I'm looking for something like the 'talk' command but GUI based.
View 1 Replies
View Related
Feb 16, 2010
Whenever I want to shut down, I have to enter my password, because shutting down while other users are logged in is a privileged operation. Now, I couldn't download an update because the update lock was in use. I'd be surprised if someone had targeted my system, especially because I didn't install any obscure .debs or anything recently, but I'd really like to find out if it's been compromised somehow. Say, by obtaining an overview of all users currently logged into my system or something. Is that possible?
View 2 Replies
View Related