How do I make my grub arguments permanent?

This is not something you can change in /etc/default/grub, you need to add a new entry to the GRUB menu. Create a file /etc/grub.d/09_custom with these contents:

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry 'Ubuntu' {
    linux (hd0,msdos1)/vmlinuz root=/dev/sda1
    initrd (hd0,msdos1)/initrd.img
}

Make it executable

sudo chmod +x /etc/grub.d/09_custom

and run sudo update-grub. This should add a new entry at the top of the GRUB config file, so when you reboot it should be booted automatically by default.

To reverse the changes, delete 09_custom and re-run sudo update-grub.


Wacom Cintiq 16 and Ubuntu 20.04 - how to set the default screen permanently?

To make your changes permanent, simply open (or create) the file .xsessionrc in your home directory and add the following lines (in your case):
xsetwacom set "Wacom Cintiq 16 Pen stylus" MapToOutput HEAD-1
xsetwacom set "Wacom Cintiq 16 Pen eraser" MapToOutput HEAD-1

It should work...


Are you attaching the HDD to your computer via usb or Sata?
do
Sudo lsusb
and see if it is even reading the device if not you have corrupted sectors for recovery I suggest Hirens Boot Disc and the seagate FBI standard HD recovery tool.


Mount qcow2 image using qemu-nbd within a container

Seems to work for me (booting LXC instance using cirros qcow2 image inside LXC host inside KVM guest on top of KVM host; Icehouse release).

Did have to manually create a few nbd nodes:

stack@ctl-template:~/devstack$ ls -l /dev/nbd*
brw-r--r-- 1 root root 43,  0 Apr 13 14:31 /dev/nbd0
brw-r--r-- 1 root root 43, 16 Apr 13 14:33 /dev/nbd1
brw-r--r-- 1 root root 43, 32 Apr 13 14:33 /dev/nbd2
brw-r--r-- 1 root root 43, 48 Apr 13 14:33 /dev/nbd3
brw-r--r-- 1 root root 43, 64 Apr 13 14:34 /dev/nbd4

nbd1 is being used by the instance:

stack@ctl-template:~/devstack$ dmesg | tail | grep nbd
[94516.110986] EXT4-fs (nbd1): mounting ext3 file system using the ext4 subsystem
[94516.205551] EXT4-fs (nbd1): mounted filesystem with ordered data mode. Opts:

no additional devices created for partition(s) inside the image:

stack@ctl-template:~/devstack$ ls /sys/class/block/
loop0  loop4  nbd0   nbd12  nbd2  nbd6  ram0   ram12  ram2  ram6  sr0   vda5
loop1  loop5  nbd1   nbd13  nbd3  nbd7  ram1   ram13  ram3  ram7  vda
loop2  loop6  nbd10  nbd14  nbd4  nbd8  ram10  ram14  ram4  ram8  vda1
loop3  loop7  nbd11  nbd15  nbd5  nbd9  ram11  ram15  ram5  ram9  vda2


Touchpad crashes (?) after 10 minutes HP Mini LY931

I have had similar issues with an old laptop I traced back to power and/or temperature issues.  I was able to solve the problem when I switched all my USB devices to a multi usb port adapter with external power source of it's own.  I also installed a fan controller and internal temperature monitor software / fan override on the system and that seemed to help.


Running shell script from external drive via live user

Most likely your external drive's filesystem doesn't support Linux/UNIX style permissions (FAT32, etc.), unfortunately chmod and friends will not return an error in this situation, they will simply be unable to set/change permissions.

Also, the MODE option in your udev rule affects the permissions of the device node (in /dev) for the filesystem itself: e.g. /dev/sdc1, not for the filesystem's contents..

That being said, there are a couple of possibilities - first, and easiest, would simply be to pass the script as an argument to the appropriate shell, e.g. bash /path/to/file.sh

This will have issues, however, if file.sh happens to call, for example, otherfile.sh inside of it.. you could, of course, modify the script to call bash as above, else you will need to ensure the filesystem is actually mounted with executable bit set for files.

In my experience, "automatic" mounts usually err on the side of caution and do not enable execute by default, but if you mount the filesystem manually from the command line as root it defaults to having all files executable... so, you could unmount the drive (remove safely, etc) from the GUI, then open a terminal and enter something like

sudo mount /dev/sdc1 /mnt

replacing /dev/sdc1 with your filesystem location (if in doubt, run dmesg and it should give you a clue the device name  you'll need here.

If for some reason that still mounts without the execute bit set for files the options are filesystem specific for umask, fmask, dmask, mode, etc.  man mount and check options for your_filesystem_type


Since Ubuntu 12.04, ejecting a USB drive or partition has the same effect as "Safely Remove" (with Nautilus).

You can verify this with some USB devices that have some kind of power indicator on them.  The device will sync, unmount if not busy, and then power down, i.e., the power/status light will turn off.  To remount or reuse a powered down USB device, you need to unplug it and plug it back in.  A partition can simply be re-accessed.


Check here where there are old releases :
http://old-releases.ubuntu.com/releases/14.04.0/


How do I stop Seahorse from asking for my password multiple times on every login?

Right-click on your default keyring and change its password to nothing.


Wacom Bamboo USB (CTH-301) not working on Ubuntu 15.04

Seems that a later kernel update provided the fix.


The way I see it Compiz is just a Windows manager so doesn't interact with your running applications other than providing a graphical structure within which to run them as it is a window manager.

I know its not the most reliable source but citing Wikipedia Window Management:

  A window manager is system software that controls the placement and appearance of windows within a windowing system in a graphical user interface.

And more importantly:

  Elements usually associated with window managers allow the user to open, close, minimize, maximize, move, resize, and keep track of running windows, including window decorators.

This last phrase explains that the options you have with windows managers running are to close, minimize etc. The way I see it, by restarting Compiz you won't tell your current applications to do anything, you haven't given them a specific command by clicking on any of the window manager icons so the applications have no reason to act differently than if you left your PC for a few seconds. You'll just have them idle until they are put back into a window manager (Compiz in your case).

So yes it is safe to kill and restart compiz


This is from my own documentation after trial and error a while ago, I hope it makes sense to you. The "--" is optional in case of problems but maybe it also helps you with your present situation...:

when moving virtual machine, use FILE/VIRTUAL MEDIA MANAGER, first release HDD and then remove via FILE/Virtual Media Manager (but do NOT delete files when removing)
move the machine folders to the new location
add the removed virtual machine from new location via MACHINE/ADD
right click on virtual machine and go to  SETTINGS/STORAGE: click on first controller (Guest additions should already be there) and add (first small button) hard disk (as attachment) > choose existing disk  and then check SSD if necessary

--  if you cannot add add a HDD with the first small button (Result Code: NS_ERROR_FAILURE (0x80004005)) do as described here: http://bradleybeddoes.com/2011/08/01/virtualbox-vd-error-verr_file_not_found-opening-image-file/

-- Virtual Media Manager, click on Hard drives > open sub entry under X.vdi image named like {a2abf38f-3526... and RELEASE then REMOVE it


If you know the name you can use

sudo apt-get remove *packagename*

to uninstall. but make sure that they don't have any dependencies.

or use:

sudo apt-get autoremove

From the man page:

  autoremove (and the auto-remove alias since 1.1)
             autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and
  are now no longer needed.

or use:

sudo apt-get clean

From the man page:

  clean clears out the local repository of retrieved package files. It removes everything but the lock file from
  /var/cache/apt/archives/ and
             /var/cache/apt/archives/partial/.

or:

sudo apt-get autoclean

From the man page:

  autoclean (and the auto-clean alias since 1.1)
             Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes
  package files that can no longer
             be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control.
  The configuration option
             APT::Clean-Installed will prevent installed packages from being erased if it is set to off.

please read the manual page of apt-get

man apt-get


Thanks to your line of code from the documentation I could install it. On my computer neither the deb downloaded from Atom nor the snap via Ubuntu Software where installing.

sudo snap install --classic atom

And it also has the advantage that it autoupdates Atom.


Display issues with Ubuntu 14.04 with AMD R9 380 graphics card

I just completed a build of new desktop using the Radeon R9 380 graphics card and got the exact same problem.
I fixed this by going into:

System Settings .. Software & Updates .. Additional Drivers

I chose the AMD graphics accelerators from fglrx updates

I hope that this works for you as well


Ping tester equivalent software in ubuntu

Yes, there's the Network Tools:

On Unity, open the Dash and type "Network Tools", in Gnome it's in System → Administration → Network Tools.


How can I view a progress bar when running rsync?

rsync has a --info option that can be used to not only output the current progress, but also the transfer rate and elapsed time:

--info=FLAGS            fine-grained informational verbosity

The explanation of how to use it comes under the -P option in the man page:

-P     The -P option is equivalent to --partial --progress.  Its purpose is to
       make it much easier to specify these two options for a long transfer that
       may be interrupted.

       There is also a --info=progress2 option that outputs statistics based on
       the whole transfer, rather than individual files.  Use this flag
       without  out‐putting  a  filename  (e.g. avoid -v or specify --info=name0)
       if you want to see how the transfer is doing without scrolling the screen
       with  a  lot  of names.   (You  don’t  need  to specify the --progress
       option in order to use --info=progress2.)

So the following:

rsync -r --info=progress2 --info=name0 "$src" "$dst"

Results in the following being output and continuously updated:

18,757,542,664 100%   65.70MB/s    0:04:32 (xfr#1389, to-chk=0/1510)

Note that when the transfer starts the total number of chunks, and therefore the current progress, can change when the recursive option is used as more files are discovered for syncing


Trying to install BetterDiscord and this happens

You could try running the command sudo ./node_modules/.bin/electron --no-sandbox ./src like the error suggest.
Haven't installed discord yet on my client but could fix the problem.


Set title of Terminator terminal tab in config

In ~/.config/terminator/config, specify labels for the parent node of the tabs.

For example, I have a two-tab default layout:

[layouts]
  [[default]]
    [[[child0]]]
      order = 0
      parent = ""
      position = 0:-20
      size = 1920, 478
      type = Window
    [[[child1]]]
      labels = Root, None
      order = 0
      parent = child0
      type = Notebook
    [[[terminal1]]]
      order = 0
      parent = child1
      profile = root
      type = Terminal
    [[[terminal2]]]
      order = 1
      parent = child1
      profile = default
      type = Terminal

child1 contains the actual tabs (of type Terminal), so I specify labels in it:

labels = Root, None

The first tab gets a fixed title of Root and the second tab's title is left alone (so my shell, and any other commands I run, can set it).


It might be the case that proper codecs are not installed.

Open a terminal (Ctrl+Alt+T), and run the following command:

sudo apt-get install ubuntu-restricted-extras

Enter your password when prompted.

If this doesn't solve the problem, you might need to install the appropriate drivers.

To install the drivers, go to System Settings > Additional Drivers. You should be able to see the drivers that need to be installed.
If you can't see anything, download the drivers from the vendor's website.


Ubuntu is compatible with you laptop for sure. Maybe you have problems because 13.10 is not supported anymore https://wiki.ubuntu.com/Releases Try to install one of LTS, for example Ubuntu 14.04.1 LTS.


Wi-Fi connection problem with Qualcomm Atheros AR9285 adapter

I would change the router settings from channel auto or 1 to channel 2 or 3 as there are a few other access points on channel 1.  Also change encryption to WPA2-AES only with no WPA, WEP or TKIP.  You can see the results using iwlist scan and then look at the data for your access point, ideally you want to see this

IE: IEEE 802.11i/WPA2 Version 1
                    Group Cipher : CCMP
                    Pairwise Ciphers (1) : CCMP
                    Authentication Suites (1) : PSK

CCMP = AES

The issue may have been caused by a kernel update, did you attempt the 'Try Ubuntu without installing to see if the wifi is stable?  If so, booting into an older kernel may help


Installation of Ubuntu 16.04 LTS on skylake with Nvidia GeForce 930MX

Install Ubuntu 16.10 as it is working perfectly on R558UR (I have the same model). After installation, add this line in your grub:

"quiet splash pci=noaer"

Save, then run:

sudo update-grub

Reboot, then run this command in terminal:

sudo apt install nvidia-367

(Version 367 is the latest driver as of this date). Then blacklist nouveau by this method:

sudo gedit /etc/modprobe.d/blacklist.conf

Go to the end of the file and add this line: blacklist nouveau. Save and exit.
After rebooting, you can see the nvidia X server Settings icon in menu, which will let you switch between integrated 520 and discrete 930MX graphics (You need to log out and then log in again to switch cards).


Here the solution for this problem, super easy way ;)

You have to use dpkg direct to solve this problem sometimes.

"Here we go again"

The package multiarch-support is unpacked, but has never been configured this means the package soon will configure, but is not configured yet.

When is the status unpacked the package is not installed yet, so the package libgcc1 cannot install because of the dependency is not installed yet and cannot be installed before multiarch-support.

We have to force the installed status for multiarch-support to do the trick.

nano /var/lib/dpkg/status

find the the line starting with Package:
something like:

Package: multiarch-support
Status: install ok unpacked

You have to change the unpacked to installed

Now try:

sudo dpkg --configure --pending
sudo apt-get install --reinstall multiarch-support libgcc1 debconf

I think you can get the system working again this way, let me known if you can do.


"Proper" way to install packages from previous release

Well there is no perfect way, each case has its own limitations. Personally, go with quicker and easier option first.

Check upstream project's documentation, merge requests, patches & bug tracker, to see if anyone reported and solved it. Then decide

Look for PPA if there any.

Try its package by adding older release repository. Following similar method you mention and explained in my answer here. Few rules for easy and clean role back.

Test in a machine not in production (VirtualBox, ...)
Add *-update & *-security repositories too.
Record the log for changes (new installed packages and removed ones)
Remove these repositories right after completing the installation.
Keep in mind this is like PPA with old packages which it may lead to unmet dependencies in the future.

Expect issues like conflict with default installed packages and try to remove bunch of packages. This happens much with :i386 multi-arch packages like with wine. Review packages list while installation, it can even remove the desktop and leave you with command line boot.

Install from source

Update the package or Repackage it and upload it to a PPA, if you are advanced user.
Here a trick that works sometimes: Copy that package to your own PPA and ask it to build it for your current distribution.


Change the Unity launcher search provider

I didn't try it ever since, cause I didn't want to search with Yahoo. But now I cannot get this behaviour either any more. Maybe some updates solved this problem.

So the solution seems to be Update your system with:

sudo apt-get update
sudi apt-get upgrade


Connection blocked because server only allows public key authentication. Please contact your network administrator

I fixed it viewing this page:
with this comment:

Finally the problem was our Firewall. After an upgrade a ssh_certificate_deep_inspection feature got activated and caused all the problems.


Reboot into recovery mode and fix your rc.local file.

https://wiki.ubuntu.com/RecoveryMode


Is there a way to search the text contents of windows?

This answer may be disappointing, but no, there isn't.
With respect to "doable", yes, it might. It is for sure possible to do OCR - optical character recognition, so one could imagine software that would take a screen shot and recognizes text on the screen. Then, the software should be also able to assess where the text appeared on the screen, in order to be able to highlight the appropriate location when the user searches.


phpmyadmin not working because i changed permissions and don't know how to change it back

Try to issue this command:

chmod 0755 config.inc.php

PMA doesn't want the config.inc.php to be world writable, in your case, you made it world writable by chmod 777. If it doesn't work, try to issue the command below:

chmod 755 -R /opt/lampp/phpmyadmin

This will do a recursive chmod on your phpmyadmin folder.

If it still doesn't work, try to remove the phpmyadmin installation and reinstall.


Firefox 33 network activity is suddenly extremely slow on 14.04

I realized that the problem was DNS settings on my system.  For some reason, my resolv.conf settings didn't switch when I joined my home network and contained two nameserver entries that didn't exist on this network.  The third nameserver in resolv.conf worked.  As soon as I removed the first two and left just the good nameserver, this problem went away.


Ok thanks I found the answer :D I mixed up the path and the samba share name...
I tried to access vie smb://userdomain.xy/samba/shares  . When i tried it via smb://userdomain.xy/secured, it worked :D
Thanks for answering anyway.


Ubuntu 18.04 - Wireless not working for some sites after suspend

I have just had the same problem with lubuntu 18.04 32bit on Dell Latitude D530 - perfectly normal operation including after reboot but wifi inactive after suspend. This seems to have solved it by stopping the wifi sleeping on suspend:

From:
How to prevent wifi sleep after suspend

Procedure:

sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

then changed wifi.powersave from 3 to 2 in this file, saved & exited nano.

then:

sudo systemctl restart NetworkManager


pip3 command fails after upgrading to pip version 18.1

Your system-wide pip3 executable is still old and located at /usr/bin/pip3:

$ ll `which pip3`
-rwxr-xr-x 1 root root 293 May 16  2018 /usr/bin/pip3*

Try updating using sudo:

$ sudo pip3 install --upgrade pip

Then your updated pip3 executable should be placed at /usr/local/bin/pip3:

$ ll `which pip3`
-rwxr-xr-x 1 root root 216 Jan  8 20:46 /usr/local/bin/pip3*

and will be used by default.


How do you upgrade/remove a side-by-side installation?

Can I suggest another approach?  Keep the dual boot and share all your files with both systems.

Why? Because in 6 months you will have the same problem with 12.04 and 12.10.

Example 1

An example of what I want to suggest...

OS1 (11.10): /, swap, /home. Total can be as low as 25 Gb.
OS2 (12.04): /, swap and /home. Total can be as low as 25 Gb.
OS1+OS2: data partition.

(25Gb: 10 for root, 5 for swap, 10 for home: it works because I symlink the directories in home to the data partition. That way I can have the same icons on my desktop for both systems but also when I reformat 1 of the 2 and reinstall another Ubuntu).

Example 2

A slightly different example if you're trying to save HDD space...

OS1 (11.10): /, swap, /home. Total can be as low as 25 Gb.
OS2 (12.04): /, swap. Total can be as low as 15 Gb.
OS1+OS2: data partition.

Here you can mount the /home into OS2 (so just mounting not formatting when you setup your system) and use a different username for both OSes. That way you will not run into any conflicts and you can save a 10 Gb of every other OS you include (you can do this with more than 2 OSes and even SUSE, Redhat, CentOS etc ;) )

I am a big supporter of symlinking.

Example... say your data partition is named 'discworld'. Create all dirs that are now in /home/{user} in that partition...

/discworld/Desktop/
/discworld/Downloads/
...

rm all directories inside `/home/{user}' and then symlink them:

`ln -s /discworld/Desktop Desktop`
`ln -s /discworld/Downloads Downloads`
...

Put all users into 1 group and set discworld to that group: that way you have 1 desktop over the whole systems, all downloads go to 1 location etc etc.

Using the data partition

Either way, ALL interesting files you have go to the data partition. Use the current system (11.10) and keep updating the newest system (12.04). When the newest system (12.04) is up to your standard use that as the current system and use OS1 to install the newer newest release (ie. 12.10).

That way you can always fallback to your last stable Ubuntu.


Understanding how to install 14.04 on XPS 13 9343

I have written a complete step-by-step guide  on how to install Ubuntu 15.04 and getting everything to work properly on the Dell XPS 13 9343.

If you are fine with Ubuntu 15.04, you can give a try. I hope it will be helpful to you.

To resume you need to :

Install Ubuntu 15.04
Connect your computer with a USB Wifi/Ethernet adapter and run :

sudo apt-get install bcmwl-kernel-source

Fix kernel panic on suspend issue :

sudo apt-add-repository ppa:inaddy/lp1415880
sudo apt-get update
sudo apt-get upgrade

After that your XPS 13 should work properly.


Skype provides no such customizations.  You can control something like brightness on your monitor or via software.  I would suggest trying any of these 3rd party applications to control the overall brightness of the screen.  It has an affect on Skype's illumination like any other application:

sudo add-apt-repository ppa:jonls/redshift-ppa
sudo apt-get update
sudo apt-get install redshift

I have used this one and it's rather simple to execute and close.  This way it can be dynamically customized.  It should give you greater control and it doesn't require a theme change.


How to add an own shortcut to a command to the Cinnamon menu?

For a single user you can put the desktop entry file in ~/.local/share/applications/

Check out the specification for more info and an example:

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html

You can also check the location for all users in /usr/share/applications for examples.

Good luck!


Fail to log in Ubuntu for deleting my home folder

What happens exactly when you try to login?

Try:

ls -als /usr/share/huangzhiwu

are there any .files ?

move them also

sudo mv /usr/share/huangzhiwu/* /home/huangzhiwu/

then do:

cd /home/huangzhiwu

find -type d -exec sudo chmod 755 '{}' \;
find -type f -exec sudo chmod 766 '{}' \;
sudo rm .Xauthority
cd .. && sudo chmod 755 huangzhiwu

you may also try:

cd /tmp && sudo rm -r .X*


Chromium won't load any pages including settings page

My solution was to open the chromium menu and select "View Background Pages(n)", and that opened a system box that allowed me to end my ad-block plus process.  After doing this I was able to navigate to: chrome://extensions/ and remove my extensions (ad-block and others I no longer wanted) to get the browser to function properly.  Hope this is some help to others having a similar problem!


Can I migrate a VirtualBox Ubuntu Guest to a *real* Hardware Box?

I'd try it with dd (don't forget to replace the device names like sda with your device name):

Replace all uuids in your /etc/fstab with things like /dev/sda1 (sda = destination hd number!)
update-grub2 && grub-install /dev/sda
Save your virtual hdd inside VBox into a File: dd if=/dev/sda /home/user/sda.img
Copy the Image to a disk (external hdd, network share, dvd, ...)
Restore the Image to the destination drive: dd if=/media/drive/sda.img of=/dev/sda

The biggest problem might be the bootloader (but there are tutorials for this even in this forum). I once reinstalled a bootloader by doing a fresh install of Ubuntu (preferably the same as the one you dd'ed) and then dd the old partition over the fresh install (in this case, you would only dd /dev/sda1, not /dev/sda, which also includes the bootloader and all partitions)


How to replace all strings in a file that begin with some prefix

Using sed:

sed -E 's/((^| )2:)[^ ]*/\10/g' in > out

Also, as inspired by souravc's answer, if there is not a chance of a 2: substring after the start of a string not containing a leading 2: substring (e.g. there is not a chance of a 1:202:25 string, which the following shortened command would replace to 1:202:0), the command might be shortened to this:

sed -E 's/2:[^ ]*/2:0/g' in > out

Command #1 / #2 breakdown:

-E: makes sed intepret the pattern as an ERE (Extended Regular Expression) pattern;
> out: redirects stdout to out;

sed command #1 breakdown:

s: asserts to performs a substitution
/: starts the pattern
(: starts the capturing group
(: starts grouping the allowed strings
^: matches the start of the line
|: separates the second allowed string
: matches a  character
): stops grouping the allowed strings
2: matches a 2 character
:: matches a : character
): stops the capturing group
[^ ]*: matches any number of characters not
/: stops the pattern / starts the replacement string
\1: backreference replaced with the first capturing group
0: adds a 0 character
/: stops the replacement string / starts the pattern flags
g: asserts to perform the substitution globally, i.e. to substitute each occurence of the pattern in the line

sed command #2 breakdown:

s: asserts to performs a substitution
/: starts the pattern
2: matches a 2 character
:: matches a : character
[^ ]*: matches any number of characters not
/: stops the pattern / starts the replacement string
2:0: adds a 2:0 string
/: stops the replacement string / starts the pattern flags
g: asserts to perform the substitution globally, i.e. to substitute each occurence of the pattern in the line


The connection was not supported by oFono

I don't know how about previous Ubuntu versions but since 14.04 it's NOT modem-manager any more.

Now You have to use:

sudo apt-get purge ofono
sudo apt-get install modemmanager

and reboot. Works perfectly.


How to disable strict host key checking in ssh?

In your ~/.ssh/config (if this file doesn't exist, just create it):

Host *
    StrictHostKeyChecking no

This will turn it off for all hosts you connect to. You can replace the * with a hostname pattern if you only want it to apply to some hosts.

Make sure the permissions on the file restrict access to yourself only:

sudo chmod 400 ~/.ssh/config


Here is some of my preferred apps.

1) VLC  - install

I included this app because you can use it to manage your audio and it can play almost every video formats out there. It is light on the system, simple, and has so many features (see this for example).

2) Enna  - install

Enna is beatyful. It shows the weather and besides audio, photo and video, it supports bookstore.

3) XBMC    - install`

It is easy to use, support audio, pictures, video, and is "skinnable". See Aeon skin next.

4) Boxee    - To install you will have to sign up
It is not so eye candy, but it is functional, support TV shows and has some Premium payable features.

5) Miro    - install

Support for download from torrent and youtube.

6) Freevo    - install

Support for music, photos, videos and games.

7) MythTv    - install

Can record videos for you.

8) LinuxMCE    - To install you will have to download a binary package

It has others features like controls over your home lights, doors, security, etc.


Unable to locate packages when installing from various repositories

For Xenial, you need to install macbuntu-os-icons-lts-v7.

Synaptic is another good way to install software... you can see all of the filenames, search, etc.

To solve the errors that occurred during sudo apt-get update, either use Software & Updates, choose the Other Software tab, and remove the tualatrix items, or do the following:

In terminal...

cd /etc/apt # change to the appropriate directory
grep tualatrix sources.list # search the file
if you find any, edit them out, gksudo gedit sources.list
cd /etc/apt/sources.list.d # change to another directory
grep tualatrix *.list # search these files
if you find any, delete that .list file, sudo rm filename.list


Cannot get OpenVPN installed - Ubuntu Server 16.04

Add the following line to the vars file:
export KEY_ALTNAMES="Anythingyouwish"

And then follow the process for ./build-ca

Good Luck


How to install TP-Link T4UH drivers [2357:010e]

I forked rtl8812au driver and added the 2357:010e device.

Also I added dkms.conf to enable DKMS install.

You need to disable Secure Boot in BIOS if you are using UEFI, then run in a terminal:

sudo apt install git
git clone https://github.com/hanipouspilot/rtl8812au.git
sudo dkms add ./rtl8812au
sudo dkms install rtl8812au/0.1


It is working perfectly, and expectedly.

Your command can be rewritten simply as:

awk '{print $2, $1, $3, $4, $5}; /A$/ {print $1, $2}; /!A$/ {print $1, $2}' students

it is composed of 3 awk expressions:

{print $2, $1, $3, $4, $5}
/A$/ {print $1, $2}
/!A$/ {print $1, $2}

All 3 expressions will be applied to all records.

The first one is rearranging the fields accordingly
The second one is matching if a record ends in A (/A$/), if so the first and second fields are printed
The third one is matching if a record ends in !A, if so the first and second ones are printed
As the first two records do not satisfy condition of expression 2, the fields are printed according to expression 1. Same goes for record number 4, and 5
Only record 3 and 6 match condition of 2nd expression i.e. ends in A so the action of this condition i.e. to print the first two fields in being done right after executing expression 1 i.e. to print rearranged fields. So two actions are being applied for record 3 and 6. I think this is what tripped you up.
None of the records match condition of expression 3 i.e. ends in !A, perhaps you meant to use the condition as !/A$/ i.e. records that does not end in A (and apply the desired action).


No, iptables does not support jitter simulation.


use this
split -l1 -a4 -d foo.txt bar

it creates 1000 file:
bar0000
bar0001
bar0002
bar0003
...

see man split for more about options:
-l, --lines=NUMBER
put NUMBER lines per output file

-a, --suffix-length=N
use suffixes of length N (default 2)

-d, --numeric-suffixes
use numeric suffixes instead of alphabetic


The problem could be in the permissions of your home folder since yuo are able to login using tty (ALT + CTRL + F1-6), usually this could appen when you lounch graphical application using sudo and then something goes wrong (like unexpected shutdown).

Before you run the following command, make a full system back-up as it can make things worse:

To restore the permissions of your home folder you can login using tty and type:

sudo chown -R $USER:$GROUPS $HOME


16.04 - Ubuntu Software has much less applications now. Why?

I resolved the same issue using this command:

  sudo apt-get install software-center

This will install the old version of Software center and you can Download all the required softwares .
Make sure you have a good Internet connectivity during installation .


How to dualboot Windows 8.1 and Ubuntu 14.04 LTS

I installed a disk caddy with a PATA/SATA interface, and had booting problems -- grub would freeze up when accessing the disk.  The disk worked fine as a disk, but when present, grub would freeze when accessing it in any way, even just tab completion on the grub command line!  My BIOS did not allow selecting which disk to have first in boot order, and the caddy disk had precedence.  Changing the BIOS presence/absence of a CD drive did not help.  I had Ubuntu on both disks.

Oops, found some old notes, couldn't run off the caddy, needed to find a workaround to boot the first disk, then use the disk in the caddy.
 This meant that I could only run the Ubuntu on the internal disk only if grub avoided the caddy disk completely!

A workaround is to boot off something like USB you can put before the hard disk(s).  I could set grub up to run the installation on the internal harddisk, avoiding any reference to the caddy, and that succeeded. The caddy disk may then be mounted and accessed in a normal second disk fashion. There may be other grub modules to include which might fix the problem, but I didn't find anything which worked.


Audio and video performance issues in 12.04

It is hard to figure out what your exact problem is without more details, but if your looking for a good paid codec pack I've heard Fluendo Codec is good.  About $40.

I know YouTube does pretty horrible with Flash and I tend to stay away from the browser version of YouTube.  I do try and find things I might like on YouTube on occasion and switch to Miro, but even Miro is new and needs more developers.


Ubuntu 16.04LTS - pwquality.conf & pam_pwquality registering incorrect passwords, but approves them anyway

Did you try to change your password within the userspace of the user test?
If you try to change it via sudo/root you bypass the rules unless you put an additional "enforce_for_root" behind your pam_pwquality.so call.

You should do the following:

#> su test -
#> passwd

If the quality is not enforced after that, then there must be some additional error in your config.


Difference between 'grep' in Ubuntu and Kali Linux?

Specify files as input to the grep command:

grep -rIhEo "\b[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+\b" file(s) >> 1A

Or specify files with a wildcard or use the current directory.

grep -rIhEo "\b[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+\b" . >> 1A

GREP(1)                                                                GREP(1)

NAME
       grep, egrep, fgrep - print lines matching a pattern

SYNOPSIS
       grep [OPTIONS] PATTERN [FILE...]
       grep [OPTIONS] [-e PATTERN | -f FILE] [FILE...]


Error when running tkinter in python " no display name and no $DISPLAY environment variable" while running the code

The solution that worked for me was to export DISPLAY=:0, or export DISPLAY=:0.0 may work also.
If either of those work, add them to ~/.profile to make it persistent.


update-java-alternatives: Only java, but not javac is changed

Java alternatives are configured in .jinfo files, e.g. those in /usr/lib/jvm/.java-1.8.0-openjdk-amd64.jinfo and /usr/lib/jvm/.java-1.11.0-openjdk-amd64.jinfo in your case. When you look at the Java 8 file, you'll see the following line which configures the path for javac, among others for all other Java binaries:

jdkhl javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac

Unfortunately, it seems like the update-java-alternatives script is outdated on your system, leading to lines prefixed with jdkhl (short for JDK Headless) being ignored. This has also been discussed in Debian bug #825987.

To fix it, just edit /usr/sbin/update-java-alternatives according to this diff.


You can try

dbus-send --print-reply --session --dest=com.ubuntuone.SyncDaemon --type=method_call /events com.ubuntuone.SyncDaemon.Events.push_event "string:SYS_NET_CONNECTED" "dict:string:string:"


If you would have executed makeinfo directly, it would have suggested you the right package name:

$ makeinfo
The program 'makeinfo' is currently not installed.  You can install it by typing:
sudo apt-get install texinfo

After installing the apt-file package, you could also locate it with apt-file:

$ apt-file search makeinfo
...
texinfo: /usr/bin/makeinfo
...

Searching for "makeinfo" on packages.ubuntu.com would give the same information as apt-file.


Try the options given here : Overheating problem in Ubuntu 14.04

If you still experience heating issues and still want to switch to a new os :

Ubuntu uses four main file systems Ext2/Ext3/Ext4 and Btrfs as Ubuntu natives, while on Windows it is FAT32 and NTFS. You cannot install windows on a Ext2/Ext3/Ext4 partition.

Use KDE Partition manager, or any other partition manager to create a new NTFS partition for your windows os.

https://apps.ubuntu.com/cat/applications/oneiric/partitionmanager/

If you wish to remove ubuntu completely :

Boot into windows installation media and click Shift + f10 to open up command prompt.

Execute these commands :

diskpart
list disk          (to see the disks on you system )
select disk 0      ( if ubuntu is installed on disk0 )
clean

NOTE : Using clean will erase your data. if you want to completely format you hard disk, you can use the command > clean all

The deleted disk will now appear as unallocated space in disk partition manager. Now you can install windows by creating a new NTFS partition during windows installation setup.


You might be interested in Mythbuntu which has MythTV integrated into Ubuntu. As for hardware have a look at the Requirements list. I hope this assists in your adventures for a TV Computer machine.


It's a Gtk.Toolbar, see /usr/share/software-center/softwarecenter/ui/gtk3/panes/globalpane.py for how it is created.


Blank screen with AMD Sapphire RX 580 on Ubuntu 16.04

If you use 17.50 version of the driver, it isn't your fault, I'm on 17.10 testing with a RX 580 sapphire and it do that.
So download an old driver version (for me 17.10 (of the driver) work).


Ubuntu and Windows (not on same hard drive)

To run Ubuntu from a USB port, be it a Flash Drive or an External HDD/SSD you first need to download Ubuntu in your preferred flavour and write the ISO to the drive. In Windows there are many tools to convert ISO to USB bootable, but the best one is Rufus. The official guide including links to Ubuntu is here: How to create a bootable USB stick on Windows.

Regarding safety and the access of your files between operating systems. You should be careful about transferring from Ubuntu to Windows without a virus/malware check, as Linux distros often don't have virus checking software for numerous reasons, such as how the OS is sectioned and isolated into built for purpose 'jails'. A transfer could potentially be a risk for software being let loose on Windows without any fail safe.

I do recommend getting a recovery drive for Windows 10, see official instructions here: Creating a recovery drive. Hence, if you do decide to go for dual boot, which is simply making sure you install in the correct boot mode: UEFI or Legacy and having a separate, big enough partition in a EXT format.

To be sure, the quickest way to switch between OS's is via virtual media drives. I recommend VM Player and another option with more options in free mode is VBox. You can create your own 'jail' for the OS as well by limiting copy/paste and shared folders to your root OS.


Logitech Unified Receiver Mouse M510 (EE) Failed to load module "mouse" (module does not exist, 0)

The culprit was the file /usr/share/X11/xorg.conf.d/20-natural-scrolling.conf
that I have added trying to resolve the inverted scrolling direction problem of the laptop touchpad.
It had the following content:

Section "InputClass"
        Identifier "natural scrolling for mouse wheel"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "mouse"
        Option "Device" "/dev/input/mice"
        Option "Protocol" "Auto"
        Option "ZAxisMapping" "5 4"
EndSection

it seems to have no effect on the scrolling though.
EDIT: the below file doesn't seem to have any effect on the scrolling but breaks the mouse functionality. I have deleted it but do not have the problem with the wrong scrolling direction anymore.


While I never did figure out exactly what caused this error, I was able to get a maas up and running. I created it on a vlan that was not as locked down and increased the size of the disk space.


How to find out how a program was removed?

Your apt/history.log gets rotated and archived, meaning roughly every month the logfile gets compressed and stored as /var/log/apt/history.log.X.gz, where X is an incrementing number, 1 being the newest archive.

To also search the older, compressed archives for the string telegram, you can use zgrep which is capable of automatically uncompressing files before matching, if needed:

zgrep telegram /var/log/apt/history.log*


How to reinstall man pages after deleting them

Your problem looks very similar to Accidentally deleted the “/usr/share” folder, but is easier to solve.

You need to reinstall the corresponding files with

sudo apt-get install --reinstall $(dpkg -S /usr/share/ | sed 's/,//g' | sed 's/: \/usr\/share//g')

(I do not list invidiual directories to keep solution straightforward)

Finally you have to check system integrity with sudo apt-get check and with debsums - sudo apt-get install debsums, followed by sudo debsums --all --changed .

The debsums method should be automated, for example with this long command:

xargs -rd '\n' -a <(sudo debsums -c 2>&1 | cut -d " " -f 4 | sort -u | xargs -rd '\n' -- dpkg -S | cut -d : -f 1 | sort -u) -- sudo apt-get install -f --reinstall --

(formatted as inline code for readabilty)


Where does "The program '' is currently not installed." get its program list from?

At the end of /etc/bash.bashrc you'll find some commands which ultimately define the bash function command_not_found_handle. Then man bash tells us that this command is invoked when a non-existing command is typed in. On my machine, the handle invokes /usr/lib/command-not-found as a python script. This again leads into /usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py which seems to invoke apt-get or aptitute (search for the two in the file).


How can I fix lightdm login black border?

I have also been unable to change the image to make it fill the login screen. However, you can change it to your hexadecimal background color of choice. This will fix the black border.

In terminal, use your favorite text editor to open:

sudo gedit /etc/lightdm/lightdm-gtk-greeter.conf

Then do the following:

# background=/lib/plymouth/themes/xubuntu-logo/wallpaper.png
background=#709078

It is a good idea to comment out what was there originally in case you want to go back. I would go to a site like this one to pick out the color you prefer.


1) login to mysql, for example, "root" user in MySQL server:

$ mysql -u root -p
Enter password:

2) put your password then enter, outcome is:

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6485
Server version: 5.5.29-0ubuntu0.12.04.1 (Ubuntu)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>

3) write: show databases;

Outcome is:

+--------------------+
| Database           |
+--------------------+

| information_schema |

| mysql              |

| performance_schema |

| test               |

| zm                 |
+--------------------+

5 rows in set (0.00 sec)"

4) Here are all your databases, say "zm" is the one you are looking for.

write: use zm;

output is:

   Reading table information for completion of table and column names
   You can turn off this feature to get a quicker startup with -A
   Database changed

5) You need to change the password of your user so if you want to check user and other    sections of the table "Users" in the "zm"database.

Write: select * from Users;

Outcome is:

+----+----------+-------------------------------------------+----------+---------+--------+--------+---------+----------+---------+--------+--------------+------------+
| Id | Username | Password                                  | Language | Enabled | Stream | Events | Control | Monitors | Devices | System | MaxBandwidth | MonitorIds |
+----+----------+-------------------------------------------+----------+---------+--------+--------+---------+----------+---------+--------+--------------+------------+

|  1 | admin    |  yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy |          |       1 | View   | Edit   | Edit    | Edit     | Edit    | Edit   |              |            |
|  2 | admin2    | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |          |       1 | View   | Edit   | Edit    | Edit     | None    | Edit   |              | 1          |
+----+----------+-------------------------------------------+----------+---------+--------+--------+---------+----------+---------+--------+--------------+------------+

2 rows in set (0.00 sec)"

6) Then lets say you want to change the password of "admin" user and put it blank, write:

mysql> update Users set Password="" where Username="admin";

Outcome is:

   mysql> update Users set Password="" where Username="admin";
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    mysql>

Please note that all those "y" and "x" are replacing the hash from my passwords in my zm configuration. So if you chose hashed, plain or none in the options menu from zm web page:

"AUTH_RELAY Method used to relay authentication information (?)  hashed   plain   none"

In MySQL you will see the password accordingly, say you'll find a hash, or your password in plain text or an empty space if there was no password at all. I hope this help you. I'm using Zoneminder 1.25 in a Ubuntu server 12.04.


How do I use move space from /home lvm to root lvm

LVM makes this rather easy and straightforward. lvreduce will have to unmount the filesystem you want to shrink, but the filesystm to be expanded can do so while being mounted.

Steps: 1 backup - 2 reduce home lv - 3 check - 4 grow root lv - 5 check - 6 backup config

Only steps 2 and 4 are needed - the rest is just good practice. I also recommend logging the entire process by running script.

Note: The Volume group in the example output is called tetrad (same as the hostname),
you will want to insert the name of your volume group into the commands. The example output was gathered from archived logs as might be deduced from the differring version numbers of the resize2fs command.

Backup (at least your current configuration). Copy your backup somewhere outside the volume group being modified.

root@tetrad:~/Documentation/LVM# vgcfgbackup -f tetrad-vgcfg-2014-10-09-before-2

Reduce home lv

root@tetrad# lvresize --resizefs -L -35G /dev/mapper/tetrad-export

resize2fs 1.42 (29-Nov-2011)
Resizing the filesystem on /dev/mapper/tetrad-export to 23955456 (4k) blocks.

The filesystem on /dev/mapper/tetrad-export is now 23955456 blocks long.

Reducing logical volume export to 91.38 GiB
Logical volume export successfully resized

Check (optional), backup current state as in step 1. You will notice that step 4 does a backup to /etc/lvm/backup/<vgname>, but since that's on the filesystem being modified, you want your copy somewhere else.

root@tetrad# pvs
PV         VG     Fmt  Attr PSize   PFree
/dev/sda3  tetrad lvm2 a-   201.14g 37.76g

Grow root lv

root@tetrad:~/Documentation/LVM# lvextend -L +2G /dev/mapper/tetrad-root -r -v
    Finding volume group tetrad
    Executing: fsadm --verbose check /dev/tetrad/root
fsadm: "ext4" filesystem found on "/dev/mapper/tetrad-root"
fsadm: Skipping filesystem check for device "/dev/mapper/tetrad-root" as the   filesystem is mounted on /
    fsadm failed: 3
    Archiving volume group "tetrad" metadata (seqno 27).
  Extending logical volume root to 26,00 GiB
    Found volume group "tetrad"
    Found volume group "tetrad"
    Loading tetrad-root table (252:0)
    Suspending tetrad-root (252:0) with device flush
    Found volume group "tetrad"
    Resuming tetrad-root (252:0)
    Creating volume group backup "/etc/lvm/backup/tetrad" (seqno 28).
  Logical volume root successfully resized
    Executing: fsadm --verbose resize /dev/tetrad/root 27262976K
fsadm: "ext4" filesystem found on "/dev/mapper/tetrad-root"
fsadm: Device "/dev/mapper/tetrad-root" size is 27917287424 bytes
fsadm: Parsing tune2fs -l "/dev/mapper/tetrad-root"
fsadm: Resizing filesystem on device "/dev/mapper/tetrad-root" to 27917287424 bytes (6291456 -> 6815744 blocks of 4096 bytes)
fsadm: Executing resize2fs /dev/mapper/tetrad-root 6815744
resize2fs 1.42.9 (4-Feb-2014)
Filesystem at /dev/mapper/tetrad-root is mounted on /; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 2
The filesystem on /dev/mapper/tetrad-root is now 6815744 blocks long.

You're done. Now let's just admire the results and keep a backup of the current state.

Check with pvs, lvs
Backup configuration and store copy on a separate filesystem for safekeeping.


Download Ubuntu from this website.
Use Etcher to Transfer the downloaded ISO file to USB flash drive. You can use a computer running either macOS, Windows or Linux.
Insert flash drive into your Mac.
Start or restart you Mac. Immediately hold down the option key until the startup icons appear.
Select and flash drive icon with the label "EFI Boot". If two such icons appear, select either one.
Install Ubuntu.
Follow these instructions after installing Ubuntu.

Your model Mac can not boot from a DVD which has the ability both BIOS and EFI boot. This is why your attempt to boot from the 17.04 Ubuntu disk failed. You Mac has 64 bit processors and a 64 bit EFI. The amd64+mac 14.04 ISO you downloaded is for Macs with 64 bit processors and a 32 bit EFI.

Your model Mac can not to BIOS boot from a USB port. So if you download an ISO file that can both BIOS and 64 bit EFI boot, you need to transfer the ISO file to a USB flash drive. Burning to a DVD will not work.

The table below shows the types of ISO files that can be used to install Linux on your model Mac. Also, included is the resulting type of booting that will occur if Linux is installing using either a flash drive or DVD.

             Boot types in ISO File                       Installed OS Boot Type
----------------------------------------------------- ------------------------------
32 Bit EFI   64 bit EFI   32 bit BIOS   64 bit BIOS   Transfer to USB    Burn to DVD
----------   ----------   -----------   -----------   ---------------    -----------
                                            X                            64 Bit BIOS
                              X                                          32 Bit BIOS
                  X                                     64 Bit EFI       64 Bit EFI
                  X                         X           64 Bit EFI
                  X           X                         32 Bit EFI
     X                                                  32 Bit EFI       32 Bit EFI
     X                        X                         32 Bit EFI
     X            X                                     32 Bit EFI
     X            X           X                         32 Bit EFI


Could you please try the following command from the terminal while ubuntuone-preferences window is open (all in one line, quotes should be included):

dbus-send --print-reply --dest=com.ubuntu.sso /credentials com.ubuntu.sso.ApplicationCredentials.login_to_get_credentials "string:Ubuntu One" "string:Workaround for LP:657850" int64:0

Please let us know if this works.


Is there a way to disable portrait/login picture display in the Xubuntu login?

It is not possible in current version (greeter always display icon - user avatar, icon configured in .conf or default).
You can write feature-request if you think that such option is necessary:
https://launchpad.net/lightdm-gtk-greeter


Vpnc password not stored in network manager anymore

Check the directory /etc/NetworkManager/system-connections if exists your VPN config file. Then, check if the parameter password-flags=1 is there.

Look also this man page about Network Manager. Maybe you can find something else that can help.

Cheers,
Vinícius Leite


After Windows 8.1 update, I can't boot into ubuntu

Have you tried EasyBCD?

There is a free version (Google is your friend)

By the way, you should install Grub on your Linux partition and not on your disk.


Retrieve list of packages from unbootable Ubuntu 15.04 installation

The answer provided by knudfl in 2010 on http://www.linuxquestions.org/questions/debian-26/getting-list-of-installed-packages-from-a-dead-system-811288/ can still help you:

mount the disk of the dead system (e.g. on /media/disk )
grab the list of installed programs:

ls /media/disk/var/lib/dpkg/info/ | grep list


How to get the docky on an other side from terminal

Assuming you are referring to Docky, you can use gconf-editor for that. Press Alt+F2 and type in gconf-editor to bring up the Gnome configuration editor. If it is not installed, type:

sudo apt-get install gconf-editor

in a terminal (Ctrl+Alt+T).

You can then navigate to Apps -> Gnome Do -> Preferences -> Docky -> Utilities -> Dock Preferences(or whatever the path may be) and you should be able to select the "Position" item and change it to whichever position you like.

EDIT: I noticed that you want to be able to do this from the command line, you can use gconftool-2 in much the same way. e.g.

gconftool-2 --set /apps/docky-2/Docky/Interface/DockPreferences/Dock1/Position --type=string Top

(The path may be different on Ubuntu, as I'm currently running Arch and don't have access to an Ubuntu machine)

Source

Source 2, find some cool information on using GConf here.


How to reset mouse acceleration/sensitivity to default on Ubuntu Mate 18.04?

You need to go to MATE Control Center → Mouse (or execute mate-mouse-properties) and then set needed values:

or programmatically with dconf:

dconf reset -f /org/mate/desktop/peripherals/mouse/


Why no gui option to open a program as root?

Because that is not the intended usage of Nautilus manager.  It is intended to manage user related files. Like your documents.

Because we do not use a "root" account and editing files with your admin account (aka. "sudo") will change the permissions and then break stuff. Famous files are .xsession-errors and .XAuthority in your home. If those change into anything else than what they currently are (rw- --- --- and owned by $USER:$USER) you can no longer log into the desktop.

Editing files you need to edit as a admin you should really do from command line. The occasional gksudo nautilus or even gksudo gedit might be useful but should not become common. It will at some point break stuff and that almost always happens when you least expect it and at the worst time.


Wayland is a replacement for X11. GTK+ is still the GUI toolkit used by GNOME and some other desktop environments and there are no plans to replace it.

The two big GUI libraries for Linux are Qt and GTK+. Both can be used with C++ and are likely to stay for the foreseeable future.

Which one is better for you depends on which desktop environment is your primary target. Both libraries can be used with any desktop environment but your app will have a different look and feel if it's using the "wrong" GUI toolkit for your desktop environment.

If you want your app to be used on other systems than Linux Qt is usually the better choice.


Gaming on Ubuntu - How far can you take it?

Before everybody lists out every single game they've played on Ubuntu through Wine, check appdb for specific games you want to run on Wine. Some work at near-native speeds, some don't work at all.

However, the "most modern" games I own are Modern Warfare 2, Dragon Age: Origins and Fallout 3. All work fine on my i7 920 + Nvidia GTX260 but then again, I didn't buy them until I knew they would. In a perfect world, MW2 could run a little faster.

Dragon Age and Fallout both took a lot of wine-hacking to get working originally - They're somewhat easier now but I still patch in WinePulse to simplify audio problems.

For Source games (that is Valve, not the open- variety) like HL2, Left 4 Dead, TF2, etc, you'll find that things run pretty well.


A long time ago (SySV days and earlier), the fsck command did not have -y or -n options.  The command would interactively ask you to change hundreds or thousands of items, expecting a 'y' or 'n'.  The yes command was created to pipe to fsck, and some other programs to be able to repeated answer the interactive questions (again, this was SysV days, long before Tcl and Expect).  The yes program fit very well with the UNIX philosophy: small programs that do specific things very well and work with other programs.


How to restore windows 7 after installing ubuntu using windows factory reset disk

You can create a Windows-compatible partition using the GParted application that is included in the Ubuntu live USB. Use GParted to format the entire drive to NTFS with the boot flag set to bootable. Then you can reinstall Windows 7 from the factory default image of Windows 7 that you have burnt to a DVD. For more information see: How to remove Ubuntu and put Windows back on?.

It is always a good idea to install Windows before you install Ubuntu. When you install Ubuntu and get to the Installation type screen in the Ubuntu installer, choose the option that says: Install Ubuntu alongside Windows 7.  This option will install Ubuntu alongside Windows 7 in a dual boot layout so that when you start the computer you can select to boot to either Ubuntu 14.04 or Windows 7 from the GRUB boot menu.


To remove eclipse(Installed from software center), go to terminal and use following commands,

  sudo apt-get autoremove eclipse

  rm -r ~/.eclipse/

for eclipse downloaded, just delete the folder.


Detecting file systems error, stuck, i cannot continue to install ubuntu "unhandled action bin" error

I solved the issue!

Bluetooth was causing the error, I disabled it in BIOS and the installation proceed without issue.

Sadly Ubuntu didn't give me a more useful error message about what exactly was the issue, so I had to try 1000 things before I stumbled into a post about somebody with bind/unbind errors and tried his fix.


Error when running update: Unable to find expected entry 'restricted/source/Sources' in Release file (Wrong sources.list entry or malformed file)

restricted/source/Sources is actually missing on server side
Try this (use sources.gz instead):

sudo apt-get -o Acquire::CompressionTypes::Order::=gz update

if it solves the issue alter apt.conf and add/alter line

`    Acquire::CompressionTypes::Order { "gz"; "bz2"; };


Please, make sure that proprietary drivers and restricted software repositories are enabled. You need to have these enabled in order for proprietary drivers to show up under additional drivers tab. To do this, please run in the terminal:

sudo software-properties-gtk

Then, make sure to enable the repositories by selecting the check marks like in the image below and clicking on Close when done:

Then, please click on Reload like in the image below:

After that, please wait for the repositories to reload before you proceed to installing your GPU's drivers as usual.

Based on the output you posted of ubuntu-drivers devices:

The recommended proprietary NVIDIA driver for your system is nvidia-driver-430. You can install it like so:

sudo apt install nvidia-driver-430

You will need to reboot after that for the changes to take effect.

You can as well experiment with the other available proprietary NVIDIA drivers nvidia-driver-410, nvidia-driver-390, and nvidia-driver-415. like so:

sudo apt install nvidia-driver-VERSION_NUMBER

Replace VERSION_NUMBER with the version number you wand like 410, 390, or 415

Please be careful if you decide to install other versions that are not recommended for your system. Your desktop GUI might not work properly.

After installation and reboot you might need to select NVIDIA GPU and disable INTEL GPU if you have dual GPU. You can do this by running the following in the terminal:

sudo nvidia-settings

Then select the NVIDIA GPU like in the image below ( you might get a slightly different screen with more options ) but what you need to change is prime:

After that, please reboot your system.

Regarding the error message you get:

  NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA
  driver. Make sure that the latest NVIDIA driver is installed and
  running.

It appears that you have attempted to install, purge and reinstall different NVIDIA drivers too many times but not all of the attempts were successful, so your system ended up with mixed bits and pieces of every driver.

To fix this, you will need to purge every bit of NVIDIA software on your system, by running the following command in the terminal:

sudo apt purge nvidia-*

After that, please run the following command to install a clean copy of the NVIDIA drivers by running the following command in the terminal:

sudo ubuntu-drivers autoinstall

Then, please reboot your system after that for the new driver to be loaded.


How should I use pip to install pyreverse on Ubuntu 15.04?

From the pyreverse PyPI page:

  Pyreverse has now been integrated to pylint

So you most likely need to install that:

sudo pip install pylint

And thepyreserve command should be available.


Mozilla thunderbird is not showing my emails correctly

You can use thunderbird 17 or latest version , some time your sing up is not properly so all the images is not load , so try to proper sign up and completely load your email profile.

for image/pic and attachments, you reset the thunderbird preferences from edit->preferences->set all defaults.

and restart the Thunderbird.


16.04 64-bit LTS problems with radio buttons, checkboxes and VPN

This may answer your question regarding the invisible edges to radio buttons and checkboxes (but not the VPN question)
There is a similar issue here.

I'm using xfce4 on 16.04 (after upgrade from 14.04). I think I've had the invisible checkbox issue before on another upgrade. To solve it this time, at first I tried each theme in order but it didn't change things. Then I went to 'Appearance' (on my menus: Settings -> Settings Manager -> Appearance -> Style. )
I then stepped through the various styles until I hit a style where the checkboxes appeared.

Note that I had previously done a re-install of 'ubuntu-artwork' using synaptic (I'm just mentioning this in case it changed things). Synaptic offered other artwork so there might be other styles and themes available that work for you.


Dual Monitor Resolution Problem with KVM Switch

For all future readers who run into this problem: There is a brute-force solution even with that KVM switch (been there, done that).
Write a short shell script which uses xrandr to set up the monitors.
In that script, define a new mode line, add it to the affected output, and order it to be used.
In my case, it looks like this:
xrandr --newmode "1920x1080" 148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync
xrandr --addmode DVI-0 1920x1080
xrandr --output DisplayPort-0 --rotate left --auto --output DVI-0 --right-of DisplayPort-0 --auto --primary --mode 1920x1080

Then, put this script with "x" permission into your ~/.config/autostart-scripts/ directory.
Hope this helps!
Jörg


Simple Gnome extension may be worth to try. (I'm not sure about naming, in Ubuntu 14.04: Gnome classic uses same Gnome shell extensions, Where old classic renamed to Gnome Fallback)

Gnome Classic & Mate

Download panel-applet-generator
Generate a new applet:

python panel-applet-generator.py -n mylabel -d "my custom label"

Modify mylabelApplet.py

try:
    from gi.repository import Gtk
except: # Can't use ImportError, as gi.repository isn't quite that nice...
    import gtk as Gtk

def applet_factory(applet, iid, data = None):
    button = Gtk.Button("It works!")
    label = Gtk.Label("It works!")
    applet.add(label)
    applet.show_all()
    return True

I added label = Gtk.Label("It works!") and modified applet.add(label) (It was applet.add(button))
Compress mylabel folder as tar.gz then rename it to mylabel_1.0.orig.tar.gz
Build Debian package

cd mylabel/
debuild -us -uc

Install package

sudo dpkg -i ../*.deb

Alt+Right Click or Super+Alt+Right Click on panel, then add to panel
Look for mylabel applet, then add

References:

Making panel applets for Gnome 2 and 3
IntroDebianPackaging

Note:

If for any reason unable to install, It is possible to do it manually:

sudo cp org.gnome.applets.mylabel.panel-applet /usr/share/gnome-panel/4.0/applets/
sudo cp org.gnome.panel.applet.mylabel.service /usr/share/dbus-1/services/
sudo cp *.py /usr/lib/gnome-applets/

32bit system:

sudo cp mylabel.server /usr/lib/bonobo/servers/

64bit system:

sudo cp mylabel.server /usr/lib/x86_64-linux-gnu/bonobo/servers/

Gnome Shell

I have tested it with Gnome 3.10:

Install Gnome tweak tool

sudo apt-get install gnome-tweak-tool

Create new extension:

gnome-shell-extension-tool --create-extension

Enter requested info: name My Label, description Extension shows my custom text, uuid mylabel@yourname or leave as default mylabel@hostname

Extension created in /home/username/.local/share/gnome-shell/extensions/mylabel@hostname
extension.js is auto opened. Replace Icon with your custom label. As below:

function init() {
    button = new St.Bin({ style_class: 'panel-button',
                          reactive: true,
                          can_focus: true,
                          x_fill: true,
                          y_fill: false,
                          track_hover: true });
    let icon = new St.Icon({ icon_name: 'system-run-symbolic',
                             style_class: 'system-status-icon' });

    let label = new St.Label({ text: "Hello, world!" });
    button.set_child(label);
    button.connect('button-press-event', _showHello);
}

I added let label = new St.Label({ text: "Hello, world!" }); and modified 'button.set_child(label); (It was button.set_child(icon);)
Save, Restart Gnome-Shell using Alt+F2, enter r then Enter
Launch Gnome Tweak Tool → Extensions → Enable My Label extension.
Restart Gnome-Shell again.

References:

Step by step tutorial to create extensions
St Reference Manual
Documentation for writing Gnome shell extensions
Making GNOME Shell Extensions


How to see the amount of free disk space in files browser with 13.04 via terminal

You can use the following command to see the disk space available:

df

You can use
df -h
to make the output more readable.


What's Linux analog for "everyone" security principal on Windows

The link given by PerlDuck describes what file permissions are.

Here is a short summary. If you want to give everyone access to a file or directory, you can do this simply by:

chmod a+rwx <filename/directoryname>

E.g.: Make an empty file with

touch myTestFile.txt

Now look at the permission settings with

ls -l myTestFile.txt

or get even more information with

stat myTestFile.txt

Depending how the umask is set, you will get something like

-rw-r--r-- 1 aaa bbb 0 Jul 12 15:58 myTestFile.txt

Here aaa is your username, and bbb is the groupname.

Now you can allow others/all write(w), read(r) or execute(x) access with the following command:

chmod o+rwx myTestFile.txt

or

chmod a+rwx myTestFile.txt

The later changes permission to owner, group and others (=all), while the first only change permission to others.

If you are now typing

ls -l myTestFile.txt

you can see that the permissions have been set.

Using a gui based file browser

You can also use a file browser to change file permissions.
For instance on a gnome desktop open nautilus,  right-click on a directory/file and change to the permissions tab. You will see a window like the one below. You can now change the permissions for others by clicking on the others-access list.


How to transfer files from one server to another?

You can use SCP (Secure Copy

scp <file> <username>@<IP address or hostname>:<Destination>

Example:

scp "TPS Reports.odw" joe@laptop:Desktop/

Link for more information here


How to remove Windows bootoption that results in 'wubildr.mbr'/0xc000007b error message?

This rather sounds like you tried to install Ubuntu with Wubi first and then did a real install from live media. (I don't see how UNetBootin is involved here until this point.)

So you seem to have two Ubuntu installations and the Wubi one does not boot (due to relying on legacy booting were UEFI booting is done - but I don't know much about this topic and am just guessing here).

If that is the case, which means that you can confirm that you:

Can boot Windows without errors.
Can boot Ubuntu without errors.

Then you should continue with:

How do I remove wubi?

Related question that explains more than necessary and troubleshoots issues that you already solved yourself:

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

For more details see the tag info page of the Wubi tag.


How can I switch my audio output device to HDMI without unplugging my USB headphones?

I was able to solve this by simply following these steps: Analog and digital audio output at the same time which I'll repeat here:

Specifically add the following to your /etc/pulse/default.pa :

### Load analog device
load-module module-alsa-sink device=hw:0,0
load-module module-combine-sink sink_name=combined
set-default-sink combined

Furthermore, I went ahead and commented out these lines in the same file mentioned above:
### Should be after module-*-restore but before module-*-detect
#load-module module-switch-on-port-available

and
#.ifexists module-switch-on-connect.so
#load-module module-switch-on-connect
#.endif

Which should also prevent auto switching.
Finally I ran:
pulseaudio -k

To have it pick up the changes. After doing this, I was able to select my DisplayPort/HDMI output and have the sound come out of it properly.


gVim dissapears when minimized and no way to maximize again

The solution provided in the referenced question was to "Logout, then log back in again using Unity 2D, then log back out and back in with 3D. Your problem should be solved."

Thought other might appreciate having the answer right here.


How can i move all files and folders from multiple directories?

The concise way:

mv -vi {$dir1,$dir2,$dir3,$dir4}/* $CYCL

I don't know why you're using the -i option for files you want to delete anyway. You don't care if anything is overwritten, you're just adding more manual steps.
Using your loop:

for dir in $dir1 $dir2 $dir3 $dir4; do
   mv -vi $dir/* $CYCL
done

The for var in list; do ; done syntax will sequentially assign the value of each element in the list to the variable X and then run whatever is in the do block. If you don't mention the variable you used nothing is done to it. For example, this will simply print "hello" 3 times:

for i in Tom Dick Harry; do echo hello; done
hello
hello
hello

If you want to actually do something to the elements of your list, you will need to refer to the variable you assigned them to:

$ for i in Tom Dick Harry; do echo hello $i; done
hello Tom
hello Dick
hello Harry

So, your loop was running mv ./* $CYCL which would have moved the contents of your current directory into whatever is the value of $CYCL. It would not have touched the contents of dirs 1-4 in any way.


Problem with setting up xrdp on Lubuntu 13.04

Ubuntu 13.04 is no longer supported for that I'm giving you solution for Ubuntu 12.04 and then I'll add the 14.04 solution later.
For Ubuntu 12.04
Use a tricky hack(obligate the xrdp to use the ubuntu-2d session always without searching for other sessions)
Install xrdp:
sudo apt-get install xrdp

Now Edit the file startwm.sh:
sudo gedit /etc/xrdp/startwm.sh

In the end of the script you can find these three lines calling functions above:
pre_start
wm_start
post_start

All you have is to comment the wm_start function by inserting leading # then add the line for needed session.
pre_start
#wm_start

gnome-session --session=ubuntu-2d

post_start

The wm_start function which is responsible for starting the window manager.
Now save and exit, then restart xdrp:
sudo service xrdp restart

This should works smoothly. I'm using it since three years ago.
For Ubuntu 14.04 and later
Install xrdp same as above
Install XFCE4 or any other supported
sudo apt-get install xfce4

Edit our .xsession file in your home:
echo xfce4-session >~/.xsession

Edit  startwm.sh file:
sudo gedit /etc/xrdp/startwm.sh

In the wm_start() Add the line startxfce4 just directly under:
 if [ -r /etc/default/locale ]; then
    . /etc/default/locale
    export LANG LANGUAGE
  fi

so the function looks like:
wm_start()
{
  if [ -r /etc/default/locale ]; then
    . /etc/default/locale
    export LANG LANGUAGE
  fi

startxfce4

  # debian
  if [ -r /etc/X11/Xsession ]; then
    . /etc/X11/Xsession
    exit 0
  fi
.....

}

Now save and exit then restart xrdp.
sudo service xrdp restart


I can certainly reproduce this issue on a stock installation of Ubuntu 18.04 where the default media player chokes on amr files:

There  are a variety of ways to fix this issue but in my opinion you are best to install vlc from the Ubuntu Repository. Open a Terminal window and run the following:

sudo apt-get install vlc

This will play amr / 3gp files with no issues from the File --> Open command but if you wish to open these files from a double click a little more work will be required.

Navigate to your amr file and:

Right click on the file and select 'Properties'
Select 'Open With...'
Scroll down to 'vlc' and select it
Click on 'Set as default...'

And then you should be able to double click on your amr file and have it play in vlc. Below is screenshot illustrating the final steps mentioned above:

And now you can play your amr files directly in vlc with a simple double click!

References:

A sample amr file for experimentation can be found here...


If it's a RAID, using mdadm and 1.2 metadata (check /proc/mdstat), there should be no ext4 on the first two. If it's an older format (1.0 or 0.90), parted may misdetect one or two drives as being ext4, which you should ignore.

In any case, you have to format the RAID device itself (/dev/mdX), not the individual partitions. And instead of formatting directly as one big filesystem, you may opt to use LVM and then format the individual volumes you create on your RAID device.


I got the answer in chat.

I had to add nomodeset as a boot parameter to the kernel which made it work. I still get a fail on loading backup graphics device, but since i'll be using the server mostly via ssh that's not a problem.

(In short, it's likely the graphics driver fails in some way. I'm using an NVidia GT 620, which might be too new.)


Watching Netflix in Chrome on Ubuntu 13.10

Pipelight is one of the more popular solutions and my chosen one, but it will not work with chrome versions newer that version 34. From version 35 onward chrome has dropped support for the netscape plugin api, which is the api that pipe light uses. Chrome now only supports the pepper plugin api, so I am not sure that you are going to be able to find anything to make it work unless the pipe light developers decide to support the pepper api which is unlikely and netflix will hopefully be switching away from silverlight in the near future.

I know that isn't what you wanted to hear and isn't really a solution, but I thought that information might be useful.

The only thing that MIGHT work would be to run a windows version of chrome under WINE, but I'm not even sure if that is possible and it probably wouldn't run very well if at all.


mformat is only for formatting floppy disks. This should help you formatting your USB drive:

https://askubuntu.com/a/69129/188545


Why my Airlive WL1700 usb dongle won't allow more than 54MB/s?

The AirLive WL1700 is an 802.11g device, so the best it can do is 54Mb/sec, confirmed by Wikipedia http://en.wikipedia.org/wiki/IEEE_802.11g-2003#Descriptions . You're limited by the hardware, and will need 802.11n or 802.11ac in all your hardware to get faster.


sudo apt get-install g++ unmet dependencies

Finally got it figured out. Thanks @sinclair

Resolved the network issues with changing my wireless network to another one and then ran sudo apt-get install aptitude then sudo aptitude install build-essentials which initially failed but thru the built in troubleshoot it gave me the option of downgrading and that fixed everything. Now I have the g++ I need.


You can make WebM recordings in Ubuntu 11.10 + GNOME Shell by pressing the Ctrl+Shift+Alt+R key combination.

The first time you press the combo, a red circle appears in the notification area, indicating that recording started. The 2nd time you press it, the red circle disappears and you will have your recording in the ${HOME}/Videos directory.

More info here: Gnome Shell Cheat Sheet: Screencast recording


Can I use one system in a dual boot as a sandbox to do insecure things?

Well if you are dual-booting Windows and Ubuntu for instance, then it is say'd to be fairly easy to get into the Windows partition and take a peek at the files present there.

Now when installing Ubuntu, there is an option during the install to encrypt your home-folder. This will give a lot more protection and make the Ubuntu install safer from any harm that might come from elsewhere.

And even without it, the files should be pretty safe. Overall, I don't belive it is so easy to gain access to a whole HDD via just software these days. You would really have to download the worst of the worst from the World Wide Internet for that.

Usually such problems occur, when someone gains access to your computer physically.

Also, I would rather make a VM Ubuntu installation if you want to really mess around with bad stuff. This way you can just delete the VM when needed and no problems will arise.


Install Adobe Flash Player and try again (for YouTube and other Web videos).
(Install Ubuntu Restricted Extras from the software center)


How to find out which package a particular file under /usr/share came from?

Use dpkg -S, as in dpkg -S /path/to/file.

For sorting list in column, Follow:

dpkg -S /usr/share | tr " ," "\n" | sort


apt-get update starts 'by itself' and never stops running

The command updates your package list, while the modifiers -qq means "very quiet", so there is no output and -y means it automatically answers all questions with yes. Maybe you would like to change your settings for automatic search for updates which could possibly start a command like this. Maybe there is also an error with your package sources which make it run in infinite loops. Try executing the command in a terminal without the quiet-option (-qq) and see how it performs. But normally you have to use sudo to run apt-get with root privileges. Is the process you found in your question running as root or as you (normal user)?


How to convert and translate HTML file with KDE Lokalize?

You can also use the xml2po tool to convert the HTML page to a .po or .pot file in gettext format, which you can then load and translate with Lokalize. Once translated, you can use the same tool to build the translated HTML pages. There are a couṕle of examples of invokation when you call the xml2po --help command.

You'll need to install the gnome-doc-utils package to use the xml2po tool


Ubuntu 18.04 not loading NVIDIA drivers for a RTX card

The issue was that I've installed the driver two times accidentally. At first, I've installed the driver through a PPA repository. But when I installed the Cuda Toolkit with a run file, the graphics driver was installed a second time.

Uninstalling the ppa-installed driver worked for me!


What happens to Firefox Bookmark Tags on export?

What happens to those tags on export of my bookmarks?

They are exported. (Tested with Firefox 48)

  How are they handled on import into other browsers, e.g. Chrome or Chromium?

They are not supported in Chromium (see: https://bugs.chromium.org/p/chromium/issues/detail?id=17536)


i suggest you to install gparted : sudo apt-get update; sudo apt-get install gparted and then you can format new hdd and create partition you want.


eclipse-pydev disappeared after upgrade to 16.04

Pydev 4.5.5 works!

Finally I tried to install older versions of pydev via the links provided on
http://www.pydev.org/update_sites/index.html

Here I used version 4.5.5, the highest version that doesn't require java 8.
This works together with the eclipse 3.8.1.

Although I have installed openjdk 1.8 pydev doesn't seem to find a java 8 API.
The possible reason is that the highest java version the osgi framework provides ist 1.7 !
The relvant configuration entry is (might be):

org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6,JavaSE-1.7

Maybe this is the solution until Canonical provides an Eclipse with an updated osgi framework.
To avoid the installation of  inconpatible pydev 5.0 or higher during eclipse's software update function one should not use the standard pydev update site (http://pydev.org/updates).


Ubuntu Mate - Not enough space in /boot to update

You can dynamically increase the size of your boot partition:

How to dynamically increase a Linux partition

Hope this helps :)


What's the name of log error viewer from U.Budgie?

Solved, it is gnome-logs. Too sad it's not build-in on most(-ish) distros, it's a very useful thing, imo


How do I install Ubuntu on the same USB stick as the installer is on?

That depends on how you have created your USB stick. If you used dd to copy the image to the raw device (not a partition) then I don't see how you could add the necessary partitions afterwards.

If you have a partition table on the stick then just create the necessary partitions and select the appropriate partitioning scheme you want to use. This will probably overwrite the bootloader or it's configuration for the LiveISO which can be tricky to work around, but if you intend to boot UEFI and loop mount the ISO like in section 2 from How to create UEFI-only bootable USB live media? then it should be possible to install to another partition on the same storage device and use the FAT partition as ESP.

It's almost the reverse of putting a LiveISO onto your ESP and configuring it according to the instructions in the link. You can also create a BIOS bootable partition on GPT is you need it, setting up MBR booting could be done in almost the same way (embedding the MBR image is a bit tricky) but I haven't looked into that.


This is most likely because you have an issue with your bluetooth drivers. Have a look here how to install bluetooth drivers on Ubuntu and other common bluetooth problems that you might be facing.
https://medium.com/@overcode/fixing-bluetooth-in-ubuntu-pop-os-18-04-d4b8dbf7ddd6


Stuck in an infinite login loop after replacing PATH

you should edit /etc/environment to following
PATH=$PATH:/usr/local/java/jdk1.8.0_111
no export.
Just use ctrl alt f1 go to log-in command. use /usr/bin/sudo nano /etc/environment and edit it.
then reboot you should be able to login


VLC doesn't open when double-clicking file on Nautilus

Open the terminal:

sudo nano /usr/share/applications/vlc.desktop

After Exec= add:

/usr/bin/vlc --started-from-file %U

If this doesn't work, try just with /usr/bin/vlc. Last resort you could use the following line:

xterm -e "vlc"

But I assume you want to avoid terminal dependency.


Xenial checking much fewer apt-get sites

No, you're not wrong. Ubuntu is maturing.

<yoda>Will you, less sources, see henceforth</yoda>

As per the Release notes of Xenial, some packages/repos were dropped.

  Updated Packages

  As with every new release, packages--applications and
  software of all kinds--are being updated at a rapid pace. Many of
  these packages came from an automatic sync from Debian's unstable
  branch; others have been explicitly pulled in for Ubuntu 16.04.


How to open file from Unity with non-default application

There is one way, but you have to have the application with which you want the image to open, locked to the unity launcher. Provided you have done this, then drag and drop the image to it:


Unknown item on unity desktop - is that a widget, can it be removed?

I found the responsible program. The indicator "my-weather-indicator" has a widget option. However, that widget does not function correctly and puts the below described pin/circle onto the desktop. Maybe that works correctly, if the widget layer of unity is enabled.

I got rid of the icons now by opening the preferences of the weather indicator and disabling the widget option.


System keeps booting into windows instead of giving an option to choose

You can change the options of the grub menu by pressing one of f-buttons while booting.
I don't know which one as it is not the same for all the computers. (Mine is f8)
For more information: https://help.ubuntu.com/community/Grub2


It seems that the signature for google earth is not verified ( and it seems that its a common problem with google earth) so try the following:
Setup key with:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Setup repository with:

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

Time to update now :

sudo apt update


PHP `virtual()` with Apache MultiViews not working after upgrade to 12.04

As the "binary gibberish" mentioned above made me curious, I investigated a bit further and copy-pasted it into a file named foo.gz, and ran gzip -d foo.gz. As already suspected, this yielded no error message (though the output still was gibberish -- just different gibberish). Comparing the /etc/apache2/mods-enabled on my new machine with a similar setup on an older machine turned up mod_deflate being enabled on the new machine. So I removed that from the enabled mods (by simply deleting the symbolic links deflate.conf and deflate.load), reloaded Apache... problem solved. At least it looks like...

Edit:

Only the "gibberish part" is solved by disabling mod_deflate. Remaining issue: As soon as the link passed to virtual() triggers mod_negotiation (i.e. the MultiViews part), the included text is moved to the very top of the output (i.e. in front of the <HTML> tag), which breaks most pages. If the targeted link does not need to be negotiated, the included text is placed correctly. Very confusing.


Dual Boot cannot boot from windows, Power off in Ubuntu

Try without creating separate /boot partition.

Just create two partitions / and swap and install grub-bootloader in /dev/sda


RTL8723BE bluetooth signal drops after few centimeters

You may want to check for a driver conflict with a generic driver for the same card. I had a similar problem with rtl8723bu (usb version of your pcie chip). I installed the driver from github but only had it working after blacklisting a driver called rtl8xxxu.


The following bash script will check the state of the battery every 5 seconds. If the state is "discharging", it enters an alarm loop where it maximizes the master system volume and rings the terminal bell every 0.1 seconds until the state is returned to something other than "discharging". Attempting to mute the system will not silence the script, as it will set the system volume back to the maximum value at every inner loop iteration. The purpose of the slower outer loop is to minimize the impact of the state checks on your system resources.

#/usr/bin/env bash

cmd="upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -i state"

while true
do
  result=`eval $cmd | awk '{print $2}'`
  if [ $result == "discharging" ]
  then
    while [ $result == "discharging" ]
    do
      amixer set Master 100
      echo -e '\a'
      sleep .1
      result=`eval $cmd | awk '{print $2}'`
    done
  fi
  sleep 5
done

You can set this to run at system boot by running crontab -e and then adding something like @reboot /path/to/script, where the path points to this script.

You can kill the script by running top and finding a bash process with a very low PID (since it started right at system boot), and then feeding its PID to kill.


How to find support for specific package version in upcoming Ubuntu versions

You can find your require information from this site. You can easily search in different Ubuntu version and get your desire information.


Can I make the top bar value changes using CLI with tweak?

Open Terminal and run

gsettings set org.gnome.desktop.interface clock-show-date true

to enable the option to show date in top bar.


Extra Mouse button assigned to Super-W short cut

That sounds more like something set via CCSM/CompizConfig Settings Manager.


How do I get SSH server to work with putty client?

This might sound a little obvious, but you need to setup puTTY for ssh, it can do multiple protocols.  Under category Session:

Hostname: <remote IP>
Connection Type: ssh
Port: <should default to 22>

Note if you moved the port from he default, you'd have to specify it in your linux connection too.

Next down in Category Connection->SSH check that preferred SSH is set to "2" or "2 only" (your config shows two support and it's a better choice than 1)

Finally puTTY can store information in it's own log which might illuminate the problem click on the Session->Logging category to find out where the file is, set logging to "All session output" and see what shows up.

The error your getting shows the remote server isn't even establishing a connection, which means:

You have the wrong IP
You have the wrong port
There's a firewall on the remote server preventing connections from this box
There's an SSH setting preventing your specific host from connecting (as harish.venkat mentioned)


What's the difference between a programme like Media Tomb and Samba

Yes, you need both. You need Samba to join the Workgroup that your NAS is a member of. The default name is "WORKGROUP" but that may vary. In your Files manager, a "Network" item will appear. If you click that, you will be able to access the files on the NAS.

Media Tomb - or any media player - will probably not allow you to play songs on the network straightaway. To do this, you need to create a directory (something like /media/nas) where you will put the share. Think of /media/nas as a drive letter under Windows. This is a process called mounting. As soon as the NAS is mounted under /media/nas, you can access the music as if it was stored locally, and Media Tomb will find it.

If the mount succeeds, you should consider adding a line in /etc/fstab to have your NAS automatically mounted the next time you reboot.

Plenty of information on how to install Samba and connect to a workgroup, as well as mounting a share and making sure it is remounted at boot time, is available on this web site.


Upgraded to ubuntu 12.04 now wireless does not work.

You need to remove and reinstall the Broadcom driver.
The easiest way to do that is:

//remove the old driver

$ sudo apt-get remove bcmwl-kernel-source

//install the new one

$ sudo apt-get install bcmwl-kernel-source

// reboot your system

$ sudo reboot

Then it should work.


How can I remove the title bar on Ubuntu 19.04?

There are two kinds of titlebars, the "classical" title bar provided as a Windows decoration and, for GTK3 applications only, the new "Client side decorations" (CSD), where the title bar is provided by the application itself, and as such can contain other functional elements such as buttons etc.

All solutions you tried remove the "classical" title bar. They will work on 19.04 provided you run xorg, and may not necessarily work on Wayland. So first check whether you are running xorg or wayland. If you are running Wayland, you can switch to xorg by logging out, then before logging back in, you can select a session on xorg after clicking the cog wheel.

If your application uses a CSD titlebar, then it cannot be removed.


It looks like one or more applications have a memory leak. This bug may have been fixed already. Try

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


Can't log in Ubuntu 16.04 using Nvidia proprietary driver

I had

purged nvidia drivers
logged in using the default graphical mode
chosen my nvidia driver version (361 for me) in the Additional Drivers tab located in the Software & Updates window
launched the nvidia X server settings and had chosen Intel (Power saving Mode) in the Prime Profiles
logged out and in to validate the profile change
rebooted and I was able to logged in.

PROBLEMS :

When I had checked in the Additional Drivers tab, even if the nvidia driver-361 was checked, it still says that "This device is using an alternative driver".
Maybe it's due to the profile I've chosen...I really don't know why.
I still can't use the nvidia proprietary drivers normally.
So still not solved.


Problem with installing windows 7 back to my pc

Since you have failed to provide the model, I can only give you loose guidelines.

A) Use the correct f1 key to enter the BIOS during startup and change the boot order,

OR

B) Use the correct f1 key to open the boot menu and select the Win 7 USB drive.

Also, make sure that you have Legacy boot enabled if this is a UEFI computer.


No graphical user interface after update on 16.04

You might want to try to install NVIDIA drivers 361 - open a terminal and execute the following commands :

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


Last version 3.0.7.1 is a minor upgrade from the 3.0.7, so you should choose the latest, source can be trusted as the repository is ubuntu-bionic-updates-universe.

Changes between 3.0.7 and 3.0.7.1:
----------------------------------

Access:
 * Update libbluray to 1.1.2

macOS:
 * Fix bluray java menu playback regression in 3.0.7

Video Output:
 * Fix hardware acceleration with some AMD drivers
 * Improve direct3d11 HDR support


How to install build dependencies for source not available in Ubuntu repositories?

You are looking for auto-apt. This tool gets a list of all the files contained in the repositories, along with the packages and installs the dependencies that your programs look for. It's syntax is a mixture of what apt-file offers with the plus that you don't have to figure out the error that make or configure shows you, and you don't need to do a search manually. It installation and use is easy.

Prerequisites

You must install it first:

sudo apt-get install auto-apt

and then update the package list (this is recommended at least before you start building something):

sudo auto-apt update

Usage

There are two ways you can use it:

auto-apt run command

it will run the command, if it finds some file that doesn't exist in your box it will ask you to put your sudo password and install it.

sudo auto-apt run

This will drop you in a non-root shell while the auto-apt main program will have root privileges. Any file operation will be performed by your user, so you don't have to fear about using root account.

Other interesting stuff

auto-apt includes a debuild command that will list you all building dependencies without actually building anything. This is a helper for first time maintainers that wants to compile/maintain their own version of packages not available in the Ubuntu/Debian ecosystem.


Software Center - "Edit->Software Sources" disabled

Add it from a terminal, just type:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine


Why Is 11.10 being worked on faster than previous releases

This is a very subjective question and there is no correct answer as such.

Today I got a huge update as opposed to many small updates which used to arrive. Our rate and update size will differ based on the applications installed. I have noticed that they have fixed more bugs this cycle. Previous cycle was more about Get Unity up and running and make it stable enough to be minimally usable. This cycle was about Get Unity usable and fix big, small bugs. Probably the workload on Desktop team was less, so enough attention was given to other packages too. This might explain the more bug fixing. My statement that more bugs were fixed is just a personal experience.

As you asked whether is will be a base for 12.04? Ubuntu does not take the previous release and start working on it. Every time after the release when development is open, there is a package sync period from Debian. Usually sync happens from Debian unstable for regular releases. Since 12.04 is an LTS, it will be based on Debian testing rather than Debian unstable

It is true that they carry forward the patchset and all the improvements from previous cycle, but those are a very small percentage of the whole archive changes. Debian moves ahead in 6 months and updating old packages is an enormous task, so they just sync from debian every time.


Creating ext4 filesystem on 20TB Raid5 is still running - has it stalled or is this a very long process?

killed the badblock process (through the webmin process manager GUI). Didn't seem to cause an issue with the file-system as I was able to mount it (again, though the webmin raid manager GUI), so am assuming badblock and mkfs (filesystem creation) run independent of each other.


How to prevent kernel upgrade from changing systemd configuration

It seems likely that NetworkManager-wait-online.service invoked NetworkManager.service.  Once I disabled the former, the latter wasn't activated at boot.  It could be that such behavior is not new - I never noticed NetworkManager-wait-online.service before and usually boot up with the online connection present.

Since the question is "wrong", I am open to removing it.  On the other hand it might helpful to leave it.


How to Reinstall (all) Language Package(s)

As @Gunnar Hjalmarsson mentioned, you can add hidden layouts by using:

gsettings set org.gnome.desktop.input-sources show-all-sources

which comes from this Ubuntu Help Page. After executing that command on a terminal, hopefully, the layout should appear for you.


HDMI TV Stopped Working After Crash - Ubuntu 16.10 - Lenovo Thinkserver TS140 - Integrated Intel HD Graphics 4600

Assuming the problem is not with your TV try installing the closed source drivers from Intel https://01.org/linuxgraphics/downloads/intel-graphics-update-tool-linux-os-v2.0.4 and disabling secure boot http://www.techzim.co.zw/2017/01/heres-guide-installing-intel-graphics-driver-ubuntu-16-04/