Hello Everyone,
I have a intel d525mw motherboard, on which I have ubuntu server.
When I go to reboot my machine, it goes to the restart prompt and then just hangs there.
I have also noticed this when I had freebsd on it.
It kills everything and drops to a shell view where the final line reads something like "[timestamp] restarting now" and then it just sits there and I manually have to reboot it.
Any idea what could be causing this?
I'm using wajig to install packages, however when i've changed my shell to zsh it turned out that zsh doesn't list all packages in completion list, for ex.
apt-get install octave[TAB]
(about 70 completions)
but when i try
wajig install octave[TAB]
or
aptitude install octave[TAB]
zsh shows only 19 completions
other shells i've tested (bash, fish) shows all ~70 completions in all 3 cases.
So is there any way to 'fix' this completion in zsh?
I use the following directive in sshd_config to detect if the user trying to login to a server is called developer, and issue a bash script to the user if that is the case:
Match User developer
ForceCommand /bin/dev_login
However, when the user tries to upload a file using SCP, they can't, as the dev_login script is interrupting the process.
Is it possible to use the
Match
directive to detect if the connection is SCP rather than a request to open a shell?
Emacs documentation states that you can use query-replace on filesets to perform find/replace on multiple files.
This lets you perform certain operations, such as visiting,
query-replace, and shell commands on all the files at once.
I've opened my particular fileset (i.e. via fileset-open) and attempted query/replace using both:
M-%
and
M-x query-replace
but can't get it to work on anything but the file (buffer) I'm currently in.
Hi guys,
This is a bit of a silly question, how do I run Thunderbird 3 which I downloaded? Well, I can get it to run by executing the 'thunderbird' shell script file. However that creates a terminal windows aswell and will close Thunderbird if it is closed.
How do I get it to open without the terminal?
Thanks.
Edit: I am running Ubuntu 9.10.
Have a maildir with tens of thousands of messages in it, about 70% of which are spam.
Would like to:
Run /usr/local/bin/spamassassin against it, tagging each message if the score is 10 or greater
Have a tcsh shell or perl one-liner grep all mails with a spam score of over 10 and move those mails to /tmp/spam
What commands can I run to accomplish this? Pseudocode:
/usr/local/bin/spamassassin ./Maildir/cur/* -tagscore10
grep "X-Spam-Score: [10-100]" ./Maildir/cur/* | mv %1 /tmp/spam
Does anyone know where plesk pulls its list of available shells under the domain setup page? I am on a box which is missing /bin/bash (chroot), though the majority of the system users on the machine have the shell:
/usr/local/psa/bin/chrootsh
On a redhat/centos machine, chrootsh is provided by the base psa package. I have also checked that chrootsh is specified in /etc/shells. I have poked around the psa database, but have not been able to ascertain where the drop down box is populated from.
Hi guys,
This is a bit of a silly question, how do I run Thunderbird 3 which I downloaded? Well, I can get it to run by executing the 'thunderbird' shell script file. However that creates a terminal windows aswell and will close Thunderbird if it is closed.
How do I get it to open without the terminal?
Thanks.
Hi all,
I want to block users from changing directories when they log in via scponly's shell. How can I do that? I need to be able to provide users with their own upload directory that only they can see and read/write. They should not be allowed to execute any code, ie, change directories or the like.
Thanks.
Hi,
Im relatively new to Ubuntu, Im wondering how easy it is to write what I think is called a shell script to make tasks a little easier.
For example I frequently connect to a server - ssh -p 123 [email protected]
Can and how could I shorten this to a shorter command like "mysite" or "connect mysite"
Thanks.
I am trying to set up Opennebula. I want to set up my local host so that I can log into my remote host without having to use the password.
I have followed the instructions in the "Secure Shell Access" section in the installation instructions. I can not log into my remote host from my local host, but I can log into my local host from my remote host.
Not sure what's going on.
Any help would be appreciated.
Thanks
I'm searching within Java files for some occurrence of a phrase:
find . -name '*.java' | xargs grep -l 'string'
How do I change this command to print to the shell all of the lines which contain a match?
Thanks!
I'm calling shell scripts inside /etc/smrsh to process incoming emails as commands for my system. As I'm seeing all incoming emails are not making it to /var/mail/spool/USER.
Is there any way I can access to the content of the emails ? some variable $1 $2 comming with the content values ?
If not, how do I access to the content of the emails received ?
thanks guys
Say you have a directory with tens of thousands of messages in it. And you want to separate the spam from the non-spam.
Specifically, you would like to:
Run spamassassin against the directory, tagging each message with an X-Spam-Flag: YES if it thinks it's spam
Have a tcsh shell or perl one-liner grep all mail with the flag and move those mails to /tmp/spam
What command can you run to accomplish this? For example, some pseudocode:
/usr/local/bin/spamassassin -eL ./Maildir/cur/* | grep "X-Spam-Flag: YES" | mv %1 /tmp/spam
I've set up a little media center computer running Arch Linux.
I want to eventually get it so that there is no keyboard or mouse required. Right now I want the solution to be SSH. My problem is that when I do something like mplayer movie.mpg over an ssh shell, I'll just get vo: couldn't open the X11 display ()!
How do I get this to work correctly and play on my TV(the display the media center computer is hooked to)?
I'd like to ask how is it possible to add quotes in VB.
I'm trying to run command which contains quotes..
example:
Shell("cmd.exe")
SendKeys.Send("cd "c:\users\abc def" ") <<<<--- this line
SendKeys.Send("{ENTER}")
there is an syntax error.
the problem is that I need to add quotes to some commands as there is a space in folderpath.
As a beginner in VB I'm not really sure how to describe the poblem correctly so I hope you can see the it in my example :/
Thank you all in advance
Hi,
I have a cPanel reseller account. I am trying to connect using SSH. Using Tunnlier or PuTTy i get "Shell Access is not enabled on your account.".
I have enabled it for my account; generated Public/Private keys, Authorized the public key.
I don't know what else should I do?
There is a cool vim script
http://vim.wikia.com/wiki/Highlight_multiple_words
I found the script today.
This script is what I want exactly.
It works well with gvim 7.2(Both of Windows and Linux)
But I wish I can use it on linux shell too. But It doesn't work.
Is it possible? or is there another script we can use.
Thanks.
I am running ubuntu on various computers on a home wireless network. Some are on 9.04x64, some 10.04x64 and one 9.04x32.
Running scp with a large file starts out at 2.1 mbps and drops down to about 200k, stalling and dropping until the transfer is complete. I've noticed this when I have a secure shell open on any of these servers as well.
I have tried this with 2 different routers, both brand new, different brands.
I have PostgreSQL 8.4 and 9.0 running on the same server (Ubuntu Lucid).
I installed them both via apt-get (8.4 with the default package sources, and 9.0 after adding the ppa from https://launchpad.net/~pitti/+archive/postgresql).
When I run a command like "createdb" from the command line or start up the "psql" shell, PostgreSQL version 8.4 is used by default on my system.
So, how do I force these commands to use PostgreSQL 9.0 instead of 8.4?
Have a maildir with tens of thousands of messages in it, about 70% of which are spam.
Would like to:
Run /usr/local/bin/spamassassin against it, tagging each message if the score is 10 or greater
Have a tcsh shell or perl one-liner grep all mails with a spam score of over 10 and move those mails to /tmp/spam
What commands can I run to accomplish this? Pseudocode:
/usr/local/bin/spamassassin ./Maildir/cur/* -tagscore10
grep "X-Spam-Score: [10-100]" ./Maildir/cur/* | mv %1 /tmp/spam
I have problem with installing apache on the ubuntu server running on virtual machine. (one of the so called cloud hosting)
Installation went smooth apache is started but I can't access it through http://84.51.250.58[this is not a link] (just to see first "It works!" page) nor I can ping let say google.com using shell from remote viewer.
It's brand new installation, it should work or am I missing something?
Most advice for Mac is written assuming you use the Bash shell. If I switch to zsh, how incompatible do I become with current Bash scripts that I have on my system, and advice people on SU give me?
Does the #!/bin/sh line at the beginning of my scripts help?