How can I change disk volume id in wine?
There is vol command in windows which shows volume id and VolumeID (from Sysinternals) which can change VolumeID in windows but not in wine.
I am trying to create a user which has rights to the Panels (v11) CLI tools.
I've added the user to the psaadm group, as the documentation indicates, as well as the swkey-data group, as I was getting access denied for that dir.
I am using sudo to run the command as that user:
sudo -u mcp /usr/local/psa/bin/subscription --info test.com
But I am receiving this error:
Unable to connect to database: get_admin_password() failed: file_get_contents() failed:
Suggestions?
It will sound stupid but i need to figure out how much disk space i have in my dedicated server, it runs CentOS6...the last command i issued was this
[root@ks34900 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 9.7G 6.4G 2.9G 69% /
/dev/root 9.7G 6.4G 2.9G 69% /
none 1000M 288K 1000M 1% /dev
/dev/sda2 914G 200M 868G 1% /home
But again, stupid as it may sound... i cant figure out how much space i have in "/" folder (root)
And is it possible that "/usr" have a different space (partition)?
On CentOS distros, there is an /etc/security/limits.d/90-noproc.conf that sets a process limit for all users:
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 1024
I'd like to keep this limit in there, but allow one user to have more than 1024 processes. Because of how the server is puppetized, I'm unable to use the built-in bash ulimit command.
In the past, I received no errors from Xenu Link Checker.
Today, I get thousands of pages with status "No Connection". The URL's that show the error are accessible. I've used the "Retry Broken Links" command 10 times and still get the same list of errors.
Why does this happen?
I'm using Multi-Tabbed PuTTY and I wrote AutoHotKey script to rerun the command which was run as the last one. However the active PuTTY window (inside MTPuTTY) does not get activated thus sending keys has no effect. CTRL+` is a hotkey to Switch between the application and active PuTTY window. How to fix this?
WinWait, MTPuTTY (Multi-Tabbed PuTTY),
IfWinNotActive, MTPuTTY (Multi-Tabbed PuTTY), , WinActivate, MTPuTTY (Multi-Tabbed PuTTY),
WinWaitActive, MTPuTTY (Multi-Tabbed PuTTY),
Send, {CTRLDOWN}`{CTRLUP}
Send, {UP}{ENTER}
I'm on Windows 7 Powershell and have ncat from http://nmap.org/ncat/
I'm trying to send "foo" to some network device
PS> ncat -u 192.168.1.255 6061
foo
but it sends "foo\n" (66 6f 6f 0a) and the line-feed makes the device not recognize the command.
there's a -C option to add a carriage return, but that's no help.
I made a text file containing "foo" and did
PS> cat .\test.txt | ncat -u 192.168.1.255 6061
but that also adds CRLF
If you create a file on UNIX/linux with special chars, like touch \"la*, you can't remove it with rm "la*. You have to use the inode number(you can if you add the \ before the name, I know, but you'd have to guess as a user that it was used in the file creation).
I checked the manpage for rm, but there's no metion of the inode number. Doing rm inodenumber doesn't work either.
What is the command for this?
I had to wipe our svn server, but I failed to "dump" the repositories before installing a new OS. However, I had a complete backup of every file in each repository. I've since transferred all the old files back over. Unfortunately the version history is completely gone. I still have all the old incremental files, and svn can see each revision with the "verify" command, but I'm wondering if it is possible to import the old history directly from the actual files (not a dump file)?
I have a directory
main_folder
first_folder
second_folder
empty.txt
another_folder
another_empty.txt
I want to zip second_folder, and I'm in main_folder, so I zipped with the command
zip -jr first_folder/zip_file first_folder/second_folder
The zip file contains
empty.txt
another_empty.txt
But I want
empty.txt
another_folder
another_empty.txt
How can I have that?
when i do "route print" on my machine, it shows my default gateway as 10.225.150.1
but when i do tracert www.google.com, the first machine it reaches is 10.225.150.2. The route command does not show any entry for 10.225.150.2.
So, why tracert is showing 10.225.150.2?
my maching is on Windows XP.
I want to restart ssh or sshd but i get this
qqqq@Matrix-Server:/$ sudo /etc/init.d/ssh stop
sudo: /etc/init.d/ssh: command not found
qqqq@Matrix-Server:/$
DO i need to install ssh or sshd or it comes with ubuntu
I installed apache2 in Debian Lenny but when I give the command sudo /etc/init.d/apache2 reload it gives me a statement saying "Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName".
How can I change the server name? And how can I make it accessible from another system?
I'm on Windows Server 2008 64-bit. LockHunter identifies that a folder is locked by the "System" process. I'm not sure why this happens, but my bigger concern is how to unlock it. I'm looking for a solution that can be run from the command line.
LockHunter itself is unable to unlock it. Also, Sysinternals' Process Explorer doesn't find the locked folder's handle. Rebooting is not an option either.
Hi folks,
I cannot connect to the database anymore, I'm getting:
Cannot open user default database. Login failed.
I have deleted the database during a previous session and then tried to recreate it. But the recreate failed.
Now I am stuck with this error, what can I do?
Edit: I'm using Windows Authentication
Any ideas?
Fixed:
use the command:
sqlcmd -E -d master
then type:
ALTER LOGIN [Your Windows Login] WITH DEFAULT_DATABASE=master
GO
:)
I noticed a pattern of errors while trying to install PyMedia and Python Audio Tools. For both modules I run the following:
$ python setup.py install
Then I get a series of compilation errors, and then this:
lipo: can't figure out the architecture type of: /var/folders/Kx/Kxxj4868HGi6VMhZLPyZN++++TI/-Tmp-//cch1y9AO.out
error: command '/usr/bin/gcc-4.2' failed with exit status 1
I'm running Mac OS X 10.5, and this happens whether I'm using gcc-4.0 or gcc-4.2, Mac-Python 2.5 or 2.6, and MacPorts-Python 2.6. What's going on?
Hi, I'm trying to get my wifi working through the command line, but I'm not having success. I generated the wpa_supplicant.conf with wpa_passphrase and I'm running wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf. I only receive as a clue "Disconnect event - remove keys" and I get associated. What can I do?
Oracle HTTP Server (OHS), RHEL 5.3, Dell hardware
Oracle has a modified version of Apache2 for use with web-enabled components in its product suite. The apachectl start command just hangs, even configtest hangs! Not sure what it is waiting for. How does one go about troubleshooting this?
Thanks
I have a batch script that does reporting on our systems and part of it queries the registry for information. The script fails to get the key's value when its ran by the system, but whenever I run the script myself, it works perfectly
the command:
REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\ScanMail for Exchange\CurrentVersion" /v PatternStringFormatted > current1.tmp
should return:
HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\ScanMail for Exchange\CurrentVersion
PatternStringFormatted REG_SZ 6.645.00
This script is failing on a Server 2008 R2 machine, but runs fine on Server 2003 R2 machines.
I started my mongo with the following command:
[lucas@ecoinstance]~/node/nodetest2$ sudo mongod --dbpath /home/lucas/node/nodetest2/data
2014-06-07T08:46:30.507+0000 [initandlisten] MongoDB starting : pid=6409 port=27017 dbpat
h=/home/lucas/node/nodetest2/data 64-bit host=ecoinstance
2014-06-07T08:46:30.508+0000 [initandlisten] db version v2.6.1
2014-06-07T08:46:30.508+0000 [initandlisten] git version: 4b95b086d2374bdcfcdf2249272fb55
2c9c726e8
2014-06-07T08:46:30.508+0000 [initandlisten] build info: Linux build14.nj1.10gen.cc 2.6.3
2-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2014-06-07T08:46:30.509+0000 [initandlisten] allocator: tcmalloc
2014-06-07T08:46:30.509+0000 [initandlisten] options: { storage: { dbPath: "/home/lucas/n
ode/nodetest2/data" } }
2014-06-07T08:46:30.520+0000 [initandlisten] journal dir=/home/lucas/node/nodetest2/data/
journal
2014-06-07T08:46:30.520+0000 [initandlisten] recover : no journal files present, no recov
ery needed
2014-06-07T08:46:30.527+0000 [initandlisten] waiting for connections on port 27017
It appears to be working, as I can execute mongo and access the server. However, here are the process running mongo:
[lucas@ecoinstance]~/node/testSite$ ps aux | grep mongo
root 6540 0.0 0.2 33424 1664 pts/3 S+ 08:52 0:00 sudo mongod --dbpath /ho
me/lucas/node/nodetest2/data
root 6541 0.6 8.6 522140 52512 pts/3 Sl+ 08:52 0:00 mongod --dbpath /home/lu
cas/node/nodetest2/data
lucas 6554 0.0 0.1 7836 876 pts/4 S+ 08:52 0:00 grep mongo
As you can see, there are two PID's for mongo. Before I ran sudo mongod --dbpath /home/lucas/node/nodetest2/data, there were none (besides the grep of course). How did my command spawn two PID's, and should I be concerned? Any suggestions or tips would be great.
Additional Info
In addition, I may have other issues that might suggest a cause. I tried running mongo with --fork --logpath /home/lucas..., but it did not work. More information below:
[lucas@ecoinstance]~/node/nodetest2$ sudo mongod --dbpath /home/lucas/node/nodetest2/data
--fork --logpath /home/lucas/node/nodetest2/data/
about to fork child process, waiting until server is ready for connections.
forked process: 6578
ERROR: child process failed, exited with error number 1
[lucas@ecoinstance]~/node/nodetest2$ ls -l data/
total 163852
drwxr-xr-x 2 mongodb nogroup 4096 Jun 7 08:54 journal
-rw------- 1 mongodb nogroup 67108864 Jun 7 08:52 local.0
-rw------- 1 mongodb nogroup 16777216 Jun 7 08:52 local.ns
-rwxr-xr-x 1 mongodb nogroup 0 Jun 7 08:54 mongod.lock
-rw------- 1 mongodb nogroup 67108864 Jun 7 02:08 nodetest1.0
-rw------- 1 mongodb nogroup 16777216 Jun 7 02:08 nodetest1.ns
Also, my db path folder is not the original location. It was originally created under the default /var/lib/mongodb/ and moved to my local data folder. This was done after shutting down the server via /etc/init.d/mongod stop.
I have a Debian Wheezy server, if it matters.
Recently I have implement apache 2.4.1 in my web server.The problem is the rotate logs seems to be not functioning.Here is the output in the error_log:
[core:error] [pid 13060:tid 47015847145408] (2)No such file or directory
The command line that i have put in the httpd.conf are such as below:
CustomLog "|bin/rotatelogs -l /var/log/logfile.%Y.%m.%d 86400" combined
Is there anything wrong here with my setup?For your information I've already tested it in apache 2.2.22 and everythings is perfectly working.
Thanks.
Have Ubuntu 11.10 with vsftpd installed and working. Can not get virtual users setup at all? Vsftpd will allow main Ubuntu owner account to login, but nothing else? I've followed several tutorials on adding virtual users, but nothing works? I just need to add 2 virtual users and have them be able to upload files to vsftpd Ubuntu computer from other computers on my Lan network. Everywhere I've looked, people just point toward tutorials on adding virtual users, but that just is NOT working. I've been struggling with this for over a week now! PLEASE Help. Thanks. I'll even give a donation if someone can figure this out.
here is the vsftpd.conf file I am using. I copied the original, and make a new one, every time I try a tutorial. So far, none have worked.
Here is the vsftpd.conf file I'm using. (I hope this helps?)
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default)
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# If enabled, vsftpd will display directory listings with the time
# in your local time zone. The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to Sage FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd/empty
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
local_root=/media/FilesDrive
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/private/vsftpd.pem
I am getting an error when trying to configure email alerts with Munin. I've tried with both version 1.4.7 and 2.0.6.
My config file:
contacts admin
contact.admin.command mail -s "Munin notification ${var:host}" [email protected]
contact.admin.always_send warning critical
[Production;server1]
use_node_name yes
address server1addr
contacts enielson
The error,
2012/08/31 16:47:24 [WARNING] Missing configuration options for contact admin; skipping
How can I fix this?
I am running Mac OS X version 10.6.3 and when I open the terminal (with terminal.app or iterm) it just hangs on the login process. I've tried restarting, changing the startup command to /bin/bash, and deleting the terminal preference file. All to no avail.
Is there a downloading tool that supports Windows Shared files and works from command line?
Standard copy is getting hanged with no action on my side.
Tried wget but seems it doesn't 'eat' the link.