I had the same problem with my Lenovo x61 laptop running xubuntu 11.04. After some experimentation I found that this only occurs when using xterm. Try using a different terminal like gnome-terminal or xfce4-terminal.

A good way to test for this problem is to hold down a key in the the terminal (e.g. "aaaaa" ...). After a short while it was evident that xterm was locking up where other terminals were not.

Thanks to Oil for unlocking this question so that I could post my answer for you.

Another user: I had the same problem and finally figured out the root cause. Go to System Configurations -> Universal Access -> Typing, and turn off the Bounce Keys.


Can't find any software in 'Ubuntu software center'

Open the terminal , then type :sudo apt-get update then you can download from the software center easilly .


When you boot the Ubuntu Live DVD, you should see a row of special function keys at the bottom of your screen. The last one, F6 will bring up a few options. Choose nomodeset and see if that allows you to boot without the frequency out of range errors. Cheers, Al


Making reverse-incremental-search in terminal easier using comments

# in some configuration files and programming languages marks comments and is excluded from execution.

Run a command and then create a hashtag using # of the command so that we can find it later.

some-command #mycommand

for example:

sudo dmidecode | grep -A 9 "System Information" #sysInfo

Now I create a hash tag #sysInfo for the command sudo dmidecode | grep -A 9 "System Information" which is used to show system information.

Now search for the hash tag in reverse-i-search (press ctrl+r), in the terminal and type #sysInfo.

You may create as many hash tags for every command and find it later using reverse-i-search.

Note: hashtag used here is not really the same concept as we know in social media. This word is just used to clarify and make it easy for newbies to understand the answer.

source


Accidentally set GRUB_TIMEOUT=0, cannot boot into Ubuntu now

You can boot from an Ubuntu live CD. And then follow the instructions given in the link.
The idea behind using a live CD is to give you access to Linux partition via terminal. Earlier you changed the Grub configuration, You need to do it again. But you cannot (easily) do it from Windows.
So the easy way is to use Ubuntu Live and then when you boot in to it, use the terminal to edit the /etc/default/grub file.
Update the grub so that changes are taken into effect: update-grub


Ubuntu 20.04 LTS not resuming from hibernate

Issue occurred because, no swap partition was created but only the swapfile.
Created a swap partition with the tool 'GParted', formatted it with type 'linux-swap', activated 'Swap on'.
Gave the uuid of this partition in /etc/fstab and /etc/default/grub. This fixed the issue.


I believe your understanding is correct, except that shimx64.efi is delivered in binary form via a package, not generated locally via grub-install. (grub-install is likely to install shimx64.efi to the ESP, though.) Oh, and it's MokManager, not MoakManager.

Before you file a bug report, you should retrace your steps and be 100% sure that you're booting via your locally-compiled GRUB. It's easy to accidentally put a binary in the wrong location or neglect to run efibootmgr to adjust the boot order, for instance. (You haven't described how you're installing your custom grubx64.efi -- are you overwriting the standard Ubuntu binary or putting your new one elsewhere and registering it [and a copy of Shim] via efibootmgr?) You might want to run sudo efibootmgr -v to see your boot details. Pay attention to the BootOrder and BootCurrent lines -- the former tells you the order in which boot options will be tried and the latter shows the option that was used to boot the computer. You'll need to cross-reference the numbers with the various Boot#### lines that describe each boot option. If you installed your own GRUB separate from Ubuntu's GRUB, it's conceivable that the firmware silently bypassed it because of a Secure Boot error and then fell back on the stock Ubuntu Shim/GRUB, which would explain what you're seeing.

Another possibility is that Secure Boot is not actually enabled on your computer. You can check this possibility as follows:

$ hexdump /sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c
0000000 0016 0000 0001
0000005

In this example, the first line of output (0000000 0016 0000 0001) ends in a 1. This indicates that Secure Boot is active. If it ends in a 0, then Secure Boot is disabled on your computer.

One other possibility is that you might have somehow installed your local key in the firmware's own db list. This is a difficult task, though, so it's unlikely you've done it accidentally and without realizing it. (See my page on the subject for details on how to set this up.) I mention this possibility mainly for the sake of completeness; it doesn't strike me as likely at all unless you're omitting mention of a previous attempt at mastering Secure Boot in this way.

If you are seeing a bug, it could be in either Shim or in your firmware.

One more caveat is that I'm only passingly familiar with GRUB-specific tools such as grub-mkstandalone. As I maintain rEFInd, I prefer to use it, so my knowledge of GRUB tools isn't as in-depth as it might be. Thus, I might be missing some critical detail because it's GRUB-specific.


"initrd" images will be created each time a package triggers update-initramfs, so it's unlikely that you can find a corresponding package to them.

Use:

dpkg -S /boot/initrd.img*

to see the image has been placed by which package, you should get:

dpkg-query: no path found matching pattern /boot/initrd.img-4...

which means "I can't find any related package to this file", just as I said.

So here is my suggestion,

Remove all "initrd" images:

sudo rm /boot/initrd.img*

Generate new "intird" images for all of your currently installed kernels:

sudo update-initramfs -c -k all

You're done.


You did not specify whether you saved your settings to the X configuration file (/etc/X11/xorg.conf) using nvidia-settings. That should solve this. Just open nvidia-settings as root:

sudo nvidia-settings

Then, choose the right settings and click on the "Save to X Configuration" button:

If this does not work, there is something else overwriting your settings. Probably your desktop environment. As a workaround, you can use this script:

#!/bin/bash

sleep 10
xrandr --output DVI-D-0 --mode 1920x1080
echo "Script was run"

The sleep is needed to make sure that the Desktop Environment has finished starting before the script is run. That way, you know that it will be run after the DE has reconfigured your screens. Make the script executable and add it to your startup applications. That should do the trick.


WiFi not working on ubuntu 12.04 dell 3521

Please try:

sudo apt-get install  linux-backports-modules-cw-3.8-precise-generic

I believe cw-3.8 includes the modalias for your device.

If your device is still not shown, please post:

modinfo ath9k | grep 0036
dmesg | grep ath

Please get a working ethernet connection, open a terminal and do:

sudo apt-get install linux-headers-generic build-essential

Download this file to your desktop: https://www.kernel.org/pub/linux/kernel/projects/backports/2013/11/13/backports-20131113.tar.bz2  Right-click it and select 'Extract Here.' Back to the terminal:

cd Desktop/backports-20131113/
make defconfig-ath9k
make
sudo make install

Reboot and let us know if it is working. You will have compiled the driver for your currently running kernel only. When Update Manager installs a newer kernel version, also known as linux-image, after you reboot, re-compile:

cd Desktop/backports-20131113/
make clean
make defconfig-ath9k
make
sudo make install
sudo modprobe ath9k

Please retain the files and these instructions for that time.


-windowed -noborder  in launch options
might work.


Checkinstall .deb package not create empty directories

I just came across the same problem and posted a bug report.

As a workaround, you can use a postinstall-script to create the empty directories (don´t know if it´s possible to use relative dirs). This will be included in the package and run after installation.

cat << EOF > postinstall-pak
#! /bin/sh
mkdir #DIRECTORY#
EOF


Back/Forward mouse buttons don't show up in evtest

The mouse sends a bad HID report descriptor on Bluetooth (it sends the right one over USB). I wrote a kernel module to fix it: https://github.com/matega/hid_mimouse


Is there a way to disable all connecting storage devices via usb in Ubuntu 18.04?

Have same issue, I google it and found one solution:

$ chmod 700 /usr/lib/gvfs/gvfsd-mtp  # if you don't want to root also change it to 000

$ chmod 700 /usr/lib/gvfs/gvfsd-afc


Due to irregular configurations, the kernel doesn't know what to do upon insertion of said medium. Load usb-storage:

$ sudo modprobe usb-storage

This instructs the kernel on what to do.


At first go to the Settings -> Keyboard Settings

go to Custom Shortcuts

click on  +

type in Name: Empathy and Command empathy

and add shortcut as F4


Why Does "apt-get install npm" Remove A Bunch Of Plesk Files?

Same thing.
But i do :

apt-get install npm

I answered question Y/n : n

After i do :

apt-get install --only-upgrade npm

After i do

apt-get install -s npm

And when i do :

apt-get install npm

I don't see deleted package and i install npm without delete Plesk :)


`sudo ubuntu-drivers list` is suggesting a server version of the nvidia driver

I don't know where why you have this this bug the the recommended installation is from the ppa.
Try to install the latest version from ppa :
$ sudo add-apt-repository ppa:graphics-drivers
$ sudo apt-get update
$ sudo ubuntu-drivers autoinstall

Check the proposed drivers with :
$ sudo ubuntu-drivers devices

If the 455 is the recommended version run :
$ sudo ubuntu-drivers autoinstall

Alternatively, install desired driver selectively using the apt command. For example:
$ sudo apt install nvidia-450

If you have some trouble, purge the old installation before installing new driver :
$ sudo apt purge nvidia-*

Source : https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux


open a terminal and type the following commands:

sudo apt-get update
sudo apt-get install libssl0.9.8*

Then, try running the server again. Also, FYI there is a ppa. You can install it by executing the following commands in an open terminal:

sudo add-apt-repository 'deb http://debian.drdteam.org/ stable multiverse'
wget -O - http://debian.drdteam.org/drdteam.gpg | sudo apt-key add -
sudo apt-get update

And to install packages:

sudo apt-get install zandronum doomseeker-zandronum

More applications are available from that ppa as well.

If you don't want to install the ppa, you can download the .deb packages from here debian.drdteam.org. Just keep an eye on which version[s] you download (amd64 or i386). To install dependencies along with installation of a downloaded deb you can either open the file using software-center or you can install gdebi and use that instead. Otherwise, just use dpkg -i filename.deb and run sudo apt-get -f install after to fix dependencies.


What are these extra output lines in bash?

You have probably issued a command like this:

wget -c http://downloads.sourceforge.net/project/zorin-os/9/zorin-os-9-core-32.iso?r=http%3A%2F%2Fzorinos.com%2Fdownload9.html&ts=1460659842&something-else

That command contains the special character &, which is used to run multiple processes concurrently. That command is being interpreted as three (or more) commands:

# First command (the one that you see after [1]):
wget -c http://downloads.sourceforge.net/project/zorin-os/9/zorin-os-9-core-32.iso?r=http%3A%2F%2Fzorinos.com%2Fdownload9.html
# Second command (the one that you see after [2]):
ts=1460659842
# Third command (the one which output should be above the "Done" lines):
something-else

Here's an example that may help you understand better:

# Here I'm launching three 'echo' commands, the first two in background, the third in foreground
andrea@andrea-laptop:~$ echo first & echo second & echo third
[1] 5033    # This is bash telling me that the first process was started with job number 1 and PID 5033
first       # This is the output from the first process
[2] 5034    # This is bash telling me that the second process was started with job number 2 and PID 5034
third       # This is the output from the third process
second      # This is the output from the second process
andrea@andrea-laptop:~$
[1]-  Done                    echo first    # This is bash telling me that the first background job has quit
[2]+  Done                    echo second   # This is bash telling me that the second background job has quit

You should properly quote URLs to avoid this and other nasty effects:

wget -c 'http://downloads.sourceforge.net/project/zorin-os/9/zorin-os-9-core-32.iso?r=http%3A%2F%2Fzorinos.com%2Fdownload9.html&ts=1460659842&something-else'


How to set F3 F4 and F6 to copy, paste and cut?

Install autokey

sudo apt-get install autokey-gtk

Open Autokey
File -> New -> Folder
Select Folder and create New Script from File -> New -> Script
in the "# Enter script code" enter

keyboard.send_keys(shortcut you desire to imitate)

Examples
Copy:

keyboard.send_keys("<ctrl>+c")

Paste:

keyboard.send_keys("<ctrl>+v")

Cut:

keyboard.send_keys("<ctrl>+s")

NOTE: repeat Step 4-5 for each hotkey you want to add
Click on the second "set" on the Hotkey and set your hotkey
Test them out.

It should work now.

Extra

Enable automatically start Autokey at login (Edit -> preferences -> general) , clear the special hotkeys (Edit -> preferences -> Special Hotkeys) and we are done.

Credits: https://ubuntuforums.org/showthread.php?t=1764318


Ubuntu 18.04 stuck at start-up - probably not properly unmounted?

You may have a problem with an older computer, with an older GPU. Try this...

boot to recovery mode
choose root access

type:

sudo mount -o remount,rw /        # to remount the disk r/w

sudo pico /etc/gdm3/custom.conf   # edit this file

change:

#WaylandEnable=false

to:

WaylandEnable=false

Then reboot.

Update #1:

boot to recovery mode
choose root access

type:

sudo mount -o remount,rw /        # to remount the disk r/w

sudo cp /etc/fstab /etc/fstab.BCK # backup the file first

sudo pico /etc/fstab              # edit the file

change:

UUID=2AF3-34F1 /boot/efi vfat umask=0077 0 1

to:

UUID=2AF3-34F1 /boot/efi vfat defaults 0 1

reboot the computer


I had the same problem with Kubuntu 16.10, but I fixed it today.

The update center showed up a notification after every boot, that third party software may be needed for my system to work properly. I clicked on the notification and a dialog opened. It took some time, but after a few minutes the dialog showed the message, that the system needs the package intel-microcode:amd64 to run properly.

Here is the log entry of the operation apt did:

Start-Date: 2017-03-26  17:02:24
Install: intel-microcode:amd64 (3.20160714.1), iucode-tool:amd64 (1.6.1-1ubuntu0.1, automatic)
End-Date: 2017-03-26  17:02:36

Since I installed those two packages CS:GO runs perfectly smoothly with the graphics pushed to the maximum.


There are bunch of tools but i don't know whether they will be appropriate to you , but
at-least you can give it a try !

please refer these :-

http://www.howtogeek.com/wiki/Open_Source_or_Free_Disk_Cloning_Utilities

http://en.wikipedia.org/wiki/Comparison_of_disk_cloning_software


Can I make a external hard drive bootable with ubuntu 13.04?

You can , you have to make sure your external hard drive does not contain anything else other than the ISO image. If you know the process which you need to take for a flash disk, then you simply follow the same procedure i.e instruct your computer to boot from external sources. I would always recommend use of a CD.


Best way to add internal hard drive for media to ubuntu server

Updated
Yes.  Disk device IDs (sda,sdb,etc) can change.  These designations are assigned at boot time by when the device is discovered.  This is why it is important to mount volumes using their unique identifier or UUID.  The UUID is easy to find:
ls -l /dev/disk/by-uuid
or
lsblk -o MOUNTPOINT,NAME,UUID
Add an entry to /etc/fstab to have your volume mounted automatically at boot time using this UUID   Example:
UUID=03361cf5-83bf-40f9-b3aa-f172c4cec12f /var/multimedia  ext4   rw,relatime    0       1
Once in /etc/fstab, your volume will mount automatically at boot time.  Or you can mount manually by:
sudo mount /var/multimedia
Once mounted, you will need to ensure users have appropriate access and permissions on the volume.  The "chown" and "chmod" commands are used for this. Typical "full" access would be accomplished by:
sudo chown myuser:myuser /var/foldername
sudo chmod 774 /var/foldername

Test your access by creating a file in the folder:
touch /var/foldername/testfile

If you are using this volume for a particular application that has a dedicated user account or group, refer to your applications documentation for the appropriate settings.


As I can read in your Mobo manual you have settings there to slow down your USB speed. Did you check these settings? You can read how on your manual on page 2-16. Maybe you set them to slow speed mode?

Your manual you can find here:

ASUS M5A78L-M LX V2


Seems like there's a lot of Hindi dicts for stardict: google query


How to get Nautilus-scripts working Nautilus?

Try putting scripts in /home/$USER/.local/share/nautilus/scripts/

This is my scripts folder:

This is the result:


Ubuntu web server, how to hide filename in web address

Don't.

There's very good reasons for not hiding it. If a user bookmarks something, they expect to be taken to that exact page. If they view the history, they want to find the exact page. Not your front page, like they will with your scheme.

If you absolutely insist on doing it, you can use a full screen iframe. This requires editing your webpage, not configuring the webserver. Make index.php contain

header

where index2.php is your real index.

Again, don't do this. It breaks the experience users expect. It may affect your SEO ranking as well. There's a reason why URLs are structured the way they are.


How can I change the HUD key from the command line?

The following seems to work for me (on Ubuntu 12.04) to set the HUD key to Alt:

gconftool-2 --set "/apps/compiz-1/plugins/unityshell/screen0/options/show_hud" --type string "<Alt>"

I can replace "<Alt>" (the default) with the desired keystroke, e.g. "<Alt>x" (for Alt+X) or "<Control>" for Ctrl.

Note that if you have a different screen configuration (e.g. multiple monitors), the "screen0" in the above key name may need to be changed accordingly.  To find the correct key name(s), do

gconftool-2 --recursive-list "/apps/compiz-1/plugins/unityshell"

and see where the show_hud key appears.


Gnome Shell doesn't recognize Wine windows

In a console, type winecfg then enter. This will open the configuration tool of wine. (I think that if you type "wine config" into gnome search bar, you might also get a "Configure wine" app, it's the same).

Under "graphics", make sure "Allow the window manager to decorate the window" and "Allow the window manager to control the window" are checked.

You have to do that for all wineprefix you use.


My touchpad is not supported by the kernel

I think it's not a kernel issue.
Try changing your touchpad settings from Advanced to Basic on BIOS menu.


16.04 guest on 16.04 host - "VBoxClient: Failed to connect to the VirtualBox kernel service, rc=VERR_ACCESS_DENIED"

How I got it working for me:

My setup:

VirtualBox 6.0.4
Host machine - Ubuntu 18.04
Guest machine in virtualbox - Kali 2019.1 kernel version 4.19.0

Install needed packages with apt on GUEST machine

apt-get install build-essential virtualbox-guest-utils virtualbox-guest-x11 virtualbox-guest-dkms

After this, run:

VBoxClient --clipboard

Also, make sure that you have enabled Shared Clipboard from Settings>General>Advanced on the HOST machine.

Now it should be working :)


You can install this via the terminal (or find it in software center):

sudo apt-get install gparted


Unable to turn on bluetooth on my lenovo ideapad U310 using ubuntu 14.04

First, check out if you have the Bluetooth LKM (Linux Kernel Module) enabled.

sudo lsmod | grep bluetooth

If you don't, try this.

sudo insmod bluetooth

If this fails,  you'll have to recompile your kernel to add Bluetooth support (unlikely, since Ubuntu has a rather good hardware detection). If th bluetooth LKM successfully loads, try troubleshooting the issue with bluetoothctl

sudo apt-get install bluez

Then

[bluetooth]# list
[Controllers list]
[bluetooth]# select [controller]
[bluetooth]# devices

That should give you a base for troubleshooting. Also, check dmesg to see if there's any issue with the LKM on boot-up.

Edit: removed yum command.


When the system suspends, later not awake just restart

Your swap partition should be large enough in order to hold all the information your system needs to suspend/hibernate and wake up.

https://wiki.debian.org/Swap is a good reading and mentions:

Things to consider when deciding how to setup swap space on your machine

Do you intend to use the Hibernate and Suspend functions? If you intend to use either, you will need to ensure your available swap space is large enough to hold all information your running system will have in RAM. If you intend to use Hibernate you should ensure that your Debian installation has access to a swap partition or file that is NOT shared with another instance of GNU/Linux.


Do my files get saved if I upgrade to Ubuntu and then revert it?

As stated in comments you do not "upgrade" from Windows to Ubuntu. You "switch" from Windows to Ubuntu.

During the installation of Ubuntu you are offered a choice between

erasing Windows and all other data from the drive to install Ubuntu in their stead or
shrinking the partition with the Windows installation to install Ubuntu alongside it (this will retain all other previously existing data) or
repartitioning the drive(s) and assigning partitions yourself if you have different plans and know what you’re doing, or if the installer can’t figure out how to perform any of the other two options.

When operating in Windows most users create documents with Microsoft Office.

When in Ubuntu most users create documents with LibreOffice (called LO for short). LO has the ability to save files in both Ubuntu format (simplistic term) and Microsoft Office format.

Usually you will operate in "dual boot mode" where both Windows and Ubuntu are installed on your machine and whenever you "reboot" your machine you pick which operating system (Windows or Ubuntu) you want to run.

While operating in Ubuntu you can open and save documents within Windows.

Hope this clears the air for you.


left-click on launcher icon does not start the application

Worked for the original poster of this fix: (fixed Unity system bar and launcher):

  Reinstall all already installed packages in Synaptic related to searches libgl and glx.

May be needed first:

sudo apt-get purge fglrx fglrx-amdcccle    # or another fglrxs

But FGLRX drivers doesn't feel alright on my computer anymore, so goodbye FGLRX :( . No idea why.

Credit goes to this post


Why is the output of _$ _ when executed on a terminal?

From man bash:

DEFINITIONS
       The following definitions are used throughout the rest of this document.
       blank  A space or tab.
       word   A sequence of characters considered as a single unit by the shell.
              Also known as a token.
       name   A word consisting only of alphanumeric characters and underscores,
              and beginning with an alphabetic character or an underscore.  Also
              referred to as an identifier.
...
PARAMETERS
       A parameter is an entity that stores values.  It can be a name, a number,
       or one of the special characters listed below under Special Parameters.
       A variable is a parameter denoted by a name.

A variable can only have alphabets, numbers and underscores. And so now_ is a valid variable name, and is interpreted as such.

You can delimit the variable name in different ways:

_"$now"_
_${now}_
_$now"_"
_$now'_'

Or any combination of the above.


work around for apt-get download error of unable to select the candidate version?

I found this link here working, as I encountered the same problems like you:

www.ostechnix.com/download-packages-dependencies-locally-ubuntu/

Roughly it works like this (replace keyword python by the name of your dependency, for me it was network-manager, and it worked nicely):

$ sudo apt-cache depends python will list all python dependencies
Output:

python
PreDepends: python-minimal
Depends: python2.7
Depends: libpython-stdlib
Conflicts: <python-central>
Breaks: update-manager-core
Suggests: python-doc
Suggests: python-tk
Replaces: python-dev
Create a directory somewhere in your workspace:
mkdir python
Go into this directory:
cd python
Run a foreach loop on each dependency for all recommended, suggested and depending packages and pipe the errors into an errors.txt file:

$ for i in $(apt-cache depends python | grep -E 'Depends|Recommends|Suggests' | cut -d ':' -f 2,3 | sed -e s/'<'/''/ -e s/'>'/''/); do sudo apt-get download $i 2>>errors.txt; done
In errors.txt there should be some "W:" warnings about non-dropped
privileges  which you can ignore as it does not affect the
downloaded results, which you can prove typing $ls -la, as you
can prove for yourself, that every file is in place which was warned
for (and as you probably don't need privelges for that step).
After bringing the files i.E. with an USB stick to the target device you can go on with

$ sudo dpkg -i *
in the related (dependency) directory (in this case python and you should be able to install the files.


Failed to fetch update on Ubuntu 14.04 LTS (Trusty Tahr)

Enter the following commands in a Terminal:

sudo rm -vf /var/lib/apt/lists/*
sudo apt-get update


mount two network drives under different directories under /mnt

I think your problem is the already existing entry in /etc/fstab. It holds the /mnt some kind of locked because it "knows" that at any time there will be a drive mounted to.

Remove (or comment out) the entry from /etc/fstab and reload sudo mount -a or reboot
Create the two folders

sudo mkdir -p /mnt/volume1/video
sudo mkdir -p /mnt/volume2/videos

-p creates the the necessary parent folders, too
Now add the according entries to /etc/fstab
You already should be able to test it now using sudo mount to mount manually.
Reboot to check if the fstab mounts automatically now.


I faced the same problem and in my case my Toshiba Tecra A11 resumes after opening and closing the laptop-lid twice or maybe three times...


I was able to solve the problem by installing the xserver-xorg-video-intel package.
Seems to be a problem with the generic modesetting xorg driver in my case.


"Language support" icon missing in System Settings

The Language Support utility is provided by the language-selector-gnome package

sudo apt-get install language-selector-gnome

Once you install that package, you'll see the language option in the System Settings again.


Notable framerate improvement on Skyrim LE on 20.04.2

Well, it's quite clear to see what has happened here:

This is the second point release in the Ubuntu 20.04 LTS series. It
rolls together all of the software updates, security patches, and bug
fixes issued to the Focal Fossa to date. Plus, it intros a new
hardware enablement stack (HWE) composed of a new kernel and updated
Linux graphics drivers.
Linux 5.8 is the big lure of this point release, carried over from
last October’s Ubuntu 20.10 release. Linux 5.8 introduces improved
hardware support for AMD Renoir chips, a kernel concurrency sanitiser
(not that kind) and more exFAT driver improvements.
Mesa 20.2.6, the last point release in the 20.2.x-series, is included,
as is libdrm 2.4.102, and xserver 1.20.9.

https://www.omgubuntu.co.uk/2021/02/ubuntu-20-04-2-lts-released
So big changes to the kernel and graphics stack have contributed. Maybe the new Mesas needed something in the newer kernel to work to their best potential - but either way, these changes appear to have made a significant difference. It's this combination - rather than one or the other - that seems to be responsible.


External drives & mobile phone open f spot, not the file manager.

I am sorry i cannot give you the correct English names - i use Ubuntu in german.

If you open the system stuff (first entry on the menu on top right) u will find something on external mediums - there you can choose that it should always ask you what to do with medias.


FTP client Failed on UBUNTU but working fine on Windows 7

"530 Login incorrect" means that the FTP username/password combination is incorrect.  Are you sure that you are using the same username and password on Ubuntu that you used on Windows?


How to make left Ctrl as Super on Ubuntu 12.10?

This is kind-of an ugly hack, but it should work:

Go to /usr/share/X11/xkb/symbols/ (this is where I find keyboard layout files on Ubuntu 12.04, but I suppose 12.10 should be similar),
Find your layout file (I guess for United States keyboard it will be simply us),
Add this line there: key <LCTL> { [ Super_L  ] }; (I think it can go right to the first "section" of that file),
Logout and login again.


ssh: connect to host HOSTNAME port 22: Connection timed out

To properly test your ssh use ssh user@ipaddress. If that fails, the issue is something deeper like the connection.


Enable compiz option without replacing the gnome-shell window manager

You can't. You can only run one or the other.


Is there any way to stream ubuntu one cloud music to xbox 360?

At this time, there is no native support for streaming. You may be able to find some sort of homebrew app or API that can help you stream. A temporary solution may be to just burn the music to a CD-R and put it in you Xbox. This will launch a process that allows you to save the music onto the HDD. The benefit to this is the ability to listen to music whilst playing a game, which is currently impossible to do with streaming alone (on the Xbox, anyway).


Where rw is read-write, ro is read-only:

sudo mount -o remount,ro /

See man 8 mount.


Uninstalling does not clear the browser's cache. Since nobody else has complained about having problems with the page, it's likely your cache is the problem.

In order to delete Chrome's cache, follow this procedure:

Click the Chrome menu button on the browser toolbar.
Select Tools.
Select Clear browsing data.
In the dialog that appears, select Empty the cache.
Click Clear browsing data.


On Kde, a different approach not involving direct editing. Took it from the link Miguel Aguayo gave in his answer. Someone attached that answer at the bottom in 2014.

Go to System Settings.
Open File Associations.
Go to Inode -> Directory
Remove Gwenview from the Application preference order list. Press Apply.
Optionally, you can add again Gwenview and make it at the bottom of the list of preferences.


How to shutdown Ubuntu after (2 hours) of idle?

This is probably the best solution. No need for screensaver tweaking and running.

Install sudo apt-get install xprintidle

Put this script into autostart:

#!/bin/bash

idletime=$((1000*60*60*2)) # 2 hours in milliseconds

while true; do
    idle=`xprintidle`
    echo $idle
    if (( $idle > $idletime )); then
        #sudo shutdown -P now
        dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true
    fi
    sleep 1
done

The comments and @Jobin 's answer did lead me to investigate myself again and I actually found a unfinished script with xprinttime but without any loop in the script. Probably not finished this because my linux/bash knowlege was not good at the time. I also did put the script I had in rc.local or something like that triggered the shutdown on boot. Thanks to @Jobin for the reminder how to add startup apps in XFCE, I already knew this but ... and credits for the dbus thing, never saw that, better then shutdown since it not requires root.


Ubuntu 20.04 screen flickering after power loss

I would assume either the graphics driver or the physical graphics card took some damage.
If it's the driver, it could happen via disk problems (filesystem corruption), which is typical after non-graceful shutdowns (like power outages).
I would do this:

would back up all the important data/files from the computer to a safe storage
would run the fsck disk utility to find and correct possible filesystem corruptions (inconsistencies in the data recorded on the disk)

while this usually works well, it does not have a guaranteed 100% success rate; that's why the backup in the previous step
to check the / system partition, you need to boot from an Ubuntu live installer USB device, and use the "Try Ubuntu without installing" mode (or boot from a system rescue disk or similar); then find and mount your / partition, and run fsck from within this OS instance

if things don't improve after this, I would try re-installing the graphics driver somehow
if things would still not improve, there are still two checks you can carry out "for free":

test the RAM for any kind of defects: it's called memtest

it's available through a grub menu entry called Memory test, and and may take an hour or two

test the internal disk for any hardware-level defects, with a SMART self-test

for hard disks it's available e.g. through the disks app's "kebab menu"; for nvme SSDs it's a bit trickier, but legend has it that using smartmontools directly can do it

if nothing was found all through this while the errors persisted, then I would sadly conclude that the graphics card hardware (or the motherboard, even?) took physical damage...


Given a used laptop with Ubuntu installed, how do I get past the password demands?

Assuming that you no have need to keep the previous users version and configuration of Ubuntu, I would say that you most logical and easiest course is to just reinstall Ubuntu. There's tons of tutorials on how to do that. Its dead easy anyway. Just burn an iso image of Ubuntu to disk to get started.

In your case, your issue might be your windows partition. If you are content at loosing it, You can just overwrite it and have your new Ubuntu use the entire disk. In that case you have no problem there.

If you do expect to somehow regain acces to the windows installation, you will want to leave that partition alone. You might have somebootloader issues to solve later, but those can be fixed usually.

Before you do anything permanent, check that your system meets minimum requirements for the latest Ubuntu version (14.04). If not, try an older version (12.10 obviously works. because thats what you have now). Also, check if ubuntu will run off the dvd/flash memory drive (Option: Try Ubuntu)

Best of luck


Errors when installing LAMP on my Ubuntu server (apache2-bin, mysql-client-5.5, mysql-serer-5.5, mysql-server-core-5.5, php5-common)

Ok, let's try something else:

I see that at one point you had information, that you have held some packages, try to run dpkg --get-selections | grep hold to see those packages (they may be blocking other packages from being installed); if the list is empty, then proceed to the next point, if not, you can try to uninstall/purge some of those packages by hand
if above does not help, try apt-get -f install - which should force finish any pending changes - if it uninstalls/installs any packages, run apt-get update and/or remove repo information and then try to install LAMP
you can also try apt-get autoremove, but I've never seen such problems caused by unused packages, but who knows

Also found this to clean held packages:

show held packages

  apt-mark showhold

un-hold them by

  sudo apt-mark unhold [package name]

Source: E: Unable to correct problems, you have held broken packages


People with the same problem say that it went away with an updgrade to kernel  linux-image-3.5.0-23-generic.

Before that they solved it by raising the number of max_user_instances, by running:

sudo echo 8192 > /proc/sys/fs/inotify/max_user_instances

(Taken from: Spotify wont start: FileSystemMonitorLinux() failed)

This seems to make sense since the error message you got showed failed [inotify_init()]. The man page for inotify_init shows several possible errors, including

The user limit on the total number of inotify instances has been reached.

and

The system limit on the total number of file descriptors has been reached.


It works very well.
Tested timeshift with rsync before, but quickly converted my partitions to btrfs.
Still using rsync for backups to external hdd or cloning laptops at work (but acronis does the job faster).

I use it with BTRFS on my private and work laptop and also on some dev systems.
Systems with a broken config, strange sys behaviour or broken updates can be repaired by executing a simple rollback. Which is around 10 times faster with BTRFS compared to an rsync source (only takes as long as a reboot).

RSYNC has to copy a lot of files back to the system and either needs a working network connection or a connected backup drive.
BTRFS (simplified) sees the file system as volume layers, consisting of snapshots. Each one is an incremental volume of the partition.
For a rollback, it mounts the the chosen snapshot as tha current main volume and also retains the snapshot from before the rollback, so newer files can be found and restored by using a diff between those 2 virtual volumes (diff backup|old state).

We often (intentionally) break the dev system software. Rollback to snapshot, and it works all fine again.

Also on production servers. If updates go wrong or other serious errors happen, I create a snapshot and roll back the system to the snapshot before that update.
After the system is up and running again, log files can be extracted from the "pre rollback" snapshot.

Very useful tool to ensure system availability with reliable rollbacks.
Also works fine on ubuntu 18.04 and mint 19 (which includes snapshots by default before updating)


Nvidia Optimus with GTX 850m not working

I think the problem is that current version of Nvidia drivers in Ubuntu does not support this card. You can try to install a newer version.
Run in terminal.

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346
sudo add-apt-repository -r ppa:xorg-edgers/ppa

Also it makes sense to upgrade kernel and graphical stack to HWE of 14.04.2.
It can be done by running:

sudo apt-get install --install-recommends linux-generic-lts-utopic xserver-xorg-lts-utopic libqt5gui5 libgles1-mesa-lts-utopic libgles2-mesa-lts-utopic libgl1-mesa-glx-lts-utopic libgl1-mesa-glx-lts-utopic:i386 libglapi-mesa-lts-utopic:i386 libegl1-mesa-drivers-lts-utopic

Then reboot.

After that try both 346 and 349 drivers. New kernel and stack support newer hardware better.


You should install HPLIP

sudo apt-get install hplip hplip-gui

for additional info take a look at here


Ubuntu 14.04 LTS wireless (suddenly) not working

Run in terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "11n_disable=1 swcrypto=1 power_save=0 bt_coex_active=0"

and reboot.

And also I suggest upgrading the kernel by

sudo apt-get install linux-generic-lts-vivid


How can I use grep to view only part of BFGMiner which is being run in screen over ssh?

Use tail, it will follow a file as it grows. You can pipe tail into grep: tail changing-log-file | grep whatever-you-need. You can have BFGminer produce a logfile you can tail with the -L parameter apparently, use -L /path/to/file. Then on your local system you can do something like:

ssh server.com tail -f /path/to/file | grep DEVwhatever

just Ctrl+C this process when you want to stop following the log.

Happy mining!


Cannot install Acrobat Reader on Ubuntu 12.04.1

open your terminal and type this one by one

sudo dpkg -r acroread_9.5.1-1precise1_i386.deb
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade


Enforcing corporate desktop and short cuts on Ubuntu 12.04 Unity

The only thing that I'm aware of is Sabayon.

  Sabayon is a system administration tool to define and deploy desktop
  profiles for the GNOME desktop environment. It allows you to control
  such things as panel layouts, menu items, default gconf settings, as
  well as provide pre-defined defaults for some non-GNOME programs such
  as Firefox. It also makes use of the lockdown functionality of
  Pessulus. It does this by providing a "desktop within a window",
  allowing you to customize your desktop as you see fit, then recording
  your changes, to be applied to users by the sabayon-apply program at
  login time.Sabayon

For more information, and to download, visit their Website.


Ubuntu 17.10.1 has been released to avoid that problem. Ensure that the installer you use is 17.10.1, not 17.10. The ISOs are available here.


Unable to login to super user from normal user

Open the terminal and type the following command:

sudo su


unmount drive / e2fsck / re-mount -> are my files gone

First of all: Don't try to do further repairs on the original disk !
Use another hard drive and backup /dev/mapper/drive with "dd" as an image to the new disk: (I assume the new disk use a file system and is mounted to /mnt/newdisk directory)

dd if=/dev/mapper/drive of=/mnt/newdisk/drive.img bs=4M

after that you should try to repair only using the image-copy "mnt/newdisk/drive.img".
mount the image and a look to the "lost+found" directory if you can find data inside this.

losetup -f /mnt/newdisk/drive.img
losetup -a|grep drive.img   ### get the /dev/loop-device
mkdir /mnt/drv-copy && mount /dev/loopX /mnt/drv-copy
ls -la /mnt/drv-copy/lost+found

But e2fsck will normally replay only the journal and exit. If you don't use -f -p e2fsck will not check and repair the file system structure. So if you don't had a I/O error caused by a media error before you shouldn't lost data. so check if you can find I/O messages on systemlog/dmesg during the "dd" copy.
if not do an unmount on /mnt/dsk-copy and use "e2fsck -f -y


Make sure that you have not opened other programs that use dpkg like the Software Manager or the software updater and try again.


No, some boot loaders like Windows' rely on the boot flag, because it simply passes control to the partition boot sector.

But Grub does not require this; it knows which partition contains additional grub modules and the config file and loads them based on that information rather than the presence or absence of a boot flag.

If you run the bootinfoscript it will tell you more information about your system, including where Grub loads it's files from. Usually Grub will locate this partition based on its UUID, so modifying other partitions doesn't affect booting. But if Grub is booting with the partition number, deleting or adding partitions may result in boot problems.

I would recommend having an Ubuntu bootable USB available so that you can reinstall Grub if required.

Q. How does the BIOS know it should run Grub?

For BIOS based (not EFI) computers, BIOS looks to the MBR (master boot record) to find the main bootloader and partition table. This is where Grub is installed (or the windows boot loader). The problem with this is that the space is very limited so the functionality of the bootloader is too. For Windows' bootloader that's okay because it does little more than pass on control, but Grub takes a different approach and loads up additional modules as required directly from it's /boot partition.

If you look at the results of the bootinfoscript it tells you what is installed in the MBR as in:

============================= Boot Info Summary: ===============================

 => Windows is installed in the MBR of /dev/sda.

or

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    for (,msdos5)/boot/grub on this drive.


Unfortunately that's a known bug in Remmina 1.12 running on Ubuntu 15.04-16.04 and you have a few options:

Do nothing and live with it  :-( (That's always an option)
Install the Remmina PPA on 16.04. :-)

sudo add-apt-repository ppa:remmina-ppa-team/remmina-next
sudo apt update
sudo apt dist-upgrade

Upgrade Ubuntu to Bionic 18.04 which has version 1.2 :D (a bit of overkill, but it's also an option)

sudo do-release-upgrade


Wine's audio stack was simplified years ago. They removed everything else and went with ALSA and tried to make that as compatible with Pulseaudio as possible. Why? Because it satisfies 99.99% of the modern desktop Linux users.

If you want to use JACK, you're going to need to manually route the audio around. I would assume anybody choosing JACK would know all about this side of things but here's the documentation on it, just in case: http://jackaudio.org/routing_alsa


Grub: preferred video interface at boottime

This is not an option you can select in GRUB, it's a BIOS option.

In your BIOS, you should be able to select a default video output for boot up.


Adding custom search engine to Thunderbird

Somebody on Mozilla Support Forum answered this question. I'm reproducing the solution here just in case anybody winds up here.

Create a searchplugins directory in the Thunderbird profile directory, and copy into it the desired xml files such as ddg.xml, google.xml etc.
When you launch TB, the added search engines are not visible in Options, as expected.
Close TB and rename search.json.mozlz4 in the profile folder to search.json.mozlz4.OLD; a new search.json.mozlz4 is created when TB is launched, and now the added search engines are available in Options.


Internet Performance Monitoring Tool With WebUI

You may try PRTG or Zabbix for free. Both of them are great tool!


How to remount /home and etc... with Virtual machine

You need to use the Shared Folders feature of VirtualBox. If you open this tab of the machine settings, you can add folders either permanently or just until the VM shuts down.

You need VirtualBox Extensions installed in the VM. Then you can just mount the shared folder as a special filesystem.

For example, if you've added C:\Users\TardisGuy as a shared folder named TardisGuy then inside the VM you can do:

mount -t vboxsf TardisGuy /home/tardisguy

You can also add a line to /etc/fstab as:

# <file system>  <mount point>    <type>  <options>  <dump>  <pass>
TardisGuy        /home/tardisguy  vboxsf  defaults   0       0

NB: vboxsf is not a typo. It stands for VBOX Shared Folder not VBOX File System.


installing fingerprint scanner on ubuntu 15.10

This fingerprint reader is not supported in Linux, Validity did release the source code or a binary for this fingerprint reader model. At this age Validity will likely never release it, but you can sign the petition request to biometric manufacturers to release open source code for readers here but there is little support for it.


Why can't I boot Xubuntu from a flash drive after installing with Wubi

Wubi boots via the Windows Boot Manager and grub4dos. The place you install Wubi, whether the C: partition, D: partition or an external USB partition doesn't matter. It's not bootable without a boot manager.

By booting from the USB, your BIOS is checking for a bootloader in the Master boot record, and this is not something Wubi will ever add.

What you need to do, is boot Windows normally with the USB plugged in, and then select Xubuntu from the Windows boot manager and grub4dos (as wubildr.mbr) should find Grub 2 (in the wubildr) and then locate the Xubuntu root.disk and load it from the USB.


What is the command to update time and date from internet

This is a nice little code I found to update your time in case you have issues with ntp:

sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"


The Libreoffice packages depend on libreoffice-core, and libreoffice-core alone drags in 90+ packages:

# apt-get install libreoffice-core --no-install-recommends
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core fonts-opensymbol
... snip ...
The following NEW packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core fonts-opensymbol
  gconf-service gconf-service-backend gconf2-common libatk1.0-0 libatk1.0-data
  libavahi-client3 libavahi-common-data libavahi-common3
  libboost-date-time1.54.0 libcairo2 libclucene-contribs1 libclucene-core1
  libcmis-0.4-4 libcolamd2.8.0 libcups2 libdatrie1 libexttextcat-2.0-0
  libexttextcat-data libfontconfig1 libgconf-2-4 libgdk-pixbuf2.0-0
  libgdk-pixbuf2.0-common libgl1-mesa-glx libglapi-mesa libglu1-mesa
  libgraphite2-3 libgtk2.0-0 libgtk2.0-common libharfbuzz-icu0 libharfbuzz0b
  libhunspell-1.3-0 libhyphen0 libice6 libicu52 libjasper1 libjbig0
  libjpeg-turbo8 libjpeg8 liblangtag-common liblangtag1 liblcms2-2 libltdl7
  libmhash2 libmythes-1.2-0 libneon27-gnutls libnspr4 libnss3 libnss3-nssdb
  libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0
  libraptor2-0 librasqal3 librdf0 libreoffice-common libreoffice-core
  libreoffice-style-galaxy libsm6 libthai-data libthai0 libtiff5 libx11-xcb1
  libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0
  libxcb-shm0 libxcb-sync1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3
  libxi6 libxinerama1 libxrandr2 libxrender1 libxshmfence1 libxslt1.1 libxt6
  libxxf86vm1 libyajl2 lp-solve uno-libs3 ure x11-common
0 upgraded, 91 newly installed, 0 to remove and 0 not upgraded.
Need to get 68.6 MB of archives.
After this operation, 271 MB of additional disk space will be used.
Do you want to continue? [Y/n]

So you can't get away with installing any fewer. The libreoffice package brings in about 30 more packages. However, if you don't install the integration packages (libreoffice-gnome, libreoffice-kde), you wouldn't bring in the GNOME/KDE components. The libreoffice doesn't depend on these integration packages, so you should be OK with installing just libreoffice:

apt-get install libreoffice --no-install-recommends


can't install openjdk keeps giving me error

You could try reinstalling them cleanly.

sudo apt-get purge openjdk-9-jre openjdk-9-jdk
sudo apt-get update
sudo apt-get install -f

now I don't know which one you need, probably only the jre if you need the jdk install only the jdk (that means openjdk-9-jdk)

sudo apt-get install openjdk-9-jre


Intel Wirless Dual band 3165 Configuration

This will work on your current kernel
wget https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-7265-ucode-25.17.12.0.tgz
tar zxvf iwlwifi-7265-ucode-25.17.12.0.tgz
cd iwlwifi-7265-ucode-25.17.12.0
sudo cp iwlwifi-7265D-12.ucode /lib/firmware/iwlwifi-3165-12.ucode

Reboot


You can remove the printer through the cups interface http://127.0.0.1:631/printers/ by selecting the printer listed there and at the drop-down list "Administration" delete printer. You also can cancel through this interface the printing jobs if you issue any problems.


How can I get boot menu up to install on mini 9 from flash

Update: Some Dell Mini 9 forums say to hold 0 (zero) right when you power on to get the boot menu.

At the beginning of your boot, hit F2 to enter BIOS settings. Once in BIOS, go to the Boot menu and make sure "USB Storage" will boot before your hard drive (higher up in the list means boot first). It should look something like this.

or this


How to remove individual calendars from Gnome Calendar in Bionic Beaver

If you got to "Calendar Settings" you can select/click on the calendar you want to hide.

Then there will be an option to display it or not display it.

This will not fix your problem with Gnome Calendar asking for your credentials. If you want to stop that from happening, you will need to remove the online account (System Settings > Online Accounts). If this is a Google account you could generate an "application password" for Ubuntu, that would bypass two factor authentication and is designed for permanent access, which is what you for Ubuntu whereas passwords + 2FA are what you want for ephemeral web logins.


Installation of Heroku returns errors with json

It seems there is a problem with version 3.9.4 of Heroku ToolBelt.

As there is a new version available it should be fixed with a update:

$ sudo apt-get update && sudo apt-get upgrade

or if you only want to update that package

$ sudo apt-get install heroku-toolbelt


The names are slightly confusing but Ubuntu is Unity 3D and Ubuntu 2D is Unity 2D.

When you are logged into Ubuntu (Unity 3D) you can confirm compiz is running with the command

ps -e | grep compiz


Ubuntu 11.10 not suspending automatically

Here is a workaround. It requires xprintidle to be installed:

#!/usr/bin/perl

use strict;
use warnings;

my ($idletime,$suspendtime);
while (1==1){
    $idletime= qx/xprintidle/;
    $suspendtime = qx/gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout/;
    if ($idletime/1000 >= $suspendtime){
    exec("pmi action suspend");
    }

    print "idle: $idletime\n suspendtime: $suspendtime\n";

    sleep 180;
}

Put this in your shell in the background or start it on login.


X server doesn't start after upgrading vbox lubuntu 17.10 to 18.04

The problem turned out to be that I was running 16.04 on the host, which was getting me virtualbox-5.1. Upgrading to 5.2 on the host fixed my problem.


Lubuntu: How do I autostart xfce4 power manager?

Check ~/.config/lxsession/Lubuntu/desktop.conf.

Look for laptop_mode and see that it's set to 'yes':

[State]
laptop_mode=yes

This worked for me at least. Mine was set to 'no' so I would have to start xfce4-power-manager manually. By changing the value to 'yes' it now starts at login automatically without any further configuration.


When you replace battery the bios settings go back to default.
You should update your BIOS to latest version and set all your settings to improve your situation.


Help me to make my wifi work in lenovo ideapad 330s

Try this:

sudo apt install git
git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce
sudo apt install bc module-assistant build-essential dkms
sudo m-a prepare
sudo ./dkms-install.sh
reboot

You could also try:

Show Applications gnome menu ->
Enter into Search field Additional keyword
and open Additional Drivers (opened tab in Software & Updates window will appear).
Look if there's your wifi-drivers present.

  Some new Yoga laptops (like the Yoga 530) come with rtl8821ce as the
  Wi-Fi/Bluetooth chip. But the ideapad-laptop module, which may come
  included in your distribution, may conflict with this driver. To
  disable:

sudo modprobe -r ideapad_laptop

For USB tethering, try mac address changing:

First of all try a different cables
ip link show - run in terminal to see what devices it shows
Connect your phone to your laptop and enable USB tethering
ip link show - run in terminal to see changes (the new usb0 network device appeared in my case):

4: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 7a:20:09:6d:dd:a1 brd ff:ff:ff:ff:ff:ff

sudo ip link set dev usb0 down

4: usb0: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 7a:20:09:6d:dd:a1 brd ff:ff:ff:ff:ff:ff

sudo ip link set dev usb0 address 8a:20:09:6d:dd:a1
sudo ip link set dev usb0 up

4: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 8a:20:09:6d:dd:a1 brd ff:ff:ff:ff:ff:ff

As you can see, I've changed my usb0 network adapter's mac address from 7a to 8a at the beginning of it.


I would start by checking the permissions on ~/.dropbox and ~/Dropbox. Makes sure they are owned by you and you can read and write to them.

After that, re-install dropbox.

Finally, contact their support. Dropbox is closed source and commercial so we donit really have a log to work with to help you out. I would suspect a permissions problem though.


Is there a compressed memory available for 12.04? (Not compressed swap)

I was reading some article and found that Ubuntu already have compressed ram algorithm built in on the kernel. This called zram. This feature just doesn't automatically activated.

Based on this site : http://www.webupd8.org/2011/10/increased-performance-in-linux-with.html
Activate it by installing the config

  sudo apt-get install zram-config

Just try it.


Show all running windows when moving mouse pointer to top-left corner hotspot?

Although xdotool is a more generic solution, compiz has a solution for this:

Install CompizConfig Settings Manager, go to the Scale plugin, Bindings tab and choose 'Initiate Windows Picker'. Choose any corner/edge to show all the windows.


cannot remove directory rm: cannot remove ‘/opt/odoo/.gvfs’: Device or resource busy

You can try below command then try to remove user:

sudo umount /run/user/root/gvfs


Why doesn't my gedit(ubuntu 12) have an edit button

After opening up gedit, try the following,

Alt+e

And the 'edit' drop down menu should appear unless something is really wrong.


Installing IPython and Eclipse returns errors

First off, make sure you're connected to the internet. The commands you're using are not installation commands. apt-get update updates the Ubuntu repositories. This is useful if you want to install something from a PPA. apt-get clean removes unnecessary files from your computer, such as dependencies from uninstalled packages. apt-get upgrade upgrades your currently installed software to the latest version in the repos.

To actually install IPython, make sure you're connected to the internet, and type into the terminal sudo apt-get install ipython. To install Eclipse, type in sudo apt-get install eclipse. I hope this helps you!


Set functions for blank keys after switching from Japanese to English Keyboard Ubuntu 18.04

Keymappings are kept at /usr/share/X11/xkb/symbols/. I have a laptop on which I swap around home/end and pgup/pgdown because their positions on the keyboard irk me. If you can figure out where those keys are assigned in those configs, it should just be a matter of assigning them with the right code to match the key you want them to press. Remember to log out and in after each reassignment.

If you REALLY want to get involved with it, Here's the xorg xkb page detailing how to really work with it, but for simple reassignment you shouldn't need to go that in-depth.


Ubuntu 15.10 webcam upside down google chrome

it looks like it will not work with Chrome until Google fix their Linux version. See this answer for better explanation.


Final Hardware Selection Step in Landscape Openstack Install

I'm not 100% sure, but I made a new network in MAAS called public and added the 2nd NIC from all my dual NIC'd computers in MAAS that are on that network. (I have 3)  Then in landscape's Open vSwitch configuration I chose this 'public' network.

It got me past that step, don't know if it works correctly as I found your post since I was having the same issue.  I just clicked on the install button a min ago.


What's the frequency of filesystem check on boot?

From https://help.ubuntu.com/community/Fstab:

  default is every 30 mounts

Run this to see your current setting:

sudo dumpe2fs -h /dev/sda1 | grep "Maximum mount count"

I have a value of -1 instead of the 30 that help.ubuntu.com is telling me. You can use sudo tune2fs -c XXX /dev/sdXY to change the frequency.

See this thread on ubuntuforums.org.


You should consider installing jupiter

You can select power modes with it, and it's very easy to control.
It really saves out battery.

Open terminal and do this.

Add the repository

sudo add-apt-repository ppa:webupd8team/jupiter

Update

sudo apt-get update

Install jupiter

sudo apt-get install jupiter

And to other people reading this and are using an Asus EEPC netbook, install this asswell

sudo apt-get install jupiter-support-eee

Have a nice day :)


Can't install Ubuntu to Dual boot with Windows 10

If your problems are solved, look at the following link for additional ideas of what to try:

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI


How can i access remote desktop Xubuntu from Ubuntu14

I would use ssh to remote control your server instead of remote desktop.
Install ssh on your server open up a terminal on your server.

sudo apt-get install openssh-server

on your Ubuntu client open up a terminal and type in.

ssh -X 'username'@serverip

The -X forwards the x11 request so if you want to open file manager you just type in  thunar and it will forward the -X 11 request to your computer and then you will be able to view file and fodders on the server.


Ok guys Its fixed. The problem was with the resolution .
It was showing "invalid mode VGA1" while grub was loading.once I turned it to a low level (800*600)things are working.
Thanks


gcloud failed to load: libssl.so.1.0.0: version `OPENSSL_1.0.2' not found

I was actually running into this on Google Cloud Shell but with OpenSSL 1.1. The error was something like gcloud failed to load libssl.so.1.1 and it was attempting to load from /tmp/ which seemed bizarre to me. I finally came across an answer (https://superuser.com/a/1411019/299738) that helped:
rm ~/.docker/config.json

I think I screwed things up when I was creating a virtualenv for an old version of Python (2.7).


Is there an equivalent to MacRabbit's cssedit on Ubuntu?

About the best I know of is css-mode:

Package: css-mode
Description: A Cascading Style Sheets (CSS) editing mode for Emacs
 This is a simple Emacs mode for editing CSS style sheets. It adds
 font-locking and some basic auto-indentation support to Emacs. It
 works with Emacs 19.34, but should also work with both older and
 newer versions as well as XEmacs.
 .
 While CSS has a C-like syntax, this mode does a better job than
 cc-mode of handling the features of the CSS language.  It supports
 both CSS Level 1 and Level 2.
Homepage: http://www.garshol.priv.no/download/software/css-mode/


Importing GPG key in ubuntu:bionic Docker container

I managed import it without any errors by adding the batch flag.

gpg2 -v --batch --import <(echo "$LAUNCHPAD_GPG_PRIVATE_KEY")

Don't ask me why this fixes it. It took me hours to figure this out...


Is it really possible to set up VLC to stream TV from TV tuner card ENCORE "ENLTV-FM3"?

There are two possibilities on how to grab video from a TV tuner :

You can grab the video-stream from composite video output such as audio/video connectors on the back of satellite receiver. You request the composite video input of the TV tuner with this command:

vlc v4l2://dev/video0:input=1

or you can add :input=1 to video0 in the GUI

input= could be 1 or 2 or 3 depending on your card and which socket you connect to.
You can grab video from the RF source using the tuner in the card and set it to specific channel, then you will need the following :

You must know the specific frequency of the channel you want because VLC does't have a search function to RF channels. If you don't know the frequency you can use this tvtime to search the channels for you. You can install it in the software center

Note the number of the channel and then go to this frequency table wiki to find out the specific frequency of the channel you want.
Now you know your channel frequency it's to open it by vlc

vlc v4l2:///dev/video0 :v4l2-tuner-frequency=471250

or by putting the frequency in the advanced v4l2 options through the GUI.

In this example the frequency was written in the wiki page like this: 471,25
Don't forget to hock up an audio wire between your TV tuner audio out and your sound-card audio input (mic or line-in)

Now you can grab the video and audio and the rest is exactly the same as transcoding and streaming a file which can be done through terminal by :

vlc v4l2:///dev/video0 :v4l2-tuner-frequency=471250 (your v4l2 options) --sout (your streaming options)

or through the GUIby choosing your streaming profile and  options .


Via a path and name as prefix

pdftoppm -png file.pdf ../out

or

pdftoppm -png file.pdf ~/out

or

pdftoppm -png file.pdf $HOME/out

and so on…


403 Error when using nginx to access file other than index.htm

403 errors in nginx get thrown when ownership of other files isnt compatible with the user that nginx runs as.  Use ls -l on the web root folder to find ownership of the files.  Make sure that the group part is www-data.  If its in any user-level folders (such as your home directory), make sure that www-data can read the file directory structure to there.

Without more details, though, I can't explain how to fix this any better...  attaching details about the file structure, where on the drive your files are sitting, etc. may help.

(Source: Me, as I'm on the nginx team)


How to start X windows inside "Bash on Ubuntu on Windows"

You can install Xming.

Use export DISPLAY=:0 or export DISPLAY=localhost:0 and run your app from the console.


What do you mean by authentication?

A brief summary of the installation process should clarify what has happened and how to enter your username and password.

Normally you install from the live CD you created in Windows or whatever OS you started out with. To install you boot the live CD and--assuming you want to keep your other OS and files--tell it to install alongside other operating systems.

Alternatively, you might run the Wubi installer, which installs Ubuntu to a disk image file inside the existing Windows partition. This also keeps the Windows system.

I'm not sure which way you insatlled. But either way, during installation, it asks you to create a username and password, copies files, and restarts. You then get a boot menu where you can select between Ubuntu and Windows. To use Ubuntu, select it, and once it has booted, type in the  user name and password your gave it when you set it up.

If you don't remember the username and password you put in when you installed, or if the username and password you installed with are not working, then we'll need to know whether you booted from a CD/DVD/USB to install Ubuntu or installed Ubuntu inside Windows with Wubi--the way you'd fix it will be different in each case.

If the problem is that your username and password are now rejected when you try to log on to your Windows system, that's very strange, and you should provide a more detailed description of exactly what you're seeing. If this was triggered by installing Ubuntu, that's quite unusual.


Unless theres's a typo in your question, I think you're options are off.  First, don't specify 'defaults' (or tdefaults, as you have it..  Here's the output of my shm directory taken from cat /proc/mounts:

none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0

Note that on my ubuntu (12.10) it is mounted in /run and not /dev, although I doubt that matters.  Try changing your string to

echo "tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0" >> /etc/fstab

and see what happens.


Disabling external monitor with xrandr also disables laptop screen

I'm not using i3 windowing manager but what could be happening here is external monitor is the primary monitor and laptop display mirrors it. Either way create this bash script:

#!/bin/bash
xrandr --output DP1 --off
xrandr --output eDP1 --auto --primary

Mark the script as executable: chmod a+x /path/to/scriptname

Then call the script with /path/to/scriptname

Replace eDP1 with your laptop monitor name discovered using:

xrandr | grep " connected"


Find which TTY device connected over USB

Here is a quick method . After plugging in USB cable, you just issue:

  dmesg | grep tty

This will output the tty devices detected by kernel, in the order that they were detected and with a time stamp.


How to symbolic link the downloads, documents, etc in SSD to HDD? Dual booting

The approach of using symlinks in a dual boot setup, to seamlessly make data on an ntfs formatted drive that is shared with Windows available to the user is a very valid approach. Symlinks for practical purposes act and feel like folders. You can create them easily as a normal user without needing root permissions.
Creating a symbolic link is easy using the graphical file manager "Files", and of course can also be done with the terminal.
Graphical way with "Files" (nautilus)
Method 1

Open two Files windows, one where the folder is that you want to link, and the other where you want to create the link.
Drag the file or window for which you want to create a link to the other window *while keeping Ctrl+Shift pressed.

You can of course rename the link if you want.
Method 2
For this method, you need to enable the option to create links using the right-click menu. In "Preferences", "Behaviour" tab, make sure to check "Show action to create symbolic links". Once this option is set:

Right-click the file/folder you want to create a link for, then select "Create Link".
Move the link to the destination, and optionally rename it to remove the "Link to " prefix.

Method 3
Once the right-click menu is enabled, a shortcut key that does the same is also enabled. So when a file/folder is selected, hitting Ctrl+Shift+m immediately will create a shortcut, that you then can move and rename.
Terminal
The command is
ln -s <target> <link name>

for example, to link a folder Documents on a separate hard drive in the user's home folder:
ln -s /media/user/mounted_drive/Documents /home/user/Documents

This assumes that there is a folder Documents on a drive mounted under /media/user/mounted_drive, and that the login of the user is user.
Benefit of the terminal approach
The approach using the terminal is more powerful, because you can create links with a relative path. For example, if you have a project folder /home/user/Documents/Project containing Folder1/Report.odt, then you could create a link to the report in the home folder of the Project as:
ln -s ./Folder1/Report.odt Report.odt

This link will still work even when the folder "Project" is moved elsewhere, for example to an archive folder.
A link created using the file manager will refer to the other file by the full absolute path, and thus would break if the folder "Project" is moved.


Add column to text file where the value is the row number?

A few different approaches:

cat

$ cat -n file
    1   Foo Ba Lk Q
    2   Lorem ipsum doler

Perl

perl -pe 's/^/$. /' file

The -pe means "print each input line after applying the  script given by -e to it". Then, we replace ^ (the beginning of the line) with the line number ($.) and a space.

Alternatively, since this is Perl and TIMTOWTDI:

perl -ne 'print "$. $_"' file
perl -pe '$_ = "$. $_"' file

In all of these examples, if you want to modify the original file, use -i:

perl -i -pe 's/^/$. /' file
perl -i -ne 'print "$. $_"' file
perl -i -pe '$_ = "$. $_"' file

awk

$ awk '{print NR,$0}' file
1 Foo Ba Lk Q
2 Lorem ipsum doler

The special variable NR is the current line number and $0 the current line. To make the change in the original file (assuming you have a recent enough version of GNU awk), do:

gawk -iinplace '{print NR,$0}' file

sed

$ sed = file | sed 'N;s/\n/\t/'
1   Foo Ba Lk Q
2   Lorem ipsum doler

The = means "print the line number before every line". However, that prints the number on a line by itself and the input line under that. The second sed command puts them back on the same line again.


Where to find list of development packages to build evolution on ubuntu?

The special apt-get subcommand exists for such purpose - it is called build-dep.

See man apt-get online or from your system:

  build-dep
   build-dep causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package. By default the dependencies are satisfied to build the package natively. If desired a host-architecture can be specified with the         --host-architecture option instead.

So you have to use it as follows:

sudo apt-get build-dep evolution

If you want only to view them - then use --simulate:

apt-get build-dep --simulate evolution


Ubuntu 18.04 - Vulkan stopped working (Nvidia, drivers proprietary)

I don't know even today what happened with this, but I have a good workaround that can help people with the same problem.

It's not a fix, but it makes Vulkan work in Nvidia. You just need to open the terminal and enter sudo vulkaninfo. With that, Vulkan works until the next reboot the system.

It seems like the permissions have something to do with this.

PS: The package vulkan-utils is useless. Do not listen to that in my question.


Configuring HP Laserjet Pro MFP M128fn with Ubuntu 14.04

I was not able to use my network HP printer until I installed HP Linux Imaging and Printing (http://hplipopensource.com/hplip-web/index.html). Take a look here too https://help.ubuntu.com/community/HPPrinterInstallation.


Usbmon error - Ubuntu 16.04 with Kernel 4.15 in Dual Boot with Windows 10

I suggest you check the output of dmesg.

I just ran into this myself, and it turns out it was because of kernel_lockdown.

Apparently this locks down various kernel features including debugfs and from what I understand you need to boot without secure boot enabled, to disable it.


Hmm that was easier than I thought.

Load up Nautilus and head to Edit → Preferences
Under the Views tab, change the Icon View Defaults' zoom level.

That does only give you choices of 33, 50, 66, 100, 150, 200 and 400 percent scale so if there's an absolute method of setting the size, I'm open to that too. 66% is a bit too reduced IMO.


Ubuntu works in legacy mode and Windows works in UEFI, How could I make both work in dual boot, Alienware R-3?

When windows boots to UEFI it typically boots to windows boot manager rather than booting straight to the OS.

The simplest solution would be to either have both partitions imaged with legacy images, or have the legacy image on one hard drive and your uefi image on another.


DVD-RW does not mount in Ubuntu 12.04 LTS

non-blank media:
As it seems, by default non-blank media (CD, DVD) does not mount automatically. But it should show up in nautilus. Click on the entry in your left side of a nautilus browser under devices and the media should mount.

blank media:
Blank media is mounting automatically on my Ubuntu 12.04. I think it is the default behaviour.

nothing shows up:
If there is nothing new in the devices area in nautilus, this is a bad sign. Your drive might not be connected (check the cables).

As ashutosh pointed out, to find out if the recorder was recognized, type dmesg | grep "sr0" in a terminal. You should get a response similar to:

[    1.649270] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.649445] sr 0:0:0:0: Attached scsi CD-ROM sr0

check mounted non-blank media:
To be sure there it is not mounted execute this in a terminal: mount | grep "/dev/sr"
If the response is blank there is no non-blank media mounted in your media drive. Blank media is not showing up here.

Note:
your drive might be called sr1 or sr2 if you have several; in that case replace sr0 with sr1 in that case (or simply sr to catch them all).


Kernel 4.2.3 in Ubuntu 14.04 with startup errors

your graphics card driver isn't compatible with this kernel
try this

Add either of the following repositories:
Stable: sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
Beta: sudo add-apt-repository ppa:xorg-edgers/ppa

sudo apt-get update
sudo apt-get install fglrx gksu
sudo amdconfig --initial

Then reboot your system

Type: "gksu amdcccle"
to run AMD Catalyst Control Centre

Drivers are compatible with the following series of cards:
R9
R7
HD5xxx, HD6xxx, HD7xxx, HD8xxx
as well as APU based cards

I hope it helps :) have a nice day


"Fails to install drivers" error with a BCM 4312

Try to reinstall the drivers,

remove drivers:

sudo aptitude remove bcmwl-kernel-source

install:

sudo aptitude install bcmwl-kernel-source

restart your computer and see if wifi workd or not.


Nemo makes previews only for files less than one MB by default. You can change this from its preferences:


Updated 12.04 RC to final, does not boot up

how did you update? I'm not for certain, but you might have to do a fresh install. at least that's what I would do.


It sounds like you installed VirtualBox from an installer file instead of from an apt repository--possibly in addition to installing from an apt repository (the latter you seem to have already removed, if it existed).  If the VirtualBox version is 2.2.2 or later, you can do this:

sudo /opt/VirtualBox/uninstall.sh

If it's an earlier version (2.2.1 or earlier), you need to find the installer file you downloaded (or re-download it) and run this from the same directory as that file:

./VirtualBox.run uninstall

If you can't find the appropriate installer file for a version 2.2.1 or earlier, then you need to remove all the files, manually.  To do this, perform the "manual installation" steps in reverse order, deleting files instead of creating/moving/copying them, deleting symlinks instead of creating them, removing edits to configuration files, etc.:

https://www.virtualbox.org/manual/ch02.html#idp46457698198016


Hide mounted volume icon on the desktop?

run >> gconf-editor

goto apps->nautilus->desktop
Uncheck the option: "volume visible"

and after that all the mounted volumes will removed from your desktop.


Can Ubuntu Linux be responsible for low CPU fan RPM?

If you are using a desktop then first thing need to do is to cleanup the "Heat Sink". This might the reason for High Temperature and random system shutdown.

Linux may be responsible. But in my case this was the problem.


Why are LibreOffice 5.2 menus flickering in Xubuntu 16.04?

This solved it for me, on v5.3 / Windows 10 / x64:

Tools > Options...
Enable "Use OpenGL for all rendering"
Quit and restart LibreOffice


Seems every laptop I wanted to connect to headphones using bluetooth I had to sudo pactl load-module module-bluetooth-discover and then redo the pairing to get the headphones to work


MPV player auto installed ,checked system logs

does yt-dl install mpv on its own ?

No, you installed it on its own or as a dependency of another package. You can list the package dependencies for it with the apt-cache depends command, like this:

tom@desktop:~$ apt-cache depends youtube-dl
youtube-dl
  Depends: python-pkg-resources
  Depends: <python:any>
    python:i386
    python
  Depends: <python:any>
    python:i386
    python
 |Recommends: aria2
 |Recommends: wget
    wget:i386
  Recommends: curl
    curl:i386
 |Recommends: ffmpeg
    ffmpeg:i386
  Recommends: libav-tools
 |Recommends: mpv
    mpv:i386
 |Recommends: mplayer
    mplayer:i386
  Recommends: mplayer2
  Recommends: rtmpdump

mpv is listed only as a recommendation, and not as a dependency. If you install youtube-dl and accept the default choices, mpv will not be installed.

If you did not install it on its own, you can check the "reverse dependencies" for mpv with the command apt-cache rdepends mpv, to see what did install it as a dependency (I think this assumes that original package must be installed still, not 100% sure though). If you don't see anything there that you need to keep, you may safely remove the mpv package.

For completeness, you can remove all unnecessary dependencies system-wide with the command sudo apt autoremove.


Stopping System V runlevel compatibility (Ubuntu 14.04 LTS)

I ran into the same problem after updating Ubuntu yesterday.

Apparently the newly installed kernel is the problem. To solve this restart your virtual machine from the top down menu of VMWare. During restart hold the "Esc" key pressed. Choose the advanced settings option. Choose the second newest kernel. You should be able to log in now.

Now you have to remove the newly installed Kernel:

Adapted from How to delete a non-working kernel after update?:

To safely remove the unwanted kernel, open a terminal session and run the command:

Find the kernel package name

dpkg -l | grep 3.19.0-51

On amd64/x86_64 it is linux-image-3.19.0-51-generic.

Remove (purge - remove all configuration files as well)

sudo apt-get purge linux-image-3.19.0-51-generic

Hope this helped!


Ubuntu 14.04 trying to mount non existent hard drive

Go to a terminal  by pressing Ctrl+Alt+T
type:

sudo apt-get install gksudo

gksudo gedit /etc/fstab
put a # in front of the line that has mnt/5dae46e774ac431f in it
type sudo mount -a
If you get no errors, you will not get any at the next reboot neither.


Run this to update fglrx update

sudo apt-get install -y fglrx-updates

Run this command to open Catalyst Control Centre as Administrator.

gksu amdcccle


How do I fully install Ubuntu after previously installing it dualy with windows 8

No, you dont need to install ubuntu again. You can simply format the partition in which your windows reside and it will remove it. Use gparted for that. After formatting the windows partition do this to remove it from grub(os selection menu) too,

sudo update-grub
sudo grub-install /dev/sda


Built-in speakers in my Asus EEE PC 1000H netbook do not work after boot

G G , potentially you messed up your configuration (or something else did), and the default configuration works (aka, a new user). If everything is working for you now I wouldn't make any further changes :-) However, you can reset your users configuration by purging pulseaudio and then reinstalling. This will remove the configurations which are potentially incorrect and put you back to "stock".

sudo apt-get purge pulseaudio
sudo apt-get install ubuntu-desktop pulseaudio

The second command to install ubuntu-desktop should reinstall the necessary pieces of alsa and pulseaudio (if removed above by the purge). BE CAREFUL HERE and take note of the packages your will be asked to remove by purging pulseaudio. Make sure reinstalling ubuntu-desktop pulls everything back in (it should, but ;-) ).


You can rotate DJVU pages using djvused

Download & Install

You can download source forge djvu software from here
The INSTALL file instruct how to perform the install
The package includes djvused - Multi-purpose DjVu document editor as part of the tools directory and its man page

Using djvused in order to rotate djvu pages

djvu sourceforge man page suggest the following:

Miscellaneous commands

set-rotation [+-]rot

  Changes the default orientation of the selected pages. The orientation
  is expressed as an integer in range 0..3 representing a number of 90
  degree counter-clockwise rotations. When the argument is preceded by a
  sign + or -, argument rot counts how many additional 90 degree
  counter-clockwise rotations should be applied to the page. Otherwise,
  argument rot represents the desired absolute page orientation. Only
  DjVu pages can be rotated.

OPTIONS

-e command

  Cause djvused to execute the commands specified by the option argument
  commands. It is advisable to surround the djvused commands by single
  quotes in order to prevent unwanted shell expansion.

Selection commands

select [fileid]

  Select the component file identified by argument fileid. Argument
  fileid must be either a page number or a component file identifier.
  The select command selects all component files when the argument
  fileid is omitted.

You can try the following command as a starting point, it should:

select page 5
rotate it 180 degrees
save it in a new djvu file - p05.djvu

djvused myfile.djvu -e 'select 5; set-rotation +2 ; save-page p05.djvu'


set fn + arrow to represent 'home' and 'end'

I definitely understand why you want to do this! Here's my bet what I have done:

Launch a terminal and run 'xev'. Place your mouse cursor over the Event Tester window and press fn+right/left. You should get a read-out like:

    KeyRelease event, serial 36, synthetic NO, window 0x5200001,
root 0xb2, subw 0x0, time 89989888, (98,124), root:(1007,175),
state 0x0, keycode 171 (keysym 0x1008ff17, XF86AudioNext), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

This is for my keyboard and fn+right. Find the keycode -- here it's 171.

Now go edit your .bashrc file in your home directory. It's hidden, so pres Ctrl+H in Nautilus to show. Then add lines

    xmodmap -e "keycode 171 = Home"
    xmodmap -e "keycode xxx = End"

where you replace the 171 and xxx with the obtained keycodes. Then save and close the file. Close all your terminals, open one, and you should be ready to go!

Now, there is one draw-back: you have to activate this on every boot. You do that by opening a terminal, and that's it. You can close it again immediately. Or you can try fixing it to do it automatically, as described here. I just run the terminal using a shortcut and then kill it...


http://www.techpowerup.com/forums/threads/ver-3-0-2-5-firmware-update-to-nec-renesas-usb-3-0-controller-unloading-fix.130099/page-3

There was a post on this page from "Crone" about his WD Passport not being recognized either.

This may be a hardware issue, Check for  a newer firmware from the manufacturer.


Failed to fetch, after clean installation of ubuntu 18.04

I run into the same issue this morning. I changed the protocol in sources.list from HTTP to FTP and that solved it.


What way is best for backing up apache2, mysql, cvs and webmin configuration files

My vote here for backupninja.

I think this should handle all your needs here.

This application is "a silent flower blossom death strike to lost data", and based off of rdiff-backup.

Runs quietly in the background, as any good ninja should.  Has a very useful and easy setup daemon called ninjahelper.

From the Description page:

Backupninja allows you to coordinate system backups by dropping a few simple configuration files into /etc/backup.d/. Most programs you might use for making backups don't have their own configuration file format. Backupninja provides a centralized way to configure and coordinate many different backup utilities.

Features:

easy to read ini style configuration files.
you can drop in scripts to handle new types of backups.
backup actions can be scheduled.
you can choose when status report emails are mailed to you (always, on warning, on error, never).
console-based wizard (ninjahelper) makes it easy to create backup action configuration files.
passwords are never sent via the command line to helper programs.
in order to backup a db or sql database, you cannot simply copy database files. backupninja helps you safely export the data to a format which you can backup.
works with Linux-Vservers.

Backup types include:

secure, remote, incremental filesytem backup (via rdiff-backup). incremental data is compressed. permissions are retained even with an unpriviledged backup user.
basic system and hardware information.
encrypted remote backups (via duplicity).
safe backup of MySQL, PostgreSQL, OpenLDAP, and subversion databases.
burn CD/DVDs or create ISOs.

... I think this is going to be a lot easier for getting started than writing a custom script from scratch, though you may have to work some to get the MySQL databases.

(Plus, come on, what an awesome name?)

Screenshot of the "ninjahelper" configuration screen:


NO right-click at all on touchpad after installing 14.10

Just add:

Option "ClickPad"         "true"
Option "EmulateMidButtonTime" "0"

in /usr/share/X11/xorg.conf.d/50-synaptics.conf

Something like this:

Section "InputClass"

Identifier "Default clickpad buttons"
MatchDriver "synaptics"
Option "ClickPad"         "true"
Option "EmulateMidButtonTime" "0"
Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"

EndSection


Virtualbox guest addition insert related

Under Ubuntu (host) update your packages list,

sudo apt-get update

Install the virtualbox additions,

sudo apt-get install virtualbox-guest-additions

Next, use right Ctrl + D while virtual machine is running. Pressing the Host+ D which is right Ctrl + D(default)  loads the  guest-additions to virtual-machine.


Error while upgrading from 15.04 to 15.10

Try clearing the cache with -

sudo apt-get clean


Given the result of grep -n, how can I open vim in that specific line? (using only keyboard)

Two things:

Vim has some support for grep.

If you open Vim, and do :grep keyword ..., Vim populates the quickfix list with the results, and jumps to the first file. You can then jump to the nth quickfix entry with :cc n (and other commands).
You can populate the aforementioned quickfix list using grep's output:

vim -q <(grep -n keyword ...)

And then use the quickfix navigation commands mentioned above.

Either is simpler than playing around with grep's output manually.

As an alternative to (2), you can save grep's output to a file and use that file instead, if you think you won't necessarily open Vim after:

grep ... | tee log
vim -q log


Problem compiling Emacs (no x development libraries were found)

What version of Ubuntu do you have? I downloaded the tar'd source from the gnu emacs site. I ran :

./configure

It told me that I need libXpm and libgif/libungif. I installed libXpm-dev and libgif-dev with :

sudo apt-get install libxpm-dev libgif-dev

After I installed those, I reran configure (./configure), and then I was able to build it.

I now have a binary for emacs in my emacs-25.1/src directory called emacs-25.1.1, and it works.


How to control ubuntu laptop from windows PC

1.Installing xrdp (x remote desktop protocol) and set firewall rule for traffic.
sudo apt install xrdp
sudo systemctl enable --now xrdp
# best use least privilege and I am assuming both PCs share a local network
sudo ufw allow from 127.0.0.1 to 127.0.0.1 port 3389 proto tcp

2.Make sure that you are not logged in.
3.Use the RDP client installed in Windows PC to log in.
You might need to repeat steps 2+3 several times.


How to create a Table Search in LibreOffice Calc?

Well, look. First of all: If you wish to forcefully use "Excel" (as mentioned in your original question and the comments) you will be in the need to use it via WINE, which may decrease the speed on how do you do this task and certain functions (like the vertical and/or horizontal lookup functions) may not work as expected.

I suggest you to give a chance to LibreOffice Calc, which handles both Excel (.xls and .xlsx) and LibreOffice (.ods) file formats. This way you can share your document with MS (Windows) based system users and work with the data without a major issue in any direction.

Now, let's cook fast food.

Let's say we have a spreadsheet with the details of your customers, as shown in the next small table called "Clients" (see the name at the bottom of the spreadsheet).

Now, let's rename "Sheet2" and use the "Search Form" name for it. After which we'll setup certain cells in order to contain the desired data as follows:

Now, having in mind that we have a "vertical list" where the data is having a column name and rows containing the details of each record, we'll use the LibreOffice's VLOOKUP function in order to search for the desired data and bring the results on the corresponding cells, as follows.

In the C7 Cell of the "Search Form" spreadsheet, (which will correspond to the "State" Data), we put: the next formula:

=VLOOKUP(C5,Clients.A2:G7,2)
By Default we'll see a #N/A error message in the cell but it is caused by the NULL data in the "City" cell (C5), we'll solve this issue by writing something in the C5 Cell, something like "San Antonio" and the form will deliver the right State in the proper cell as shown in the next screenshot.

Now, in a different recipe, we'll use the same data but this time we'll sort the columns based on a different order as shown in the next screenshot:

I will explain later the need to change the order on the columns. For now let's focus on the creation of the new search form formulas in order to bring the data in the right place.

Now, to look for the "Name" field, we write the next in the C14 and C16 cells respectively:

C14: =VLOOKUP(C12,Clients.A2:E7,4)
C16: =VLOOKUP(C12,Clients.A2:E7,5)

This will give the next results when looking for "Portha, Joseph":

Please note that -nevertheless- the data in the first form (the search state based on city form), are wrong this time.

This is because the VLOOKUP function is using the first column data in order to retrieve the proper results. If we translate the formulas we say that:

In the first example:

=VLOOKUP(C5,Clients.A2:G7,2) means:

Match the data contained on C5 in the vertical array of Clients from A2 to G7 and show me the data in the column number 2.

In the second example:

=VLOOKUP(C12,Clients.A2:E7,4) means:

Match the data contained on C12 in the vertical array of Clients from A2 to E7 and show me the data in the column number 4

Now, this can be useful for practicing some VLOOKUP exercises in order to learn how to create a customized search form.

If you wish to download the .ods file that I used for this exercises just click right here.

Now, if you need to run simple search solutions you may wish to use the "Filter" options in the "Data" Menu of LibreOffice. To do this simply go to the spreadsheet where the data resides, make sure it includes headers (titles for the columns) and hit the "Data" Menu, then "Filter" next "AutoFilter". Your column names will get a small button with an arrow pointing to downside. If we hit any of these small icons we'll see useful filtering data in order to separate the data in a reduced group which will contain only the desired data as seen in the next screenshots:

Auto Filter buttons

Auto Filter options for the State Column selecting only the Texas State

Results of choosing only the Texas State in the drop down filter options. Please note that the small icon for "State" is now blue, indicating filtering on this criteria

If you wish to do some additional search, you can run a "Standard Filter" from the options on any of the drop down auto filter buttons and you will see something like this:

In this dialog window you can use as many filter criteria as you need in order to keep only the desired data, remember that filter criteria values shows a drop down menu with a selection of the values in the table.

I hope this help you to solve your issue.

Final words: If you insist on using Microsoft Excel remember that the VLOOKUP/HLOOKUP and Standerd Filter, the same as other functions works the same both in LibreOffice and Microsoft Office and there is no problem when converting, unless you experience some kind of issue with translations, lets say: In Spanish we use BUSCARV/BUSCARH and other spanish words to create the formulas.

Good luck!


There are multiple probable causes for this behaviour.
What first comes to mind is that the USB current exceeds it's maximum. This causes the USB controller to reset and so the drive doesn't work. The mouse receiver uses less power so it works. You probably need to connect the drive using a powered USB hub, or connect it to the USB 3.0 hub.

A less likely cause is that this particular drive causes the USB hub to reset on ATA probing (not power related). There have been bug reports about this some time ago. But since you describe that the drive works on another USB port I don't think this scenario is very likely in your situation.


Same issue. I tried everything to solve, then I realized what was causing the problem. It only happened after I opened Firefox. So I uninstalled Firefox and installed Chromium and the problem is now gone. Very excited!


In terminal, how can I write 'sagi' instead of 'sudo apt-get install'

Add this line to your ~/.bashrc

alias sagi='sudo apt-get install'

Then run source ~/.bashrc for the change to take effect.

Alternatively, you could add the line to .bash_aliases. This is a nice way to separate simple aliases from more substantive code that you might want to run when you start your bash shell. By default, your .bashrc should load in any definitions you make in .bash_aliases.

You may not have this file, so first:

touch ~/.bash_aliases

If the file already exists, touch will simply update its timestamp. If not, it will create it. Either way, open up your favorite text editor and add the alias line from above.


unmet dependencies linux-server depend on linux-image-server

wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-server_3.2.0.41.49_amd64.deb
dpkg -i linux-server_3.2.0.41.49_amd64.deb


System in indeterminate state--what is the comprehensive list of packages I should have?

While this is not a very elegant solution, you can determine the list of default packages by doing a fresh install in a virtual environment e.g. Virtualbox.

Then run:

dpkg --get-selections

It will display all installed packages.


Unable to update system from terminal on Ubuntu 14.04

Add the following parameter to your .bashrc file. Replace username, password, proxyserver and port with appropriate values.

export http_proxy="http://username:password@proxyserver:port"

Add similar entries for other proxies: https_proxy ftp_proxy and socks_proxy.
After adding these settings source the .bashrc file by entering the following command on terminal

source .bashrc

Now try to update with sudo apt-get


$index cannot be incremented like that. Try using:

index=$((index+1))  # Universal shell (POSIX)

or

((index++))         # bash


How to set different scaling on multi monitor (3 monitors)

This works fine in my case, using 3k notebook and 1600px monitor with different scale:

open dconf editor
/org/gnome/mutter/experimental-features
Disable "Use default value"
write custom value: ['scale-monitor-framebuffer', 'x11-randr-fractional-scaling']
now you can use different scale for each screen in the display settings

dconf setting capture
scale 200% in screen 3000x2000px
scale 100% in secondary screen 1600x900px
test in:
ubuntu 19.10
gnome 3.34.2
regards


vesafb / Ubuntu stucks in 5 dots when starts and ctrl alt f1 says something about vesafb mising lib

Finally i didn't managed to recover my system but i resqued my cryptographed files, using this tutorial

http://www.howtogeek.com/116297/how-to-recover-an-encrypted-home-directory-on-ubuntu/

also looking for similar problems in internet i found this page http://fraterneo.blogspot.gr/2012/02/error-al-arrancar-ubuntu-1110-con.html

i pasted it here if someone wants a full investigation about vesafb solutions in web.
Thanks ubuntu!