No software in Ubuntu 16.04 Software Center

This also happened to me after using BleachBit with root access. Installing another language fixed the issue. Maybe it'll work for you, too.

Steps are as follows.

Open Language Support and Install another language.
Language Support > Install/Remove Languages... > click any language you want and then apply.
Then go to the software center, go to the update tab and refresh it.


Force file extension to open with specific app (Extensions like .exe, .jpg, .mp4...)

You can use the command mimeopen, in a terminal go to the folder where your .exe file is and type

mimeopen -d filename.exe

You will get a popup menu, where you can see some options, but there is also an option 'Other...', choose this one, then type the command which you would use if you would open the file in the terminal and replace the filename with %f. So in this case you would type wine %f.

Now the default association for all exe files should be changed to wine.

Alternative, using Ubuntu-Tweak as described in Change all associations from gedit to another application will also change the default app associated.


I thik it's the 'Blur' effect in CompizConfig Settings Manager. A few days ago I tried to add blur to my transparent Menus and ended up in having this nice shadows (that reflect your Desktop but mirrored vertically). Try disabling the 'Blur' effect and see if the shadows disappear.


Black screen after boot repair and grub lost after third reboot

Some EFIs have amnesia -- they forget their boot settings when rebooting or after being powered off. There can also be problems with another OS (typically Windows) resetting its own boot loader as the default. There are several possible solutions to such problems:

A firmware update might fix this problem, so it's worth trying. In fact, I'd try this option first.
If you're dual-booting with Windows, then in Windows, open an Administrator Command Prompt window and type bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi. Change the path to the boot loader if you're using something else -- note that if Secure Boot is active, you'll be using shim, which is normally shimx64.efi on Ubuntu.
Speaking of Secure Boot, try disabling it -- it can sometimes cause problems even if everything is configured the way it should be.
Copy EFI/ubuntu/grubx64.efi to EFI/BOOT/bootx64.efi on the ESP. (The ESP is normally mounted at /boot/efi in Ubuntu.)
Back up EFI/Microsoft/Boot/bootmgfw.efi (if present) on the ESP and copy grubx64.efi to that name. bootmgfw.efi is the Windows boot loader, and some buggy EFIs boot it automatically.

Those last two items can be done semi-automatically by Boot Repair, although you may need to check an Advanced option to get them to work.


When uninstalling wine application their icons stay, how to remove them?

I went to ~/.local/share/applications  and deleted .desktop files. That did the job.


I need help with increasing the size of the file-system partition. Partitioning-o-phobia!

Most the time I help users with that problem, they don't really miss some space for the system, 20 Gb is large for system files (/). The problem is often that they need to clean useless updates and packages.

Step 1: delete old kernels

If you are using a Ubuntu 12.04 LTS and it is installed for monthes, you have a lot of useless kernels installed with security updates. More, if you are using some restricted drivers for your graphic card, you have too many kernel headers installed. Every kernel and headers take a huge amount of space, and it is usually the cause of lack of your problem.

To do the cleanup more easily, I recommend to install the good old Synaptic package manager. In a terminal:

sudo apt-get install synaptic

Of course, you can do that with Software Center or Aptitude too.

Launch Synaptic, it will ask for your password. In the search tool, type and find linux-image. Select name of the package, not "description".

Then, go at the bottom of the list, keep the two or three latest kernels installed. And going up, right click on older kernels, and select "Mark for complete removal".

Once done, do the same with packages named `linux-headers". Take care to keep the headers coordinate to the images you keep.

Then, click on "Apply" in the top bar of Synaptic. And wait, for it can take some time to remove a lot of old kernels.

Step 2: remove useless packages

The aim is to remove the package your system don't need anymore. This is done with two simple terminal command, for I don't know how to do it with a GUI.

sudo apt-get autoclean

This one removes from local apt-get cache old packages that can not be downloaded anymore. If you want to completely purge that cache, you can instead use sudo apt-get clean.

sudo apt-get autoremove

This one check all dependencies of all packages, and then, automatically remove packages that are not anymore needed by the system or an application. Very useful if you install and removes applications sometimes.

Et voilà !

You should have recover most or your free space.

Please notice that their might be some important amount of data in your system partition:

If you have some databases or a webserver running in the background, you might some data in /var/. It might be good to create a separate partition, or to configure the servers to use files in your /home.
If you have a lot of Fonts files, it will be in the system partition too.
Etc...


TCP SACK PANIC - Kernel vulnerabilities FIXED into Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-176-generic x86_64)?

Of relevance is this Ubuntu Security Notice, USN-4017-1 which listed the following versions of the Ubuntu 4.4.0-series Generic Kernel packages as patched for Ubuntu 16.04.  If you are using a version of the linux-image-4.4.0-ABC-generic packages that is higher than this (i.e. the value in ABC is higher than the

Ubuntu 16.04 LTS:
  ...
  linux-image-4.4.0-151-generic   4.4.0-151.178

Your kernel version is linux-image-4.4.0-176-generic which is newer than the version that is specified in the 16.04 'fixed' version.  Which means, yes, you are patched.


Login screen won't show up on external display after screen lock if lid is closed (xubuntu)

If anyone ever would have this problem:

The issue was related to light-locker. I guess, for some reason system was getting suspended instead of locked, and to wake up from suspension, lid would need to be opened.

What I did, I removed light-locker, installed gnome-screensaver, rebooted and it worked.


Unexpected return from initial read: Volume Corrupt,

In Windows, if you installed a driver to be able to read/write to Linux ext2/3/4 disk partitions, then uninstall it asap, as it corrupts ext2/3/4 partitions.

Lets quickly check your Ubuntu file system...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

Update #1:

use fdisk to identify the EFI partition. It should be a FAT partition.
sudo fsck.fat -a /dev/XXXX

Update #2:

Your EFI partition is not fixable by using fsck.fat. It's corrupt.

You can try using Boot Repair, instructions are found here, and it may or may not, be able to fix the problem. You'll need a Ubuntu Live DVD/USB to proceed. Once booted to the Ubuntu Live DVD/USB, you may first wish to manually backup any important Ubuntu or Windows files to an external HDD.

Otherwise you may have a hard disk problem. You can use the Disks application to review the HDD's SMART data, and test the drive, for more info.

If that doesn't work, you'll either have to manually rebuild the EFI partition, or reinstall Ubuntu.

Update #3:

Boot Repair fixed the corrupted EFI partition, and the machine properly boots into Ubuntu again.


Bad battery life on Xubuntu 16.04 Lenovo T460s

What you can do to increase the battery-life is installing tlp with some additional stuff

sudo apt-get install tlp tlp-rdw acpi-call-dkms

tlp is in the official ubuntu repo since 15.10. More information are available here. The man-page is in english

man tlp

You can also install thinkfan which can reduce the noise-level and can save some energy. You should also install powertop

sudo apt-get install thinkfan powertop

powertop is a really powerful tool writen by intel.


Open Synaptic Package Manager.  Search for pcmanfm.  After finding it, mark it for complete removal.  Apply the change and wait for it to be removed.  Your File Manager should be Nautilus which I believe is the default file manager.  If you want Lubuntu, your best bet is to download the newest LTS version which is 14.04.  Back up all of your data to an external source (hard drive or USB thumb drive).  Make a bootable CD or thumb drive and use it to boot your computer.  Install it on your computer.  If there are things that you do not understand you should ask.  For instance after you download the ISO you need to check the hash (MD5Sum) of the download.  Why do you need to get the new version?  Because Lubuntu 12.04, 12.10, 13.04, and 13.10 have all reached their End Of Life and are no longer supported.  Ubuntu 12.04 and Edbuntu 12.04 which you apparently have installed are supported until sometime in April 2017.  Your choice, (1) you can keep what you got after un-installing PCManFM (2) you can download and install Lubuntu 14.04.


Does the Microsoft Sculpt keyboard or other Microsoft ergonomic keyboards work on ubuntu 18.04 or 16.04?

I'm typing this from a sculpt split keyboard.  It has worked well for the last 1.5 years or so that i've had it.  Recently, my update to 18.04 broke some of my specialty keys (snap window to left half of screen, etc), but other than that, it's been working perfectly.


Redshift is a small program which allows to change display's color temperature according to time of day - i.e. make it more reddish in the night and blue-ish during the day.

You can see if setting a really low "night" color temperature produces a desired result.

If you want to set the color temperature manually, you can use the "one shot" mode of the program:

redshift -o -t 3700:3700 -l 0.0:0.0

and to reset the color temperature back:

redshift -x

It is also possible to toggle day/night mode using the gtk-redshift indicator.


Can we increase the memory limit of PHP directly from the command line?

You can do just about anything from the command line if you're really invested in solving the problem. For what you want to do, though, a couple of simple commands can help you accomplish the goal: grep, sed, and ideally cp.
To see the current value of something, use grep:
grep '^memory_limit ' /etc/php/7.4/apache2/php.ini

Be sure to replace 7.4 with whatever version you want to view at the time.
To replace an existing value, use sed:
sed -i 's,^memory_limit =.*$,memory_limit = 8192M,' /etc/php/7.4/apache2/php.ini

Again, replace 7.4 with the version you want to update and the absurd 8192M bit with the actual value you want to set.
Once this is done, restart Apache with:
sudo service apache2 restart

You now have all the basic elements required to write a custom script to accomplish your goal and, perhaps, go a little further by making it work with any valid setting. For example:
./setPHPvariable 7.4 memory_limit 128M
./setPHPvariable 7.2 max_execution_time 300

Note that it's a good idea to create a backup of the php.ini file before making changes. This is where cp is your friend.


Nautilus does not open a file for view when it has the Execute permission

I'm not certain I understand, but if you remove the execute permission from folders, then you won't be able to look inside them. (So if you removed the execute permission from /var/www, you wouldn't be able to see any of the files inside.)

Try the following in Terminal. (It will modify permissions on everything under /var/www.)

chmod u+x -R /var/www
find /var/www -type f | xargs chmod u-x

Now the folders should be executable (so you can look inside of them), but the files are not.

Does that help?


Unless the program is logging its output into a file, I'd say "no, not directly".

However, there is a way of achieving what you want. Use screen, which is a virtual console multiplexer:

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

(You can also use tmux which is more modern, but I'm not familiar with that so my answer will talk about screen).

Once you get screen installed:

Log into the remote system.
Start screen (just type screen, then read the intro screen, press space).
You'll see what looks like a standard command prompt. It is, however it lives inside one of screen's virtual consoles.
Start your program here.
When you want to leave your program working and log out, first "detach" screen. This "detaches" it from your actual terminal but screen (and the program contained inside it) continue running. The program thinks it's connected to an actual terminal so it will see no difference. To do this, press ctrl-a, then d (ctrl-a is screen's control prefix). You'll go back to a command prompt.
To reconnect to a running screen instance, type screen -rd. This will bring back screen and your running program.

You can of course detach and then log out entirely. When you log back in, you just screen -rd to get your "session" back.

Screen can do a lot more than that, you can have multiple "consoles" open, switch between them, copy and paste data, and even use split views and fancy stuff like that.


Iomega Home Media Network Hard Drive 1TB Cloud Edition failed, data recovery?

Ext3 is like NTFS for Windows, it's THE Linux filesystem, so you shouldn't have any problem recovering your data with Ubuntu (or any other linux distribution).

If you don't see the disk maybe is becayse you are not looking in the right place ;)

First of all there are no drive letters in Linux: disk partitions (or more precisely the filesystem inside a partition) can be attached (mounted) anywere in the directory tree; generally the "non-system" partition are mounted into /media/{partition-label} or /media/{long-sequence-of-letters-and-numbers}.

If you can't see the content of the directories in /media/ you can try to launch the file manager as root (the administrator user) How do I start Nautilus as root?

If you still can't find your disk you can try to open a terminal and type:

cat /proc/partition

The table that is printed on the screen is a list of all disks and partitions that the OS has find in your computer: sda, sdb, sdc,... are the disks and sda1, sda2,... are the partitions inside inside sda disk. From the layout of the partitions you should be able to identify the disk you are looking for and you can try to mount the partition manually. From the terminal type:

sudo mount /dev/sdXX /some/directory


First attempt:

Try the commands with your installed version:

echo "options rtl8723be ant_sel=1" | sudo tee -a /etc/modprobe.d/rtl8723be.conf
sudo modprobe -rf rtl8723be
sudo modprobe -v rtl8723be

Check if you can find wifi.

If you do... just restart and it is ready.

Before go to the second attempt, try with option ant_sel=2 (and again all three commands)

Second attempt:

Go to the source folder of the package installed and uninstall it by running the command

sudo make uninstall

Then run:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms

(I think it is the same package you already installed but it works for my 16.04 and it will accept updates too)

Again all the commands of the first attempt:

echo "options rtl8723be ant_sel=1" | sudo tee -a /etc/modprobe.d/rtl8723be.conf
sudo modprobe -rf rtl8723be
sudo modprobe -v rtl8723be

You should find wifi after the last command.

If not try ant_sel=2 on above options and give all the (3) commands

If it is better:

Restart and ready.

Sources (combination):

https://kharisecario.wordpress.com/2017/03/16/installing-realtek-rtl8723be-wifi-driver-for-debian/

https://ubuntuforums.org/showthread.php?t=2364060&highlight=rtl8723be

https://ubuntuforums.org/showthread.php?t=2363051&highlight=rtl8723be


Run a command after a specific USB was plugged in

Place your script in /usr/local/bin (otherwise this sometimes refuses to work). Then create file /etc/udev/rules.d/99-usb.rules. In it, place the line like

ACTION=="add", SUBSYSTEM=="block", KERNEL=="sd[a-z]1", ATTRS{vendor}=="SanDisk ", RUN+="/usr/local/bin/backup.sh"

Adapt to your needs. Generally, it works, but , however, i've never tried it on Ubuntu.


Ubuntu 14.04 stuck at console mode after graphics driver update

You can try to boot ubuntu in recovery mode. (For how to boot in recovery-mode see this: How can I start in safe mode?).

When booting in recovery mode you will get a low resolution X, so you can log into your desktop and do changes.

From there you can open System Settings and the Additional Drivers and try again.
After this you can boot again like normal to try your new configuration.


I make it working using CompisConfig Settings Manager.

First of all I didn't understand when others shortcuts with Alt start working. I believed It was right after I disabled "Key to show the HUD" in "Ubuntu unity plugin" section is CCSM but they still work now, when I reenable it.

You need to Disable "Key to execute command" in "Ubuntu unity plugin" section and also disable "Run Dialog" in "Gnome compatibility" section.

To disable any shortcut you need click to current shortcut and remove "Enabled" checkbox, then "OK"


Unable to download libtiff4_3.9.5-2ubuntu1.3_i386.deb and libcups2_1.5.3-0ubuntu4_i386.deb

Run sudo apt-get update again.

If that doesn't work, just wait. You might have caught something in the middle of mirroring.


How can I stream my screen to other computers?

Look at Desktop Sharing and/or the Remina Remote Desktop Client. Those were working for me under 12.04.

In late Ubuntu releases (like 14.04), Desktop Sharing was removed from System Settings, but you can still find and use it, and it's provided by the 'Vino' package, installed with sudo apt-get install vino. To setup the package run the vino-preferences command.


Frst you need to make disk image. I recommend you OF Clone or CloneZilla. Then you can use R-Studio for data recovering. R-Studio has also option for image disk. Before you start please check Windows disk manager if disk is detected. If disk make strange noises then is hardware problem.


Kubuntu taskbar requires double click to open minimized window

Ajkain was right, it was a known bug that has been fixed after today's kde and plasma upgrades. If you're using kubuntu you just need to update your packages in order to solve it.


I cannot open Chrome after upgrading Ubuntu from 12.04 to 14.04

I tried these,

sudo apt-get install parallel
sudo apt-get install ia32-libs

It works for me. Hope same for you.


How to get the name of the directories removing the path?

You can get a list of all folders in (exactly one level of sub-directories):

find /path/to/dir -maxdepth 1 -mindepth 1 -type d

You can pipe the result into sed command which will leave only the directory name (without the prefix)

find /path/to/dir -maxdepth 1 -mindepth 1 -type d -print0 | sed -z 's!.*/!!' |tr '\0' '\n'

Example:

$ find /var -maxdepth 1 -mindepth 1  -type d
/var/metrics
/var/lib
/var/local
/var/cache
/var/spool
/var/crash
/var/backups
/var/mail
/var/snap
/var/opt
/var/log
/var/tmp

$ find /var -maxdepth 1 -mindepth 1 -type d -print0 | sed -z 's!.*/!!' |tr '\0' '\n'
metrics
lib
local
cache
spool
crash
backups
mail
snap
opt
log
tmp

Using for loop:

$ for i in $(find /var -maxdepth 1 -mindepth 1 -type d -print0 | sed -z 's!.*/!!' |tr '\0' '\n'); do echo $i; done
metrics
lib
local
cache
spool
crash
backups
mail
snap
opt
log
tmp

for loop re-arranged:

$ for i in $(find /var -maxdepth 1 -mindepth 1 -type d -print0 | sed -z 's!.*/!!' |tr '\0' '\n');
    do
    echo $i
  done


How do I reverse a Google Chrome `sudo apt upgrade`?

As you want to reverse only one package there might be some possibilities. But be aware they are all more or less related to luck and not so much a standard procedure.

The package database has no entries about packages that used to live on your computer. It can only tell you what your current version is and if there is a newer available. You might be able to derrive some intel from the apt log files in /var/log/apt, but don't expect them to give it to you on a silver platter. You will need to figure out what you did when and deduct what the situation might have been before you upgraded.

Whenever you deal with a package repository, it has not histiory of the files that used to be in this repo - it only knows about one, and that is the most recent one. The moment you can upgrade from package-0.1.deb to package-0.2.deb, version 0.1 of that package is already deleted in the repository you are pointing to.

That said: mirror scripts written and configured by humans and they might fail. So perhaps you find a mirror that still has old files. Or you find it somewhere else on the internet - you will need to find the deb package with your version somewhere.

You might be super lucky - or lazy like me and use apt-get clean seldom :) - and find your package in /var/cache/apt/archives/. That happens you can just remove your current version and reinstall from the package using dpkg.

Again, there is no sanctioned way as you usually dont the the package anyway.

To freeze a specific version, you can use pinning. That in short enables you to tell the package manager to use a specific version and only that specific version of a package and never touch.


Why isn't Hibernate in Ubuntu 16.04 working and how to fix it?

This is probably due to changes & regressions introduced in the 4.4.0 kernel such as this with Ubuntu 16.04, but I do have a workaround for 4.4.0:

I first added my swap partition to grub, rebooted, and there was no change. Next I installed the Ubuntu kernel packages with TuxOnIce stable and the option to hibernate appeared, but that failed. I later I installed the package hibernate which uses uswsusp for suspending to disk & ram and that worked. Below are the exact steps to achieve this:

Double check if your swap partition/file(s) are setup correctly in /etc/default/grub; you can do so by checking the location with either cat /proc/swaps or swapon -s.

Better yet, find out the UUID or label of the swap partition/files(s) and use that:

tail -n -9 /proc/swaps | cut -d ' ' -f 1 | xargs sudo blkid

Edit /etc/default/grub by finding the line with GRUB_CMDLINE_LINUX_DEFAULT=, add your swap device(s), and save. To enter the UUID, prefix it with UUID= or /dev/by-uuid/.
Save changes to GRUB:

sudo update-grub

Add the TuxOnIce stable repository:

sudo add-apt-repository ppa:tuxonice/ppa

Install TuxOnIce kernel & uswsup:

sudo apt update
sudo apt install uswsusp linux-generic-tuxonice tuxonice-userui

Restart your computer (sudo reboot;)


Compiz as default Unity 2D compositor

Go to a Terminal and enter:

sudoedit /usr/share/gnome-session/sessions/ubuntu-2d.session

In the fifth line, change metacity to compiz:

DefaultProvider-windowmanager=compiz

Remove window decoration from maximized windows

To solve the window decorator issue, simply run the following in the terminal or Alt+F2 and the window decoration will immediately disappear:

gconftool-2 -s -t string '/apps/compiz-1/plugins/decor/screen0/options/decoration_match' '!state=maxvert'

The same can be done using the CompizConfig Settings Manager, CCSM, if you've installed it already:


Transfer about 1TB data between two Ubutu computers

Yes, you can, NIC adapters nowadays are all Auto-MDIX so you don't need special LAN cable.

Set both computer to fixed ip in same subnet, for example, one 192.168.1.1 and the other 192.168.1.2, with netmask 255.255.255.0

And then use regular sftp or samba to transfer files.


The easiest method I've ever found is to boot into a live Ubuntu disk and then install Boot-Repair and run it using the default settings. It's been much more reliable for me than either Rescatux or Super Grub 2 Disk.

This link includes the repo for Boot Repair.


Let zip read source file list from a file

Yes you can compress multiples files listed in a list text file
As you understood, the -@ option reads the source files names from stdin
So, simply redirect the list to the zip program stdin

zip output.zip -@ < files.list

note that -r is required if the files.list contains directories


Cannot get Virtualbox to install properly on Ubuntu 12.04

That error message is just saying that your processor does not support VT-x hardware acceleration or that it is disabled in the BIOS. VT-x hardware acceleration is a feature that some processors have that make virtualization work better and faster, but it is not required to run virtual box, you should be able to run virtualbox (although slower) with 32 bits guests after installing it, even if you are getting that warning.

Again, one posibility is that your processor does indeed support VT-x, but it has it disabled in the BIOS, so If you tell us exactly what processor you have, we might be able to check if it does support VT-x so you can enable it in the BIOS and get full virtualization support.


I think your nameserver setting isn't correct here. try removing that line and making it 8.8.8.8 (Google DNS which you have set in the NetworkManager). If you look in the query it is using the 127.0.1.1 (Which is a localhost typo of 127.0.0.1)


Installing Ubuntu on an IMAC mid 2010 High Sierra

I've just installed Ubuntu 20.10 on an iMac 2009. I removed HighSierra totally.It was pretty straight forward.

I downloaded the ISO
I created a USB key with balenaEtcher under HighSierra
I rebooted with Alt key pressed and chose the USB key as the boot volume (i.e.: "EFI Boot" instead of "Macintosh HD")
I followed these instructions for single boot and voilà!

I could even run Try Ubuntu before installing it.
Everything worked right out of the box. (except my mouse cursor issue)


Can Ubuntu 64bit be installed on a 32bit computer?

amd 64 versions can only be installed on 64 bit computers. But 32 bit version can be installed on both 32 and 64 bit computers


Just Installed Ubuntu. cant enter passphrase

The original poster reported in an edit that the problem was solved "by connecting the keyboard to the usb3 output."

That was it, I plugged the keyboard into a USB3 card and it started working. Keyboard worked fine in bios and during installation from an onboard USB2.


In Ubuntu, pnm.h appears to be provided by either the libnetpbm9-dev or libnetpbm10-dev, however the path to the file is /usr/include/pnm.h rather than /usr/include/netpbm/pnm.h so you may need to modify the #include directives in your program's source code.

For future reference, you can search package contents online at http://packages.ubuntu.com/ or by installing the apt-file utility and querying its package database for matching filenames e.g.

~$ apt-file search '/pnm.h'
libitpp-dev: /usr/include/itpp/srccode/pnm.h
libnetpbm10-dev: /usr/include/pnm.h
libnetpbm9-dev: /usr/include/pnm.h


How to add more files to a finalized DVD?

You must copy the contents to your hard-drive then add the new files and re-burn.
There is no way to edit any disc after finalizing it, even if its an -/+RW.  Make certain you do not finalize the disc so you can rewrite the same disc.


Ubuntu 16.04 LTS:
I had the same problem, but there is a simple solution:

sudo apt install xserver-xorg-video-mga

... restart X or reboot your system. I don't have a xorg.conf (autodetect) and the resolution is now the right one. Now I have to deal with a very laggy graphical response. I'll update my post, if I found a working solution.

EDIT 1:
I installed the new mga-driver v1.6.5. But I don't have any DRI support. Resizing/redrawing windows is still laggy.

lshw -c video

  *-display UNGEFORDERT
       Beschreibung: VGA compatible controller
       Produkt: G200eR2
       Hersteller: Matrox Electronics Systems Ltd.
       Physische ID: 0
       Bus-Informationen: pci@0000:07:00.0
       Version: 01
       Breite: 32 bits
       Takt: 33MHz
       Fähigkeiten: pm vga_controller bus_master cap_list
       Konfiguration: latency=64 maxlatency=32 mingnt=16
       Ressourcen: memory:91000000-91ffffff memory:92800000-92803fff memory:92000000-927fffff

Xorg.0.log
http://pastebin.com/fjuvrXwg


How to wipe up all partitions on disk and do a clean install of Ubuntu

Yes, if you select "Erase disk and install Ubuntu", this will delete all partitions on the entire disk and create and format new ones for Ubuntu.

This is good enough for personal use if you have no need to irrecoverably wipe all data for security/privacy reasons.

If you feel the need to securely wipe your disk, the simplest way would be to boot from a live Ubuntu DVD or USB drive, select "Try Ubuntu without installing", open a terminal (Ctrl+Alt+T), check which device name your HDD to wipe has using the lsblk command (should be something like /dev/sda) and then overwrite the complete drive with zeroes using the command below (replacing /dev/sdX with the name of the disk you want to wipe!):

sudo dd if=/dev/zero of=/dev/sdX bs=4M status=progress

This will take a while, depending on your disk size and speed. After that, the disk looks like factory-new, no data, partitions or even partition tables left.

After that you can go on installing Ubuntu normally.


"Could not start D-Bus. Could you call qdbus?" error. Any ides how to fix it?

With a command qtchooser -l and the command sudo apt purge qt4* (this link How to remove in correct way qt4 development libraries?) I deleted all qt libraries and installed qt4-default and it helped me. Earlier I tried to reinstall qt, but I think it was not a full uninstall and it cause not working for me.


Black screen after i close the lid and reopen

In Ubuntu 18.04 Gnome desktop, there’s no option in Settings utility for configuring laptop lid close actions. And Gnome Tweaks only offer a switch to enable/disable ‘Suspend when the laptop lid is closed.

Follow the steps:

Open Terminal
Paste the following command in the Terminal
sudo gedit /etc/systemd/logind.conf
Provide your system password if it asks.
Now you need to find the line #HandleLidSwitch=suspend & uncomment it (Remove the # from the beginning).
It will be like the below image:

Save and exit the file.
Now restart the Systemd service using the following command: systemctl restart systemd-logind.service

That's it, This method will fix your issue.


Ubuntu 14.04 LTS Key combination "Ctrl +" will not enlarge window

As it turns out window enlargement and shrinkage is working absolutely fine, I just had to manually reset it from the relevant application's shortcut menu.

The default shortcut simply was not working until I reset it, at which point it worked properly, despite being reset to the same offending shortcut. Just a curious Ubuntu bug I'm sure.


Assigning Unique Local Addresses to the loopback interface

Currently, netplan support for Loopback Adapters is... pretty much nonexistent.  The limited definitions on how to do this in netplan are bleh, and in reality netplan relies on the system itself to handle the lo adapter, and doesn't really touch it or do anything with it.

This said, there are two possible approaches to getting the ULA added, though, to the Loopback interface: (1) using netplan to do it assuming you are not using Network Manager to control your configuration, or (2) using traditional /etc/network/interfaces ifup/ifdown functionality and command calls.

Approach #1: With netplan configuration:

Where your renderer is networkd for your Netplan configurations, you can in theory use this type of configuration to add addresses (from here):

network:
  version: 2
  renderer: networkd
  ethernets:
    lo:
      match:
        name: lo
      addresses: [ "fddb:d20c:44a5:a538::000f/64" ]

Replace the address(es) here with your local IPv6 ULAs.

However, this assumes you're using netplan to configure everything, and aren't handing off to Network Manager for the backend.

Approach #2: Using predefined /etc/network/interfaces loopback definition, with additional ip calls.

This is the 'traditional' approach, but I can't guarantee this will last forever as a working solution.

In many cases, the lo adapter is still defined by /etc/network/interfaces (at least on 18.04 and such).  So, we can leverage those definitions and a few other calls to make it work with ifup and ifdown calls that set up the loopback.

An example of how this would look in the /etc/network/interfaces config file would be like this (where up defines commands to run when bringing up loopback, and down defines commands to run when taking the loopback interface down - they are both here for completeness sake):

auto lo
iface lo inet loopback
    up ip -6 addr add fddb:d20c:44a5:a538::000f/64 dev lo
    down ip -6 addr del fddb:d20c:44a5:a538::000f/64 dev lo

When in doubt, though, the second of these approaches seems to work best.


Possible malware? - Installed wrong package - Ubuntu 18.04

You installed apt install netplan
so assuming you got it from official repositories, it'll be (I'm using web sites over commands as it's easier for readers on this site)
https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=netplan
For 18.04 / bionic that is
https://packages.ubuntu.com/bionic/netplan
I would check the version matches your install (1.10.1-5build1), but clicking on the "Ubuntu Changelog" link, you'll see, along with the date & reason for each change, the email address of the people who have changed it.
Most of which changes are made by upstream devs (ie. Debian) which is where many Ubuntu devs (inc. MOTUs) push changes anyway (less work in the long run though will depend on the cycle & package).
If you trust Ubuntu & it's upstream Debian it's safe


How to open a LibreOffice template in one step?

You can start LibreOffice (the plain launcher, not e.g. LibreOffice Writer directly).

There, instead of clicking on "Create Writer Document", you can click on Templates and select a template from the list appearing on the right to open a new document based on that one:

Alternatively, you could tell it which template to use from the command-line:

libreoffice -n '/PATH/TO/TEMPLATE'

This should work with any template or normal document file that any LibreOffice application is able to open.

You can then bind this command to a shortcut or add it to the context menu of your LibreOffice Writer's launcher icon.


WiFi randomly disconnects and sometimes fails to authenticate again

We notice this in your wireless info:

Pokojicek  <MAC 'Pokojicek' [AN5]>  Infra  6 2437 MHz 54 Mbit/s 78 ▂▄▆_ WEP yes *

Many Linux drivers do not work well with WEP. As well, it is quite insecure: https://en.wikipedia.org/wiki/Wired_Equivalent_Privacy

  In 2005, a group from the U.S. Federal Bureau of Investigation gave a
  demonstration where they cracked a WEP-protected network in 3 minutes
  using publicly available tools.

Almost every device manufactured in the last ten years or so supports the more secure WPA2-AES.

Please check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.


Look at this thread,your solution lies at Problem #2:  Solution #1


chown not working on remote filesystem, other commands (e.g., chmod) do work

Following the suggestion of douggro I was able to get things done properly, even without an entry in fstab:

sudo mount -t cifs //ip-adr-of-seagate/user /mnt/centraldrive -o username=user,pass=password,uid=1000,gid=1000,iocharset=utf8,sec=ntlm,file_mode=0777,dir_mode=0777


The simplest way to solve this problem is with bootchart. It will let you see
which process in the boot up sequence is slowing things down.

  sudo apt-get install bootchart pybootchartgui

Once it is installed just start the gui at the command line with

  pybootchartgui

You have to have at least rebooted once for this to work.

My guess would be that you disks were being check with fsck which happens periodically.


Maybe you didn't remove the program completely. Try follow this instructions: How to remove Telegram?


how to install ubuntu server over dual boot system?

Make installation media for installing Ubuntu Server.
Backup all the data that you want to save from Ubuntu 14.04 and Ubuntu 16.04 to another storage device.
Boot from the Ubuntu Server installation media, and install Ubuntu Server in the usual way. In the Partition Disks screen of the Ubuntu Server installer, you can select one of the Guided - use entire disk partitioning methods.


Paste from clipboard into terminal with down-arrow, possible? :)

The two methods I use to insert text into the terminal from the clipboard:

Shift+Ins
Right click mouse and select 'Paste'


How to hide the Bluetooth icon in the panel?

I believe the correct way, as per the Desktop Application Autostart Specification, is to create user-specific configuration overriding the system default.

cd ~/.config/autostart
cp /etc/xdg/autostart/bluetooth-applet* .
echo "Hidden=true" | tee -a bluetooth-applet*


Use the windows installation disk provided to you with the laptop or buy a windows disk or download a windows version . Install the normal way and you'll have windows in place of ubuntu


In Ubuntu 18.04 and later, ifup/down, implemented by /etc/network/interfaces, is replaced by netplan. Therefore, please revert the faulty entries. From the terminal:

sudo nano /etc/network/interfaces

Take out all the entries except:

auto lo
iface lo inet loopback

Save (Ctrl+o followed by Enter) and exit (Ctrl+x) the text editor.

Next, let's clean up your netplan file:

sudo nano /etc/netplan/01-netcfg.yaml

Change the file to read:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      addresses:
        - 192.168.1.101/24
      gateway4: 192.168.1.1
      nameservers:
          addresses: [192.168.1.1, 8.8.8.8]

Netplan is very specific about indentation and spacing. Please proofread carefully twice. Follow with:

sudo netplan generate
sudo netplan apply

After these changes, reboot and let us see:

ip addr show
ping -c3 www.ubuntu.com


How to use a laptop as an external Wi-Fi adapter for another laptop?

Which programm you are trying to use?

In case you just need the second connection and not the adapter itself, you could use a socks proxy connection via ssh. See Dynamic Port Forwarding - Ubuntu Documentation.


All Source Engine Games Crash a Few Minutes into Gameplay

Don't worry dude got you covered. For some stupid reason, Source Engine games will crash UNLESS they are on the default Steam download storage, since you have other storage, I willing to bet this is the problem. Simply go to Settings and go to Downloads. Go to Steam Library Folders and click your storage when you see it. There should be a prompt to change it to default. Now, you should be able to play your games without them crashing as much. (They might crash if your computer is overloaded.)


Can't paste file into windows partition - do I change permissions?

The disk drive what kind of FS have? normally in linux files create under the NTFS partition had owner root and 777 has permission, this ntfs-3g default options:

UUID=2E741DA1741D6D39   /media/data ntfs-3g     default,rw  0   0
...
/dev/sda1 on /media/data type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

and I had no problem to access data on both installation.

In conclusion yes, you change permission to it and windows should be able to access.


How do I host my own Bazaar shared repositories?

After using Google for 10 minutes, the best documentation I could find was

Running a smart server

(Will update the answer as I find the better answer)


Add this to /etc/rc.local

Using any editor:

Graphical

gksu gedit /etc/rc.local

Command line

sudo -e /etc/rc.local

add / edit the following:

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

service autofs start &

mount -a

exit 0

You could probably improve on that a bit, 4 60 second sleep are probably excessive, I would try one, and increase the number if needed.

Make it executable

sudo chmod u+x /etc/rc.local

Reboot and it should work. If not, try adding a sleep as per the bug report below.

See also Bug Report


GConf Error: No D-BUS daemon running?! How to reinstall or fix?

I had this same problem. In my system the problem is caused for ~/.dbus being owned by root.   Changing ownership me solved the problem for me. I suggest you to check this on your system too.

Changing the ownership can be done with the chown command. For a single file:

chown <user>:<group> file

For a directory and its children:

chown -R <user>:<group> folder

So, in this case,

chown -R <your user>:<your group> ~/.dbus

should work.


Try these solutions:

From your cli remove the .Xauthority file. Some people have reported that they also needed to remove the .xsession-errors files.

sudo rm .Xauthority
sudo rm .xsession-errors*

Finally some people have reported that ownership and permissions on their home folders were set incorrect. Not sure if this will help but it's worth checking:

ls -l /home

you may have to give ownership back to your account using chown

sudo chown -R username:group /home/username


Creating a Live CD with Gnome-Classic as default environment?

Please look here - https://help.ubuntu.com/community/LiveCDCustomization

However, I would do this in the following way to avoid those command line hurdle.

Install ubuntu in virtualbox.
Install gnome-classic and remove unity. Also you can install softwares required like vlc,mp3 codecs.
Use remastersys to create an live image.


How can I prevent Skype from starting automatically on boot?

For the new 2017 version of skype that's impudent enough to add itself to autostart each time it's started (seriously? Never installing it on my own machine) it's enough to create a folder with the same name as a file it's trying to create:

rm ~/.config/autostart/skypeforlinux.desktop
mkdir ~/.config/autostart/skypeforlinux.desktop


Ubuntu desktop not loading and only booting to command line

Found a half-solution, so i will answer my own question.

All I did was set default DM to LXDM, and surprisingly, that worked. So I guess I will just have to manage with this.


Use:
subprocess.call(['xdg-open', '/home/username/bomb.mp3'])

bomb.mp3 (or alarm.wav) is not a program or script you want to run, but a file you want to open. As your goal appears to be to open it in whatever graphical application is currently registered to handle it--which is what at least one of the earlier versions of your script did when run in Windows--you should use the xdg-open command.
Besides using xdg-open, I've also added a leading / to the front of the path, without which it is resolved relative to the current directory (which would presumably fail except when the current directory is /).

The first version of your program, or something similar to it, may have worked on Windows because, on Windows, non-executable files can be run as commands. This causes them to be open with whatever program their file type is associated with. Most operating systems and most shells do not behave this way. Windows also provides a command for doing this (with slightly different semantics) called start. But other operating systems, such as Ubuntu, don't have start. So when you tried that on Ubuntu, it didn't work either.
What Ubuntu has is xdg-open. Ubuntu is not alone here--xdg-open doesn't work in Windows or macOS, but it does work on systems with graphical desktop environments that follow the freedesktop.org standards. This includes just about any GNU/Linux system (and some other Unix-like operating systems) if the user has a graphical desktop environment installed.
For the xdg-open command to actually succeed, the user must be logged in to a graphical session.
(On macOS, you'd use open.)


libdjvulibre21 failed installation/upgrade to version 11.10 of Ubuntu

Remove the file /var/cache/apt/archives/libdjvulibre21_3.5.24-8_i386.deb and try again to install the package.


It was removed for being unmaintained, but you can use mate-search-tool instead which is available from the repository and is exactly the same thing.

sudo apt install mate-utils
mate-search-tool

As an alternative you can use searchmonkey which performs the same task.

I've been using it for awhile now and I like it a lot better because it will show you a preview of how your search phrase is used in each file allowing you to quickly scroll though the resulting files without having to manually open each one up.

As a side note, if you're searching the entire filesystem, searchmonkey gets lost in /proc and takes forever. To solve this I use the find command with -xdev to search only real files in the current filesystem like so:

find / -xdev -type f -print0 | xargs -r0 grep -Hi 'your search string here'


Why does pip -t not work on Ubuntu 15.04?

I ran into the same problem and what I noticed is that the pip in the default distro is old 1.5.6 the current released version being 7.1.0. Since is hard to track down the issue, looking there and there for the "needle in a hay stack" I removed it and installed it manually as suggested in the following :

This comment : https://github.com/pypa/pip/issues/1093#issuecomment-103127883
referenced in this stack: https://stackoverflow.com/questions/19460232/pip-list-crashes-with-an-assertionerror

Remove pip:

sudo apt-get remove --auto-remove python-pip

Download the install script :

wget https://bootstrap.pypa.io/get-pip.py

Install it back:

sudo python get-pip.py

Link commands to bin :

sudo ln -s [PIP_HOME]/bin/pip /usr/local/bin/pip
sudo ln -s [PIP_HOME]/bin/wheel /usr/local/bin/wheel
sudo ln -s [PIP_HOME]/bin/easy_install /usr/local/bin/easy_install

Where [PIP_HOME] is the directory of the pip package.

now when I run pip -V puts out :

pip 7.1.0 from /home/tiberiu/.local/lib/python2.7/site-packages (python 2.7)

Back to my root problem the command pip install -r requirements.txt -t lib success with the newest version.


Problem with installing testdisk in Ubuntu 14.04 LTS

Probably jsut need to do a

sudo apt-get update

first, and if testdisk's still not available you may need to use the universe, restricted, multiverse "sections" of the repos, see the possible dup. question "Unable to locate package" while trying to install packages with APT or Ubuntu's Repositories help.

But are you positive your partitions were all deleted? Maybe the bootloader was just changed... If you're still running Ubuntu, or running a live dvd/usb, the command
sudo parted -l
(and maybe sudo fdisk -l if you're using MBR only) should list all your local disk partitions & current device names, maybe they're still there.

If they were all deleted, then further writing to the disk could overwrite more data, and doing as Takkat suggests would be the best idea. I don't think you can repair a hard disk with testdisk while it's mounted anyway, and having a backup copy to "play/fix" with would be the safest option.


ubuntu 19.04 and mysql 8.0.15. Cannot upgrade to 8.0.17

Check the contents of the file /etc/apt/sources.list.d/mysql.list.

It should have a line with the contents (disco being the codename for Ubuntu 19.04):

deb http://repo.mysql.com/apt/ubuntu/ disco mysql-8.0

You can also run the command apt-cache policy mysql-server to see which versions are available from where.


How to prevent users from renaming files while providing write permissions on Linux

Quoting Stephane Chazelas from this answer on Unix & Linux SE.

  To rename a file, write permissions to the file don't matter, renaming
  a file is a change to the directory, not the file. That's changing the
  directory entry to have a different name pointing to the file.

  So all you need to do is change the permissions of the directory. For
  instance:

chown root: .
chmod 755 .

  That will prevent users from renaming files in there, but also from
  creating or deleting files. If you still want them to be able to do
  that, you could instead make the directory writeable but also set the
  t bit. With that bit set, users (other than the owner of the
  directory who is not restricted) can only delete or rename the files
  they own.

chown root:people-who-can-create-file-here .
chmod 1775 .
chown root:people-who-can-modify-the-files file1-that-must-not-be-rename ...
chmod 664 file1-that-must-not-be-rename ...


A good tool for formatting partition aside Gparted

cfdisk is one good tool tool for partitioning. Run in command-line as sudo cfdisk


Best way to create a bootable USB volume for testing potential PC purchases for compatibility with Lightworks under Linux

Testing with the free graphics drivers

If you intend to test the performance with the free graphics drivers, I would recommend that you make a persistent live system. You can use the tool mkusb for this purpose.

A [persistent] live system is very portable between computers, so likely to work when you have the opportunity to test a new computer.

Testing with a proprietary nvidia driver

If you intend to test the performance with a proprietary nvidia graphics driver, I would recommend that you make an installed system, that boots in UEFI mode.

Recently I answered a question here at AskUbuntu, that should help you make such a system.

Boot Ubuntu from external drive

(Of course, in addition to those instructions, you should install an nvidia driver, that is likely to work with the graphics chips/card that you want to test, and your particular software, Lightworks.)

Custom live USB volume

Unless you already know how to do it, it is probably too difficult to create a custom live USB volume for this purpose.

Borrow a PC

Installed systems are portable, but not as portable as [persistent] live systems.

Mac computers are different from the standard PCs that are delivered with Windows, so I suggest that you borrow a standard PC to build the test volume, if you want to make an installed system and test with a proprietary nvidia driver. It would help if the computer is rather new to have hardware that is similar to what you intend to test (and of course boot in UEFI mode).

UEFI/BIOS system

You might have to turn off secure boot in order to make the computer boot from a USB drive. This is different between computers, depending on the UEFI/BIOS system. I don't think that all sales people can help you with that; you might need some research before visiting the store in order to succeed.

Several HP computers boot only from USB via grub if there is an MSDOS partition table, not if there is a GUID partition table, GPT.

Some UEFI/BIOS/motherboard systems are extra tricky, and you need some special boot option to make the computer boot from USB. Sometimes it seems like the manufacturers use non-standard features and tweaks to make it difficult to boot anything but Windows.

Preliminary testing

I suggest that you test your USB drive in some computers, before visiting the stores and the real testing. You can ask friends, relatives and colleagues to try in their computers. This way you will get a feeling of how easy it will be  to do the real testing. Maybe you have to modify the system in order to make it more portable.


How can I find out what ibus-daemon and ibus-ui-gtk3 are doing?

This is  the intelligent input bus - is an input method  framework for multilingual input. If you don't use any different keyboard layouts for ex. japanese /asian etc.

Try to disable it in System Setting -> Language (something like input method from ibus to none)

Try to killall ibus-daemon and tell us if cpu is still has a high load.


How can I access debug info for failing VPN connection via Network Manager?

This applies here as well:

Log is written to /var/log/syslog.
Open a terminal and write tail -f /var/log/syslog.


How do I make my touchpad buttons work on a Probook 4520s?

Just try tap (not press the button) in right bottom corner. It works for me.


juju deploy ceph hangs in pending in maas environment

Juju attempts to start a new machine and use cloud-init to inject the script necessary to download and start a juju agent process.  This process then contacts the juju state server (machine 0) and check in.  The status remains in pending forever until the client checks in.
If anything goes wrong with this process then the machine stays in pending state forever.
The simplest solution with juju and it's cloud thinking, is to just remove the unit and wait for it to clean up and power down the server and then add a new unit and let it deploy it all again.
If it continues to fail after several retries, then it is more than likely that there is something wrong with your networking configuration.


How to show an application icon in the notification bubble?

Finally I figured it out.
My icon is in /data/media, so I used get_media_file from helpers.py

from easy_stopwatch_lib.helpers import get_media_file

and then I did:

        Notify.init ("easy-stopwatch")
        icon = get_media_file("my-icon.svg")
        notification = Notify.Notification.new ("Title", "some text here", icon)
        notification.show ()

and everything is working.


Ubuntu 18.04 3D acceleration on VirtualBox

Using the .iso provided in the Ubuntu repository (https://packages.ubuntu.com/bionic/all/virtualbox-guest-additions-iso/download) resolved this issue for me on Virtualbox 5.2.8. On Windows just download and extract the .iso using 7zip or similar.


How to comment 20 lines of Python code on vim?

In vi:

navigate to the line where you wish to start commenting out
enter command mode (Esc then :)
type .,+20s/^/#/ or .,+20s/^/"""/ and hit Enter


LibreOffice takes 30 seconds to start. OO started almost immediately

Only applicable to older versions (pre-6.x)
Try using the systray quickstarter. Openoffice most likely is, and that is why it starts immediately.


How can I get a "Busy" status option in the Me Menu?

Do you have "Notifications" switch under the status list? If you disable it, your status changed to busy automatically.

It's not something that will disable all notifications like network notification or other apps notifications though. It will only disable your chat notifications.


Why not try the instructions from here? (Disclaimer: haven't tried myself, but might do so if i find the time...)

http://fcns.eu/2012/04/29/fingerprint-reader/

The fingerprint reader on your device should be

Bus 001 Device 003: ID 147e:2020 Upek


I am using Gufw (https://help.ubuntu.com/community/Gufw) on some computers where I don't want to bother with command-line.

In Gufw you can enter a name for simple and advanced rules that you add. In name of the rule you can enter some text that will remind you, why you entered it. You cannot enter a name for predefined rules, but I guess you don't need description for them.


You can always boot from a LiveUSB and access your files.


How to drag and move icons in Ubuntu 18.04.1 favourites bar?

I had the same problem and solved it using the dconf editor.

Install dconf by going to a terminal by pressing Ctrl+Alt+T and type:

sudo apt install dconf-editor
dconf-editor

to install and then run dconf-editor.

Afterwards:

Navigate to org/gnome/shell.
Select favorite-apps toward the bottom of the screen (You may have to scroll down).
Highlight the text for the app you want to move and drag to it's new location (be careful with the location of commas and quotes).


How to trigger Offline data collection with Smartmontools?

referring to the smartmontools site:

  Column Updated
  Some SMART attributes values, that are updated only during off-line
  data collection activities are labeled "Offline" in column "UPDATED".

How to enable "Offline data collection":

smartctl --offlineauto=on


SMB is giving me NIGHTMARES, shares show but I can't access any folders

Well I recommend to do the following from the kickoff. All commands to be run are root user or with sudo to avoid privilege issues.

Install samba service packages.

sudo apt-get install samba samba-common python-glade2 system-config-samba

Backup Samba default config file.

  cp /etc/samba/smb.cnf /etc/samba/smb.cnf.bak

Create Required directory location- preferably a large volume for max storage.

  mkdir -p /data/SambaShare/PublicShare

Change permission and ownership of created directories.

  chmod -R 0775 /data/SambaShare/PublicShare

  chown -R nobody:nogroup /data/SambaShare/PublicShare

Edit samba config file
According to your requirements edit the following entries.

  vi /etc/samba/smb.cnf

[PublicShare]
comment = My Public Share
path = /data/SambaShare/PublicShare
writable = yes
browseable = yes
public = yes
hosts allow = 127. 192.168.
guest ok = yes

Note: Assuming your internal IP range starts with 192.168.xx.x, so y host allow = in the above code has 192.168. if it differs in your case try editing accordingly, but dont miss the spaces given between host's range.

The PublicShare folder is now accessible by all without user and password. If you require Group and User for managing you can, then you need to add "valid users = "in the above code. You can opt your preferred name and change accondingly. Codes are self explainatory.

Add a group for Samba "mysmbgrp":

addgroup mysmbgrp

Add a user for group mysmbgrp

adduser user1 -G mysmbgrp

Assign a password form samba users to login

smbpasswd -a user1

Enable user account for Samaba login.

smbpasswd -e user1

Restart services.

sudo service smbd stop

sudo service nmbd stop

sudo service smbd start

sudo service nmbd start


If you have already tried to really shutdown your pc , from Windows if you have dual boot, and if you did a Ubuntu software update, you can copy and run successively these 2 commands in a terminal  :

sudo apt-get  purge    alsa-base alsa-utils  alsa-tools

sudo apt-get  install   alsa-base alsa-tools alsa-utils alsa-tools apturl nautilus-share software-properties-gtk  ubuntu-desktop ubuntu-drivers-common

then reboot and test.


NO_PUBKEY error for apt-get update behind proxy

sudo -i
export http_proxy=http://foo.bar.com:1234 # change this to the correct values
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 737F9811F93FF666
exit

Hope that works for you.  If it doesn't then maybe post the error you get


problem installing Epson Iscan for V370 scanner in Ubuntu 16.04

In terminal...

cd /etc/apt/sources.list.d # change directory

grep -i earth *.list # note the name of the found file

sudo pico google-earth-pro.list # edit the file using the above found filename

change:

deb http://dl.google.com/linux/earth/deb/ stable main

to:

deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main

control+o # to save edits

return # to confirm the filename to save

control+x # to exit the editor

Update #1:

To solve the new errors that you detailed...

In terminal...

sudo rm -i /etc/apt/sources.list.d/google-earth-pro.list.save.1

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

then run Y PPA Manager and click the Advanced icon, and select Try to import all missing GPG keys and Try to fix all GPG BADSIG errors.


I want to print a user specified number of labels without opening Libreoffice

That is very simple with zenity. Expand the script with a command like this:

NUMBER=$(zenity --entry --text="How many Labels should be printed?" --entry-text=1)

The variable $NUMBER now contains the input from the user. If the user just presses "OK" it will contain "1".

Unfortunetly libreoffice doesn't accept a flag to specify the number of copies. So you have to run the libreoffice command multiple time when printing multiple copies. But, you can instead use libreoffice to preprare the file and then use lpr to do the actual print:

libreoffice --print-to-file --printer-name printername --outdir /tmp/ file.doc
lpr /tmp/file.ps -${NUMBER} -P printername
rm /tmp/file.ps

lpr accepts a number of copies flag -#.

EDIT:

If lpr is not working for you just call libreoffice multiple times:

for (( c=1; c<=${NUMBER}; c++ )); do
  libreoffice -p file.doc
done


Recent update to 16.04 causes Unity to crash whenever the Search tool is used

Got proper assistance on the "Questions: Ubuntu" at https://answers.launchpad.net/ubuntu

Problem was caused by using the mesa drivers from the X-Swat PPA.  Reverted back to mainline and the problem has been solved.


how to concatenate path with variables from source file

You can use variables declared in a file by using source filename in your shell script.

Example:
This is how my directory looks like:

.
├── .foorc
├── foo.sh
└── testdir
    └── file.txt

The content of .foorc:

directory="./testdir"
word="World"

The content of file.txt:

foo-bar

The content of foo.sh:

#!/bin/bash

source .foorc

echo "Hello $word"
cat "$directory"/file.txt

Now, running./foo.sh results in:

Hello World
foo-bar


How do I set the max processor state in Ubuntu?

Easiest way to do this is probably using TLP, you can see e.g. the scaling options here: https://linrunner.de/en/tlp/docs/tlp-configuration.html#scaling. Of course all the settings here modify something in /sys but it's probably safer doing it through TLP.

Unfortunately TLP doesn't do fan control, but you may want to look at this answer for alternative methods.


Try making firmware version 22 unavailable. This can be done by renaming the file.

cd /lib/firmware
sudo mv iwlwifi-8000C-22.ucode iwlwifi-8000C-22.ucode.disable


Depends on how you write the loop; unless you background the rsync commands with the & symbol, the rsync commands will run in sequence.
rsync will return a useful exit status. These are listed in rsync's manual page. man rsync | less '+/^EXIT VALUE'. You have to decide whether you want to abort the whole script when one fails, or attempt to run the others, then provide an error summary at the end for the ones that failed.
rsync has various ways to decide whether to copy a file or not. The default is to check the size and last modification time of the source and destination files. If both match, it skips copying that file. That's usually good enough.


How to use Compiz as the window manager for Unity

You can't use compiz for the current Unity version, the compiz integrated version will be available in 11.04 (Currently in development).


Apart from VPN solution, you can use some tools such as the "Glasnost test" to compare your download speeds for different protocols. If no throttling activities are occurring, your download speeds should be comparable, if not identical, for HTTP apps, P2P apps and on demand video streaming services. If not, it means that the server you are accessing is slow, or that your ISP is throttling those particular types of content.

However, modern networking is complicated. Something like Netflix will have lots of servers, in many countries. You may turn out to be accessing a server that's overloaded for some reason, for instance. Big content delivery services are very likely to be geographically distributed, so things may be different in different countries.
In general I think it's safe to say that most ISP throttling should be constant and predictable. If it's not constant then probably something else is going on.


no GUI after upgrade to kubuntu 18.04 nvdia GeForce 840M strongly suspected

I think it is a problem with nvidia drivers. After login to console check journalctl -xb and look on Xorg part of logs. If you have kernel 4.16 probably you should try to install v396.24 - downloadable from nvidia support site. Check what show
dkms status


WiFi stopped working and won't unblock - possibly after linux-firmware package update

Finally got WiFi to work - using an external adapter! Only took eleven months.

First, I tried a Penguin PAU06 adapter, but even with their support, I couldn't get it to work.

I just bought another WiFi adapter from ThinkPenguin and at first, that didn't work either. But they had instructions on how to disable the internal WiFi card (inside the notebook) and that's what made the ThinkPenguin adapter work. It also made the Panda work.

The trick is:

Find its ID (I'm not sure what type of ID it is. I think it's a hardware device ID):

bigbird@sananda:~$ realpath /sys/class/ieee80211/phy0 | cut -f 6 -d '/'
0000:07:00.0

And then create a udev rule that disables it and put it in /etc/udev/rules.d/81-wireless-pci.rules:

ACTION=="add", KERNEL=="0000:07:00.0", SUBSYSTEM=="pci", RUN+="/bin/sh -c 'echo 1 > /sys/bus/pci/devices/0000:07:00.0/remove'"

Note that the ID gets inserted in two places in the above command. The actual ID will probably be different on other systems.

I'm not sure if it was necessary, but I rebooted after adding the above file.

Since finding USB WiFi adapters that work on Linux is apparently worse than getting video cards to work, here are the two models that now work on my system:

Panda PAU06 - N300
ThinkPenguin TPE-N150USB - N150


How can I sync my contacts' information in Empathy with Evolution address book?

I think this is currently not possible, but recently a project was started that is supposed to tackle this problem for many applications: libfolks.


Try to remove your Wired connection and remake it. I think you might have some problems with your route.


Why window names are appearing in brackets? How I can remove them?

The brackets indicate minimized windows. Non-minimized windows have no brackets.


how to open a file and take screenshot and close?

This is a Simple Matter Of Programming (SMOP), but since you want to have two things happening at once (display .pdf, take screenshot), it's not a one-liner.

Read man bash;man kill;man xpdf;man gnome-screenshot;man basename and, again, man bash.

Then write a simple bash script to do what you want, something like this ./tryit:

#!/bin/bash
if [[ "$1" = "-d" ]] ; then
    shift
    set -x
fi

screenshotdir="/tmp/my_screenshots"
[[ -d "$screenshotdir" ]] || mkdir "$screenshotdir"

while [[ "$#" != 0 ]] ; do
    # thisone is the one we're processing this time
    thisone="$1"
    # look at a different one next time
    shift
    outfile="$( basename -s .pdf "$thisone").png"

    # display the file, in the background
    xpdf "$thisone" &
    # remember the PID
    pidofxpdf=$!
    # give xpdf time to start
    sleep 3
    # take the screenshot
    gnome-screenshot --file="$screenshotdir/${outfile}"
    # kill the xpdf
    kill -9 $pidofxpdf
done
exit 0

Then make it executable

chmod +x ./tryit

Finally, generate the list of filenames and feed it to tryit:

find directory -maxdepth 1 -name '*.pdf' -print0 | xargs -0 -r ./tryit -d


Execute commands on a server running under a system account

bodhi.zazen mentioned possibly "running in screen". I'd not heard of screen before, but it seems to have solved the problem.

First, I had to delete the minecraft user and re-create it as a normal user. Then I gave the minecraft user the necessary permissions to the minecraft server folder (using chmod). After I successfully started the minecraft server from the new minecraft user account, I stopped it and started a screen session:

and then started the minecraft server back up again (within screen):

I then used the standard screen shortcut to detach from the screen (Ctrl + a then just d). The minecraft server continues to run in the backround:

I can easily reattach to issue commands using screen -r:

I can end my SSH session without shutting down the server, then log back in from a different machine. For example, here I am logging back in using an android phone and JuiceSSH:

(noitce that you can see the commands I previously issued, since the screen was never terminated)


ubuntu 20.04.2 pi-hole install cmd not working

First mistake is you put an I before bash rather than a | (vertical bar). Second mistake is you did the install command wrong. It's sudo apt install curl without any command line options after.
So it's the following for pi-hole install:
sudo apt install curl
curl -sSL https://install.pi-hole.net | sudo bash


Install Haskell (hugs) - Package not found

You will need to type sudo apt-get install hugs as the Package does exist in 10.10 Alternatively you can download it from the Software Center


Starting Steam games by typing the path - where are they?

Steam games are installed by default in directories under /home/<user>/.steam/steam/steamapps/common, where <user> is your username. For example, if you have Europa Universalis IV installed, you can start it from the terminal using /home/<user>/.steam/steam/steamapps/common/Europa\ Universalis\ IV/eu4.

The Steam binary is located by default at /usr/games/steam. It should be in your $PATH (the shell variable defining the places that the shell searches for binaries), so you can find it using which steam and you can run it by simply entering steam.


Change the name of many files at the same time

mmv is such a command (available to install from the universe repository).

NAME
       mmv - move/copy/append/link multiple files by wildcard patterns

e.g. in your case

mmv 'cv.*' 'Official_Curriculum_Vitae.#1'

Otherwise, either

prename -v -- 's/^cv/Official_Curriculum_Vitae/' cv.*

or regular mv with a simple shell loop

for f in cv.*; do mv -v -- "$f" "Official_Curriculum_Vitae.${f#cv.}"; done


No wifi after installing Ubuntu 18.04lts on ho stream

I had to manually turn on my wifi with network manager and add the device.

Start with "sudo nmcli radio wifi on".  From there, you can manually add the interface via the gui.

Hope that helps.


How to set Keyboard Shortcut for moving windows across Monitor in GNOME?

The gnome keyboard settings show the shortcut to move a window to another monitor is Shift + Super + (Left, Right, Up or Down).  If this doesn't work for you check in Settings > Keyboard > Shortcuts(tab) > Navigation and see what the setting is for you.

Gnome versions < 3.18 (as far as I know) can get the same keyboard shortcuts using the Put Windows extension from extensions.gnome.org.  Settings for the extension can be changed using the gnome prefs tool (gnome-shell-extension-prefs)


partition not mounting permanently after installing ubuntu 14.04 on windows primary drive

I mentioned that i installed ubuntu on windows primary partition, that means the windows is removed right now and only the windows loader partition is remained. so there is no windows to sign in and fix the errors!


Question 1. RAM

It is suggested that you read this message carefully.

It says;
Testing 2048M - 3070M :  1022M of 4093M
This means that currently MemTest is testing memory block from 2048M to 3070M which is of 1022M size. Hence it says 1022M of 4093M. No issues here.

Question 2 and 3.  CPU

Core 0 (SMP disabled) means it is using Core 0 (first core). SMP for symmetric multi-processing is disabled meaning it will not use multiple cores. This is not a problem.

Next and importantly, you should NOT depend on the MemTest86+ for CPU core counts. This is memory testing library and it just uses CPUs to execute this testing. For truly checking CPU details, when running Ubuntu, go to terminal (Ctrl+Alt+T),
and run,

lscpu

You will get something like this;

Another command is nproc (this gives total processing units, depends upon hyperthreading). Since your CPU does not have hyperthreading this will report the total cores.


How to remove the tips within Nautilus 3.6?

No, there is no way to remove the tip in the bottom left/right edges when you select a file or folder showing it's information.

This has been called floating status bar and the gnome developers wants to remove the old status bar also!! The old status bar is still available in 12.10. If you select from menu → View → Status bar, the old status bar will be activated and you will get rid of the new floating status bar. You can use this as a workaround.

There is a recent commit in nautilus source to remove the old status bar completely. The commit can be seen here. The main line of importance there is this two one:

  Remove the statusbar
  We use a floating status bar now.

If you don't want this feature, I would suggest you to compile the nautilus yourself.


How can I remap usernames when printing to a shared printer?

I have now solved this problem. I've added the real printer as normal, then created a new cups backend script called /usr/lib/cups/backend/remap :

#!/bin/bash

if [ "$#" == "0" ]; then
    echo "network remap \"Unknown\" \"Username remap backend\""
    exit 0
fi

DEVICE_URI=$(echo ${DEVICE_URI} | sed -e "s/^remap/ipp/")
FINAL_CONTENT_TYPE="application/vnd.cups-postscript"
PPD="<path to real printer ppd>"
PRINTER="<real printer name>"
JOBNUM=$1
USER=$(ypmatch $2 usermap)
if [ "$?" == "1" ]; then
    exit 1
fi
JOBTITLE=$3
COPIES=$4
shift
shift
shift
shift
cat | /usr/lib/cups/backend/ipp ${JOBNUM} ${USER} "${JOBTITLE}" ${COPIES} "$@"
exit $?

I've then added a new fake printer using this backend. The script assumes your fake printer and real printer have the same location but different protocol, so for example:

remap://server:631/printers/printer_name
ipp://server:631/printers/printer_name

It replaces the "remap" with "http" in the DEVICE_URI environment variable, updates some other environment variables, looks up the mapped user (in this case based on a custom NIS map) and runs the job on the real printer using the ipp backend but with the updated username.

Cups backends expect arguments as follows:

$1: CUPS job ID
$2: user name
$3: job title
$4: number of requested copies
$5: print job options
$6: print job file (with path)

If $6 is empty, it expects input from stdin.


Printer Idle - No suitable destination host found by cups-browsed

If you cannot purge cups-browsed because of dependency problems, you can stop it functioning with
systemctl mask cups-browsed

There is another way, but let's see how you go on with that.


Just use the powerful sidebar!

You can open the side bar by swiping from the left edge to the right and stop swiping before the middle of the screen.

The side bar contains your favorite apps plus all apps, which are currently opened. The opened apps are marked with a white dot at the left.

Do a long tap to the app you would like to close.

A little menu opens, which lets you choose to close (Quit) that app.


can't install apache2 on Ubuntu 12.04.1 LTS

I had the same problem, and fixed it by removing all version 1.2 libapr files from /usr/local/lib, which were being used instead of more recent ones installed by apt to /usr/lib. I just ran

sudo rm /usr/local/lib/libapr*

A more elegant/better solution would be to remove the old library files from there and symlinking the ones from /usr/lib.


Ubuntu 16.04 comes with PHP 7.0 packaged with php7.0- prefix. PHP CLI SAPI is packaged in php7.0-cli package and provides /usr/bin/php command symlinked to /usr/bin/php7.0 binary using update-alternatives mechanism to provide best available PHP version.

If you need PHP 5.6 or PHP 5.5 CLI you need to use ppa:ondrej/php and install either php5.6-cli or php5.5-cli package.  You can access the CLI binaries either by using /usr/bin/php5.6 or /usr/bin/php5.5 or update the default /usr/bin/php symlink with update-alternatives command.


What is 'sudo tar -xzf'? Why it is used?

tar is basically The GNU version of the tar archiving utility
for more information on tar go to the terminal and type man tar.

You will find out what exactly xzf is used for. Basically they flags (options) when you run a tar command.

[-]x --extract --get:
-z --gzip:
-f --file F:

The order of this command does matter though.

Basically your command

sudo tar -xzf utorrent-server-3.0-ubuntu-10.10-27079.tar.gz

will extract the tar.gz archive that you specify as (utorrent-server-3.0-ubuntu-10.10-27079.tar.gz) as root privileges.


Why package installed by compiling its source code does not appear in dpkg -l output?

Debian Package Management System only keeps track of packages installed by dpkg and other utilities based on it. Installing from source code (Compiling the source and installing produced files) is another way to install packages. This means that packages installed by compiling their source code isn't listed in dpkg -l and cannot be removed using dpkg -r. The only way to remove a package installed by compiling it source is issuing this command in compile directory of it:

make uninstall

Please note that some source codes don'y support make uninstall.

In some cases you can download .deb of that version and installing by dpkg -i command. This way need high knowledge of package management in Ubuntu because a mistake cause broken dpkg database.


How to add a python script as an executable shortcut to launcher?

X-Ayatana-Desktop-Shortcuts=python

don't forget to add above line if doesn't exists(if already exists then append name from [ ])

[python Shortcut Group]
Name=Python
Exec=python /path/to/script/script.py
TargetEnvironment=Unity


How do I find which serial port my Arduino is connected to with a shell script?

I would suggest switching from alias to a function , which uses a loop to go through a list of the device files.

Assuming there's no other devices , you can use a for loop to determine which device exists.

$ for i in $(seq 0 99) ; do
>    [ -e "/dev/ttyACM$i"  ] && break
> done

If you echo the value of $i after the loop exits, that will be the value of the found device .

However , if for instance you have /dev/ttyACM0 and /dev/ttyACM1 devices there and they run at different baud rate you can loop through them and test for stty -a -F /dev/ttyACM$i | grep $BAUD_RATE

If both devices run on the same baud rate , well . . . there's not a lot to do - have to use manual way.


Triple boot Ubuntu, Windows and Mac problem

i think your problem may lie in trying to triple boot using an external hard drive. you'll probably have more success triple booting using internal hard drives only as external disks can change directory when peripherals are added and removed.

so maybe try again using internal drives only? i gave the lifehacker article above a quick whirl in my snow leopard vm and had no issues with the procedure. an alternative would be to install ubuntu to your portable hard drive as a normal installation (complete with mbr and all partitions on the hdd) which is possibly a more complicated way , but seems less messy.

hopefully this helps you


Assuming you use Gnome-Shell press the power drop down:

Then on your keyboard press the 'alt'-key, and the menu should look like this:

The pause button puts the computer in hibernation


You can put 2>/dev/null behind a command to suppress errors:
ls /home/cas/thisfolderdoesntexist -> error
ls /home/cas/thisfolderdoesntexist 2>/dev/null -> no output because error is suppressed.
You can also put 2>/dev/null behind a script to run the complete script with errors suppressed:
./script.sh 2>/dev/null
What your doing is redirecting (>) errors (2) to /dev/null. Every piece of data (in this case the output of your command(s)/script) that is redirected to /dev/null will be completely ignored. See it as a trash can for data.

Edit:
2>/dev/null suppresses the output of the command, not the complete pipe. In the example that you gave, you're supressing errors from the awk command. If the error is comming from the ls command, do the following (this will suppress errors from the ls command):
ls /bootpool 2>/dev/null | grep boot | awk 'NR==1{print $1}'
If the error is comming from the grep command:
ls /bootpool | grep boot 2>/dev/null | awk 'NR==1{print $1}'
I think you get it now.
A good thing to remember:
1 = stdout = normal output of a command
2 = stderr = error output of a command
3 = stdin = input to a command (this isn't usefull for redirecting, more for logging)

I also improved your script (using shellcheck, you can install it or use their online tool link):
#!/bin/sh
boot=$(find /bootpool/*boot* 2>/dev/null | sed "s|/.*/||")
data=$(find /datapool/*boot* 2>/dev/null | sed "s|/.*/||")
echo "boot"
if [ "$boot" = "boot" ]
then
        echo "boot"
        pass=$(grep rootpw /bootpool/boot/loader.conf | grep -o '".*"' | sed 's|"||g' | awk 'BEGIN { ORS = " " } { print }')

elif [ "$data" = "boot" ]
then
        pass=$(grep rootpw /datapool/boot/loader.conf | grep -o '".*"' | sed 's|"||g' | awk 'BEGIN { ORS = " " } { print }')

else
        echo "Couldn't find boot in bootpool nor datapool"
        exit
fi

if [ "$pass" = edjos ]
then
        echo "You are at default password. kindly change the password"
        oldpass=$(grep root /etc/master.passwd | awk 'NR==1 { print $1 }' | cut -d ':' -f 2 | sed 's/\$/\%/g')
        passwd
        newpass=$(grep root /etc/master.passwd | awk 'NR==1 { print $1 }' | cut -d ':' -f 2 | sed 's/\$/\%/g')
        if [ "$newpass" != "$oldpass" ]
        then
                if [ "$boot" = "boot" ]
                then
                        sed -i.bak '/mfsbsd.rootpw/s/edjos//' /bootpool/boot/loader.conf
                        sed -i.bak '/mfsbsd.rootpwhash/d' /bootpool/boot/loader.conf
                        echo "mfsbsd.rootpwhash=\"$newpass\""  >> /bootpool/boot/loader.conf
                        echo "Great! password updated successfully"

                elif [ "$data" = "boot" ]
                then
                        sed -i.bak '/mfsbsd.rootpw/s/edjos//' /datapool/boot/loader.conf
                        sed -i.bak '/mfsbsd.rootpwhash/d' /datapool/boot/loader.conf
                        echo "mfsbsd.rootpwhash=\"$newpass\""  >> /datapool/boot/loader.conf
                        echo "Great! password updated successfully"
                fi
        fi
else
        echo "Great! you are having authorised password"
fi

You were using == but /bin/sh doesn't make use of that. Only =. When you use /bin/bash, == will actually become usefull. But as you don't, you need to use =.
I changed the way you set the boot and data variables. The way you did it was inefficient.
When both $boot and $data are empty, the script will catch it instead of letting you continue. This is handy because in your second if statement, when $oldpass and $newpass aren't equal, it depends on either $boot or $data to contain "boot". But what if they don't? That's what the else is for in the first if-statement.
Putting "" around variables. echo $var -> echo "$var"


Dell M6700 ethernet (e1000e) not working in 13.04

I had a similar problem on my Dell Latitude E6520.  The following fix worked for me:

echo on | sudo tee /sys/class/net/eth0/device/power/control

I found the solution here: http://www.kubuntuforums.net/showthread.php?62825-Ringtail-not-working-with-Intel-NIC

Good luck!


Unity is completely theme less with nautilus?

Help me to restore theme to unity and gnome 3... :(( :((

This is not possible. In Ubuntu 11.04 Gnome/Unity is based on gtk2, while gnome3 is based on gtk3. So you either choose gnome/unity or gnome3.
If you installed gnome3 via this ppa https://launchpad.net/~gnome3-team/+archive/gnome3, you should be able to choose a gnome3 session in the GDM login screen.
If you want pure unity back, you can remove the Gnome 3 PPA and everything it installed with:

sudo apt-get install ppa-purge
sudo ppa-purge:gnome3-team/gnome3


Ubuntu 16.04 on laptop with AMD graphic card?

I have upgraded from 14.04 to 16.04 (fresh install) and yes, you can use the normal open source driver (installed by default) with no problems! :)

I too have an integrated AMD graphics solution (HD7310).

Fglrx as far as I know is proprietary drivers from AMD. If you are using your laptop to play video games then I would recommend to stick to 14.04 for fglrx drivers as they are optimized for games from what I have discovered.

Hope this helps!!


You will have to have your backup folder copied to an external location, because you need the backup files to restore your data. So do that first. I recommend Dropbox or an external hard drive. Also, you can use the program Aptik (not installed by default) to backup your installed packages list and PPAs.

Once you have backed up your backup data to a safe location, you can reinstall Ubuntu. Transfer your backup files onto the new system. Then open Backups and select Restore, and follow the instructions to restore your data. Do the same for Aptik to restore your installed programs and PPAs.


Which debconf preseed option to auto reboot after installation?

d-i finish-install/reboot_in_progress note

Alternately, to halt instead of reboot:

d-i debian-installer/exit/halt boolean true

To shutdown instead:

d-i debian-installer/exit/poweroff boolean true


Why is my monitor brightness so low, even though I set xbacklight at 100%?

Check if some desktop power manager overrides those settings. I don't know for Lubuntu / LXDE, but in Xfce and in KDE there is a "power manager" applet where reducing screen brightness can be defined for various power scenarios: On wall power, on battery, on low battery, on critically low battery.
https://manual.lubuntu.me/stable/3/3.2/3.2.12/power_management.html
Then there are various suggestions here:
Brightness problem Ubuntu 18.04 LTS
HTH


Slow video after sleep on an Lenovo Edge 13

I've found solution - new drivers from https://launchpad.net/~ubuntu-x-swat/+archive/x-updates.

This answer was very helpful.


Cursor dissappears when set to high resolution in Ubuntu 14.04

The problem is solved . There was a problem in the updates after you install the update at a high resolution cursor disappeared if they are not installed , then the resolution of 1920x1080 cursor visible.


How can I restore system files that were accidentally deleted in /usr/share and /var/lib/dpkg?

I know it is a couple months late but for dpkg I was able to get everything running again by finding the appropriate dpkg file for me that was the file from here:
https://launchpad.net/ubuntu/trusty/+package/dpkg
I chose the appropriate .deb file for me (my computer runs on amd64)

I clicked to download it, then clicked save file (The software-center won't work without dpkg). Once downloaded I clicked on the .deb file and opened it and then extracted it to a folder I called Dpkg (of course you can call it whatever you want).

For whatever reason I was having trouble copying the executables to the correct place so I just moved them one at a time. I moved all of the executables out of the folder titled usr/bin into /usr/bin, for example

    cd /home/jeremie/Downloads/Dpkg/usr/bin
    sudo mv dpkg /usr/bin
    sudo mv dpkg-deb /usr/bin

and so on.
After moving all of the executables out of that folder I still ran into a problem with the start-stop-daemon so I had to move that from the sbin folder

    cd /home/jeremie/Downloads/Dpkg/sbin
    sudo mv start-stop-daemon /sbin

Finally I ran:

    sudo apt-get update
    sudo apt-get install --reinstall dpkg

And voila dpkg was working.


pecl install apc gives me Makefile:195: recipe for target 'apc.lo' failed

Please try this:

sudo pecl install apcu


Ubuntu Advantage virtual server rotation

According to the manual, yes there is the detach command to detach the account:
COMMANDS
       attach [--no-auto-enable] <token>
              Connect an Ubuntu Advantage support contract to this machine.

              The token parameter can be obtained from https://auth.contracts.canonical.com/.

              The optional --no-auto-enable flag will disable the automatic enablement of recommended entitlements which usually happens immediately after a successful attach.

       detach Remove the Ubuntu Advantage support contract from this machine. This also disables all enabled services that can be.

Until we get a definitive official answer, this is the safe bet that it is required.
In the future, they might remove this constraint, for example by rate-limiting up to the server count in an account the various subscribed services, but so far I can not find such feature announcement.


Yes, you do need to check the ISO using a checksum that is verified by the GPG file.

The torrented ISO is most likely the file the torrent was intended for you to download. However, the torrent file isn't necessarily the one provided by Canonical. Because of this you must check the integrity of the file using a checksum that you verify using GPG.

Instructions for Verifying ISO

Obtain ISO you wish to download.
Download the checksum using wget http://releases.ubuntu.com/14.10/SHA256SUMS replacing 14.10 with the release you downloaded.
Download the checksum GPG file using wget http://releases.ubuntu.com/14.10/SHA256SUMS.gpg again replacing 14.10 with the release number.
Add the Ubuntu CD Image Signing Key to your keyring with gpg --recv-keys 0xFBB75451
Verify the checksum using gpg --verify SHA256SUMS.gpg SHA256SUMS. If it gives you something like gpg: Signature made 2014-07-25T01:53:21 CEST using DSA key ID FBB75451
gpg: Good signature from "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: C598 6B4F 1257 FFA8 6632  CBA7 4618 1433 FBB7 5451 than the key is good.


How to check if serial-over-lan is supported in my PC?

After much checking, I found that it could be checked by simply running lspci and checking if something like ‘00:16.3 Serial controller: Intel Corporation’ exists (depending on the platform)


It looks like the setting for idle dim time has changed schemas. Use org.gnome.desktop.session idle-delay:

gsettings set org.gnome.desktop.session idle-delay <value>

For the future, a great way to find a setting is to pipe list-schemas or list-recursively to grep. That's how I figured this one out:

gsettings list-recursively | grep idle

Hope that helped!


All LibreOffice windows are in one menu icon

This is a bug with LibreOffice in a Wayland session (see this and this). You can verify whether you're in a Wayland session by running

echo $XDG_SESSION_TYPE

As a workaround you may switch to an Xorg session. Then the icons should appear correctly.


kruft: why do i gain 1GB each time i do a distribution upgrade

You may want to run sudo du -x --max-depth=1 / | sort -n to see where your space is going.  You can walk the directories to get a better idea where the space is going.  I generally find the space ends up being in few directories.

You may want to try running sudo apt-get clean to remove all the debs from the cache directory.  The directory /var/cache/apt/archives can grow quite large if you don't clean it out.  Once the packages are installed, you don't need the .deb archived.  They are helpful if you need to reinstall the package, or find the original version of a file that was installed.


How to retain a blank album title in RhythmBox

I'm sorry to say you can't change that, it is a bug, and as you can see it's been reported several times since several past versions of Rhythmbox.

Reported at Launchpad, Bugzilla 1, Bugzilla 2 and Debian.

You can go to any of those sites to mark the bug affects you as well, and wait a response regarding any future patch solving it.


Is it secure to run windows application on linux?

Linux itself will not be vulnerable as long as you don't do something silly like give it access to /.

Wine on the other hand is still susceptible to viruses, since it is designed to emulate a Windows environment, however in many cases it is different enough that most nasty code will not have much affect.

Maybe install clam-av and use that to make sure your /home and especially the Cdrive folder stays clean.

You're probably very safe if you don't use Windows internet and social media apps - and you don't really need to because there are good ones available for Ubuntu.


Can't access windows after installing ubuntu 16.04

What worked for me is changing the secured Boot from Enabled to Disabled status in BIOS.  When I rebooted after this change I was able boot to windows 10.  Although it took little longer than normal.

Is there any risk in leaving it disabled?

Another thing that I cannot verify right now is if windows updates and other features will work correctly after this fiasco.  When I check for windows update.  Instead of showing the current time, it's showing the time of last windows update before ubuntu installation.


How do I edit the list of music library locations in Rhythmbox?

how to...
There are a couple of ways to edit the locations information - either graphically using dconf-editor or via the terminal using gsettings.
First the graphical way.
Install the package dconf-tools.
In the dash press Alt+F2 and type dconf-editor.
Navigate to the position shown in the picture and edit the locations field.

Note: this is a comma separated list with full path names starting with file:/// and must be defined with the [' ... ]'
Alternatively you can using gsettings from the terminal.
Get the current value of the locations field via:
gsettings get org.gnome.rhythmbox.rhythmdb locations

You should get an output similar to:
['file:///home/dad/Music', 'file:///home/dad/.ubuntuone/Purchased%20from%20Ubuntu%20One']

To set a new value of the field use the set syntax:
gsettings set org.gnome.rhythmbox.rhythmdb locations "['file:///home/dad/Music', 'file:///media/musiclibrary/mymusic']"


WiFi on Ubuntu 12.04 custom: downloading unbearably slow

I tried the ath9k.conf route, creating a new file, and it seemed to work stepping me up from 1 to 4 Mb per sec. Still only half the speed of windows with same usb stick though.


Keeping source code and downloaded programs right in your /home folder can get a little messy and disorganized. Saving them to your ~/Downloads folder or any other subdirectory is fine, but you have to be careful not to delete them, for example, if you go on a deleting rampage in your ~/Downloads folder to get rid of accumulated junk. As a solution to this, I have created a ~/Projects subdirectory, wherein I have individual folders for each software project, source code bundle, or other "project". If you don't have many Projects to keep track of, keeping them in your Downloads folder (or any folder) is fine if you don't mind the extra eyeload of having it there.

To run btsync, download the .tar.gz folder, and then open your Downloads folder in Nautilus (the file manager). Then right click the .tar.gz file and select "Extract Here". Once done extracting, open a terminal and run the command:

~/Downloads/btsync_i386/btsync

And btsync will run.

Cheers!


CPU and fans keep working in suspend mode in Ubuntu 20 on Dell Inspirion 5530

This seems to be related to a kernel version that needs updating as answered in this thread


For the mouse/touchpad sensitivity, go to System parameter → Mouse and touchpad and you will see there a cursor to adjust your touchpad sensitivity and same for the mouse.

P.S : I'm currently working on a desktop computer, that's why we don't see the touchpad cursor, but I assure you this cursor is there (my personal computer have got a touchpad), and sorry for the language parameter


My apologies for writing this as an answer but a comment would not have ta same impact as
it is my considered opinion that your hard disk is failing, so: Back up your data first! and then do the following:

(What? You're still here???  Go away and back up your data first!)

Boot your LiveCD, go to the software centre and install smartmontools, then go to a terminal by pressing Ctrl+Alt+T and type:

smartctl --all /dev/sda

and copy the output of what you've got  to http://paste.ubuntu.com and provide the link of that in your question and drop a comment below this answer!


This is what the man page says:

a

  Lift the BSD-style "only yourself" restriction, which is imposed upon
  the set of all processes when some BSD-style (without "-") options are
  used or when the ps personality setting is BSD-like. The set of
  processes selected in this                     manner is in addition
  to the set of processes selected by other means. An alternate
  description is that this option causes ps to list all processes with a
  terminal (tty), or to list all processes when used together with the x
  option.

x

  Lift the BSD-style "must have a tty" restriction, which is imposed
  upon the set of all processes when some BSD-style (without "-")
  options are used or when the ps personality setting is BSD-like. The
  set of processes selected in this                       manner is in
  addition to the set of processes selected by other means. An alternate
  description is that this option causes ps to list all processes owned
  by you (same EUID as ps), or to list all processes when used together
  with the a option.

In simpler words, option 'a' instructs 'ps' to list the processes of all users on the system rather than just those of the current user. Similarly, the 'x' option includes processes that are not running in a terminal, such as daemon processes. So that is why all the processes in the system are listed. You can also use

  ps axu

which is better formatted according to the user.


Acer E1-470 new partition created can't be use

You first make the partition with gparted (or any tool you like).

You next format the partition , again with gparted if you wish. Make it ext4 unless you know you need another format.

Last, you mount the partition. You do this temporarily with the command line or add an entry in fstab to mount at boot.

Example:

sudo mkdir /media/new_partition
sudo mount /dev/dsXY /media/new_partition

See https://help.ubuntu.com/community/Fstab or update your question if you need further assistance.


lspci shows wireless network device but network manager doesn't

Always had problems with Broadcom. You need enable kernel module b43, you can do that with this lines of code.

sudo apt-get install linux-headers-generic
sudo apt-get install linux-firmware-nonfree
sudo modprobe b43

linux-firmware-nonfree should contain that module for you.

If you previously did some changes, you may need take them back, especially if you installed something with -kernel in it, then unsinstall it with

sudo apt-get remove --purge ....

More info here