Two displays with different resolution are joint

Install arandr

sudo apt-get install arandr

Run xrandr.

If your chosen resolution exists (regardless of which monitor it appears by) then skip the next step
If your resolution does not exist, create it by doing the following:

In this example the resolution I want is 1280x1024
cvt 1280 1024. This will create a modeline like this:

"1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync

Create the new mode:

xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync

Add the mode (resolution) to the desired monitor (VGA-1):

xrandr --addmode VGA-1 "1280x1024_60.00"

Run arandr and position your monitors correctly
Choose 'layout' then 'save as' to save the script
I found the best place to load the script (under Xubuntu) is the settings manager:

xfce4-settings-manager

OR

Menu -> Settings -> Settings Manager -> Session and Startup -> Application Autostart

If you have also take problem must comment me.....:)


Installed application as root, unable to use by other user

Do I assume correctly that you followed the guidelines and installed it while logged in as "root"?

If that is the case then the cleanest solution should be to uninstall the software as root and then reinstall it with "sudo" command.The point is that if you install it while logged in as root, it will install it for the root user. But if you are logged in with your normal user account and run command with "sudo" it will run it with privileges of root but as your normal user.

I have not tried this (!) and it is rather theoretical but hopefully it works for you.

I found this guide about uninstalling MobilePartner:
http://i-zw.blogspot.fi/2013/01/how-to-uninstall-mobile-partner-from.html
But you should log in as root and then run:

# /usr/local/Mobile_Partner/UninstallMobilePartner

If you succeed in uninstalling it, you should then log root out by typing:

# exit

Now reinstall the software again but don't do it as root. Instead but "sudo" in front of the command in second step of the original guide. If everything works as I expect, then you should now see the icon on the normal user desktop.


How to get Lubuntu to autorun the Minecraft server script on boot?

you can use cron special string @reboot. add this to crontab section

type crontab -e then choose an editor
add this entry @reboot /etc/init.d/minecraft start


VPN openconnect pulse disconnects itself in Ubuntu 20

Problem is UDP. you disable DTLS and ESP.
"openconnect --no-dtls"
if you use NetworkManager,
sudo mv /usr/sbin/openconnect /usr/sbin/openconnect.bin;
sudo vi /usr/sbin/openconnect
#!/bin/bash
/usr/sbin/openconnect.bin --no-dtls "$@"

save /usr/sbin/openconnect
sudo chmod 755 /usr/sbin/openconnect;


WiFi 8812au does not work on Ubuntu 18.04 Kernel 5.0.0-36

Use this repo and follow the instructions

https://github.com/aircrack-ng/rtl8812au

//step 1
git clone https://github.com/aircrack-ng/rtl8812au
//step 2
make all or make
//step 3
sudo make install
//step 4
sudo mod probe 88XXau

That's it your wifi will be up :)

PS: make sure that you remove any driver's which you installed previously.


How should I go about setting up 18.04 and lxqt desktop?

I suggest waiting for Lubuntu 18.10 if you are not ready to take some risks.

On the other hand I don't see why you wouldn't have a working LXQT session on top of Lubuntu. But I guess you need mote than the lxqt package.

I can describe my own experience: I have installed on top of Kubuntu 18.04.

That is what was reported in terminal:

sudo apt-get install lxqt

The following additional packages will be installed:
  calibre calibre-bin desktop-file-utils featherpad ffmpegthumbnailer fonts-mathjax galternatives gconf2 gucharmap gvfs gvfs-backends gvfs-common
  gvfs-daemons gvfs-fuse gvfs-libs libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libdbusmenu-gtk4 libffmpegthumbnailer4v5
  libfm-data libfm-extra4 libfm-gtk-data libfm-gtk4 libfm-modules libfm-qt-l10n libfm-qt3 libfm4 libgdata-common libgdata22 libgnome-2-0
  libgnome-keyring-common libgnome-keyring0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0
  libgnomevfs2-common libgoa-1.0-0b libgoa-1.0-common libgucharmap-2-90-7 libjavascriptcoregtk-4.0-18 libjpeg-turbo-progs libjs-coffeescript
  libjs-mathjax libjs-sphinxdoc liblxqt-globalkeys-ui0 liblxqt-globalkeys0 liblxqt-l10n liblxqt0 libmenu-cache-bin libmenu-cache3 libmuparser2v5
  liboauth0 liborbit-2-0 libpodofo0.9.5 libqt5xdg3 libqt5xdgiconloader3 libqtermwidget5-0 libstatgrab10 libsysstat-qt5-0 libtidy5 libutf8proc2
  libwebkit2gtk-4.0-37 libwnck-common libwnck22 libxfce4ui-1-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-2
  libxres1 libyelp0 lximage-qt lximage-qt-l10n lxmenu-data lxqt-about lxqt-about-l10n lxqt-admin lxqt-admin-l10n lxqt-config lxqt-config-l10n
  lxqt-core lxqt-globalkeys lxqt-globalkeys-l10n lxqt-notificationd lxqt-notificationd-l10n lxqt-openssh-askpass lxqt-openssh-askpass-l10n
  lxqt-panel lxqt-panel-l10n lxqt-policykit lxqt-policykit-l10n lxqt-powermanagement lxqt-powermanagement-l10n lxqt-qtplugin lxqt-runner
  lxqt-runner-l10n lxqt-session lxqt-session-l10n lxqt-sudo lxqt-sudo-l10n lxqt-system-theme lxqt-themes pcmanfm-qt pcmanfm-qt-l10n python-apsw
  python-asn1crypto python-bs4 python-cffi-backend python-chardet python-cherrypy3 python-cryptography python-cssselect python-cssutils
  python-dateutil python-dnspython python-enum34 python-feedparser python-html5-parser python-html5lib python-idna python-ipaddress python-libxml2
  python-lxml python-markdown python-mechanize python-msgpack python-netifaces python-olefile python-openssl python-pil python-pkg-resources
  python-pygments python-pyparsing python-pyqt5 python-pyqt5.qtsvg python-pyqt5.qtwebkit python-regex python-repoze.lru python-routes
  python-simplejson python-sip python-six python-utidylib python-webencodings python-webob python-yaml python3-xdg qlipper qpdfview
  qpdfview-djvu-plugin qpdfview-ps-plugin qpdfview-translations qps qt5-style-plugins qterminal qterminal-l10n qtermwidget5-data quassel
  quassel-data thunderbird xfconf xfwm4 xscreensaver xscreensaver-data yelp yelp-xsl
Suggested packages:
  gconf-defaults-service samba-common libbonobo2-bin libfm-tools nautilus-actions desktop-base gnome-icon-theme libgnomevfs2-bin libgnomevfs2-extra
  gamin | fam gnome-mime-data coffeescript fonts-mathjax-extras fonts-stix libjs-mathjax-doc libwebkit2gtk-4.0-37-gtk2 devhelp compton compton-conf
  juffed lxappearance nomacs obconf-qt openbox qtpass screengrab | shutter vokoscreen zim faenza-icon-theme gnome-themes-standard cmst
  | network-manager-gnome cdtool python-apsw-doc python-cryptography-doc python-cryptography-vectors python-enum34-doc python-genshi
  python-lxml-dbg python-lxml-doc python-markdown-doc python-openssl-doc python-openssl-dbg python-pil-doc python-pil-dbg python-setuptools
  ttf-bitstream-vera python-pyparsing-doc python-pyqt5-dbg python-paste python-webob-doc thunderbird-gnome-support ttf-lyx xfce4 xfwm4-themes
  xfishtank xdaliclock xscreensaver-data-extra xscreensaver-gl xscreensaver-gl-extra fortune qcam | streamer gdm3 | kdm-gdmcompat
Recommended packages:
  qtermwidget-l10n disk-manager perl5

Then (and some of those below may be what was lacking in your case; having Lubuntu, you surely don't need openbox; I leave it there because I'm just pasting here the data of my own experience):

sudo apt-get install openbox pcmanfm-qt lxqt-admin lxqt-common lxqt-config lxqt-globalkeys lxqt-notificationd lxqt-panel lxqt-policykit lxqt-powermanagement lxqt-qtplugin lxqt-runner lxqt-session lxqt-sudo nm-tray

Remember that I was on top of Kubuntu. When I selected the lxqt session, I was prompted to select a window manager, and I did select Kwin, which I prefer. Maybe you could select openbox, or you may install Kwin too.

Once in LXQT, I have selected nm-tray to start with the session under Session Settings.

Considering appearance, I would recommend the following:

Lxqt theme: Dark (I think it comes by default), there are others here but most look very bad.

Widget styles are the same as in Plasma/KDE. I'm not sure which ones come by default in Lxqt-only, because I have it on top of Plasma, but Kvantum can be installed from deb and the most common ones are present in the repositories; find them by searching "kde-style". More here.

LXQT has a nice launcher called runner.

More tweaks on Lxqt are mentioned in my other posts here and here.


Import local files from hard drive in Spotify

The issue you likely have is that the Spotify client does not have permissions to read from directories outside your home directory.

The easiest way to fix your problem is probably mounting your drive to a folder within your home directory:

# unmount drive
sudo umount /media/username/diskname
# Create mountpoint under ~
mkdir ~/mnt/diskname
# Mount the drive
sudo mount /dev/sdX ~/mnt/diskname


macOS like Expose/ Mission Control on Ubuntu Budgie 20.04

The standard Ubuntu edition, which uses the Gnome Shell desktop, includes the Activities Overview. This shows you miniatures of all windows of the desktop, the dock, and to the right, the different workspaces that are in use. Clicking "Activities" in the top left corner or pressing the Super key quickly brings you to that central overview.


Installed KDE Plasma and then removed it and now my computer is stuck in Ubuntu 18.04.3 LTS tty1 cli

Important packages are installed on the installation LiveUSB flash drive, so use two LiveUSB Ubuntu installer flash drives; one to boot from, and one to mount to access the packages you need. Create a second LiveUSB with the same version of Ubuntu you were using to install.

Boot from one of the LiveUSBs.

Mount the other LiveUSB (probably /dev/sdb)  at a path (/tmp/mnt will work) with

mkdir /tmp/mnt && sudo mount /dev/sdb1 /tmp/mnt

Then, edit /etc/apt/sources.list to only contain

  deb file:///tmp/mnt/ main universe

Do sudo apt-get update then you can reinstall Gnome with apt install meta-gnome3.


Insufficient permissions to access USB/Flash drive after UID change

I managed to solve this problem by unmounting all USB disks I had plugged in and deleting the /media/username directory.

Then, when I plug in my USB stick again, the directory gets re-created and all is good.


What you tried didn't work because the access denied output are errors and sent on STDERR instead of STDOUT which is piped to grep.

You can avoid seeing those errors by redirecting only STDERR

find /home -iname "*.pdf" 2>/dev/null

Or as David Foerster commented we can more succinctly close STDERR

find /home -iname "*.pdf" 2>&-

However, I suspect you actually only want to search your home rather than other users', so perhaps you really want

find ~ -iname "*.pdf"

If that throws errors there may be some wrong ownerships in your local config, which you should investigate.


make sure that you have the appropriate privileges to create this folder. (0x2) error

You may like to remove your wineprefix instead. Just do:

mv .wine/ wine.bk/

And try again.


How to deal with `apt-get autoremove` in Ubuntu

The rules for autoremoval are actually quite simple.

The specific answer to your question "safest approach to remove unwanted applications/libraries in Ubuntu that does not involve checking all of the packages and their dependencies one by one" is: Let Apt do it's job. You can do that when you better understand how apt makes it's decisions. For most new users, this is a normal part of the learning curve. So let's discuss Apt logic....

Apt has no idea if you are using a package or not. It's not psychic. It only knows each package's dependencies, and what you tell it. In order for any package to be eligible for autoremoval (orphaned), it must meet two criteria:

It must be apt-marked as auto (instead of manual)
No manual package depends --directly or indirectly-- upon the package.

There are three complicating behaviors that confuse users.

Apt remembers which packages you explicitly install and marks those packages manual. All other dependencies are marked auto.
The Ubuntu installer marks ALL initial packages on a fresh install manual. This is to keep new folks from accidentally removing huge slabs of their system.
Kernel packages operate slightly differently due to a bit of Ubuntu script-fu.

That's it - two rules and three special behaviors. Everything else is plain old logic.

Let's look at a couple common examples to see how those rules and behaviors apply.

Example #1: sudo apt install foo libfoo

It's fairly obvious that anything called libfoo is probably a dependency of foo. And apt knows that, too. However, we explicitly told apt to install libfoo - it will be marked manual, and won't be eligible for autoremoval. Had we instead said only sudo apt install foo and let apt calculate the dependencies, then libfoo would be (properly) marked auto and would become eligible for autoremoval when foo is removed.

Example #2: sudo apt remove ubuntu-desktop

If you build up an Ubuntu system from a minimal image, or if you install LAMP stacks or new Desktop Environments after the initial install, then Metapackages like ubuntu-desktop are great - the whole stack in one command. But look at it from apt's point of view: A single manual package and dozens (hundreds) of auto dependencies. The moment you uninstall the metapackage due to trying a different application...well, you get the idea.

The way out is to simply mark your key top-level applications as manual:

sudo apt install foo       // Even if foo is already installed
sudo apt-mark manual foo   // Does the same thing
sudo apt-mark auto libfoo  // Makes libfoo eligible for autoremoval someday when foo gets removed
sudo apt remove foo        // Apt will remove foo *regardless* of apt-mark

Remember that apt-marking simply tells apt which packages are your top-level applications ineligible for autoremoval - it does NOT protect them from human folly.

The easy way to browse an autoremoval list for most folks is to simply look for top-level key application packages - your email client, your web browser, your IDE, your favorite game. Look for foo, ignore libfoo.  When one does slip by and get removed, simply reinstall it - remember that telling the system to install a package marks it manual. However, your particular use case is more complicated since you compile software and use -dev packages. There is no magic solution for you (sorry) - you must take the time to learn which packages are important to you...just like the rest of us did.

Caveat: All this applies to deb packages from the Ubuntu repositories. If you add a lot of weird packages from someplace else, then there is more package housekeeping you must do. Remember that apt has no knowledge of nor control over pip, snap, flatpack, appimage software, downloaded binaries or scripts, or compiled code.


Hivemind, Your samba configuration looks correct, so my best guess would be file-system permissions. Your user, "matt", may not have access to write to those directories. Are you able to navigate to another folder you can write to from your root share? (Note: sharing the root of your filesystem is not the best idea in the world.) If so, then it almost certainly is file-system permissions, and if you do need to have write-access to a folder, your best bet will be chmod commands. A good tutorial on those can be found here:

http://www.linux.org/threads/file-permissions-chmod.4094/

Note that this should be done with caution, and selectively.


How can I reserve disk space in case of emergency? (When a rogue app fills the disk)

Different solution, prevent your processes from filling up the disk. At least two solutions:

Filesystem quotas as supported by the OS set to the user/group of the rogue processes.
Pre-allocate a "loopback" filesystem (a file mounted as a file system) set to the maximum size that your process can normally use, and make your processes use it: either mount it where the rogue process create their runaway output or change the config or the rogue processes to write where you set up such a filesystem


BCM43225 not working on Lubuntu 12.04 64 bit

My configuration: notebook acer 5742 - ubuntu 12.04 x32 - card wireless bcm43225

Solution for problem in my computer:

In the file: "/etc/modprobe.d/blacklist.conf"  disabled the line: "blacklist bcm43xx" posing as commentary.
At the command line:

sudo apt-get update

sudo apt-get --reinstall install bcmwl-kernel-source

Restart ubuntu ...


One solution is to remove the package(s) you just installed using a live session.

You'll need another computer to make a bootable USB stick on Ubuntu or Windows
Boot into your USB, and find your Ubuntu root parition(ext4with LABEL="root", or no label):
sudo blkid | grep ext4
Mount your Ubuntu root partition:
sudo mount /dev/sda[?] /mnt/
Change root:
sudo chroot /mnt/
Remove the intel package:
apt-get remove --purge [intel-package-name]
Umount and restart:
exit
sudo umount /mnt/ && sudo reboot


How do I change address books in gnome-contacts?

You can rerun the "first time setup" of gnome contacts by opening dconf-editor (maybe you need to install it) and changing org/gnome/Contacts/did-inital-setup to false.


How to fix a dpkg broken by the Brother MFC-7340 deb driver

You can always (re)install a package using dpkg:

dpkg --install local-file.deb

In order to make a "clean room" installation, you can first purge the package and then install it again:

dpkg --purge brmfc7340lpr
dpkg --install brmfc7340lpr*.deb

You might need to add option --force-depends during purge, if some other package depends on brmfc7340lpr.

Update: Based on the transcript you posted, it seems that the
 brmfc7340lpr package cannot be (re)installed because its
 post-removal script is erroring out.

Those files are stored in directory /var/lib/dpkg/info; for each
package X, there can be any one of these scripts:

X.postinst run after the package has been installed, e.g., to
start services provided by the package.
X.prerm run before removing/purging the package, e.g., to
ensure that daemons provided by the package are stopped.
X.postrm run after the package has been removed, e.g., to
signal any service optionally using the package that it is no
longer available.  (For instance, a printer driver package might
want to signal cpus/lpr to remove printers depending on that
specific driver.)

Now, this brmfc7340lpr package seems to try to (re)start the lpd
printer daemon upon removal, which won't work as Ubuntu uses CUPS
instead: you should definitely look for a CUPS-compatible printer
driver -- see the link in Jorge Castro's answer. (I think this is a
bug in the package, as it should not restart the lpd service
unconditionally, but just reload it if it's already running.)

The best option to go forward comes from this launchpad
answer:

ln -s /etc/init.d/cpus /etc/init.d/lpd

This will effectively (re)start CUPS when the lpd service is instead
searched for.

Otherwise, I only see two options, both rather unpleasant:

Either edit the /var/lib/dpkg/info/brmfc7340lpr.postrm script,
and comment out the line that is invoking /etc/init.d/lpd start
(or restart or stop), (e.g., just replace it with /bin/true).
Another option is to just place exit 0 as the first non-comment
line in the script. This would be my favorite, but requires a bit
of confidence with editing shell scripts.
Install lpr, purge the brmfc6340lpr package, purge lpr: this
requires a bit of attention as lpr conflicts with the default
Ubuntu printer spooling system CUPS:

a. sudo aptitude install lpr (this will remove cups-bsd and
  ubuntu-desktop as a side effect)

b. sudo aptitude purge brmfc7340lpr lpr (should work now)

c. sudo aptitude install cups-bsd ubuntu-desktop (restore system
  to its original state)


What could be the reason I only see my group in parentheses in the file manager in the owner column?

The owner column in Thunar (in a fresh install in an up-to-date Arch Linux setup, as well as in Ubuntu 14.04) uses the Full Name (username) format, where the "Full Name" is taken from the GECOS data for the user. If the GECOS data is empty, it just shows (user). Most system/package-created users (like root, nobody, pulse, etc.) have something in the GECOS name field (root, nobody and PulseAudio daemon respectively). So system files will likely have a complete entry in the owner column.


How to give Wine / Crossover games access to LAN?

You might be able to try Hamachi (unmanaged), since it creates a virtual LAN network. As far as Wine is concerned, I've only used Hamachi with Wine to play Diablo II TCP/IP, not LAN. However, I assume this would work, since I've gotten Minecraft LAN to work with computers out of my network using Hamachi.

So you'll want everyone you want to play LAN with to install Hamachi, and you all join a single network; Then, when you open a LAN game, if you connect using an IP, you'll want to use your Hamachi IP, which I believe usually is something like 5.x.x.x


How to prevent "Write Failed: broken pipe" on SSH connection?

I have tried this in /etc/ssh/ssh_config for Linux and Mac:

Host *
ServerAliveInterval 120

This is how often, in seconds, it should send a keepalive message to the server. If that doesn't work then train a monkey to press enter every two minutes while you work.

You could set either ServerAliveInterval in /etc/ssh/ssh_config of the client machine or ClientAliveInterval in /etc/ssh/sshd_config of the server machine. Try reducing the interval if you are still getting the error.

Configuration for a single user can be set in file ~/.ssh/config both on the server and client side. Make sure the file has correct permissions chmod 644 ~/.ssh/config.


You should mount your Windows partition under Ubuntu in order to view your Windows libraries: http://www.hecticgeek.com/2012/10/make-ntfs-partitions-read-only-in-ubuntu/

Additionally, you could read how to harmonize your dual-boot setup for Windows and Ubuntu here:
http://www.howtogeek.com/howto/35807/how-to-harmonize-your-dual-boot-setup-for-windows-and-ubuntu/


Problem upgrading from ubuntu 15.10 to 16.04

I did not have that same problem.

What could be a solution though is to run the following command from Terminal:

sudo update-manager -d

This should launch the update manager and enable the 16.04 update.


Why is Gnome System Monitor on 18.04 installed as a snap by default?

From what I have read (sorry I can't quote sources), the hope is that more apps can be supplied as snaps in the future, and 18.04 is being used as a "trial run" with a few of the standard minor apps like calculator and system monitor.

But there are a few problems at the moment, such as snaps not respecting your theme. This isn't just a "looking pretty" issue: on a high DPI display like on my Dell XPS 13 many snaps appear unusably small and the available software is severely restricted as a result. The developers are aware and are working on it.

That is why it is available as both a snap and in the repository: in case of unforseen problems.

Snaps do provide certain advantages regarding app isolation and could could be a good solution to software supply,installation and upgrades in the future, but we are not there yet for everybody.


Change permissions to a specific user in Ubuntu 12.04

If you want to change the permissions use this command (755 will grant the owner of the file read, write and execute permissions and read and execute permissions to group and other users ):

sudo chmod -R 755 directory

If you want to change ownership of a folder and it's subfolders and files

sudo chown -R username:usergroup directory

If the owner of a file or directory is let's say the user jofrey you want to grant him read and write permissions:

sudo chmod -R u+rw directory

You can learn more about permission numbers and what they mean from this image


I believe that this graphics card is not supported for WebGL, as per the link below.

https://www.khronos.org/webgl/wiki/BlacklistsAndWhitelists

  Chrome on Linux

  WebGL is enabled on ATI/AMD GPUs with proprietary AMD drivers 8.98 or newer.
  WebGL is enabled on certain Intel GPUs with recent Mesa drivers.

  Multisampling is disabled on Intel IvyBridge cards.

  WebGL is enabled on NVIDIA GPUs with proprietary NVIDIA drivers newer than 295.

  WebGL is always disabled on NVIDIA Quadro FX 1500.
  WebGL is disabled on the dynamically switching NVIDIA+Intel GPUs.

I would be interested in knowing what was different in your environment before when it was working. Perhaps support has been dropped for older intel gpu's, but I was not able to find evidence of that in the linked page's history.


Falied installing ATI X.Org binary driver!! (ATI Radeon HD 5400)

I've had similar problems, while installing the ATI driver through Jockey.
I suggest you go with a manual installation by following this excellent answer: What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?


Remove startup password when default login is command line

To autologin Ubuntu, you can modify the following file /etc/init/tty1.conf to below:

# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345] and (
    not-container or
    container CONTAINER=lxc or
    container CONTAINER=lxc-libvirt)

stop on runlevel [!2345]

respawn
exec /sbin/getty -n -l /bin/su -o '- root' -8 38400 tty1

If you want to understand what the script means, see man init.

This logs in as root! replace '- root' with '- user' where user is the user you want to log in as


Ubuntu 20.04 can't change default application for mp3

Open a terminal, navigate to your file, and type:
mimeopen -d yourfile.mp3

The output should look like this:
Please choose a default application for files of type application/xxx

1) vlc
2) mpg123

Choose application #

Choose your application number.  Your output may be different than mine.  You can then run it either from the terminal, like this:
mpg123 *.mp3

Or double click on the file, it should now open with the application you set as default.
Cheers!


Removing AC power when laptop lid is closed doesn't suspend

This looks like bug #1014891.

I'm affected by the bug as well; I'll attach further information to the bug report.


How do i get internal and external IP addresses

To get your internet (WAN) IP address: wget -qO- ifconfig.me/ip

To get your internal (LAN) ip address(es): ip addr | grep inet


add-apt-repository has a -y flag you can use, which should do the trick.

Though I really want to suggest that you look at configuration management systems like puppet or chef to configure servers. They'll save you a lot of time!


The problem may come from the x64 arch.
You could try the solution described here : http://mad-scientist.us/juniper.html
It will download and use the 32 bits version of the ncsvc exec.

It worked very well for me.


Did you install mousetweaks? sudo apt install mousetweaks.

This must enable the dwell click option, other info here Onboard hover/dwell click can' t be enabled.


If I understood the problem correct....
You are saying that the behavior of fn+f7 is changed after you attached and detached your device to an external display.

Here are some pointers to find out what fn+f7 is mapped to after this action
https://superuser.com/questions/428945/defining-keyboard-shortcuts-involving-the-fn-key

There are at least two possibilities here
1) When connected to external display, fn+f7 key can't turn that display off (depends upon display type) so it rather changes to display lockout. Maybe you don't remember and you shut it down in that state and so it stays in that stays (some persistent configuration?).
2) fn+f7 is multiplexed at the keyboard hw level and may have a HW bug (passive electronics component used) where attaching to HDMI modified one of it's state holding. This is very less likely and should be cleared after a complete power shutdown and a wait before restart.


What you're experiencing is the real write speed of cheap MLC USB sticks: The OS starts copying to the cache and then a background process starts copying from the cache to the USB stick.

Once the cache is full, the OS can only add to the cache at the effective write speed of the USB stick, so you will see this happening if you copy:

a single large file
a large number of small files.

Both of which exceed your cache.

The only thing you can do about this is to use more expensive SLC USB sticks.


Ok,

I got it working on the TV by cyceling through the resolutions by using the Alt Ctrl +/- key-command.

But there only a few low resolutions to choose from. And the only ones that work are 576 x 720 and 576 x 768

When i connected it to the tv after booting up on a pc monitor i had it working on 1280 x 1024.


Thunderbird can't authenticate to sync my Gmail account

You might be bumping into the latest Thunderbird bug with using the OAuth Authentication method.  Do you get a popup in a google https window that asks for your username and then will not let you click on "next"?

If so add the account to Thunderbird by allowing it to auto detect the server settings.  Then select "manual" and change the Authentication types from "OAuth2" to "Normal Password" for both incoming and outbound servers.  Note that for "Normal KPassword" to work you will need to log into your gmail account from a web browser and enable “Allow less secure apps”

here is the link to the google account setting.
Google tool screenshot

Alternately you can wait/force the install of the latest Thunderbird release in the beta class for the OAuth fix.


As documented in similar questions (Why do these xte commands work in terminal, but not when bound with xbindkeys?), you can ask xbindkeys to trigger events on release (on key up):

"xdotool key braceleft"
   Release+Control+Alt + 7

In this way, there is no conflict between the keys used for the shortcut and those sent.


Which version of Ubuntu support HP ProLiant ML350e Gen8 Server?

at least 12.04 is certified for that server.
raid 5 is supported, why should it not be supported anymore in the future?
HP ProLiant ML350e Gen8


How do you remove a stubborn Lubuntu-desktop environment after changing ubuntu's default login screen?

Just copy paste this excellent guide:
Getting Back to a Pure Gnome on Ubuntu 10.04


I solved it. My problem was that I needed to convert the public key to OpenSSH's format. This required the use of the following command: ssh-keygen -i -f puttygen_key > openssh_key which converted my putty generated key into an openssh key which I then simply renamed to authorized_keys and boom it works.


You can install indicator-cpufreq to adjust the cpu to a lower frequency.

sudo apt-get update
sudo apt-get install indicator-cpufreq

Use CTRL + F2 to open a run dialog and enter the command:

indicator-cpufreq

to start it up the first time and it should auto start at boot after that.

Also, make sure you have all the sensor apps installed

sudo apt-get install lm-sensors hddtemp libsensors4 xsensors

and run the following command to detect the sensors

sudo sensors-detect

Follow the recommendations closely just don't do anything risky and you'll be fine.

To show the temps in realtime use the following command:

watch -n 1 -d sensors

Also, you can install the prime-indicator to help you manually select the graphic card

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install prime-indicator

And check out this post from webupd8 concerning nvidia-prime on 14.04. http://www.webupd8.org/2013/08/using-nvidia-graphics-drivers-with.html

source http://www.webupd8.org/2014/01/prime-indicator-lets-you-quickly-switch.html

Finally, you might find this helpful http://www.webupd8.org/2014/04/prevent-your-laptop-from-overheating.html


Cannot install docker-engine on Ubuntu LTS 16.04 minimal in LX branded zone on OmniOS

It probably happens because you upgraded Ubuntu from upstart to systemctl (when you did upgrade to 16.04). And you had already installed docker in upstart

Removing docker from upstart will resolved issue for me:

sudo rm /etc/init.d/docker
sudo rm /etc/rc*/*docker

After run install again:

sudo apt-get install docker-engine

And check if docker service starts.

sudo systemctl start docker
systemctl status docker.service


resolvconf-pull-resolved.service and plymouth-quit-wait.service slows down my ubuntu 20.04

I had a similar situation yesterday and after some cleanup resolveconf-pull-resolved.service disappeared from the list and plymouth-quit-wait.service went back to third place. These are the steps I followed:

Remove all snaps installed in the past ($ sudo snap remove xxx) and reinstall the tools using other means like apt or with deb packages. That had a big improvement in my boot time (a lot of loopback devices were turned off). I couldn't completely get rid of snap because I'm using Gnome Desktop and it seems it was installed using snap during the OS installation.This is my minimum snap list.
Stop unused services ($ sudo systemctl stop xxx and $ sudo systemctl disable xxx). In my case, I stopped PostgreSQL (takes a lot of time), I also stopped Apache, InfluxDB and OpenProject (many services related)
Update the configuration of the System Journal following this post.
Update the configuration of apt-daily.service so it triggers after boot. Check this post to know how.

After all of these actions, my boot time decreased dramatically. I'm thinking of using another Desktop manager like Xfce or uninstalling Gnome Desktop and reinstalling it without using Snaps.
As a side note, I am surprised at how little time it takes to start an application without snaps, for instance, VLC shows up almost instantly before took some seconds, close to 5-10.
Hope this helps!


Dual boot on 250gb SSD (Ubuntu and Windows)

Yes, it is possible.
If you have already migrated or installed windows on SSD, try to shrink windows partition to maybe half of disk size or what size you prefer.
I did it like:
100GB Win10
100 GB Linux mint ( based on ubuntu)
and about 40GB Unallocated

After shrinking just burn ISO, boot from it and run installer. When it asks if you want to install it next to win or format disc, click to Install ubuntu next to...
If you want to partition it yourself just press something else. you need ext4 partition for / (root)
i prefer ext2 partition mounted to /boot ( about 1GB). If You're running on UEFI, just add EFI partition same size as /boot.

Click install.
After installation simply reboot your pc and enjoy.


Cannot boot Ubuntu from SSD in ASUS K55VD

Answering my own question since this problem is now solved.

I managed to solve my problem by formatting both drives and creating new partition tables as the problem was the GPT. Creating the /boot partition on the HDD and placing / on the SSD solved my problems as per the linked question.


If you want to put the redirection inside awk, you need to put the filename in quotes - otherwise, awk treats it as a variable rather than a literal string:

... | awk '{print $1 > "world2.pid"}'

However it would be more conventional to let awk write to standard output, and redirect that i.e.

... | awk '{print $1}' > world2.pid

Alternatively, you may want to look at using pgrep for the whole task e.g. something like

pgrep -f 'World2' > world2.pid


Backlight Issue - Samsung RV509 Notebook

You may try this:

gksudo gedit /etc/default/grub

Find this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

And change to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Save and close the file. Then update grub:

sudo update-grub

Reboot and check.

This did the trick for me on a Samsung NP300 notebook. The brightness keys in the keyboard were not working before this. Hope this helps.


Yes there is a  compatibility layer that can run Macintosh binaries On Linux and it is called Darling.  You can get it by this command in the terminal (Note this is only for the source code)

git clone --recursive git://github.com/LubosD/darling.git

and you need you compile it also, where is link telling you how http://darling.dolezel.info/en/Build.

Note this project is early in development, there aren't many Apple programs that can run on this compatibility layer.  There is more Apple programs that can  run on Darwin OS than this compatibility layer that said I think you will be better off running Darwin in a VM!.

Sources:

http://darling.dolezel.info/en/Download

http://www.phoronix.com/scan.php?page=news_item&px=MTI0Njc


Kolourpaint - set default size for new image?

I'm using Kubuntu 18.04 and the version of KolourPaint is 17.12.3.

As shown in the image below, the "canvas" can be resized by dragging to whatever size one wants.

This canvas size will apply subsequently when KolourPaint is opened by itself. Otherwise, KolourPaint will use a canvas size dependent on the size of the image being opened.


What browser are you using ? Have you tried to install chrome browser ?! Use firefox to download chrome at http://google.com/chrome and then install with Ubuntu package manager the downloaded bundle or you take the package manager in the left side of unity and install there chrome directly. This is easier and more safe than to install flash-player manually (flash-player is not supported any more as single package).


Ubuntu users were able to install eDrawings 2010 using wine which lets you view solidworks files.

eDrawinds viewer can be downloaded for free from the official website

you can install wine or playonlinux with the following command

sudo apt-get install wine

or

sudo apt-get install playonlinux

playonlinux is a graphical abstraction for wine with an easier configuration and installation options, it lets you install eDrawings with less hassle.


Ubuntu Software-center: no permission to install software

I had the same problem.
Try running the store as:  sudo gnome-software
This should resolve the issue.


Force the user to change their password at first login

You can just expire that password. After creating a new user foo, just type:

sudo chage -d 0 foo

And he will be forced to change it after first logon.


DaVinci Resolve won't start Ubuntu 16.04

Installing libssl-dev and a few symbolic link solves the problem. Please enter the commands below:

sudo apt install libssl-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0 /usr/lib/libgstreamer-0.10.so.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0 /usr/lib/libgstbase-0.10.so.0
sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/libssl.so.10
sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.10

(Source)


Open the Terminal application and enter the following command:

sudo apt-get install software-center

You will be prompted for your user password.


I start upgrade and download only part of the packages

If you want to upgrade from the terminal then you can simply run it with

sudo do-release-upgrade

thats it. It will upgrade your system to latest release . I mean to 13.04.

If the upgrade were aborted, clean the download folder first

sudo rm -rf /var/lib/apt/lists/lock

hope that helps.


Gnome (or maybe unity?) ignoring gtkrc settings

Check content of gtk-3.0/gtk.css in selected theme directory.
As aking1012 said already, GTK3 used instead of GTK2.


Version 2.4.40 is currently only available for the next Ubuntu release Wily and there is no PPA with version 2.4.40.

You can download the source code and apply a patch for Utopic and Vivid.


Internet very slow on Ubuntu 16.04 and 18.04 but fast on 19.04

I fixed it! This is how:

I followed https://www.itzgeek.com/how-tos/linux/debian/how-to-disable-ipv6-on-debian-9-ubuntu-16-04.html (Method 1) to disable IPv6 on my server.

Then I removed the DNS servers from the /etc/resolv.conf file by removing the nameserver lines.

Then I installed network-manager by using: apt -y install network-manager

Then I disabled other DNS services by fully opting-out from the NetworkManager by typing:

echo -e "[main]\ndns=none" > /etc/NetworkManager/conf.d/no-dns.conf
systemctl restart NetworkManager.service
rm /etc/resolv.conf

Then I disabled and removed systemd-resolved by typing the following:

sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-resolved

Then I have put the following line in the [main] section of my /etc/NetworkManager/NetworkManager.conf file:

dns=default

Then I removed /etc/resolv.conf by typing: rm /etc/resolv.conf

Then I finally restarted network-manager by typing: sudo service network-manager restart

Now my internet speed is the normal one :)

This also works on Debian.

For CentOS: All what you have to do is to disable IPv6, and remove the nameserver lines from /etc/resolv.conf only.


Upgrade script cannot find newer release

To upgrade to 14.04, download it's .iso file, burn it onto a flash drive. You will get an option to upgrade during the installation process, similar to the one in the image. You won't loose your data stored in your /home directory.

Now if you are on a server and cannot do it like this,you can do it from the command line, but it will require some effort. You can only upgrade to the next distro. So you need to upgrade to the next version, which is 13.04, and so on ultil you get to your LTS. Canonical may have removed the sources for 13.04, but digitalOcean still provides the sources for old releases here.

So update your sources.list with that from digitalocean and then upgrade
    sudo apt-get update
    sudo do-release-update


"Package python is not installed" but it is

the dpkg error is a-bit misleading, what is missing isn't python but python-dev. Install python-dev with all it's dependencies.


How to install ubuntu on a chromebook without developer mode? Or enter developer mode without wiping system information (wifi)?

It's not possible to install Ubuntu on a Chromebook without entering Developer Mode because that would completely defeat its purpose and create a huge security hole.

Anyway, you could simply look at the WiFi password and write it down I guess using the Network Manager.


How to make a LiveUSB that keeps programs installed?

In order to do that you need to create a Persistent USB.  To do that under Windows you can download Universal USB Installer, once downloaded double click the file, and you are ready to create the presistent USB.  See image below.

To create a Persistent USB under Ubuntu look at Live Usb Pendrive Persistent


Open Terminal and run

gsettings set org.gnome.desktop.peripherals.touchpad disable-while-typing false


Can't install any update and packages ubuntu 14.10

Go to "software & updates",  then select the "other software" panel; check all the boxes.  After that just follow the prompts. Finally, open a terminal and type

sudo apt-get dist-upgrade


apt-get in LXC container is very slow on Ubuntu Server 12.04

OP's solution removed from the question:

I've done some more digging, and have found a solution with the help of a colleague.
First, I used strace to figure out where it was hanging:
strace apt-get update

And noticed it was hanging on
msync(0x7f02a57b1000, 37879664, MS_SYNC ...

Research suggested this was related to disk I/O.
So I installed and ran iostat:
sudo apt-get install sysstat
sudo iostat -x 1

Disk util was at about 90%. This confirmed disk I/O bottleneck.
My colleague suggested I try switching off synchronous file syncing for ZFS:
zfs set sync=disabled pool/fs

And this solved my issues!
Whether or not this is a bug or a feature is still up for debate, so I'll leave this issue unanswered for a couple of days.


How to mimic browser with ffmpeg for HLS stream?

First, view the cookies in your browser and find all of the important ones for akamaihd.net. Then, use the -cookies option with ffmpeg. The syntax of that option is described here.


You can install a light environment, LXDE.  To install it, just run the command below.

sudo apt-get install lxde

  As roadmr said, you'd better get comfortable, with the server command
  line.

Thats how you get the better control over your server.  For more information see the

Ubuntu Server Guide

For more information on how to install GUI on Ubuntu server see

Ubuntu 12.04 Server – How to Install a GUI


rsync verify a file already exists in dest folder so it will skip the copy on the 1st sync

You mean it starts copying everything again because even though they're already there, they have different timestamps because you copied them over yourself?

The --size-only flag, or --checksum, might be what you need to stop it doing that, but the first time you run rsync without that flag it will revert back to this behaviour.

You can probably fairly safely run it all the time with --checksum though, I think, so it might not be an issue.


why does not IPv6 (RFC 4941) privacy work?

With IPv6 privacy extensions, you don't magically get an address starting with 2001::. Instead, the starting of the IPv6 address will be the what you get from your ISP.

You'll still use the prefix of the IPv6 address that's been assigned to you. However, the suffix (the 2nd part) will be randomly generated, instead of being based on your MAC address.

If you run ip -6 addr, you should see that there are several non-fe80:: addresses for your main interface. These addresses should have the same global prefix (typically, the first four parts of the address). If so, this means that IPv6 privacy extensions are working.

You can also identify by looking at the end of each IPv6 address printed with ip -6 addr. Any link local IPv6 address line ends with a suffix of scope link, each global static ends with suffix scope global static, each from SLAAC ends with suffix scope global dynamic, each private extension address ends with suffix scope global temporary dynamic and expired with scope global temporary deprecated.

Also, note that the 2001:db8/32 has been designated for use in documentation only.


I had a similar problem with missing libxtst.so. I solved it by running the following command in a terminal:

sudo apt-get install libxtst6:i386

Hope it helps!


I had the same issue with a brand new Lenovo Flex 2 with Ubuntu 14.04 LTS.  After a lot of trial and error (online research, Lubuntu 14.10 live CD, installed Windows 7, updated BIOS) I fixed it by disabling xHCI on the BIOS.  Hope it works for you.


The command is

sudo apt-get install hg-fast-export


Unclear about partition tables and copying full disk with dd

Copy it over, then use gparted (or similar) to resize / move partitions - dd will simply recreate the old partition scheme, as it is a bitwise copy & applies no 'intelligence' to the operation.

This only works if the new disk is the same size or larger!


Have to reconnect microphone every time I reboot

For what it's worth, here is a theory at least:
It may happen that some kernel module needed for this is not loaded properly at boot time, but it gets loaded when you plugin the device later on. To see if this happens, you could run the lsmod command (or dmesg or other such tools) after boot and then again after replugging the mic cable. If you see a difference in the list of modules, that could give a clue to what is missing. (Then the next step would then be to figure out how to ensure the needed module gets loaded at boot time.)
You might ask, why then would the mic be listed and selected, if needed kernel modules are missing? Just speculating, but it could be that the existence of the mic is one thing, but for it to function properly something more is needed, that "something" could be a kernel module.


How to run a web browser as a screensaver

If you're lazy and just want it to work, run this at terminal and choose the links you want to view

cd ~/ && https://www.dropbox.com/s/yr17e7p7prae4o1/firefoxscript.sh && chmod +x ~/firefoxscript.sh && ~/firefoxscript.sh && rm ~/firefoxscript.sh

Step by step instructions:

This is what you want (reference):

1) THIS MUST BE
 DONE WITH THE BROWSER CLOSED as
 Firefox overwrites the file on
 shutdown
 - Open your firefox prefs file: gedit .mozilla/firefox/*default/prefs.js
 (*default = your profile diretory)

Add these two lines at the end of the file:

user_pref("browser.link.open_external", 1);
user_pref("browser.link.open_newwindow", 1);

2) Create a file (gedit ~/.webscreen) and paste this into it:
(change /home/huff/Desktop/pages to the right path of your user)

#!/bin/bash

remoteclient=$(find /usr/lib/ -type f -name mozilla-xremote-client | grep -m 1 xulrunner)

if [ `ps -e | grep firefox | wc -l` -eq 0 ]; then

    /usr/bin/firefox -fullscreen &
    sleep 5

fi

while [ `ps -e | grep firefox | wc -l` -gt 0 ]; do

    urls=$(cat /home/huff/Desktop/pages)

    for i in $urls
        do
        $remoteclient -a firefox "openurl($i)"

        if [ $? -gt 0 ]; then
            echo "Firefox not running or ignoring me, bailing out...."
            killall firefox
            exit 0
        fi
        sleep 15
        done
done
exit 0

3) Make the file ~/.webscreen executable  (Here's how to do that).

4) Create a file named "pages" at your Desktop gedit ~/Desktop/pages with the links you want:

Example:

  http://bbc.co.uk

  http://flickr.com

  http://yoursite.whatever.com

5) Add a Custom Application Launcher to the panel.

Enjoy! And thanks to mcmlxxii ;-)


Is there a way to install Windows 8 as a dual-boot starting with Ubuntu?

Thats the only solution i know (or at least the easiest one)... free up some space and install windows, but as you mentioned, you will need to restore grub. You can do this from a live CD.

Restoring grub has become a very simple task, check out the graphical way in the following link
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows


On Ubuntu all ports are opened unless you have a firewall or application that is blocking it.  Under normal circumstances, the application running on the port is for LISTENING. So that it can receive from the port.

The Blocking or Closing of the port is using a reference to a firewall block.

So, if you are not blocking the port by your firewall, it's opened.

A port is usually considered opened when there is a program running and LISTENING on the port.  You can tell which ports have programs running (LISTENING) with this command (among many other commands):

$ netstat -tulnp | grep "LISTEN"

You can identify which application is using the port with this command (in this case checking port 80):

$ sudo lsof -i tcp:80

Port Opened

You mentioned that you killed the process which was running on your server machine, and now not able to see the port being opened.  You don't see it being opened because there isn't anything running on it.

You can test your port in question by running netcat on it.  Netcat is a utility for TCP and UDP connections and listens.

Run this on your port:

$ netcat -l 1234

Then from a different computer run the following:

$ telnet serverIP 1234
Trying 192.168.15.81...
Connected to ubunzeus.apollo3.com.
Escape character is '^]'.
this is a test

You'll notice the "This is a test" text will appear on your server console.  This is a way to test the port.  You can hit Ctrl+C on the server to cancel the application after the test.

Hope that helped to clarify what's happening on your ports.


In the "update manager", "settings" menu,"Updates" sub menu, check mark "Pre-released updates" and download all new updates. Worked for me. No more random freezes.


You have to edit /etc/xdg/autostart/ and either:

remove the NoDisplay=true lines;
or make those same lines comments by adding # in front of them;
or replace true by false in those same lines.

The alternate solution can be easily done in three steps:

Summon the terminal with Ctrl + Alt + T.
Type the two following commands:

cd /etc/xdg/autostart/
sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop

After changing anything you want, you can go back to the previous state by typing this into the terminal:

sudo sed --in-place 's/NoDisplay=false/NoDisplay=true/g' *.desktop

This has been tested in 12.04, 12.10 and 13.04.

Sources:
1. This answer by chtfn
2. How to enable all the apps in the Startup Applications in Ubuntu


How to run tmux/screen with systemd > 230?

The proper solution is to disable the offending systemd behavior system-wide.

Edit /etc/systemd/logind.conf (you must sudo, of course) and set

KillUserProcesses=no

You can also put this setting in a separate file, e.g. /etc/systemd/logind.conf.d/99-dont-kill-user-processes.conf.

Then restart systemd-logind.service.

sudo systemctl restart systemd-logind


Not able to access Nexus 5X phone from Ubuntu 16.04 based laptop

It was possibly a bad cable connecting the phone to the PC. With a different cable and latest Ubuntu 16.04 software, I am able to connect the phone with the PC and access the phone from Android Studio.


Two Java Version(JDK 1.7 & JDK 1.8) on same machine

I currently am running both Java 7 and Java 8 on my computer here is a link to the guide I used to install Java 8 http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/# This sets my default Java to 8, but if I want to run something under Java 7 I can right click as select run with openJDKJava7.

Hope this helps!


Can't install gnome-session on lubuntu 12.04

I replaced Unity with Gnome in the following steps

Install Gnome

sudo apt-get install gnome-shell

To set gnome-shell as default, open a terminal and type

sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell

And to remove unity after installing gnome-shell

sudo apt-get remove unity unity-2d unity-2d-panel unity-2d-shell


Maybe you can do like this.
Hope can solve your problem


Ubuntu 12.10 and Windows 8 Dual Boot - Bluetooth Pairing

I was using 12.04 and find the same problem. I solved it by:

Creating a new linkkeys file and fixing the permission in that path /var/lib/bluetooth/AA:11:11:11:11:11/
Then replace the link key you get in windows using the correct format:

BB:22:22:22:22:22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 0 6

After reboot, the bluetooth device should works fine.


Firefox spellcheck keeps changing dictionary to es_CU even after I changed to en_US in about:config

I had this same problem, despite having creating a user.js file in my profile directory with the following single line of content:

user_pref("spellchecker.dictionary", "en_US");

I fixed it by uninstalling myspell-es.  Since I still need to have a Spanish dictionary to use in LibreOffice, I downloaded and installed the generico-america-latina-y-espana dictionary (although I had to rename it generico-america-latina-y-espana.oxt to get it to install).

See this mozillaZine post for full details, which may help anyone who has a similar, but not quite the same, problem.


Out of curiosity, what are you using to change the system settings? You can try dconf-editor or Ubuntu Tweaks which may help you keep things persistent. I have used both with success over the past few years.


Perhaps you should try one of these options.
Option 1: try to install and run boot-repair if you are able to log on to your system.

Open Terminal and install Boot Repair:

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

You can find it now on dash. Run it from there and press "recommended
repair" button.
Restart your system and see if Grub is back to normal.

Option 2: try to restore Grub via Live CD

Create a bootable USB device using a flash drive with an Ubuntu image (same version of
your OS).

Boot from it and choose "Try Ubuntu before you install it".

Open Terminal from your live Ubuntu desktop.

Mount the partition of your Ubuntu installation. If you are not
sure about it, launch GParted (included in the Live CD) and find it
out. It is usually a EXT4 Partition. Replace the XY with the drive
letter, and partition number, for example: sudo mount /dev/sda1 /mnt.
Now, follow the instructions below:

sudo mount /dev/sdXY /mnt
sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt

Now install, check, and update grub. Now it's only necessary to add
the drive letter (usually a) to replace X, for example: grub-install
/dev/sda or grub-install –recheck /dev/sda.
Follow the instructions below:

grub-install /dev/sdX
grub-install --recheck /dev/sdX
update-grub

Now, Grub should be back. Just exit and unmount everything:

exit && sudo umount /mnt/sys && sudo umount /mnt/proc && sudo umount
/mnt/dev/pts && sudo umount /mnt/dev && sudo umount /mnt

Now, restart your system and see if that worked.
I've come to this answer using this post as a reference:
https://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd


New USB NVMe drive does not show up in lsblk, dmesg says 'Unit Not Ready', Any Suggestions?

RTFM Richard RTFM - I picked up sata WD blues not NVMe ones
With the correct SSD type for the adapter (NVMe) this works fine.


Yes, there is.

Go to System Settings and select "Mouse and touchpad". There a two tabs, one for an external mouse and another for the touchpad.

Here you'll find a slider for acceleration and sensitivity. Changes in the settings should be immediate, so you can test it right away.

Some other programs like gpointing-device-settings let you set separate minimum and maximum speeds, for a bit more control.

If you're looking for a "deceleration" effect, where the mouse keeps moving after letting go of the touchpad, I haven't found a way to achieve this.


Can I turn Windows fast start up on after I've installed Ubuntu?

Yes, you can have fast start up turned on, provided certain conditions are adhered to:

Fast start-up uses hybrid hibernation technology: When a system is hibernated a copy of RAM is saved; including the drive read and write caches. This saved cache DOES NOT revert changes, but rather causes file system corruption if you make changes to files that are in the cache. Thus, you can not make any changes to a disk that was mounted when the OS was hibernated; including the EFI partition.
grub will likely refuse to mount a hibernated partition. Thus, EFI systems that share the EFI partition may refuse to boot.


HSP/HFP with 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

I was facing the same issue with Oneplus Wireless Z Bass edition. My headset microphone was not detected by PulseAudio and the problem is that my headphones  don't have HSP profile, only HFP profile. After trying for 2 days, I came to the solution of replacing PulseAudio with Pipewire sound server, which supports HSP, HFP and A2DP by itself. So there will be no need to install any other utility like ofono, phonesim. Also, to be noted that my problem wasn't resolved even after following all the steps to configure ofono in PulseAudio. So I came up with the steps to replace PulseAudio with PipeWire.
Here is the detailed article I have written to resolve this problem, the steps of which I'm also adding here. You can follow it and most probably be able to solve your problem.
Bluetooth headset microphone not detected
Open your terminal and follow these steps:

We will use a PPA for adding Pipewire to Ubuntu 20.04, which is maintained regularly:
sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream

To update the PPA packages in your system do:
sudo apt update

Install the package:
sudo apt install pipewire

There is also a dependency needed to be installed with Pipewire, otherwise you will face the issue of “Bluetooth headset won’t connect after installing pipewire”. Install the dependency by:
sudo apt install libspa-0.2-bluetooth

Now, to install the client libraries:
sudo apt install pipewire-audio-client-libraries

Reload the daemon:
systemctl --user daemon-reload

Disable PulseAudio:
systemctl --user --now disable pulseaudio.service pulseaudio.socket

If you are on Ubuntu 20.04, you also need to “mask” the PulseAudio by:
systemctl --user mask pulseaudio

I am not sure but, if possible, you can try to run this on other versions too.
9.     After a new update of Pipewire, you also need to enable pipewire-media-session-service:
   systemctl --user --now enable pipewire-media-session.service

You can ensure that Pipewire is now running through:
pactl info

This command will give the following output, in Server Name you can see:
PulseAudio (on PipeWire 0.3.28)

Things should be working by now and you can see your microphone.

If it doesn’t show up, then try restarting Pipewire by this command:
systemctl --user restart pipewire

If it’s still not showing your microphone, you can try rebooting once and remove and pair your Bluetooth device again to check if it works now.
I hope I have helped you solve your problem.
If you want to rollback all the changes we did, you can do it by using:
systemctl --user unmask pulseaudio
systemctl --user --now enable pulseaudio.service pulseaudio.socket


Need Help Installing Ubuntu. Mouse and Keyboard Not Working During Installation, but IOMMU Breaks my Installation

This is a common issue with newer motherboards I assume. Even changing the option in BIOS for USB legacy doesn't seem to work. What did work for me was the OPs comment

  I plugged the mouse and keyboard into the USB 3.0 motherboard ports
  rather than the USB 2.0 ports they were already connected to.

I had been struggling with this for quite sometime. Would always try multiple USB ports, but always the 2.0 ports. Assumed 3.0 ports were newer so wouldn't work.

If you have USB 2.0 and 3.0 ports on your motherboard, connecting to the USB 3.0 port does the trick.


Ubuntu 14.04 with Nvidia driver - blank screen after kernel update

Using the ubuntu package repository. There is a PPA for latest Nvidia drivers if needed: https://launchpad.net/~ubuntu-x-swat/+archive/ubuntu/x-updates


Did you try restarting firefox or rebooting your computer :P If you had already tried the obvious ways, then follow this.

Check in Private Browsing mode by typing (Ctrl+Shift+p). If you didn't see the issue in that mode, it may be due to some addons. Disabling addons might help.

If issue still persists, then uninstall firefox and install it again

sudo apt-get --purge remove firefox
sudo apt-get install firefox


update g++ through synaptic package manager

For latest version of gcc/g++ you can add this ppa-ppa:ubuntu-toolchain-r/test via Synaptic Package Manager and then press reload button.You should now see the latest version of g++ in the list of packages.


Toshiba lap doesn't recognize confirmed USB for boot, Bios is set to USB first

While this may not be what you are looking for exactly but have you tried using a DVD to boot from? If the BIOS can't recognize a USB perhaps a DVD with a .iso file might work. (This is assuming that you have a DVD player on your laptop at all.)
Do you have a DVD recovery disc for Windows or a USB that came with the laptop? If so, try that and see if that works.
Also, have you tried using a different USB stick? I know you mentioned trying different ports, but perhaps a different device altogether might work.


ubuntu 14.04 desktop amd64 installation fails with kernel panic under vmware

There are some boot options.
When you are booting, press any-key (space) then press F6 and try several options.
For me, nolapic option makes ubuntu 14.04 to boot.


How do I upgrade the version of phpMyAdmin from 3.3 to 3.5?

I guess you need to add their ppa to your system, but in this case you'll get latest version, which is 4.0 for most ubuntu releases, and 3.5 for oneiric

ppa home:

https://launchpad.net/~nijel/+archive/phpmyadmin

terminal commands:

sudo add-apt-repository ppa:nijel/phpmyadmin;
sudo apt-get update;
sudo apt-get install phpmyadmin;

graphical way:

Open Update manager / Settings / Other Software / Add / "ppa:nijel/phpmyadmin"
click ok and provide password when needed, then:
in Update manager click Chek and you're ready to update phpmyadmin :)

*upgrading using ppa, is recomended

*adding ppa is one time operation


Try this:

sudo apt-get update

That will update your system software list.

And then,

sudo apt-get install -f

That should fix your packages.

If it doesn't, then you've got a broken package manager, and I'd recommend reinstalling - but only if you've tried everything else!!!


Unity Login Screen Replaced After GNOME Install

First I would check to see whether your system is running lightdm or gdm.  You could check that by seeing which service is running, e.g. "service lightdm status" and "service gdm status"

If GDM is running then you want to switch back to lightdm.  I believe you should be able to do that with this command.
$ sudo dpkg-reconfigure -plow lightdm


Ubuntu KVM guests randomly boot into emergencyy mode

Had something to do with the virtio folder i was trying to mount. I guess a timing issue of some sort. I worked around it by commenting out teh follwing line I added to my fstab:

/config /mnt/config 9p trans=virtio,version=9p2000.L 0 0

I'm using a mount command in rc.local instead. Not pretty but it seems to work.


Goldendict is looping while attempting to import the dictionary, it is a bug, you should file a bug report:
https://help.ubuntu.com/community/ReportingBugs


These instructions are quite thorough:

https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-install-Ubuntu-to-a-Native-ZFS-Root-Filesystem


okay i faced the same problem and here's what i did:

boot into windows (7 or 8)
open EasyBCD (or install if you dont already have it)
delete any existing Linux/Ubuntu entries from it.
create a new entry for ubuntu and choose GRUB2.
save and exit.

solved :)


How to get samba (computer 1) to show up on windows 7 (computer 2) if both are in the same lan?

One small piece of advice, you are going to be better off following the Ubuntu documentation then the Slackware documentation.

On the samba server, check /etc/samba/smb.conf

in the [global] section , change your workgroup. I think the default windows workgroup is still WORKGROUP

[global]
workgroup = WORKGROUP

The guide you linked had you change the name to MYGROUP

See also

Ubuntu Server Guide Samba

Ubuntu wiki Samba Client Guide


How to create a system restore point in Ubuntu (32bit) (running in VirtualBox)?

The fastest and most secure "create a system restore point" procedure I can think of when running Virtual Box is simply creating a snapshot.

See How to reset a VM to a previous snapshot?


Sound not coming out through speakers when mic is connected, only when disconnected

yours is not an Ubuntu problem I believe.
There are several type of jacks.
Most of Workstations have a separated jack for mic input and for sound output, while most of laptops have one single jack for headphones that combine Mic + Audio in a single jack.
I believe you're connecting your micro to a laptop single jack, and what happens is that when computers detect something connected to the audio jack, they divert the sound from the main output to the jack, as they understand that you want to listen through headphones.
However you should be able to indicate Ubuntu that you want to output the sound through another device in System Settings:

You will see that your jack connector has one or two black plastic bands separating the metal connectors. If you provide more information on your jacks and the computer you connect to, I would probably able to tell what is wrong.


While I am not sure if this is what keeps biting you in Unity, check the windows mouse over setting.

System -> Preferences -> Windows
In the Windows Preferences dialog, uncheck the box next to "Select windows when the mouse moves over them"  That would force mouse click to raise windows.  I am not sure if Unity bypasses this setting to always give the taskbar when you go offscreen left.


how to create a duplicate of /dev/video0?

My first thoughts were, I wonder if anyone has come up with a way to have a video appear as a webcam (e.g. I'm skyping with someone, but the video and audio they see is some video I chose instead). After searching around a bit, it looks like people have done this video piping (as discussed on Manipulating Dev Video and Fake a webcam using a video loopback device?

As mentioned in your comment, gst-launch v4l2src device=/dev/video0 ! v4l2sink device=/dev/video1 allows you to duplicate video0 to video1, and video1 is readable by some software.

In order to have this run when your computer starts, you can follow the UbuntuBootupHowto to come up with something like:

# /etc/init/videocloner.conf
description "VideoCloner"
start on runlevel [2345]
stop on runlevel [06]
respawn
exec gst-launch v4l2src device=/dev/video0 ! v4l2sink device=/dev/video1

This script should start when the computer boots and also allows you to run sudo service videocloner start|stop (Note: if my example script doesn't work, try moving gst-launch v4l2src device=/dev/video0 ! v4l2sink device=/dev/video1 into a shell script, and changing the exec line to call your shell script instead).


Assuming you're using ALSA driver, run:

amixer set Master mute
amixer set Master unmute

Or, you can just use:

amixer set Master toggle

to toggle mute on and off.


Had exactly the same problem. My solution:

boot using "nomodeset" kernel option
install kernel 4.10.6 from http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.6/
install missing firmware (kbl_guc_ver9_14.bin, bxt_guc_ver8_7.bin)  from https://01.org/linuxgraphics/downloads/firmware
reboot and enjoy

Hope this helps.


I think I can see where you're going with this - but it can be simplified quite a lot

pipe in the names of the 12 months via standard input and use them as indices of an array
read the file of monthly sales, deleting each month as we see it
print whatever months remain at the end

The trick is to use - as a special filename to tell awk which order to read the standard input and the file, and NR==FNR as a test for whether we are reading stdin:

printf '%s\n' January February March April May \
    June July August September October November December | awk '
      NR==FNR {sales[$1]; next} {delete sales[$1]} END {for(m in sales) print m}
    ' - sales.txt
December
September
April

Note that you don't need to assign values to the array elements - just assigning indices is sufficient to define the array.

Alternatively, you could define the array in a BEGIN block:

awk '
  BEGIN {
    sales["January"]; sales["February"]; sales["March"];
    sales["April"]; sales["May"]; sales["June"];
    sales["July"]; sales["August"]; sales["September"];
    sales["October"]; sales["November"]; sales["December"];
  }
  {delete sales[$1]}
  END {
    for(m in sales) print m
  }' sales.txt

A couple of alternative KISS approaches:

(1) create an array indexed by months in a BEGIN block, assign values to the elements, then iterate over the array in an END block and print any whose value is zero

awk '
  BEGIN {
    sales["January"]; sales["February"]; sales["March"];
    sales["April"]; sales["May"]; sales["June"];
    sales["July"]; sales["August"]; sales["September"];
    sales["October"]; sales["November"]; sales["December"];
  }
  NR > 1 {
    sales[$1] += $2;
  }
  END {
    for (m in sales) {
      if (sales[m] == 0) print m;
    }
  }
' sales.txt

or (2) create the array on the fly from the sales.txt file, then iterate over all the months in an END block and print any missing indices

awk '
  NR > 1 {
    sales[$1] += $2
  }
  END {
    n = split("January February March April May June July August September October November December", months);
    for (i=1;i<=n;i++) {
      if (!(months[i] in sales)) print months[i]
    }
  }
' sales.txt


I think the Best App for editing Audio on Ubuntu is Audacity.

You can install it from terminal by typing:

sudo apt-get install audacity

Remove unwanted audio from the recording (From the Official Documentation) :

1- Set Snap To: Off in the Selection Toolbar

2- Click the Skip to Start button

3- Zoom in until you can see from the start of the track to the start of the music

4- Click and drag from the start of the music to the start of the track

5- Click on Edit > Delete

Save your work! Click on File > Save Project.


How do I install xulrunner 1.9.2 for crashplan?

You can download directly from here:
https://launchpad.net/ubuntu/oneiric/amd64/xulrunner-1.9.2/1.9.2.17+build3+nobinonly-0ubuntu1
Regards


How to use multiple mobile Broadband, one for browsing and one for downloading, at the same time

You'll have to set up multiple IP addresses (there are several questions on Server Fault for this). Let's say they are 1.2.3.4 and 9.8.7.6; that is, your computer has the address 1.2.3.4 on one mobile broadband network interface, and 9.8.7.6 on the other. You can then control which network interface each program sends requests on by controlling which local IP address it binds to.

In the Network Manager, use 1.2.3.4 as your default local address. Your browser and other programs will have their requests routed through there.

For your download, specify an option to tell it to bind to the other address. For instance, for wget use

wget --bind-address=9.8.7.6 http://host.tld/path

or for curl, I think it's

curl --interface interfacename http://host.tld/path

where interfacename is something like wlan5:1. (You might not even need to set up multiple IPs if you're using curl, since you specify the network interface directly. I haven't tried this since I only have 1 Internet connection here.)


accesing windows 7 shares - numerous issues

Open the file browser and type this in the loation bar smb://ip-of-win7-machine/shared_dir. Make relevant changes to the above command and it should work if you've configured the shares properly.


Installation of a package with parameters being prompted on cli

For such things you can write an expect script. It's not very difficult to handle.

First you have to install the interpreter:

apt-get install expect

Then you can write something like this for example:

#!/usr/bin/expect -f
set timeout 30
set password "pass"
set username "user"

#run the command
spawn dpkg -i package.deb

# Look for username prompt
expect "*?sername:*" #<--- this statement is important it wait's for a prompt "username:"
send "$username\r"

# Look for passwod prompt
expect "*?assword:*" #<--- the same with the "password:" prompt
send "$password\r"

#dpkg -i continues

The script must be executable, of course. Expect is perfect for controlling interactive terminal programs via script (ssh, ftp, ...)


From experience, I can recommend creating a disaster plan that you (or somebody else, in the case of your death - yeah, it's serious stuff) can completely rebuild the asset from backups if the main server (and you) were hit by a meteor.

In most cases you're actually not going to want image backups. They're hard to use in a VPS environment because you lack access... And anything your VPS provides might die when they're hit by the meteor.

My disaster plan with one of my clients involves the following items:

Get backup from S3.
Install Ubuntu (latest LTS) with a VPS and then log in as root.
Copy backup to SSH location (with basic instructions)
Run a script that was included in your backup. This unpacks, sets permissions, creates the right users, applies security, etc.
Fix your DNS (include details) to point to new IP.

It's a lot of work. And it's important that you test it too. Follow all of it (except the DNS) to the letter and if you're left with anything but a functioning server at the end of it, you need to go back and improve things.

And you need to keep testing it. At least every LTS release you need to go back and check that it all still works. That your backups are being created in the right way.

You can assume a certain level of competency in the person following the instructions (you can assume your company hires somebody with some training and you can explain in the document what people will need to know how to do in order to execute your commands) but it's very important that you mention everything that isn't completely standard.

In a non-disaster scenario, it's also good to have these sorts of scripts (and documentation) around if you want to move something on a server to another server. It let you know what's what very quickly without having to spend hours working out why you've got three separate copies of nginx running on a single server.


Installing a Theme with the Gnome Tweak Tool?

Create a folder, called .themes in your home directory. This can be simply created by firing up your terminal, and then running

mkdir .themes

Now this is a hidden directory, to view this in Nautilus, you can press Ctrl/⌘ + H. Alternatively,you can place the extracted files in /home/accountname/.themes/(Gnome-OSX-II-2-6); you can also place the extracted files in your /usr/share/themes/ folder.

I had try install the theme,unzip the file,and place the files in .themes/

Logout and Login your system,open gnome-tweak-tool change GTK+.


How do I connect to Ubuntu from Android?

I would ssh into the machine via it's local ip, like this. It's best to specify username as well. Then you will simply be prompted for a password.

ssh USERNAME@192.168.XXX

You can install openssh-server by typing:

sudo apt-get install openssh-server

You need an SSH client on the android device. So you can handle the protocols needed. Use ifconfig to find your local ip on the host computer.

ifconfig

You can find more information here:

Connecting to ssh - Ubuntu help
Open SSH installation guide - Ubuntu help


A red exclamation sign also errors in update

The PPA doesn't provides packages for Trusty and newer. Check this link.

Therefore

remove

Without a downgrade of the installed packages from this PPA

sudo rm /etc/apt/sources.list.d/disper-dev-ubuntu-ppa*

or

purge

Downgrades all packages from this PPA, if possible

sudo apt-get install ppa-purge
sudo ppa-purge ppa:disper-dev/ppa

After that

sudo apt-get update


These are probably notifications sent by your browser generated if you give a web site permission to send you desktop notifications. Here's an example:

For Chromium and Google Chrome, type chrome://settings/content/notifications in the address bar and press Enter. Then, enable/disable notifications as desired remembering to activate "Ask before sending".

For Firefox, type about:preferences#searchResults in the address bar and press Enter. Click on Select next to  notifications and make your choices.

Other browsers may have similar settings.


You should be able to bind the screensaver lock command to CTRL+ALT+L by editing your Lubuntu keyboard & mouse configuration file

Add the following to ~/.config/openbox/lubuntu-rc.xml

<keybind key="C-A-L">
  <action name="Execute">
    <command>xscreensaver-command -lock</command>
  </action>
</keybind>

This should be located inbetween the XML tags

<keyboard>
...
</keyboard

Logout and login for the changes to take effect.


What is the keyboard layout environment variable?

Right, there is no environment variable with that info.
If you are on standard Ubuntu 20.04 LTS, the keyboard layout in use is the first one in the list generated by this command:
gsettings get org.gnome.desktop.input-sources mru-sources

However, I just found out that that does not work as expected on Ubuntu 20.10. Maybe related to this issue.


Creating .desktop files to use on the "Open with other application" tab

An example of a .desktop file to select vim terminal editor for your files in the Open with other application dialog is

[Desktop Entry]
Encoding=UTF-8
Name=Vim Text Editor (Console)
Comment=Edit text files in a console using Vim
Exec=vim %u
Terminal=true
Type=Application
Icon=/usr/share/pixmaps/vim.svg
Categories=Application;Utility;TextEditor;
StartupNotify=true
MimeType=text/plain;
NoDisplay=true

Save this as ~/.local/share/applications/vim.desktop and the application will be automatically shown on Open with other application to be selected as default application.

The options for the .desktop files are many but its important to know what they mean.

nautilus-actions.org supplies a very good guide and explanations for creating your .desktop files and all the possible parameters that you can use on them so if you have any doubts about creating a special .desktop file you can visit the site and look at the examples there.


How to install Shan language on Ubuntu 12.04

currently it seems to be your language was not available here.

You better contact your LOCO team for the support on your Language. Here is the link for you  local-language


Change date format on Ubuntu Mate 16.04 LTS also affecting Thunderbird

Open the Control Panel.
Click on Language Support or just call gnome-language-selector instead.
Switch to the tab Regional Format.
Select your preferred format.
Optionally, click the button Apply System-Wide.

The changes will take effect the next time you log in.


As per our discussion in the comments...

Burn Lubuntu 16.04.1 32bit .iso to a DVD and you'll probably boot to it fine. Run the live system to see how it works on your machine before trying to install it. Cheers, Al


Automatically reboot if boot into maintenance mode

you can create a script shell, and call it when ever you want :)


Can only have either WiFi or Bluetooth active

With the iwlwifi module there is a bluetooth coexistence parameter that is set to enable by default but since it doesn't seem to be working for you, we can disable it with

echo "options iwlwifi bt_coex_active=N" | sudo tee -a /etc/modprobe.d/iwlwifi.conf

Reboot and see if it works better


Problem with installing Steam on Ubuntu 15.04+

This was originally a problem with Steam on Ubuntu 15.04/15.10.  Steam bundles old libs and are colliding with mesa drivers, that is also why closed drivers aren't seeing this problem. Update: It might also be that you are missing some things. See other mchid's answer.

There is an open bug in Steam's github.

The current workaround is to remove the old lib version, at least until valve fixes the issue in their startup script or something like that.

So enter these folders and do this (ignore the x86_64 if you only have a 32bit system):

cd $HOME/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak
cd $HOME/.steam/steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak

If you have problem with the directory above then you should try this:

Some people have the .steam/steam/ubuntu12_32, others have only .steam/ubuntu12_32. If you don't have these folders, find the correct location by checking where your steam is looking for the user profile:

$ fgrep config=  /usr/games/steam
config=$HOME/.steam

Use that to find your lib location:

[config value] + /ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
   |
   \-> $HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu

It worked for me... but please note that if some game required that old lib from the steam runtime, it may crash (that is why valve should fix this)

Edit 2015-08-22:

As Steam now has a link in the $HOME/.steam/root that always points to the correct Steam install directory, this command should work for everybody and it simpler for a fast fix:

find $HOME/.steam/root/ubuntu12_32/steam-runtime/*/usr/lib/ -name "libstdc++.so.6" -exec mv "{}" "{}.bak" \; -print

Also, please remember that on each steam runtime update, you will probably need to run this.

Edit 2016-02-16:

Also see the mchid reply below, simply doing:

sudo apt-get install libgl1-mesa-dri libgl1-mesa-dri:i386

might be enough to fix this.

Edit 2016-10-23:

For ubuntu 16.10 the command was updated to remove more files that are breaking mesa drivers, so this new command should work:

find $HOME/.steam/root/ubuntu12_32/steam-runtime/*/usr/lib/ \( -name "libstdc++.so.6" -o -name "libgpg-error.so.0"  -o -name "libxcb.so.1" -o -name "libgcc_s.so.1" \) -exec mv "{}" "{}.bak" \; -print

For NVIDIA closed source drivers, see Vincent's reply below.

Edit 2017-01-08:

Probably final edit, the latest steam linux update should fix most, if not all problems! finally! :D

Edit 2017-08-03:

Sadly, returning from vacation found that some recent update again broke steam.
So if you get this when starting, just after update download:

process 23148: arguments to dbus_connection_ref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file dbus-connection.c line 2688.

and then steam crash, then you are hitting this bug, reported as non-fatal, but it do crash steam on same distros. workaround is this:

ln -s ${HOME}/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libdbus-1.so.3 ${HOME}/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_32/libdbus-1.so.3

good luck


How can I enable Radeon R7 M260/M265/M340/M360 in ubuntu 16.04?

Apparently I should prefix any 3d program I want the Topaz XT to be used with DRI_PRIME=1 <command>.

Too bad this locks up the system but that's another problem.


This file is missing: stygmicon128.xpm

It's an icon, if it isn't present into the original package, just use any other icon.

In this link you can find more details about the same problem


How may I can create or resize like c:drive or system drive partition in ubuntu?

install gparted using the following command from a terminal(ctrl+alt+t)

sudo apt-get install gparted

Once installed, start gparted. it will ask for authentication. Enter you password and you will be able to see and resize your HDD partitions.

Exercise caution and take backups before doing these activities.

Also note that you can't (and shouldn't try to forcefully) alter partitions with mounted file systems. It's also impossible to unmount file systems mounted at /, /usr, /var or similar, since they're crucial for the running operating system. Even /home is difficult in graphical mode. If you want to modify those, use the Live CD, DVD, or USB drive. The Ubuntu ISO comes with gparted tool in the Live session. So you don't even need to install it. Just open it and alter the size of the partitions.


The default is "no proxy".  Do you have a proxy server?  Where exactly all did you change the proxy settings?

If not, clear the Proxy in Gnome (or wherever you changed it), eg set it to None.  To locate the proxy settings, you can enter the word "Proxy" in the Desktop search tool.

Note: If you specified a proxy during installation, then that will become the default in some places, specifically the package manager and the desktop environment.


Is PPA still the only way to publish free open source app for Ubuntu Desktop?

Yes, well if you do not want to go through the validation process Canonical enforces. And PPA is a lot easier if you already have a .DEB.

Click (What are Click packages?) and Snappy are basically the same (where Snappy is an improved version of Click intended for server side installation and Click is intended for client side installation). Both are intended for mobile phones and as a side effect usable on the desktop.

We will turn from .DEB installers since the 15.10 release will have Snappy installation. So maybe that will also see the end of PPAs.


Why is the Xenial lxd image twice the size of Wily and its predecessors?

Because the bug. https://github.com/lxc/lxd/issues/2223 Thanks for filling. ;)


Which media player to sync with my LG Nexus 5?

Do you need to use banshee?
I strongly recommend Clementine

sudo apt-get install clementine

after a while of use, this one really gives me all features a media player can give me. I use an "intelligent playlist" to generate the next playlist out of my favorites (rating, stars, last played, skipped, etc) for my phone.
Wanna give it a try?


No internet (Wi-Fi and Ethernet) on latest version of Ubuntu

Try running

  sudo modprobe r8169

to activate the driver. Restart the machine and see if it works.

If it doesn't, you can download the driver from Realtek.

http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=4&PFid=4&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8110SC(L)

Download the file LINUX driver for kernel 3.x and 2.6.x and 2.4.x

There's a Readme file with instructions on how to install the driver. Read carefully, it shouldn't be that hard.


Telnet output file DOES NOT WORK Correctly UNDER Crontab

Use nc:

 The nc (or netcat) utility is used for just about anything under the sun
 involving TCP or UDP.  It can open TCP connections, send UDP packets,
 listen on arbitrary TCP and UDP ports, do port scanning, and deal with
 both IPv4 and IPv6.  Unlike telnet(1), nc scripts nicely, and separates
 error messages onto standard error instead of sending them to standard
 output, as telnet(1) does with some.

To install it, type sudo apt-get install netcat-openbsd.

Something like this should be a good replacement for your telnet line (this assumes you don't have to send or type anything to get the data; sorry, I'm unfamiliar with ganglia):

nc localhost 8651 > /test/test.txt

And on your /etc/crontab:

* * * * * root nc localhost 8651 > /test/test.txt

Note that if you're running this as root, then you don't need sudo. Indeed, even as a normal user, you should not need to use sudo to run nc. For security reasons I suggest you avoid using root or sudo unless strictly necessary.


I recommend using ZoneMinder, which seems to be exactly what you are looking for in software. As for the hardware, there is a list of cameras that work with ZoneMinder that you can choose some hardware from. Choose something that has the features you require (network camera, certain resolution, low light, etc) from that list and it should work with ZoneMinder.


Equivalent command for --upgradable in apt-get

At least in Ubuntu 18.04 it's
apt-get --just-print upgrade
which gives, for example
me@mypc:~$  apt-get --just-print upgrade
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic-hwe-18.04 linux-headers-generic-hwe-18.04 linux-image-generic-hwe-18.04
The following packages will be upgraded:
  google-chrome-stable libnss-systemd libpam-systemd libsystemd0 libudev1 linux-libc-dev systemd
  systemd-sysv udev
9 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Inst libnss-systemd [237-3ubuntu10.45] (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64]) []
Inst libsystemd0 [237-3ubuntu10.45] (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64]) [systemd:amd64 ]
Conf libsystemd0 (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64]) [systemd:amd64 ]
Inst libpam-systemd [237-3ubuntu10.45] (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64]) [systemd:amd64 ]
Inst systemd [237-3ubuntu10.45] (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64])
Inst udev [237-3ubuntu10.45] (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64]) []
Inst libudev1 [237-3ubuntu10.45] (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64])
Conf libudev1 (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64])
Conf systemd (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64])
Inst systemd-sysv [237-3ubuntu10.45] (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64])
Inst google-chrome-stable [89.0.4389.128-1] (90.0.4430.72-1 Google:1.0/stable [amd64])
Inst linux-libc-dev [4.15.0-141.145] (4.15.0-142.146 Ubuntu:18.04/bionic-updates, Ubuntu:18.04/bionic-security [amd64])
Conf libnss-systemd (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64])
Conf libpam-systemd (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64])
Conf udev (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64])
Conf systemd-sysv (237-3ubuntu10.46 Ubuntu:18.04/bionic-updates [amd64])
Conf google-chrome-stable (90.0.4430.72-1 Google:1.0/stable [amd64])
Conf linux-libc-dev (4.15.0-142.146 Ubuntu:18.04/bionic-updates, Ubuntu:18.04/bionic-security [amd64])

If you use sudo some of the warnings go away.


How to configure which lenses appear in the Dash home screen?

Here's just what you need:

http://www.webupd8.org/2012/06/lens-toggle-quickly-enable-disable.html


Why does unity's top panel stop to respond after some time after login (i.e. grabbing, double and middle clicking on it stops to work)


How to execute something that is not in the directory you are in nor a sub-directory of that?

It's as simple as removing the dot.

You can always run a program by typing the path to it.

If you type: /usr/local/netbeans-8.1/bin/netbeans

/usr/local/netbeans-8.1/bin/netbeans

will be executed, no matter your working directory. The path is not relative, because it begins with a /.

./program executes 'program' in the directory you're in. The . meaning current directory.

The reason you can't just type 'program', is a 'safety' mechanism. For instance someone could have named a malicious file 'ls' and you could risk running that malicious application instead of ls if you were in the directory trying to view the content.


The Bluetooth driver doesn't work in lenovo flex 3 14. please help me resolving this

Your wireless/bluetooth adapter is natively supported by kernel 4.3.

The backport you have installed to get your wireless adapter working probably has broken the bluetooth.

Install the kernel this way:

mkdir ~/linux-4.3
cd ~/linux-4.3
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-wily/linux-headers-4.3.0-040300-generic_4.3.0-040300.201511020949_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-wily/linux-image-4.3.0-040300-generic_4.3.0-040300.201511020949_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-wily/linux-headers-4.3.0-040300_4.3.0-040300.201511020949_all.deb
sudo dpkg -i *.deb

and reboot.

You will also need an updated firmware. It has been uploaded to proposed already. Install the deb file this way:

wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-firmware_1.127.18_all.deb
sudo dpkg -i linux-firmware_1.127.18_all.deb

This package will get into main repositories in a week or too.


Network interface down after every reboot in Ubuntu 15.10

I know this is old, just had the same problem myself, after install if you had no network plugged in it defaults the NIC to down after every restart.
/etc/netplan/00-installer-config.yaml replace eno1 with NIC tag EX: ens255f0
    network:
  ethernets:
    eno1:
      dhcp4: true
    eno2:
      dhcp4: true
  version: 2

reboot after done, this fixed two servers I had installed OS off network.


grub-install failure, and grub2 failure in general

Run boot-repair, and check the option that says 'Backup and rename Windows EFI files.'

The BIOS wants to boot only Windows and nothing else, because (I am taking some poetic license) it is a foolish BIOS indeed.

boot-repair will rename our EFI to trick BIOS.

Formatting my HD didn't do the trick because the BIOS itself had some things backed up apparently. At least, that's what I understand, I may be wrong on that last bit.


I can't get Ubuntu (12.10 Desktop) to recognize my Galaxy S3

Possible solution(s) discussed here:

OMG! Ubuntu > Connect your Android Ice Cream Sandwich Phone to Ubuntu for File Access

  As explained by Google Engineer Dan Morrill, the USB mass storage protocol was a block-level protocol. What this meant was that a partition could not be mounted on two different systems at the same time. Each partition that needs to be mounted on a computer must be unmounted from the phone first. This would be impossible on a phone with only a single partition, since if the system partition was unmounted, the phone would crash.

  To work around this issue, Android phones up until now either had two partitions in the internal memory (like the Nexus S) or had a microSD slot (like the Samsung Galaxy S II). Phones with micro-SD slots would just export the microSD card partitions to the connected computer.

  But the Galaxy Nexus only has a single internal partition. Other Ice Cream Sandwich phones in the future are likely to follow suit. ..

UPDATE

Lengthy discussion, and possible udev rules to fix this issue, in this forum:

OpenSuse.org > Cannot connect Samsung Galaxy S3 (Android 4) via USB cable

  That's because it needs a udev rule

  Can you plug the device in and then run the command dmesg, then post
  the output for your device (in code tags), which should be the last
  ~10 entries. I can then add a udev rule to my package and update for
  you.

  Once you have the updated package, you need to mount like;
  [CODE]
  mkdir ~/galaxy
  jmtpfs -o allow_other ~/galaxy

  To unmount use;
  fusermount -u ~/galaxy
  [CODE]
  There is a man page, use man jmtpfs

UPDATE 2

A better explanation and suggested configuration (Nov 2011), so may be slightly outdated.

Ice Cream Sandwich explained: MTP - what is it, why use it, and how to set it up

  MTP (Media Transfer Protocol) first showed up as default on Android devices with Honeycomb.  It's a bit of a change from the normal USB Mass Storage (UMS) file transfer that we're used to, where you plug in your phone, hit "USB mode" and start moving files. And because it's become the standard in Ice Cream Sandwich on the Galaxy Nexus, it's time to have a look at it.  Hit the break where we see what it is, why we're using it, and how to set it up on your computer for easy file transfer.

  On a Linux install, things aren't quite as easy.  On the plus side you have a bit of control how things are mounted, but there's no one click solution.  Don't be discouraged, you can have MTP set up and running in no time with a bit of terminal command fun.  Here's a walkthrough for using the Galaxy Nexus with Ubuntu:

  Set up a UDEV rule via the terminal by opening the rules file ..

Will test this soon myself ..


grub error unknown filesystem - Really need help!

Looks like when you deleted Ubuntu, you deleted all the files grub needs to run also.  To fix, you need to either reinstall grub, with its files sitting in a /boot/grub directory you create on one of the FAT partitions Windows likes to have around for tools/recovery, or restore the Windows boot block.  The grub approach I've done successfully, make the directories, and from a live media, mount the fat partition you selected, for example sda1:

sudo mount -tvfat /dev/sda1 /mnt/sda1

Then run

sudo grub-install --boot-directory=/mnt/sd1/boot /dev/sda

You should have a working grub again.
* Untested, dangerous below *
  The other approach of restoring the Windows boot block requires you to have a real set of install media, not the typical crippleware the vendors foist off.  If you can get to the "Recovery Console", you should be able to run fixmbr and/or fix boot and things should work again.  Vendor supplied media have no way to get to a recovery console, but lock-step you through their script straight to a reinstall (with no guarantee of fixing the mbr).  Another possible fix which I have no experience with is to find a backup boot block on the Windows root directory and from the live media, use dd to write it to the beginning of the disk.  Worst case is another non-function boot loader, so go back to installing grub.

Good luck