How do I find out if new versions of installed packages exist without installing them via aptitude in non-interactive mode? Is there anything comparable to the MacPorts port outdated command?
On Mac OS X I keep data on a local server mirrored with the same data on a remote server with a scheduled backup task done with Carbon Copy Cloner.
After the backup is done a bash script is run as specified in the scheduled task options of CCC.
Is the script run as root?
Or differently and more generally: as my script writes to a log file, what command should I put on my script to see on the log if the script is running as root or something else?
If I run the following command:
netsh advfirewall reset
The windows firewall will get flushed back to it's defaults and looses any program specific rules.
Will programs that require firewall access start prompting the user after the reset is triggered?
Is there a way for me to review cpu or memory usage on my ubuntu linux server? I've noticed my server (lamp set up) being slow at times, but by the time I log in as root and run a PS command, everything may have returned to normal.
It would be great to review a log of what resources different parts of the server consumed.
I have bunch of flash videos and am adding my brand to all of them. The problem is quality gets worse. I am doing with this command: ffmpeg -i /input.flv -vhook "/usr/loca/vhook/drawtext.so -f /usr/share/fonts/somefont.ttf -x 5 -y 5 t MyBrand" -f flv -s 320x240 - | flvtools2 -U stdin /output.flv
Please tell me what I am doing wrong. I need the same quality.
I recently upgraded my system from Etch to Lenny. Now when I use auto-complete, file names (not directories) appear with a trailing slash on the command line.
How do I fix this?
I have a startup script placed in /etc/init.d wherein I make the following call:
nohup sudo -u myuser $CATALINA_HOME/bin/startup.sh 2>&1
This causes Tomcat to be run as myuser, which is expected. However after issuing the reboot command the system starts up and root is now the owner of this process. How can I force the process to be started off as myuser on reboot?
According to the Unicorn docs, there are different binaries for Rails apps and other Rack apps:
non-Rails Rack applications
In APP_ROOT, run:
unicorn
for Rails applications (should work for all 1.2 or later versions)
In RAILS_ROOT, run:
unicorn_rails
They seem to also take the same command-line parameters. But Rails is built on top of rack, so I don't understand why this dichotomy is required. Is there any reason you can't just use unicorn for Rails apps?
I've been using Bitvise Tunnelier for a good few years to get secure access to my home server. This week I've switched to OS X and can't seem to find a nice GUI-based app to allow me to connect SSH/SFTP/Remote Desktop thru an SSH tunnel. Can anyone please advise? I'm not overly keen on the command line...
Thanks for reading :-D
I have a folder in which .wmvs are saved after they are finished recording. I would like to set up a script which encodes all of the files in this folder into .flvs with the appropriate size, frame rate, etc and then moves them to another folder. I have been looking for a command line .wmv to .flv converter to do this without much success. Has someone automatically encoded .wmvs to .flvs before that can point me in the right direction?
I am trying to get postfix working, and when I test it using mail user I enter the subject, message, ect and get the following error:
mail: /usr/sbin/sendmail: No such file or directory
Can't send mail: sendmail process failed
Why is it talking about sendmail? I deleted that a long time ago and am using postfix. Is it still hanging around somewhere and the mail command thinks it should be using sendmail?
I am running Mac snow leopard 10.6.3 and I used a mac installer program for git that was designed originally for leopard. I think since then my man pages have been broken and attempting to look up any command makes my computer stall for a bit before returning 'no manpage found.' Where do I begin fixing this? Thanks.
How do I block a user from accessing the internet under Linux?
I'm trying the following:
iptables -A OUTPUT -p tcp --dport 80,443 -m owner --uid-owner $USERNAME -j DROP
Is that the right syntax or command?
I've recently been moving our instances to EBS instances (CentOS) and still have a bit of confusion on what's happening when I "stop" and instance. I have some of my services with runlevels 345 on but when I start a stopped instance the services don't start. What's actually happening when I issue a stop command to the instance, and how do I get my services to start automatically when I start the instance up again?
On a quad-core server with 8GB of ram I have apache processes that use up to 2.3GB RES memory and 2.6GB VIRT memory. Here is a copy of the top -c command
http://imgur.com/x8Lq9.png
Is there a way to reduct the memory usage for these apache processes?
These are my httpd.conf settings
Timeout 160
TraceEnable Off
ServerSignature Off
ServerTokens ProductOnly
FileETag None
StartServers 6
<IfModule prefork.c>
MinSpareServers 4
MaxSpareServers 16
</IfModule>
ServerLimit 400
MaxClients 320
MaxRequestsPerChild 10000
KeepAlive On
KeepAliveTimeout 4
MaxKeepAliveRequests 80
I knows I can use the command
lsof -p xxxx | wc -l
to know the count of opened files op a process, it works, but however, it is just too inefficient. I have some server process which have too many socket files, the wc -l method never return the result. So, what is the efficient way to know how many files opened on a process?
Thanks.
I am trying to get a Ruby on Rails app hosted free somewhere, and Heroku is looking like my last resource. It is supposed to work on Linux, and the gem installs with no errors, but whenever I run any Heroku command it spits out several errors, all connected, and talking about a failed require. I looked it up in the code, and it says:
require 'readline'
That is it.
I have tried to install every variation of libreadline that I can find and think of, but none of it makes any difference.
I am using Apple's Mobile Me and am looking for a program that I can leave running on a Unix server somewhere that will monitor the IMAP INBOX and automatically copy all incoming messages to another mailbox (call it Archive).
I've tried implementing this myself in python with imaplib2 and the IDLE command and have found that my connection keeps getting disconnected.
Is there any off-the-shelf open source software that I can use to do this?
Hi,
I have developed mail server using postfix + amavisd + spamassassin. Mail sending and receiving works perfect using command prompt. When I am configuring with outlook express, then sending mail works perfact, but error is occured while receiving mail.
"your emailserver rejected your login. Verify username and password in your account properties."
But my account and password are correct.
please help me.
Thanks in advance.....
I have downloaded the zip version of KeePass. To run it I have to open the Terminal, go to wherever I unzipped it and run mono KeePass.exe. Is there someway I can take all the files in that zip file and that command and bundle them up so I get a KeePass.app I can stick in my Applications folder that can more easily be run?
I want to use jsmin to minify every js file in a directory, and js files in subfolders as well.
I would want to use the compiled vers of jsmin found here:
http://www.ejeliot.com/blog/73
What is the Mac OS X equivalent of a batch file?
Looking for something like this for Mac OS X:
http://superuser.com/questions/116417/run-a-batch-command-for-every-file-in-a-directory
I am unable to mount a device on my server due to error when mounting, the device is type XFS. The mount command returns message: "mount: structure needs cleaning"
I've tried using xfs_check and it just returns a message saying that there are entries in the log that need relaying and that you need to run xfs_repair -L where "-L" option deletes the log file but might/will result in data loss/corruption.
Does anyone know if you can access/mount the drive without repairing, or anyway to minimise data loss?
I'm on a windows workstation, and I want a list of which files are open over the network on a windows server. The Shared Folders MMC Snap-in does this visually, and SysInternals' PSFile does it from the command line, but by default only for admins. I want to let regular users do this, too. What permissions do I need to grant them?
I have done a fresh install of Ubuntu Server version 12.04 and am trying to install a dhcp server package using the following command:
sudo apt-get install dhcp3-server
However I get this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dhcp3-server
Can someone tell me how to install this package on my server?
Thanks,
Alex.