Tag Info

Hot answers tagged

3

You should take a look at apt-get install --reinstalland specify --force-confmiss as option - but this only reinstalls missing config files. apt-get --purge before will remove those config files. Explained here: http://askubuntu.com/a/67028/329633 and here: http://www.microkwen.com/2008/09/16/force-apt-get-to-reinstall-config-files/ and here: ...


3

The su binary is provided by the login package. You can reinstall it and get your su back by running apt-get install --reinstall login This assumes that you have root access of course but since you said you still have a root session open, that shouldn't be a problem.


2

If you're happy to build from source, you can install each version into a separate prefix, then adjust the path in your scripts accordingly. bash, fish, ksh, tcsh, zsh, and dash all support the --prefix argument to configure, so you can download each version, run ./configure --prefix=/opt/SHELL-VERSION; make; make install. Then to use each version, set PATH ...


2

According to the POSIX standard, environment variables are just plain strings with no associated data types. However, as an extension, some shells like bash, ksh, ksh93, zsh and others allow their variables be typed, like being numeric, an array. Read-only variables or pre-formatted ones might also be supported. They are commonly typed with either the ...


2

You're close. First, the M4 variable needs to be set to the path to the actual M4 program file, not to the directory it lives in. Probably a more common use for this variable than your case is to select among multiple M4 programs that are already in the PATH, so you need to name the actual executable. It's common on BSD type OSes to have the platform m4 and ...


2

Easiest way apt-get install firefox this will update to new one or which firefox this will give you path of firefox then replace the same sudo ln -fs $HOME/Desktop/firefox/firefox /usr/bin/firefox For Ex. which firefox /usr/bin/firefox sudo ln -fs $HOME/Desktop/firefox/firefox /usr/bin/firefox


2

There are two ways to fix this: You can alter your $PATH variable so that the directory where the new firefox version lives is checked before any other directory, by running the command export PATH=$HOME/Desktop/firefox:$PATH And if you add that same command to your .bashrc, all your future sessions will have the new PATH too. You can use ln to symlink the ...


1

Why you downloaded the version, you apparently did not install it in one of the directories in the PATH variable. When you execute simply 'firefox' it will find firefox in the first directory using the PATH directory. If you execute firefox with a more fully qualified name it will use whatever is found in that SPECIFIC directory only. The easiest thing to ...


1

In shell scripting, there is only one data type. Everything is text. Different commands may variously interpret the text to suit their needs: $ [ "1" -eq "01" ] && echo yes || echo no yes $ [ "1" = "01" ] && echo yes || echo no no The first test interprets 1 and 01 as numbers (the second probably as an octal number). The second test treats ...


1

apt-get is for debian-based distros, yours is based on red hat and has yum for software management. you should just do sudo yum install vlc and it will download and install vlc and all of its dependency's for you. P.S.: read trough this faq for understending how to work with your linux distro, it is for Fedora users, but most of it should be the same for ...


1

You can use - if you can get the initial right to do so granted to you - the linux kernel's User namespaces. In a user namespace a user can be apportioned a piece of a disk and run a full-fledged container within as a super-user without otherwise affecting the parent environment. You will need a 3.8 or later kernel, some linux-savvy, and the initial setup ...


1

Installing the Dropbox deb files from the Dropbox website (Ubuntu or Debian, I have not tested others) will not install Nautilus, although gdebi says a Nautilus extension will be installed. Installing just Dropbox from Ubuntu sources in Synaptic or in terminal will neither install Nautilus. File manager integration is also provided in Synaptic (Ubuntu ...


1

Your configuration seems ok to me (you normally only have to override the sensible defaults in ./configure), you would normally include the build step (make). From the FAQ file included in the downloaded 1.2.8 archive: 13. How can I make a Unix shared library? By default a shared (and a static) library is built for Unix. So: make distclean ...


1

The command 'chmod +x filename' does not install anything, it just sets the "executable" attribute on file. If you write a shell script with the filename 'myscript' and then you do 'chmod +x myscript' then instead of doing 'sh myscript' to run it, you will be able to do so with only 'myscript' (assuming the file is in a directory in your path). That being ...


1

Because jasonwryan hasn't posted an answer that I could check as the right one, I'm aswering my own question with his comment-answer. The chruby tool with it's autoswitcher worked great. Again thanks Jason.


1

Install RVM and use the following: rvm install 1.9.3 rvm use 1.9.3 --default gem install pdfbeads # Avoid sudo, will not fix real problems here.


1

According to the Gentoo wiki page on troubleshooting, most of such cases can be resolved by emerging the latest package with, say, emerge --ask --oneshot package-name.



Only top voted, non community-wiki answers of a minimum length are eligible