Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I try to use dos2unix command on unix machine but it gives me error like --
data_load]$ dos2unix a.csv a.csv
-bash: dos2unix: command not found
Then i use ---
data_load]$ yum search dos2unix
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
=================================================== N/S Matched: dos2unix ===================================================
dos2unix.x86_64 : Text file format converter
Is there any way that i can use it and i can not log in as ROOT
You could ask your sysadmin to install dos2unix. Apparently he didn't install it yet.
You might compile it from its source code. If it has a configure script (from autoconf) you might pass a --prefix=$HOME/soft argument to that script and later add $HOME/soft/bin/ to your $PATH.
Perhaps using tr(1) might be enough...
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I've tried to install docker on my machine, following the instructions for Precise 12.04 found here.
When I try:
curl -sSL https://get.docker.com/ | sh
I get the result:
Either your platform is not easily detectable, is not supported by this
installer script (yet - PRs welcome! [hack/install.sh]), or does not yet have
a package for Docker. Please visit the following URL for more detailed
installation instructions:
https://docs.docker.com/en/latest/installation/
My kernel:
$ uname -r
3.13.0-61-generic
You can download the short installer script to take a look at why it is giving you this message:
curl -sSL https://get.docker.com/ >install-docker.sh
$EDITOR install-docker.sh
Doing that, I see several checks for lsb_release. Is your system missing that command? If so, see this to install it. Or maybe it’s not returning “ubuntu”. If you fix this, the docker installer script may work fine.
If that doesn’t work, you can hard-code a case for your OS (Mint?) in the ubuntu|debian case (line 243), like:
ubuntu|debian|linuxmint) # or maybe you’ll need here: *)
When done editing (or installing lsb_release), run the script to see if it will complete:
sudo ./install-docker.sh
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I want to automate a process of downloading a binary file from a server (HTTP) and then install it on either Solaris or Linux servers.
I use wget command followed by executing the binary file as root user.
Can we combine these two steps?
put both commands into a single script that gets executed by root
You can do
wget url | command-to-install
However, if this is a tar folder and you know how to install, you can write a shell script to do it. e.g
wget url
tar xvzf archive
./configure
make
make install
and run it as root e.g sudo ./installscript.sh
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
When I attempt to start mysqld, it gives me the following error:
./mysqld: line 3: /etc/default/rcS: No such file or directory
I want to run a mysql server on angstrom linux.
Anyone know how to do this?
I got it to work by commenting out the following line from my /etc/init.d/mysqld file:
. /etc/default/rcS
This is a quick fix I'm guessing, I am not sure what that file does so I don't know the implications of this action, but the mysql server is now working ok!
Your system is missing the file. Apparently it's part of the 'initscripts' package. You can attempt installing it with "sudo apt-get install initscripts". If it's been a while since updates: "sudo apt-get update && sudo apt-get upgrade", but maybe just the update will work. If none of that works, find one online that's suitable for your system and create it manually.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am using Ubuntu 13.04 and trying to install NERD tree plugin for Vim. As specified on all of the guides on installing vim plugins by placing the NERD tree files inside .vim/ directory, I could not find such directory.
cd ~/.vim/
bash: cd: /home/tushar/.vim/: No such file or directory
If there is any better way to install the plugin then please post the steps.
$ cd
$ mkdir .vim
$ cd .vim
$ (do your thing)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I want to update the core packages of R on ubuntu 12.04. But every time R says that it has no permissions to write to the library. Other packages with do not come with the r-core installation through the terminal. sudo apt-get install r-base are installed in my personal library. I gave myself the owner permissions of every library folder and this does not work.
So am i able to make this library writtable and if so, how can i do it? Or is there a way to Run R as administrator/root.
I already tried a lot of options from the internet but could not find what i was looking for.
Many thanks in advance!
Yes, by default R packages get installed under /usr/lib, and you need superuser privileges to install more.
So you can either run R using sudo and run commands like install.packages() from there:
sudo R
or edit your ~/.Renviron as described in this post, e.g.
$ mkdir ~/R_libs
And add this line to ~/.Renviron:
R_LIBS="/home/your_username/R_libs"