pymol wont work with nvidia-driver 352.63 on ubuntu 14.04.3

I am referring to this answer from my other answers. I had a login loop issue as mentioned here. Yours is a different issue but getting the right nvidia driver could fix it.

First uninstall the currently installed NVIDIA drivers.Boot the computer, when the GRUB menu appears ...

Highlight the Ubuntu menu entry and press the E key.Add nouveau.modeset=0 to the end of the linux line. Press F10 to boot the Ubuntu operating system.

When the login screen appears press Ctrl+Alt+F1.Enter your user name and the password, then execute :

sudo apt-get purge nvidia*
sudo reboot

Now install the latest official stable NVIDIA drivers.Boot the computer, when the GRUB menu appears ...

Highlight the Ubuntu menu entry and press the E key.Add nouveau.modeset=0 to the end of the linux line. Press F10 to boot the Ubuntu operating system.

When the login screen appears press Ctrl+Alt+F1. Enter your user name and the password, then execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361 nvidia-prime
sudo reboot

Note : Maybe it is explicitly necessary to select the NVIDIA adapter in BIOS.

In case you have installed the nvidia driver from their site then uninstall it as per that instructions.Uninstall that driver by running, as root, sh ./NVIDIA-Linux-x86_64-361.28.run and follow the on screen instructions.

Note : The solution I have provide has been tested on Ubuntu 14.04 LTS and Ubuntu 15.10 for two Nvidia GPUs on two different system.


How do I get Windows XP to display a boot menu at all?

what you exactly mean ??? if you have booted xp, then
you are in the area of xp.

when you want to install a boot-menu after installation of ubuntu,
you need to boot into ubuntu from beginning.
then open terminal in ubuntu:
assumed you have no cd-drive then harddisk is /dev/sda
command is simply:
grub-install /dev/sda
(wait until it is finish)
then type command:
update-grub

in the end you have a grub-boot-menu installed on your harddisk.
assumed you dont know which "logical name" your harddisk has, you can find it out
with command
sudo lshw -class disk
(conditioned you have made a partition-table in ubuntu before installing ubuntu).
cheers.


How do I install Genymotion on Ubuntu 20.04?

According to PKGBUILD from ArchLinux AUR - you have to
install VirtualBox
sudo apt-get install virtualbox

then download the GenyMotion and install it with
cd ~/Downloads
wget https://dl.genymotion.com/releases/genymotion-3.1.0/genymotion-3.1.0-linux_x64.bin
yes | sudo bash ./genymotion-3.1.0-linux_x64.bin -d /usr/local/

then optionally create symlinks for binaries with:
sudo ln -s /usr/local/genymotion/genymotion /usr/local/bin/genymotion
sudo ln -s /usr/local/genymotion/genymotion-shell /usr/local/bin/genymotion-shell
sudo ln -s /usr/local/genymotion/player /usr/local/bin/genymotion-player
sudo ln -s /usr/local/genymotion/gmtool /usr/local/bin/gmtool

It seems that you need to obtain license to get it working.
Possible free alternative may be Anbox (installed from Snap with snap install anbox).


Session User login problem, when I wake-up my Laptop from suspend

from my understanding I think it has something to do with Lock-screen, and IF that is the case then you just have to go to system settings -> Brightness and lock -> change the lock into never or set time for it. IF it has nothing to do with screen lock then I'm sorry I get your question wrong.


Remove menu entries from indicator-applet-complete

To answer myself:

Open file /usr/share/polkit-1/actions/org.freedesktop.upower.policy

Edit two lines: <allow_active>yes</allow_active> so you switch yes to no


Software Updater is not starting in Ubuntu 14.04

A simple solution, that fixes corrupted apt-get files:

$ sudo rm -rvf /var/lib/apt/lists/* //remove your repo sources list files.
$ sudo apt-get update        // update your repositories list again


Nslookup resolves search domain but ping does not (14.10)

Your resolv.conf file is a mess. There should be at most one search line in the file, for example. It appears that something other than resolvconf is writing to the file. Resolvconf always writes a resolv.conf file with the following format:

head
base + dynamic content
tail

where head, base and tail are the files in /etc/resolvconf/resolv.conf.d/. The file head normally just contains the comment # Dynamic resolv.conf(5) file... OVERWRITTEN. You say you have added a search line to the file, but your resolv.conf file contains other stuff above the aforementioned comment.

I'm guessing that /etc/resolv.conf is no longer a symbolic link to /run/resolvconf/resolv.conf and/or that you are running some third party network configuration software that futzes with /etc/resolv.conf in a way that is not compatible with Ubuntu.

Solution: Stop using that software, or fix it, and then run sudo dpkg-reconfigure resolvconf to restore the symbolic link at /etc/resolv.conf.


Ubuntu 14.04 email notification does not work

If you are using Gmail as your primary email source and want a third part email client to have access you will need to allow Google to grant permission for third part app. It should be some were in your Gmail account and settings, you might want to do a search for more information on how to do it.


Eclipse installation : unable-to-locate-companion-shared-library

I'm not sure it is the best solution, but it worked for me:

remove old installation
open installer as sudo
open the menu in the upper-right corner of the installer and turn OFF Bundle Pools
install the version you need
after the installation is completed go to /opt and change the owner of the eclipse folder. It should be something like sudo chown -R user:group eclipse_folder

The part I'm not sure about is the removal of the first installation. I just deleted the folder, but I'm afraid there's more stuff left behind in different folders.


What did I miss in this booting-iso-from-disk attempt?

The file not found error means there is some problem with the path to the .iso.  Make sure the files are where you expect them to be.

Also, on my working 18.04 iso boot system, it's just initrd, not initrd.lz (That won't cause the file not found error on the iso though.) Verify this value for a particular .iso by opening it in "Archive Manager".


Error installing Rails on Ubuntu 11.10 (Gem::DependencyError)

Try this.

  sudo gem install rails -v 3.2.2

And then you should be good to go.


No sound on one user account since installing and uninstalling LXDE

I had the same problem yesterday.
I installed Jack and after a reboot I encountered this.

After a little searching I came out with this solution.

Uninstall JACK
Go to directory ~/.config/pulse/
Remove all the files located there.

Suddenly, I found my output devices started to show in sound settings.

Hope this helps.


I am writing an answer in order to include a screenshot, to make things easier to see.

When trying to install Ubuntu, your computer is booted in BIOS mode, and it wants to install Ubuntu in the same mode (not UEFI mode). Is this what you want? In that case please create a "Reserved BIOS boot area", a small partition with the bios_grub flag. See this link,

help.ubuntu.com/community/DiskSpace

Otherwise, if you want to install Ubuntu in UEFI mode, you must first boot the computer in UEFI mode. Things are more convenient with Ubuntu in the same boot mode as Windows, and if Windows 10 was installed by the manufacturer or vendor, I think it is installed in UEFI mode.

The flag is not a file system. Do not make any file system. Instead right-click on the partition in gparted and select 'Manage Flags'. Then you get a menu, where you can select the correct flag. I think this screenshot will help.


This Stack Exchange Q&A has various ways of setting LD_LIBRARY_PATH the top voted answer suggests this is the best way:

sudo -H gedit /etc/ld.so.conf.d/randomLibs.conf

inside the file you are supposed to write the complete path to the directory that contains all the libraries that you wish to add to the system, for example

/home/linux/myLocalLibs

remember to add only the path to the dir, not the full path for the file, all the libs inside that path will be automatically indexed.

Save and run sudo ldconfig to update the system with this libs.


Your Microsoft ISA server is blocking access to the .gz packages.

  The request was rejected by the HTTP filter. Contact your ISA Server
  administrator.

If you're not administering the network, you should bring this up at your administrator to make the server allow this traffic.


Accidentally deleted ~/.config directory

.config folder contains your application configurations. Whether  it is system level or user level depends on the location.Yours look like user level config.

Check this post.

  What have I lost? How will affect my computer?

You would likely lose any user level custom configuration/settings you may have set for any app that adheres to the XDG Directory Specification.

  $XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

Most apps in this case revert to default settings. You may have to manually add these configurations again.
Note: Certain applications that have their own config folder instead of using config will not be affected.


Why did 13.10 break my custom keyboard layout?

I've just found a solution for this problem:

Delete the xkm files in /var/lib/xkb, log out and log in.

Some lines in /var/log/Xorg.0.log indicate that Xorg recompiles and reuses keyboard layouts now:

XKB: generating xkmfile /var/lib/xkb/server-FC37972E27A8F94CD9F5DD859C120B9D933CC5F8.xkm
...
# and on a next restart:
...
XKB: reuse xkmfile /var/lib/xkb/server-FC37972E27A8F94CD9F5DD859C120B9D933CC5F8.xkm


Getting "no such file or directory" bash error when trying to compile a file

You must compile your .cpp file into a binary file, chmod +x the resulting binary file, then run the compiled binary. You can do this easily with the following syntax:

g++ <cpp file> -o <resulting binary file>

i.e. the following for your particular program:

g++ conversion.cpp -o conversion

Example:

mgodby@mg-ws1:~/code$ g++ helloworld.cpp -o helloworld
mgodby@mg-ws1:~/code$ ls
helloworld  helloworld.cpp
mgodby@mg-ws1:~/code$ chmod +x helloworld
mgodby@mg-ws1:~/code$ ./helloworld
Hello World!
mgodby@mg-ws1:~/code$

Note 1: If your compile fails for some reason, make sure that all necessary packages are installed -

sudo apt-get -y install g++

Note 2: You must re-compile, i.e. run the g++ command again, every time you make a change to the original .cpp file, else the changes you make will not take effect.

The reason that you cannot run your .cpp file directly is that c++ is a "compiled" language and not a "scripting" or "interpreted" language. If you'd like to know more about this particular distinction, you can refer to the following article to get the basics:
Interpreted language - Wikipedia


How to check if my PC has a 'Intel 82599 10 Gigabit Ethernet Controller'

The information you provided indicates you have an Intel i210, which is not the Intel 82599 10 Gigabit Ethernet Controller. They are different hardware.


How to get hibernation working on Sony Vaio X with Ubuntu 10.04?

Here's a link with instructions on How To Enable Hibernate LINK


Why do I need to reinstall my wireless driver on reboot?

In recent Ubuntu versions, there is a dkms package to solve just this. From the terminal:

sudo apt-get update
sudo apt-get install rtl8812au-dkms

You should be all set.


less.vim not working on my Ubuntu 12.04 lts

I found the problem. The above command vim -u /usr/share/vim/vim73/macros/less.vim is not handling input from STDIN correctly. However, opening a file with the above works just fine.

Fortunately the Vim installation provides a shell script less.sh which loads less.vim and handles the case where input is from STDIN correctly. So changing the alias to this works:

alias vless = '/usr/share/vim/vim73/macros/less.sh'


Try Testdisk.
Testdisk can use the backup boot sector to fix a corrupted NTFS boot sector.
The primary boot sector is sector zero of the filesystem and the backup NTFS boot sector is located near the end of the filesystem.
Even if the boot sector is accidentally overwritten, the backup should be intact.
Testdisk checks the boot sector and the backup boot sector. If the boot sector and backup boot sector mismatch, you can restore the NTFS boot sector from its backup or;  update the backup NTFS boot sector with the current boot sector.
To install it:
Open a terminal,Press Ctrl+Alt+T
Run it:
sudo -i
apt-get update
apt-get install testdisk

If Microsoft's Checkdisk failed to repair the MFT:
Run TestDisk ---- In the Advanced menu ---- Select your NTFS partition ---- Choose Boot ---- Then Repair MFT.
TestDisk will compare the MFT and MFT mirror. If the MFT is damaged, it will try to repair the MFT using the backup. If the MFT backup is damaged, it will use the main MFT.
Main Page
Source


Are update-alternatives and PATH related?

read man

man update-alternatives

update-alternatives creates, removes, maintains and  displays  information  about  the symbolic links comprising the Debian alternatives system.

For example, if the text  editors  ed(1)  and  nvi(1)  are  both installed on the system, the alternatives system will cause the generic name /usr/bin/editor to refer to /usr/bin/nvi by default

they are not related -> directly (but indirectly), update-alternatives make changes in directories which are described in PATH


wine cfg command not working on Ubuntu 20.04 LTS 'Focal Fossa'

You are running wine cfg which mean that you ask to run the cfg.exe Windows program (which is why you get that error :
0024:err:module:process_init L"C:\\windows\\system32\\cfg.exe" not found

)
and not the Wine config utility, the wine config utility can be ran by using winecfg (the same command that you did but without the space)


IMHO the simplest approach would be to change to the directory first, in a subshell:

(cd /path/to/directory ; for i in *.*; do sha1sum "$i" ; done) >> checksums.txt

Note that *.* only matches files with a 'dot extension' - to checksum all files, just use *

If you choose to go the awk route, then one approach would be to substitute the longest substring up to a / of the second field:

for i in /path/to/directory/*.*; do sha1sum $i ; done | awk '{sub(/.*\//,"",$2)} 1' >> checksums.txt


Windows emulator on ubuntu with GPU passthrough?

what you call an "emulator" is actually called a "Virtual Machine".
I believe you have all the right HW to achieve what you want, so you're starting on the right foot. Basically you have to:

verify you have a IOMMU compatible system
have a UEFI compatible second GPU
install your Amd second GPU in a PCI port on your motherboard
blacklist amdgpu drivers and load a couple of kernel functions (using GRUB it's easier)
"detach" the amd GPU via software using VFIO module
create a VM (my advise is KVM + libvirt) and configure your system to pass the detached AMD gpu to it.
Start the VM and install Windows 10 and drivers as usual. (You also have to attach the second GPU to a second monitor, and pass another mouse and keyboard through USB to the VM: host and guest will be as two whole different PCs)

Don't expect the same performance as you run everything in dual boot anyway, but with patience and some tweaks you can easily reach 80%. It's a good idea to have different GPUs for the host and the guest (nvidia and ATI), like you do. this is a good starting point.


Either

use the script command to capture the terminal, and then edit the results, or
store the command in a variable and then evaluate the command:

cmd='cat a1.txt | grep a | wc -l'
printf "%s\t%s\n" "$cmd" "$(eval "$cmd")" >> a.txt

Generalizing this:

print_and_do() { local cmd="$1"; printf "%s\t%s\n" "$cmd" "$(eval "$cmd")"; }
{
    print_and_do "cat a1.txt | grep a | wc -l"
    print_and_do "cat b.txt | grep a | wc -l"
    print_and_do "cat c.txt | grep a | wc -l"
} >> a.txt

Are you aware that cat a1.txt | grep a | wc -l can be written as:

grep -c a a1.txt


You can use Banshee, which is Ubuntu's default music player.

Open Banshee
Before importing your music, configure Banshee's import options

Open Edit > Preferences
Enable "Copy on Import" and "Update file and folder names"
In the Source Specific tab, make sure the Music library is set to a good location

Import your music via Media > Import

It's important that you set Banshee to update file and folder names before importing your music.

Once your music is imported, you can modify file properties, such as name, artist, album, genre, and rating as needed, following Banshee's documentation.


I'm not sure if what you're asking is possible directly, but here's one option:
Create a bash script
Create a bash script to perform all the tasks you want. Here's an example to help you get started (as for more advanced usage, Google is your friend).
#!/bin/sh
sudo ifconfig wlan0 down
command-to-execute1
command-to-execute2
etc...

Modify that code and save to a file, e.g. wlan-down.sh, then run chmod +x wlan-down.sh and run it with ./wlan-down.sh.
Create alias
If you don't want to remember where the script is located and want to be able to simply run it anywhere, you can create an alias for it.
To create an alias, simply write alias wlandown="/path/to/wlan-down.sh". You should be able to write wlandown in the terminal, and then it will run your script.
If you want to store the alias permanently you need to add it to .bashrc in your home directory.
As you can see, combining these two things can give you a powerful, yet simple way to run complex commands with minimal effort.


How can I safely upgrade from Gnome 3.10 to 3.12 WITHOUT getting 3.14?

in 14.04 the staging PPA is your best bet for 3.12.
If you are using 14.10, https://launchpad.net/~gnome3-team/+archive/ubuntu/gnome3 gives you complete gnome 3.12


Failed to connect to Mir: Failed to connect to server socket: No such file or directory

export DISPLAY=:0 worked for me. Make sure you execute the command on the connecting system, not on the system you're connecting to!


You can run command in terminal:

sudo du -hs /*

And check which folder takes the most.


can i delete guestadditions.iso after i installed it and rebooted in Virtual Box?

Yes you can delete guestadditions.iso safely, because it contains only installers. After you installed your stuff, you don't need it anymore.


how to make python manage.py runserver still running if terminal close?

You could try to run your Python script with the nohup command infront. Nohup will make the script immume to hangups.

example

nohup python myscript.py &

Your output will be send to nohup.out.


Current version of `mitmproxy` for 14.04

Apparently there really is no packaged version of mitmproxy available for Ubuntu-14.04 in a more or less current version.

I managed to install it manually following the documentation on github. It was a bit of a pain, since I had to install and setup lots of python stuff. but finally I managed to get a mitmproxy running in version 0.18. As expected it did not show the same issues as that really old version which is packaged for Ubuntu-14.04 (version 0.9.2).

I only post this to not let this question unanswered, though this does not answer the original question for a less outdated package of mitmproxy.


Undelete files on only /home/ disk encryption

Files that are deleted "normally" are actually just moved to a Trash folder. If you haven't emptied your trash folder, you can use tools like shred to wipe them. If you have already emptied your trash folder, then the remanents of those files could be anywhere on the disk partition that holds your home directory. You can use shred to wipe an entire disk partition, but that may not be practical if your home and root directories are on the same partition. If your /home directory is on a separate partition, you can probably boot into single user mode and then run shred on the entire partition where /home directories are (this will eliminate ALL data there, including your and other peoples home directories). Back it all up before trying this.


For Different Systems you'll need to press different keys.
.
Till now, I've some working keys that have helped me to boot till now.
.

ESC
F2
F12
DEL
F9

Note : F8 is for Diagnostic Tools, Safe Mode,etc in Windows..


Am not able to add languages to my new ubuntu 12.04 installation

The answer to the above question seems to be a bug in Ubuntu12.4 distro-  Please see https://bugs.launchpad.net/ubuntu/+source/language-pack-te/+bug/1023261

The solution seems to be that one uses an older version of language-pack-te.

I am yet to use the older version as suggested.


Ubuntu 16.04 won't output sound to Bluetooth headphones

I solved this problem by installing blueman.

To install blueman, open a terminal and type sudo apt-get install blueman. Once it's installed, you can run it by typing blueman or you can search for "bluetooth manager" in the Applications menu. Once blueman is running, you can lock it to the launcher.

Now, inside the blueman application, Right-Click on the headphones icon and select 'audio profile' -> 'High Fidelity Playback'.

There are other profiles available as well, but this is the one that works for me.


View size of CPU cache through the command-line?

lscpu will provide the info you're looking for.

lscpu | grep "cache" to filter out only cache info. This will result in something like:

L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K


How to set system-wide proxy address using shell script?

Try this:

#! /bin/sh
echo "# Generated by Application"
export http_proxy='http://$1/'
export ftp_proxy='http://$1/'

Note:

your argument string($1) should be like this

user_id:pass@proxy.server.addr:proxy_port

If you do not use userid and password then argument string($1) should be

proxy.server.addr:proxy_port

you can export https_proxy and socks_proxy if you need.
To see if your proxy is set or not use env | grep proxy

To change system proxy using shell script try these:

gsettings set org.gnome.system.proxy mode 'manual'
gsettings set org.gnome.system.proxy.http enabled true
gsettings set org.gnome.system.proxy.http host 'proxy.server.addr'
gsettings set org.gnome.system.proxy.http port proxy_port

If you have user authentication pass and id

gsettings set org.gnome.system.proxy.http authentication-user 'user_id'
gsettings set org.gnome.system.proxy.http authentication-password 'password'

To use http_proxy for all other proxy

gsettings set org.gnome.system.proxy use-same-proxy true

To set bypass proxy for any host

gsettings set org.gnome.system.proxy ignore-hosts "['localhost',  '127.0.0.1', 'all', 'other', 'hosts']"


Trouble installing tp link tl-wn821N V5 on 16.04

You are in luck as I made a commit on github that enables that device.  We will use Mange's github as he included the commit and has dkms support so the driver will automatically get rebuilt for a kernel update.

You will need to have Secure Boot disabled if your computer is equipped with that feature
sudo apt-get install build-essential linux-headers-generic dkms git
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0

Reboot

If you do not have an active internet connection download https://github.com/Mange/rtl8192eu-linux-driver/archive/master.zip
Transfer the file to the Ubuntu install, then extract it to the desktop.  Then in terminal
cd Desktop
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0

Reboot

EDIT to add:

Now that you have installed it using make, I would suggest
cd Desktop/rtl8192eu-linux-driver
make clean

Before you install dkms with sudo apt-get install dkms and install the driver using the dkms commands


"Input/output error" when trying to access Windows directory from within Ubuntu

Adding to Yashas' answer:

To get Windows to shut down fully -- bypassing Fast Shutdown, hibernation, and anything else -- you don't need to permanently change the power settings, just reboot to the Windows login screen, click the power button ⏻, then click Shut down while holding Shift. Then you can access the folders from Ubuntu. Note this may be only temporary, until the next time you use Windows.


The Solaar package may provide the functionality you are looking for.  For example, pairing a mouse and keyboard to a single receiver.


How can I remove rest of file from string for all files?

With GNU sed:

str="ddd"
for file in 1 2; do
    sed -i "/$str/ {s/$str.*//; q}" "$file"
done

This needs to be in a loop: otherwise the q command would abort the whole process after processing only the first file.


How to install separate+ gimp-plugin for cmyk support?

You could reference the following wiki.

CMYK support in The GIMP

Although it is ArchLinux specific, it is helpful.


Even if you wonder what is happening the permissions on the file clearly state your "maas" user has read, write, execute permissions and nobody else; not even a group "maas" is part of.

For something to be problematic I would assume that the "others" part of the permissions (the last 3 dashes) would be "rwx".

Just looking at it from that perspective this seems perfectly normal to me.

If you look around the web the "maas-import-pxe-files" script seems to use /tmp/ to store temporary files. It seems more likely this file is from running that script.

Besides that "maas" uses "touch /tmp/block-poweroff" to not ask for a reboot.

So seems legit to me.


How do I install a specific patch number version of Python?

sudo apt-get install libssl-dev openssl
wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
tar xzvf Python-3.5.0.tgz
cd Python-3.5.0
./configure
make
sudo make install


After 12.10, no GUI can authenticate for administration, such as Software Center

OK, for whatever reason, ubuntu 12.10 needs a root password set.  You need to:

sudo passwd

to set your root password (who knew).  After that, things seem to work.


DNS challenge looks at the DNS records stored on the nameserver for the domain in question and doesn't require any communications to your local machine.  It should have prompted you to add some TXT records to your DNS when you ran the above command?


'dpkg-deb' error while installing anything Ubuntu 14.04

Since you can still run dpkg, at least part of the dpkg package is still present. To restore dpkg-deb, you should try re-installing dpkg:

download the appropriate package file (Mint 18.3 is based on Ubuntu 16.04, so look for Xenial on this page to get the appropriate links; the download link I’m giving here assumes you’re using amd64)

wget https://launchpad.net/ubuntu/+archive/primary/+files/dpkg_1.18.4ubuntu1.6_amd64.deb
install it

sudo dpkg -i dpkg_1.18.4ubuntu1.6_amd64.deb

If that fails, you’ll need to resort to a more manual approach as suggested in arved’s answer:

ar x dpkg_1.18.4ubuntu1.6_amd64.deb data.tar.gz
tar xf data.tar.gz ./usr/bin/dpkg-deb
sudo install usr/bin/dpkg-deb /usr/bin

Then install the package using dpkg to make sure everything’s set up properly.


"cannot find -lOpenCL" error when making the Cuda SDK

Cannot set LD_LIBRARY_PATH which is related to /usr/bin/ld specifically.

Should have set LIBRARY_PATH which is the correct environment variable for the gnu compiler (used here).

Whatever the connection between LD_LIBRARY_PATH and LIBRARY_PATH (or in this case ld and gcc and why gcc doesn't use the ld executable..


Find glogg.conf in your home dir.

It contains all your search history under the [SavedSearches] tag.


I had this error too while backing up to Google Drive. The connection is timing out.
I'm not aware of a permanent solution for this, but a temporary workaround is to edit the default timeout setting for Duplicity, which Deja-Dup is a frontend for.
sudo nano /usr/lib/python3/dist-packages/duplicity/globals.py

In particular, you may want to edit the following lines:
# number of retries on network operations
num_retries = 5

# network timeout value
timeout = 30

I changed "timeout" from 30 to 200 and that fixed it for me.
Note that this will be overwritten whenever a new update for Duplicity comes out.
If the default values are stored somewhere else in the future, you can most likely find them using the command
sudo find / -iname *duplicity*

to search the whole system for any files or folders containing the word "duplicity".


can't access to a folder even after chmod 777

This happens because there is a directory higher in the tree where you do not have execute permission. If a parent directory has no execute permission for some user, then that user cannot stat any subdirectories regardless of the permissions on those subdirectories.
Example:
$ ls -l cake
drwxr-xr-x 2 zanna zanna 4096 Jul 12 11:43 brownies
$ chmod 666 cake
$ ls -l cake/brownies
ls: cannot access 'cake/brownies': Permission Denied

Even though I am the owner of the directory 'brownies' and all users have permission to read and enter it, I can't access it if its parent directory has no execute permission.
It's better to use groups to manage permissions than give to give directories 777 permission.


MongoDB 3.0.2 won't start after upgrading to Ubuntu 15.10

It's just the lack of a service file for systemd. No need to go back to upstart like Kartik did or use a different repository than described in https://docs.mongodb.org/manual/installation/.

Create a file /lib/systemd/system/mongodb.service with the following content:

[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target

[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf

[Install]
WantedBy=multi-user.target


To get to the "live" part of the live server, you have to choose "Install", then press Ctrl+Alt+F2-F6 to get to another TTY, where you will be given a shell.

Source: Installing using the live server installer

  If you need to at any time during the installation you can switch to a different console (by pressing Ctrl-Alt-F<n> or Ctrl-Alt-Right) to get access to a shell.


MAAS - UBUNTU 12.04.3 - ADD NODE BUT WITH ERROR

It was a problem with my network, I've resolved that.


Installing r-packages in RStudio with proxy

I've found already the answer. Every time I launch RStudio, the first thing I have to do is executing the following command:

Sys.setenv(http_proxy="http://user:password@proxy.com:port/")

Then I can install packages.


How to copy a website inside my WWW to another computer and make it work?

The copy and paste procedure of a whole web site can works, but it depends on several things.

One of them is the environment. You must need to use the same technology. e.g. If your system use a database, you will need the same database and the same credentials to login successfully.

Also its very possible that the links of your site are pointing to different places after move the whole project to a different directory. Not only simple a links, but JavaScript code, CSS files and more. That behavior depends on your code.

Theoretically, if you solve this issues, you shouldn't have problems to move the project copying the files.

About your mention of the problem trying to make the index file works, are you sure that the lab computer have a completely functional LAMP environment? Is it correct the content of the /etc/hosts file?


"Security Boot Failed" after Ubuntu updates

You should be able to get the system to boot with Secure Boot active by using the following command in Ubuntu:

sudo efibootmgr -o 0000,0002,2001,0004,2002,2003

This command changes the BootOrder variable (shown in the efibootmgr output you posted), adding Boot0000 (the ubuntu entry, which launches shimx64.efi) to the start of the boot order list. Right now, that entry is not in the boot order list; but Boot0002, which launches grubx64.efi directly, is at the start of the list. This is the source of your Secure Boot problem; Shim is a central part of Ubuntu's Secure Boot support, so bypassing Shim makes it impossible to boot with Secure Boot active. (See this page of mine for more information on Secure Boot.)

As to booting Windows, I'm afraid I can't offer much help. You wrote in your comment:

  I can choose Windows in the boot manager, but end up with an error message from BitLocker.

Unfortunately, that's still pretty vague; it's always important to post the exact and complete error message when asking for help. Furthermore, I don't know a lot about BitLocker, so I'd be unlikely to help even if I knew what that message was. It sounds like this is a Windows-specific problem, though -- maybe your (presumably encrypted) Windows partition has been damaged in some way; or maybe BitLocker is relying on software or settings on the EFI System Partition (ESP) that Ubuntu has altered. In any event, I recommend you post the complete error message to a Windows forum for help on this issue. (Take a digital photo and post it, if the message is long enough to merit this approach.)


Getting VI to auto syntax highlight and autoindent

Put the following lines in ~/.vimrc (use vim :P)

filetype indent on
filetype plugin on
syntax on

It will turn on filetype detection and will automatically get the correct syntax and indentation.


What is the difference between using the terminal to install software vs the software-center/gui?

As long as by "command line" you mean the apt-get install or aptitude install commands, it's the same as installing using Software Center:
under the covers they all use the same software management system (APT),
so you will get the updates whichever way you use.


I had the same problem which was really discouraging because error messages are one of the reasons I run away from Windows. Anyhow, I searched around and couldn't find the problem so I just silenced it. I edited this file as root

  /etc/default/apport

and changed the line that says

  enabled=1

to

  enabled=0

That's it. I have had no error messages ever since.


What are the best pdf annotation tools in Xubuntu?

evince can do annotations but unfortunately only Ubuntu 15.04 contains version 3.16 that can also remove annotations.


The name "http proxy" implies that it is only for http/https. Using a http-proxy has no influence on the operation of other protocols.

Ping is part of ICMP and only works when you can reach the target host via IP, i.E. it is not blocked by some kind of firewall.


I think I have fixed it now, but do not understand how. Will be awesome if someone can explain what went wrong...

First, opened Synaptic and installed gnome-terminal. After getting the Terminal back, neither unity --reset nor unity --replace worked. I wanted to check out the options for unity by typing unity and somehow got everything back (Menu bar, start button, applications, everything)

The output from Terminal for unity command is here.
And finally, I still get the following error upon starting the Terminal each time.

-bash: /usr/lib/git-core/git-sh-prompt: No such file or directory
-bash: /usr/lib/git-core/git-sh-prompt: No such file or directory

Editors Addition:

Those git related errors can be fixed by removing git bash-completion file using a command

rm -rf /etc/bash_completion.d/git

Check the related question here https://stackoverflow.com/questions/18451980/error-in-git-install-from-source-on-ubuntu


ATI Mobility Radeon HD 4xxx not recognized

Well, I have a solution for the graphic card, because I answered hours before a question like that (install ati radeon 2400 hd pro on ubuntu 13.04):

Here you have the same question and some solutions:

Radeon HD 2000, 3000, 4000 on Ubuntu 12.04.2 and higher: fglrx (legacy) unsupported, what to do?

  As I have found out (4850 here), you can't via any method install
  fglrx-legacy on stock ubuntu 12.10, even if you use catalyst 12.6
  which supports our cards, because the x server that 12.10 uses (1.13)
  is not supported by catalyst 12.6 or older.

  However, this is somewhat of a solution, that I can confirm works on
  my machine:
  http://www.ubuntuvibes.com/2012/10/how-to-install-amd-catalyst-legacy.html

sudo add-apt-repository ppa:makson96/fglrx
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fglrx-legacy

  Just follow that (well, uninstall any fglrx you have installed now
  first), and you should have a better experience.

  I should note, you will be downgrading your x server to version 1.12,
  and these packages are not supported by ubuntu, but this is the
  closest to a "solution" as can possibly exist at this time.

  I hope this helps some!


I've lost access to sound widget after a few updates on a fresh install of Ubuntu 14.04

Someone proposed a solution for a similar problem here:
the sound-volume indicator disappeard Ubuntu 13.10

To resume, you can check if indicator-sound is installed and try to reconfigure it or re-install it.


Need to migrate Microsoft office outlook .pst file in to Ubuntu 14.04 ver.

The easiest way to do this would be installing Thunderbird on the Windows system where the original Outlook is installed. When running Thunderbird for the first time it asks you if it should import anything. After that is done you could just copy the Thunderbird profile to the Linux system.

See as well https://kb.mozillazine.org/Import_.pst_files and especially http://kb.mozillazine.org/Import_.pst_files#Linux where they address some solutions without using Windows or Outlook.


"Error found when loading /etc/profile:" after upgrade from Ubuntu 18.04

It happened to me too, but with a different file. When I checked the permission of the file with ls -l it showed that root was able to execute, read, and write, but the group and others not. So what fixed the problem to me was to change the permission of the file with:

$ chmod +756 /path/to/your/file

It will give permission to read, write and execute to root, read and execute to group, and read and write to others. It solved my problem.


Will creating a text file in vi change my computer?

Writing a text file isn't going to "change the way that your computer functions".

In particular, in order to do something like that, you'd have to do one of

overwrite some important file
write your file to a special protected location like a *.d directory in /etc; you won't have permission to do this
mark the file executable and put it in your path

Since you're not going to explicitly be doing anything like this, there is nothing to be worried about.  In particular, the other answer goes to unnecessary lengths by suggesting your text files need to begin with hashes on every line.  Of course they don't.  Just storing a text file somewhere within a normal home directory is not going to do anything.


Redshift/F.lux not working on Ubuntu 16.04

In a console type

redshift -l list

then I typed

redshift -l geoclue2

then it just worked.  I can even close and reopen it now and it works fine.


Which is the best ubuntu version for my laptop dell inspiron 3521

Try Ubuntu 14.04  (LTS).

Nvidia graphic card is running fine in Xubuntu 14.04.

Hope 14.04 can solve your problem.


Terminate unattended-upgrades or whatever is using apt in ubuntu 18.04 or later editions

The long term solution to your problem is easy:
sudo apt remove unattended-upgrades

There is, in my opinion, no excuse for the poor design of unattended-upgrades. Blocking every software install, and even system shutdown, for hours with an automatically initiated process that a user cannot shut down without risking corrupting the apt database: the mind boggles.
In the short term, you can either wait and hope, or send it a SIGKILL and hope for the best - it will be OK if it is either taking a long time to download, or is stuck because of a missing certificate, faulty connection, or one of the million other reasons unattended-upgrades can trip over its own shoelaces. You may need to manually remove the lock file.
After that, hurry up and uninstall unattended-upgrades to regain control of your computer.


Ubuntu 14.04 x64 HPmini 100-3100 getting stuck

To my knowledge, memory usage is higher on a 64bit operating system compared to a 32bit operating system, especially if you only have 2GB of RAM. So you could be handing out memory for nothing and ultimately.. causing your OS to get Frozen/Stuck.

Conclusion: Yes give a 32bit Operating System a go, but maybe just consider in upgrading from 2GB of Memory to 4GB of Memory, and make the most of 64bit processing.

You're Welcome!


Common solutions
If the multimedia keys were already working but stopped working, one or more of these solutions may help:

Restart gsd-media-keys (see Troubleshooting below to see why this may be necessary)

Ubuntu 20.04+
systemctl --user restart gsd-media-keys.target

Previous versions
killall gsd-media-keys

Try closing all applications, then open the one you want to receive the multimedia keys first

Applications that receive multimedia keys may take all keypresses and prevent other applications from receiving them
Common applications which receive multimedia keys:

Chrome
Firefox
Spotify
Other Electron-based applications may grab multimedia keys if you start playing a media file (e.g. Microsoft Teams)

Another workaround is to completely disable multimedia key support for certain applications

Chrome

In the address bar go to chrome://flags/#hardware-media-key-handling
Change the value to Disabled
Restart Chrome

Firefox

In the address bar go to about:config
If necessary, click Accept the Risk and Continue
Search for media.hardwaremediakeys.enabled
Set it to false by clicking the toggle button
Restart Firefox

Reset media key shortcuts to their default values
dconf reset /org/gnome/settings-daemon/plugins/media-keys/next
dconf reset /org/gnome/settings-daemon/plugins/media-keys/pause
dconf reset /org/gnome/settings-daemon/plugins/media-keys/play
dconf reset /org/gnome/settings-daemon/plugins/media-keys/previous

For even more control, see Playerctl

Troubleshooting

Use dbus-send to list the applications which are configured via MPRIS to receive multimedia keys, e.g.:
$ dbus-send --print-reply --dest=org.freedesktop.DBus  /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep org.mpris
  string "org.mpris.MediaPlayer2.spotify"
  string "org.mpris.MediaPlayer2.chrome.instance22348"

In this example, you can see Spotify and Chrome (org.mpris.MediaPlayer2.chrome.instance22348)  are configured to receive the multimedia keys

Note: If you see an entry like org.mpris.MediaPlayer2.chromium.instance16163 but you don't have Chromium installed, it may be for an Electron-based application.

Watch /var/log/syslog
tail -F /var/log/syslog

Press a media key (play, pause, stop, etc)

Look in the log for any pertinent messages, e.g.
Mar 26 12:23:17 hostname gsd-media-keys[1762]: Error calling method GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.mpris.MediaPlayer2.chrome.instance10062 was not provided by any .service files

In this example, you can see that the key is being sent to org.mpris.MediaPlayer2.chrome.instance10062 even though that application isn't in the list in step 1.
The solution (above) is to restart gsd-media-keys.

If none of the above helped, make sure the media key shortcuts are all set to their default values
dconf read /org/gnome/settings-daemon/plugins/media-keys/next
dconf read /org/gnome/settings-daemon/plugins/media-keys/pause
dconf read /org/gnome/settings-daemon/plugins/media-keys/play
dconf read /org/gnome/settings-daemon/plugins/media-keys/previous

If the keys are all set to their default values, no output should be returned, e.g.:
$ dconf read /org/gnome/settings-daemon/plugins/media-keys/next
$ dconf read /org/gnome/settings-daemon/plugins/media-keys/pause
$ dconf read /org/gnome/settings-daemon/plugins/media-keys/play
$ dconf read /org/gnome/settings-daemon/plugins/media-keys/previous
$


Size of grab area for resizing window in lubuntu

You need to edit a file called themerc. This file will be in /usr/share/themes/ThemeName/openbox-3 or in ~/.themes/ThemeName/openbox-3 where ThemeName is the name of the theme you've chosen. If you haven't switched themes and are using a default Lubuntu as you've stated, your themerc would be /usr/share/themes/Lubuntu-default/openbox-3/themerc.

The first few lines of the themerc hold the answer:

Default Lubuntu theme for Openbox, GPL2 / Open Source
By Rafael Laguna, Lubuntu Artwork Team

border.color: #808080
border.width: 1
menu.items.active.bg: Solid Flat
menu.items.active.bg.color: #8FB2CF
menu.items.active.disabled.text.color: #AFAFAF

After making a copy of the original themerc for safety, you'll need sudo to edit the file to increase border.width from 1 to whatever you're comfortable with. Run openbox --reconfigure to make the change effective (after you've edited and saved themerc.) Any window you open after this will have the new, thicker, border width. No need to log out, reboot, etc.

Another route

If you are happy using the mouse, you can resize a window from within its corners somewhat easily.
If you move your mouse cursor from within the window towards any corner, you'll notice it changes appearance to a right-angle with an arrow inside.
At this time, you can press the left mouse button and drag the modified cursor to resize the window anyway you like.
This works even when the window borders are hard to grab from the sides or top or bottom.


Postgresql service stopping on its own in ubuntu server

When you see a terminated by signal 9 message it means that the server ran out of memory and had to make a decision: kill the application consuming all the memory or completely crash. Given the opportunity, most server operating systems will choose to remain running.
You should see immediately after this error something that looks like this:
DETAIL:  Failed process was running: SELECT {rest of SQL query}

This will let you know specifically which SQL query is causing — or merely contributed to — the problem. As it's happened multiple times recently, this is likely the result of a SQL query that's trying to do too much for the resources available.
At the end of the day, you have three options in front of you:

Rewrite the SQL query (or queries) that are killing the server.
⇢ I've been working with databases for 25+ years. 95% of all performance problems are created by humans (or ORMs), not the server.
Add some swap space to give the system a little room to breathe.
⇢ This is generally a decent temporary solution if the server is something you have on-premesis and you need a little time to investigate the best solution to the memory problem.
Add more RAM.
⇢ If you're using a cloud instance, then this would mean getting the next tier up. If you're using on-premesis hardware, install as much as you can afford. A performant database is a happy database.


I got confirmation that this behavior is, in fact, a property of the card reader.  The USB card reader exposes only a USB mass storage device, so the software doesn't even know there's an SD/eMMC card.  The card reader would have to expose the boot partitions as separate devices, but it doesn't, which is normal.

I need to find way to attach a native SD/eMMC interface to my host PC.  When I did this a couple years ago, I used an older laptop with an integrated SD card reader and I presume it had a native SD interface.  The only add-in native readers I can find now use the now-discontinued Ricoh R5U230 chipset, but I'm not sure if Linux drivers are available for it.


When copying large amounts of files I usually use these commands:

Target:

nc -q 1 -l 1234 | pv -pterb -s <filesize>G | tar xv

Source:

tar cv <DIR>  | nc -q 1 <targetip> 1234

This will directly stream all the data, without a lot of protocol overhead from source to target over port 1234. This proved to be the fastest way for me to copy the data in a local network. As an addition I added the pv command in the target, so I can get a rough overview how far along the files are.

For a more advanced, yet maybe slower transfer, I'd recommend using rsync.


How To Install Ubuntu 14.04 on HP Dynamic Smart Array b120i logical drive

Unfortunately the b120i does not have stables drivers under Ubuntu/Debian yet - this issue is discussed at https://answers.launchpad.net/ubuntu-certification/+question/214703.

There is a PPA by HP (note these are not fully tested nor certified): https://launchpad.net/~hp-iss-team/+archive/ubuntu/hp-storage?field.series_filter=trusty

If you need something suitable for production (as we did), then you are going to have to install a raid controller that is supported such as a P4xx controller.

You can also not use the onboard controller in raid mode - use Sata and configure software RAID within Ubuntu - https://help.ubuntu.com/14.04/serverguide/advanced-installation.html#software-raid


/usr/bin/vlc: cannot execute binary file: Exec format error

With that command, you destroyed your vlc executable; you will have to reinstall the vlc-bin package to get it back to work.
In general, do not execute commands with root privileges (which includes using "sudo") if you don't know exactly what you are doing. The "sed" command is a command-line equivalent of an editor; you edited binary code as a text file. That is bound to fail.
vlc refuses to run as root because many codecs in the past have been known to have security hazards; it's just too easy to open a system widely for attack with a well-prepared media file such as a JPG or an MP4 (to name just a few) that exploits such a security hole.
There is also generally never a good reason to run a media player as root.
Please write what exactly you wanted to achieve, and I am sure we can point you to a better way to get there.


Clicking on New tab you will see a Search/ Address bar, your Bookmarks and Top sites (which seem to be your most visited websites).


How to display completed print jobs with source URL

The directory /var/log/cups contains all the logs and page_log contains the information you need.  Depending on your log rotation and how far in the past you want to be able to do this, it'll take a:

cat /var/log/cups/page_log

or for just the LaserJet-9050 jobs:

grep 9050 /var/log/cups/page_log

You might have to edit cupsd.conf and change the default ´PageLogFormat before the log files start being populated.


To just clone the VM vm1 (where vm1 is the name of the VM) to vm2, something like this will do:

vboxmanage clonevm vm1 --name vm2

For more information, run vboxmanage --help - clonevm  can take varying options:

  clonevm                   <uuid|vmname>
                            [--snapshot <uuid>|<name>]
                            [--mode machine|machineandchildren|all]
                            [--options link|keepallmacs|keepnatmacs|
                                       keepdisknames]
                            [--name <name>]
                            [--groups <group>, ...]
                            [--basefolder <basefolder>]
                            [--uuid <uuid>]
                            [--register]

This could be done automatically in a script (e.g. checking mod/access times, assigned name based on date, gvfs variable, etc)


How to keep programs from launching maximized?

Just to flag up that the auto-maximize percentage is now configurable in 11.10 in ccsm (the CompizConfig Settings Manager). Idiotically, it's hard-coded in 11.04 despite there having been issues with what the percentage should be early on (originally it was 60%, people complained, and the answer was to change the value rather than do the obvious thing of making it configurable as this is clearly going to be user- and system-specific). I haven't found a convenient way to back-port the fix to 11.04. (You can always upgrade, of course.)

But on 11.10:

Install ccsm if you don't already have it (bizarrely, it's not installed by default)
Run it
Go to Desktop
Click Ubuntu Unity Plugin
Go to the Experimental tab and you should see this:

Set the Auto-maximize value to 100% to completely disable it, or just to a higher percentage if you like the behavior but the default 75% is the wrong value for you.

Sources:

Bug 754214 (incorrectly -- IMHO -- marked as a duplicate)
This blog post


Can anyone tell me why on the lubuntu website there are 2 different sizes of the same installer?

It's base-2 arithmetic:

  699MB * 1024 bytes * 1024 kilo-bytes = 733 x 10^6

Network speeds and unfortunately storage from HDD manufacturers is reported in base-10.  Storage in software is reported in base-2, Windows and other vendors have started to use base-10 measurements to aid confusion.


Live CD ubuntu 13.10 is not working with hp printer 1020 plus

Live CD is not containin extracted driver packages.You need to visit HP's site and download suitable driver for your printer.and then install that driver to Live Cd.and try connect again.by the way go to settings-printers.check if your printer is connected or not


I had the same problem on XPS 15 L521x; it kept saying "Checking media..."
I went into BIOS (UEFI) and set AUTO boot priority. IP4, IP6 and the HDD. It was set to "LAST", which was the HDD, but for some reason it did not work.

So, AUTO solved the probem.


Try unclutter.
The purpose of this program is to hide the pointer after the mouse has not moved for a while. Using it, you can make the pointer appear only when the user touches the screen, and disappear right after it. Maybe this was not exactly what you were aiming for, but it is much easier than your alternative.
To use it, first install it:
sudo apt-get install unclutter

then run it:
unclutter -idle 0.01 -root

The number in the above command is the number of seconds before the pointer disappears (in this case, 1/100 seconds).


How to use eth1 as failsafe system for eth0?

What you are looking to set up is called Network Bonding.

This is also called "port trunking or link aggregation (which) means combining several network interfaces (NICs) to a single link, providing either high-availability, load-balancing, maximum throughput, or a combination of these."

In this case, you will want to set up a Mode 1 active-backup bonding configuration.

Install package to allowing interface bonding**

First, you will need to install the ifenslave package which allows interfaces to be added and removed from a bonding group.
Install the ifenslave package from the Ubuntu Software Center:

or, you can install the package from the command line:

sudo apt-get install ifenslave-2.6

Modify config to load bonding module

Next, you will modify your /etc/modules file to ensure that the
bonding module is loaded.

sudo gedit /etc/modules and add the following line to the bottom of the file:

bonding mode=active-backup miimon=100 max_bonds=2 primary=eth0

The miimon option tells how often to monitor(in milliseconds) the interface for failure and can be adjusted as needed.
load the bonding kernel module:

sudo modprobe bonding

Define the bond group

Finally, you will define the bond group in the file /etc/network/interfaces and restart the networking service.

sudo gedit /etc/network/interfaces/

auto bond0
  iface bond0 inet static
    address 192.168.1.10
    gateway 192.168.1.1
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    bond-slaves none
    bond-mode 1
    bond-miimon 100
    post-up ifenslave bond0 eth0 eth1
    pre-down ifenslave -d bond0 eth0 eth1

auto eth0
 iface eth0 inet manual
  bond-master bond0
  bond-primary eth0 eth1

auto eth1
 iface eth1 inet manual
  bond-master bond0
  bond-primary eth0 eth1

Restart the networking service

sudo service networking restart

Note: This does not allow for bonding between two different network types (i.e. You cannot bond between an ethernet card and a wireless connection.)

Also, this has nothing to do with multi-homing between two ISPs and is beyond the scope of this question.

References:

https://help.ubuntu.com/community/UbuntuBonding#Ethernet_Bonding_modes

http://ubuntuforums.org/showthread.php?t=1888967

http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-modules-ethernet.html#s3-modules-bonding-directives


First cd into the 64-bit/debian folder

then:

Install both drivers using:

dpkg -i cndrvcups-common_3.30-1_amd64.deb
dpkg -i cndrvcups-ufr2lt-us_1.20-1_amd64

Now install these dependencies:

sudo apt-get install libxml2:i386
sudo apt-get install libjpeg62:i386
sudo apt-get install lib32z1
sudo apt-get install libstdc++5:i386 libstdc++6:i386
sudo restart cups

You may need to also follow the process found here:

Installing Canon Color imageCLASS MF8380Cdw Drivers in Ubuntu 12.10

If all this still isn't working, remember to restart your computer and the printer. Simply restarting cups didn't work for me.

Source:

http://ubuntuforums.org/showthread.php?t=2259195


Check your software sources> download from> other> select best server> change the mirror to best server, let it update and retry.


Logitech Illuminated K800 keyboard not working properly after boot-up

Hm, all I needed in the end was installing an updated version of the solaar package from here: https://launchpad.net/~solaar-unifying/+archive/ubuntu/ppa


installation part error occur please help me

Check in software sources if ubuntu universe and ubuntu multiverse are enabled

You can find Software Sources under the dash, the selection is under the 2nd tab Other Software

Then type in the terminal

sudo apt update && apt install openjdk-7-jdk


Is there a keyboard-centric desktop/WM available?

There are plenty! (However, all the ones that I know of are also tiling window managers.)

XMonad is likely the one with the largest user
community.  It has extensive documentation and works well with
GNOME/EWMH extensions (albeit you have to activate them in the
configuration file).  The configuration file has Haskell syntax, but
it's certainly possible to edit it without knowing much about
Haskell, by just copying+pasting examples from the documentation.
Default keybindings are vim-inspired, though they can all be
remapped (including using chained keybindings like Emacs' C-a C-b
C-c). It's available in Ubuntu as package xmonad.
Bluetile is an offspring of XMonad: it
supports a simplified configuration file, and integrates well with
the GNOME desktop by default.  Unfortunately, it's not available in
Ubuntu 10.04, so you have to install from source.
DWM is the "inspiring father" of XMonad
and Awesome.  It's very lean and fast, and available as package
dwm in Ubuntu 10.04. However, by design, to change the
configuration you have to edit a header file in the sources and
recompile; most documentation about the available options is only
available as mailing list posts.  It does not support GNOME/EWMH by
default, you will have to patch it; the Echinus fork of DWM
started this way. Most dwm users will frown upon a "desktop
environment" so it's probably not the right choice if you like GNOME
gimmicks.  Default key bindings are vim-like; they can be remapped,
but there's no option for chained key-combos.
Awesome started off as a fork of DWM.
Ion is a tiling window manager fully
programmable in Lua: also the "configuration file" is a Lua script,
so you can map any key to any action (provided you know enough Lua
for the task).  No support for GNOME or EWMH extensions, as far as I
know. Available in Ubuntu 10.04 as package ion3.
wmii is the predecessor of DWM (same
author).  It can be fully controlled by the keyboard, but has a
smaller selection of layouts, and the configuration format is
based on a "virtual filesystem", which makes very complex things
possible but (IMHO) also simple things rather complicated.
Available in Ubuntu 10.04 as package wmii.
larswm can configure a key binding for
all the operations it supports.  Documentation comes in the form of
a man page, clear and complete.  The user community is now very
small, and the mailing list used to be silent for months.  No
support for EWMH/desktop extensions. Available as package larswm.
ratpoison, as the name says,
forces you not to use the mouse.  Every action is accomplished by
a key stroke.  Default keybindings are inspired by GNU screen and
Emacs; they can be rebound, subject to the constraint that there is
always a global "prefix key" to initiate the action.
StumpWM is a rewrite of
ratpoison in Common Lisp, which adds the nice option to hack the
WM while you're running it.  No support for EWMH/desktop extensions
(by design, I'd say). Both are available in Ubuntu 10.04 (packages
ratpoison and stumpwm).


Root CA certs - exporting from Windows, importing into Ubuntu

Necro-posting, but in case someone else encounters this:

The answer (seems to be) that Firefox uses a different certificate store mechanism, so you should add it to the user-specific firefox profile. (Can use the firefox GUI)

See Add certificate authorities system-wide on Firefox

  The problem here is that Firefox does not have a 'central' location where it looks for certificates. It just looks into the current profile. That's why modifying /usr/share/ca-certificates or other similar directories won't work with Firefox. This is something that has been requested for years; see issues 620373, 449498 and 454036 (and probably there are many others).

So you are left with just two kind of solutions: either modify each profile, or modify the behaviour of Firefox. I know this is not what you are looking for, but there are no ways because Firefox only looks at users' profiles.


speed-up ubuntu usb drive by moving casper-rw file to local disk

Persistent partitions do not work with 64bit syslinux type USB installs such as Startup Disk Creator, UNetbootin, Universal and Rufus make.

They do work with grub2 type installs like mkusb makes.

Use only mkusb to do the initial persistent install to the thumb drive and then follow Sudodus' instructions for creating a HDD casper-rw partition, then delete the casper-rw partition on the thumb drive.

If you do not remove the thumb drive's persistent partition, it will use the internal hard drives persistent partition when running off that computer and the thumb drive's casper-rw partition when plugged into a different computer, maybe becoming a little confusing.


Maybe pulseaudio isn't running or not running correctly. Try removing the pulsaudio configuration by renaming (for safety) the ~/.pulse directory (it's in your home folder).  This will cause it to generate a new setup next time.  This procedure got it back for me when it failed when I removed a pulseaudio equalizer module I was trying out.


The error message starts with:

This is a development version of GIMP.

This means that you do not run a stable version of GIMP. Stable in the same meaning as an Ubuntu release - updates for bugs and security issues do happen, but you do not get new features.

You've got a development version of GIMP installed - probably the one from https://launchpad.net/~otto-kesselgulasch/+archive/ubuntu/gimp-edge

You probably ran the following command at some time ago:

sudo add-apt-repository ppa:otto-kesselgulasch/gimp-edge

Many people think that this is not persistent, i.e. it will only be used for the next upgrade and install, and revert back later on. This assumption is wrong, unfortunately.

In order to remove repositories you have added this way, use:

sudo ppa-purge ppa:otto-kesselgulasch/gimp-edge

Addendum

It could be that you want to run a development version of GIMP, of course - but your comments so far do not give me confidence that this is the case.

It could also have been a different repository, of course - same principle, though, and the one I mentioned is the most popular by far.

And last but not least, I tried to convince the maintainer of that repository to make it possible to have both the standard stable GIMP from Ubuntu's default repositories and the development version from his repository installed - but he refuses to do that.


What prevents setting ATI / radeon power_profile from boot and retaining it after suspend?

I still don't know why the other solutions didn't work for me, but finally found a working solution using pm-utils. I'm not sure if it is the best way to do it but it does all I wished for: Set the radeon power_profile to low on boot and retain that setting after suspend-resume.

Step 1: Create hook

gksudo gedit /usr/lib/pm-utils/power.d/radeon-power_profile

Step 2: Fill in the desired setting

#!/bin/sh

echo profile > /sys/class/drm/card0/device/power_method
echo low > /sys/class/drm/card0/device/power_profile

exit 0

Step 3: Make it executable

sudo chmod +x /usr/lib/pm-utils/power.d/radeon-power_profile

That's it :)


From what ive read, Ubuntu’s 3D desktop sometimes causes issues with Minecraft. You could try logging in with unity 2d instead and see if this improves your issues.Though im not really sure what you mean by "lags". Since not having the black screen of death issues, i presume you are using  minecraft version 1.3 .This should   work fine with the allocated ram,and shouldn't have the need to manually install the updated  Lightweight Java Game Library .

To answer your question

-Xmx sets the maximum memory and Xms sets the minimum memory

java -Xmx2096M -Xms1048M -cp minecraft.jar net.minecraft.LauncherFrame

changing 2096M and 1048M to the amounts you desire


Acestream on Ubuntu 14.04, can i use it without DE?

Looking at your error messages, I found this

  dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

and this

  qt4 interface error: Could not connect to X server
  Which indicates the

which tell us, the graphical application AceStream cannot connect to X server. This is not surprising since you've installed it in a VPS. I suggest, you connect to your VPS graphically and run the application. In these case, remote desktops services like rdp can be used.


How to deepfreeze Ubuntu like Windows deepfreeze?

There's some open source software called OFRIS that does exactly what your looking for. Check out the project page here: http://sourceforge.net/projects/dafturnofris-id/

And for a little help installing check out this link:
Is there any Deep Freeze-like application for Ubuntu?

And here's an alternative solution:
http://www.webupd8.org/2009/07/deep-freeze-like-software-for-ubuntu.html


Error "Couldn't find hvm kernel" during KVM Guest install of Ubuntu Server 16.04

I reported this issue to the virt-manager maintainers on their mailing list. See http://www.redhat.com/archives/virt-tools-list/2016-August/msg00009.html. You can follow that thread for more details. Knowing that this worked in Ubuntu 14.04 and not in Ubuntu 16.04 was key to resolving the problem.

Bottom line, this is fixed now in the master branch of https://github.com/virt-manager/virt-manager.

The commit that fixed it is: https://github.com/virt-manager/virt-manager/commit/3f15a489cda87f8028828d567848193dd2640a43

I'm not sure when this will make to the various virt-manager packages. But you can grab the source and run virt-install from there. (Note: you'll need to add some packages, and I created a Python virtual environment, so you might want to experiment on a VM before messing about with extra packages on a system you need to remain stable and clean.)


The sudoers file is parsed line by line and the last rule prevails for a given user.

So, you need to add this rule after all other rules applicable for the given user to have this in effect.

For example, if the user max belongs to sudo group, then the following won't have desired result:

max     ALL=(ALL:ALL) NOPASSWD: ALL
%sudo   ALL=(ALL:ALL) ALL

Reverse the order to get max passwordless sudo access:

%sudo   ALL=(ALL:ALL) ALL
max     ALL=(ALL:ALL) NOPASSWD: ALL


Google Chrome is not opening since update to 16.04

Reinstalling might solve your problem. First remove the package and the configuration files by typing the following commands in the terminal:

sudo apt-get purge google-chrome-stable

rm ~/.config/google-chrome/ -rf

Note:- The second command will remove all your bookmarks, settings etc.

Then install Google Chrome. For that, follow these instructions:

Add key:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

To set the repository, type the following command:

echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list

Install the Chrome browser package:

sudo apt-get update
sudo apt-get install google-chrome-stable

This should solve your problem.


Is there a more touch friendly desktop environment?

There are three touch enabled interfaces for Linux:

Ubuntu Touch (not yet officially released)
Plasma Active
Zenvoid Desktop


Which nvidia driver from additional drivers option should I choose?

Let the built-in ubuntu-drivers program decide automatically which graphics driver to install. Open the terminal and type:
sudo ubuntu-drivers autoinstall
sudo reboot

The autoinstall command of ubuntu-drivers installs drivers that are appropriate for automatic installation including their dependencies. In Ubuntu 20.04 and later running sudo apt upgrade not only upgrades the versions of the proprietary graphics drivers that were installed by sudo ubuntu-drivers autoinstall. Sometimes sudo apt upgrade even upgrades the proprietary graphics driver packages to more recent packages, in which case sudo apt autoremove removes the older packages which were replaced by the newer ones. For most users there's no reason to guess about which proprietary graphics driver to install, because if your system deserves a graphics driver upgrade it will get one.


How to add 'show all windows' functionality in xubuntu?

First install 'xfdashboard'

Install Xubuntu Extras.  SOURCE

sudo add-apt-repository ppa:xubuntu-dev/extras

sudo apt-get update

sudo apt install xfdashboard

To set up hot corners:

Option 1

Open 'xfdashboard settings' in the program menu
Select 'Plugins' tab
Select 'Hot Corner'and tick option
Select 'Preferences'
CLose
Reboot system

Option 2
SOURCE

sudo apt-get install brightside

Once installed, open terminal and enter:

brightside-properties

In properties:

Select Corner, tick box
In drop down select 'custom action'
Enter 'xfdashboard' in 'On entering region'
Adjust delay
Close properties

Once configured add 'brightside' to startup applications list. Instruction HERE


Why can't I "shutdown anyway" if Ubuntu One is syncing?

It's supposed to let you "shutdown anyway". If it doesn't it's a bug and we'd like a bug report!


Increase size of / partition when it's in an extended partition already and the free space is outside it?

This will be tricky... so BACKUP BACKUP BACKUP first!

Assuming that you don't need/want to mess with your unallocated space...

boot to a Live CD and start gparted

1.2 select sda6 and issue a swapoff command
reduce your sda7 partition by say 40GB to 50GB
move sda7 as far to the right as possible

3.5 enlarge sda6 to 32GB
assuming that your swap is large enough already, move sda6 to the right
extend sda5 to the max (~+30GB)

5.1 select sda6 and issue a swapon command
reboot

I would do this in single steps, rather than entering all commands at the same time and clicking the apply button.


How to stop Ubuntu overriding BIOS underclock during boot

Edit /etc/default/grub with your favorite text editor. Find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT= and place the kernel option intel_pstate=disable on it preserving any previous current options (quiet and splash are common) and the spaces in between them as well as the quotes on either end.

Example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable"

Now update grub with sudo update-grub

Note:The only other thing that comes to mind for reducing power consumption would be to replace the boot/system drive with a SSD. (Note that this can make data recovery in case of failure extremely difficult if not impossible)


From the logs you show with your question, you have obviously a problem with the installation of a package. But the problem is not with the packages you were asking installation : apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser.
Look at the line containing is already the newest version. All these packages are already installed.

The error is left by a previous tentative to install qmail which didn't succeed because of the hostname not having a fully qualified name.
As said before, setup a hostname like host.domain.tld by modifying /etc/hosts and /etc/hostname.
You should have at least in /etc/hosts a line saying :

<your ip>  <hostname.domain.tld> <hostname>

If you are on a computer with dynamic IP address, use 127.0.0.1 as <your ip>. Or use the static ip you have received.

So you can already play around with Apache and PHP, unless the hostname problem stops Apache from working properly.


Try this: locate on your keyboard the key which brightens the screen (it should have a dedicated icon/drawing on the key, it looks like a sun with a small plus nearby), when the screen goes blank(black I guess?), after you've selected Install/try Ubuntu, press this key repeatedly and see if the screen clears up. If it does and you can at least see the system starting up(but still remains kind of dark), then just be patient and wait till after the login to press the sun-key again. This time(after login) it should have a greater effect and brighten the screen to its full potential.


google search results page hijacked by search.interactivesplash.com

Resetting Chrome also worked for me (so far!)

You can reset Chrome by clicking the three control dots on he upper right side of the browser window. Click on settings, then click on advanced. Scroll all the way down to the bottom. There, you will see the option to reset the browser. This will reset your startup page, new tab page, search engine, and pinned tabs. It will also disable all extensions and clear temporary data like cookies. Your bookmarks, history and saved passwords will not be cleared.


How can I troubleshoot this?

The first step is to find out what PCI device is generating the error:

pcieport 0000:04:00.0: Refused to change power state, currently in D3

My system doesn't have a 0000:04:00.0 but it does have 0000:03:00.0 so I would use:

$ cd /sys/bus/pci/devices/0000:03:00.0

$ ls -la
total 0
drwxr-xr-x 5 root root    0 Aug  8 17:15 .
drwxr-xr-x 8 root root    0 Aug  8 17:15 ..
drwxr-xr-x 3 root root    0 Aug  9 17:53 0000:03:00.0:pcie208
-rw-r--r-- 1 root root 4096 Aug  9 17:53 broken_parity_status
-r--r--r-- 1 root root 4096 Aug  8 17:15 class
-rw-r--r-- 1 root root 4096 Aug  8 17:15 config
-r--r--r-- 1 root root 4096 Aug  9 17:53 consistent_dma_mask_bits
-r--r--r-- 1 root root 4096 Aug  9 17:53 current_link_speed
-r--r--r-- 1 root root 4096 Aug  9 17:53 current_link_width
-rw-r--r-- 1 root root 4096 Aug  9 17:53 d3cold_allowed
-r--r--r-- 1 root root 4096 Aug  8 17:15 device
-r--r--r-- 1 root root 4096 Aug  9 17:53 dma_mask_bits
lrwxrwxrwx 1 root root    0 Aug  8 17:15 driver -> ../../../../../bus/pci/drivers/pcieport
-rw-r--r-- 1 root root 4096 Aug  9 17:53 driver_override
-rw-r--r-- 1 root root 4096 Aug  9 17:53 enable
-r--r--r-- 1 root root 4096 Aug  8 17:15 irq
-r--r--r-- 1 root root 4096 Aug  9 17:53 local_cpulist
-r--r--r-- 1 root root 4096 Aug  9 17:53 local_cpus
-r--r--r-- 1 root root 4096 Aug  9 17:53 max_link_speed
-r--r--r-- 1 root root 4096 Aug  9 17:53 max_link_width
-r--r--r-- 1 root root 4096 Aug  9 17:53 modalias
-rw-r--r-- 1 root root 4096 Aug  9 17:53 msi_bus
-rw-r--r-- 1 root root 4096 Aug  9 17:53 numa_node
drwxr-xr-x 3 root root    0 Aug  9 17:53 pci_bus
drwxr-xr-x 2 root root    0 Aug  8 17:15 power
--w--w---- 1 root root 4096 Aug  9 17:53 remove
--w--w---- 1 root root 4096 Aug  9 17:53 rescan
-r--r--r-- 1 root root 4096 Aug  8 17:15 resource
-r--r--r-- 1 root root 4096 Aug  9 17:53 revision
-r--r--r-- 1 root root 4096 Aug  9 17:53 secondary_bus_number
-r--r--r-- 1 root root 4096 Aug  9 17:53 subordinate_bus_number
lrwxrwxrwx 1 root root    0 Aug  9 17:53 subsystem -> ../../../../../bus/pci
-r--r--r-- 1 root root 4096 Aug  9 17:53 subsystem_device
-r--r--r-- 1 root root 4096 Aug  9 17:53 subsystem_vendor
-rw-r--r-- 1 root root 4096 Aug  9 17:53 uevent
-r--r--r-- 1 root root 4096 Aug  8 17:15 vendor

$ cat vendor
0x8086

$ cat device
0x1576

$ cat class
0x060400

$ cat max_link_speed
2.5 GT/s

$ cat max_link_width
4

$ lspci -n | tail -8
03:00.0 0604: 8086:1576
03:01.0 0604: 8086:1576
03:02.0 0604: 8086:1576
39:00.0 0c03: 8086:15b5
3b:00.0 0200: 1969:e0a1 (rev 10)
3c:00.0 0280: 168c:003e (rev 32)
3d:00.0 ff00: 10ec:5227 (rev 01)
3e:00.0 0108: 144d:a804

$ lspci | tail -8
03:00.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015]
03:01.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015]
03:02.0 PCI bridge: Intel Corporation DSL6340 Thunderbolt 3 Bridge [Alpine Ridge 2C 2015]
39:00.0 USB controller: Intel Corporation DSL6340 USB 3.1 Controller [Alpine Ridge]
3b:00.0 Ethernet controller: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller (rev 10)
3c:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
3d:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
3e:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961

If my system had the error then it would be caused by the Thunderbolt subsystem and I might just start by unplugging my Thunderbolt DPI to HDMI adapter.

In your case replace 0000:03:00.0 with 0000:04:00.0 above. Adjust tail number of lines as necessary.

This is the first step in trouble shooting.

Credit: - Decoding PCI data and lspci output on Linux hosts

Solution: It was Intel SpeedStep located at 0000:04:00.0 and enabling it in BIOS removes 30 second boot delay.


Things you could try:

trying to unmount the partition and mounting again rw.
copying the files using sudo cp
transferring the files using rsync
re-installing the whole system, instead of copying

The last one is what I would normally do, since it works 100% of the time and it's fast. I assume you have a backup of your data as well and can reinstall all previously installed programs with a simple script.


Resize main partition with unallocated space in front

1) yes you can extend toward the front. Essentially gparted does a move then grow.

2) Yes, a mounted partition can be extended. However, it does increase the risk of corruption and data loss. Always backup important data before doing any major file system changes.

3) An alternative that eliminates the risk to your current partition is to make a new partition in the free space. Then, set it up to automout to a folder in your file system.


Access VM Server using name or static IP

I forgot to write it here 2 years ago after I found the solution but I'll do it now in case it helps anyone in the future. The only thing I was missing were to set up port forwarding between the VM and host for the ports needed while using a bridged network adapter. After adding port 80 I was able to browse to the VMs websites using localhost etc


Upstart how to autostart a job after MySQL startup at boot time?

Create a lock file in /tmp/ folder to track that your job already run. Here an example:

Create these two upstart jobs configuration files:

/etc/init/joba.conf

# job A

start on local-filesystems
stop on runlevel[016]

script
  /bin/echo job-A started >> /tmp/myjobs.log
  exec sleep 5
end script

/etc/init/jobb.conf

# job B triggered after A

start on started joba

script
  /bin/echo job-B started >> /tmp/myjobs.log
  if ! [ -f /tmp/jobb.lock ]
  then
    /bin/echo " do job-B tasks" >> /tmp/myjobs.log
    /bin/touch /tmp/jobb.lock
  else
    /bin/echo " bypass job-B tasks"  >> /tmp/myjobs.log
  fi
  exec sleep 5
end script

Reboot
Check cat /tmp/myjobs.log or open sudo tail -f /tmp/myjobs.log in another window.
Try run job-A again sudo start joba
Check /tmp/myjobs.log, see bypass note:

job-A started
job-B started
 do job-B tasks
job-B started
 bypass job-B tasks
job-A started
job-B started
job-A started
 bypass job-B tasks

Note: For each run, we have 3 lines. It does not matter lines sorting here. stdout buffering issue, it is not related to upstart. The jobs are run in the correct sequence.


This happens when you have fast startup checked in the windows control under power options and then system setting, you want to uncheck it.

The reason Ubuntu wont mount it as it is in hibernated state and any file you copy to windows partition might not exist when you boot to windows. This is a security feature in Ubuntu. Unchecking it should do the job.

I have had to run the ntfsfix command after unchecking it, you can try it if unchecking doesnt work


Ubuntu 18.04 LTS after fresh install of MySQL / PHPMyadmin; no root password; unable to login with PHPmyadmin

I had the same problem. Apparently MySQL was set up by default to use socket-based authentication, which uses the system username, and not a password. To fix the problem, I used the following commands:

Access MySQL as the root user:

sudo mysql   # or sudo mysql -u root

Set the password for the MySQL root user:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'test';

Replace 'test' above with the actual password you want to use


How to disable terminal fullscreen padding

You can't make vim inside the terminal actually full screen, unless you're lucky enough that both the width and the height are multiples of the cell size (plus the fixed UI chrome taken into account).

The terminal is a text grid, and if you force it to a maximized size which doesn't match this grid then there's necessarily a margin which is inaccessible to vim.

You probably don't realize it with xterm because xterm's background color is the same black as vim's background color; whereas gnome-terminal's is different.


Unable to reach the bottom of a dialog window

Sometimes indeed, windows may have been created too large for certain screen resolutions. And if it is a dialog, there may be no possibility to resize. Thus, it is as such impossible to reach some controls.
There are two ways you still can display the bottom of the window

With the mouse and a modifier key

There is a "Window Action Key". In Ubuntu, that key is the Super key. If you hold that key pressed, you will easily be able to move the window freely up and down by clicking on it and dragging it, with Super pressed. Thus, you can reach any parts you need.
The "Window Action Key" can be changed from Super to Alt, or can be disabled in Gnome Tweaks (not installed by default), Windows tab.
Only for windows that can be resized: holding the Window Action Key and right-clicking the window anywhere will allow you to resize in a direction determined by where you right click.

With the "move" key Alt+F7

After hitting Alt+F7, the window is in "move" mode. You can now just move the window around by moving the mouse cursor. You can also move the window with the arrow keys. Click once or hit Esc to exit this mode.
In a similar way, Alt+F8 is a resize key (if the window can be resized).


Lost files after mv command and denied permission

The command in your question would only move one file.

Is it possible that the directory /mnt did not exist when you typed this command? If not, then you wouldn't get an error message, but your file would be moved to a file named /mnt. If you used the command again with a different filename, again you would get no error message, but the file /mnt would be replaced with the second file. The previously moved file would be lost in the process.

Try typing ls -ld /mnt to see if it is a directory, or a file that you moved to a location you didn't expect.


we haven't yet finalized the 1.8 release plan but plan to have a beta out this month. Are there any specific features in 1.8 that you care about that are not in 1.7? We could look into backporting if necessary.


12.10 64 bit Ubuntu won't boot, grub rescue, file /boot/grub/i386-pc/normal.mod not found

I resolved this problem.

I did two things and have no idea which of them was the one that solved the problem.

I had 2 disks on the system. One was a solid state drive and the other was a traditional mechanical hard disk. I unplugged the solid state drive.

Then I reinstalled from the dvd. When I got to the part where I partitioned the drive I set up the partitions I wanted and then selected continue. The installer responded with a warning that I had not set up an efi boot partition and one of at least 35 MB was required. I went back and added a 40 MB efi boot partition. (This is one of the options in the partition type selection list and is not the same as /boot) The installation completed and I rebooted and the system loaded and is running just fine.

That efi boot partition warning never came up during the 3 previous times that I tried to install Ubuntu on the SDD. So I don't know if the problem was in installing the 64 bit version on the SDD or the fact that I didn't create a efi boot partition. I do know that the 32 bit version installed and ran from the SDD.

I am knew to this forum and don't know how to close a ticket and I don't see a button to do that on this page. But if someone wants to mark this as solved, that is fine with me. I consider it done.


Image viewer that shows transparent as white or different color, not as checkered

Open the Gnome Image Viewer and change the settings for Transparent Parts

And the same for Gwenview, change the settings for Transparent Background


I had the same symptoms with the weird underlined input buffer. It turned to be uim (a multilingual input method library and environment) that was toggled when I pressed Shift+Space.

You can disable the key binding by open uim-pref-gtk, go to Global key bindings 1>[Global] on and remove "<Shift>space" and apply.

https://unix.stackexchange.com/questions/286049/when-im-typing-a-text-in-english-it-gets-underlined-and-behaves-bizarrely


It would help to know what VPN your customer is using.

It sounds as though there's split-tunneling going on with the Windows clients in your office--only the traffic specific to the customer site is traveling through the customer VPN, leaving the rest of the traffic to go where your company router sends it. It would seem that this isn't happening on your Maverick system.

You might find an answer if you figured out what VPN the customer was using, and looked for information around split-tunneling, Linux, and that particular VPN product.


How do I move the System Settings icon to the right. Or at least duplicate it to the right

You have to install Cairo Dock for this.

sudo apt-get install cairo-dock

After installing start Cairo from Dash. You will have  a dock like in Mac OS at the bottom.
Go to its configuration menu by right clicking on the dock and going to Configure.
There you can move the dock from bottom to right.

 Then here it what you get:

And of course you can customise the dock and remove or add launchers to the dock.You can remove all launchers except System Settings button, as well.

I like Ubuntu for its customizing abilities! Do you?


Dell Inspiron Intel 7260 Wifi connects and then drops on Ubuntu 14.04

I'm newbee in linux, so in my case a solution is like a "terrible crutch", but it works for me now. I use the same linux - Kubuntu 14.04 and chip Intel-7260 rev.73.

I found out, that system on my notebook uses wlwifi-7260-7.ucode. Also, I have tried to make something from backports. No, realy, I don't know, what exactly I have made %(

Eventually I just substituted the file! Instead "wlwifi-7260-7.ucode" I copied with same name file wlwifi-7260-8.ucode and voila- it's works fairly well:)

Yeah, I know, that is stupid. I just haven't any more time to digging.


Ubuntu 16.04 Software & Updates default settings

On the first tab everything is enabled by default.
It depends on what additional PPA you are using. Initially nothing is there.
Everything should be enabled there.
Keys for the enabled repos are shown. You can press reset to defaults there.
This depends on your hardware.
This should be disabled.


Ubuntu Touch currently does not support display link.
While there is a driver voor de x86 architecture there is no binary build for arm.
I have filed a suggestion to them on their uservoice.
As of August 2019 no response


You could try to start Ubuntu on a previous Kernel version and see if you can run it then. I know its more like a workaround than a solution but it may help until someone can really find what the problem is.


Gnome Mail Icon not showing up on system tray

Several solutions from this topic might help you solve your problem: How do I access and enable more icons to be in the system tray?


Is there a way for ubuntu to automatically switch wifi signals?

If you can wait until the weakening signal fails (the connection drops), my answer at this link will help


how to recover the deleted user's data on ubuntu server?

All file deletions on linux are final.

You can always hand your disk to data recovery companies if their price is worth your data. Or browse the internet yourself for hard disk recovery programs. Sometimes you can be very lucky and recover most of your data.

You can create a temporary "Recycle Bin" folder (e.g /tmp/trash) and make it a habbit to refrain from deleting anything, rather mv to trash. Also be extremely cautious using the -r switch (remove or recurse), specially on a multiuser system.


The path /dev/disk/by-path is automatically created when you add the SD card to your system (not via mount). Responsible for this is udev and the rules in

/lib/udev/rules.d/60-persistent-storage.rules

With a simple command you can see the rules:

% grep -ri 'by-path' /lib/udev/rules.d/60-persistent-storage.rules
# persistent storage links: /dev/disk/{by-id,by-uuid,by-label,by-path}
# by-path (parent device path)
ENV{DEVTYPE}=="disk", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}"
ENV{DEVTYPE}=="partition", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"

And you should not use ls /dev/disk/by-path to get the values for your variables. Use

for f in /dev/disk/by-path/*; do echo "$f"; done

instead.


No sound on Kubuntu 20.10 / Dummy Output, No audio devices showing

EDIT: To fix this what I did was kill PulseAudio & just restart it with these commands. Works perfectly now.
pulseaudio --kill
pulseaudio --start


ubuntu theme suddenly changed to default and it's not coming back!

This is a known bug from 9.04 onwards but appears worse in 11.04.On webupd8.org a workaround fix was posted in the last 2 months. After installing 11.04 i have just had the same problem so I went and looked for the article. This describes a fix. I have used it on another machine and can confirm it works.

Fix Ubuntu / Linux Mint Theme Changing To A Classic, Windows-95-like Gray Theme

To summarize, the solution is to edit /etc/xdg/autostart/gnome-settings-daemon.desktop as root, and replace this line:

Exec=/usr/lib/gnome-settings-daemon/gnome-settings-daemon

With this line:

Exec=bash -c "sleep 5; /usr/lib/gnome-settings-daemon/gnome-settings-daemon"


As update from 9.04 to 16.04 is not supported and you don't have any other blank DVD available, the only way is to do a clean install from usb. In my opinion the easiest way is to download the latest startup disk creator from launchpad because you will probably get errors if you use unetbooin in your old os.

So download and install the packages usb-creator-common and usb-creator-gtk (amd64 or i386 depending or your architecture) from this link under the section Binary packages: https://launchpad.net/ubuntu/xenial/+source/usb-creator

Let me know if you have any package dependencies errors. If not, you should be able to create your live ubuntu usb and do a clean install.


Is there a tool for validating /etc/network/interfaces files?

To expand upon @jdthood's answer...

If the interface is already up, you can still use this method to validate the /etc/network/interfaces file. For example, assuming you have an error, you may see something like this:

$ sudo ifup --no-act eth0
/etc/network/interfaces:11: unknown method
ifup: couldn't read interfaces file "/etc/network/interfaces"

Apparently there's an error on line 11. Great. Thank heavens I didn't bounce the networking only to lose SSH access!

If all is fine, you will see:

$ sudo ifup --no-act eth0
ifup: interface eth0 already configured


Fn keys to adjust brightness not working on Samsung R540 with Ubuntu 14.04 and in India GT330M

HOW I SOLVED IT

note: if you havent installed  nvidia driver. Install it before you continue this.

in terminal

# nvidia-xconfig

this creates /etc/X11/xorg.conf . edit it.

# sudo su  // become root
# gedit /etc/X11/xorg.conf

find Section "device" in text. add this line

Option "RegistryDwords" "EnableBrightnessControl=1"

so it shold look like it on the rightside

from this                        TO   this

Section "Device"                  | Section "Device"
 Identifier "Device0"             |   Identifier  "Device0"
 Driver     "nvidia"              |   Driver      "nvidia"
 VendorName "NVIDIA Corporation"  |   VendorName  "NVIDIA Corporation"
                                  |   Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection                        | EndSection

save changes (ctrl+S).
log out. log in.

we are done!!
now Fn + Up,Down  is adjusting the brightness.


Run Blustacks or Android to play clash of clans on ubuntu 13.4+

Install VirtualBox Install virtualbox from the Ubuntu Software Center.

download android sdk to run AVD

Create a new Virtual Machine with the steps mentioned here.
http://androvm.org/blog/blog/2012/11/14/androvm-configuration-tutorial/

download ur app and run

------------------OR--------------
(BEST=>)Try Genymotion runs with VBox/ Linux
Its not really bluestacks but something similar which will emulate android apps
http://forum.xda-developers.com/showthread.php?t=2333452


How can I get a useful and detailed description of the purpose of a package?

Let's focus on the first example: postgresql-contrib

  This metapackage always depends on the currently supported PostgreSQL database contrib package.

The keyword here is that it is a metapackage. You will find many instances of metapackages in the repository. By itself, metapackages don't really contain anything, so there is nothing to document except what package it points to. If you look at the info provided by apt-cache show postgresql-contrib again, you'll notice there is a line there that shows:

  Depends: postgresql-contrib-9.5

The actual documentation you need to look at is contained in this package. The following is the result of apt-cache show postgresql-contrib-9.5:

Package: postgresql-contrib-9.5
Priority: optional
Section: database
Installed-Size: 1999
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian PostgreSQL Maintainers <pkg-postgresql-public@lists.alioth.debian.org>
Architecture: amd64
Source: postgresql-9.5
Version: 9.5.6-0ubuntu0.16.04
Depends: postgresql-9.5 (= 9.5.6-0ubuntu0.16.04), libc6 (>= 2.15), libpq5 (>= 9.2~beta3), libselinux1 (>= 2.1.12), libssl1.0.0 (>= 1.0.0), libuuid1 (>= 2.16), libxml2 (>= 2.7.4), libxslt1.1 (>= 1.1.25), zlib1g (>= 1:1.1.4)
Suggests: libdbd-pg-perl
Filename: pool/main/p/postgresql-9.5/postgresql-contrib-9.5_9.5.6-0ubuntu0.16.04_amd64.deb
Size: 446848
MD5sum: a05acc14f59c7d0f98bfc854a90447d7
SHA1: 398b18b8660537ac114eceb1212ff831d911c856
SHA256: 6ef4578df2026a72e9c85715ea112f4077209490beb18e3e715621319d5861f0
Description-en: additional facilities for PostgreSQL
 The PostgreSQL contrib package provides several additional features
 for the PostgreSQL database. This version is built to work with the
 server package postgresql-9.5.  contrib often serves as a testbed for
 features before they are adopted into PostgreSQL proper:
 .
  adminpack      - File and log manipulation routines, used by pgAdmin
  btree_gist     - B-Tree indexing using GiST (Generalised Search Tree)
  chkpass        - An auto-encrypted password datatype
  cube           - Multidimensional-cube datatype (GiST indexing example)
  dblink         - Functions to return results from a remote database
  earthdistance  - Operator for computing the distance (in miles) between
                   two points on the earth's surface
  fuzzystrmatch  - Levenshtein, metaphone, and soundex fuzzy string matching
  hstore         - Store (key, value) pairs
  intagg         - Integer aggregator/enumerator
  _int           - Index support for arrays of int4, using GiST (benchmark
                   needs the libdbd-pg-perl package)
  isn            - type extensions for ISBN, ISSN, ISMN, EAN13 product numbers
  lo             - Large Object maintenance
  ltree          - Tree-like data structures
  oid2name       - Maps OIDs to table names
  pageinspect    - Inspection of database pages
  passwordcheck  - Simple password strength checker
  pg_buffercache - Real time queries on the shared buffer cache
  pg_freespacemap- Displays the contents of the free space map (FSM)
  pg_trgm        - Determine the similarity of text based on trigram matching
  pg_standby     - Create a warm stand-by server
  pgbench        - TPC-B like benchmark
  pgcrypto       - Cryptographic functions
  pgrowlocks     - A function to return row locking information
  pgstattuple    - Returns the percentage of dead tuples in a table; this
                   indicates whether a vacuum is required.
  postgresql_fdw - foreign data wrapper for PostgreSQL
  seg            - Confidence-interval datatype (GiST indexing example)
  sepgsql        - mandatory access control (MAC) based on SELinux
  spi            - PostgreSQL Server Programming Interface; 4 examples of
                   its use:
                   autoinc    - A function for implementing AUTOINCREMENT/
                                IDENTITY
                   insert_username - function for inserting user names
                   moddatetime - Update modification timestamps
                   refint     - Functions for implementing referential
                                integrity (foreign keys).  Note that this is
                                now superseded by built-in referential
                                integrity.
                   timetravel - Re-implements in user code the time travel
                                feature that was removed in 6.3.
  tablefunc      - examples of functions returning tables
  uuid-ossp      - UUID generation functions
  vacuumlo       - Remove orphaned large objects
 .
 PostgreSQL is an object-relational SQL database management system.
Description-md5: 633a4e0645b2b02e72f77a260d0f4030
Homepage: http://www.postgresql.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: postgresql-server

You will notice that the documentation for the actual package is way more detailed.