Why does the following not work from one ubuntu machine to anohter
ssh user@host mutt
(it just sits there doing nothing)
Whereas the following is fine
ssh user@host ls
Hi,
I've imported a document into Open Office and it has a number of hard returns in wrong places. In MS Word, I could use the search and replace to simply get rid of them all easily, but Open Office's earch won't find them. I tried /n with the 'use regular expressions' box checked, but it seems that only looks for 'shift-enter' breaks and not ordinary hard returns.
Is there another way to remove them all quickly, or do I have to go manually through the document and remove each one individually. This is a surprising oversight for Open Office.
i wonder if there is a good software that will run commands with voice recognition?
eg. if i say "delete temporary folder" it will delete that folder.
if i say "find symfony folder" it will find folder named symfony.
im running mac.
thanks
Is there a way to manipulate icons on an Mac OS X file from either Automator or the terminal?
In my case, I want to remove custom icons (that is, the same as doing 'Get Info' and Edit-Cut on the icon) from a large number of files.
I am trying to get samba working on centOS... I installed it via Yum, changed the samba config file to:
[ShareName]
path = /var/www/html/
public = no
writable = yes
printable = no
create mask = 0765
valid users = username
Restarted samba and it did nothing.. the windows network is not seeing the share at all. I realize there is most likely something I am missing but I have always done it with the GUI, but unable to do that this time.. Any pointers?
In my WinXP I write a bat file to start the putty which is connected to my linux for development.
D:\PuTTY-v0.60\putty.exe [email protected] -pw 123456
But I have to set the charset to utf-8 manually everytime when I do the login.I think it's quite a waste of time.So how can I do the setting more quickly?Thanks.
I have a folder that contains a not so large amount of space called /data/backup.
I have been told that if I link that folder (/data/backup) to an even bigger folder area like /bigdata/backup for example, that I will be able to execute backups to the /data/backup folder.
It will then just create a link, but the data will be seen in both folders and the latter one (/bigdata/backup) will contain the backup results but it will show on both folders.
Since the /bigdata/backup has far more disk space then the backup will no longer fail because of space problems in the /data/backup one.
Is this true?
When I run top on my database server I get that mysqld has been running for 4:00.51 and it continues to go up.
I assume this means that one process with mysql has been running this long from other posts on here. Its not set to cumulative mode as best I can tell as the heading looks like it would change to CTIME if that be the case.
What I'm wondering is if this is normal for a site that makes a lot of individual connections using PHP. I shouldn't have any long running processes that would hold on to a mysql connection for this long, only seconds at most.
Am I incorrect to assume that this time relates to one connection/process running? I think usually I see it flash up and away on the TOP, not just stay there with this number increasing.
I am getting this error on almost all of the operations on a Windows 7 pro 32 bit machine. By operations I mean anything I do. Update a repo from subversion. Access a local IIS Site. Copy a big folder. Run an installer.and sometime if I try again. It get solved.
I think there is something wrong wit windows7 . I searched around and found posts suggesting to increase IRPStackSize value in registry I did that no Luck. I am using Microsoft Security Essentials Version: 1.0.1961.0 as my antivirus package
Once this errors starts popping up. I have to restart and then in after some random time. It starts showing up again.
Any help is appreciated. I am losing lot of my time in restarting my system or retrying again and again.
I need to determine whether a library named libunaSA.so is being called directly by the process or by another library called libtoki2.so. I guess what I'm looking for is a pstree for libraries. The system is running RHEL 5.3 Beta.
This output shows the two libraries in the process map
# grep -e toki -e una /proc/2335/maps
0043f000-004ad000 r-xp 00000000 08:02 543465 /usr/lib/libtoki2.so
004ad000-004c5000 rwxp 0006d000 08:02 543465 /usr/lib/libtoki2.so
01185000-01397000 r-xp 00000000 08:02 543503 /usr/lib/libunaSA.so
01397000-013dc000 rwxp 00211000 08:02 543503 /usr/lib/libunaSA.so
This output shows that only the libtoki2.so library is in the current cache
# ldconfig -p | grep -e una -e toki
libtoki2.so (libc6) => /usr/lib/libtoki2.so
libtoki.so.4.4.1 (libc6) => /usr/lib/libtoki.so.4.4.1
libtoki.so.2 (libc6) => /usr/lib/libtoki.so.2
I attached strace to the running process but it doesn't provide much output
# strace -p 2335
Process 2335 attached - interrupt to quit
futex(0xb7ef5bd8, FUTEX_WAIT, 2336, NULL
Here's the output to ldd for each library
# ldd /usr/lib/libtoki2.so
linux-gate.so.1 => (0x00a0a000)
libdl.so.2 => /lib/libdl.so.2 (0x001bd000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x00f3f000)
libm.so.6 => /lib/libm.so.6 (0x00b27000)
libc.so.6 => /lib/libc.so.6 (0x0043d000)
/lib/ld-linux.so.2 (0x00742000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00110000)
# ldd /usr/lib/libunaSA.so
linux-gate.so.1 => (0x00244000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00baf000)
libdl.so.2 => /lib/libdl.so.2 (0x007fa000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x009ce000)
libm.so.6 => /lib/libm.so.6 (0x00c96000)
libc.so.6 => /lib/libc.so.6 (0x004a2000)
/lib/ld-linux.so.2 (0x00742000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00a9f000)
Is there to manipulate icons on an OS X file from either Automator or the terminal?
In my case, I want to remove custom icons (ie the same as doing 'Get Info' and Edit-Cut on the icon) from a large number of files.
Hi
I have been trying to send commands to a running gnu screen session (4.00.03) in opensolaris, but cannot get it to run any commands through any combination of
screen -X
Ok, I start a screen session with screen -S test, and then tried to with screen -r -X "date"to just show me the date, when I would reconnect to it. But neither an error message nor output in the screen happened. I tried with so many combinations, that I can't even remember.
Any hints on how to accomplish it?
The reason why I am doing this is, because I have a program, which does not come as a daemon, and I wish to start it in a screen session, so I can later on see what is going on.
I have an issue on our Windows 2003 x64 Build Server when invoking shell commands from a script. Each call causes a "memory leak" in the page file so it grows quite rapidly until it reaches the maximum and the machine stops working.
I can reproduce the problem very nicely by running a perl script like
for ($count=1; $count<5000; $count++) { system "echo huhu"; }
It is independent of he scripting language as the same happens with lua:
for i=1,5000 do os.execute("echo huhu") end
I found somebody describing the same issue with php at
http://www.issociate.de/board/post/454835/Memory_leak_occurs_when_exec%28%29_function_is_used_on_Windows_platform.html
His solution: Firewall/Virus Scanner does not apply, neither are running on the machine.
We can also reproduce the issue on other Developer Machines running XP 64, but not on XP 32 Bit.
The guilty guy for the allocation is C:\WINDOWS\System32\svchost.exe -k netsvcs which runs all the basic Windows services.
Does anybody know the issue and how to resolve it ?
i have centos VPS created using XEN + OpenVZ virtualization.
-bash-3.2# uname -a
Linux host.domain.com 2.6.18-274.7.1.el5.028stab095.1xen #1 SMP Mon Oct 24 22:10:04 MSD 2011 i686 i686 i386 GNU/Linux
there are no question asked when i want to delete file(s)
-bash-3.2# vi test.txt
-bash-3.2# rm test.txt
-bash-3.2#
the main server (not virtualized one) is asking me first before delete any files.
[root@main ~]# vi test.txt
[root@main ~]# rm test.txt
rm: remove regular file `test.txt'? y
[root@main ~]#
how to configure virtualized environment to prompt me before deleting any file(s)?
thank you.
Hi,
I have a wide TV screen that is attached to a Mac Mini. I am able to use this screen as a second screen using an application like ScreenRecycler. However, Sometimes I want to demonstrate what I am doing on my box on this TV screen. As this TV is attached to a Mac Mini, I want to have a screen sharing done reversed. As I know screen share can be done in observe mode and full screen, this would be more than sufficient. Because it would be pretty useless to run it continuously, I want it on demand. For this, I want to use SSH.
So the only thing I would like to know is, how do I start screen sharing in from a Terminal Session. On Windows, I could start an application by using "start notepad.exe", I am looking for something similar. Eventually, I want to make this work on other boxes too.
Thanks for your help!
Is this possible?
Normally I use disper to enable my external monitor, but I don't think I can force the 2nd monitor to be primary.
http://willem.engen.nl/projects/disper/
I've played around with nv-control-dpy included in the nvidia-control source, but I haven't figured out how to do it yet. How to get:
http://ubuntuforums.org/showthread.php?t=922956
I want split a file into multiple files with at most 25 lines each.
I'm using this:
split -l 25 /etc/adduser.conf /home/ubuntu/PL/trab3/rc_
But I do not get the files I expect.
How can files with the filenames like rc_01, rc_02, etc.?
Hello all,
we are 100% Linux user across the network and we do work round clock, what happens shift change next admin come to his shift on that time what all issues comes he get resolve the issues but they just clear history from terminal. If we want record every at terminal what they have done to resolve the same issues or we can monitor as well, for trouble ticket we have internal OTRS which they update for reporting.
Thanks ton
whenever I want to install a new vim script to the linux server I'm working in , my typical workflow is as the following:
surf the plugin's homepage in vim
online using fireXXXX
download a right version of the
plugin to my laptop by click some highlighted link
upload the downloaded plugin from my
laptop to linux server using winscp
which is really inconvenient. I don't know what is the magic behind this : I mean for the same hyperlinki click it in web browser I can let you download it but use wget plus the hyperlink in linux commandline will end up with nothing but error indication. hyperlink in web browser . otherwise I can get the link in web browser and then use wget or some similar tool to actually do the downloding.
I try new cool vim scripts quite often , so you can imagin my dismay when have to repeat the tedious action all the time. So if anyone of you knows some tips which can let me downloading the vim scripts in a more "professional" way, I'll appreciate it a lot.
post edit :
My problem is not find a tool like wget or curl . The problem I met is quite specific to use these tools to download vim script. let's take
http://www.vim.org/scripts/script.php?script_id=30 as an example, it's the normal place where one can get the script, at least for me. but I can't find an working url from this page that can feed to wget .
Suppose my PATH is C:\WINDOWS\system32\;C:\Program Files\Important\
SET NEW_PATH=C:\My\Dir\
SETX PATH "%PATH%;%NEW_PATH%"
Results in a path of:
C:\WINDOWS\system32\;C:\Program Files\Important\;C:\My\Dir"
Notice the quotation mark at the end of the path. It's as though the backslash at the end of %NEW_PATH% escaped the final quote mark. I need the quotation marks because I have spaces in my path, but I don't want backslashes to be interpreted as escape characters.
What's the right way to include my PATH in the call to SETX?
I need files ending with ".pdf" or ".png"; here's my attempt:
find /Users/robottinosino/Desktop/_PublishMe_ -type f -regex '.*[pdf|png]'
this incorrectly includes files ending with "Apdf", "Zpdf", etc. (missing literal dot before file extension)
I tried adjusting the pattern to:
find /Users/robottinosino/Desktop/_PublishMe_ -type f -regex '.*\.[pdf|png]'
but then no results are returned. Escaping the . with a backslash does not work. Why?
[0] $ uname -a
Darwin Robottinosino.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
Thanks!
I installed vsftpd and configured it. When I try to connect to the ftp server using Transmit, it manages to connect but hangs on Listing "/"
Then, I get a message stating: Could not retrieve file listing for “/”. Control connection timed out.
Does it have anything to do with my iptables? My rules are as listed:
*filter
# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0
-A INPUT -i lo -j ACCEPT
-A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT
# Accepts all established inbound connections
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Allows all outbound traffic
# You can modify this to only allow certain traffic
-A OUTPUT -j ACCEPT
# Allows HTTP and HTTPS connections from anywhere (the normal ports for websites)
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
# Allows SSH connections
#
# THE -dport NUMBER IS THE SAME ONE YOU SET UP IN THE SSHD_CONFIG FILE
#
-A INPUT -p tcp -m state --state NEW --dport 30000 -j ACCEPT
# Allow ping
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
# log iptables denied calls
-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
# Reject all other inbound - default deny unless explicitly allowed policy
-A INPUT -j REJECT
-A FORWARD -j REJECT
COMMIT
currently there's a xxx dir already in /home/yyy I'm trying to overwrite it
cp -fr ../xxx /home/yyy/
doesn't work still prompts me to overwrite the individual files. how do I fix it?
Recently I worked under linux and there is a feature that I like very much.
I can open a shell by making right click inside the window and choosing a corresponding option from menu.
Is there a way to ad something similar in Windows?