Tag Info

New answers tagged

0

To put it very simply: $ lspci | wc 17 206 1509 $ sudo lshw | wc 439 1464 19370 The lspci command only lists devices that are connected via the PCI bus. The lshw and lshw-gtk (the same thing but with a GUI) on the other hand, provide exhaustive information about all hardware in your system. This will include the motherboard, CPU, ...


1

lshw lists all computer hardware and lspci list devices connected to the computer. From Ubuntu manpage: lspci is a utility for displaying information about PCI buses in the system and devices connected to them. lshw is a small tool to extract detailed information on the hardware configuration of the machine. It can report exact memory ...


0

This is related to mouse integration (that get enabled by default after having installed guest additions). If you disable mouse integration from Machine menu, hot corners will start to behave correctly, otherwise Virtualbox will kick-in and the corner inside the guest is never really triggered.


0

There is an unofficial command line interface for Toggl here: https://github.com/drobertadams/toggl-cli


1

First use the following command in your terminal: bind '"\ew": vi-forward-bigword' to create a new shortcut-key - Alt+w in this case - which will move the prompt forward to the end of the current or next word. In this case words (bigwords) are composed of letters, digits and special characters like ".". Now use Alt+w followed by Ctrl+w to accomplish what ...


1

First define a shell function: $ shortinfo() { mediainfo --Inform="General;Duration=%Duration/String3%\nFile size=%FileSize/String1%" "$@"; mediainfo --Inform="Video;Resolution=%Width%x%Height%\nCodec=%CodecID%" "$@"; } Now, use this shell function on your video file. For example: $ shortinfo sample.mp4 Duration=00:00:10.027 File size=13 MiB ...


0

I was helping a friend with their RiotBoard running Linaro-Ubuntu to set it up as a minecraft server. We got the same error. The problem I found was that Java was referencing /lib/ld-linux-armhf.so.3 which does not exist on the system. When you look at /lib the only load file is /lib/ld-linux.so.3 so I just soft link them and it works. Below is how I worked ...


0

Fixed! The problem was that Java was referencing /lib/ld-linux-armhf.so.3 which does not exist on the system. When you look at /lib the only loader file is /lib/ld-linux.so.3 so just soft link them and it works. Below is how I worked it out and what I did to fix it. Enjoy root@linaro-ubuntu-desktop:/opt/java/jdk1.8.0_06/bin# java -su: /usr/bin/java: No ...


0

As per my knowledge The file: /etc/environment Is the correct place to specify system-wide environment variables that should be available to all processes. See https://help.ubuntu.com/community/EnvironmentVariables for details. Note that this is not a script file but a configuration file.


0

Problem is you have included bin/ folder in your JAVA_HOME path. Remove it, so that your JAVA_HOME should look like usr/iib/java/jdk1.8.0_31 i.e JAVA_HOME=/usr/iib/java/jdk1.8.0_31/


2

Open the terminal and use the cd command to change directories to the directory where the mongodb-linux-x86_64-2.6.3.tgz file is located and the run the following command: tar xzf mongodb-linux-x86_64-2.6.3.tgz The above command will extract the contents of the mongodb-linux-x86_64-2.6.3.tgz archive while preserving the archive's hierarchical tree ...


1

There is a out-of-the-box solution for this in Ubuntu. It is called gedit. Open a terminal by pressing Ctrl+Alt+T and enter geditEnter Then type all the characters inside gedit. They will all be recorded. After you are done, save recorded characters File > Save under the menu. Hope this helps


0

Yes, Shibhansh Dohare - there is a way to do exactly as your asking! It is called a "Hardware Keylogger" Hardware keyloggers are used for keystroke logging, a method of capturing and recording computer users' keystrokes, including sensitive passwords. They can be implemented via BIOS-level firmware, or alternatively, via a device plugged inline between a ...


0

To change the colour of the prompt to red for root, I modified the .bashrc file, following the examples in this thread. regularuser@myubuntubox:~$ sudo su - root@myubuntubox:~# vim .bashrc Then, in vim, search for the final appearance of PS1 assignment, and add this following it: # Set RED prompt PS1="\[\e[01;31m\]$PS1\[\e[00m\]"


0

First download the .tar.gz version of Flash player from Adobe. Now unpack this .tar.gz file in your home directory, open terminal and type: sudo cp libflashlayer.so BrowserPluginLocation Now copy the Flash Player Local Settings configurations files to the /usr directory by typing : sudo cp -r usr/* /usr NOTE: In my case BrowserPluginsLocation was ...


0

Pure command line based method: echo "[Desktop Entry] Name=Vim Text Editor Comment=Edit text files Exec=vim %F Terminal=true Type=Application Icon=vim Categories=Utility;TextEditor; StartupNotify=true MimeType=text/plain;" > ~/.local/share/applications/vim.desktop cp /etc/gnome/defaults.list ~/defaults.list.bak # backup sudo sed -i "s/gedit/vim/" ...


0

The probable reason for this problem is you have some incorrect entries in your ~/.bashrc file. This file is read by the bash, whenever you start a new terminal.(See Bash Startup Files for more detail) It may happen that you have entered some incorrect value in this file accidentally or you are executing any script through this file, which is throwing ...


0

The two answers I've liked best to solve this are using expect and this one where they recommend using the --init-file flag either in the shebang or when executing the terminal: #!/bin/bash --init-file commands to run ... and execute it as: xterm -e /path/to/script # or gnome-terminal -e /path/to/script # or the-terminal -e bash --init-file ...


0

This answer gives the best answer I've seen so far to doing what you want. They recommend making a script with the commands to execute and use it with the --init-file parameter (bash specific, but you could probably do the same for csh/tcsh/zsh, etc): #!/bin/bash --init-file commands to run ... and execute it as: xterm -e /path/to/script # or ...


1

tar is the Swiss army knife of extracting archives. It can handle many different archives, such as tar.gz, tar.xz, tar.bz, tar.bz2, tar.lz ... Your command contains the following three options: -x = extract -z = gzipped archive -f = get from a file, not a tape drive To find more help on tar, enter tar --help or man tar in your terminal. So your ...


1

You found a bug in the Bash Completion library used by Ubuntu. What does this mean? Ubuntu uses a bash completion library to make bash completion smart. This library lives in /usr/share/bash-completion/bash_completion. Essentially, this library declares a few clever functions that know about typical commands and how to complete them. Whenever you press ...


0

Maybe for long action, you'll be lucky scanning regularly for instance the "ps ax" results, but no warranty for short actions... (and also won't work neither for the "selected this element", nor "clicked on this icon") What is your real need ? Is it a kind of spy ? or is it to replay some actions (like for regression tests) ? [then look at robots or ...


0

You can change the police and default colors throw the preference panel (edit-preference) (assuming you are talking about windows terminal like xfce4-terminal or xterm)


1

The other answers provided are quite good, but I would like to give an example and explain more of why it is used for installations. First of all, like the others have explained. tar -xzf is just a method for extracting. In installation instructions they will usually tell you the options to use since different options will be required for different archive ...


1

The directory contains a file called android, so presumably what they mean is run ./android sdk (unless . happens to part of your PATH). Also see: How to add a directory to my path?, so that you don't need to navigate there and run ./android.


0

Easy. Go to a terminal Ctrl+Alt+T and type lsmod. This command lists all modules (a.k.a. "drivers") on your system. Please look for the video module in this list. Found it? OK??? Now type: lsmod | sort. Look for the video module now and the sort command has just become one of your most favourite commands!


0

Here the steps: Open up Terminal. Type cd /etc/apt Type sudo gedit sources.list In the editor, replace all the country domain names with your country domain. For instance, if you have lines like following: deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted replace us ...


0

Based on the literature, HTML 404 error means that your computer can communicate with the remote server but the server can not provide the file that is requested. It seams that the internet connection is OK. The solution would be mentioned in your error message as: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Make ...


0

Packages you are trying to install (i.e chkconfig and sysv-rc-conf ) are in Universe Repository ( chkconfig, sysv-rc-conf ). So you have to enable the Universe Repository so that you install software from it. To enable it Open Software Sources Under Ubunut software tab ,check the option "Community-maintained free and open-source software (universe). ...


0

As you can see here http://packages.ubuntu.com/lucid/sysv-rc-conf that package is in the universe repository. Make sure you have a line in your /etc/apt/sources.list that looks like this: deb http://en.archive.ubuntu.com/ubuntu/ lucid universe Then run apt-get update to update your package list. The package should then be installable.


2

Edit your ~/.bashrc file and add this at the end: function cfinfo(){ cf target | awk '$1=="Org:"{printf "%s-", $2} $1=="Space:"{print $2}' } That function generates the string IB-Production depending on the output of the command cf target -s production. Then add this after that function definition in ~/.bashrc: ...


0

I just use sudo -i to log in as root on a local machine's terminal.


0

the 3 terminal codes are the right ones to get the hashes. if you verify the hashes with them it is impossible for 1 hash to match and the others not to. 2.they didn't match because i used the md5 checking code correct but for the other two i used: sha1sum dev/cdrom and sha256sum dev/cdrom. I checked the dvd again with the correct terminal commands and ...


0

If sparse files are ok for you (e.g. you want to create an image in order to populate it with a file system), they are created in no time at all 100GB take 3 milliseconds: # time dd if=/dev/zero of=tmptst.dat bs=1G seek=100 count=0 0+0 records in 0+0 records out 0 bytes (0 B) copied, 0,00037726 s, 0,0 kB/s real 0m0.003s user 0m0.000s sys 0m0.002s ...


1

tail uses inotify which does not work with overlayfs See this bug report and this discussion. @Xen2050 pointed out the ---disable-inotify switch to tail See this workaround You could use apt-src to install the coreutils source, and recompile tail with -UHAVE_INOTIFY


0

Fantastic question! I've already added: alias grey-grep="GREP_COLOR='1;30' grep --color=always" alias red-grep="GREP_COLOR='1;31' grep --color=always" alias green-grep="GREP_COLOR='1;32' grep --color=always" alias yellow-grep="GREP_COLOR='1;33' grep --color=always" alias blue-grep="GREP_COLOR='1;34' grep --color=always" alias magenta-grep="GREP_COLOR='1;35' ...


2

On the terminal type: sudo service lightdm restart


0

This is bad, but if you want to do it go to a terminal and.. sudo visudo Add this where username is your username. Then save/exit. username ALL=(root) NOPASSWD: /usr/share/terminator


0

It sounds like you are opening a terminal with admin rights, instead of a standard terminal. You should only use this if you need to perform tasks that require this level of privilige, e.g. installing or updating software. If you can't find the regular terminal from the menu, then pressing CTRL + ALT + T will give you a terminal with your normal user ...


0

Write a shell script that initiates your Python script and add that SHELL script in start-up program list for starting it automatically every time you reboot. Shell Script: Execute a python program from within a shell script. One more helpful Link : How to run the Python program in the background in Ubuntu machine? To run it every time on reboot : How to ...


0

Of course it should be possible :) Open the Terminal and execute the following command to disable it: dconf write /org/gnome/settings-daemon/peripherals/keyboard/repeat false If you want to set it to default value, use reset option as following: dconf reset /org/gnome/settings-daemon/peripherals/keyboard/repeat From man dconf: dconf write KEY VALUE ...


1

First of all Quantal is an end of life Ubuntu release and not supported now, So upgrade your system into any supported release . And solution for this problem is already discusseed here, but putting a / after ubuntu in the gazebo-latest.list (i.e deb http://packages.osrfoundation.org/gazebo/ubuntu/ quantal main) should also work. (Note: you will still get ...


0

the problem with the command cp -a /path/from /path/to is that it will do a recursive copy which means it will copy the source directory (in your case "/path/from") and everything beneath it. what you want is a command to recursively copy the "21-01-2015" directory within "from". The command you should be using is: cp -a /path/from/21-01-2015 /path/to ...


0

You can try this command: cp -a from/$(ls from | grep ^[0-9][0-9]) to/


0

cp -a /path/from/* /path/to will copy the contents of /path/from, not the directory if you have other files/dirs in /path/from, and only want to copy the one, you'll have to come up with a pattern to match it.


0

Other users would need to open their own session. Then, each user can move around each window or split, on a per session basis. For navigation hot keys, see the help page with Shift-F1: F2 Create a new window Shift-F2 Create a horizontal split Ctrl-F2 Create a vertical split ...


1

You should clean out your byobu configuration directory. It will be recreated on the next startup. rm -rf ~/.byobu Full disclosure: I am the author and maintainer of Byobu.


0

I just ran into the same problem (actually on Cent OS via VirtualBox) and the problem was permissions related. I had a shared directory with my local machine (a Mac on OSX Mavericks), attempted a cp and it balked on Protocol error. In my local machine I changed the owner of the directory to the regular user (me) (from root) and the group to something more ...


1

This solution works flawlessly OK. So building up on my previous answer, here is a solution that works right out of the box without any hassle. First, install this plugin in Vuze: Azureus HTML WebUI Now, go to your browser and open http://localhost:6886/. This is a web UI for controlling your Vuze. Here, you can see that to pause/resume downloads, you ...


0

Using lsof <file> seems to work too. For example, if I have synaptic running (live): $ sudo lsof /var/lib/dpkg/lock lsof: WARNING: can't stat() tmpfs file system /cow Output information may be incomplete. lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/999/gvfs Output information may be incomplete. COMMAND PID USER ...



Top 50 recent answers are included