Failing to boot to grub with dual boot Dell laptop

You don't have to switch to legacy mode to boot the Ubuntu Live USB. It's a hybrid .ISO that works in both CSM (legacy) and UEFI mode.

It's not really an "EFI" partition but rather partitions are "MBR" (Master Boot Record) or "GPT" (GUID Partition Table). Generally speaking UEFI systems use GPT partitioned disks and CSM (legacy) systems use "MBR" partitioned disks.

The old days of "MBR" only allowed 4 primary partitions which could be divided into extended logical partitions. The new days of "GPT" allow many more partitions.

The important things to remember is most people suggest AHCI instead of Intel RAID is better to install Ubuntu. Also most people suggest Secure boot should be turned off.

Finally after installing you may still need to run boot-repair:

How to make grub menu appear instead grub minimal bash-like in booting?


What is the best way to upgrade the kernel in 12.04.3?

I want to point out some basic facts about kernels, before giving answer to your question:

If your current (default) installed kernel is not working properly and you're getting some trouble then you can install any kernel you want and test whether it fixes your problem or not. There is no problem on using one or multiple Kernels at a time. But sometime you should consider the Kernel Mapping to your Ubuntu Version. For example following link lists out the mapping of different kernel to different version of OS:

1. Ubuntu to Mainline kernel version mapping

You can get a complete information of Kernel installing/removing from following link.

2. Kernel Mainline Builds

It helped me a lot to install a new kernel in Ubuntu 12.04.2. Now I can chose any kernel 3.5.0 or 3.8.0 from grub menu.

Following link illustrates how Ubuntu 12.04 LTS works actually. It illustates in very nice way, you would also like:

3. Ubuntu LTS Enablement Stack

Now coming to your point:

  but I have no idea what the *-lts-raring-packages are

If you go through the 3rd link - Ubuntu LTS Enablement Stack, you will see Ubuntu 12.04.x LTS support and upgrade policy (enhanced view). Which states that the packages and kernels in Ubuntu 12.04 LTS will upgraded equivalent to non-LTS version. In short:

12.04   ~ 12.04 (kernel 3.2.x)
12.04.2 ~ 12.10 (kernel 3.5.x)
12.04.3 ~ 13.04 (kernel 3.8.x)
12.04.4 ~ 13.10 (kernel 3.11.x or latest according to the time of release of 12.04.4. i,e why ?? in the figure)

Since 13.04 is called raring, 12.04 is LTS and 12.04.3 is using packages equivalent to 13.04. This is the reason why 12.04.3 packages are called *-lts-raring-packages and the same you see in your repository. I hope your doubt would be clear. (Reply if still you've some confusion.)

  upgraded to 12.04.3. However, my Linux kernel has not been upgraded; it's 3.2.0-52-generic-pae.

This is because it is always good to stick with the kernel which best suits to your system. If your system is running fine with the kernel you are using, then their is no need to upgrade the kernel. But if you've any problem (as you can see, I had one that I solved after upgrading kernel as well as a lot of xserver-xorg packages) then you can consider to upgrade your kernel.

Thus Ubuntu uses the same logic and doesn't upgrade your kernel (it would be possible that same kernel version upgrades. Example 3.2.x will be upgraded to 3.2.y). Ubuntu doesn't want to take risk, it just left for you. :)

  What is the best way to upgrade the kernel?

There is no any best way to upgrade a kernel. The way that worked for you is the best :)

I've mentioned the 2nd link, which you can be used to install the latest kernel. But I recommend you to install the kernel more specific to your 12.04.3 i,e 3.8.x which are listing in your repository.

You can install using the command. Just copy and paste following command in the terminal and execute:

sudo apt-get install linux-generic-lts-raring linux-headers-3.8.0-34 linux-headers-3.8.0-34-generic linux-headers-generic-lts-raring linux-image-3.8.0-34-generic linux-image-generic-lts-raring

Please note that the kernels and so as the repositories are frequently updated. So it would be possible that 3.8.0-34 will not be the latest version of kernel 3.8.x. In this case you can go for the 2nd method I've mentioned below.
or you can install it using Synaptic Package Manager. Type linux-generic-lts-raring and select it. It will automatically select all the latest -lts-packages to install. I'm posting what it shows to me:

linux-generic-lts-raring
linux-headers-3.8.0-34
linux-headers-3.8.0-34-generic
linux-headers-generic-lts-raring
linux-image-3.8.0-34-generic
linux-image-generic-lts-raring

Then just mark for installation and then Apply
You can also get help from this link.


There are other answers assuming that your question has to do with commercial DVD's, but you say these are DVD's you have burned yourself.

Assuming these are simply DVD's on which you have recorded you own data:

I've also experienced strange I/O errors when trying to read media I've recorded my self. (Windows and Ubuntu, as I recall).

I found that I had to record to media recommended by the manufacturer of the drive doing the burning. While I had hoped that everything would be as interchangeable as floppy disks and hard drives, optical media apparently have more compatibility problems due to different formats and different media designs. I also found that the cheapest blank media are cheap for a reason.

I suggest that you try burning a couple of blank DVD's from several manufacturers and see if you can find one that produces reliable copies. the documentation or web site of your burner's manufacturer may hold some media recommendations, too.


Can I restore material from a duplicity backup to another laptop?

The documentation I think provides your answer

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

in it's "Restore" section.  They provide a sample script that restores a file from the /etc/ folder into the /home/user/directory

  "At some point, it may be necessary to restore a file. That task can
  be accomplished quickly and easily by making minor modifications to
  the following script:

export PASSPHRASE=SomeLongGeneratedHardToCrackKey
export FTP_PASSWORD=WhateverPasswordYouSetUp
duplicity --file-to-restore apt/sources.list ftp://FtpUserID@ftp.domain.com/etc /home/user/sources.list
unset PASSPHRASE
unset FTP_PASSWORD

You need to change what you want to restore (apt/sources/list in this example script), and where you want to put it (/home/user/sources.list becomes your "folder B")


I just wrote a script that gets passwords from Chromium and decrypts them.
Decryption parts taken from https://stackoverflow.com/questions/23153159/decrypting-chromium-cookies

https://gist.github.com/sh4dowb/10a64a954e3c6af895620fa0ebc83853

Run these commands:

wget https://gist.githubusercontent.com/sh4dowb/10a64a954e3c6af895620fa0ebc83853/raw/9b439556f09fc9d2313dd9d832c4c87804a316cc/retrieve_password.py
python3 retrieve_password.py
cat passwords.csv

You can then import CSV file to another machine/browser, I think

Note: I think you use Chromium, if you're using google-chrome, in the code replace Chromium Safe Storage to Chrome Safe Storage and chromium in path to google-chrome


How to install Intel 82852/855GM driver?

I have also struggled with Toshiba laptops and the 855GM chipset. I've been able to overcome this with the following PPA. This will provide an updated version of xserver-xorg-video-intel that may provide better results than what you currently have.

sudo add-apt-repository ppa:glasen/intel-driver
sudo apt-get update
sudo apt-get upgrade

If you don't receive updates to the xserver-xorg-video-intel then run

sudo apt-get install xserver-xorg-video-intel

More information regarding PPAs and How to use them


Random reboots/shutdowns after RAM upgrade

Are you sure that the RAM modules are compatible with the motherboard of your computer? Have you stuck to the process for adding RAM modules described in the manual of your computer model?

Apart from what is told in the manual, you must unplug any AGP graphic card you have in the computer before adding the new modules. The reason is the connection between the graphic card and the RAM, it has some RAM MB "reserved".

If you have done all of the thing said, run memtest from Grub or download memtest86+ and run it from a CD at boot if you cannot find the Grub option.

I have edited the answer to note these paragraphs of the manual I had found by searching Dell Dimension 8200 (Please, ensure it is the right one and read it carefully):

  NOTICE: If you remove your original memory modules from the computer
  during a memory upgrade, keep them separate from any new modules that
  you may have, even if the new modules were purchased from Dell. Your
  original memory modules must be installed as a pair in either
  connectors RIMM1 and RIMM 2 or RIMM 3 and RIMM4. Do not pair one
  original memory module with one new memory module in connectors RIMM1
  and RIMM2 or RIMM3 and RIMM4. Otherwise, your computer may not start
  properly.

  [...]

  The only two valid memory configurations are:
  * A pair of matched memory modules installed in connectors RIMM1 and RIMM2 with continuity modules installed in connectors RIMM3 and RIMM4
  or
  * A pair of matched memory modules installed in connectors RIMM1 and RIMM2 and another matched pair installed in connectors RIMM3 and RIMM4

I am not an expert, but the motherboard does not seem to allow to add RAM memory unless you ensure that you get matched RAM modules. They must be a pair RAM modules made to work together and originally sold together too.

And if you are using only two RAM memory modules, you should plug the connectors modules into the right connectors before plugging the memory modules in:

  NOTICE: Be sure to install memory modules in the first two memory
  connectors (RIMM1 and RIMM2) nearest the processor before installing
  memory modules in the outer two memory connectors (RIMM3 and RIMM4).

Another option is to buy two pairs of matched RAM memory modules of the same capacity:

  NOTICE: If you upgrade the memory, the memory modules must be upgraded
  in matched pairs of identical MB capacity in both memory connectors
  RIMM1 and RIMM2 or memory connectors RIMM3 and RIMM4.

Adding RAM modules to other motherboards with four connectors seems lees requiring. I think you can sometimes plug two RAM modules of the same capacity but bought separately into RIMM1 and RIMM3 or RIMM2 and RIMM4 and the computer works.

PS: I am sorry for my rough English.


Google File Stream functionality on Ubuntu

I use google-drive-ocamlfuse and it works perfectly. You can set up a "large file threshold" and it will stream all larger files. You can enable this in the config file.
I have a Plex Media Server to which i have attached about 10TB of media files this way. Whenever I play a movie, the actual file is not downloaded, but streamed directly from drive even if the file needs converting.
For uploading, it can only upload full files (drive api limitation). You can set the cache size limit and it will automatically clear rotate the cache


How to adjust Gnu Grub TIMEOUT when Customizer fails

I forgot to add that this is Ubuntu 18.04.2 LTS. Anyway if I click on the GRUB Customizer File tab and then Change Environment I can see that there is a red Exclamation mark at the DEVICEMAP_FILE: /boot/grub/device.map. Using the answer here /boot/grub/device.map is missing on Ubuntu 14.04. I can install the relevant file - this should sort out the problem, once I have saved the configuration with GRUB Customizer.


How to make Ricoh Aficio SP 100 work on Ubuntu 13.10

The printer is not listed at openprinting.org, but it seems that some friendly guy wrote a CUPS driver and hosts it on github.

Please note that I only found the link, I do not own the printer and did not try the driver.


Depending on the version of Ubuntu you will need a bootable CD or DVD. Ubuntu 12.04 LTS may fit in a CD, but Ubuntu 13.10 and soon to be released Ubuntu 14.04 LTS won't. You will need a bootable DVD for recent versions of Ubuntu.

Alternately you will need a bootable USB drive of 1GB or more.

Ubuntu won't install from a virtual drive as you can't boot your computer from it.

Installing Ubuntu on a computer that came pre-installed with Windows 8 can be complicated. See Installing Ubuntu Alongside a Pre-Installed Windows with UEFI for details.

Hope this helps


How to setup Thunderbird to sign outgoing email messages with my GPG key?

Install the enigmail package.  This will add the OpenPGP menu to thunderbird and allow you to use gpg to encrypt, sign, and verify email.


The main difference should be that Ubuntu uses apt instead of yum, and some of the packages have different names.

The equivalent of yum install -y would be apt-get install -y.

cairo and cairo-devel should be changed to libcairo2 and libcairo2-dev.

Usually we don't install make, gcc, etc. individually, but use the build-essential metapackage.

Other than that, the other commands look distro-independent. Try "translating" the yum commands using these guidelines and test-run them on an Ubuntu system. If they run successfully, then you should be alright.


Evince does not go to the next occurance of a searched string

I can reproduce the bug, but it seems that Ctrl+Shift+g (Go to the previous search result) behaves correctly.

It's not ideal, but at least you can browse your matching patterns.

A bug is already filled in Launchpad: https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1263088


Unity launcher doesn't reappear automatically -- 12.04 in VirtualBox

Do yo have an nvidia card by any chance? Check out this bug:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1056555


This worked for me: install python-appindicator

sudo apt-get install python-appindicator

and then reboot.

Additionally, install python3-notify2 for network notifications

sudo apt-get install python3-notify2

Source

How to re-enable the systray (indicator panel) after latest updates


Where are the scripts that build prebuilt images for raspberry pi?

I'm not sure how they're built
this page might help
prerequisites :
sudo apt-get install gparted

step 1 - clone SD card of raspbery with software you want
sudo fdisk -l

check which /dev/sdx is the SD card
clone SD card to image on PC
sudo dd if=/dev/sdb of=/your/path/to/clone.img

step 2 - shrink image
wget  https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh
chmod +x pishrink.sh
sudo mv pishrink.sh /usr/local/bin
sudo pishrink.sh /your/path/to/clone.img /your/path/to/clone-shrink.img

step 3 - flash new image to SD
Download the Etcher (www.etcher.io) application for your OS and select your newly shrunken image, then select the new SD card and click the button Flash And you are all good
step 4 - optional
to share the image with others are store it in smaller you can compress it to have a smaller storage/sending size
gzip -9 /your/path/to/clone-shrink.img

original site :
https://medium.com/platformer-blog/creating-a-custom-raspbian-os-image-for-production-3fcb43ff3630


Run the system distribution upgrade from within Ubuntu 12.04. Just be sure to set it to only recognize the LTS releases. There's no reason to do a clean install from USB.


Will Ubuntu Live CD move MFT to resize NTFS volumes?

First of all BACKUP your data. Ubuntu installation does not cover all possible operations with partition moving/resizing, it is mostly for delete/create/add partiotion, but gparted does. The official documentation says also
"Parted Partition Editor

If you decide to use GParted, you have to remember to uncheck the 'round to cylinders' checkbox , otherwise GParted will dutifully move the entire partition to align it with cylinder boundaries. Unfortunately this takes a long time, and when it's finished, usually results in booting problems. This is because the Windows boot loader depends on block addressing to find parts of itself, so when the partition is moved a little, it gets all mixed up and disjointed. Sometimes it can fix itself automatically but other times it requires repairs from the Windows Installation Disc. If you just remove the check mark you will find that GParted will be able to complete the NTFS resize in a fraction of the time it would have taken otherwise and afterwards Windows will boot just fine.  "

read more here

So you might need to run Gparted from Ubuntu Live CD before you run Installation.
You can also move/resize your NTFS partition form Windows. I used Partition Wizard many times on NTFS and never had problems. Gparted worked fine as well.


How can I install PAW-Ubuntu plymouth theme on ubuntu 16.04?

Plymouth theme folders seem to have changed in 16.04 (compared to 14.04). Previously they were in /lib/plymouth/themes; now they are in /usr/share/plymouth/themes. Even though themes installed in the old folders are listed as installed (sudo update-alternatives --list default.plymouth), they don’t seem to work properly.

The .deb file for this theme (assuming you mean this version) assumes the old folders so you will need to open it using Archive Manager, then open the data.tar.gz file inside it. Drill down until you get to the  paw folder and extract it somewhere.

Open paw/paw.plymouth in a text editor and change these lines…

[script]
ImageDir=/lib/plymouth/themes/paw
ScriptFile=/lib/plymouth/themes/paw/paw.script

…to…

[script]
ImageDir=/usr/share/plymouth/themes/paw
ScriptFile=/usr/share/plymouth/themes/paw/paw.script

Open a terminal in the folder where you extracted the paw folder and copy it:

sudo cp -a paw /usr/share/plymouth/themes

Next ‘install’ it:

sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/paw/paw.plymouth 100

Then choose it:

sudo update-alternatives --config default.plymouth
sudo update-initramfs -u

To test (change number of seconds at I<10):

sudo plymouthd ; sudo plymouth --show-splash ; for ((I=0; I<10; I++)); do sleep 1 ; sudo plymouth --update=test$I ; done ; sudo plymouth --quit


Ubuntu 14.04.3 LTS, 0.525923 ACPI proble failed

You installed a wrong driver. Press Ctrl+Alt+F1, login to console and run there:

sudo apt-get purge 'nvidia.*'
sudo apt-get install nvidia-346
sudo reboot


kworker gets very high cpu usage only when USB is not plugged in

I have a Lemur with this same issue. Appears to be this bug:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1488426

Using kernel 4.4 (and the two headers packages) from here seems to work for me:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-wily

Update: I found better compatable kernels and updated the link.


Overlapping text in pantheon-terminal (Ubuntu 18.04)

Resetting pantheon-terminal settings may help.

You can try the following command:

gsettings reset-recursively io.elementary.terminal.settings


How to reinstall Windows 7 Home Premium OA without burning drives or usb?

U can't reinstall windows without burning a CD or make a USB with windows,it's impossible at least that U don't have the windows installer CD.To reinstall windows U have to create a USB or a Cd with windows so U will be able to install windows.


How to change the order of the OK/Cancel buttons?

You can't change that (without changing the program). It's the order recommended by the GNOME Human Interface Guidelines and therefore The Right Way To Do It in Ubuntu.


Asked to remove packages when trying to install with Muon?

I have installed VLC Media Player on every version of Kubuntu for ages now. That includes 10.04 through 13.10. Something is clearly wrong somewhere. VLC is not a KDE application and therefore has no KDE dependencies that would need to be removed. However there is not enough information in your post to provide an answer, such as what Kubuntu version and what KDE version for starters.

In Konsole (terminal) type:

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

If there are errors in the results that will help you find out what is wrong and you can re-ask the question with the additional information.

Good luck.


telnet is the telnet client package.

telnetd is the telnet server package.

Try installing telnet

sudo apt install telnet

And, unless you want an open telnet port on your machine, uninstall telnetd also:

sudo apt remove telnetd


The command should be

run(host='mydomain.com' port=80)

Sometimes port 80 is busy and you can't use it, so change the port to another (like 8080 or 1080) to run your app.


Can't use drivers for GPU - Sapphire R9 270X 2GB Dual-X OC in Ubuntu 18.04?

There are two ways to install drivers for the AMD GPU:
  AMD Radeon HD Series Drivers
OR
  OPEN SOURCE (Currently Recommended)

First:

AMD Radeon HD Series Drivers

In order to get the drivers, you need to go to the AMD Download Page: ADM Drivers and Support and grab the latest version of the drivers that matches your card. The release should come in the form of a tarball. Either extract the tarball automatically with your GUI archive manager through your browser or let it download and extract it using "tar" from the command line:

tar -xJvf amdgpu-pro_*.tar.xz

A directory containing all of the necessary packages will be created based on the version of the drivers. Go into that directory:

cd amdgpu-pro-XX.XX-XXXXXX

Don't worry about installing all of those packages individually. There's an installer script that will handle everything for you. Run the script as a regular user. It will ask you for your password to use "sudo". If you want to be lazy, add the "-y" flag to answer "Yes" to every question, like this:

./amdgpu-pro-install -y

Let the script run and install all of your packages. It'll take a bit of time, but once it's done, your system will be ready. Just restart, and you can start using your new drivers.

Uninstalling the AMDGPU Graphics Stack

To remove all components of the stack, run the uninstall script from anywhere in the system. Based on whether you installed the All-Open or Pro components, run one of the following commands:

Use this for All-Open components:

amdgpu-uninstall

Use this for Pro components:

amdgpu-pro-uninstall

After uninstalling the components, reboot the system.
That was for the AMD Radeon HD Series Drivers.

Now for OPEN SOURCE (Currently Recommended):

If you're running Ubuntu 18.04, you already have the open source AMD drivers installed. They're integrated into Mesa and the Linux kernel. Since, Ubuntu 18.04 is new, it'll have some of the latest features. However, if you want the absolute latest as long as you're running your system, there's an excellent PPA that packages Git versions of Mesa.

Add The PPA

This PPA also includes the Gallium Nine patches which enable DirectX9 support for Mesa. You can use it along with Wine to play older Windows games with near native performance. Run the following commands:

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update

After you've added the PPA, update Apt, and run a full upgrade:

sudo apt update && sudo apt -y upgrade

Apt will automatically pull in the updated packages from the PPA.

ENABLE DRI3

DRI3 will increase graphical performance with the AMDGPU drivers. In order to enable it, you need to add a few lines to your "/etc/X11/xorg.conf" file. Open it with "sudo" using your favorite text editor.

If it does not exist, you will need to create it. Navigate to /etc/ and open the "X11" folder as administrator by right clicking on it and selecting "Open as Administrator" and enter password to authenticate. Create new document and name it "xorg.config". Now copy:

Section "Device"
    Identifier "AMDGPU"
    Driver "amdgpu"
    Option "AccelMethod" "glamor"
    Option "DRI" "3"
EndSection

Paste to the newly created or existing /xorg.config and save.

Once you've added that. Save, and restart your computer. When it reboots, you'll be using the latest version of Mesa with DRI3 enabled. To verify if DRI3 is enabled, run:

cat /var/log/Xorg.0.log | grep DRI3

You should get something similar to this if it is:

[    10.039] (**) RADEON(0): DRI3 enabled

=== Revert to original drivers ===

To revert to standard Ubuntu drivers type the following in the terminal:

sudo apt-get install ppa-purge

(IF YOU DON"T HAVE IT)

Next:

sudo ppa-purge ppa:oibaf/graphics-drivers

More info: https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

My opinion is that the OPEN SOURCE seemed to work better, but they are updated way more frequently. The AMD Radeon HD Series Drivers seemed make my cpu run warmer.

Also, a footnote, DRI3 can be enabled with the already installed Ubuntu 18.04 open source AMD drivers by following the guide above: ENABLE DR13

If you want to verify direct rendering, perform these steps:

Verify that direct rendering is enabled:

glxinfo | grep direct

You should get something like this:

direct rendering: Yes
    GL_ARB_depth_clamp, GL_ARB_derivative_control, GL_ARB_direct_state_access,
    GL_ARB_draw_elements_base_vertex, GL_ARB_draw_indirect,
    GL_ARB_multi_draw_indirect, GL_ARB_occlusion_query2,

Ensure that 3-D applications work, run this:

glxgears

If the gears run, then your PC is configured.

Whichever drivers you choose, your graphics card should perform well.


Error Message when starting Update: Failed to load the package list

Open update manager, click on settings, open the "other software" tab, delete the ppa.launchpad.net/madman2k/ubuntu entry.  Try again.

This usually happens when the ppa is no longer required and has been removed, or if it not available or required for a new Ubuntu release.


Changing the mac address for wlan0 on 17.10?

You may want to check results for iwconfig as wlan0 will not exist by default because of Predicatable Interface Naming and make necessary adjustments to your macchanger command


Super + Left or Super + Right now switches TTY windows. How to prevent?

The problem went away on restart of the machine.


You can fix this by either asking windows to set the hardware clock with UTC, or Ubuntu to use localtime.

To make the change in Ubuntu, edit edit /etc/default/rcS and change

UTC=yes to no, like this:

# assume that the BIOS clock is set to UTC time (recommended)
UTC=no

See:

https://help.ubuntu.com/community/UbuntuTime#Multiple_Boot_Systems_Time_Conflicts


hello @raaz i have same question.
i am java developer and i ask this same question in terms of language.

Is it possible to develop Ubuntu Application using java

Ubuntu sdk is build for Qt only so you have to develop any Ubuntu apps in Qt Editor and Unity GUI and HTML Views.

You can use JSON, JavaScript and other things also which provided in Ubuntu Development SDK.

i got this answer only.


Mysql package could not be located Ubuntu 16.04

Your package name is wrong (mysql-server-php5 doesn't exist).  Try this instead:

sudo apt-get install mysql-server mysql-client php5-cli

If you are trying to do local website development, you may also want to install Apache, so you'd use this instead:

sudo apt-get install mysql-server mysql-client php5-cli apache2 libapache2-mod-php5

An additional advisory to install packages in linux: You don't need to write complete package name atonce if you are not sure. You should write first few characters which you know/remember like: sudo apt-get install mys then pres TAB key two times, after this a list of packages starting from mys will appear. It's very helpful in browsing related packages too. (Note: before doing this you may want to update your local package list by command: sudo apt-get update)


Why doesn't my awk pattern match the configure arguments of nginx -V?

It's possible that the output goes to the standard error. You need to redirect it:

/usr/local/nginx/sbin/nginx -V 2>&1 | sed -n -e '/arguments/ s/.*\: *//p'
#                              ~~~~


Wine changing screen resolution, game stays in original resolution

Just press f4 on your keyboard then the resolution should change (if it doesnt then press f4 again) then launch the game. It worked for me. When you're done playing, close the game and press f4 again.


Use whereis to locate the binary, source, and manual page files for a command

$ whereis gedit
gedit: /usr/bin/gedit /usr/lib/gedit /usr/share/gedit /usr/share/man/man1/gedit.1.gz


Ubuntu thinks my Audient iD14 audio interface is Analogue Surround 4.0 when it's actually stereo. Is there any way to fix this?

I found solution in Linux Mint and Lubuntu, maybe it will work in another Linux...

In software manager, type alsa and install qashctl,
then in menu Sound and video find and open qashctl,
and on the right side, Mixer device, under hw: select Audient iD14
and on the left side under "Mixer" open Speaker playback volume and turn up volume to the top -127db and both channel work same and sound is very good.


How can I remove all files from current directory using terminal?

Use rm * from within the specific directory. The * is a wildcard that matches all files.

It will not remove subdirectories or files inside them. If you want that too, use rm -r * instead.

But be careful! rm deletes, it does not move to trash!

To be sure you delete the right files, you can use the interactive mode and it will ask for confirmation on every file with rm -i *


There is a porting document at https://wiki.ubuntu.com/Touch/Porting

You can also drop by in the #ubuntu-touch IRC channel on freenode.


As htorque noted in the comments, if you remove the plymouth-theme-* packages you will not have a graphical boot. Ubuntu Developer, Upstart author, former Canonical employee, and current Googler Scott James Remnant wrote in a relevant bug report that "without them Plymouth merely regulates access to the system console in cases of filesystem decryption and error."

Ubuntu and Debain developer Steve Langasek adds in a message to the Debian development mailing list:

  One of these days I'll get around to writing that blog entry to set
  the record straight on why plymouth is an indispensible component of
  boot with any modern boot system, because when everything is starting
  in parallel, you need something to handle I/O multiplexing to the user
  on console.  So in a real sense, it should be a dependency.  Even if
  you don't care about splash, you still need multiplexing.


How to open external drive from remote location?

You have to mount it manually. See this Ubuntu help page to know how you can do it:

https://help.ubuntu.com/community/Mount/USB#Manually_Mounting


I had the same issue and tried several things but none of them did the trick.

I finally got rid of the purple flash by installing gnome-session and using GNOME as the default

sudo apt-get install gnome-session

The procedure is described in more detail in this thread (for 17.10)
https://ubuntuforums.org/showthread.php?t=2383902


Ubuntu 16.04: How do I add/remove pinned apps to Unity Launcher via terminal?

Contents:

General theory of Launcher operation
Possible ways of removing and appending to Unity launcher
launcherctl.py utility

1. General theory of launcher operation

The Unity launcher essentially is a list of .desktop files. They are essentially shortcuts that allow launching applications as well as performing custom actions. Typically they are stored in /usr/share/applications , but can be also located in ~/.local/share/applications, and anywhere else on the system. For the general case, I recommend storing such files in /usr/share/applications for all users or ~/.local/share/applications for each individual user.

The Dconf database of settings allows storing list of such apps for Unity launcher and can be viewed and altered with gsettings utility. For instance:

$ gsettings get  com.canonical.Unity.Launcher favorites
['application://wps-office-et.desktop', 'application://wps-office-wpp.desktop', 'application://wps-office-wps.desktop', 'unity://running-apps', 'unity://devices']
$ gsettings set  com.canonical.Unity.Launcher favorites  "['wechat.desktop']"
$ gsettings get  com.canonical.Unity.Launcher favorites
['application://wechat.desktop', 'unity://running-apps', 'unity://devices']

As you can see all the .desktop files have application:// prefix on them, however it is not required when setting the launcher list. The items with unity:// prefix are not alterable and cannot be removed.

The gsettings get  com.canonical.Unity.Launcher favorites and gsettings set  com.canonical.Unity.Launcher favorites commands can be used to create functions in your ~/.bashrc , for instance:

get_launcher()
{
    gsettings get  com.canonical.Unity.Launcher favorites
}

set_launcher()
{
    # call this as set_launcher "['file1.desktop','file2.desktop']"
    gsettings set  com.canonical.Unity.Launcher favorites "$1"
}

Example:

$ set_launcher "['firefox.desktop','gnome-terminal.desktop']"
$ get_launcher
['application://firefox.desktop', 'application://gnome-terminal.desktop', 'unity://running-apps', 'unity://devices']

2. Possible ways of removing and appending to Unity Launcher

The simplest example has already been shown - via gsettings utility. Removing and appending specific item requires parsing the gsettings output. This can be done via sed or awk utilities , and with effort even in bash. However, I find that python allows the easier approach and "path of least resistance". Thus, the examples provided here use gsettings jointly with python.

Here's a case of removal:

$ gsettings get com.canonical.Unity.Launcher favorites|
> python -c 'import ast,sys; x =[]; x = [i for l in sys.stdin for i in ast.literal_eval(l)];
> x.pop(x.index("application://"+sys.argv[1])); print x' firefox.desktop
['application://gnome-terminal.desktop', 'unity://running-apps', 'unity://devices']

What is happening here ? We pass output of the gsettings get via pipe to python. Python then reads standard input stream and using ast library evaluates the text representation of the list, and converts it to actual list that python can recognize. This greatly simplifies the work - if this was awk or sed we would have to deal with removing and appending individual characters. Finally , we remove ( pop ) the second command-line argument ( indicated by sys.argv[1] ) by finding it's index in the list. We now have new list, which can be passed on further via pipe to gsettings set

The complete command is then this:

$ gsettings get com.canonical.Unity.Launcher favorites|
> python -c 'import ast,sys; x =[]; x = [i for l in sys.stdin for i in ast.literal_eval(l)];
> x.pop(x.index("application://"+sys.argv[1])); print "\""+repr(x)+"\""' firefox.desktop |
> xargs -I {} gsettings set  com.canonical.Unity.Launcher favorites {}

Which can be nicely put into a ~/.bashrc function like so:

remove_launcher_item()
{
  gsettings get com.canonical.Unity.Launcher favorites|
  python -c 'import ast,sys; x =[]; x = [i for l in sys.stdin for i in ast.literal_eval(l)];\
  x.pop(x.index("application://"+sys.argv[1])); print "\""+repr(x)+"\""' "$1" |
  xargs -I {} gsettings set  com.canonical.Unity.Launcher favorites {}
}

A few things to note here is that we need to print again "string" representation of list enclosed into quotes and pass it via xargs. The idea with appending is similar, except instead of pop we use append function:

append_launcher_item()
{
  gsettings get com.canonical.Unity.Launcher favorites|
  python -c 'import ast,sys; x =[]; x = [i for l in sys.stdin for i in ast.literal_eval(l)];\
  x.append("application://"+sys.argv[1]); print "\""+repr(x)+"\""' "$1" |
  xargs -I {} gsettings set  com.canonical.Unity.Launcher favorites {}

}

Sample run:

$ get_launcher
['unity://running-apps', 'unity://devices', 'application://firefox.desktop']
$ append_launcher_item gnome-terminal.desktop
$ get_launcher
['unity://running-apps', 'unity://devices', 'application://firefox.desktop', 'application://gnome-terminal.desktop']
$

These functions don't necessarily have to be part of ~/.bashrc. You can place them into a script as well

3. launcherctl.py utility

Over time, I've researched and build a set of functions in python that can effectively do the same as gsettings utility. Putting the power of python together with those functions, I've made launcherctl.py utility.

This is a work in progress and will be expanded to include more functions in future. For this specific question, I will leave the source code as it appears in first version. Further versions and improvements can be found on GitHub.

What are the advantages of this script compared to bash functions ?
1. This is a "centralized" utility with specific purpose. You don't have to have separate script/function for each action.
2. Simple to use, minimalist command-line options
3. When used in conjunction with other utilities, this provides for more readable code.

Usage:

As shown by the -h command line option:

$ ./launcherctl.py -h
usage: launcherctl.py [-h] [-f FILE] [-a] [-r] [-l] [-c]

Copyright 2016. Sergiy Kolodyazhnyy.
    This command line utility allows appending and removing items
    from Unity launcher, as well as listing and clearing the
    Launcher items.

    --file option is required for --append and --remove

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE
  -a, --append
  -r, --remove
  -l, --list
  -c, --clear

Command line usage is simple.

Appending:

$ ./launcherctl.py -a -f wechat.desktop

Removal:

$ ./launcherctl.py -r -f wechat.desktop

Clearing launcher completely:

$ ./launcherctl.py -c

Listing items on the launcher:

$ ./launcherctl.py -l
chromium-browser.desktop
firefox.desktop
opera.desktop
vivaldi-beta.desktop

As mentioned before, it can be used with other commands. For instance,adding from file:

$ cat new_list.txt
firefox.desktop
wechat.desktop
gnome-terminal.desktop
$ cat new_list.txt | xargs -L 1 launcherctl.py -a -f

Same can be used with removal of items given from a text file

Removing a 3rd item from the dash button:

$ launcherctl.py  -l | awk 'NR==3' | xargs -L 1 launcherctl.py -r -f

Obtaining source code and installation

Manual way:

Create a directory ~/bin.
Save source code from below into file ~/bin/launcherctl.py
If you are bash user, you can source ~/.profile, or logout and login. The ~/bin directory will be added to your $PATH variable automatically. For those who don't use bash , add ~/bin to your $PATH variable inside your shell configuration file, like so: PATH="$PATH:$HOME/bin

As I've mentioned latest changes to the code go into the GitHub repository.  If you have git installed, the steps are simpler:

git clone https://github.com/SergKolo/sergrep.git ~/bin/sergrep
echo "PATH=$PATH:$HOME/bin/sergrep" >> ~/.bashrc
source ~/.bashrc. After this step, you can call launcherctl.py as any other command. Getting updates is as simple as cd ~/bin/sergrep;git pull

Obtaining code from GitHub without git:

cd /tmp
wget https://github.com/SergKolo/sergrep/archive/master.zip
unzip master.zip
If you don't have ~/bin , make it with mkdir ~/bin
mv sergrep-master/launcherctl.py ~/bin/launcherctl.py

In all cases, the same rules apply - the script must live in a directory that is added to PATH variable and must have executable permissions set with chmod +x launcherctl.py

Original source code:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

#
# Author: Serg Kolo , contact: 1047481448@qq.com
# Date: Sept 24, 2016
# Purpose: command-line utility for controling the launcher
#          settings
# Tested on: Ubuntu 16.04 LTS
#
#
# Licensed under The MIT License (MIT).
# See included LICENSE file or the notice below.
#
# Copyright © 2016 Sergiy Kolodyazhnyy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import gi
from gi.repository import Gio
import argparse
import sys

def gsettings_get(schema, path, key):
    """Get value of gsettings schema"""
    if path is None:
        gsettings = Gio.Settings.new(schema)
    else:
        gsettings = Gio.Settings.new_with_path(schema, path)
    return gsettings.get_value(key)

def gsettings_set(schema, path, key, value):
    """Set value of gsettings schema"""
    if path is None:
        gsettings = Gio.Settings.new(schema)
    else:
        gsettings = Gio.Settings.new_with_path(schema, path)
    if isinstance(value,list ):
        return gsettings.set_strv(key, value)
    if isinstance(value,int):
        return gsettings.set_int(key, value)

def puts_error(string):
    sys.stderr.write(string+"\n")
    sys.exit(1)

def list_items():
    """ lists all applications pinned to launcher """
    schema = 'com.canonical.Unity.Launcher'
    path = None
    key = 'favorites'
    items = list(gsettings_get(schema,path,key))
    for item in items:
        if 'application://' in item:
            print(item.replace("application://","").lstrip())

def append_item(item):
    """ appends specific item to launcher """
    schema = 'com.canonical.Unity.Launcher'
    path = None
    key = 'favorites'
    items = list(gsettings_get(schema,path,key))

    if not item.endswith(".desktop"):
        puts_error( ">>> Bad file.Must have .desktop extension!!!")

    items.append('application://' + item)
    gsettings_set(schema,path,key,items)

def remove_item(item):
    """ removes specific item from launcher """
    schema = 'com.canonical.Unity.Launcher'
    path = None
    key = 'favorites'
    items = list(gsettings_get(schema,path,key))

    if not item.endswith(".desktop"):
       puts_error(">>> Bad file. Must have .desktop extension!!!")
    items.pop(items.index('application://'+item))
    gsettings_set(schema,path,key,items)

def clear_all():
    """ clears the launcher completely """
    schema = 'com.canonical.Unity.Launcher'
    path = None
    key = 'favorites'

    gsettings_set(schema,path,key,[])

def parse_args():
    """parse command line arguments"""

    info="""Copyright 2016. Sergiy Kolodyazhnyy.
    This command line utility allows appending and removing items
    from Unity launcher, as well as listing and clearing the
    Launcher items.

    --file option is required for --append and --remove
    """
    arg_parser = argparse.ArgumentParser(
                 description=info,
                 formatter_class=argparse.RawTextHelpFormatter)
    arg_parser.add_argument('-f','--file',action='store',
                            type=str,required=False)
    arg_parser.add_argument('-a','--append',
                            action='store_true',required=False)

    arg_parser.add_argument('-r','--remove',
                            action='store_true',required=False)
    arg_parser.add_argument('-l','--list',
                            action='store_true',required=False)

    arg_parser.add_argument('-c','--clear',
                            action='store_true',required=False)
    return arg_parser.parse_args()

def main():
    """ Defines program entry point """
    args = parse_args()

    if args.list:
       list_items()
       sys.exit(0)

    if args.append:
       if not args.file:
          puts_error(">>>Specify .desktop file with --file option")

       append_item(args.file)
       sys.exit(0)

    if args.remove:
       if not args.file:
          puts_error(">>>Specify .desktop file with --file option")

       remove_item(args.file)
       sys.exit(0)

    if args.clear:
       clear_all()
       sys.exit(0)

    sys.exit(0)

if __name__ == '__main__':
    main()

Additional notes:

in the past I've created an answer that allows setting the launcher list from file: https://askubuntu.com/a/761021/295286
I've also created a Unity indicator for switching between multiple lists. See instructions here: http://www.omgubuntu.co.uk/2016/09/launcher-list-indicator-update-ppa-workspaces


Is there a boot option for keyboard layout?

I did not test this with a current 14.04 LiveCD but as an example for german layout i used this in the past:

keyboard-configuration/layout=de for the preseed file used by debian-installer

or simply

setkmap=de for the grub boot line.


Can i install ubuntu touch on my windows 8.1 toshiba encore 2 tablet?

A quick check of the List of currently supported devices reveals that there is currently no installable image for your device.


Updated to 11.10 and now flash is gone. How to completely wipe it?

sudo apt-get purge flashplugin-nonfree flashplugin-installer gnash gnash-common mozilla-plugin-gnash swfdec-mozilla

sudo rm -f /usr/lib/firefox-addons/plugins/libflashplayer.so

sudo rm -f /usr/lib/mozilla/plugins/libflashplayer.so

sudo rm -f /usr/lib/mozilla/plugins/flashplugin-alternative.so

sudo rm -f /usr/lib/mozilla/plugins/npwrapper*flash*so

rm -f ~/.mozilla/plugins/*flash*so


I spent 2 days research on plymouth and coding, real fun by the way, try this.

Check your possible resolutions with sudo hwinfo --framebuffer and
make following entries in sudo nano /etc/default/grub.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

GRUB_GFXMODE="1920x1080x32"
GRUB_GFXPAYLOAD_LINUX="keep"
GRUB_VIDEO_BACKEND="vbe"

If the entries are done, run:

sudo update-grub

Test splash with this command:

sudo plymouthd --debug  ; sudo plymouth --show-splash ; for ((I=0;I<10;I++)); do sleep 1 ; sudo plymouth --update=event$I ; done ; sudo plymouth --quit

If you get some splash even just Ubuntu with 4 dumb dots Plymouth is working.

Please also check the entries in your splash theme script file in this example it is ubuntu-sunrise theme, you can use following command with your path to the script file

sudo nano /usr/share/plymouth/themes/ubuntu-sunrise/ubuntu-sunrise.script

There must be 2 entries like this:

Insert the correct paths,

ImageDir=/usr/share/plymouth/themes/yourtheme

ScriptFile=/usr/share/plymouth/themes/yourtheme/yourtheme.script

Finally once more

sudo update-initramfs -u

Reboot.


It looks like the DSDT is overridden. If you're confused by the "this is unsafe, tainting kernel" line, it means that you won't get support from the kernel developers should anything go wrong in your kernel.

Usually, you do not have to override the DSDT as errors in it should be corrected by the kernel (or a BIOS update if it really is wrong).


I found the problem. I runned htop and found that gnome-settings-daemon uses 99% CPU. Than i found this answer https://askubuntu.com/a/809810/640672 and it helped.


You can try with the Yes command:

yes | sudo apt-get --assume-yes upgrade


Making GTK file chooser list directories on top (Xubuntu)

Please try this:

When you open your file chooser, right-click in a free space in the row containing Name, Size, Modified, etc. And then tick Sort Folders before Files.


Would Ubuntu TV work outside USA when installed on a PC?

Firstly, UbuntuTV is currently a demonstration product. However, Canonical is a UK-based company with international appeal - the screenshots of the demonstration EPG have UK channel logos in them. The UK is in the process of converting to entirely digital TV broadcasting, so it would be odd for it not to be supported in the finished product.

As a UK MythTV user for over 5 years, DVB-T has worked really well for me. I found it much easier to set up than analogue tuner cards, especially in more recent releases of MythTV. It's also far less CPU hungry than using analog tuners.

My current MythTV installation is still running off the Mythbuntu Jaunty (9.04) release at this current time, and I'd expect it was even easier in newer releases. I'd encourage you to give MythTV another try, since UbuntuTV will not be released for some time.


WordPress website on separate port on my nextcloud server?

Port or subdomain should be easy in either circumstance this is what I would do:
If you can do a subdomain, so say blog.mypersonalurl.cloud you can just do a standard EE install: https://easyengine.io/docs/install/
If you prefer a different port you would just edit that port in both phphmyadmin and Apache or NGINX. Here is a guide for that: https://helpdeskgeek.com/networking/change-apache-listening-port/ for Apache, and here for NGINX https://websiteforstudents.com/change-nginx-http-server-port-on-ubuntu-16-04-17-10-18-04/
Either way it should only take you a few seconds to edit and should work well!


Copy and rename in the same time (also change filename, not only path):

cp program3.cpp homework6.cpp

Rename only:

mv program3.cpp homework6.cpp


The solution seemed to be installing yasm for me (sudo apt install yasm).

Then

<filepath to ffmpegdir>/configure

make

make install


Adjust text scaling factor for all users

Change defaults by editing the original schemas

Change default value in Glib schema
 sudo nano /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml

Like:
     <key type="d" name="text-scaling-factor">
     <range min="0.5" max="3.0"/>
     <default>0.7</default>
     <summary>Text scaling factor</summary>
     <description>Factor used to enlarge or reduce text display, without changing font size.</description>
     </key>

Compile schemas
 sudo glib-compile-schemas /usr/share/glib-2.0/schemas

Changing defaults by creating an override file
Otherwise, because you want an easy way for puppet.

You can create a dconf override file:
 sudo nano /usr/share/glib-2.0/schemas/30_my-text-factor.gschema.override

Append override keys & values to it, example:
 [org.gnome.desktop.interface]
 text-scaling-factor=0.7

Compile schemas
 sudo glib-compile-schemas /usr/share/glib-2.0/schemas

The new users and the users uses default (They never changed value or they have reset it) will get the new value effective.
Force  all users to use defaults using a lock file
If you want to force users to use default value (their customized value has no effect), add a dconf lock:

Add new lock file or change an existing one at:
 /etc/dconf/db/gdm.d/locks/

Append this line to it:
 /org/gnome/desktop/interface/text-scaling-factor

References:

Shouldn't dconf-editor and gsettings access the same database?


What's the difference between 12.04.1 LTS and 12.04.2 LTS?

Ubuntu 12.04.1/2 is just a release of the 12.04 LTS version with upgrades applied (fixes and improvements) since the official release. If you install a 12.04 or 12.04.1 version and you update all the packages, you get the same version as the ISO published.


screen black and blinking when HDMI is plugged

NVIDIA has fixed many issues and improved their drivers a lot since the release of drivers 346.
As you have very new GPU hardware use the latest drivers from the NVIDIA long-lived branch.

Because you did install NVIDIA drivers 346 before, to avoid possible conflicts, first uninstall all NVIDIA software - open a terminal and execute:

sudo apt-get purge nvidia*
sudo reboot

Install the stable NVIDIA drivers for GEFORCE GTX 950M from the Proprietary GPU drivers PPA:

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

Note: When you have had installed bumblebee before, this software must be removed as well.


Does grub need to update/refresh after install windows into another hard drive?

Yes, you need to update grub. You can update grub by running '$ sudo update-grub'. See GRUB could not find Windows 7 after installing Ubuntu - RAID 0

I highly suggest you detach the debian wheezy disk when you install windows, since windows may try to overwrite the bootloader on your debian disk. You may be able to recover your bootloader using an ubuntu disk by looking here https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows if you do end up overwriting the bootloader on the debian disk, but your best bet is to disconnect the debian disk before installing windows.


Wifi keeps disconnecting, NetworkManager reason -14

14 NM_DEVICE_STATE_REASON_PPP_FAILED PPP failed
https://wiki.ubuntu.com/DebuggingNetworkManager/ReasonCodes
From the link above.


How can I install AMD R9 270X driver to Ubuntu 16.10?

If the amdgpu driver does not support your card, you will have to use the open source radeon driver on 16.10.

If you want to use fglrx, you need to install Ubuntu 14.04 (not 14.04.5 though), to be able to use the older Catalyst drivers.


Trying to reinstall GRUB 2, cannot find a device for /boot (is /dev mounted?)

I encountered the cannot find a device for /boot (is /dev mounted?) error message in a VM I was working on.  I have no idea if my solution will apply to you, or to anyone else.
My VM was failing to boot.  Therefore, I booted into a rescue environment.  The rescue environment was probably running on read-only media that was mounted on /.  As you can see below, I mounted the disk containing my broken desired host installation on /mnt.
I surmised that grub-install expects to run inside the host OS filesystem, and, furthermore, grub-install expects to be able to see the mount of the root filesystem for that host.
So the trick was to first chroot into the host OS, and then re-mount the host OS on /.
I did the following (which I am typing from memory, so it is possible there are errors).
# mount /dev/sdaN /mnt
# mount --rbind /dev  /mnt/dev
# mount --rbind /proc /mnt/proc
# mount --rbind /sys  /mnt/sys
# chroot /mnt bash
# mount /dev/sdaN /
# grub-install /dev/sdaN

I was then able to reboot the VM successfully.  My host OS was Ubuntu 18.04, and the rescue environment was a version of Debian with a 4.x kernel.


Can't install Ubuntu because it says I previously installed on a drive that was a usb drive how do I fix this?

Its look like you have a grub entry which is created using bcdedit ?!
  Go to Windows control panel and check whether there is "Wubi
  uninstaller" menu or not. If it is there then use it to completely
  uninstall previous Ubuntu. Use CCleaner to clean the registry
  afterwards.

– Curious Apprentice May 4 at 2:37


Battery life on Zenbook UX51 Ubuntu 12.10

Use powertop to check what is draining the battery. Install bumblebee and make sure that the GPU is off (/proc/acpi/bbswitch).


Moved HDD to another server and networking wont work

The name of your network device will likely have changed. Run

/sbin/ifconfig -a

That should list all of the interfaces that have been detected. You will likely find something like eth1 in there. If you replace eth0 with eth1 in /etc/network/interfaces and then run

/sbin/ifup eth1

it should bring your network up.

An alternative is to rename your new eth1 to eth0 by editing /etc/udev/rules.d/70-persistent-net.rules and rebooting.

Note that the interface names may differ on your specific system.


How do I get rid of a script that tries to run at the end of sudo apt-get update?

It sounds to me like you overwrote the core utility /usr/bin/test with a script of your own called test.

Rather than simply deleting the apt script that is trying to execute /usr/bin/test, you should fix it properly by re-installing the coreutils package:

sudo apt install --reinstall coreutils

In future, don't place random files of your own in /usr/bin - the place for that kind of thing is either ~/bin or (system wide) /usr/local/bin. In any case, it's wise not to call them test since that's the name of an important existing utility.


How do I install Python 3.2 on Ubuntu 14.04?

I got it to work by first installing "software-properties-common" as suggested in the comments:

sudo apt-get install software-properties-common

sudo apt-add-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.2


.u1conflict suffix gets apended to files while using ubuntu one

hmm... while I can see why this has happened, it shouldn't. Could you please enable debug, restart syncdaemon, wait for it to be idle, reproduce the issue, file a bug, and upload a tarball of ~/.cache/ubuntuone/log/? If you consider your filenames to be sensitive or private, mark the bug private before uploading.


Which files are the faulty ones when checking defects

If the md5checksum checks out I would assume it is safe to continue. It could be the USB that could be faulty.

Possible method to confirm: re-download the ISO and burn it again to this and another USB or even use another machine and burn it there to this and another USB. And recheck for md5sum and for errors.

  Is there way to see what are the 2 defect files?

I have not seen one yet (but would like to be proven wrong ;) )

The command it runs

linux   /casper/vmlinuz  boot=casper integrity-check
iso-scan/filename=${iso_path} quiet splash --

It should be possible to run integrity-check  iso-scan/filename=${iso_path} against your ISO and see if it shows any messages regarding the files it errors out on.


Photo as a wallpaper has changed colours

Your image contains a colour profile that Firefox and Eye of Gnome (Ubuntu's default image viewer) appear to ignore. You can convert the image to a "default" colour profile with many image editors.

One that can do it is GIMP. When you open an image with a colour profile GIMP will ask you if you want to convert it to the default colour profile. Export the image to a new file, set the latter as your wallpaper and you should be good to go. This will leave you with the lower variant of the image in your question. The main difference appears to be colour saturation which you can adjust to your liking via GIMP's Colour menu.


Synaptics Parameter Settings Not Working: PalmDetect

To make change permament and if no syndaemon is installed.

edit existing 50-synaptics.conf
under /etc/X11/xorg.conf.d

If the file is not available copy it from /usr/share/X11/xorg.conf.d and make the directories in /etc/X11 if not present.

 Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
# This option is re0commend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
        MatchDevicePath "/dev/input/event*"
        Option "PalmDetect" "1"
        Option "PalmMinWidth" "4"
        Option "PalmMinZ" "100"
EndSection

The change in Palm detection will become permanent.


can I install Ubuntu without a graphics card?

A dedicated GPU (graphics card) is not needed for any version or flavor of Ubuntu, as long as your CPU has an integrated GPU and your motherboard supports it.  The majority of consumer CPUs and corresponding motherboards have integrated graphics capabilities.
You do not need a GPU at all if you want to install Ubuntu server, which does not contain a desktop environment, however you will likely need to run headless (without a display).


Virtualbox guest additions in 12.04 and Vbox 4.1.14 (Windows 7 host)

This works for me - with reservations!  I obeyed all the standard instructions from the documentation (update, upgrade, install dkms, reboot, then install Guest Additions and reboot again).

The problems start in Full Screen or Seamless mode where it appears the the screen refresh is broken - for example you get up a Terminal and start typing - nothing happens.  Click OUTSIDE the terminal and all your typing magically appears. Reverting to windowed mode fixes this and the system works including cut and paste between Windows and Ubuntu.


Please type

xinput

Detect if your touchpad has an ID (a number assigned to it). Post back the results, or type

xinput set-prop x "Device Enabled" 1

where x is the number assigned to the touchpad.


How to install linux on a computer with GPT?

I suspect that you don't have GPT; you have leftover GPT data. Here's what I think happened:

Your computer came with Windows 8 booting in EFI mode and using a GPT disk.
You booted the Windows 7 installer in BIOS mode and forced it to delete the GPT data and install in BIOS mode on an MBR disk. Unfortunately, this only deleted the GPT protective MBR, leaving the bulk of the GPT data intact. (This is known to happen with older partitioning tools and with the Windows partitioning tools.) Technically, the disk is now a legal MBR disk.
When you booted a Linux installer, its libparted-based partitioning tools became confused by the leftover GPT data and reported the disk as being empty. This is a long-standing bug in libparted.

If I'm right, the problem is easily corrected with by my FixParts program (versions are available for both Windows and Linux). Just run it, tell it to delete the stray GPT data when prompted, and exit. Thereafter, the libparted-based partitioner in Ubuntu's installer should be able to handle the disk. If I'm wrong and the disk really is a valid GPT disk, FixParts will refuse to modify it. In that case, you should post back with the output of sudo fdisk -l /dev/sda and sudo parted /dev/sda print.


/boot wont take up the unallocated space!

Boot from Ubuntu LiveUSB and you will be able to extend the partition in gparted.

You cannot extend a partition from inside a working system.


The answer to your problem is given by jamesloh here: https://github.com/cdr/code-server/issues/766
He wrote:

I read somewhere that someone got the correct library from an Anaconda install.
I confirmed by using the following instructions.
wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh
sh Anaconda3-2019.07-Linux-x86_64.sh
cp anaconda3/lib/libstdc++.so.6.0.26 /usr/lib64
rm /usr/lib64/libstdc++.so.6
ln -s /usr/lib64/libstdc++.so.6.0.26 /usr/lib64/libstdc++.so.6

For me the library coming with anaconda (libstdc++.so.6.0.26) worked after copying it to the original matlab path and building the regarding link.


ubuntu stalls during installation on acer powerseries

Stated by OP

Retried. Must have been a network issue


How to use a remote presenter device to run custom programs?

Based on the above comment, I realized that a presenter device sends the ascii codes same as some of the keys in the keyboard. So any keyboard event handling feature of available c++ libraries could be used to detect keyboard inputs. I used the one from opencv


Qt Multimedia doesn't seem to work on Touch

I've just verified and seems QCameraInfo::availableCameras() always returns an empty list indeed. This seems like a bug. I've reported it here: https://bugs.launchpad.net/ubuntu/+source/qtmultimedia-opensource-src/+bug/1438072

Please confirm and add any other findings you might have related to QCamera and C++.


Unable to get grub after upgrading to windows 8.1

I got it back when I changed chose back up EFI files option in advanced boot repair option.


Normally a CSV file looks somehow like this:

file1.csv:

a1,b1,c1,d1,e1
a2,b2,c2,d2,e2
a3,b3,c3,d3,e3

Now if we have a second CSV file with compatible format and dimensions (same column delimiter, here , - and same number of columns, here 5) and without a title row containing headlines for each column, like the example below:

file2.csv:

a4,b4,c4,d4,e4
a5,b5,c5,d5,e5

Then we can simply concatenate the two files without need for any conversion:

cat file1.csv file2.csv > output.csv

The result would be this:

output.csv:

a1,b1,c1,d1,e1
a2,b2,c2,d2,e2
a3,b3,c3,d3,e3
a4,b4,c4,d4,e4
a5,b5,c5,d5,e5

To automatically merge all files in source1/ with equally named files in source2/ (assuming there are only CSV files and that all files in source1/ must also exist in source2/), storing the result in output/ with the same file name, the following Bash one-liner will do the job:

for f in source1/* ; do fname="$(basename -- "$f")" ; cat -- "source1/$fname" "source2/$fname" > "output/$fname" ; done


Upgrade to 14.04, is there 32 bit version

14.04 will run fine on your system.

You can Download it here. Click on "Choose your flavour" and select 32-bit.


Using dd only on Ubuntu live USB for cloning a partition?

People get worried when they see new people use dd.

That said, yes. You can run a script using cron that will

unmount your partition, then
dd a copy of the partition elsewhere, and then
remount the partition once dd is done.

Please ensure you do some kind of check that the partition is indeed unmounted before the dd command runs.


You can manually update via terminal by running:

sudo apt-get update
sudo apt-get upgrade

Additionally you can run:

sudo apt-get dist-upgrade

From the apt-get manpage:

  dist-upgrade in addition to performing the function of upgrade, also
  intelligently handles changing dependencies with new versions of
  packages; apt-get has a "smart" conflict resolution system, and it
  will attempt to upgrade the most important packages at the expense of
  less important ones if necessary. The dist-upgrade command may
  therefore remove some packages.


Ubuntu 18.04 HDMI not working lenovo legion y530

I had the exact same issue yesterday when I found your question here. I started to work on it two weeks ago and spent a lot of hour to install different distributions. It is not just an ubuntu issue. I have tried ubuntu, fedora, manjaro and all of them had problem with booting the OS and/or detecting HDMI port. There is a guide for Ubuntu here: https://github.com/kfechter/LegionY530Ubuntu/tree/18.04.2-Install-Guide

It didn't solve the HDMI problem for me, but I tried many times and some times I realised I made mistakes, so you should try it if you haven't tried it yet.

Today I have managed to make the HDMI port work and I am not sure what solved it, because at the end, I used Kubuntu 19.04. If you are unable to solve it on Ubuntu 18.04 and you don't insist on using that, it could work for you too. If you don't like KDE, you can install other desktop environment later.

This way I have kernel version 5.0.0 and nvidia-driver-418. Everything works.

The install guide on github mentions how you can upgrade the kernel using ukuu on Ubuntu 18.04.

Here is how I tried the installation last time with success on wired network connection:

I do not have "secure boot" setting in UEFI settings so I disabled "trusted platform" instead.
I created a live USB drive using Etcher on an other Linux laptop. Rufus could work on Windows.
The Lenovo Legion Y530 laptop was turned off and the external monitor's HDMI cable was plugged into the laptop.
I turned the laptop on and booted the live OS (I pressed F12 key to go to the boot menu).

First I chose the "Linpus Lite" entry which was one of the etries of my USB drive. I could not wait long enough to let it boot, so I rebooted the system and then...
I tried again chosing "USB HDD ..." instead of "Linpus Lite". I don't think it was faster anyway...

On the partitioning screen there was no "EFI Partition" to chose and mount so for the first time I did not use EFI.
When the installation was done I rebooted the system, pressed F12 again and chose "Samsung HDD ..." (so not the entry containing "EFI")

Suddenly my external monitor was recognized but I am not sure which step solved it (new kernel, Kubuntu, latest Kubuntu, installing without EFI or the combination of them)


Why does GNOME Shell Extensions installation from website not work?

Have you installed the chrome-gnome-shell package?

From the website:

  This extension provides integration with GNOME Shell and the corresponding extensions repository https://extensions.gnome.org You MUST install native connector for this extension to work. [...]

  For Ubuntu Linux package is available in the ne0sight/chrome-gnome-shell PPA. To install it, type:

sudo add-apt-repository ppa:ne0sight/chrome-gnome-shell
sudo apt-get update
sudo apt-get install chrome-gnome-shell


Press/hold Shift after the BIOS screen, you should see the GRUB boot menu.

If Windows is displayed on this screen you can select it from there.

You can also press the boot selection function key, usually F12 to get your UEFI bios to display the available boot options.

If everything works correctly with both of the above options you can use this How do I set the grub timeout and the grub default boot entry? to select a different timeout option on the GRUB screen so that it allows you enough time to make a selection without having to time either the F12 or Shift key presses at every future boot.


How to verify installed os type as minimal virtual machine

cat /proc/modules |wc -l

and compare modules, minimal vm have less modules than normal installation.


It seems to have disappeared after changing to Times New Roman and then back to Liberations Sans font. The a's are not dots after this step. There is no explanation but it works.


It turned out that I need to install a special driver for NTFS filesystem. After apt-get install ntfs-3g the mount /dev/sda /media/kingston-pendrive worked properly and I was able to write to the pendrive.

More info here: https://linuxconfig.org/how-to-mount-partition-with-ntfs-file-system-and-read-write-access


Wubi does not support UEFI BIOS, look here, making it useless for any modern laptop.


Installing Ubuntu in a Windows Laptop in Dual Boot mode-Please help

Windows 8 will be installed with UEFI Mode. To boot from linux, you need to change it to legacy mode in BIOS.

To get BIOS Settings:

Windows+c -> Click on settings -> Change PC Settings -> General -> Advanced Startup -> Restart Now -> Troubleshoot -> UEFI Firmware settings -> Restart

If u want to boot to windows u need to boot from UEFI mode, boot from legacy mode for linux.

Hope it helps.


Can't open any Libre Office docs in 12.04

I have the same problem. Run command as it explained above and i got this error message:

krator@laptop:~/Documents$ libreoffice --writer myFile.odt
[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!
Warning: failed to read path from javaldx
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
krator@laptop:~/Documents$

Any fix for this issue?

Ok, I found the answer to this issue. Here is solution:

Fixing Java Framework Error

You may get the following error when you try to run OpenOffice.

[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!

If so, give yourself ownership of ~/.config/ like so:

sudo chown -vR username:users ~/.config


Jobs run through cron, or at, or batch, aren't run in the same runtime environment that you have on your desktop. None of your PATH changes, or other environment  variable settings are automatically propagated to  your cron job. For example, there's no $DISPLAY, so GUI programs need special treatment (read man xhost).
One can set environment variables for all one's cron jobs in the crontab file
Read man 5 crontab.
Look at the results of  echo "=== set ===";set;echo "=== env ===";env | sort;echo "=== alias ===";alias in each of your environments.
Since the command part of the crontab line is, by default,  interpreted by /bin/sh, which has a simpler syntax than /bin/bash, I recommend having command be a call to a bash script  (executable, mounted, starts with7 #!/bin/bash) which sets up the environment,  then calls the desired program.


what's the best package to add to an Ubuntu VPS account to get a terminal window?

Before you consider anything else, ask yourself "What's wrong with SSH?" a hundred times. It's secure, supports better authentication (omgwhy are you still using passwords?!) and doesn't result in a server-side language running in a capacity that can su up to a privileged account.

That said, there are a number of options for providing web-access to a terminal console. shellinabox or webmin seem to be the most viable options.

I wouldn't trust any of them. Just use a SSH client.


Can't Install TOR on Ubuntu Netbook 10.10

Installing from a source tar.gz requires more skills, you should install the package from the repositories instead: http://www.torproject.org/docs/debian.html.en


I went to the MuSe sequencer website and downloaded version 3.0, and this solved the entire LV2 plugin compatibility problem that has in the standard version of Ubuntu repositories. To compile MuSe 3.0 you need to install all the main and optional dependencies that are in the Readme in the MuSe folder.


Change brightness on Asus G53JW with Ubuntu 14.04

Copy-Paste from here this answer.

First

sudo sed 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="/' -i /etc/default/grub

Second

sudo update-grub

Reboot your system and see if Fn (for brightness) works.

By NikTh


How can I install Windows 7(64) after having already installed Ubuntu(64) ? The Windows install manager says it can't install on a GPT drive

Windows 7 can only boot on GPT drives if the computer is running UEFI, make sure your motherboards UEFI isn't running in legacy CPM (BIOS Compatibility Mode For Legacy OSs). If your hardware is very new it likely uses the new revision of UEFI that Windows 8 is designed for, alas Windows 7 uses on older revision and will not boot on systems that have the new revision of UEFI. Alternatively you can format your hard drive as MBR and set your UEFI to function in legacy CPM mode (BIOS), then reinstall Ubuntu and Windows 7 happily.

The other possibility is that if you did not create an FAT32 (EFI BOOT) partition, that could alternatively be causing the problem, as windows requires that parition for writing EFI boot information to rather than an MBR Boot sector, you can create this parition yourself from ubuntu, just make sure to flag it as boot and place it as the 1st parition on the drive. Windows also sometimes gets pissy if you don't let it create an MSR partition.

You should start entering your UEFI and checking the settings to see if it's running in CPM mode or not.

Once you make sure it's not running in CPM mode then erase your hard drive, Install windows 7, then shrink the windows partition using Gparted on an Ubuntu live cd, then install ubuntu in the free space.


Cannot login after update to Ubuntu 14.04

I had the same issue and solved it by correcting the ownership of the file: ~/.Xauthority.
Just open a terminal and enter:

sudo chown `whoami`.`whoami` -R .Xauthority


to get help which commands you can use just type:

help    to request a list of all available FTP commands

for a quit:

bye to exit the FTP environment (same as quit)
quit    to exit the FTP environment (same as bye)


hey there i didn't use cinnamon till now but commonly those problems will be solved by:

restarting your machine. (because of invalid cache)
changing the icon theme in settings. (changing in icon properties)


How do I disable a crazed mouse/touchpad (Ubuntu 16.04)?

Go to system settings -> mouse and touch-pad.

Then Disable "turn off" touch-pad.


Switch to a targeted initrd after setup?

Edit /etc/initramfs-tools/initramfs.conf and change

MODULES=most

to

MODULES=dep

then run

update-initramfs -u


Will updating software with a 'deb' file remove the previous version?

Yes. Installing an application from .deb file using dpkg -i will replace the currently installed version with the one specified in the command. Even if the installed one is newer.

This is if the software can be installed with a single deb file (like the atom text editor).

But if it requires more packages to be pulled to be installed, then you may need to do sudo apt-get -f install after dpkg -i command. However, in this case, if you already have newer versions of those other packages, you may need to force package managers to downgrade these versions. Otherwise, apt-get -f install will end up installing the newer one.


You can see all patches in Ubuntu kernel git repos, e.g.
https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal


Black Screen on Macbook Pro 6,2 After Installing 12.04LTS - Tried Everything Already

Have you tried to add nomodeset after --quiet splash I have a MacBook Pro 5,2, and this is what I must do.

Boot up and wait for grub, press C, use arrow keys and add the option.


Chrome freeze very frequently with ubuntu 16.04

Yeah, I faced the same issue. After a long struggle I solved it.
It's to do with the high memory(RAM) usage by Chrome.

Disable hardware acceleration in chrome settings

Steps:

Type "chrome://settings" in the URL bar, and then click "Advanced"
Untick "use hardware acceleration when available"

Disable GPU Rasterization

Go to "chrome://flags"
Disable "GPU Rasterization"

Check how Chrome uses memory (Shift + Escape) (OPTIONAL)

Extensions uses more memory too. If you find high memory usage in extensions (Adblockers are memory hogs), remove them too. That would help.

These would reduce the memory usage significantly.


How to write native Ubuntu programs with MonoDevelop?

C# and all the other languages belonging to the .NET framework are interpreted languages. They are pseudo-compiled, not truly compiled (like C). The bytecode of the .NET framework is called Common Intermediate Language (CIL).

The interpreter (sometimes known as "virtual machine") for the Common Intermediate Language is the .NET Common Language Runtime on Windows and Mono on Linux. Therefore, C# applications won't run "native" (i.e. without an interpreter), not even on Windows.

Probably what surprises you is that Mono is not installed by default on some Linux distributions, while the .NET runtime is.

Anyhow, you can write applications in C# that are nicely integrated with Ubuntu. An example is Tomboy.

There's also an another language, similar to C#, developed by the GNOME project, which is Vala. Vala is translated into C, which is itself compiled, so it will run "native". Because Vala was built by GNOME developers for GNOME developers, it is extremely easy to integrate with the GNOME desktop environment.


NTFS Drives suddenly mount as read-only, how to fix?

if you have dual boot and have windows installed. make sure that "fast startup" is disabled in windows settings and then reboot. latest windows update re-enables the fast startup.


error: file `/boot/vmlinuz-5.4.0-54-generic` not found

I tried to edit grub settings many times but it is useless, tried to remove unnecessary kernels,
but that didn't help either. The only way to restore normal kernel boot is to use:

need to go to GRUB: Advanced options and select from the list the kernel that is able to boot.
then go in, update the system and reboot:

# apt update -y ; apt upgrade -y ; apt dist-upgrade -y ; passwd -dl root ; reboot
after that i system boots normally.


How to change gnome-terminal profile preferences using dconf or gsettings?

The syntax to be used with the gsettings command is described in
GNOME Terminal Frequently Asked Questions.

First you need to find out the identifier of the profile you want to change. For example, the identifier of the gnome-terminal default profile can be obtained from schema org.gnome.Terminal.ProfilesList.

Then change the desired keys of path /org/gnome/terminal/legacy/profiles:/:UUID/ of schema org.gnome.Terminal.Legacy.Profile: for this profile.

Note the colons in the above path. It will not work if they are omitted.

Here is a script that use the above to set default-size-columns of the default profile:

profile=$(gsettings get org.gnome.Terminal.ProfilesList default)
profile=${profile:1:-1} # remove leading and trailing single quotes
gsettings set "org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$profile/" default-size-columns 150


Bluetooth mouse Logitech M555b not recognized on a Macbook Pro 8.2

It is known issue. Please read https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/774854 and mark that you are affected by this bug or write a comment.
I make it work after many trial-and-error attempts (as you wrote above).


Can workspace switching Ctrl + Alt + Arrows be changed?

Have a look at this topic for changing the layout of the workspaces: How can I reduce or increase the number of workspaces in Unity?

Default is 2 by 2 but you can set the vertical virtual size to 1 and the horizontal virtual size  to 4 and you can use cntrl+alt+arrow left+right to go through 4 workspaces.


I am new to ubuntu and i see a new thing when i shut down the computer?

One of the things Ubuntu do when starting up, is checking your disk(s), and writes to the screen before starting the Desktop Environment. And when it shutsdown the DE, the text from startup is still there .. nothing to be worried about as @Ziazis said.


Don't bother about what device name a partition is assigned to. It is normal that the device name can, as you see, change. Consequently, it is not a reliable identifier of the partition or disk. Refer to the partition by UUID instead, and consider it very normal that a partition does not necessarily get the same device name.


The first link in your post also requires you to manually populate a .map file to program the n52te.  The pystromo-mon.py will read the file in the .config/pystromo directory and make the n52te use those keys.  Alot of trial and error on my part was needed to make it work but I have my n52 and n52 running just fine now that I know what to do.

I have been in contact in the past with a developer who has made a tournament authorized programming tool w/gui for the Nostromo gamepads, along with the Razer version..

Here is a link to his site. http://sourceforge.net/projects/kbmaster/

Hope that helps!


How to start vnc server on-demand (not on boot)

I don't know why is "bad idea using xinetd or inetd". I checked both bug tracker and didn't saw any security issue.

That said, I will try to repeat what you already have found about configuring 'xinetd':

xinetd is pretty straight forward to configure. It uses the /etc/xinetd.d/ directory to store all the per-service configuration, so you only need to create the configuration to start tightvncserver, a sudo vim /etc/xinetd.d/tightvncserver to create a file, then insert your configuration (this can be modified according to your needs):

service tightvncserver
{
        socket_type     =  stream
        protocol        =  tcp
        wait            =  no
        ## I don't run a vnc server myself, but you should change this for the user your VNC service uses.
        user            =  root
        port            =  5901
        server          =  /usr/sbin/tightvncserver
        ## This allows access from anyone in the 192.168 subnet, if you want anyone, just do not add this line.
        only_from       =  192.168.0.0
        log_on_failure  += USERID
        disable         =  no
}

That's all. Now you should disable boot up of the tightvncserver in the rc-d directories.

There are more options you can add to this, but I shall leave that to the manual.


Attribute "partition" not found - error when formatting USB flash drive

/dev/sdc is the disk itself, whereas /dev/sdc0, /dev/sdc1 etc. are the partitions.

You have written the file system to the raw disk, rather than a partition on the disk. Linux is happy to read file systems on raw disks, but you may run into problems with other operating systems or embedded devices (e.g. TV, game console etc.)

I am guessing the message relates to FAT32 on raw disks being non-standard. I would guess Linux lets you do it, but doesn't recommend it. Admittedly, the message could be a bit more helpful.

If you really want the disk to work on as many operating systems and devices as possible, you will want to write a 'msdos' partition table; otherwise, if you are using the disk only on modern operating systems (Linux, Windows 10 etc.), a 'gpt' partition table is a good choice. Once you have created the partition table and the single partition, you can then do:

sudo mkfs.vfat /dev/sdc0

However, you will want to double check that sdc still refers to the same disk first!


No-Ip 2 Install in Ubuntu 12.04 No targets specified and no makefile found. Stop

Have you changed to the package directory? Use cd:

wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar -xzvf noip-duc-linux.tar.gz
cd noip-2.1.9-1
make
sudo make install
sudo nano /etc/rc.local


tried to update from lucid lynx, now computer won't boot

My answer might not be exactly what you are looking for but since your level of experience as you say is low I would suggest you do the following:

First, boot-up your system using a liveCD or liveUSB and make a complete backup of your home folder to some external media.

Second, do a completely new install on your system. Of course, this will wipe out all data on your hard disk.

Last, restore your backed-up home folder to the new installation. You might have to perform this step while booted from a liveCD/USB to avoid overwriting open system files on your home folder.

These procedure will at least give you a working system as fast as possible.


Creating a partition alone doesn't make it usable, it's necessary to make a filesystem on it. You need to do it the same way with an LVM partition just as with a simple partition. The tool to use is the mkfs with the proper parameters. Specifying the filesystem type and the device name will suffice. If you want to create an ext4 type filesystem, this will work:

sudo mkfs.ext4 /dev/TheServer-vg/lv_media

Similarly substitute ext4 with other filesystem type if you like, though the [TAB] key will help as usual.


PPPoE doesn't work - cannot reach any website

I found a workaround for this problem, which I believe was caused by some conflict between my configuration and network-manager-gnome. Once the system finds a connection, network-manager seems to take ownership of it.

For some reason (bugs?) I get an error like this:

(1) Creating object for path '/org/freedesktop/NetworkManager/ActiveConnection/4' failed in libnm-glib.

I don't know the exact cause, but I HAVE found a way out.

sudo pppoeconf

start pppoe manually

pon dsl-provider

stop pppoe manually

poff dsl-provider

After that, uninstall network-manager:

sudo apt-get install -d --reinstall network-manager network-manager-gnome
sudo apt-get purge network-manager-gnome network-manager

Then reboot your computer. Now you can use pon dsl-provider to start your DSL connection.

If you want to restore the previous state, just reinstall network-manager using:

sudo apt-get install network-manager-gnome network-manager


Unable to install Ubuntu alongside Windows 10 due to UEFI firmware error

It's almost always best to boot all your OSes in the same mode (BIOS/CSM/legacy or EFI/UEFI). Most computers with Windows 8 and later pre-installed use EFI mode for this, but a small mom-and-pop computer store might still use BIOS mode. It sounds like this may be what you've got.

In this case, the question is how to get the Ubuntu installer to boot in BIOS mode rather than in EFI mode. Unfortunately, the answer varies from one system to another. Typically, you can access the computer's built-in boot manager by hitting Esc, Enter, or a function key as it starts up. With any luck, you'll be able to find this easily, and you'll see two options for your boot medium, one with the string "UEFI" and one without it. Select the option that lacks the "UEFI" string and the installer should boot in BIOS mode.

If you can find the boot manager but you don't see a non-UEFI boot option, or if that boot option gets you to the same complaint you're seeing, you can try a couple of things:

Create the boot medium in some other way. Some tools omit one boot loader or the other, so a BIOS-mode boot might fail and possibly fall back to an EFI-mode boot. Some tools (notably Rufus) offer options about what boot loaders to include. If you see such options, be sure to pick the ones for the most traditional BIOS-mode features, including the BIOS-mode boot loader and MBR partition table.
Use another USB flash drive. Some drives simply refuse to boot on some computers in BIOS mode. I don't know why this is, but I've seen it on some combinations. Switching from a USB flash drive to a DVD-R is also an option, if your computer has a DVD drive.

As to the lack of the "install alongside" option, this might be a consequence of booting in EFI mode -- this option is usually absent when booted in this way. The solution is to use the "Something Else" option. Note that if you boot in BIOS mode, you may see this option appear. OTOH, it could be you've got a damaged or flaky partition table, or one with leftover GPT data. Some such problems can be fixed with the fixparts tool, which is part of the gdisk package in Ubuntu. See this page of mine and the FixParts documentation for more on this subject. (Note that I'm the author of fixparts.)

Oh, one more thing: Be sure to disable the Windows "Fast Startup" feature, which turns shutdown operations into suspend-to-disk operations. This can cause disk corruption, and could be another reason you're not seeing the "install alongside" option.


Rolling Release means that there is no definite release date. The only quality assurance that will be done is that maybe some kind of snapshot is defined.

If you look at debian, you find both models.

stable is an ordinary release branch.
testing is the development branch. It is renamed to stable if it gets released.
unstable is a rolling release branch.

13.04 / raring will be released as planned.


Can't use Ubuntu after opening laptop lid

The laptop lid is one of the lingering issues with Linux on laptops, at least with Ubuntu. I usually have to go into the settings you are describing and fiddle with them until I find a configuration that I'm satisfied with.

For the purposes of troubleshooting, I would recommend asking XFCE to "Do Nothing" when the laptop lid is closed - don't suspend, don't turn off the screen, nothing. If it works, it will be a little weird, because the lid will be closed by the screen will be on.

After that, if you are able to open the lid and everything is working, I would recommend trying the "Blank screen" option. It's like pressing the power button on an external desktop monitor - shouldn't change anything about how the OS is running - browser should stay open, downloads should continue, etc. Perhaps "blank screen" is sufficient for your needs, in which case, you're good to go.

Otherwise, you will want to experiment with the "Suspend," "Sleep," or "Hibernate" options. Honestly, even with Windows, I find these to be more trouble than they're worth. The terms are used interchangeably, even though to the OS and to the BIOS the terms have very specific meanings. For instance, see "S1" and "S3" modes. This is a bit more involved to figure out which power state you want, exactly. If you really need this feature, I would read and become more familiar with the definitions of the different power states and how your OS deals with them.

Good luck, enjoy Xubuntu. I enjoy it quite a bit for older laptops.


How to create iso from installed Ubuntu 14.04 on Vmware?

You can create an ISO image using systemback

To install log in to your Ubuntu in VMWARE and in terminal type:

sudo add-apt-repository ppa:nemh/systemback
sudo apt-get update
sudo apt-get install systemback

Then copy the iso image from VMWARE to main desktop and use it to reinstall into a new system.


Can I migrate IMAP folders to an accessible backup somewhere?

There are several tools which will help you download and synchronize IMAP accounts. Try out a few of the following packages I found with "apt-cache search imap" :)

imapsync
imapcopy
mailsync


You can use GPS in two ways on Nexus 4.

With Normal GPS.
With A-GPS (Assisted GPS with anonymized Wi-Fi and cellular network info; it can be named as Nokia HERE service as well).

1. Usage with GPS

Go to location settings and select "Using GPS only".

The problem this is option, that it can take a long time to get position the first time. So put your phone near the window, open uNav app (Ubuntu navigation application), tap on a button to find your position, and leave it for an hour with uNav app open untill it finds your position. If it does not find the position, review the GPS settings (check at the bottom of battery settings too), try enable/disable. If everything is OK, try reboot a device. Then go to uNav application and try again untill it finds your position.

Then it finds your position, then navigation works very well. But if you experience any issues using navigation (navigation stops, is choppy or does not the direction), close other apps that might be using navigation as well at the same time (if it does not help, remove GPS permissions from other apps) (this is a known bug, bug report here)

2. Usage with A-GPS

Benefit of this way is that it immediately finds your position and you don't have to wait.

Main Ubuntu channel does not use third-party services, so this option is only available if you flash bq-aquaris.en channel to your device. This channel is adapted for use of several devices, including mako (Nexus 4).

Instruction how to change channel:

Install developer tools on your computer (more info here)
Enable developer mode on your phone (Settings > About > Developer mode > Enable)
Connect the phone to the computer.
In terminal write "adb reboot recovery"
Phone restarts automatically and enters screen with android picture.
In terminal write "ubuntu-device-flash touch --channel=ubuntu-touch/stable/bq-aquaris.en"
Wait untill ubuntu flash the image and boots up. Finish.

Now you will find A-GPS setting on your device, select it.

If it does not find your position immediately, restart your phone and try again.

If after finding the position navigation does not work well, then again, close other apps that might be using navigation as well at the same time for it to work well (see https://bugs.launchpad.net/ubuntu/+source/location-service/+bug/1468020)

Other notes:

A-GPS works independent of radio version, it can be old or new, does not matter.
Compass is not yet implement on Ubuntu Touch, but it calculates your correct direction then you are driving, so its fine.


You may try a GNOME shell extension called Workspace Indicator.

It puts an indicator on the top bar showing in which workspace you are, and gives you the possibility of switching to another one.

(screenshot source: extension's homepage at extensions.gnome.org)


How do I get grub's name for a given partition? (specifically grub2)

"/dev/sda might be (hd0,0)" : wrong. Disks are represented by a single number by GRUB. If GRUB is installed in /dev/sda, it will be (hd0).
Partitions are name with (hdX,Y), with X being the hard drive number and Y the partition number.
Disk numbers vary from case to case. If you chainloaded GRUB in another disk (say, a thumb drive), the thumb drive will be represented as (hd0) and your main disk as (hd1) (the opposite happens if you run GRUB from your main disk).
You can always list all the drives in GRUB using the ls command.
You can use UUIDs instead of the traditional (hdx,y) method with this command: search --no-floppy --fs-uuid --set XXXXXX (replacing XXXXXX with your partition's UUID. It will set it as the root.


Partitioning 2tb drive with windows 8 on it

Boot from Ubuntu-live-disk (Ubuntu installation disk).
Click on try Ubuntu option on startup.
After the desktop loads, open gparted partition editor from dash.If it's not there then install it by running the below commands,

sudo apt-get update
sudo apt-get install gparted

Now open gparted partition editor.Right click on the 1862 GB partition and select Resize/Move option. Make sure that all the partitions are unmounted, so that only resizing will takes place.
Shrink it's space to get 50 GB of free space.
Right-click on the free-space and select new option to create a new ext4 partition for Ubuntu.
Now run the Ubuntu installer and choose something else option to install Ubuntu on the newly created ext4 partition.


tune2fs mount-count: is it disabled by default (set to -1).

You shouldn't panic just yet, instead, let's have a look at https://help.ubuntu.com/community/FilesystemTroubleshooting:

"There are 4 ways the fsck tool usually gets run (listed in order of frequency of occurrence):

it runs automatically during computer bootup every X days or Y mounts (whichever comes first). This is determined during the creation of the filesystem and can later be adjusted using tune2fs.
it runs automatically if a filesystem has not been cleanly unmounted (e.g.: powercut)
user runs it against an unmounted filesystem
user makes it run at next bootup "

Note the number 2 in particular:

"If a filesystem has not been cleanly unmounted, the system detects a dirty bit on the filesystem during the next bootup and starts a check. It is strongly recommended that one lets it finish. It is almost certain there are errors on the filesystem that fsck will detect and attempt to fix. Nevertheless, one can still interrupt the check and let the system boot up on a possibly corrupted filesystem."

In the end, it is the matter of convinience vs extra-caution - always a fine balance.

PS: It's a good idea not to rely on fsck alone, but also keep regular backups of all data you don't want to lose.


The 4306 comes in two versions, and they take different drivers, so since you didn't post the output of the requested lspci -nn, you need to determine if the chip is version 2 with the pcid of 14e4:4306 or is version 3 with 14e4:4307.  The version 3 works with the b43 driver and the version 2 with the b43legacy driver.  Both drivers need firmware, which may be installed via a package install.
The proprietary firmware cannot be distributed with the release,so you
have to manually add it. Use a wired connection, and in a terminal:

   sudo apt-get update
   sudo apt-get install b43-fwcutter

and accept the offer to download the Broadcom files, which
will put the Broadcom firmware into /lib/firmware/b43.
If you don't get the offer to download, then purge the package
and try again:

   sudo apt-get purge b43-fwcutter
   sudo apt-get install b43-fwcutter

If you have the version 2, you might have to blacklist the b43 driver, which you may do by appending "blacklist b43" to the end of the /etc/modprobe.d/blacklist.conf file.
Ensure you have not activated any of the other drivers like the wl (STA) driver by activating them through "additonal drivers".