I have a head unit that runs Linux that is connected to my PC via an Ethernet cable. I have a Windows XP share on this PC that the head unit needs to be able to mount, however, when mounting using the following command, it fails.
Here is the command that fails, along with the verbose output:
# fs-cifs -vvvvvvvvv -l //CUMBRIA-XP:192.168.1.2:/hnet…
I'm a bash user willing to switch to a more friendly and advanced shell. I read a lot of good things about zsh, but I gave a quick test at fish and it seems great too.
Both seem very close in term of features, what is your opinion about those two shells especially as regards shell programming?
I tried to scp an svn dump to savannah, but I got the following error at the end.
Permission denied (publickey).
lost connection
The scp command and verbose output are below. Any ideas?
[wcyang@be2-wireless-pittnet-60-37 ~]$ scp -v diffcolor-dump.bz2 wcyang@dl.sv.gnu.org:/srv/download/diffcolor/
Executing: program /usr/bin/ssh host…
I have deployed the Bitnami Ubuntu Joomla! 3.1.5-2 (64-bit) stack on Amazon Cloud:
http://bitnami.com/stack/joomla/cloud/amazon
By default, the stack is configured to run PHP using PHP-FPM. I have no problem getting the Joomla and phpmyadmin running as virtual hosts on Apache.
But now, I would like to add another virtual host. The…
I have a folder named docs, how do I add rwx permissions for group devs to docs?
I tried:
chmod -R g+rwx docs
but I don't know where to specify that it's the devs group I want to grant permissions for.
I am trying to enable X11 forwarding on my server which is running on FreeBSD 7.1.
I have a putty installed in my windows in which i have enabled X11 forwarding by
checking on Enable X11 forwarding
and specifying following parameter
X display location localhost:0
after that i run putty and checked whether X11 is…
It's very weird but when setting a git repository and creating a post-receive hook with:
echo "--initializing hook--"
cd ~/websites/testing
echo "--prepare update--"
git pull
echo "--update completed--"
the hook runs indeed, but it never manage to run git pull properly:
6bfa32c..71c3d2a master -> master
--initializing…
On *nix, PIDs are unique identifiers for running processes. How are PID's generated? Is it just an integer which gets incremented or a more complex structure such as a list? How do they get recycled? By recycling I mean that, when a process terminates, it's PID will eventually be reused by another process.
Hi, I need sudo for a command for any path under a particular area. Example:
sudo mycommand /opt/apps/myapp/...
What is the sudoers syntax to allow this command to run in any path that falls under /opt/apps/myapp? This is Solaris 10 sudo.
Thanks.
I have defined a function in vim to properly indent folds. Ie so they look like this:
Unfolded
this is text
also text
indented text
indented text
not indented text
folded with default function
this is text
also text
+-- 2 lines: indented text ----------------------------
not indented text
folded with my new…
Choosing the right format to save your images in is crucial for preserving image quality and reducing artifacts. Different formats follow different compression methods and come with their own set of advantages and disadvantages.
JPG, for instance is suited for real life photographs that are rich in color gradients. The…
I'm trying to set up a shell script so that it runs background processes, and when I ctrl+C the shell script, it kills the children, then exits.
The best that I've managed to come up with is this. It appears that kill 0 -INT also kills the script before the wait happens, so the shell script dies before the children…
I would like to unzip individual files. These files have a .txt extension. These files also live within multiple zipped files. Here is the command I'm trying to use.
unzip -jn /path/to/zipped/files/zipArchiveFile2011\*.zip /path/to/specific/individual/files/myfiles2011*.txt -d /path/to/home/directory/for/extract/
…
I have been using the command:
reset
to clear my terminal. Although I am pretty sure this is not what I should be doing. Reset, as the name suggests resets your entire terminal (changes lots of stuff). Here is what I want:
I basically want to use the command clear. However if you clear and then scroll up…
I seem to have deleted some files on my media drive, simply by changing the permissions.
The Story
I have many operating systems installed on my computer, and constantly switch between them. I bought a 1TB HD and formatted it as HFS+ (not journaled). It worked well between OSX and all of my linux…
Hi,
I am trying to get started with Linux.
There are number of books (many of which are just man pages), some of them provide good overview so I can dig deeper online then.
What I would like is to find number of screencasts that would cover basics of Linux commands, server administration,…
Hi All,
I am using ubuntu system which uses openldap for user login authentication. For changing my login password i used "$sudo passwd" and changed it. (of course the password given is same as old one). Then onwards when i trying to run "apt" command it showing command not found. and for…
I have a cluster that I manage and from time to time I get emails from each node (and head node) begging to be restarted after an automatic upgrade.
Currently, my best solution so far is a shell script like:
$> cat cluster_reboot.sh
ssh root@node1.host.edu reboot
ssh…
I keep trying to install django and other python packages, and I keep getting the exact same error message:
Installing django-admin.py script to /usr/local/bin
error: /usr/local/bin: File exists
So I look to make sure that my /usr/local folder is okay. At first glance it…
I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying to a remote host, e.g. I do
scp foo host
instead of
scp foo host:
…
I have written a script that does this but it is one of my first scripts ever so i am sure there is a better way:)
Let me know how you would go about doing this.
I'm looking for a simple yet efficient way to do this.
Here is some important background info:
( It might…
I am writing a script that gets called when a user logs in and check if a certain folder exists or is a broken symlink. (This is on a Mac OS X system, but the question is purely bash).
It is not elegant, and it is not working, but right now it looks like this:
…