Is there a simple, safe way to trigger a GPU lockup on a susceptible computer?

Excellent question.

Workloads

The /usr/share/xdiagnose/workloads directory has a set of workloads designed to exercise your graphics system to trigger lockups.

$ ls /usr/share/xdiagnose/workloads/
README                       do_monitor_rotation_loop
do_chws_loop*                do_screensaver_loop*
do_cpu_spin_loop             do_video_loop*
do_disk_write_loop           do_vtswitch_loop*
do_glx_loop*                 repro.sh
do_kernel_compile_loop       run_workloads
do_monitor_disable_loop*     youtube-loop.html
do_monitor_resolution_loop*  youtube-reload.html

Note that to run them you need to pass 'run'.  E.g.:

$ do_glx_loop run

With no args the scripts will display usage.  Partly that's for safety (in case people just blindly run the scripts), but mostly it's to keep the scripts' API tidy.

The ones I've starred are probably the best ones to start with.  I would start by running just one script at a time and let it go a few hours.  If your system survives that well enough, then try running two or more simultaneously.

Note I haven't tested these super heavily myself, so can't promise they're bug free.  But they're quite short and simple scripts so hopefully easy to fix up, and well patches are very much welcomed.

Also note that they quite likely may trigger lockups unrelated to the one you're trying to solve.  GPU lockups all generally look identical to the untrained eye since they have the exact same symptoms, more or less.

Logs

If you're on Intel Graphics, there is a /sys/kernel/debug/dri/0/i915_error_state that you want.  This is a snapshot of the register state at time of hang, and the top of it contains some error codes.  IPEHR, PGTBL_ER, ESR, EIR.  Match those codes up to see if you have the same or similar error.

If you're not on Intel Graphics (as in this case you're not), or if you're not seeing i915_error_state files generated, then dmesg and /var/log/kern.log are what to look at.  Sometimes with gpu lockups they will indicate what the GPU lockup was caused by or in.

The open source -ati driver has radeontool and avivotool, which capture register states.  These are primarily for the opensource -ati, but the tools should also work with -fglrx.  I've never seen it requested for an -fglrx bug, but it certainly can't hurt.

Testing

For all drivers, the next step is usually to start testing either newer or older versions of the driver.  For proprietary drivers, you can check the x-updates ppa but probably you'll have to download and manually install the driver from the vendor website (and mess up your system's packaging in so doing).  For FOSS drivers like -intel, -nouveau, -ati that means testing either newer kernels or newer mesa.  We provide packaged builds of newer kernels at http://kernel.ubuntu.com/~kernel-ppa/mainline/.  For mesa, there are various PPAs such as xorg-edgers.  I'm also in process of preparing an 8.0.3 update for precise, which we believe fixes a number of lockups for Intel Graphics.

In any case, don't just stop when you find a version that works.  Try other versions in between your working version and the broken one.  If you can narrow the bracket down to two adjacent versions, that can be hugely helpful to the developers in isolating what patch caused the regression.

Contributing

As you go through the troubleshooting you might spot errors, or might come up with improvements for the scripts or docs.  Contributions to any of these are warmly welcomed.  With the wiki docs, please do just go ahead and edit!  I try to update them at least once a year, but I don't always get around to it, and the next guy to visit the page will certainly appreciate your effort at improving them.

For changes to the scripts themselves, also quite welcomed.  Send me changes however you feel comfortable - as patches, a bzr or git branch, or even just copies of the script.  If you plan to do a lot of changes, a bzr branch with a merge proposal is the preferred way; tutorials on how to do this are available at code.launchpad.net, or feel free to catch me on IRC if you have questions.

Or, if you're not ready to dig into coding but would like to flag errors or areas where more functionality is needed, you can file bug reports the usual way (ubuntu-bug xdiagnose).

Quick Fixes

If you're not interested in doing any of the above debugging, here's some random tips:

For proprietary drivers, try uninstalling and purging them completely from your system, then reinstalling from scratch.  This unfortunately "solves" a lot of bugs...

For the FOSS drivers, there are various kernel switches you can play around with.  For 3D/mesa bugs, there is also driconf to tweak various settings.

Finally

Finally, one request...  please don't file bug reports to Launchpad about "random freezes" until you've done at least a little sleuthing such as described above.  Otherwise, you'd just be adding to the noise.

We do try to fish out well researched bug reports; we find these to give higher bang for the buck, and are a lot more likely to end up with an actual fix for the distro.


Python script to check if current IP address is from DHCP or static

I think it's going to depend on how the network is configured. Network connections in Ubuntu are either configured for the computer, or by the individual user through Network Manager (that little network icon in your notification area). Servers are generally configured system-wide from /etc, while desktops are configured by Network Manager.

If it's a system-wide configuration, you can parse /etc/network/interfaces.

If the network was configured by Network Manager on the desktop, you can interface with it. You can find an example Python script that prints connections from the Network Manager examples.

There might be a lower-level way of finding out whether any particular interface is dhcp, but I don't know of it.


How to run Ubuntu after installing it on Lubuntu OS?

While your computer is booting, hold shift. If you see message GRUB Loading, you know you did it well.

In the GRUB menu, see if you have more than one OS. If you do, boot the one you want to, and if you don't, well it is gonna take more time.

Case 1

Your chosen system will boot, and you will be happy :)

Case 2

If you don't see the second OS, go to the OS you see (probably Lubuntu) and when it boots, run  in terminal

sudo update-grub

It should find the second OS and add it to fstab file.

When it's done, reboot and try to get to GRUB again. If you still don't see second OS, then it looks like the second one is not bootable. You might have to get GParted  Live and copy all your data somewhere safe and reinstall.


creating a command to load a shell script from command line

~/bin is (if it exists) added to your path automagically. All you need to do here is rename your link to mine.


Ubuntu 17.10 LIVE USB Firmware Bug TSC_DEADLINE

I found the issue, it was because my USB key wasn't well formatted. I did use it for other live install OS and it did something to the drive.

What I had to do to fix the issue was to use Rufus on my Windows PC and uncheck Quick Format to force Rufus to go through the drive.

Now everything is fine and I am answering using my newly installed Ubuntu 17.10.


Is it possible to install LLVM and Clang on a USB drive?

Sure it possible.  Your biggest problem will probably be getting the package to install where you wnat it to.  Once on the usb, you should 1)ensure the mount of the usb does NOT have the "noexe" option, 2)tweak your PATH  environment variable to include the usb directory containing the executable, and 3)Add any necessary environment variables like LD_LIBRARY_PATH to allow the linker to pick up any needed libraries.


Bluetooth not working on Acer Aspire E3-112 or with Bluetooth dongle

Yes, you are right about BCM43142A0 device. I think you take incorrect *.hex file. You can find required firmware from here - https://github.com/winterheart/broadcom-bt-firmware . Make sure that you placed *.hcd to /lib/firmware/brcm. After that re-insert BT device or just reboot.


I found a workaround, although it may not be the best way to do it but it works.

first, animations should be changed to

PropertyAnimation { id: animationOne; target: bigLike;alwaysRunToEnd: true; property: "opacity"; to: 1; duration: 500
                        onStopped: animationTwo.start()}
PropertyAnimation { id: animationTwo; target: bigLike;alwaysRunToEnd: true; property: "opacity"; to: 0; duration: 300 }

this way we are sure that the second animation (fading animation) starts after the completion of first animation.

the when starting animations we need to just start the first one:

animationOne.start()


How to denied downloading a specific file

Why don't you just try to educate your uncle and help him install software to do what he is trying to use ashampoo for?

But for the purpose of the actual question it depends on your routers firmware. In Gargoyle for instance you could go to firewall - restrictions then add a new rule that blocks website url ashampoo.com (or just the download one if you have it) for all hosts.


Download the file from here.

There was one missing dependency that you'll need to install, it's python-setuptools. You can install it by running the following in a terminal:

sudo apt-get install python-setuptools

Then you will have to extract the mcomix-0.95.tar.bz2 file. Mine downloaded to the Downloads folder, so i ran:

tar -xvf ~/Downloads/mcomix-0.95.tar.bz2

then:

cd ~/Downloads/mcomix-0.95

and then run:

sudo python setup.py install

Once that is finished you should be able to launch it by simply typing mcomix in a terminal. Once that opens up,you can visit the unity launcher (if you're using unity), thenright click on the mcomix icon and choose "Keep in Launcher"

Hope this helps!


Can't login to Spark Cluster on EC2 after the nodes started

I encountered this too but after waiting it out it eventually does connect and finish setting everything up.

After doing some more research it looks like (from the Amazon Q/A about their Linux) on initial start up the machines download and install critical security updates and therefore can take longer to launch when that happens.

I am going to modify the ec2 scripts so it will work with Ubuntu ami - right now after testing it gets so far and then tries to execute installs using yum instead of apt-get and ultimately fails if you select an Ubuntu based AMI.


lowercase "a" not working in gnome-terminal but works in xterm?

Per comments above by @terdon it's worth checking the terminal's preferences, somehow had 'a' mapped to something else.


Unity launcher uses generic icon for Firefox in Ubuntu 12.04

Simplest method:

(1.) Remove (undock) the current icon from Dash.

(2.) Use Unity to find this application (firefox).

(3.) Drag icon to Unity panel, then right-click on icon and select 'Lock to Launcher'.

Assuming that doesn't work ..

There should be a file firefox.desktop located in:

/usr/share/applications/

This should start with: (simplified for clarity)

[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Exec=firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=GNOME;GTK;Network;WebBrowser;
  :

Also delete any customised copy of firefox.desktop you find in:

~/.local/share/applications/


This error happens when your deb file is broken. Check if you have downloaded properly (use md5 or sha checksum).

I just had this error when I was trying to install a deb file when its download wasn't finished yet.

$ sudo dpkg -i rocketchat_2.9.0_amd64.deb
dpkg-deb: error: 'rocketchat_2.9.0_amd64.deb' is not a debian format archive
dpkg: error processing archive rocketchat_2.9.0_amd64.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 rocketchat_2.9.0_amd64.deb


If you know the program names your application uses you can put this in your startup applications:

cat /<path-to-app-1>/<prog-name-1> > /dev/null
cat /<path-to-app-1>/<prog-name-2> > /dev/null
cat /<path-to-app-1>/<prog-name-3> > /dev/null
    (... SNIP ...)
cat /<path-to-app-9>/<prog-name-9> > /dev/null

Additionally if your applications has large configuration files you can speed up access to them in startup applications as well using:

cat /<path-to-config1>/<config_file-1 > /dev/null

If after preseeding the caches above, you wish to clear them out and regain RAM, you can create and run this bash script:

#!/bin/bash
if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi
sync; echo 1 > /proc/sys/vm/drop_caches
sync; echo 2 > /proc/sys/vm/drop_caches
sync; echo 3 > /proc/sys/vm/drop_caches


Encrypted Ubuntu installation won't boot

If you encrypted your home directory you should select ( require a password to log in and decrypt your home directory ) this option you can select while you are setting up Ubuntu  . try to setup Ubuntu without encrypt option if everything went well then your laptop configuration and hardware ok (you can use this command ecryptfs-setup-private to encrypt your home directory )


Why I get randomly "Failed to mount Windows share: Connection timed out" with VPN connection?

I was getting "Failed to mount windows share: Connection timed out" when trying to connect from an Ubuntu guest (in VMWare) to Windows 7 host (the physical machine). I could ping the machine, but not reach the shared folder.  I changed the vmware network settings from 'bridged' to 'host only' (didn't work) and then to 'nat' and that worked. Each time you change these settings Ubuntu sees a network disconnect and then re-connect, and I suppose it is assigned a new IP address in the process.


How can I get present working directory in a nice string form, $PWD?

The variable $PWD is related to the cd command. It refers to the current directory, but possibly by a path that is not normalized.

You need just the current directory, and do not care about the exact path to it.

The current directory is simply called . (one dot), just as the parent directory is called .. (two dots).

So you can replace the $PWD by . and it should work.


Why does locate */file*name work, and locate file*name does not?

When locating files a locate command that contains standard wildcards (also known as globbing patterns) is looking for paths to files in its local database. /synse_*_r_unseen_zs.npy is not a complete path to a file, so locate /synse_*_r_unseen_zs.npy returns nothing (because the search results of locate synse_*_r_unseen_zs.npy in your Ubuntu are an empty set), however */synse_*_r_unseen_zs.npy is a complete path to file(s), so locate */synse_*_r_unseen_zs.npy returns the results of the command. The asterisk character in these commands is interpreted by locate as a wildcard. The asterisk can represent any number of characters (including zero, in other words, zero or more characters).


Your laptop is certified for Ubuntu 18.04.

This means that Dell officially supports it with Ubuntu, but you may need specific drivers (that you can likely obtain from Dell support) or a specific kernel (see kernel reference in the certification report). From the listing the touchscreen seems to be included in the certification, but not the fingerprint reader. Status of the face recognition is debatable.


Black screen after GRUB, can't install. UEFI

I installed it via legacy mode. I could not get it to install via UEFI.

However, I patched the install once booted, thus enabling it to be booted in UEFI, by doing this:

  Converting Ubuntu into UEFI mode

  Note: Do not follow this procedure if your computer is already booting correctly. Use this procedure only if you believe you've accidentally installed Ubuntu in BIOS/CSM/legacy mode and you want it to boot in UEFI/UEFI mode.

  Start Boot-Repair, click on "Advanced options", go to the "GRUB location" tab.
  If you do not see a "Separate /boot/efi partition" line, this means that your PC does not have any UEFI partition. In this case, exit Boot-Repair, then create an UEFI partition (see the "Creating an UEFI partition" paragraph above).
  If you see a "Separate /boot/efi partition" line, tick it then click the "Apply" button.
  Set up your BIOS so that it boots the HDD in UEFI mode (see the ""Set up the BIOS in UEFI or Legacy mode" paragraph above).

From http://help.ubuntu.com/community/UEFI.


installing ubuntu using wubi is fine, if you are a rookie and dont want mess up the partitions. But the best way to install ubuntu is by booting from the CD/USB and install it to the hard drive. as described here


Use $HOME instead of ~ (tilde).

Tilde is bash specific. In bash tilde expands to the value of $HOME. Outside of bash tilde has no special meaning.

Read the bash manual about tilde expansion for more details.


It might be lost because the files that you had last time in that PC that you sold were already deleted.


You could try to reinstall Nautilus.

Open up the terminal and type the following:

sudo apt-get install --reinstall nautilus


You need to install git and build-essential packages

sudo apt-get install git build-essential

Then clone repository and compile software:

cd ~/Downloads
git clone https://github.com/jvirkki/libbloom.git
cd libbloom
make

Then check that library was compiled:

$ ls ./build/libbloom.so
./build/libbloom.so

If steps above does not help install the following packages manually:

sudo apt-get install libc6-dev linux-libc-dev linux-headers-$(uname -r)


Automatic locking screen doesn't work in Ubuntu 18.10

I too have this.  I have suspend enabled on lid-close or hitting the power button.
I find I have to hit Super-L twice to lock the screen.  However, if I hit it just once prior to suspend then it resumes correctly (ie with the password screen).


When you uninstalled, did you remove your .steam folder in your home directory?

Note that before you do that, you should backup the game files so you don't have to download all your games again.

If you didn't then it is likely that some setting has corrupted in your home folder that didn't get cleared when you uninstalled it.

Just to add that I upgraded from 12.10 to 13.04 without issues and Steam works perfectly so it should work once you clear the old files.


MySQL 5.0 is not available for anything after Ubuntu 8.04 (hardy).  8.04 Server Edition is still supported for a couple of years, so that might be an option for you.

Here are the official packages by release for 5.0:

$ rmadison mysql-server-5.0
mysql-server-5.0 | 5.0.21-3ubuntu1 |        dapper | amd64, i386, powerpc
mysql-server-5.0 | 5.0.22-0ubuntu6.06.15 | dapper-security | amd64, i386, powerpc
mysql-server-5.0 | 5.0.22-0ubuntu6.06.15 | dapper-updates | amd64, i386, powerpc
mysql-server-5.0 | 5.0.51a-3ubuntu5 |         hardy | amd64, i386
mysql-server-5.0 | 5.0.51a-3ubuntu5.8 | hardy-security | amd64, i386
mysql-server-5.0 | 5.0.51a-3ubuntu5.8 | hardy-updates | amd64, i386
mysql-server-5.0 | 5.1.30really5.0.83-0ubuntu3 | karmic/universe | amd64, i386


how to set default session in Ubuntu 14.04 LTS?

Ok after some searching in config files , it did mentioned in /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

open your terminal with ALT+CTRL+T and type as

sudo nano /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

and change line user-session to what session you want with session name as mentioned in /usr/share/xsessions/ with

ls /usr/share/xsessions/


How to setup HP printer/scanner on ubuntu 16.04?

Ok, i have found an answer for my question. So i'm posting it here, in hopes that it will be useful for another person:

For whatever bizaar reason the graphical interface of hp-setup is busted. So one needs to start:

sudo hp-setup -i

The -i key is essential, because without it the setup doesn't proceed either. At this time i still haven't gotten the test page out, but the scanner is working properly, which is what i was needing originally.


Keyboard and mouse are extremely slow / lagging in Ubuntu 18.04's login screen

it appears that somehow the "slow keys" has been turned on (probably by my 3y old boy). The problem resolved after switching it off.
Attached it the top right menu containing the 'slow keys' item


Can I install in unallocated partition and use BIOS to boot?

Depends if you are using UEFI mode on Windows 7...if you are, then sure  -----The main reason I have found Ubuntu to not recognize a windows partition is either because encryption software like true-crypt is installed or quick-boot mode is enabled where each time you shutdown windows it is really only hibernating.  There are thousands of posts all over AskUbuntu and google that detail how to disable all of that. Just make sure you know your laptop vendors button to select which loader you want to use in the uefi. (an "f") key...

----Otherwise if you aren't using uefi, then you should be able to chainload either grub then windows boot loader or vice versa.  When you install Ubuntu just make sure you install grub to the "unallocated partition" you have been speaking of. If you install grub to sda (no number) you will make the windows boot loader mad and have to do lots of extra work to get everything back to normal...


How do I force Wubi to download and install 32 bit version?

Wubi chooses 64-bit automatically if you have a 64-bit CPU. You can override it with the command line option --32bit. This option is required even if you download the 32-bit desktop CD ISO yourself and place it in the same folder as wubi.exe before running.

See the Wubi guide for more info.

When you are installing a beta version of Ubuntu, the CD images and therefore the checksums change frequently, so even if you have the 32 bit ISO it may still reject it. If you are running from a CD, disconnect from the internet or use --skipmd5check to bypass this check (in this case you should make sure you have previously run the md5 check yourself). This is not recommended for non-beta installs, in which case you should let Wubi run the MD5 check.


Booting into ubuntu with grub rescue - incompatible config file

I can't guarantee that it works for every error of this kind but you ought to be able to use your Ubuntu USB if it is a Live Ubuntu USB. In that case:

Boot from your Live USB stick and select “Try Ubuntu”.
Open a terminal and enter the following commands:
sudo add-apt-repository -y ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt install -y boot-repair && boot-repair
Once boot-repair has started, select "Recommended repair"

Another option is to:

Boot from a Live USB stick.
Select “Install Ubuntu”.
Optionally, select to download updates and third-party software while
installing. Click ‘Continue’.
The next step is important. Select "Reinstall Ubuntu" (probably followed
by a version number). Click "Continue" or "Install Now" (I don't remember
which).

Your system will be reinstalled without erasing any of your files.
EDIT:
As the above recipes didn't work and after your recent edits to your post I can see that there are two problems, secure boot and Intel RST ("FAKE") Raid.
There are a number of articles on the subject and all of them indicate that it is not a simple problem. Only two Linux distributions have support for RST and both are commercial, RHEL (Red Hat Enterprise Linux) and SLES (SUSE Linux Enterprise Server).
There is an interesting article: Intel® Rapid Storage Technology (Intel® RST) in Linux* and several interesting Ubuntu-oriented questions and answers on several forums (Google "Ubuntu intel RST"), showing that this is far from simple. I tried several different approaches on an ASUS laptop and failed every time but two.
Note that RST is not essential and that it is normally only for RAID. There is no point in using it in a single HDD or SSD setup or if you have one SSD for Windows and another for Linux and even if you have a RAID setup there is no or very little gain in using it so I would opt for turning it off.
The two approaches that didn't fail:

Install Ubuntu with RST disabled in BIOS. In my case that meant that I had
to go into BIOS on every boot and enable RST if I wanted to start on
Windows and disable it if I wanted to start on Ubuntu and then override
the start order. Cumbersome and after what I have understood from search
on the internet, not working the same way on all computers.

a. Backup all files and find the Windows key using e.g. ProduKey from
NirSoft or open powershell and use the command (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
Note carefully the key if you would have to use it later.
b. Create a Windows Installation USB stick
c. Then turn off RST in  BIOS (enable AHCI) and optionally also turn off
Secure Boot in BIOS.
d. Install Windows from the USB stick (you might have to use the product
key)
e. Install Ubuntu (you might have to disable Secure Boot)

These two worked for me but the last one was better from my point of view.


Mouse pointer gets invisible after standby

I have the same issue. I did some research and found that if you hit
Ctrl + Alt + f1, this puts you in a terminal. then hit Ctrl + Alt + f7 and this brings back the desktop with a functioning mouse cursor.


Applications for removable media don't run when screen is blanked

No answers here, so I went for fixing the problem with xscreensaver instead. I had to write a little replacement script for caffeine to get it to work. Can be found here.


Is it possible to install Ubuntu to an ext4 while remaining other partitions to an FAT32

Now by choosing the partition to install Ubuntu and convert it to ext4 from FAT32.

Converting is not the correct word; it will delete anything on it and format that partition. Changing the formatting it is currently on to another will always delete the file (when using the installer). Converting is a method where you use a tool to change the formatting from one to another while keeping the data (Windows has a FAT32 to NTFS tool; gparted has a convert tool too.).

  Will the other partitions remain FAT32 or they will be ext4 ?

Depends on what you tell the installer to do: if you pick "use whole disk"  or "replace ... with ..." those will be deleted too. "something else" is the only one that does not delete them itself but you need to mark these partitions to be deleted. If you set these up as "use as FAT32 but do NOT format" those partitions will be added to the system with the mount point you supply.

  and if they will be ext4 or they will remain FAT32, will the data be erased in the 2 cases ?

If set to ext4 those will be deleted.

A couple of things:

FAT32 is an obsolete format. Best to do is to use Windows to convert them to NTFS first before setting up Ubuntu.

If you keep these disks it is far better to keep Windows and use a dual boot. You can keep Windows by using a tool like gparted or partition manager to shrink Windows C: as much as possible.

The best option: put your files onto dvd's, ie. make backups and set those partitions up as ext4 if you plan to dump Windows completely.


'Volume group name already in use' - message during ubuntu 18.04 installation

Looks like the guided installer uses the hostname you set earlier in the install and appends '-vg' to it when setting up the logical volume groups. Change the hostname to not conflict during install and you can have two ubuntu guided setup lvm installs on different disks.

To install and overwrite the same disk fresh, you need to remove the volume group manually since the installer won't do it. Think too much could go wrong automating messing with peoples LVM setup...

Instead of choosing a different hostname for my use case, I just renamed the volume group on the first disk to something else when it gave me that warning. Here's how:

Suppose you chose 'machine' as your hostname during the first install, then when you get the 'Volume group name already in use' message during the second install, do this..

Use Alt-F2 to get to a command prompt
Enter command: vgdisplay

this shows that there is a volume group already with the name 'machine-vg'

Enter: vgrename -v machine-vg machine-vg-1

replace 'machine' with your hostname of course

Use Alt-F1 to get back to the installer, and complete the guided install.

Now I have two fresh installs on different disks, that should be identical except for the logical volume group names.

For fresh install over a previous guided install with lvm, I think you would use the command 'vgremove machine-vg' in step 3 above instead of vgrename.

So my basic understanding is: You need to remove lvm manually from the disk you are installing to, or rename volume groups on other disks where the name conflicts, before the partitioner in the installer can automatically create the partition tables for guided lvm installs.

By the way, I have also experienced a lubuntu 18.04 installer kicking back to the install page (install loop), with no warning messages whatsover. Thinking about this now, have a feeling it was the same problem: LVM was already setup on the disk I was using for lvm install. However, since the names didn't conflict, no error message at all, just a blank screen then back to the install button.


You can only sudo apt-get install packages which are available in the package sources of your system. You can search the default package archive of your Ubuntu version at: http://packages.ubuntu.com/

It seems that the library you need is not available in any package archive for Ubuntu, yet. Your best bet will thus probably be to get the sources manually as described on the website of the library: https://libcoap.net/doc/install.html


Error while autoinstalling gstreamer1.0-plugins-bad

Finally, the problem got solved with the help of @budman7 from the Linux Forums. This is what had to be done:

Open Synaptic Package Manager
Search for gstreamer1.0-plugins-bad
Proceed to install it. Now, the installer wants to remove a set of i386 packages. i386 refers to a 32-bit OS, and since I am running a 64-bit one, I agree to the removal.

Finally, I am able to play .asx files with Totem Media Player!


Unable to add subdomains with nginx server

I don't know whether this is the correct way, but after adding a A Record to the subdomain (pointing to my vps server), it started to work.


Terminal replacing ! followed by a number with a command

That's bash's history expansion, e.g.

!87

re-executes the command from history line 87.

You find the description of this feature in man bash, section “HISTORY EXPANSION”:

       An  event  designator  is  a  reference  to a command line entry in the
       history list.  Unless the reference is absolute, events are relative to
       the current position in the history list.

       !      Start  a  history substitution, except when followed by a blank,
              newline, carriage return, = or ( (when the extglob shell  option
              is enabled using the shopt builtin).
       !n     Refer to command line n.
       !-n    Refer to the current command minus n.

So to quickly call the last command, do !-1 and for the fifth last command !-5. A handy synonym for !-1 is !! – if you called e.g. apt install something and forgot the sudo, just execute sudo !! and you're good.

  Only backslash (\) and single quotes can  quote  the  history expansion character.

To avoid history expansion, you need to either escape the exclamation mark with a backslash (\!) or use single quotes ('!').


Booting Problem : can't request region for resource

The solution was a mixture of both of those threads. By getting started Ubuntu with the nomodeset I was able to install both Ubuntu and the drivers needed (I have 2 graphics cards in my laptop and apparently that causes the problem) and now everything runs smoothly.


Use the pre installed disk burner that came with your copy of ubuntu 11.04 ..burn the Ubuntu 13.04 image to a D.V.D.-R or D.V.D.-RW once that is finished remove the disk and shut your system down..when your system comes back on press the deleat key rapidly your system will boot to somthing called bios poke around in the bios till you fine a spot named boot priority ...once in this section set the boot priority of your disk drive first and your hard drive second ..once this is done save exit and once again shut down your computer...turn it back on and quickly open the disk tray and insert your D.V.D. of the Ubuntu 13.04 O.S. ...if it starts booting into Ubuntu befor you can get the disk in it is perfectly okay ..just hold the power buttion down till the system shuts off ...if it does turn it back on...if you made it in time your screen will say "booting from C.D." or "Booting from Disk" ...do not press anything just let the computer load "this should take between 5 and 30 mins" once it loads click install Ubuntu and follow the on screen instructions ...if you need more help please just ask


WireframeSketcher is a rapid wireframing tool for Eclipse-based IDEs like Aptana, Zend Studio and the like. It also comes as a standalone version for all major platforms including Ubuntu. Give it a try.


Download the file to your desktop here: http://sourceforge.net/projects/ndiswrapper/files/

Drag and drop the file to your desktop and right-click it and select 'Extract Here.' Open a terminal and, with a temporary ethernet connection, do:

    sudo apt-get install linux-headers-generic build-essential
    cd Desktop/ndiswrapper-1.58rc1
    sudo su
    make
    make install
    modprobe ndiswrapper
    exit

Packages compiled from source need to be re-compiled when a newer kernel version is installed by Update Manager:

    cd Desktop/ndiswrapper-1.58rc1
    sudo su
    make clean
    make
    make install
    modprobe ndiswrapper
    exit

Please let us know if you encounter an error.


have you tried setting grub as the boot manager for Windows do this in windows cmd prompt:

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi


What Are Charge Profile and Charge Accuracy?

My best guess:
'Charge Profile' is the difference between the predicted charge and actual charge

'Charge Accuracy' is the percent off how correct how long it took to get the cell charge was (or possibility the predicted charge (time and how much is being charged) versus the actual reported charge).

As for the case of Discharge, I believe it's the same as above but flipped to pertain to discharging.


Enable search in file (PDF) contents using tracker

It's a bug in Nautilus, it seems. See this issue and the answers to it:

https://gitlab.gnome.org/GNOME/nautilus/issues/624

  I see why this does not happen in nautilus code. Its shell search provider does implicitly resort to the "simple" mode, in which only filenames are matched. (https://gitlab.gnome.org/GNOME/nautilus/issues/624#note_311228)


I'm sure you know this but sometimes hearing it from someone else helps you realise a mistake — modern BIOSes usually allow you to select a device when you boot. Try to access this feature. If this fails, open your BIOS configuration and make sure the boot order will boot USB before the hard disk. It may help to enable "legacy" boot (which may be named differently in different BIOSes...)

If you have done all these things it is possible that your USB drive was incorrectly imaged, or perhaps it is one of the cheap ones that don't support non-standard partition schemes.

See if another computer will boot off the USB drive, if not then re-image or use a different USB drive.

You can also access the GRUB command line and search for the commands to enter to instruct GRUB to boot from the USB drive. Thankfully GRUB2 supports tab-completion.


This worked for me:

cd /usr/share/X11/xkb/symbol

Make a copy of the file srvr_ctrl somewhere you can restore it if you want

Open it with your favorite editor using sudo

sudo vim srvr_ctrl

Change the lines

symbols[Group1]= [ F10, F10, F10, F10, XF86_Switch_VT_10 ]

To

symbols[Group1]= [ XF86AudioRaiseVolume, F10, F10, F10, XF86_Switch_VT_10 ]

And

symbols[Group1]= [ F9, F9, F9, F9, XF86_Switch_VT_9 ]

To

symbols[Group1]= [ XF86AudioLowerVolume, F9, F9, F9, XF86_Switch_VT_9 ]

Now save, exit, and re-login to your account.


Why does vblank_mode improve framerate drastically in benchmarks?

vblank_mode=0 tells the graphic card to ignore the refresh rate of your monitor and just try to reach the maximux fps it's capable off.

You usually don't want this, because it causes tearing and wastes battery life without any benefits (you can't view more then, in your case, 60fps because your monitor isn't able to change what's displaying more than 60 times every second).

You might sometimes want this (in online shooters such as cs:go for example) because otherwise you will have a lot of input lag. It's a trade-off, input lag vs. screen tearing.

I think optirun sets vblank_mode=0 by default, so it doesn't change whether you specify it or not. primusrun doesn't and it too caps at 60 fps without vblank_mode=0.


Ubuntu does not follow the preseed file for network settings

Your problem is described in bug 855921.

If you want to use any specific interface, e.g. eth0, just pass netcfg/choose_interface=eth0 to the kernel as a boot option.


How can I disassemble or decompile a C++ executable?


no there is no alternative to Wine except installing Windows. So either install Windows in a partition or run it under a virtual environment.

The general answer will be no, as stated above. But there are Ubuntu compatible alternatives for many programs which means there might be a native program you can install instead.


There is a simple solution for this using the command line program pdftk and it's flatten option:

pdftk input.pdf output output.pdf flatten


It sounds like Grub is not configured to see the Windows boot partition, and you're booting into GRUB rather than Windows Boot Manager.

The simplest (but more time-consuming) way to handle this is to completely wipe the system and install Windows 8 by itself.  Then install Ubuntu alongside.

The faster but more difficult/risky way, is to take your chances with reconfiguring Grub.  Here is a good tutorial on Grub2 that may help you, and here are some instructions that might help you as well.  Unfortunately you can't follow them verbatim, but they may help you get it figured out.


How to add n columns below first column?

Use this command:

sed 's/\s\+/\n/g' data.txt | sort -n | sed '/^$/d

I assumed that the data entries are separated by one or more spaces. sed simply substitutes space with line feed. The result get pipe to sort which does the sort. The last sed deletes empty lines.

Or you can use the translate command:

cat data.txt  | tr  " " "\n" | sort -n


Why is my repetition condition with grep range not working?

Curly brackets { } are treated as literals in BRE (Basic Regular Expression). From man grep:

   Basic vs Extended Regular Expressions
       In  basic regular expressions the meta-characters ?, +, {, |, (, and ) lose their
       special meaning; instead use the backslashed versions \?, \+, \{, \|, \(, and \).

So you need either

grep '[0-9]\{1,3\}-[0-9]\{1,3\}_something'

or enable Extended Regular Expression mode with the -E switch

grep -E '[0-9]{1,3}-[0-9]{1,3}_something'


connecting to a wireless network BCM 4318 Rev 2

If you haven't upgraded to 14.04 or 14.10, please do so as Ubuntu 10.10 reached its end-of-life on April 10, 2012; that means that crucial security updates are no longer available. Find out from the terminal with:

lsb_release -d

Once you have 14.04 or later installed, please do:

sudo apt-get update
sudo apt-get purge bcmwl-kernel-source

If the terminal reports that it isn't installed, that's fine, just proceed.

sudo apt-get install firmware-b43-installer

Reboot and tell us if your wireless is now woking.


Install the gvncviewer  package:

sudo apt-get update
sudo apt-get install gvncviewer


Windows 7 installed on ubuntu but system not able to boot windows

Did you run sudo update-grub to make grub recognize the Windows installation?

Maybe you have to modify some settings in /etc/default/grub, too. For example, GRUB_TIMEOUT and GRUB_HIDDEN_TIMEOUT.


Is my gparted partition editor looking okey?

Yes, it is OK. You have two partitions:

linux main partition (root) which is /dev/sda1 formatted as ext4 and mounted as /.
the swap partition /dev/sda5.

However because both the operating system and your files will be on the same partition, you'll lose all your data when you reinstall the OS. That's why is recommended to have a second partition mounted as /home.


How can I get to TTY from a broken login screen?

It appears installing KDE through the virtual console and then using dpkg-reconfigure lightdm and changing the display manager to sddm and rebooting starts the system in KDE, which I can still login to.


Cannot use PC while crypto-mining on Ubuntu: works great on windows though

Ideally, you would move your mining to another system. I believe the reason it still works on windows is that windows gives itself more overhead as an OS, that way it can still run "smoothly" while under load. I assume that ubuntu takes less space. If I am right, maybe the hashrate increases when on ubuntu as it has access to more resources. a solution I can think of would be to move the mining to a virtual machine, that way, you could run an optimized OS if you want, plus you could control the amount of resources mining is allowed to use, with some configuration, you would be able to use your ubuntu system at the same time as you mine, tho the hashrate may drop a bit. I hope I was helpfull :) (it's my first answer ever)


Computer does not boot with P4000 and NVIDIA drivers

The best solution I've been able to find is to add

i915.modeset=0

to Grub's kernel parameters. This allows the Nvidia card to use modesetting. Also, this seems to confirm my suspicion that the problem was the interaction between two active video cards: the built-in Intel and Nvidia's.


Cannot boot after installing ubuntu on lenovo x120e

I found that all these trouble were due to the GPT partition written to my disk instead of MBR and I had replaced grub-efi with grub-pc. Grub was looking for the bios_boot partition since my GPT string was telling it the system doesn't use EFI, I had setup a 4 MB bios boot partition and it didn't worked even after repeated attempts trying out things with GParted and book-repair.

I started with a fresh install, but this time I had disabled the UEFI support in BIOS before the installation and only enabled the Legacy option.
This time the system had no chance to mix up things and I got my system to boot after the installation.

ps: I installed using the alternate amd64 iso, since desktop amd64 iso stuck in between installation.


Broadcom 4313 doesn't work following 12.04 upgrade

Looks like there's a bug filed. You might want to add yourself as affected and subscribe.

Also, this workaround shows how to blacklist the offending module and put the right one in place instead.


Wifi runs well with Other router other than Netgear

Failure to ping google.com by name only indicates a DNS problem. Failure to ping by address indicates a connection problem. If I traceroute to google.com I get an address of 216.58.216.238 (likely one of many servers in the farm - the readers traceroute will vary).

If you can't ping google.com but can ping 216.58.216.238 you have an issue with DNS which you can likely resolve by changing the DNS server config in your router (assuming DHCP configuration for your client. Make these changes in the client configuration instead if using static IP addressing) Google public DNS server is at 8.8.8.8 as I recall your ISP can provide you with their DNS server address(es).

Being unable to ping 192.168.1.1 indicates that you may not be using the correct address as configured in the Netgear router. This address can be changed in the router configuration which can be reset to factory defaults if it's been mucked up beyond your ability to fix. It's also possible to disable wireless configuraton of the router. Use a Ethernet cable rather than wifi to access the router after restoring to default settings and set it up properly from scratch.

NOTE: Make sure you know the security type (encryption level)  in use before resetting as well as the wireless passcode or you'll end up having to reconfigure every client on the network (good practice perhaps, but avoidable with a bit of pre-planning in most cases)


How to install the open-source "radeon" driver

There is no need to install the open source drivers.
They are already installed by default.

You can check which kernel module is used by running

lspci -k | grep -EA2 'VGA|3D'

in terminal. It will show something like this

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV620/M82 [Mobility Radeon HD 3450/3470]
    Subsystem: ASUSTeK Computer Inc. Device 19d3
    Kernel driver in use: radeon

GPU: Gallium 0.4 on llvmpipe (LLVM 3.8, 128 bits)
looks correct.


You haven't done anything wrong, except to misread 14.9 GiB as 14.9 GB.

They are two different units of measurement, like the computing equivalent of imperial and metric.  The clue is on the last line of output from dd:

16022241280 bytes (16 GB, 15 GiB) copied

Hard drives are sold in metric units (GB) where the prefixes (K, M, G) increase in multiples of 1000, but computers have traditionally used the larger binary units (GiB), where the prefixes increase in multiples of 2^10 (10 twos multiplied  together), equal to 1024.

Therefore a Gigabyte (GB) is 1000*1000*1000 bytes, while a Gibibyte (GiB) is 1024*1024*1024 bytes, and indeed 16.0*1000*1000*1000 is roughly equal to 14.9*1024*1024*1024.


Has zram been removed in the latest ubuntu (17.10)?

No. Kernel modules are pretty rarely removed from the upstream kernel. However, many modules are split into a separate (versioned) linux-image-extra package in Ubuntu, and you may be missing said package for your kernel version.


To hide a Partition:

Install Gparted(if you already don't have it installed).
Right click on the partition you want to set as hidden.(You may recognize the partition by it's size and File System).

 3. Select Manage Flags and check the flag hidden.


How to remove access point from saved list

ctrl + t {for terminal prompt}
cd /etc/NetworkManager/system-connections
sudo rm {wireless_hotspot_name}

Hope that helps

EDIT FROM ONE YEAR LATER

Seems like this turned into a fairly popular answer, so I went ahead and wrote an automated script to do this for everyone. Just copy the below script into into /usr/local/bin/wireless and remember to run command sudo chmod +x /usr/local/bin/wireless

Glad to see this is continually helping fellow *buntu users ;)
newest version(s) will be on GitHub

#!/bin/bash
# Review and Remove Wireless Access Points on DEB based Systems
# Make sure to place script in /usr/local/bin

# CPR : Jd Daniel :: GabelBombe
# MOD : 2013-12-09 @ 12:27:02

# INP : $ wireless -{flag} {arg}

##===============================================================##
##===============================================================##

clear

# If the user is not root
if [ "$(id -u)" != "0" ]; then
  echo "This script must be run as root" 1>&2 ; exit 1
fi

declare -r VERSION='1.2b'
declare -r net_dir='/etc/NetworkManager/system-connections'

function list ()
{
  cd "${net_dir}"

    export count=$(ls |wc -l) # used in drop function

  files=$(ls) # simple ls

  echo -e "\n\tFound ${count} wireless connections"

    for f in $files; do
        echo -e "\t * $f"
    done
}

function drop ()
{
  # make sure that we have a working file and directory...
  cd "${net_dir}" ; [ -f "$OPTARG" ] || { echo -e "\n\tConnection does not exist..." ; exit 1; }

  # confirmation for removal
  printf "\n\tDo you want to delete $OPTARG [y/n] " ; read -r resp

    # strtolower, and rm
    if [ 'y' == "$(echo $resp | awk '{print tolower($0)}')" ]; then
      rm -f ${net_dir}/${OPTARG}
    fi
}

function flush ()
{
  # make sure that we have a directory with files...
  cd "${net_dir}" ; list ; [ 0 -ge "${count}" ] && { echo -e "\tExiting, Nothing to flush..." ;  exit 1 ; }

  # confirmation for removing all files
  printf "\n\tAll Wireless Connections will be removed, continue? [y/n] " ; read -r resp

    # strtolower, and rm
    if [ 'y' == "$(echo $resp | awk '{print tolower($0)}')" ]; then
      rm -f ${net_dir}/*
    fi
}

function version ()
{
  echo -e "\n\twireless (GNU wireless network purge) v${VERSION}"
  echo -e "\n\tCopyright (C) 2013 Hydra Code, LLC."
  echo -e "\tLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n\tThis is free software: you are free to change and redistribute it.\n\tThere is NO WARRANTY, to the extent permitted by law."
  echo -e "\n\n\tWritten by Jd Daniel (GabelBombe) http://github.com/GabelBombe"
  exit 0
}

function help ()
{
  echo -e "\n\tUsage: wireless [OPTION]... [FILE]..."
  echo -e "\tList, remove single or flush the contents of your Wireless Network Manager"
  echo -e "\n\tThe options below may be used to perform the above actions, this program will only"
  echo -e "\trun a single flag or parameter at a time. Flag chaining is only available for -d"
  echo -e "\t  -l, --list \t\t List the contents of your 'Network Manager'"
  echo -e "\t  -d, --drop [conn] \t Drop a single (or multiple) wireless connections"
  echo -e "\t  -f, --flush \t\t Flush all wireless connections."
  echo -e "\t      --help \t\t Display this help menu and exit"
  echo -e "\t      --version \t Display version information and exit"
  exit 0
}

##===============================================================##
##===============================================================##

# no long-opts supported except --help
while getopts ':ld:f-:' OPT; do
  case $OPT in

    l) list  ;;
    d) dirList="${dirList} $OPTARG" ; drop  ;;
    f) flush ;;
    -) #long option
       case $OPTARG in

          list)     list    ;;
          drop)     drop    ;;
          flush)    flush   ;;
          help)     help    ;;
          version)  version ;;

       esac
   ;;
    : ) echo -e "\n\tMissing option argument for -$OPTARG" >&2;               exit 1;;
    * ) echo -e "\n\tUnknown flag supplied ${OPTARG}\n\tTry wireless --help"; exit 1;;
  esac
done

shift $(($OPTIND - 1))

##===============================================================##
##===============================================================##


How to disable advertisement from ubuntu software center

I don't think that's possible, unless you want to rewrite the source code and compile it yourself. Of course, you can always install packages from the command line, using apt-get or aptitude. There's also synaptic.


Unlike Windows Registry Editor is there any Registry editor in Ubuntu?

The "registry" editor is call dconf-editor and you can install it with

sudo apt-get install dconf-editor

Example image:

But I am in doubt about this:

  and to delete the unwanted files in Windows

A registry editor does NOT delete files. It is used to change settings.


Try Boot Repair.

1 - Live CD

First, you'll need to boot from a Ubuntu Live CD.

2 - Repair the bootloader

To repair and restore the Grub bootloader, follow these steps.

Open a terminal from the Live CD, and run the following commands:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair

After a few seconds, Boot Repair's main window will open.

Click on Recommended repair.

You're done!

Reboot to test everything out.

If everything went well, you should be up and running now.


How can I run Digikam after installing it?

Well it should be listed under Applications > Graphics >

But if for some reason its not then you can create a custom desktop launcher/shortcut for it.

Right click on your desktop and click Create Launcher. and fill it out as follow.

Type:        Application
Name:        Digikam
Command:     digikam -caption "%c" %i
Comments:    Manage your photographs like a professional with the power of open source

Click OK. That's it!

You can also launch Digikam from terminal:

To open terminal hit Alt+Ctrl+T and run following command:
digikam

OR (If you want to keep the terminal usable to run other commands)
digikam &

Or from Run command:

Hit Alt+F2, Type digikam and hit Enter


Cannot open gedit using sudo in Ubuntu 16

This is a know and confirmed bug.  Gedit is stuck in an unterminated state.  Rebooting your computer will remove the terminated state and it should work again.

To avoid having to reboot you can run a standalone instance with the -s argument:

 $ sudo gedit -s /var/www/html/testphp.php

To avoid rebooting and continue working in your current session you can install and alternate text editor such as kate or geany.

$ sudo apt install [kate or geany]

Replace the bracket entry with one of the alternate editors.  Then run the editor from the Ubuntu Dash Search.


Divide command prompt into multiple lines

A bit more detail of Soren A comment. Edit the file .bashrc with editor.

editor ~/.bashrc

Then lockup for the following line

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

Add the \n (new line) special character just before the \$ at the end of the line. You should have a line looks like :

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$ '


Can I install software from debian package without internet

Yes, it is possible. One of the methods is to use the command:
sudo dpkg -i filename.deb

You can also try to install the file via Ubuntu Software/Snap Store application by double clicking on it in file manager (although this usually didn't work for me - but in theory it's supposed to work).
One more method is to use GDebi, it's a GUI installer for .deb files. It is my preferred tool to install non-repository packages. But it's not installed by default, so you have to install it first while you do have an Internet connection.
However, if the package to be installed has any dependencies, you must resolve them manually and install all dependencies first.


Open a file browser with root:

gksudo nautilus

If gksudo isn't installed, you can install it with sudo apt-get install gksu or use sudo -H nautilus (yes, this is fine to do).

Go to / (Either the name of your computer or just "Computer") and go to etc --> apt --> sources.list.d. Move eduke32.list.save.1, eduke32.list.save.2 and eduke32.list to some other folder, preferably ~/ (your user directory).

Run sudo apt-get update again and the errors should be gone.

In the future, it would be nice if you tell us what you are doing. I can guess with reasonable certainty that this is apt-get update because of the errors, but it's not always possible to infer information from context.


Fan won't turn on. How do I turn it on manually?

File a bug. Even if there is a bug that looks like it matches yours exactly, go ahead and file a new, unique bug.
Download the current daily iso. Put it onto a usb drive and boot into the live image to see if that has the same problem.


Is GNU Emacs Unicode compliant, or is it just Multi-Lingual aware via Mule?

Short answer: IBus with ibus.el; Gnome Ctrl+Shift+U ⇒ Emacs C-x 8 RET

Emacs's support for more-than-8-bit character sets comes from MULE, which is about as old as Unicode (it derives from support for Japanese), and much older than widespread support for Unicode (in terms of programs supporting Unicode text, fonts, etc.). Good Unicode support came with GNU Emacs 23, which is the default version as of Ubuntu 10.04. Acceptable Unicode support came with GNU Emacs 22, which was the default version as of Ubuntu 8.04. Prior versions did have some support for Unicode, but it was more common to run into bugs or limitations.

Emacs doesn't use Gnome, so you can't use Gnome input methods in it. For example, Ctrl+Shift+U to insert a code point by its hexadecimal code is a Gnome feature, so it doesn't work in Emacs. The native Emacs equivalent is Ctrl+Q, which for historical reasons must be followed by the octal code; if you prefer hexadecimal, customize read-quoted-char-radix to the value 16. A similar Emacs command is C-x 8 RET (ucs-insert; if you use it often, you may want to bind it to a shorter key sequence), which can be followed by a hexadecimal code point or the name of a unicode character, with completion.

Emacs has its own set of input methods, and can also use system input methods such as UIM (install uim-el. IBus support is relatively new; you need ibus.el, which isn't in Lucid and I think not in Maverick either; see also IBus on the Emacs wiki.


update from 12.04 to 14.04, cron stops working

The system log shows that the command is running, but the log may not contain errors. You can capture stdout and stderr by adding a MAILTO to your crontab:

MAILTO=sicksand

Of course the first test is to run the command manually just as shown in the log.


keyboard short cut for switching between two or more instances of the same application?

ALT+0 or ALT+` is the usual hotkey for that behaviour.

If it is not working for you, just type shortcut in Dash and open the keyboard settings. On the Shortcuts tab under Navigation you can set a hotkey for Switch windows of an application. (Or for Switch windows of an app directly if you like direct switching more.)


Nvidia driver v.384 has some problems with 4.10.0-32 kernel

the nvidia-384 driver is braking Qt-quick ,,see

https://blog.martin-graesslin.com/blog/2017/08/warning-nvidia-driver-384-69-seems-to-be-broken-with-qtquick/

downgrade to the 381 and stay their for a wile .

VINNY
VINNY@ https://www.kubuntuforums.net/forum.php


UBUNTU touch DUALBOOT dualboot.sh install problem

There is an app called MultiRom available in the Google Play Store. It supports dual booting Nexus devices.

In order to use it, your device must be rooted. You will also need to install a custom recovery and kernel (both of which the app above will provide). One of the advantages of MultiRom is you can install multiple ROMs of any OS, including FirefoxOS, Ubuntu, and other Android ROMs.

Here is the link to MultiRom


How can I uninstall Adobe acroread when nothing else works?

sudo apt-get remove adobereader-enu --purge


How to replace Windows 7 with Ubuntu 12.04 in C drive without affecting other partitions

After something else:

Select Windows partition and click on "-"(which is beside the "+" icon).
Now it shows it as an unknown partition. Click on "+" button. You'll get a window to manage that memory.
Choose: "Primary partition", "Beginning of the memory space". Size as (8-9)GB. (1-2)GB is left now as free space.
Select 1GB space and click on "+" icon and choose options like this: "Primary partition", "Beginning of the memory space", "swap area".
Click install.
Comment.


How do I use a text-only interface to log in?

Modify your file /etc/default/grub with

GRUB_CMDLINE_LINUX_DEFAULT="text"

and do sudo update-grub. The machine will boot in text mode.

To start the graphical interface you do

sudo service lightdm start

Courtesy: https://askubuntu.com/a/52117/11932 and modified for Ubuntu 12.10.


How do I hide a user from the login list?

There is a great answer to this question on ServerFault: https://serverfault.com/questions/173044/ubuntu-login-page-where-to-specify-users-list-shown/173051#173051


What is uvtool second virtual disk for? (and how does it prevent vm snapshots...)

Answering my own question:

What is my-vm-name-ds.qcow for ?

uvtool relies on Ubuntu cloud images to quickly create virtual machines running Ubuntu
uvtool (namely uvt-kvm) allows the use of cloud-init framework to interact with the VM you are creating
cloud-init needs a way to get some data from you (scripts you want to run, etc.) : this is what my-vm-name-ds.qcow is for

Can I remove my-vm-name-ds.qcow ?

yes you can, but you have to remove cloud-init package from your VM before doing so, otherwise cloud-init will be stuck on boot
so to remove this second disk, first boot into your VM and apt-get purge cloud-init
then, you can remove the disk from the VM definition (using virt-manager or virsh for example)

Why would I want to remove that disk ?

the compelling reason to remove clout-init and its disk is that it is using the raw format: this will prevent you to use the snapshot feature of virt-manager!
after removing the -ds.qcow disk (which in fact is in raw format), you'll be able to access vm shapshots feature


B43 Wireless not working on 2.6.35 kernel

By default when you upgrade from one release to another, all of the proprietary drivers are disabled.  You need to use the 'Hardware Drivers' application to reenable them.


Why would dpkg not auto-rename .conf files on --unpack on an installed package?

Unless the package is purged, it's configuration files won't be deleted.

Configuration files can be modified by users, so we don't delete them unless requested.


Cannot install last version of OpenCV on Ubuntu 14.10

Refer to this StackOverflow question: Installing OpenCV in Ubuntu 14.10

You can cmake with -D WITH_FFMPEG=OFF or manually compile FFmpeg with version 9, as OpenCV needs.


Can't resume from hibernation - glitched screen

If you want to use the Nvidia card, you could try switching to the proprietary Nvidia driver.  I had very similar issues with 20.04 installed on my hard drive. I saw the same type of noisy glitched screen when trying to wake from suspend. After I switched from the opensource X.org Nouveau driver to the Nvidia driver the problem went away.
To switch the driver I opened the "Additional Drivers" application, which came up as the Additional Drivers tab of the "Software and Updates" application. There I saw this option. It took several minutes for the application to load and install the driver.  The effective change took place after rebooting.


Change font color while in invert mode in Evince pdf reader

ev-document-misc.c is a source file in text format, so you cannot run it directly. It is one of the files from which the executable file /usr/bin/evince is compiled.

But you can add the source code to your computer and create an altered evince from these by following these instructions.

Edit your file before you will run the make command.


Can hackers inject anything to the server outside /var/www/html

Assuming you're using a basic Apache2 setup, all apache2 processes and PHP code executed was ran as the user:group www-data:www-data which limits where it can write data. An attacker would likely have access to:

Your SQL databases since the credentials very likely had to be stored somewhere www-data could read, otherwise your web-app (eg. Wordpress) wouldn't be capable of connecting to your database.
Any files in your /home/* directories, except files where permissions were 600 or similar, such as SSH keys. This means an attacker wouldn't have access to your SSH keys under most circumstances.
Any API tokens ore other files stored in /var/www/html
Any configuration files in /etc that didn't have restricted permissions. It's worth noting that /etc/letsencrypt/live has restricted permissions and cannot be read via www-data so your SSL keys should be safe.

In any case I would suggest distrusting any credentials on the system, such as SSH keys, API tokens and issuing new SSL certificates to be safe. You can so do a find / -group www-data to see any files created by www-data since there could be some random areas writable such as /tmp, places PHP sessions are stored, /var/run, etc.


How to run the Software Center (it is not in the Unity cog menu)?

The Software Center is not in the cog menu on the right side of the top panel.

It may be in the Unity launcher already. That's the vertical bar of icons on the left side of the screen.

If not, click the home button (Ubuntu logo at the top of the launcher) or press Super (i.e., Windows), and start typing software center in the textbox until the Software Center appears as a search result. Then click on it to run it.

Alternatively, press Alt+F2 and type software-center (just as you would do if you were running it from the Terminal). Press enter to run the Software Center.

If it wasn't already in the launcher before you ran it, it should appear in the launcher once you've started it. Then you can right-click on its icon in the Unity launcher and select the option to pin it. That will keep it easily accessible in the launcher, even after you've exited it, and it will be easy to run in the future.

This general methods works for almost any graphical program (though the technique for typing the command for it is only applicable if you know the command). For example, if Firefox didn't appear in the Unity launcher, you could search for it, run it, and pin it, all the same way.


Could be a few issues.  The battery itself could have an issue or defect in it, depending on how old the battery is.  I had a laptop I had when I was a lot younger that I always left plugged in and destroyed my battery so it couldn't hold a charge.

Also, how hot does your laptop get?  Laptops typically shut themselves down to prevent damage if they get too warm.  Take a look at your logs, usually there will be some kind of warning in syslog to hardware issues.


Can I dual boot Ubuntu server 14.04 on Macbook Yosemite OS X 10.10.5?

There should be no operational difference in installation, except you might not get a GUI desktop, since it's the server edition...Hope you know bash!


Is there a way to restore everything I had before I corrupt the upgrade to Ubuntu 14.04?

Well as you can see the installation (upgrade) remove every file so they are lost. The program I used (to get my files backs after an accidentally Hard drive clean) photorec .

It's a program that is run from the terminal to retrieve files from a partition.

To install it:

  sudo apt-get install testdisk

To execute it:

  sudo photorec

Follow the next steps that appear you and you could retirieve your files

NOTE: It will include all the files like the ones that were at the other directories in /

Also it may not work because it has the 14.04 there but you could give it a try


This can happen for installed packages that have the exact same version available in multiple apt sources.  apt doesn't track which source you installed a package from, and depending on the order of your apt sources, it can lead to this odd behavior.


Change btrfs Filesystem Block Size While Migrating Ubuntu 18.10 Environment to Larger SSD?

There are many potential technical problems with attempting this transfer. To make a exact copy you would probably use Clonezilla or dd, however you would likely run into UUID conflict if having both disks plugged in at the same time which could destroy data. AFAIK This UUID clone conflict is only a problem with BTRFS and has something to do with the OS thinking the two disks are a RAID array, or not knowing which disk to write data back two leaving the journal out of sync and unclean on shutdown.

This task would be better suited for a Arch system. There may be a difference in partition layout - MFT vs GPT, if it is MFT bootloader data will have to be written to the beginning of the disk by chrooting the new disk and running apt or dpkg-reconfigur grub2 or whatever boot loader you use.

And then there is the problem of in /etc/fstab each btrfs subvolume has a different subvolume ID, so if you were to solve the 4k problem by manually setting the layout on the new disk and trying to rsync all the data, the sub-volume IDs would be different requiring you to know exactly where to change them in the filesystem.

I suggest you disconnect your old disk, and install a fresh ubuntu. And then locate commands to generate a list of all packages installed via apt, and all packages installed via pip, and run a command to reinstall all of those.

After that is done, I suggest rsyncing your /home directories, and assuming that covers 99.9% of your important data, keep the other disk in it's current state to pull anything you missed off of it later.

To my knowledge, the KB sector size of the disk shouldn't really effect performance, but don't quote me on that.

That's the information I would begin to consider when finding the answer to your own problem.


How to fix/diagnose GUI issues on Ubuntu 18.04/18.10?

Try using this repo: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

And try this. Enable root for convenience: sudo -i; enter your password then

apt remove nvidia* --purge -y
apt remove wayland -y
apt autoremove
add-apt-repository ppa:graphics-drivers/ppa -y
apt update
apt upgrade --fix-missing
apt install nvidia-driver-410 -f -y
apt install ubuntu-gnome-desktop -f -y

And (seemingly always) with Nvidia you'd want to add nouveau.modeset=0 to your GRUB. Have you been checking your system log for anything peculiar?


Solved by @MidwayNomand ! In brief :
Check if you are seeing a Bluejeans*.desktop file in this location : ~/.config/autostart/. ~ is your home directory.
delete .desktop file, the log file, restart


Just discovered that I lost a very important folder

If you are sure your files got deleted, or think your drive might be dying, this can be a huge topic (data recovery can get very complex, very fast).

However, before you do ANYTHING, make an image of your drive.
You always want to work/try recovery tools on an image, not the actual drive, just in case things go wrong (the image will contain deleted files that can be recovered exactly as the actual drive).

To do this, install ddrescue. I'm assuming this is not the drive your system is on?
As it has to be unmounted for this, if it is, do the following steps booted from a LiveCD.

sudo apt-get install ddrescue

Now unmount your drive, and find out what your drives path is with

sudo parted -l | less

and look for it, write down it's device name (under Disk, as in /dev/sdX)

Next, make sure you have enough space left somewhere, as much as the original drives size (the image will be the same) and run ddrescue to create an image from it, the command is:

ddrescue -d <drive-to-rescue> <img-to-store> <logfile>

As in

sudo ddrescue -d /dev/path-to-your-drive /path/to/image.img /path/to/image.log

It will now create an image of the drive, this can take a long time (if the drive is damaged, it might have to retry several times). In case you want to stop it, you can, as long as you restart it pointing to the same image and logfile, it should continue where it left off.

Once this is done, unplug your original drive, don't use it anymore (don't write on it especially), try your recovery on the image instead, where things can't go wrong as easily.

As for recovery, that's a little too much to cover here (it's a huge topic). And there are various tools depending on what the files you deleted were, for example foremost is a great starting point for photos, as is scalpel. What tools you want to try, depends on the files you are trying to recover however.
But you can run these on the image file now, instead of the drive. As in

sudo scalpel image-of-your-drive.img -o path/to/output-directory

I'd recommend checking https://help.ubuntu.com/community/DataRecovery
as well as the forensic wiki http://forensicswiki.org/wiki/Main_Page for starters.

Good Luck!


Install alongside Windows 8 is not working

First, try disabling Secure Boot, if you haven't done so already. This feature can sometimes cause this symptom. If that fails, be aware that HPs are known to have buggy EFIs that make dual-booting difficult. Some things you can try:

Check with HP to see if there's a firmware update for your computer. If there is one, install it. You may also need to re-install GRUB after you update the firmware.
Return the computer to the store and buy another brand. This is my #2 suggestion because the problem has existed for months and HP doesn't seem to have lifted a finger to change it. (#1 exists to give HP the benefit of the doubt; maybe they have fixed it, and I simply haven't heard of it yet.) This behavior calls out for action that will get HP's attention, and the best action to take to get the attention of a company is to return their problem products.
In Windows, open an Administrator Command Prompt window and type bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi (change grubx64.efi to shimx64.efi if you're booting with Secure Boot active). This method works on some computers with similar problems, but usually not on HPs. Still, it's worth trying.
Prepare a USB flash drive with rEFInd and test it. If it boots both Linux and Windows, reconfigure your firmware to boot from the USB flash drive by default and leave the rEFInd flash drive inserted in the computer.
Run Boot Repair on the system, select the Advanced option, and click the check box to back up and replace the Windows boot files. This will cause GRUB to be installed in place of the Windows boot loader, and GRUB will be reconfigured to launch the Windows boot loader under its own name. This solution is an ugly hack, and some users have reported that Windows will sometimes undo it, so it's not really a reliable long-term solution.
Install GRUB, rEFInd, or some other boot manager as EFI/BOOT/bootx64.efi on the ESP (that is, as /boot/efi/EFI/BOOT/bootx64.efi) and move or rename the EFI/Microsoft/Boot/bootmgfw.efi file to some other location. With any luck, your target boot loader will then launch. If you use GRUB, you'll need to reconfigure it to find the Windows boot loader wherever you moved it. If you use rEFInd, it will detect the Windows boot loader if you move it to the EFI/Microsoft directory.


WorkAround

wallch icon is shown when the extension gnome-shell-extension-appindicator is turned on and when wallch is running..

when you install wallch it has pre-set preferences to auto start after 3secs..

so If you ever use wallch.. you can simply go to preferences and untick "Start wallch on system startup" option. But when ever you open wallch the icon will be shown.

if you turn off gnome-shell-extension-appindicator nothing will be shown but the downside is It will not show any indicator in the topbar as this extension is turned off..

useful links:
How to disable 3rd party app tray icons/indicators in Ubuntu 18.10?
How to remove app icons in system tray Ubuntu 18 GNOME


Use command
sudo apt-get install ruby-dev build-essential && sudo gem i fpm -f

do not install ruby by snap. In my case it works:
fpm --version
1.12.0

Full article about fpm on ubuntu:
https://www.digitalocean.com/community/tutorials/how-to-use-fpm-to-easily-create-packages-in-multiple-formats


The battery indicator& Power setting panel shows wrong battery state

Can you run the following command and put the output into your question:

cat /sys/class/power_supply/BAT0/uevent

This should contain info such as the POWER_SUPPLY_ENERGY_FULL_DESIGN, POWER_SUPPLY_ENERGY_FULL and POWER_SUPPLY_ENERGY_NOW which will give us a more informed answer to your issue.

[Updated]

So your machine is reporting:

POWER_SUPPLY_ENERGY_FULL_DESIGN=31680000

POWER_SUPPLY_ENERGY_FULL=22050000

..these two fields are static data from the ACPI _BIX control. The first is the design capacity of the battery, the second is the predicted battery capacity when fully charged.

POWER_SUPPLY_ENERGY_NOW=17860000

..and this is from the ACPI _BST control, showing you the current battery charge. This is dynamic and will change.

This data is typically read from the Embedded Controller that talks to the smart battery usually over the i2c bus.  This data is presented to the kernel via the APCI controls so this data is basically what the kernel is given, it has no control over this data but to present it directly to user space applications.

These current values show that the battery when last fully charged got to 69.6% of full battery design capacity.  Also your current capacity is about 80% of the full charge capacity and 56.3% of the theoretical design capacity of the battery.

My guess is that the user space apps are showing you the battery capacity in percentage terms of the full charge capacity.  Maybe windows is showing you the figures in terms of the battery design capacity.  Just a guess.


'Todo list' type of app for Windows AND Ubuntu?

Thank you everyone for the suggestions. I ended up using a free open source app that is available on Ubuntu and Windows called Tasque. It can be found here: https://wiki.gnome.org/Apps/Tasque

The app can store the list locally or via Remember the Milk's API (which is what I decided to use). It's simple and exactly what I was looking for. It says open in the taskbar area of Windows and Ubuntu.


I recently got mine working but I could only do so easily using pulseaudio. Use something like pavucontrol (sudo apt-get install pavucontrol) to control which soundcard to use by default.

In pavu, under the output devices tab, click on the green checkmark button lined up with Schiit USB Audio Device Analog Stereo. Now play some music and enjoy.


Computer boots into 'grub rescue' mode, after not having found the 'grub_xputs' symbol

You have to purge and reinstall Grub 2 from the Live CD.

All instructions are given extremely well on this page: HOWTO: Purge and Reinstall Grub 2 from the Live CD.


Maybe you need to rebuild the apt cache:

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update

http://ubuntuforums.org/showthread.php?t=1983220&page=5


How to access the SD card through my Sony Ericsson Xperia Arc Phone?

I have a Xperia Sony Live with Walkman phone and i upgraded it into ICS 4.0 using official ROM.
I has same problem and i found answer...
You must set connectivity mode of your phone into mass storage mode (MSC). You can found this option through "Settings > Xperia > Connectivity > USB CONNECTION MODE > Change the option from MTP to MSC"
Please notice that your phone must be disconnected when you want to change that setting.

(I have an updated Ubuntu 11.10, 64-bit)

Good luck - Mousavi


Gave up waiting for root device. Fresh Install Ubuntu 14.04.3 LTS

Had the same problem and tried this.
When computer comes on, go to the option which usually works for me it was the first on the grub menu(Ubuntu 14.04) and press 'e'. This takes you to a shell script, use the up, down, left and right keys to navigate. Remove the line beginning with the if statement right up to the fi (the end of the if statement).

To delete go to the beginning of the line and press the 'delete button'.
Go to the line on linux and where you see the root=ro, remove the ro and replace with the name of the ubuntu partition in my case it was /dev/sda3
so something like this:

root=UUID=<long number> ro becomes root=/dev/sda3 ro.

This solution for now is temporary (currently looking for a permanent solution) so it has to be done every time you shut down.

PS: If you don't know how to get the name of the Ubuntu partition go to this link: bootinfoscript.sourceforge.net and do what it says on there.
Hope this helps.
Cheers!


Unable to install Ubuntu 20.04 via live USB (Ryzen 5 3600)

This comment worked for me:

Some with other brand motherboards, but same AMD chip have needed IOMMU changes. turns out the IOMMU needs to be enabled in the BIOS. This problems seems to be exclusive to AMD boards. And then perhaps this: GRUB_CMDLINE_LINUX="iommu=soft"


Laptop: Internal LCD does not get reactivated

I have had the same problem with my Thinkpad T430. I have upgrade from Ubuntu 13.04 to 13.10.

I have solved this problem using these commands. You need to explicit set mode with --mode option, without --mode it won't work:

xrandr --output LVDS1 --mode 1600x900
xrandr --output LVDS1 --mode 1600x900 --left-of VGA1

NOTE: you should change 1600x900 to your screen resolution, to get a list of supported resolutions enter this command:

xrandr

Looks like the wake up / resume script does not explicitly set this after resume from suspend.

Simple automatic solution: create a new file named: /etc/pm/sleep.d/01_thinkpadlcd with below script:

#!/bin/sh
#copy to /etc/pm/sleep.d
LOGFILE="/var/log/sleep.log"

case "$1" in
        resume|thaw)
                echo "Resumed from suspend at `date`" >> "$LOGFILE"
                xrandr --output LVDS1 --mode 1600x900 --left-of VGA1
                echo "Thinkpad built-in monitor turned on"
                ;;
esac

Remember to set execution bit for it:

sudo chmod +x /etc/pm/sleep.d/01_thinkpadlcd


Impossible to connect to server through SSH with Filezilla

Error : Server unexpectedly closed network connection

  ...
  I suspect fzSftp refuses to connect because the server fingerprint has changed

I doubt this. The servers fingerprint is checked by the client and thus the client would close the connection if the fingerprint does not match. But in this case obviously the server closes the connection, which indicates either that the server does not like the client or that the server has a problem by itself.

  The worst thing is that I am able to connect with Filezilla from a Windows computer without any problem!

Then I recommend that you check the difference in the setups. For example it would be possible that you use FTP/FTPS on Windows but not SFTP (i.e. SSH) like you try on the Ubuntu desktop. Or it could be that you use a different password or username. Or that there are restrictions on the server side from which IP address a connection is possible, that there is a firewall in between your client and the server .... You might get some more information when looking at the log files at the server side.


you can do it with

sudo apt-get remove gnome-shell

and for gnome-classic

sudo apt-get remove gnome-session-fallback

this won't break unity.


From your description, I understand you want to connect your usb webcam to other computer via an IP network. As John Siu wrote, they are two different protocols, both in physical part (electrical) and in the software part.

You will always need something who 'speak' both protocols and translate one in the other. Well, translate is not the better word, because what is normally done is grab the packet as is from one medium and transport it over the other medium as a payload.

I've found this project googling a bit:

http://usbip.sourceforge.net/

  USB/IP Project aims to develop a general USB device sharing system over IP network. To share USB devices between computers with their full functionality, USB/IP encapsulates "USB I/O messages" into TCP/IP payloads and transmits them between computers.

This is only the software part, you also need some hardware, and for this you have the pocket size computers like BeagleBoard or Raspberry PI

But there are already assembled tools available in the market like this one:

http://www.camsecure.co.uk/CamsecureUSBtoIP.html

note: I never use neither the usbip neither the CamsecureUSBtoIP. I just wrote this two links to help you in the investigation.


Are you in the same folder as your tar file?


How can I restrict changing of root password to root users only?

I know that you can change the root password easily by dropping to the root shell prompt from the recovery menu, if you select the recovery option on boot. So these other users may just be restarting the system and choosing the recovery option on boot, dropping to that prompt and changing it from there without needing root access.

You could disable this by removing the recovery entry from the grub list using a program such as grub-customizer, which requires root access to run. Once this option is disabled, it will remove the recovery mode option from grub and prevent at least one way by which any user can change the password. Just keep in mind that should the Ubuntu installation stop working properly and require the recovery options, you'll have to find a way to undo this change without access to the terminal (probably through a live CD).

Of course, it could also be that your client simply chooses easy to guess root passwords that the other users can find through trial-and-error. That's worth looking into.


Tab autocomplete in terminal is not behaving properly

It is caused due to acrobat reader.
The file is -

/etc/bash_completion.d/acroread.sh

Removing this file, worked correctly for me.


How to share the home folder with windows on a dual-boot system

Have a look at ~/.config/user-dirs.dir.

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Download"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

So you can also change this file to make it point elsewhere instead of using symlinks (This is user verion and the system wide (default) version of these directories is located at /etc/xdg/user-dirs.conf).

You can even do this command line like so ...

xdg-user-dirs-update --set PICTURES /home/user/Documents/MyPictures

It takes 1 post install script with a couple of lines equal to this one to set this up after you do a re-install.


BumbleBee / getting Nvidia 310.19 Drivers to Work | 12.10

G'day,

I'm not sure if this will help, but I had a lot of trouble getting graphics drivers working in 12.04 on my Optimus machine.

Here is the procedure I eventually used to get it running smoothly: How do I get a Dell Latitude e6420 working?

I hope this helps.


Ubuntu 18.04 alt-tab order is weird when on multiple screens -- any way to adjust?

The GNOME Shell's default setting for Alt+Tab in 18.04 is to switch applications, rather than windows. To change to a window-centric switching behavior, you can access the Keyboard settings app and change the "Switch windows" function to Alt+Tab. You will need to acknowledge that you are removing the current mapping for "Switch applications."

This YouTube video has a more thorough explanation of the setting change.


It's most likely a problem in your MP3s. Install MP3 Diags  and check your MP3 music collection. The program corrects a plethora of problems.

What is MP3 Diags and what does it do?

In a few words, MP3 Diags is a GUI-based application that allows end-users to identify issues with their MP3 files, fix some of the issues and make other changes, like adding track information. It also lets you "look inside" an MP3 file.

Unlike some programs that are designed to deal with a single topic (like fixing VBR headers or adding cover art), MP3 Diags is a one stop solution that identifies more than 50 different issues in MP3 files and provides the means to fix many of them (well, not everything is fixable; you can't make a 64kbps file sound like a 256kbps one.)
Some of the more important issues that are found:

broken tags / headers / audio
duplicate tags / headers
incorrect placement of tags / headers (ID3V2, ID3V1, LAME, Xing, ...)
low quality audio
missing VBR header
missing track info / cover art
broken track info / cover art
missing normalization data
character encoding issues (for languages other than English)

Some of the fixes and changes that MP3 Diags can do:

Adding / fixing track info, including album cover; information can be retrieved from several sources: Internet, clipboard, file name, local files, and (obviously) keyboard
Correcting files that show incorrect song duration
Correcting files in which the player cannot seek correctly
Converting characters for non-English names
Adding composer name to the artist field, for players that don't handle the composer field
Renaming files based on their fields
Changing word case for track info

All infos taken from here


How to install the same host operating system in virtualbox?

No. The ISO carries packages that are unpacked into the target. When you install Ubuntu, you do not get the original packages but only unpacked functional versions. They are not available to Ubiquity and must be downloaded again.

However, if you do have a CD, you can create a new VM and instruct Virtualbox to use the physical CD drive as that of the VM for installation.


How can I run a program (wine) as a distinct user by shortcut?

This is a 4-step process:

Install gksu by apt-get install gksu
Create a bash script that uses gksu - wine to change to the user wine and then execute the commands needed.  (as that script is used by all users, it should probably go in /usr/local/bin.
(For the cautious types: try it in ~/bin first)
Turn X11 forwarding on by adding the following line as last line: export $(dbus-launch) to your /etc/bash.bashrc
Create a link (or a desktop file) to that script and put it on the individual user's desktop.

Pro Tip: If you want to run that link without a password, have a look here


You might want to open a terminal (ctrl+alt+t) and type

sudo apt-get install uswsusp laptop-mode-tools

This should somewhat solve the problem.


Tried to move /home to new hdd, ended up deleting /home

Apparently your new home partition was mounted on both /home and /media/home when you ran rm -r /media/home.

rm -r removes a directory recursively. It removes all the files in the directory first. It's possible to mount a device on multiple mount points simultaneously. If the new home partition was still (or automatically) mounted on /media/home when you ran that command, then its contents are removed. That it was also mounted on /home does not prevent this.

This also explains the rm: cannot remove ‘/media/home’: Device or resource busy error. After removing everything inside /media/home (i.e., all the files on the partition mounted at that mount point), rm attempted to remove /media/home itself. But a directory that has a filesystem mounted on it cannot be removed; attempting to do so always fails with a "Device or resource busy" error.

/media/home was a mount point. It didn't really contain any files, it was just a place in one filesystem to attach the contents of another filesystem. When nothing is mounted on it, it should be empty. Therefore, rm -r is not necessary for removing it--you don't need to recursively delete something when it has no contents to recurse. The usual rmdir command is sufficient to remove an empty directory that is not being used.

Next time, do two things differently to ensure this problem does not recur:

Ensure nothing is mounted on /media/home before you attempt to remove it. To see what is currently mounted and where, you can run mount. Or just run:

sudo umount /media/home

That command is harmless even if the mount point is not being used. (Also, you should pay attention to the output. If the filesystem is currently being accessed through that mount point, it won't unmount the filesystem--but it will tell you that it has failed.)

This is really mainly to ensure that the /media/home mountpoint actually can be removed. But it will also prevent you from accidentally deleting the contents of the new home partition.
Once you are ready to remove the /media/home mount point, use this command:

sudo rmdir /media/home

By using that command instead of a recursive rm, you avoid deleting anything inside, in case you have made a mistake and something exists inside.

This is for safety. Using rm -r would work too, but if you made a mistake, you can remove more than you intend. (It is good general practice to avoid rm -r ... anytime you know or believe that rmdir ... will suffice.)

Finally, note that removing your old /media/home mount point is a totally unrelated step from removing the backup of your old home directory residing on the original partition. For that, you do have to use rm -r /old_home, because there the goal is actually to delete a bunch of files rather than merely an empty directory.


How do I install Ubuntu on a computer without an OS on it?

How to install Linux in under 5 minutes with NixiePixel!

Like any normal installation, use an .iso:

When you install Ubuntu, you will do so via three main methods:

A Bootable USB drive, how do I install this?
A Bootable CD or DVD, how do I install this?*
The wubi.exe installer, which will not be effective in your case

A .iso file is an installable file, which can be installed onto a disc - or in this case, a USB key.

If you already have one of these, you can review the next step. If not, follow this guide.

Booting from a USB or CD/DVD

This is a tricky step because many computers are made by many different manufacturers, so the steps will not be definite, but should still give you a general idea on how to do this.

Each computer comes with this thing called BIOS. It's job is to check that all your hardware and equipment is running, active and good to go. It is also BIOS' job to handle things like the booting of your computer, which is when the operating system begins to load. Before a Windows logo comes up, or a Linux logo or something like that - usually the manufacturer's logo will appear beforehand. This is when BIOS is doing it's work. For instance, most Dell computers have the Dell logo and a blue loading bar below it, and Compaq (HP) has a red screen with a Q in the middle. When this is there, theer may be some text in the bottom hand corners of the screen. They may say:

Boot Options Press F12
SET UP PRESS ESC
Press F5 BIOS

Or similar. So what you want to do is press whatever key you need to enter BIOS. This is usually Esc or F12. You want to initiate something labelled 'Boot Options' or 'Set Up' or 'BIOS' or similar. Keep in mind each manufacturer's BIOS is different.

When there, you will come to an (actually pretty scary looking) awkward computer-nerd looking screen. Note you cannot use your mouse in this screen and must use the arrow keys on your keyboard. Use the Left and Right arrow keys to navigate to a menu labeled BOOT, START UP, BOOT ORDER or something similar.

In this menu, you should have a list of the prioritized start-up methods. It is usually:

HDD (Or 'Hard Drive'/'Hard Disk')
CD/DVD
USB
Network

Or something very similar. If you can't see CD/DVD or USB in that list, your computer does not support booting that way (and basically there is nothing you can do about it. But don't fret: only computers made before 1970 would restrict such a thing. Computers before 1990 may not support USB booting, though.)

Depending on your manufacturer, this process may be different:

If you are editing in the BIOS:
You should use your arrow keys and Enter to rearrange your boot order. If you have a disc, set CD/DVD to the first priority, if it's a USB you're using set the USB as the priority. Press Esc or navigate to the exit menu and save your changes!.
Tip: Read all the information on the BIOS screen, it will no doubt give you instructions on how to do this using your particular BIOS version.

If you are in the boot menu:
Usually by using your Up and Down arrow keys, you should highlight your selection and press Enter to confirm your selection.
Tip: You will be able to tell if you're in the boot menu because there are no other menus, and by pressing Enter it will begin to boot.

If you are having trouble understanding, you can refer to this article with a nice couple of photos of different BIOS'.

Reboot

Follow the prompts!

To answer your kind-of question, whether you have a currently have a OS installed or not doesn't actually matter. It only restricts the use of the wubi.exe installer which is launched in Windows. If you have a smaller computer which does not have CD drive, a USB drive is the best way to go and most newer computer support booting from USB.

Don't forget you can also purchase pre-made install discs for Ubuntu's official store!

Good Luck!

*- Ubuntu 12.04 will fit on CD and DVD, but 12.10 will fit on only DVD


Nautilus doesnt have window border on Gnome shell

Contrary to popular belief, this isn't the way gnome shell apps are supposed to look.

From the webupd8 blog:

Starting with GNOME 3.10, some GNOME applications have switched to "header bars" or "client-side decorations". These CSD (client-side decorations) don't work properly in some desktop environments / shells - for instance, in Ubuntu 14.04, Unity doesn't support CSD and because of this, some applications look broken.

Ubuntu 14.04 or 14.10 users can install gtk3-nocsd by using the main WebUpd8 PPA. To add the PPA and install gtk3-nocsd, use the following commands:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install gtk3-nocsd

Here's an example: to disable the client-side decorations for gThumb 3.3.2, open its desktop file as root with a text editor (I'll use Gedit below):

gksu gedit /usr/share/applications/gthumb.desktop

And in this file, search for the line that starts with "Exec=" and right after "=" and before "gthumb", add the following (without removing anything!):

env LD_PRELOAD=/usr/lib/gtk3-nocsd/gtk3-nocsd.so

After editing gthumb.desktop, the "Exec=" line should look like this:

Exec=env LD_PRELOAD=/usr/lib/gtk3-nocsd/gtk3-nocsd.so gthumb %U

See the source for more information and examples and download sources.


Wireless wont show up on Dell Latitude D620, I am New to LUBUNTU and never used Linux

http://nfolamp.wordpress.com/2011/10/15/ubuntu-11-10-getting-wireless-bcm4311-working/

above URL gave me the commands I needed in Terminal to make this work for me:

  sudo apt-get update

  sudo apt-get install firmware-b43-installer

  sudo apt-get remove bcmwl-kernel-source

  sudo reboot

The remove seemed to be the key I needed for my 1490 a/b/g card.

CTRL+Shift+C works on Mint so here is what I got on my D520... (Yes I have both a D520 and a D620... not a typo)

  owner@Latit-D520 ~ $ uname -a

  Linux Latit-D520 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014 i686 i686 i686 GNU/Linux

  owner@Latit-D520 ~ $ lspci -vnn | grep 14e4

  02:00.0 Ethernet controller [0200]: Broadcom Corporation BCM4401-B0 100Base-TX [14e4:170c] (rev 02)

  0c:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11a/b/g [14e4:4312] (rev 01)

  owner@Latit-D520 ~ $

I then compared my model at http://wireless.kernel.org/en/users/Drivers/b43


Why dpkg says 'illegal package name in specifier' when I try to remove a package?

You're not supposed to pass a deb file to dpkg -r. You should specify only package names to be removed. Once you've install a deb file, information about it is included in dpkg database (/var/lib/dpkg/), and you can use dpkg -r package-name or apt-get remove package-name.

Try:

sudo dpkg -r virtualbox-4.1

or

sudo apt-get remove virtualbox-4.1

Replace "4.1" with the actual VirtualBox version.


What are the key combinations for alphabets ' ऋ ' and ' ॲ ' on Hindi Bolnagari keyboard layout?

For ॲ as in "कॲकोना" (n. a name in Bengoli), the combination would be o i.e. for कॲ the combination would be ko, where is the accent grave key (the lower-case of  key in my keyboard).

No idea for the ऋ combination (I'd use रि, if the grammar allows).

Nepali language too uses the devnagari script. Here's a snapshot of the keyboard layout:

Useful link:

Hold a key to temporarily switch keyboard layout?