Tag Info

New answers tagged

0

Run bleachbit from terminal as SUDO and clear system cache. I had the same problem and that resolved it.


0

Viewports versus workspaces As pointed out in this answer, there is an essential difference, in the way the desktop and the different "working areas" are defined, between Compiz/Unity and other window managers. If we look at Xubuntu (XFCE), all workspaces are separate spaces. To find out the location and placing of a window, the only thing we need to know ...


2

I'm running the command ... in ConEmu, if that changes anything. It changes everything. That's how your terminal emulator renders the character that's send for CtrlC (End-of-text, or ETX, hexdecimal 0x03). You can try this out with printf '\x03'. Switch to another if you find it annoying, but I don't know if any emulators in Windows don't have this ...


0

Thank you all for your suggestions! What I need was --no-directories parameter to wget. Then I get one directory with all files I need (html file, images, css files). Sorry, the question wasn't well formulated.


0

I've same problem , I've installed Ubuntu 14.04, and with I've setup broadband connection, windows 7 allow all internet access, but Ubuntu 14.04 some application access via internet, I can't access Firefox browser and Terminal command line via internet, when running this application then showing me proxy setting...


0

I'm not too sure whether that option is available. But I can suggest you a solution. You can write the output(the data you have quoted) of the terminal into a libre office text file and perform filter of the necessary details you need in the software. To write the output of terminal to text you can check this here


0

Can also use aptitude from the commandline sudo aptitude search xxxxx


0

The second and third lines of your script are unnecessary. Your script should look like this: #!/bin/sh java -Xmx1024M -jar craftbukkit.jar -o true Here's a breakdown of what each line of the script does: #!/bin/sh This line causes your script to be invoked by /bin/sh, which is (in the case) the bash shell java -Xmx1024M -jar craftbukkit.jar -o true ...


5

You might want to have a look at hardinfo - HardInfo can gather information about your system's hardware and operating system, perform benchmarks, and generate printable reports either in HTML or in plain text formats. HardInfo performs CPU and FPU benchmarks and has a very clean GTK-based interface. To install : sudo apt-get install hardinfo


0

Your problem is that running sudo apt-get remove python-minimal removed all packages that depend on it. You could not use them anyway and you said you know what you are doing (by typing sudo), so Ubuntu just saves disk space. All programs that came pre-installed in Ubuntu can be reinstalled running sudo apt-get install ubuntu-desktop. It fixed when I ...


2

So is the question how does one substitute literal backslash-n's? If so, it can't be done with tr, since tr only works on single characters. Here's how to do it in sed (string editor): $ cat test1 hello \n\n\n how are \n\n you $ sed -e 's/\\n/ /g' < test1 hello how are you note the extra backslash needed to tell sed we're looking for a literal ...


4

Do an apt-get install ubuntu-desktop. This will reinstall all the packages part of the default setup.


1

One thing you can do is back up your profile and then simply remove the manually installed Firefox 34. I don't know what steps you took to install Firefox manually, so I'm afraid I can't be much of a help with the removal step. Step 1: Back up your Firefox profile: First step you'll want to do is go into your .mozilla folder in the home directory. You ...


2

Undo all the changes that you made and install Firefox using sudo apt-get install firefox. If you are using Ubuntu 14.04 this command will automatically upgrade your Firefox to version 34 which is the latest version.


1

@Rinzwind Has answered me. The usb mounted was in vfat and It doens't accept symbolic links. So the solution was reformat it to ext4 and now I can create the symbolic links


1

Have you tried symlinking the php binary from /usr/bin? This is the command to achieve that (in your case): sudo ln -s /opt/lamp/bin/php /usr/bin/php


0

Nevermind, I found a solution to this issue adding the command 'uniq' as in sed -nf /path/to/patterns_file /path/to/lists/* | uniq > result_file Thanks anyway to those that took the time to read and help.


1

If you just want to rescue your data, proceed this way: Start Ubuntu from USB or DVD. It will run a fully working live system. No need to install or modify any partition! The rescue system is meant to repair Ubuntu. not Windows. After it has booted up, you can start the file manager. It should show your harddrive and you will be able to browse it's ...


1

To my own surprise, it can be done. In the 45 minutes I tested it, it worked quite well actually, and didn't fail on me once. Nevertheless, it should be considered an experimental option, since it is done completely "from outside", so to speak, with the help of xprop, wmctrl and xdotool. To use it, you will have to accept a few peculiarities: it works well ...


0

I assume you're using something later than Trusty. This isn't a problem in Trusty as gfortran is still at 4.8. Assuming a downgrade isn't a real solution, I'll just show you how Trusty has things laid out. You might want to check it's similar in whatever you're running to make sure my conclusions are sound: $ dpkg -S $(which gfortran) $(which gfortran-4.8) ...


0

What you can do is create a symbolic link (or a "shortcut") for gfortran-4.8 and name the shortcut gfortran. First, find out where gfortran-4.8 is actually located. You do that by running the command which gfortran-4.8. Let's say you get an output like this: /usr/bin/gfortran-4.8 What you would do is execute the following command to create the shortcut: ...


0

This finds the size recursively and puts it next to each folder name, along with total size at the bottom, all in the human format du -hsc *


0

Strange, the "accepted" answer didn't work for me as I got chsh: PAM: Authentication failure To solve this issue edit your /etc/passwd and make sure it points to the zsh location. (You can find this by running "which zsh") In my case my user called "webmaster" looked like this:


0

Bash fancy menu Try it out first, then visit my page for detailed description ... No need for external libraries or programs like dialog or zenity ... #/bin/bash # by oToGamez # www.pro-toolz.net E='echo -e';e='echo -en';trap "R;exit" 2 ESC=$( $e "\e") TPUT(){ $e "\e[${1};${2}H";} CLEAR(){ $e "\ec";} CIVIS(){ $e "\e[?25l";} DRAW(){ $e ...


0

Paul was mostly right. This expanded solution works as of Ubuntu 14.04.1 with GNOME Terminal 3.6.2. For all versions: Add the following code to ~/.config/gtk-3.0/gtk.css: VteTerminal, TerminalScreen { padding: 10px 10px 10px 10px; -VteTerminal-inner-border: 10px 10px 10px 10px; } Kill all instances of gnome-terminal: $ killall gnome-terminal ...


1

It seems you have a bigger problem with your websites because the errors from running that command sudo chown -R $OWNER:$OWNER should be this: chown: missing operand after ‘:’ Try 'chown --help' for more information. Basically stating that the command does absolutely nothing because it makes no sense as no file was specified (missing operand) and ...


0

The best one I think is the following: du -h directory_name | tail -n1 This will show you only the size of the directory that you are interested in and will not print sizes of any directories and files inside that directory. I should add that if the size of the folder is large then du takes longer time. You must be patient for this command to work. Just ...


1

If you want to install it "over" your existing vanilla installation, you can do that through the software center. It's called ubuntu-gnome-desktop. You can also install this by opening a terminal and typing the following commands sudo apt-get update sudo apt-get install ubuntu-gnome-desktop


0

It looks like previous apt-get was not closed properly, so that dpkg (package manager) database is not in right shape. Try following command to fix them. $ sudo apt-get -f install


0

Unlike windows, Linux is case sensitive. Use this: cd Software instead of: cd software because "software" does not exist but "Software" does.


0

You can also install msmtp and follow the instructions described in the ArchWiki


0

apt is an actual command in 14.04 and it relates to apt-get and friends as can be seen here: :~# apt apt 1.0.1ubuntu2 for amd64 compiled on Oct 28 2014 20:55:14 Usage: apt [options] command CLI for apt. Basic commands: list - list packages based on package names search - search in package descriptions show - show package details update - update list of ...


-1

To find out the users on the server, run the following commands cd /home ls You can then see the users who have authorization to log into the server. If we want to look into the files of any users, you must be the root user.


0

I'm a MATE user (under Linux Mint), and this issue was also window compositing for me. To turn it on in Mint 17/MATE, go to Menu -> Desktop Settings -> Windows, and check off the box that says "Use compositing", then restart mdm or reboot your machine.


0

1) You can use | more and scroll with space or down arrow. like this: /# ls /etc/ | more 2) For sorting by file size use ls -lS or ls -lSh for print sizes in KB MB or GB. If you wanna invert the result, use -r switch. ls -lShr For more arguments ls --help


1

The man page for apt-get has the following information - remove remove is identical to install except that packages are removed instead of installed. Note that removing a package leaves its configuration files on the system. If a plus sign is appended to the package name (with no intervening space), the identified ...


2

apt-get remove removes the package in question apt-get purge is equivalent to apt-get remove --purge and will remove user data/configuration files. From man apt-get: purge purge is identical to remove except that packages are removed and purged (any configuration files are deleted too). and --purge Use purge instead of remove for ...


5

There are multiple answers here, depending on what you want (this answer is valid in bash and zsh shells, others may vary). If you need to run a command in background and you know it before running it, simply add a & at the end of the command (using sleep 60, do nothing during 1 minute, as example command): [romano:~] % sleep 60 & [1] 9054 1& ...


2

add & to the command. Example: $ cp FromA ToB &


0

If you want it more advanced, and want to be able to use the session later locally vor by SSH, you can use screen. #screen #apt-get update -y Then press CTRL+A followed by D Later you can reattach: #screen -rd


2

This example will run updates in the background: sudo apt-get dist-upgrade -y & Just note the singe &. If you want to hide the stdout, do following: sudo apt-get dist-upgrade -y > /dev/null &


0

Terminal Server is not shipped with official Ubuntu 12.04,14.04 by default. But it is available via Alternate install CD. You can find iso for Ubuntu 12.04 here There is a lot different tutorials/instructions that you can google by yourself. It will take too long to write a good installation answer here, and also too long to test it. That's why I will vote ...


1

The issue is that echo file.gz just echoes a string "file.gz". Basically the difference between the commands is: What you want: gunzip /path/to/directory/file.gz What you're giving it with the echo: gunzip "file.gz" However, even this isn't entirely correct. The true difference is that instead of a reference to the file file.gz you're sending in only ...


1

best I could find on my own (and I'm a newbie) was just running 'apt-get check' for a clue as to how things turned out following an install. Also running 'script' prior to running an 'apt-get install' will capture all the output from the command to file so that you don't have to worry about it scrolling away.


0

Seems to me the application is not parsing multiple commands, abut treating it as a single command. As such make it a single command by wrapping it a shell call... bash -c 'xdotool type date; xdotool key Return' Now you can also do other shell things... bash -c 'xdotool type "`date +"%Y-%m-%d_%T`"' Note that the "date" command used in that last ...


1

rmdir removes empty directories, not files, and not directories unless they are empty. rm will remove files and/or directories, use the -R or -r flag for directories. To remove non-empty directories: rm -rf the option --dir is the same as -d , it will remove empty directories, same as rmdir As far as I know the commands do the same thing and it is user ...


0

If not available in your system cd ~/bin; wget http://sdjf.esmartdesign.com/files/rgrep; chmod +x rgrep Edit it and modify the line args=${args:--His} To this version: args="${args:--His} --color=auto" if available, the same or similar file is to be modify (use find) or if not possible, you can overload like upper. (take care about PATH)


1

I believe you are looking for something like this: ls -d /home/$USER/Documents/*/ it will list all dirs in Documents. The last "/" makes it "directories" only.


0

From your edit, it looks like you have two instances of the openJDK installed. If you want them to match, you have two options: Uninstall the one you don't want. E.g. if you want open-jdk7 but not open-jdk6 do sudo apt-get remove --purge openjdk-6-* Update the alternatives for java using sudo update-alternatives --config java and pick the one you want. If ...


1

All you need to do is quoting the variable, since it contains a space character. cd "$geo" Quoting variables which might contain spaces is always good practice in shell code.



Top 50 recent answers are included