Boot straight to grub without holding 'Option' on Macbook?

In OS X there is the Startup Drive section in System Preferences. Ideally you should be able to select Ubuntu as the default drive there. I wasn't able to, I just set refit to only show up for one second in the config file (not difficult to do). I only see refit for a split second so it doesn't really bother me.

Also if you only want to use GRUB, I'm assuming you still want access to OS X. Without chainloading GRUB you can't boot directly into OS X from the grub menu. The option is there but it won't work properly, so that's another reason to see refit for a second at bootup.


I can not answer the question about vmbuilder, because I have never used it.

I would download the iso file for whatever Ubutnu 16.04 you want to use and then do, for example, this, from the same directory as the iso file:

sudo virt-install -n desk_dev -r 8192 --disk path=/media/newhd/desk_dev.img,bus=virtio,size=50 -c xenial-desktop-amd64-20160320.iso --network bridge=br0,model=virtio,mac=52:54:00:87:d2:f4 --video=vmvga --graphics vnc,listen=0.0.0.0 --noautoconsole -v --vcpus=4

Where I am naming the VM desk-dev, and giving it 8 gigabytes of memory, and putting the image file at /media/newhd/desk_dev.img with a size of 50 gigabytes, and use whatever I named the iso file as, in this case xenial-desktop-amd64-20160320.iso, with a bridged network. I assign the MAC address because I already have entries in my DHCP and DNS servers for such a VM. I use the vmvga driver because the default one sucks. I use VNC to communicate with the VM, you might want different. I give it 4 CPUs.


Help installing the network scanner from a Brother MFC-J6910DW?

I suggest checking the drivers.  My printer has a separate printer and scanner driver for Linux, and I had to install both. For windows it's usually all a single software package.  With Linux it might look like a single software package but be careful, especially if it came as a tarball.

Dora


The correct configuration in your case would look like this:

export ANDROID_HOME=/opt/android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Note that the environment variable is called ANDROID_HOME, not ANDROID_SDK_HOME. Also, the third line in your sample was missing a $ sign (and contained an additional space). Lastly, there is no need to repeat the same path (DRY) - just use the already defined variable.

EDIT (2020-03-08):

While the ANDROID_SDK environment variable still continues to work for the most part, it has been deprecated by Google, and replaced with ANDROID_SDK_ROOT. So you might want to use the new name for a new setup.

More details: https://developer.android.com/studio/command-line/variables


transmission-daemon is much slower than transmission-gtk

It turns out transmission-daemon is respecting some sort of default download  limit of 9 kB/sec. The programme actually ignores the speed-limit-down  and speed-limit-down-enabled parameters in the config file.
These settings can only be modified through the web interface. Access http://localhost:9091, click the cog icon and select Total Download Rate > Unlimited, then enjoy proper download speeds.


Open a terminal window and execute:  sudo nano /boot/grub/grub.cfg
Enter your password.
In the file opened, find the text: set default="0"
Number 0 is for the first option, number 1 for the second one, etc. Change the number for your choice.
Save the file by pressing CTRL+O and exit by pressing CRTL+X.

This will change in every grub update. So, if you want to have it made permanently edit the file /etc/default/grub and set GRUB_DEFAULT=0 to the number of your choice.


The Vertical view should switch to the "for Wide View" view on its own. (Thanks Milan, see Evolution Mailing list)
If not, go to View -> Current View: Highlight For Wide View if you are using vertical view. (Thanks Pete, see Evolution Mailing list)
The "multiline row" can be used for the Classical view as well, just right-click the message list header and use "Add a Column..." and drag the "Messages" column to the header. Then remove all the other columns from the message list. The "for Wide View" does basically that.


/usr/lib/ Symbolic Link Gets Over Written during boot

Presumably ldconfig is being called somewhere, and libXinerama.so.1.0.0.back sorts after libXinerama.so.1.0.0 so it is being selected as the newest version of the library.

Why exactly do you need to patch the Xinerama extension's client library in the first place?


For AMD processors there is the excellent cpupowerd.
there is a ppa providing it (sudo add-apt-repository ppa:autostatic/ppa ), but compiling is painless. make && sudo make install should do fine.
It needs the msr kernel module loaded (just add it in a new line to /etc/modules)
Play around a little: sudo cpupowerd -r 0.01 is a good starting point. This reduces the voltage of all cores by .01 Volts for all frequency steps.

It's best to run cpupowerd as a service when you've found the appropriate values. To do so go to /etc/init.d copy skeleton to cpupowerd and insert the values that are stable for you. Be sure to always test your settings under high load.

In my case it saved even more power because the tiny undervolting was just enough to keep the fans turned off when I use my laptop for browsing.

Edit: For now cpupowerd supports only AMD. The README says that possibly Intel will be supported as well. The status of the project is unclear though.


Kubuntu 20.04 ping trouble: libnettle.so.6: cannot open shared object file: No such file or directory

In this case it was probably an issue with a dependency list of version 20190709-3 of iputils-ping package. Some dependency seems to be missing in the list.
The error in question was resolved by installing a nettle-bin package which apparently contains some of the needed files.
sudo apt update
sudo apt install nettle-bin


Can't get Mouse back in gEdit after Shift Key Is Pressed

This bug has not been fixed and I decided to switch to another text editor. I found Geany and it's great. It does not have the bug like that on gEdit.

So, I guess the solution is to switch to a new text editor until (or not) this bug is fixed.

Features of Geany

Lightweight
Have Basic Features of an IDE
Faster than gEdit
few dependencies
Supports many filetypes
Have Plugins & Code Markup (Syntax Highlighting)
Kind of like gEdit (Disable view of Sidebar & Messages Window)

UPDATE - Bug Fixed

As reported by August Karlstrom, The gEdit mouse bug was fixed when I disabled IBus as the default Keyboard Input System. Here's how you can disable it :

Open a terminal and do the command :

  gnome-language-selector

A window named Language Support will open up. In the window, change the Keyboard input method system option to none instead of IBus and close the window.

The changes would only take effect after you restart (reboot) your computer.


Sound via HDMI on RX 480 not working after upgrade to Ubuntu 16.10

Did you check out the kernel recommended here? https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-AMDGPU-DC-Kernel

I had no audio over HDMI on with my RX 480 on ubuntu 16+. After installing this kernel with AMDGPU DC/DAL support it all worked perfectly.


.wmv and .wma not playing on Ubuntu 16.04 with Videos and Rhythmbox

As stated this is a bug in the package gstreamer1.0-libav

1.8.3-1ubuntu0.2 of this package fixes this issue. Currently this fix is only in the xenial-proposed repository.

You can either enable proposed repository or download the package manually with the following commands (example for 64bit architecture):

wget http://launchpadlibrarian.net/306369643/gstreamer1.0-libav_1.8.3-1ubuntu0.2_amd64.deb
sudo dpkg -i gstreamer1.0-libav_1.8.3-1ubuntu0.2_amd64.deb

For other architectures you can get it from here. Most likely will this be uploaded to mainline very soon.


IO_PAGE_FAULT with new server installation

I tried installing Ubuntu Desktop instead of Server and found that the graphics card was producing garbage output.
I replaced the card with a cheap recent model, reinstalled Server and the problem disappeared.


How to change the owner of a file or folder?

Suppose you have a file named abc and user is user1 and probably group will be user1 then use the command:

sudo chown user1 abc

And if you want to change the user and group of file then:

sudo chown user1:user1 abc


You generally have two kinds of drive encryption:

Native drive encryption (e.g. drive it self receives clear text and encrypts it)
Operating system encryption.

Drive encryption.
This is typically described as hardware encryption. The drive receives the key, and caches it. All crypto operations are performed by the drive. If this is the case for your drive, you may be able to use hdparm to issue a secure erase to the drive, or reset it in some fashion.
Operating system level encryption.
This is the default used by the Ubuntu installer. The operating system is performing the encryption, and encrypted data is sent to the drive. The crypto operations are performed by the CPU in the computer, not by the disk.
As this is the common for Ubuntu, I'm assuming this is what you have. In this case, you can simply delete the offending partition, and create new partitions.
This can be done using gparted. Simply run pkexec gparted /dev/sdX where /dev/sdX is the device in question. Select the partition, select Delete, create a new one, and apply the action to the device. This will remove the old partition, and create a new one in its place.


Shell script to compare multiple files from a directory but attach only the mismatched files as an email attachment

This should work. It builds the list of differing files while cycling through the first loop and then uses a different zip command to zip them up.

#!/bin/bash

DIR1=/usr/local/apps/B2B/filecompare/inf
DIR2=/usr/local/apps/B2B/filecompare/gen/genB

DEST_DIR1=/usr/local/apps/B2B/filecompare/moved/cmpinf
DEST_DIR2=/usr/local/apps/B2B/filecompare/moved/cmpgen

export RESULT=$1
touch different.txt

for FILE1 in `ls $DIR1`
do
    if [ ! -f $DIR2/$FILE1 ]; then
        echo "  $FILE1 exists in $DIR1 but not found in $DIR2. Skipping file." >> $RESULT
    else
        echo "  Comparing $DIR1/$FILE1 $DIR2/$FILE1." >> $RESULT
        diff -B $DIR1/$FILE1 $DIR2/$FILE1 >> $RESULT
        #diff $DIR1/$FILE1 $DIR2/$FILE1 >>RESULT
        echo "  Done comparing $DIR1/$FILE1 $DIR2/$FILE1." >> $RESULT

        # NEW: register if there is a diff
        is_diff=$(diff -q $DIR1/$FILE1 $DIR2/$FILE2 >/dev/null; echo $?)

        # NEW: build a list of the files that are different
        if [ "$is_diff" -gt 0 ]; then
            echo $DEST_DIR1/$FILE1 >> different.txt
            echo $DEST_DIR2/$FILE1 >>  different.txt
        fi

        mv $DIR1/$FILE1 $DEST_DIR1
        mv $DIR2/$FILE1 $DEST_DIR2
        echo "  Done moving files" >> $RESULT

    fi
done

for FILE2 in `ls $DIR2`
do
    if [ ! -f $DIR1/$FILE2 ]; then
        echo "  $FILE2 exists in $DIR2 but not found in $DIR1. Skipping file." >> $RESULT
    fi
done

echo "  Done comparing." >> $RESULT
# NEW: zip the file list of differing files
zip $DEST_DIR1/download.zip -@ < different.txt
mail -a $DEST_DIR1/download.zip xvz@abc.com


getting razercfg to work using systemd - systemctl: command not found

On Ubuntu, systemd is used on Ubuntu 15.04 and newer. Since you're using Ubuntu 14.04, you need to use init-scripts and the service command (for example, sudo service razerd start). You also didn't need to install the systemd-services package.

The commands copying the init file to /etc/init and linking the file (the instructions should really be using sudo update-rc.d razerd defaults), followed by sudo service razerd start, should work for you. Note that this is mainly so that the program gets started automatically at startup.

The udev rules is likely for access to some hardware on your system.


1 Shut your system down. Now.

2 Boot it from a Knoppix Live CD or USB.

3 Image the hard drive with  ddrescue to another drive.

4 Then, use PhotoRec or TestDisk on the imaged drive to recove the files

5 Lastly, start making good backups (Lesson Learned!)


How do I make a read-only file system writable for pendrive

Try copying all your files on the drive somewhere else. Then:

Install gparted:

sudo apt-get install gparted

Run gparted and select the drive (/dev/sdb ?)
Click on the Device from menu and select Create partition
Right click on the Unallocated space and click Create partition.
Create a new msdos partition and click the apply button.

If the problem lies with the drive itself this might help. If the problem lies with the way Ubuntu is handling pen drives then we would need logs as @gertvdijk pointed out.


Upgrading 12.04. on ancient mac book ('07)?

Not your machine, but FWIW, I have:

White Macbook 5.2 (2009), 2 GHz Intel Core 2 Duo, 2 GB 667 MHz DDR2 SDRam, 120 GB HDD

and Kubuntu 14.04 runs just fine on it. Earlier versions of Ubuntu only recognized one of the two cores. That was somewhat slow, but that's since been fixed.

I used to use refit, but had some sort of booting problem at one time. I ran bootrepair to fix it. Now if I just power up the machine, it boots into GRUB and thence to Kubuntu. If I want to run OS X 10.6, I just hold down the Option key at power up and can select Mac OS. Quite handy for me.


Ubuntu 13.10 internet connection problem

The basic reason is that when you close your laptop. It goes to hibernate state. Whenever, you reopen it. The wifi device remains idle or it doesn't refresh DNS and doesn't try to reconnect with the wifi router.

You need to either reconnect with wifi router or you should try to clear DNS of our computer.

The other solution of this problem is to specify static ip-address to make wifi connection with the router.


How to make app autorunning with root privileges?

As discussed in the comments, there is no need to ever run the Toolbox or any of the IDEs as root. The underlying problem was that ownership of some files were already messed up (probably because you ran the IDEs as root once).

You can fix the ownership by making your user the owner of all files in your home directory again, including all of the JetBrains IDE/Toolbox files:

sudo chown -R $USER: ~


No bluetooth on 15.10 (NUC w/ 7265 wifi+bt adapter)

Bios update did the trick for me (updated directly from bios configuration screen). 15.10 with latest updates and latest bios for he NUC works fine, I have BT again!


To install the drivers for an Nvidia card, you have two choices

First the tested stable driver

sudo apt-get install nvidia-331

Or the update version

sudo apt-get install nvidia-331-updates

I recommend the updated version but it may have bugs, you can always just run the first command to change it if you have issues but I never have.


How do I install dual boot properly?? Last attempt corrupted MBR completely

When I ran Ubuntu and Kali in a dual boot, I took off about 60 gigs (you might want more or less than that, don't go lower than 20) from my hard driver into it's own free space, then I just installed onto the free space and I never had a problem with it.

Ubuntu has an option to install alongside Windows that should work.

Try formatting the USB and try again using UNETbootin.

http://unetbootin.sourceforge.net/

Select install alongside Windows first, if that doesn't work, then choose "something else" and take a small chunk off the hard driver for free space.

After re-reading the post, I'm thinking maybe your Ubuntu download got corrupted?

Re download here if that's the case. http://www.ubuntu.com/download

Then burn the ISO to a dvd at the slowest speed possible or using UNETbootin is safer also. I also hear torrenting is safer rather than direct download, so you could try that.

I hope you get it to work.


How do I uninstall a Visual Studio Code extension without using the GUI?

What worked for me was the following:

First, find the extension ID:

code --list-extensions

You might have to guess, but for me, the offending extension ID was rust-lang.rust. (I'm not saying the extension is bad, it just didn't work well on my laptop.)
Then, uninstall it:

code --uninstall-extension ID

(You need to replace ID with the ID you found in step one, so I had to execute code --uninstall-extension rust-lang.rust)

That's pretty much all there is to it, but note that the uninstall step might not have removed external dependencies, for example.


How do I run a program (specifically Eclipse) from a keyboard shortcut?

You don't need to add eclipse to the beginning of your command. Just pointing it to the directory then the eclipse launcher will suffice.

/home/cschuck/eclipse/java-neon/eclipse/eclipse

will launch eclipse.

This is true of all scripts for example, if I have a file called HelloWorld.sh in ~/Documents/Scripts it can be launched by simply typing ~/Documents/Scripts/HelloWorld.sh


Chromebooks are a happy/unhappy merge between a tablet and a laptop, in that they are more capable/use conventional architectures like x86, but also use proprietary drivers in most cases. GalliumOS is one of the more successful attempts to create a distribution for ChromeOS devices that uses compatible drivers with specific lines of devices, but this solution only works for devices that are explicitly developed for. In short, you might not be able to get sound working without extensive modification.

Finding an OS for a Chrome device is much more like finding a ROM for an Android phone than it is simply installing a new OS on your laptop and downloading drivers, since those drivers aren't necessarily available to download in the first place.


Finally worked this out. The alt+number conflicts with gnome-terminal's keyboard shortcuts to switch between tabs. That was always the case, but in older versions of gnome-terminal the combo would switch tabs if there were tabs to switch to and switch IRSSI windows if there weren't.

If you disable or re-map the "Switch to Tab ..." shortcuts (at Terminal > Preferences >  Shortcuts) you can use alt2 in IRSSI again.

Double-click on the shortcut key and you'll see "New accelerator..." -- from there Backspace will disable the shortcut, or you can create a new shortcut. I used ctrlalt2.


Deleting many files results in "argument list too long"

A typical way to handle the “argument list too long” error is via the find command:

find  -maxdepth 1 -mindepth 1 -type f -name "*.jpg" -delete


You need to be careful with dealing with file/disk sizes. Some systems/applications/advertisements use a base-10 measurement (so 1 K bytes is 1000 bytes) whereas others use a base-2 like system (so 1 K bytes is 1024 bytes) and some use a weird mixture ( 1 K is 1024 bytes but 1 M is 1024000).

See http://en.wikipedia.org/wiki/Mebibyte


How to install OpenCV3 for Python 3.6 on Ubuntu 16?

I listed all the compiler flags by running:

cmake -L | awk '{if(f)print} /-- Cache values/{f=1}'

Using the flags that looked helpful, I constructed this:

cmake -D CMAKE_BUILD_TYPE=RELEASE \
      -D CMAKE_INSTALL_PREFIX=/usr/local/ \
      -D PYTHON_EXECUTABLE=/usr/bin/python3.6 \
      -D PYTHON_INCLUDE=/usr/include/python3.6/ \
      -D PYTHON_LIBRARY=/usr/lib/python3.6/ \
      -D PYTHON_PACKAGES_PATH=/usr/local/lib/python3.6/dist-packages/ \
      -D PYTHON_NUMPY_INCLUDE_DIR=/usr/local/lib/python3.6/dist-packages/numpy/core/include/ \
      ..

This worked.


Most likely your best bet is to simply reinstall. Go ahead and put Ubuntu on a USB and boot from that. When you have a working Ubuntu going from the USB, back up whatever files you want to keep to wherever you may want to back them up. When everything is backed up, format the entire disk and partition it as you wish, and install Ubuntu again.


Try sudo nano /etc/mysql/my.cnf. You have the error editing symbolic links is not permitted just because /etc/mysql/my.cnf is only symbolic link to file /etc/alternatives/my.cnf. Don't use sudoedit, edit mysql.cnfwith nano or vim text editors which are able follow symbolic links.

My suggestion is to select innodb_buffer_pool_size about 80% of available installed RAM if your RAM less than 8 Gb and 90% if your RAM exeeds 8Gb. Everything depends on your definite situation in particular case. The rule: the larger innodb_buffer_pool_size the faster MySQL - is true.

Thus, assume you have 8Gb RAM, then 50% of RAM or 4Gb is right choice to start. If this configuration works well, increase this value step by step by 10% up to 80% of RAM. If you'll see that your swap has been used intensively enough, stop to increase this value and decrease it by resonable number.

Finally, open your my.cnf file with nano text editor:

sudo nano /etc/mysql/my.cnf

and add at the end of file new line:

innodb_buffer_pool_size = 4G

Save changes by pressing in nano CTRL+O -> y -> Enter and exit - CTRL+X.
Restart mysql service to apply new mysql configuration:

sudo systemctl restart mysql.service

That's all.


If you haven't already did this. I usually head to the Wifidocs. The ubuntu wiki surprisingly has a decent collection of supported wireless cards.

https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported

The document provides a collection of supposed supported wireless cards.

Additionally, look for a particular line of chipsets as stated in the wifidocs:

  The Free Software Foundation recommends a few chipsets including: Ralink 2500/RT2400 (802.11G), Realtek RTL8180 (802.11G), and the Atheros AR9170 chipset (802.11N).

In addition to docs, i usually do a google search for that particular wifi dongle to confirm that the wireless card doesn't have issues.


Although I believe that it is better to use options in this case (i.e. -o and -k), you can parse the parameters at the start of your script and set variables for each one. i.e.:

#!/bin/sh

for x in $@
do
  case $x in
    output)
      OUTPUT=True
      ;;
    kill)
      KILL=True
      ;;
  esac
done

if [ $OUTPUT ]
then
  echo output is set
fi

if [ $KILL ]
then
  echo kill is set
fi


How to enable the hdmi sound on a ECS GT240?

Open the Sound dropdown (from the panel), select Sound Preferences..., click the Output tab, and select the radio button next to the HDMI Audio out device you require audio out on.

However if your HDMI device is not listed then the device is not properly installed or acknowledged by the sound server.


Most likely your installation is hit by an old and strange QtCreator bug:https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1164504

The workaround is to remove the old configuration of the QtCreator and restart the QtC:

rm -r .config/Trolltech.conf .config/Qt* .config/Nokia*


Touchpad no longer working on Ubuntu 18.04 for ASUS zenbook

Had problems with my Asus Zenbook UX333F and

https://www.omgubuntu.co.uk/2017/02/ukuu-easy-way-to-install-mainline-kernel-ubuntu

solved most of them, by installing the latest known kernel on 18.04 (5.2.8 as of today).


Why am I unable to remove the Ubuntu One icon?

I solved this problem:

run this in console:

sudo rm /usr/share/applications/ubuntuone-control-panel-gtk.desktop


How to set Ubuntu as default OS, XPS 15?

F2 should bring up the full UEFI options, there I believe you will be able to permanently change the boot options. Otherwise when I was dual booting Window 8 and Ubuntu 12.04, running boot-repair https://help.ubuntu.com/community/Boot-Repair forced the UEFI to boot to a grub menu which defaulted to Ubuntu. I should mention though that I am running an XPS 8500 desktop.


How to Install Ubuntu on my lenovo which has four partitions

We need more information on how your hard drive is configure, GPT or MBR partition table? Total size of hard drive?

Assuming its MBR, that will only allow for 4 primary partitions. So you would have to delete a 2 primary partitions and resize 1 for Ubuntu. Then in the other partition create an extended partition with a logical partition so you can add other logical partitions if you need them.

Your partition table would look something like:

Primary 1 - sda1 (ntfs - Windows)
Primary 2 - sda2 (ntfs - Windows)
Primary 3 - sda3 (ext4 - Ubuntu)
Primary 4 - (if needed)

Extended Partition:
    Logical - sda4 (Linux Swap)
    Logical - sda5 (if needed)

This is if your hard drive is configured for MBR and if you hard drive has space for a 2nd OS. In the end you'll probably have to delete partitions to make room. Good luck.


If you have not tried it yet, you could attempt booting using different options you can enable from the Ubuntu CD/USB Boot Options Page.

The Live CD/USB Boot Options page is usually not seen when a Live CD/USB is booted. To display it you have to trigger it by pressing any key when the small logo  appears at the bottom of the screen. The Live CD/USB should stop booting and display the Advanced Boot Options menu shown below.

The main thing this page appears to provide is an easy way to allow you to boot with  common kernel options applied. You press the F6 key and use the space bar to select/unselect the option(s) you want to apply and then resume the boot.

(By the way, have you already tried booting with the nomodeset kernel option? It seems to be a popular recommendation whenever video may be the problem.)

The F1 Help key displays a (nested) list of function keys showing the Live CD/USB version, boot methods, special boot parameters, and (dated?) hardware help information. I think it is mostly useful as a way to verify the release number and build date of the Live CD/USB you are booting. (It would be nice if it also mentioned whether it was 32-bit or 64-bit. Oh, well.)

Since I am not that familiar with the various options, I'll stop here and just suggest you read the Ubuntu online help to learn more about them. (I would only be parroting what it says there.)

Reply to Comment @ 2012-05-03 05:21:43Z

So what I think you are saying is that when you used the example kernel options above, noapic, nolapic, and nomodeset then you were able to boot and successfully install Ubuntu. But when you try to boot the new install it proceeds to the "the dotted boot loading screen" but then "the screen stays purple. and sits there". Correct?

If so you probably just need to boot with (some of) the same kernel options used when you installed.

This is a two step process. First you test the various combinations of the kernel options to find out the minimum required. Second, you update your default GRUB configuration so that the needed kernel options are used in the future.

I'm sure there are lots of questions that cover this, such as this one:
How do I add a kernel boot parameter?

It looks like a good answer, but I think there is a small error in it. So I am going to copy and "enhance" the first half here. You can get the second part, how to add the kernel options permanently by changing /etc/default/grub, from the original.

How To Temporarily Add a Kernel Boot Option to GRUB (based on this answer)

Assume we want to add the kernel option nomodeset. (I use this as an example because it  may be the only kernel option you need.)
Start your system and wait for the GRUB menu.

Note: If you don't see a GRUB menu, press and hold the Shift key right after starting the system.

Select the kernel you intend to boot and press the e key to edit its GRUB boot commands. You should see a list of commands like those in the example below.

setparams 'Ubuntu, with Linux 3.2.0-24-generic'

recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root bc6f8146-1523-46a6-8b6a-64b8\
19ccf2b7
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=bc6f8146-1523-46a6-8b\
6a-64b819ccf2b7 ro  quiet splash
initrd /boot/initrd.img-3.2.0-24-generic

Change the second line from the bottom which ends with ro quiet splash.
Additional kernel option(s) are added at the end of this line.
To add nomodeset change
6a-64b819ccf2b7 ro  quiet splash to
6a-64b819ccf2b7 ro  quiet splash nomodeset
Now press either Ctrl+x or F10 to boot. The change will be used, but only for this boot. It is not permanent.

I think that's it. Hope it helps!

If you're still following this, could you please post a status update of some kind. (I'm curious.)

If you find you must use the kernel boot parameter/option acpi=off, then you might also want to take a look at this answer for some suggestions on how to attempt to isolate the problem area and possibly file a bug report.


Are there are alts to Yumi multiboot creator tool for ubuntu 12.04?

As far as other alternatives to Yumi, there is as stated by @Angel Salinas Huerta, Multisystem.  To install,  just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

wget http://liveusb.info/multisystem/install-depot-multisystem.sh.tar.bz2
tar -xvf install-depot-multisystem.sh.tar.bz2
sudo ./install-depot-multisystem.sh

As far as installing Yumi, you have to install gambas3 prior to installing yumi to satisfy dependencies.

To install, download Yumi deb file.  After the file is downloaded, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to where the file was downloaded (Probably the Downloads Folder), and run the command(s) below:

sudo add-apt-repository ppa:nemh/gambas3
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install gambas3
sudo dpkg -i yumi_0.0.1-1_all.deb

That should install Yumi,  See images below.


Can Qt-box-editor be used for tesseract 4.0?

For now, Qt-box-editor(1.11) can support the Legacy Tesseract OCR's training .box file. and also can support the .box file generated by text2image.

However, it doesn't support the .box file generated with lstmbox or wordstrbox config. more information you can find in here


For me, the solution was simply running this command from tty1:

sudo rm .Xauthority


From your screenshot it looks like GParted is stuck on the disk scan.  Either that or it is finding LOTS of errors.

Reboot if you can off of a Live CD or USB and go to a terminal session.  Make sure you don't mount the partition before continuing.

Run this command: e2fsck -f -v -c -C 0 /dev/sda1

Now you'll be able to see what's going on with the e2fsck scan.

If you're getting many errors that can be fixed, you can either continue saying "yes", or reboot again and add -y to the e2fsck command above so you don't have to keep saying yes to repair every error (It will say "yes" automatically).

If you're getting bad superblock errors, you'll have to recover it this way:

Run as root (sudo) : dumpe2fs /dev/sda1 | grep -i superblock

You should see an output like this:

  Primary superblock at 0, Group descriptors at 1-2
  Backup superblock at 32768, Group descriptors at 32769-32770
  Backup superblock at 98304, Group descriptors at 98305-98306
  Backup superblock at 163840, Group descriptors at 163841-163842
  Backup superblock at 229376, Group descriptors at 229377-229378
  Backup superblock at 294912, Group descriptors at 294913-294914
  Backup superblock at 819200, Group descriptors at 819201-819202
  Backup superblock at 884736, Group descriptors at 884737-884738
  Backup superblock at 1605632, Group descriptors at 1605633-1605634
  Backup superblock at 2654208, Group descriptors at 2654209-2654210
  Backup superblock at 4096000, Group descriptors at 4096001-4096002

Now choose one of the backup superblock to run this command as root:

e2fsck -f -b 32768 /dev/sda1

And then run

e2fsck -f -v -y -c -C 0 /dev/sda1 to do one more full check.

If everything went cleanly, and it did some repairs, try running GParted again to try resizing the partition now.


I faced the same scenario as I try to setup up the dual boot after having received a factory new dell laptop. Turned out for me that the "activation required" step simply is a UI stage as Windows wants me to savely store the recovery key on some media. After having done this and the "activation step" has been completed the device is shown to be encrypted without any processing. So the encryption was already in place, as the disk management and ubuntu both remark.
After activation the GUI shows the regular "device encrypted" screen and options so that the regular guides for decryption can be followed.


Build dependencies with apt-get build-dep for Linux-image-4.14

I don't know why this was hard to find, I blame my low experience with this but I got it working by installing these packages:

sudo apt-get install linux-source build-essential kernel-package libssl-dev ncurses-dev xz-utils libssl-dev bc kernel-package


Goto cups local 641.  Scroll to bottom after clicking on printers. click the link at bottom. Right click on your printer and choose View Print Q.  Click the x to delete the print job.

You can also choose your printer from the cups page and click cancel all jobs.


Ubuntu 16.04 no longer boots - black screen with blinking cursor

=> Grub2 (v1.99-2.00) is installed in the MBR of /dev/sda and looks at sector
     2048 of the same hard drive for core.img, but core.img can not be found at
     this location.

This is likely the cause of your problem. Go into your system/hardware setting and disable legacy boot support.


"Could not import runpy module" when running apt-get on Xubuntu 12.10

This is a bug that still not fixed yet. see Bug #1024016 .
Maybe you can try this way in #31 floor or apt-get remove python3 and wait until the bug is fixed.


Purpose
The hosts file is one of several system facilities that assists in addressing network nodes in a computer network. It is a common part of an operating system's Internet Protocol (IP) implementation, and serves the function of translating human-friendly hostnames into numeric protocol addresses, called IP addresses, that identify and locate a host in an IP network.
In some operating systems, the hosts file's content is used preferentially to other methods, such as the Domain Name System (DNS), but many systems implement name service switches (e.g., nsswitch.conf for Linux and Unix) to provide customization. Unlike the DNS, the hosts file is under the direct control of the local computer's administrator
File content
The hosts file contains lines of text consisting of an IP address in the first text field followed by one or more host names. Each field is separated by white space (blanks or tabulation characters). Comment lines may be included; they are indicated by a hash character (#) in the first position of such lines. Entirely blank lines in the file are ignored. For example, a typical hosts file may contain the following:
# This is an example of the hosts file

127.0.0.1  localhost loopback
::1        localhost

This example only contains entries for the loopback addresses of the system and their host names, a typical default content of the hosts file. The example illustrates that an IP address may have multiple host names, and that a host name may be mapped to several IP addresses.

Wikipedia

This is invalid (?):
127.0.x.x mydomain

Wildcards are * so it should be 127.0.*.* but I hardly see anything else than 127.0.0.1 ;)

What this means is that you can use mydomain as a name for that IP address. It is easier to use www.google.com than to remember the IP address (74.125.132.106) that Google uses for their searchengine. The same works locally (localhost) on your machine. If you run your own Apache instance you can set a local IP address to a name and  use that name in a browser.

The ::1 in the example is the IP v6 version for IP addresses.


How do I install the any package from privates PPA without needing Ubuntu Software Center?

As of recently, you can use Ubuntu Make.

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make
umake ide idea


Run in a terminal

sudo tee /etc/modprobe.d/blacklist-tpacpi.conf <<< "blacklist thinkpad_acpi"

and reboot.

It is also possible instead of blacklisting the module set some parameters like wwan_state and dbg_wwanemul, but it needs some testing.


There's a special app-indicator, Cpufreq.

Install Indicator-Cpufreq

I hope this helped you,

Daniel


Hbase master not running in pseudo-distributed mode

This question is bit old. I am answering so that it might help someone else...

The problem appears to be a mismatch between Hadoop version and HBase version. Changing the jars inside hbase/lib folder will not help as those jars are only used in standalone mode.

You need to recompile HBase as specified here http://hbase.apache.org/book.html#basic.prerequisites


Looks like it is /var/lib/docker/volumes

Here's what I got:

$ docker volume create TEST
$ ls /var/lib/docker/volumes
metadata.db  TEST/


By default Wake-up On LAN (WOL) is enabled in BIOS and it seems to be a bug  with power management. Turning of WOL in the BIOS should fix this. What seems to happen is that the system falsely identifies the shutdown as a power failure and it trigger WOL to start a reboot.

Sourceforge has a topic on this specific board.
Arch BBS too but it also has a claim about the power supply:

  My power supply was 450W. However, I got tired of going around the head until I read on page 23 of the GA-Z87N-WIFI manual which case we use the PCI-E was advisable to use a power supply of 500W or higher, as lower springs would destabilize (possible cause of the reboot).


Internet on Ubuntu 10.04 not working after installing updates on Update Manager

This is one of those, it could be a million different things sorts of problems.  Step one is to see how your NIC is configured.  Try running:

ifconfig -a

What you will get looks something like this:

eth1      Link encap:Ethernet  HWaddr 00:15:17:12:9a:d6
          inet addr:10.0.0.33  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::215:17ff:fe12:9ad6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:262459016 errors:0 dropped:432 overruns:0 frame:0
          TX packets:388373760 errors:158 dropped:0 overruns:0 carrier:158
          collisions:178 txqueuelen:1000
          RX bytes:94742468374 (94.7 GB)  TX bytes:464252544891 (464.2 GB)
          Interrupt:16 Memory:f0800000-f0820000

Look for the inet addr, mask, and particularly that it says, "UP".  Post these values and we can work from there.


Will it be possible / desirable to port Unity back to Mutter at some point?

"Plans to port" meaning Unity has been ported to Compiz, and we are just smoothing out some rough edges before we release a Compiz based Unity.

While it would of course be technically possible, it would be a lot of work for no considerable benefit. The time that would be spent porting Unity BACK to Mutter could (and definitely will) be spent making Unity rock beyond understanding.


Ubuntu freezes at boot / many trouble installing Ubuntu 13.04

After writing this question, I found this related thread from which mine seems to be a duplicate of. Sorry for this! Fortunately the solution which has been presented there (turning off the Intel graphics card) also works for me, so finally I can boot Ubuntu.

Thank you for your interest!


How to open PDF files on Telegram with my preferred application in Kubuntu?

Try setting the default application back to Xournal++ and then switch back to okular. This apparently solves the problem in some cases.


I haven't investigated why it didn't build for you — perhaps there was a packaging change in debian/, or perhaps one of the patches (ssh-vulnkey is introduced in a Debian patch) needed updating — but I have just confirmed that building the 5.9p1 package from Precise on Oneiric works fine.

I used the backportpackage tool from ubuntu-dev-tools for this. Try something like this: backportpackage -s precise -d oneiric -w . openssh, and then build the resulting package however you like (I used sbuild; if you want to build using dpkg-buildpackage then you'll need to extract it with dpkg-source -x file_name_of_dsc_file). Make sure you get the build-depends from the package itself — apt-get build-depends will get you the build depends of the Oneiric version and not the Precise one that you are building. You can use mk-build-deps from devscripts for this, like so: sudo mk-build-deps -i -r.


Unable to remove Pidgin software completely

To remove Pidgin completely you have to remove the pidgin-ppa package (besides the pidgin package) by entering the following command in terminal:

sudo apt-get purge pidgin-ppa

This package is responsible for setting up Pidgin PPA in /etc/apt/sources.list.d/pidgin-ppa.list.

To test that all Pidgin PPAs are removed type:

ls /etc/apt/sources.list.d/pidgin*

It should not list any files.


Is there a command to upgrade a package and all its dependencies without upgrading all packages?

Not directly, as far as I know. You can use a little shell snippet to generate the list of dependencies of the package and upgrade these (assuming you aren't interested in recursive dependencies):

apt-get install our-metapackage $(dpkg-query -Wf '${Depends}' our-metapackage | sed 's/ *\(([^()]*)\)\? *[,|] */\n/g')

An alternative approach would be to supply your packages through a repository with a unique origin. Write an APT preferences file that specifies only your repository as having a normal priority and everything else as having too low a priority to be installed automatically. (See APT pinning in the APT manual for explanations.) I won't go into details about making the repository (this would be material for a separate question, which may well exist already). To specify that packages from your repository get upgraded and others don't, write the following file as /etc/apt/preferences.nnutter:

Package: *
Pin: release o=nnutter
Pin-Priority: 500

Package: *
Pin-Prority: 100

500 is the normal priority. 100 causes packages not to be upgraded, though the package will be installed if required by dependencies. Run apt-get upgrade or apt-get dist-upgrade with this APT preferences file when you only want to upgrade packages from the nnutter repository:

apt-get -o Dir::Etc::Preferences=/etc/apt/preferences.nnutter -o Dir::Etc::PreferencesParts=/etc/apt/preferences.nnutter.d upgrade


How to remove Ruby 1.9.1 keeping Ruby 2.0.0?

For Ruby, the basic dependency structure goes like this:

ruby (which would ideally be a metapackage that points to the default version) depends on ruby1.9.1
ruby2.0 depends on ruby

I'm not sure why they did this, or why they removed the ability to use alternatives here, but if you want to force the use of Ruby 2.0, then one non-invasive way to do this is to create symlinks to the 2.0 binaries. The snippet below will create symlinks in /usr/local/bin.

for i in erb gem irb rdoc ri ruby testrb; do
    sudo ln -s /usr/bin/$i''2.0 /usr/local/bin/$i
done

Ruby 1.9.1 is still accessible by appending 1.9.1 to the binary name (for example, gem1.9.1).


You need to edit two files to change your computers host name /etc/hosts and /etc/hostname

you can edit them like so

sudo gedit /etc/hostname

this file should contain your systems current HOSTNAME simply change it to what you like

sudo gedit /etc/hosts

this file needs to be changed to otherwise errors can happen

change whatever your current HOSTNAME is to your new one and you're good to go

127.0.0.1   localhost
127.0.1.1   HOSTNAME

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

you can also try this which should make the new name take affect

sudo hostname NEWHOSTNAME

you may also need to do the following

sudo service networking restart

not done


From: "/dev/sda6 is using 402gb and /dev/sda4 is using 77Gb", I am guessing that the root filesystem, / is mounted on /dev/sda6 ? Also that /var/log/* has filled the rest of the partition. You can confirm this with

df

and

du /var/log/* -sh

commands? If you don't want to reinstall (on freshly installed) and selecting much less packages to try to minimize on the possibility of installing a faulty package (one which causes the errors) you can first just clear /var/log by removing it all by using sudo rm -rf /var/log/* You want to know what is causing the errors with the installation. Some hardware compatibility or faulty problems? Start of with a miniminal installation and then add to it.


I have a .bashrc file in the root of my server and inside of it has some functions

https://linuxize.com/post/bash-functions/ explains bash functions in detail.

In general, to run your function, just open a bash terminal, enter the name of the function (mysqldumpSafe in your case) followed by any arguments (space-separated), and press Enter.


Canon LBP 2900 printer for Ubuntu 13.04?

For Ubuntu 13.10, do this first:

Install the portreserve package:

sudo apt-get install portreserve

How to make LBP-1120 Canon printer work?


16.10 software updater not installing updates

You can change the frequency from

system settings --> software & updates --> updates,

You could also run sudo apt updates && sudo apt dist-upgrades from the terminal to see if you have any if you don't trust the updater.

Now there are two ways to do updates:

From terminal with:

sudo apt update

The above command will update the package list to see if any changes
have occurred requiring you to update

If updates are present then you can run:

sudo apt dist-upgrade

Software updater:

 Which does the same thing as in opion 1 but using a
 GUI (graphical user interface)

That you haven't updated in a month doesn't automatically mean its not working when you whenever you try to and it doesn't. Now if there is an issue with your network then when you run update from the terminal or updater it should notify you.

You can also check if your repositories are enabled so you can receive update from the system settings --> software & updates --> other softwares section. And enable any that you need and isn't.


whois and other tools don't work with IDNs

whois works for me on 16.04:

$ whois ąćęłńóśźż.pl

DOMAIN NAME:           xn--kda9ag6e8jma6nxjsa.pl
registrant type:       individual
nameservers:           ns1.dnsprotect.eu.
                       ns2.dnsprotect.eu.
created:               2010.04.15 12:43:23
last modified:         2018.04.10 07:16:15
renewal date:          2019.04.15 12:43:23

no option

dnssec:                Unsigned

REGISTRAR:
Consulting Service Sp. z o.o.
ul. Domaniewska 35A lok.1B
02-672 Warszawa
Polska/Poland
+48.221238080
domeny@ConsultingService.pl

WHOIS database responses: http://www.dns.pl/english/opiskomunikatow_en.html

WHOIS displays data with a delay not exceeding 15 minutes in relation to the .pl Registry system
Registrant data available at http://dns.pl/cgi-bin/en_whois.pl
$

As for the other three commands, as a workaround, you could do sudo apt-get install idn and then use it to do the translation:

$ dig $(idn ąćęłńóśźż.pl)

; <<>> DiG 9.10.3-P4-Ubuntu <<>> xn--kda9ag6e8jma6nxjsa.pl
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11814
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;xn--kda9ag6e8jma6nxjsa.pl.     IN      A

;; ANSWER SECTION:
xn--kda9ag6e8jma6nxjsa.pl. 14400 IN     A       46.29.20.209

;; Query time: 273 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sun Aug 05 20:02:51 EDT 2018
;; MSG SIZE  rcvd: 70

$ host $(idn ąćęłńóśźż.pl)
xn--kda9ag6e8jma6nxjsa.pl has address 46.29.20.209
xn--kda9ag6e8jma6nxjsa.pl mail is handled by 10 mail.xn--kda9ag6e8jma6nxjsa.pl.
$ nslookup $(idn ąćęłńóśźż.pl)
Server:         127.0.1.1
Address:        127.0.1.1#53

Non-authoritative answer:
Name:   xn--kda9ag6e8jma6nxjsa.pl
Address: 46.29.20.209

$


Why the service --status-all is not listing this working service?

According to the manpage

service --status-all

shows

service --status-all runs all init scripts, in alphabetical order,
with the status command. The status is [ + ] for running services,
[ - ] for stopped services and [ ? ] for services without a
status command.  This option only calls  status for sysvinit jobs.

ls -al /etc/init.d/

There can you see the listed services from sysvinit system.

You wrote an systemd unit, they can be listed with:

systemctl list-units     # for currently active units
systemctl -a list-units  # for all known units

Add the --user flag to these commands if you want to list the current user’s units instead of the system ones.


The Eclipse executable launcher was unable to locate its companion shared library

It's a permissions issue. You can either reinstall the package without sudo rights or change the permissions of /root/.p2 with

sudo chmod 775 -R /root/

I did the latter.


https://wiki.archlinux.org/index.php/Intel_Graphics#Tear-free_video

Try this. Also, If you are using Chrome disable the pepperflashplugin and use the official flashplayer instead.


How do I set environment variable for all users even when doing sudo su?

/etc/profile (and hence /etc/profile.d) is read for login shells. sudo su other_user does not run a login shell. It is a bad practice, it leaves the environment contaminated with variables from the original user. You should do either of these commands instead:

sudo -iu other_user
sudo su - other_user

Both of these load /etc/profile because they start login shells, and both start with relatively clean environments.

Ideally, though, the variables should be set in /etc/environment if possible. That file should be read by su, so variables there would be available irrespective of whether a login shell is started. However, that file doesn't support shell syntax, so if you need complex shell code to set your variables, you can't use it.


The kernel team have a wonderful wiki page.

it has a kernel debugging page where you can find :

Debugging Scenarios
Debugging Guides
Debugging Tools/Information

To determine which guides are relevant to your problem see the Kernel/Debugging/Symptom based debugging guide .


If I burn Ubuntu onto one of my internal hard drives and boot off it to install it on another hard drive, can I undo it?

You can use a hard disk drive as a live drive and re-use it afterwards

I have done it many times with HDDs and  SSDs too.

Be very careful to write to the correct target drive (check and double-check to avoid mistakes). It is a good idea to have a backup of everything, that you cannot afford to lose.

In Linux I use mkusb for this purpose, both to make a live-only drive or persistent live drive and to wipe the first mibibyte or restore it to a standard storage device. See this link,

help.ubuntu.com/community/mkusb

You may want to use gparted after wiping the first mibibyte in order to create a more advanced partition table.
In Windows I use Win32 Disk Imager to make a live-only drive (for installing purposes). See this link,

wiki.ubuntu.com/Win32DiskImager/iso2usb

You can use other software too, for example Rufus, which is recommended officially by Ubuntu,

rufus.akeo.ie

Edit: I am not sure, if the tools in Windows will write to an internal drive, or if the HDD or SSD must be connected via USB (and an adapter or external box). If problems with one tool, let us try another one, in order to do what you want.


Ubuntu 14.04 - Citrix 12.1 Run xenapp in windowed mode

Open terminal:

gedit ~/.ICAClient/All_Regions.ini

Then edit lines 852/3 to your desired resolution.

DesiredHRES=1366
DesiredVRES=768

This will force Citrix to open in windowed mode.


How can I get Compose bound to Print Screen in graphical applications?

According to the man page it should be -option rather than -options!

setxkbmap -option "compose:prsc"

It works for me.


How can you set the left right orientation of webcam?

You can set it to left-to-right position in the effects tab in combination with other effects. The Horizontal flip.

Screenshot from Cheese2, by Msaul (license/disclaimer).

I think you can also set it in the settings?


How do I pass "ACPI=OFF" to my kernel on boot?

In /etc/default/grub

The last line you have to change.

GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null ||
echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="acpi=off"

https://help.ubuntu.com/community/BootOptions


Use apt-get to install packages newer than Ubuntu release

I have run into a similar problem before. There are two possible solutions:

Use pip

pip is a package manager for python. With pip${version} you can install packages for a specific python version.
General info about pip
Installing pip (basically sudo apt-get install pip)

There are also ways to install the packages for all users (as root), or only locally.

Backporting

If you need a .deb package, for whatever reasons (for example if other users want to download your product from the repository with all dependencies in the repo), you can "backport" the packages from Wily. That means building the (source) package with all its dependencies and putting them in a PPA/requesting backport to Trusty (backports package source).

Using backports and requesting/making them

I did the latter one a few days ago for the package python-cryptography.
You will need a launchpad.net account and you will need a GPG key. There you have to create a PPA (for example "python-pandas-backport"). Then just follow the second link. I did a requestbackport -d trusty <package> and then you get a text file where you have the command for backportpackage.

You enter the backportpackage command in another window. It's mostly pretty straight forward. Then you can check your PPA on launchpad to see why/if the build has failed. That's how I found the dependencies, and for all those packages I repeated the process above (with the same PPA, mind you). If you know the deps, you can just backport them first.

You can then use the packages from your own PPA and anyone else can too. If you have requested a backport, they might land in Trusty. But that may take a while (Wily will be released in a month, so it's crunch time).


Does Ubiquity respect my former partition layout with a new installation?

In my experience, upgrading or  replacing my previous Ubuntu installation disregarded my previous partitioning method and built it's own (using ext4 of course).

I would go on the custom partition step, then select the partitions one by one (the size of the partitions are the same as the old installation), assign a filesystem, and check 'format' on each of them except swap space (if you have it). And remember to assign the correct device for boot-loader installation!

Hope this helps.


how to identify DISPLAY value of multiple hdmi ports of machine for cronjob

Display numbers does not necessary relate to HDMI port numbers.
Please, read documentation here: http://manpages.ubuntu.com/manpages/focal/en/man7/X.7.html
Section "Display Names" first.


Most likely, your GPU is not recognized as such. Did you run Drivers manager to make sure that it does not need more drivers installed?


This answer: Use integrated graphics for display and NVIDIA GPU for CUDA on Ubuntu 14.04 appears relevant for you.

In summary setting up /etc/X11/xorg.conf as follows:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "intel"
    Screen 1 "nvidia"
EndSection

Section "Device"
    Identifier "intel"
    Driver "intel"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "SNA"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

Read the entire post for more details.

Reply to comments

According Asus Canada specs:

  Integrated Graphics Processor- Intel® HD Graphics support Multi-VGA
  output support : HDMI/DVI-D/RGB/DisplayPort ports
  - Supports HDMI with max. resolution 4096 x 2160 @ 24 Hz / 2560 x 1600 @ 60 Hz
  - Supports DVI-D with max. resolution 1920 x 1200 @ 60 Hz
  - Supports RGB with max. resolution 1920 x 1200 @ 60 Hz
  - Supports DisplayPort with max. resolution 4096 x 2304 @ 60 Hz Maximum shared memory of 512 MB Supports Intel® InTru™ 3D, Quick Sync
  Video, Clear Video HD Technology, Insider™ Supports up to 3 displays
  simultaneously DP 1.2 Multi-Stream Transport compliant, supports DP
  1.2 monitor daisy chain up to 3 displays

I suggest temporarily taking out your two nVidia cards, plugging a monitor into the on-board HDMI port and booting with a Live USB to runs tests with Ubuntu.

It is important to know your CPU. Discover this using:

cat /proc/cpuinfo | grep 'model name'

and report back.


when installing in EFI mode GRUB will find the ESP on its own?

Since you already have Windows booting in EFI mode from that disk it means that the disk already has an EFI System Partition. There will always be one and only one EFI System Partition on a disk which boots in EFI mode. Check with parted /dev/sda print that it is indeed detected as an EFI System Partition. After the installation you will find it mounted at /boot/efi. You don't have to do anything.


Ubuntu 12.04 Asus Eee PC 1005 weird keyboard

The solution was pretty easy, just had to toggle num key (Fn + Num)


Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16

Try this:

apt-get download libc-bin
dpkg -x libc-bin*.deb libdir/

and then:

sudo cp libdir/sbin/ldconfig /sbin/

sudo apt-get install --reinstall libc-bin
sudo apt-get install -f

Taken from old Ubuntu forum archives.


Short answer: My suspicion is that you've installed the BIOS version of GRUB, which is next to useless on UEFI-based PCs that dual-boot with EFI-mode Windows installations.

Long answer: To begin with, you must understand the difference between two different types of firmware:

BIOS -- The Basic Input/Output System (BIOS) was created for the first IBM PC back in the 1980s; then clones of it were reverse engineered by clone makers. (Thus, there are actually several independent implementations of "the" BIOS.) It's written in 16-bit assembly language and is very limited. To boot a BIOS-based PC, the BIOS reads the first sector of the hard disk and executes the code found there. This code is normally the first stage of a boot loader, which loads later stages of itself from elsewhere on the disk.
EFI -- The Extensible Firmware Interface (EFI), or its version-2.x variant, the Unified EFI (UEFI) is a greatly expanded type of firmware that's written (mostly) in C and compiled for multiple architectures. On PCs, it's usually compiled into 64-bit code. An EFI-based computer boots by reading a boot loader stored as a file on a FAT partition known as the EFI System Partition (ESP). The pointer to the ESP is stored in NVRAM.

Based on your screen shot, your computer is clearly UEFI-based. Your first (text-mode) firmware screen shot shows that the NVRAM entries include a pointer to the Windows boot manager, but there's no evidence of a pointer to an Ubuntu boot manager. (It normally shows up as an entry called ubuntu.) Thus, I believe you have an EFI, an EFI-mode Windows install, and a BIOS-mode Ubuntu installation.

It's possible to boot a BIOS-mode boot loader from many UEFIs by using a feature called the Compatibility Support Module (CSM), which is essentially a BIOS emulation layer. Doing it this way, with Windows installing and booting in EFI mode, is awkward, though.

Thus, the solution is likely to be to install an EFI-mode boot loader for Linux. There are several ways to do this, the easiest of which are:

Re-install Ubuntu -- Re-run the Ubuntu installer, but be sure to boot the installation medium in EFI mode, not in BIOS/CSM/legacy mode. This should cause the EFI-mode version of GRUB 2 to be installed and everything should work.
Run Boot Repair in EFI mode -- Boot the Ubuntu installer in EFI mode and run the Boot Repair tool. This should install the EFI version of GRUB 2 on the disk, rescuing your current Ubuntu installation.
Install rEFInd -- You can boot the USB flash drive version of my rEFInd boot manager, which should enable you to boot your already-installed Ubuntu. Once you've done that, you can install rEFInd from its Debian package or PPA. rEFInd will then be your boot manager, not GRUB 2.

Note that the first two of those options require that you master your boot mode and have a USB flash drive that's been properly prepared. (Some tools omit the EFI boot loader when writing a USB flash drive from a .iso image file.) See this page of mine for more on the CSM, how to control it, and how to prepare boot media that can boot in EFI mode. rEFInd is an EFI-only tool, so it's harder to go wrong when preparing its USB drive -- at worst, it won't boot at all, rather than booting incorrectly in BIOS mode, as the Ubuntu installer might do.


Why does this file not play as the startup sound?

I would check if the file actually plays in vlc, smplayer, banshee or what ever you use. With smplayer it would be...

smplayer desktop-login.ogg

A 3.9 Mb mp3 converted to ogg should be a little bit smaller than the mp3 if it is the same bitrate so it might not be a sound file.

And I would also expect to see the bitrate in the command. Example:

ffmpeg -i desktop-login.mp3 -ab 6400 desktop-login.ogg

But the main problem will probably be the size: the original filesize is 100 kB. I would expect your filesize to have to be around that size. You can use audacity to quickly cut a smaller piece and try that!

Also make sure if the owner is root that the permissions need to be 644 (sudo chmod 644 /usr/share/sounds/ubuntu/stereo/*)


<( ) is process substitution, it's a special Bash syntax (also in some other shells, but not in dash). Systemd doesn't use a shell to run the command in Exec* lines, and it only does some minimal processing itself (including very specific variable expansion, templating, etc.).

So you cannot use <( ) in the ExecStartPre line directly. At the very least, you'll have to wrap it in a shell:

ExecStartPre=/bin/bash -c '/usr/bin/rsync \
  --verbose \
  --archive \
  --times \
  --partial \
...

(and escape accordingly). Then systemd will run bash, and bash will process the process substitution.

But it would be better to use a shell script here.


Sound comes from both headphones and laptop speakers

it is your sound configuration
i had the same problem and this worked for me. sadly i dont remember how to get the available configurations. but you can try a few simple changes like auto

-in the terminal box insert. " sudo nano /etc/modprobe.d/alsa-base.conf "

-enter password

-scroll down to the bottom of the page and insert the following command after the last command already there. " options snd-hda-intel model=asus-mode3 "

-this one worked for me but you could try one of the other models ("asus-mode1" through "asus-mode8", or either "base" or "auto")

-exit saving your changes by holding down the "Ctrl" and "Shift" keys and pressing the " ^ " key (6) and than the "x" key.

-it'll ask you if you want to save your changes press "y" and than "Enter" to save the changes to the document.

-you'll find your self back in the terminal box. Now reboot your computer.


How to reset administrative password without the use of a "p" key.

$'\x70'asswd

will mean passwd in bash, because $'x70' means p. See here for more info on this feature.

ASCII table here or in man ascii, you need the hex value for the character, for p it is 70 so you produce it with $'x70' .

Or if you already installed zsh and have turned on the interactive menu completion then from a zsh shell you can cd /usr/bin/. And then type ./ and press TAB and keep it pressing/pressed until the interactive menu completion kicks in and then just select passwd with the cursor keys.

Or if you have mc (Midnight Commander) installed you can use that to select /usr/bin/passwd and then press ENTER on it to launch it or ALT+ENTER to copy the selected filename to the command line. (In this case you will likely need the latter as you will have to supply the username also to the command line because you are not changing the root's password but some user's. So simply launching passwd is not want you want.)

Or any similar interactive selection program should work, but obviously these should be already installed on your system as now you don't have access to the admin password so you can't install anything.

Or if you have only passwd in /usr/bin/ which has only one letter before asswd (on a default setup this is true) then of course you can just use bash's globbing features and simply type:

/usr/bin/?asswd

to launch passwd.


gedit-latex-plugin not working correctly

Found that this is a known bug. See here.


grep is used to search for text from a file or another command's output. It can return the lines where it finds a match or the lines where it doesn't.


For creating a bootable USB stick if your machine has plenty of storage space on its disk do you still have to partition Windows

You have got a wrong idea, I suppose.
Partitioning the disk won't remove windows.

For example-
Let's say that you have a 500gb hard disk with windows on it.
The drive is partitioned(grouped) into many parts. You have the OS in C:\, etc.
Now you partition your drive again. This means that you allocate a fixed amount of free space for a purpose(Installing Linux here).

The bootable drive is just a pen drive that helps you to boot the installer and install it into the free space(partition)allocated for Linux.
The bootable drive and the partitioning are not related at all.

The following video might help-
https://youtu.be/HpUgIkl4oFA


Local discs not showing on Windows after installing Ubuntu

First, drive letters (C:, D:, F:, and so on) are Windows-specific. Ubuntu does not identify partitions or disks in this way. These identifiers also don't make clear whether the devices are multiple partitions on a single disk, separate physical disks, or a combination of both. These issues don't make it impossible to answer your particular question, but you should be aware of the fact that a Windows drive letter is likely to be useless when approaching an issue from Ubuntu (or any Linux distribution).

I'm not 100% positive, but I suspect that your Windows D: partition's type code has been changed. This will make it invisible to Windows, but Ubuntu won't care about that detail. The solution is to use a partitioning tool to change the type code. I'm not sure how to do this from the Windows Disk Management tool, or if it's even possible with that tool. From Ubuntu, you'd use either fdisk or gdisk, but which tool you use depends on the partition table type:

Master Boot Record (MBR) -- With the older MBR system, you'd use fdisk, and change the type code of the partition from 0x82 to 0x07:

Launch fdisk on the disk, as in sudo fdisk /dev/sda.
Type p to view the partitions and identify the one you want to change. Because Linux doesn't use Windows drive letters, you'll need to identify the partition by its size and location.
Type t to change the partition's type code. fdisk will prompt you for information, such as the partition number and type code. Change the type code to 07.
Type w to save your changes.

GUID Partition Table (GPT) -- To modify the newer GPT, you can use either gdisk or recent versions of fdisk. Either way, the procedure is the same as with MBR, except that the type code will be different -- 11 if you use fdisk or 0700 if you use gdisk.

WARNING: gdisk will convert a disk from MBR to GPT automatically. Thus, you should use gdisk only if you're positive that your disk already uses GPT. It's not 100% clear from your screen shot whether that's the case, but my suspicion is that your disk uses MBR, since I don't see any evidence of an EFI System Partition (ESP) on the disk. OTOH, the vast majority of computers that shipped with Windows 10 use GPT, so maybe I'm missing something. You can determine your disk's partition table type from the Windows disk properties dialog box, as described on this page of mine. If you're unsure of this detail, it's best to stick with fdisk for this task; however, be aware that you need a recent version of fdisk to handle GPT. Ubuntu began shipping fdisk with GPT support beginning with Ubuntu 14.10 or 15.04, IIRC, so you should have that unless you're trying to install a rather old version of Ubuntu.


Same commands execute when restart terminal

You can either remove the culprit lines from .bash_history, or just rename or delete .bash_history.


Cannot install vmware-view-client on 13.04 amd64

With Ubuntu 13.04, Canonical chose not to repackage/include libudev0:i386. ("aptitude search libudev0" won't return a result). However, the binary is still available for 12.10, which can be found here: http://packages.ubuntu.com/quantal/i386/libudev0/download
You don't need anything else for vmware view install and run perfectly on 13.04


Blank display after upgrading to Ubuntu 14.04

Try this (from Gede Suartana's blog).

  Once you are booted up to the blank desktop... press CTRL + ALT + F1.

apt-get install --reinstall ubuntu-desktop
apt-get install unity
apt-get purge nvidia* bumblebee*
apt-get install nvidia-prime

shutdown -r now

Hope this helps!


OpenOffice Impress (MS Powerpoint alternative) not linking to Projector

When an external monitor / projector is plugged in, Ubuntu does not automatically switch it on. Normally, you can do this by pressing a key combination which depends on the keyboard you are using. Often its Fn+F8 or something similar, often containing two displays.

You can also click on [System Menu] -> Display...:

which brings up a dialog like this:

There you can fine tune the configuration you like. (relative position of the monitors etc.)

Note: LibreOffice has nothing to do with this.


How to install drivers for N300 usb adapter?

I regret that there is no way to get your 0846:9020 device reliably working. In fact, I actually own one and have tried many times and in many ways to get it to work properly. This thread explains the process and details the several failures: https://ubuntuforums.org/showthread.php?t=2264020

I suggest that you look instead for any one of several fully supported devices. Although there are many others, I have and can recommend the TP-Link TL-WN722N.


Suspend button in Ubuntu Dock on Ubuntu 18.04

No, I don't think you can add this specific suspend icon to the dock. But as an alternative, you can create a launcher by hand and add to the dock. To do that, follow the steps below.

Create a .desktop file (say suspend-for-dock.desktop) in ~/.local/share/applications/ directory. You can do that by running the following command in Terminal:

touch ~/.local/share/applications/suspend-for-dock.desktop

Open the file with a text editor, for example by running

gedit ~/.local/share/applications/suspend-for-dock.desktop

Then add the following lines to the file:

[Desktop Entry]
Name=Suspend for Dock
Exec=systemctl suspend
Comment=Suspend icon for Ubuntu dock
Terminal=false
Type=Application
Icon=/full/path/to/your/preferred/icon-image

Save the file.
Click "Activities" or "Show Applications" and search for "Suspend for Dock". It should appear.
Right click and add to favourites.


Please download this file on any other computer: http://mirrors.kernel.org/ubuntu/pool/multiverse/l/linux-firmware-nonfree/linux-firmware-nonfree_1.14ubuntu1_all.deb Transfer it on a USB drive or similar and drag and drop it to your desktop. Now, from the terminal:

cd ~/Desktop
sudo dpkg -i linux*.deb
sudo modprobe -r b43 && sudo modprobe b43

Your wireless should now be working. It may take a reboot.


It looks to me like you were trying to install the 12.10 Quantal version. That release has been EOL for a very long time now. If you want the Adobe flash plugin for Ubuntu MATE 16.04, the easiest way to do it is:

sudo apt update
sudo apt install ubuntu-restricted-addons


How to permanently switch off discrete graphic card?

A simplistic way would be to add echo OFF > /sys/kernel/debug/vgaswitcheroo/switch to /etc/rc.local before the exit 0 so it looks like this:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

exit 0


Can I hide the title bar of MPlayer in gnome?

If it's just for MPlayer you could use the -noborder argument.

mplayer -noborder my_video.ogg

As a more general option, if you're using Compiz (default), you can:

Install and launch the CompizConfig Settings Manager
Select the Window Decoration plugin and hit the "plus" sign next to "Decoration Windows".
Describe the type of window you do not want title bars on with an "And" relationship, and mark "Invert". For example:

Click "Add" and enjoy!


Focus or open window in gnome on keyboard shortcut

Yet another solution.

Make sure you have wmctrl installed: sudo apt install wmctrl

Make a shortcut with the command: bash -c "wmctrl -a chrome ; [ "$?" == "1" ] && google-chrome"

Explanation: first we try to focus on chrome (wmctrl -vxa chrome), next we verify if we are successful "$?" == "0" or not "$?" == "1" and if not we then launch google chrome ([ "$?" == "1" ] && google-chrome").

You also could make the shortcut bash -c "wmctrl -a chrome || google-chrome"

|| means that if the first command fails, execute the second.


Unable to run 'sudo apt-get dist-upgrade' due to authentication issues (Plesk repository)

# apt-cache policy librdbmspp
librdbmspp:
  Installed: 2.0-735641.13060715
  Candidate: 2.0-735641.13073116
  Version table:
     2.0-735641.13073116 0
        500 http://autoinstall.plesk.com/ubuntu/PSA_11.5.30/ precise/all amd64 Packages
 *** 2.0-735641.13060715 0
        100 /var/lib/dpkg/status

The output shows that package comes from Plesk. I would bet the rest of the ones that are unauthenticated do too. So I wouldn't worry about it, it is Plesk's problem, just say "y" to "Install these packages without verification [y/N]?" and it will do the upgrade.


grub: couldn't find a necessary member device of multi-device file system (Ubuntu, zfs on root)

The problem was that the virtualbox disk controllers only allow 4 disks per controller (SATA, SCSI, ...). Dividing the amount of disks along these controllers, resolved this issue.


Problem Installing Ubuntu- hangs at preparation

you don't have enough free space on any of those partitions.
Sda2 and Sda3 used by your other Operating System.

You have 3 options:

Move whatever resides on sda3 to sda2 and then delete sda3 and use it for ubuntu installation. might be the best option as it seems you only have 149MB worth of content in it, though i might be wrong and in some weird way it's a system partition ;)?
You can try to shrink sda2 or sda3 and then use the newly free space for Ubuntu installation.
Get another HDD and use it for ubuntu installation.


Is there a way to set the ls command to always stack results in one column?

It is very easy. Add a line

alias ls='ls -l'

to your ~/.bashrc file and restart the terminal.

You will be able to run ls a normal way without -l this way

\ls


Cannot install any Linux on newly built computer. Splash screen>flash of desktop>only mouse on screen

The easiest way is to remove your Radeon 6800 Graphics Card until after installation. After installation, remount the card and configure the driver. It is simple as that...

To configure your driver follow this guide

Slightly harder but recommended way:

As the system CD boots, on the advanced welcome page (press any key immediately when it starts booting)

To supplement the main boot options, the F1-F6 keys provide additional information and boot options for special circumstances. These options are accessed by pressing any key before the Welcome screen appears. Pressing the ESC key or selecting a language will display the main screen.

These options are not normally needed, but in some special cases they come in handy. Any changes made will affect the current boot only.

Press F4 for Modes. Use this option when a specific driver must be loaded to allow installation or booting to the LiveCD Desktop. Once Ubuntu is installed or booted, the user can permanently install the required drivers.

Use the safe graphics mode. Then everything will run normally. Just go through this


The easiest way is simply to install the KDE desktop on the existing Lubuntu. It comes in a package named kubuntu-desktop, search for it in the Software Centre. After it is installed you can then choose to login either with the Kubuntu DE or the Lubuntu DE (isn't that great?).

P.S.: you can follow this guide for more details.


If you want to do that, you probably better use "unetbootin" instead to create a bootable live flash drive.


How to revert to original gnome shell theme

Try this:

Login to Gnome Classic
Hit Alt+Ctrl+T to open terminal and run following commands:

sudo apt-get autoremove --purge gnome-themes-standard
sudo apt-get install gnome-themes-standard

Log back into Gnome Shell.


SSD tweaks for Ubuntu 12.04 cause Texmaker to compile a lot slower

Both guides you link to have you enable the discard mount option for your filesystem. In my experience, this kills performance. On every sync after a file has been deleted, a TRIM request gets sent, causing the disk to freeze up for 2 to 3 seconds. (This will be hardware-dependent.)

To see whether this is the problem, try testing fsync performance as suggested in this thread:

  Running Theodore Ts'os "fsync-tester" while doing Linus' torture test

while : ; do time sh -c "dd if=/dev/zero of=bigfile bs=8M count=256 ; sync; rm bigfile"; done

  shows it clearly

Sync should be fast on an SSD. In my case and that poster's case, each sync causes a lockup of several seconds. See also https://patrick-nagel.net/blog/archives/337 for a similar example.

If you see similar behavior, you should disable automatic TRIM by removing the discard option from your fstab. (But keep the noatime or relatime option that you probably added.)

Instead, periodically run fstrim on your filesystem, e.g. using cron. Several ways to do this are given in this article. This way you should still get the benefits of TRIM without the performance problems.


How to make upload folder writeable, proper permissions on upload folder

Basically, the 777 or 755 is broken down like this:

Each of the numbers represents the privileges that are given to a particular group of people.  The first number represents the privileges given to user (system user), the second represents privileges given to group (system group), and the third is for others (anyone else trying to access the file).

Breaking down into the individual number, each value begins at 0 (no privileges) and adds 4 for executing privileges, 2 for writing privileges, and 1 for reading privileges.  Thus, 7 means executing, writing, and reading privileges (4 + 2 + 1), while 5 means executing and reading privileges (4 + 1).

For a website, the system user must have all write privileges (along with read and execute), hence the first number must be a 7.  For group and others, only reading and executing privileges is necessary, hence the second and third numbers should be 5, yielding 755 as the correct privileges for your public_html folder.


How do I view the number of pages of a print job in the printer queue?

I am not sure about this, but I'd try looking at the queue through the cups interface.

In your browser address bar enter: http://localhost:631/printers.
You should see your printer in the "Queue names", click it and go to "show all jobs".
If there are no printers you will have to add it through http://localhost:631/admin.


I deleted my /home/desktop. Now my home directory shows up on the desktop

Your ~/Desktop was followed by an i-node, which can't be found after deletion. Recreating a new directory with the same name, but with a new system-appointed i-node will not point your system files to it. Restoring your backup directories won't fix it either. Try to :
a. add a new user
b. copy your local folders into the new users home directory
c. remove your first user account
Good luck :)


Can't boot to Windows 8 after installing Ubuntu

Follow this`Ubuntu community page for your problem. It can surely helps you in a long way.And if any problems occurs after these steps please comment below .


Chromium installed via Snap regularly only display "sigtrap" for new tabs

Finally found the reason for this: It is a known bug for the Chromium Snap when the application is running while the snap is updated in the background.
See this bug report: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1914918


The local machine will resolve the hostname via its /etc/hosts, since it has a mapping of its own hostname and IP address (usually). Others will need to contact a name server since they are unaware of a host with turboreceiver as hostname in their /etc/hosts.

The simplest non-automated way is to add a record to your /etc/hosts file:

#<ip-address>   <hostname.domain.org>   <hostname>
192.168.0.56    turboreceiver

For other ways and better explanation see this


How can I manage multiple workstations globally

All computers, and an additional server, if used, should be on the same LAN to make things easier. To make life easier, you should either mount certain directories of the clients from a central location, or use a remote interface, such as SSH or VNC. Else, you'll have to apply each setting 40 times.
Printing
The easiest and safest way would be to use another computer as a print server, which itself connects to all required print servers. By doing so, you can change the printer configuration on one host only. If you can't manage to get one, you could instead use one of the 40 workstations as a server additionally.
Linux uses the Common Unix Printing System CUPS. It's by default installed on the desktop version of Ubuntu, and you'll have the option to install it on the server edition on installation time. If you already installed the server, you can install CUPS with the command sudo apt-get install cups
By default, the CUPS server only works when accessed locally. To change that, open the file /etc/cups/cupsd.conf and replace the loopback entry by one referencing the hostname, i.e. replace
Listen 127.0.0.1:631

by
Listen <hostname>:631

You can get the hostname with the hostname command. If the server has a firewall (I'll assume ufw in the following), you may have to open port 631 to the outside:
sudo ufw allow cups

Also, enable publishing the printers on the network:
Browsing on

To apply these changes, restart CUPS:
sudo service cups restart

Now, you can use set up all printers via the server's desktop (if it has one) or the CUPS interface at http://<ServerIP>:631/. When asked for authentication on the web interface, use your root or admin user credentials.

If you have network capable printers, there are chances that CUPS will find them on its own, and all you need to do is to add them to the printer list in CUPS. If some printers aren't found, you should be able to use their IP address to connect to them. When installing a printer, make sure that CUPS will publish them on the server.
If your printers aren't network capable, and only support e.g. USB, attach them to the print server and install them there. Again make sure that the printers are published by CUPS.
To tell the clients that there is a print server, open or create the file /etc/cups/client.conf on each of them.
It would be much easier to mount certain directories from a NAS server (maybe the one that runs the CUPS server), so as to keep certain configuration centralized, but that would go beyond the scope of this answer.
In each client.conf, add the following line, replacing ServerIP by its actual IP, and ensure the server got a static IP (in the Router's settings).
ServerName <ServerIP>

Now, you have to restart CUPS on the client systems, using the same command as described above.
In the clients's printer settings, or CUPS web interface, add the printers from the CUPS server.
(src: https://wiki.archlinux.org/index.php/CUPS_printer_sharing)
Drive mounting
To prevent a user from mounting and unmounting drives, remove him from the plugdev group:
userdel <username> plugdev

If the user is currently logged in, this may not apply immediately; a relog may be required.


How to transfer files from a windows environment to Ubuntu Touch?

Perhaps the easiest way that comes to my mind is to enable SSH (no adb, no developer mode) on your Ubuntu Touch device and transfer your files using WinSCP


Why is my installation of vim conflicting with CUDA?

Vim should be able to install without the CUDA packages so run the following command to install vim:

sudo apt update
sudo apt install vim-common vim-runtime vim

Please post any errors. Thanks!

Update:

Because you have:

  35 not fully installed or removed.

The fix for this problem is usually:

sudo dpkg --configure -a

Also, it doesn't look like it will break anything by going through with the installation of the dependency because the dependency is the only mentioned change to be made.

The fix for the unmet dependency is usually to install the unmet dependency and then run your updates and upgrades:

sudo apt clean
sudo apt update
sudo apt install libcublas-dev

If the system complains about another dependency, just install that dependency using the same method first, and then install libcublas-dev.


u remove it by resetting your unity
You can do this by the following command

$ unity --reset


you can get the download links from the following command

apt-get install --print-uris build-essential

This will give you the download links + other details (hash values + etc). You can use these download links to download the packages. Then you can install the packages by double clicking or using the dpkg command (dpkg -i).


What is the average +/- % for the battery Power estimator?

The runtime estimation is the quotient of remaining battery charge in Wh and the current power draw in W, averaged over a short timespan of maybe 5 to 15 secs. The actual power draw may change very quickly depending on your usage or workload.
The momentary estimate is therefore completely useless for finding out what you want to know, namely the expected total runtime for your typical usage.
In fact you will have to use the battery a few times until empty and record the runtime manually.
EDIT: also there is no way to "calibrate" the estimation.


Problems when Installing Ubuntu alongside Windows

You should do what it says; Go Back & check your installation settings. Have you allocated enough swap space for the install?


How to disable/mute left speaker in xfce4

Did also "unlock" the volume controls, which should give you the possibility to manage both channels independently?


You should import libpcl now in your Python script. Follow this Link.
According to the link I assume import pcl would do the trick.


Intel(R) Core(TM)2 Duo CPU E7500
Your CPU is capable of running 32-bit or 64-bit operating system.
It depends on the amount of RAM. If your RAM is less than 4 GB I would stick with the 32 bit version already installed. The exception would be if you have a package that demands a works with 64-bit Operating System.
If your RAM is 4 GB or more then you should upgrade to 64-bit version of Ubuntu.
This is a somewhat simplistic answer without getting into a whole bunch of technical details.


How to scan Windows Partition using ClamAv? "Could not mount OS"

Tthe error message says Windows is hibernated, and restarting the computer back to Ubuntu won't correct that -- you need to boot into Windows, and do a full shutdown/restart rather than a hibernate before starting Ubuntu.  I'd generally recommend using a Windows malware scanner while you have Windows open, but that's up to you; if ClamAV has Windows malware signatures, it may do the job (I don't know ClamAV).


Chrome/Chromium crashes at start after computer suspend (Ubuntu 16.04)

After examining the logs and experimenting with the failure conditions, I found it was an issue of the x.org Nouveau video driver. Switching to the Nvidia driver resolved the issue.

I will continue looking for a solution to use the Nouveau driver instead, as it works much better for me.


In my case, I was able to get this to work by Enabling EFI as per https://askubuntu.com/a/542835/242975.

The Right_Ctrl+F1, Right_Ctrl+F7 did not do anything.


For the compose key, you have to select a key from the drop down list displayed while clicking the disabled option.


Set up Ubuntu 14.04 VirtualBox guest so that it doesn't care how Windows host is connected to the internet

I haven't tried this, but I have had the same problem you are facing and so I'm pondering a solution - have you tried bridging the two adapters in Windows? You may then be able to attach your vbox bridge to the windows bridge (or either adapter) and get a usable connection. Just a thought, which I know there are some potential issues with - so let me know if it works!


My computer freezes at startup *ERROR* rv770_set_sw_state failed

ACPI PCC Probe faild is probably a harmless warning message.

*ERROR* rv770_set_sw_state failed is bug #1319589. Some comments there report that upgrading to kernel 4.4 helped, so try that. If you still have problems with a 4.4 kernel then ask upstream on the open freedesktop.org bug or open a new bug report there.


To install it, Use Synaptic Package Manager.  If you don't have it installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install synaptic

Once installed, open it, search for libqt4-webkit, right click on it, choose Mark for installation, and then click apply.  That will take care of all required dependences.  See image below.


Why must an EFI partition be at least 100MB?

This comment on launchpad explains it all: some boot loaders like ELILO (EFI Linux Boot Loader) require the kernel to reside on the EFI partition while other boot loaders like GRUB2 (used by default by Ubuntu) do not. This is why most Ubuntu user have an almost empty EFI partition. Still the partition needs to be large enough for future needs (if you decide to use a different boot loader).


How to make Ubuntu Gnome display bigger in Virtualbox?

A guest operating system installed in Virtual Box will not alter the host operating system in any way other than using some hard drive space for a virtual disk.

Installing Ubuntu in Virtual Box will not affect your host installation. In fact it is a good approach to test Ubuntu and it's various flavours without the need to repartition a hard drive.

To be able to run Ubuntu in variable screen resolutions and to be able to benefit from a virtual graphics adapter for hardware video acceleration we need to install the guest additions within the guest. These will install as a kernel module loaded on booting the guest.

Therefore guest additions will not be available when booting a live system ("Try out Ubuntu"). They need a proper installation on a virtual drive.


So what you have to do:

Run Ubuntu from LiveCD (make sure in the BIOS boot order, the CD drive comes before the hard drive)
If your LiveCD doesn't come with Gparted preinstalled, try to install it by entering sudo apt-get install gparted into a terminal. If that fails, use fdisk. Here are tutuorials:
With what ever tool runs from your LiveCD, partition your hard drive to have a Linux ext3/4 partition, a windows ntfs partition and a linux swap partition. Here is a tutorial for Gparted and fdisk
Shutdown, insert Windows 7 install DVD and  install Windows 7 with it (make sure Windows 7 uses the NTFS partition and does not override the others)
Install Ubuntu from LiveCD and this time make sure (in the extended install options) that the mountpoint for / is your Linux partition.
You're done. Grub shuld automatically reinstall with Ubuntu and recognize Windows 7.

On more details she die Installation Guide for Ubuntu.


How to prevent Ubuntu asking for password after laptop lid closed and reopened?

This disables screen locking altogether, including when closing and opening the lid:
gsettings get org.gnome.desktop.lockdown disable-lock-screen # Get current setting, should be false

gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'

source: https://askubuntu.com/a/117276/11929


The minimum? What a question.

I have several nVidia based graphic cards with both 512 MB and 1024 MB in different systems, and both are good for playing high definition video files. The best, of course, is the 1024 MB card, which is not expensive at all.

You may experience a better performance starting at 1024 MB video card. And I am talking to those times when you wish to play a high definition video and do something else. Or when using two monitors to extend the desktop, etc.

There are new video cards with DDR3 memory systems which will absolutely work better than DDR2 memory based systems.

I prefer the nVidia's but I know that ATI's are also good and many people prefer ATI over nVidia and I have seen an ATI RADEON with 3 GB memory system at work, owned by a gamer friend.

Take in consideration that any video card starting at 1024 MB memory system will do the work with ease.

My nVidia models are:

ZOGIS GeForce 8500GT 512MB DDR2 PCI
Express
PALIT 9500GT Super 512MB/128Bit/DDR2
Dual Link DVI/TV-Out PCI Express 2.0
PNY VERTO GT220 1024MB DDR2 PCI
Express

And my favorite and the one that I am using when writing this is the:

PhysX SPARKLE GeForce 9500GT
1024MB/DDR2/CRT/DVI-I/HDCṔ/SLI/PCI
Express 2.0

This graphic card features no fan and a big aluminum heat sink, which makes absolute silently performance and you won't face the problems when the fan fails because of the dust or typical problems on the fan.

In this link you can find a screen recording of my system when playing a RAW mpeg HD Video file when using dual monitor view. (Take in consideration that I am running in a 2GB RAM system and the screen capture may differ of what I see on this side).

The video is played windowed and full screen in my left side monitor.

For download only, at: http://geppettvs.servehttp.com/resources/desktop.ogv (right click, save target as)

In VLC, Menu "Media" and "Open Network Stream", enter the url and click "Play".

The specs of the video file can be seen in the next screenshots.

My current monitor config in the next screenshot:


How do I undo a series of commands that failed to work with etpro_launch.jnlp, and restore things to its prior state?

Remove the lock/pin file with:

sudo rm /etc/apt/preferences.d/pin-java8

Then:

upgrade manually installed packages

sudo apt-get update
sudo apt-get dist-upgrade

or remove them

sudo apt-get purge icedtea-netx icedtea-netx-common openjdk-8-jre openjdk-8-jre-headless


Unable to add disk devices for domU after kernel update 5.4.0-67

This is an incomplete patch (only 1 of 2 commits) for xen in Kernel 5.4.0-67. This is a problem with the kernel, not the xen system.
Just boot 5.4.0-66 and wait for kernel update by Ubuntu.
The missing patch is proposed for 5.4.0-71 (see kernel.ubuntu.com)
On 20.04 you can switch to the HWE-Kernel. For kernel 5.8 both commits are proposed for 5.8.0-49.55 (see kernel.ubuntu.com)
See our bug report lp#1920660
Best regards, Kelly.


Going from a dual boot (win7 64bit/ubuntu 12.04 32 bit) to win7/ubuntu64 using wubi

I was still able to f12 and get the bios boot menu, when i select my c drive from there the grub menu would come up and I was able to select windows or ubuntu successfully. update-grub and edit grub.cfg didnt solve anything. What i found was that in the bios the order of the hard drives had a non bootable drive first in the list (ahead of the c drive), this didnt cause any problems with win7/ubuntu 32 bit, only grub that is part of ubuntu 64. I changed the order of the drives so my 'c' was first in the list and that fixes the problem.  I think ubuntu should figure out why grub fails in this situation, its as if it looks at the drive that is first in the bios list and checks to see if its a certain uuid. the order the bios list has for hard drives has nothing to do with the price of bananas.


According to this bug report

In the utility source code: column.c It defines MAXLINELEN as 2048 + 1

If your input contains a line which its length is > 2048 you'll get this error.

In order to solve it, you should make sure that the length of the lines in your input is < 2048, or replace the 'column' utility with another one.


When you print your array elements each on a new line, you can use grep:

printf '%s\n' "${array[@]}" | grep "a b"

If array elements contain \n, it's better to use \0 and grep -z (thanks @muru):

printf '%s\0' "${array[@]}" | grep -z "a b"


How to import xml data to a fillable pdf file in linux?

You can use XSLT to transform XML to PDF, or any other format. The procedure is to run the XML file through a XSLT Transformer using a stylesheet. The stylesheet can contain operations on XML nodes, as well as other content elements. An XSLT Transformer can be a stand-alone program, or built into an XML editor, and one is even integrated in your common browser.You can find plenty of XSLT tutorials around the web.


Installing Octave on Ubuntu Mate on Raspberry pi 3

I have octave version 4.2.2-1 installed in my Lubuntu 18.04.1 LTS (amd64). And octave-common is and should be the same version.

$ LANG=C apt-cache policy octave octave-common
octave:
  Installed: 4.2.2-1ubuntu1
  Candidate: 4.2.2-1ubuntu1
  Version table:
 *** 4.2.2-1ubuntu1 500
        500 http://se.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status
octave-common:
  Installed: 4.2.2-1ubuntu1
  Candidate: 4.2.2-1ubuntu1
  Version table:
 *** 4.2.2-1ubuntu1 500
        500 http://se.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://se.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
        100 /var/lib/dpkg/status

Maybe it helps, if you run

sudo apt update

and maybe also

sudo apt install -f

and then try again with

sudo apt install octave


How to downgrade gcc from 4.4.4 to 4.2.1?

You can't really downgrade gcc.  However, if you don't need 4.2.1 specifically, but 4.2.x, you can install Ubuntu 8.04 which will continue to have the gcc-4.2 packages supported for another 2 years.