First disable the NetworkManager-controlled local forwarding nameserver. Open a Terminal window and run sudo gedit /etc/NetworkManager/NetworkManager.conf. Comment out the line dns=dnsmasq — that is, put a # character at the beginning of the line. Save the file. Then run sudo restart network-manager.

After that you should have one or more nameserver lines in /etc/resolv.conf with addresses of external nameservers. Does DNS work more reliably now?

If you still have intermittent DNS failures then it is probably because the first listed nameserver is not working correctly or you have an intermittent connection with that nameserver.


High cpu use from init and yes [Ubuntu 12.04]

Thanks to this post and this one How do I get AMD/Intel Hybrid Graphics drivers to work? . I was able to fix this.

Starting today, I too had high init and yes CPU use.  Killing yes would fix it till next boot.  Using Sneetsher's instructions above (thank you!) I used htop to find out what was causing the yes process high CPU - it was amd-xconfig. Using the link I'm including above, I ran:

sudo apt-get install fglrx fglrx-pxpress

Rebooted and problem solved!


Your System is running on Low-graphics Mode

When the message that "your system is running in low-graphics mode" appears, press Ctrl+Alt+F1, then login with your credentials.

And then, run the following commands:

sudo apt-get install --reinstall ubuntu-desktop
sudo reboot


Windows Shrinked Volume does not appear in Ubuntu Install Setup

Boot from Ubuntu installation media.
Select Try Ubuntu without installing.
On the Live desktop open GParted.

Delete the partition you have created in Windows before - and create a new extended partition.
Create a new partition under the extended partition (size : matching RAM) - format it with swap.
Create a new partition under the extended partition (size : rest free space) - format it with ext4.

Close GParted and start the installer.
Choose Something else when asked.
Select the ext4 partition for Ubuntu.


Ubuntu 14.04.5 LTS Security Patches End Date

Wikipedia entry for Ubuntu 14.04 LTS (Trusty Tahr) says -

  Normal LTS support is set to continue until 25 April 2019,[218] after which extended security maintenance will be available to Ubuntu Advantage customers and as a separate commercial purchase, as was the case previously with 12.04.[219]

Consider upgrading to latest/ later LTS version for latest security support.


Disable all user-installed services on boot?

Use this command:

sudo systemctl disable [service name].service


This happened to me too. I didn't try enedil's solution, but I did try sudo apt install lubuntu-core and then sudo apt install lubuntu-desktop. I know this problem is already resolved but I thought this could be another solution.


Problem with linux kernel configuration during update operation

The main issue is gzip: stdout: No space left on device. If the file system is full and parts of the package can't be extracted, any strange errors may follow.

Clean your system to free space.


How to have duplicate display on ubuntu 14.04 with gnome

Once the second screen is attached use the following shortcut keys Super-key (or Windows-Key) + P. Each time its pressed you will cycle between

Extended display
Duplicate display
display attached screen/projector only
native (laptop/desktop) screen only


Translation files (.po files) should live under the same directory as the translation template (.pot file). That's generally the po/ folder:

po/
myapp.pot
de.po
ca.po
..

It's generally the job of the translators to create a .po file for their language out of the template and then send it to the developer, who will commit it to the source tree. Or the cleverer and more modern way: use Launchpad to translate your app and to automatically commit the .po files to your source tree. This way translators will be able to translate online and never have to worry about sending e-mails or knowing about the underlying format.

But anyway, back to the question: if you've got a valid .po file at least, the quickly share or quickly package commands should pick it up and do all the work for you.

That is, they compile the textual .po file into a binary .mo file and put it in the package ready to install.

That should work for your app. However, you can do a test without using the quickly commands. Try running the following command at the top of your source tree, where you usually run the Quickly commands:

python setup.py build_i18n

That should do a local build of the translation files into the build/ directory, where you should find the .mo files.


ubuntu 18.04 having problems with wifi and bluetooth

I found my answer. I have looked many posts to fix this. I tried did this: enabled wifi adapter from Software & updates -> additional Drivers -> [select the dirver] -> Click on 'Apply changes' then: sudo apt-get update sudo apt-get --reinstall install bcmwl-kernel-source Then disabled secure boot from bios then: Reboot the system. and i see this stuff working


how to increase open file limits (nofile and epoll) in 10.04?

In order to set these limits, I did a combination of things found here and here. Since I want to restrict these file limits to the hdfs and mapred users, I added each of these users to the hadoop group on my system and edited /etc/security/limits.conf to include the line:

@hadoop hard nofile 16384

which allows both users to open as many as 16384 files at once, which is apparently important in pseudo-distributed mode. I also had to add the following line to /etc/pam.d/common-session:

session required pam_limits.so

which makes these file limits persist across daemon processes like hdfs and mapred. After restarting the server, everything appears to be working perfectly as hdfs currently has more than the default number (1024) files open:

[dsftar01 ~]$ sudo lsof | awk '{if(NR>1) print $3}' | sort | uniq -c | sort -nr
   1972 root
   1530 hdfs
    608 mapred
    360 www-data
    166 rdm
     97 mysql
     83 rabbitmq
     41 nobody
     35 syslog
     31 messagebus
     30 snmp
     25 ntp
     16 daemon


Why am I not able to use chmod 000 for a folder?

There is a manual page for chmod here.

Basically, look at this table on that page:

You can change the tick boxes, so that different people have different permissions.

Owner is the permissions on that file of the owner of the folder - usually the user that has created them - can be changed with chown.

Group is the permissions on that file of the group of the folder - can be changed with the chown or the chgrp commands.

Other is the permissions on that file of everyone who does not fall into the above two categories.

So running chmod 600 /PATH/TO/FILE will change the permissions so that  only the owner can read the file, and write to it.

You can also do the same for folders, but by using chmod -R 600 /PATH/TO/FILE so the contents of the folder is the same as well.

The thing is, if you try entering it as 000:

Then no one can access or write to the file, except root, and the owner if they change the permissions again. This can work, but there is not much point to it as:

Anyone who is logged in as the owner could remove the file.
They could change the permissions back again, either by chmod, or by  & Properties
If they are not the owner of the file, you do not need to chmod 000 .., just use chmod 600 ..

So if you want to stop people accessing the file, encrypting the file with a password would be the better idea. So to stop people accessing a file or folder, open Archive Manager, and click New - create one that you can encrypt (under Other Options) - I use .7z, as then you can encrypt the file list to. Then type the password you want to use.

Then you can add files:

Then you have an encrypted archive with your files secure inside - though it can still be deleted...


Ubuntu 18.04 Can't change preference order of languages in language menu

Ok, I confess: I'm guilty of that.

But I think that your whole question is a big misunderstanding. Initially you are talking about typing/inputting, but then you describe your attempts to modify the display language. Please note that input language and display language are two different things.

I'm assuming that what you really want is to make it easy to switch between English and Japanese as input language, and that you are fine with English as the display language. Is that correct?

As regards what you found on internet about reordering the stuff, you'd better explain better what you mean. There is reasonably more than one way to set it up. If you provide additional info, I'll edit this answer and add more specific guidance.


Why shouldn't I use apt-get install --qq without a no-action modifier?

When you use apt-get  without a no-action modifier, it means you are going to perform some actual operation with packages like install, remove, upgrade etc.

Single -q means quiet. It produces output suitable for logging, omitting progress indicators. But when you use -qq which is quiet level 2, it  implies quit with -y (--assume-yes). In this case no output will be produces except error.

Now why it is considered as dangerous?

Sometime apt-get removes some packages to satisfy the dependency. Using -qq in such condition may remove some package which is important for you or for the system without informing you.

So it is not considered as safe because  such operation can make your system unstable.


Add a simple line : quiet splash acpi_backlight=vendor to grub

gksudo gedit /etc/default/grub
Replace GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor"
sudo update-grub && sudo reboot

It worked on:

Ubuntu 12.04 LTS (Asus U31SD-XH51 )
Ubuntu 14.04 LTS (Dell 14z)
Ubuntu 14.04 LTS (Lenovo g500, remove nomodeset and it will work fine)

You could try adding a line to /etc/rc.local that will set the desired brightness level. To edit the file, run gksudo gedit /etc/rc.local and add following line:

echo X > /sys/class/backlight/intel_backlight/brightness

Substitute the X by the desired brightness level.


Updated
Please check in Build -> Set Build Commands, if Geany is calling the default python interpreter. For example in that dialog in execute commands default is python "%f" if you want to use the python3 interpreter you need to change it to ~/anaconda/bin/python3 "%f" (check the route for your anaconda installation) more info about anaconda IDE setup: ide_integration


How to spindown external drive on ubuntu 20.04

Put the script you made earlier into this directory
/lib/systemd/system-shutdown/
It runs everything in that directory before shutdown.


It is always smart to stop anything that touches the files you want to backup. If files are changed during the creation of the backup you can not predict the outcome of restoring the backup: it might break data.
Yes.
No, but you will get seperate gzip'd files if you do not.
Yes if the names are the same.
Yes. A filename like backup_$(date '+%F_%T').gz will have both date and time as part of your filename beginning with backup_.


software center wont open due to killall gnome-software

fixed, when i first installed the new package, the old(broken software center) stayed.therefore there was 2 software centers  one was called ubuntu software(which didnt open) and another one called ubuntu software center which was the new one i installed. the new one worked and now it works


Tool for connecting to symbian S60 filesystems

The situation with Nokia phones on Linux is a rather tricky one. I know first hand because I've been a loyal Nokia user for some years now. Unfortunately I've never had a Symbian phone myself, though my brother has had two so far.

What I can tell you is first that it is unlikely you will get good results with the 3rd party software that is available. If you can connect to your device via bluetooth or USB, you maybe able to use Wammu for some limited functionality.

sudo apt-get install wammu

I say limited because you probably won't get access to the actual File System. Gnokii may give you a better deal, but it uses the same backend.

Virtual Machine Method.

There is also the option of using a virtual machine with Ovi Suite. I tried this recently and I can confirm that it works, but you won't be able to update the phone (at least I was not able to). That is because the USB id of the phone changes when you run an update, and it might not reconnect correctly, so to avoid any risk, do not attempt to update the phone using this method!

If you only want to backup contacts and such, then this is your best option.

What you need:

A virtual machine manager such as Virtual Box.
A Microsoft Windows install CD/DVD or a virtual disk containing a legal (recommended!) install.

Windows XP recommended.

The Ovi Suite installer (use the latest available, but avoid betas unless you want to try the lastest feature.s).
A brain (just kidding)

Steps:

Create a virtual Machine for your Windows install.

I will not cover installing Windows here, or the intricate details of setting up a virtual machine in this post.
Install Windows and Ovi Suite.

Add a USB filter to the virtual machine.

Add your phone as a USB device.

* I will update this answer with more details later, but you should be able to connect to your phone with Ovi Suite and do most tasks (except updating).


How do I upgrade 'wicd' to the latest version?

The latest version of wicd in the Ubuntu repositories for 12.04 is 1.7.2.3-1ubuntu0.1.

To upgrade a specific package(s) via apt-get, you simply use install, not upgrade, e.g.:

sudo apt-get install wicd

If a newer version is available, it will be upgraded, otherwise apt-get will tell you:

wicd is already the newest version.

The Chrome thing looks like a PPA you added which is no longer available for your Ubuntu version. upgrade tries to upgrade all packages from all repositories, hence the 404 error. It doesn't matter unless you want to install/upgrade Chrome, but you can remove that PPA from Software Sources to get rid of the message.


Getting powernap's IOMonitor to work with postgresql

Per above comments - with thanks to @craig-ringer for putting me on the right track!

Postgresql isn't suitable to I/O monitoring to determine whether it's idle
Instead, it's better to monitor TCP connections to the front-end app if possible
However, be aware of bug 1070695 if your connections are established over IPv6.  The bug ticket has a patch which worked a treat for me.


Broadcom Wireless Drivers unclaimed after installing update 16.04

modprobe: ERROR: could not insert 'wl': Required key not available

This is the subject of a recent and still open bug in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1572659 Please also see: Can't view Wifi networks after upgrading to Ubuntu 16.04

It appears that the only solution so far is to enter the computer's BIOS and turn off Secure Boot.

Secure Boot is a security standard developed by the PC industry to help make sure that your PC boots using only software that is trusted by the PC manufacturer

1) Turn off the secure boot

2) Remove bcmwl-kernel-source

sudo apt-get purge bcmwl-kernel-source

3) Re-install bcmwl-kernel-source .

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

Reboot. Your wireless should now be working.


In the Rhythmbox menu, go to Edit>Plugins and deselect the plugin 'Cover Art.'


I tried using setuptools, but was unsuccessful.  But here's another method:
Get pip for Python 3
Open a terminal and enter
sudo apt-get install python3-pip

Get the dependencies
Install dependencies listed in Pillow's docs:
sudo apt-get install python3-dev python3-setuptools
sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev \
    libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev

Install Pillow
For Ubuntu 13.10+,
sudo pip3 install Pillow

and for 13.04-,
sudo pip-3.2 install Pillow


How to convert DAT to MP3 in ubuntu 14.04

There are a lot of software for this purpose :

WinFF --> Official site Here

Avidemux

You can see this Page

You can also install Wine and then install FormatFactory


Compiz plugin (Grid) does not update in CCSM

Found solution
I backupped all CCSM settings by exporting the configuration file (including the default values):
CCSM ⇒ Preferences ⇒ Export
Then I deleted the following folders:
~/.cache/compizconfig-1
~/.gconf/apps/compiz-1
~/.config/compiz
~/.config/compiz-1
~/.compiz
~/.compiz-1

Not sure which of those did the trick, but just in case I decided to remove all of them - I've retained those since 12.10 anyway...
Restarted Unity/Compiz via the terminal:
unity

Then imported the backup of the settings. Now the Grid plugin is working properly.


Can Ubuntu live CD help to recover if I move partitions?

The link you provided in your question is dealing with GRUB Legacy not GRUB2.

But of course, you should be able to solve any boot problems by using a live CD.


From what can I see from your output of dmesg, the SuperSpeed is enabled for sure:

925  [ 2367.435312] usb 4-2: new SuperSpeed USB device number 2 using xhci_hcd

But you get some fails:

931  [ 2367.452508] usb 4-2: Enable of device-initiated U1 failed.
932  [ 2367.452666] usb 4-2: Enable of device-initiated U2 failed.
933  [ 2367.453158] usb 4-2: Enable of device-initiated U1 failed.
934  [ 2367.453310] usb 4-2: Enable of device-initiated U2 failed.
...
937  [ 2367.516876] usb 4-2: Enable of device-initiated U1 failed.
938  [ 2367.517032] usb 4-2: Enable of device-initiated U2 failed.

You also have a warning in the output of lsusb -v:

131        bDescriptorType         4Couldn't open device, some information will be missing
132  Couldn't open device, some information will be missing

Now, sorry because I have to tell you this: I suspect it's a hardware failure - the external hdd could be at fault or might be a cable coming loose. To be sure, try to check them (the hdd and the cable) on another system/machine.


How to fix Unity locked disabled settings?

It seems that your ~/.config/dconf/user* files are corrupted. Try the following command, it should recreate a new one and allow you to store your settings persistently:

mv ~/.config/dconf/ ~/.config/dconf.bak

Note that you may loose some customization that you may have set on your system as all of them will be reset.

If it does not solve your problem all you have to do is:

mv ~/.config/dconf.bak ~/.config/dconf/


No message appears when using notify-send inside a service, why?

These "service" gets executed at boot time before you even got hold of the login screen. I don't know what are you trying to do, but those kind of events should happen after the login.

If you are trying to test whenever your script get executed you should either print something to a file (notify-send does not generate output) or start your service per usual.

If you run sudo services nameofscript start you could not get the notification, since you will be running as root.

I believe you are not trying to do what you are asking, but this answers the doubt you are facing. Next time you should ask what are you trying to do, the approach you are using and what are the expected results.


How do I install java? Want to play minecraft

See here for how to install Java.

  Now right click on your Minecraft.jar file and select "Open with Oracle Java 7 Runtime"

  That's it. Enjoy!

  Related:

  How do I install Java?
  How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

Borrowed from https://askubuntu.com/a/5565/178596 — which could also be a possible duplicate.


Ubuntu thinks that you've probably got a dirty filesystem in Windows. To fix this:
in Windows:

open the Power control panel
choose change what the power buttons do
choose change options that are unavailable
uncheck fast startup
close the Power control panel
open an administrative command prompt window
disable hibernation, type powercfg /h off
check your file system, type chkdsk /f c:
approve running chkdsk at next reboot
reboot into Windows
reboot into Ubuntu, and your disk should be fine now


How do I enabel my VPN on my standard account?

You obviously did not make a lot of research for this

From https://mullvad.net/en/setup/openvpn/, you have the following procedure

Log in
Install network-manager-openvpn (sudo apt-get install network-manager-openvpn)
Extract the configuration files
Import mullvad_linux.conf using the Network Manager menu


Generally you can use the "build-dep" command of "apt-get" to fetch dependencies to a package. Use it like this:

  sudo apt-get build-dep [package name]

Or more specifically for gvim:

  sudo apt-get build-dep vim-gnome

After that you should be able to compile gvim/vim either without further intervention or with only small set of dependencies to resolve required by a newer version of gvim/vim that you are compiling.

As Marius noted one such dependency resolution is installing libssl-dev manually:

  sudo apt-get install libssl-dev

Enjoy!


Netbeans cant call libraries in C++ since update to 12.04

This problem stems from changes they made starting with 12.04 where the path to the include folders is different.  Netbeans hasn't been updated to automatically find this new path system, so you're code assistance and project paths need to be changed.

To do this as late as 14.04, open Netbeans, go to the preferences dialog, and the C/C++ tab.  There you will find a code assistance tab with a list of absolute paths to certain folders.  Add /usr/include/c++/4.8 to the list, finalize that and close preferences.

Then, on the project you are working on, right click on the project icon in the side bar and go to the very bottom to find properties.  Click that, then on the C or C++ Compiler option, which ever one you're using, and there should be an Include Directories line.  Click the ellipsis on that line, and add the same path there.

Once you have that all closed up, your project should have proper code completion and compile correctly.  I hope this helps.

Digital Fruit
Our Blog


how can I permanently change db path in Mongodb?

Finally fixed that problem, I am actually put small case P in dbPath option.
Then I properly give ownership that directory to mongodb user account, It works perfect!


How to test if Google PageSpeed module is working correctly?

If all you want to do is test it, then you could use an online tools such as:

https://ismodpagespeedworking.com/
https://developers.google.com/speed/pagespeed/insights/

Type in your domain name or http address, and hit the "Check" button

If you want to test further:

open Chrome, and open the Developer Tools via menu under Options → More Tools → Developer Tools (Or just use the keyboard shortcut <CTRL> + <SHIFT> + I)
Try and load a web page on the server you just enabled PageSpeed on.

You should see a result like this:

Information Source: https://moz.com/ugc/use-googles-pagespeed-module-to-dramatically-increase-the-speed-of-your-website


No. It will not cause any problem later.


Right click on the top panel. Then, go to Panel > Panel Preferences.

Now, under the Display tab, make sure there is no check mark in the Lock Panel box.

Next, move your mouse to the very top edge of the screen and double click and hold the second click down to "grab" the top panel and bring the panel directly straight down by moving the mouse directly down until it is at the very bottom of the screen.

Tested on Ubuntustudio 15.10 upgraded from 15.04.


Unable to install Teamviewer 12 or Excaqvision DEB files

Install:

wget https://downloadeu8.teamviewer.com/download/version_12x/teamviewer_12.0.76279_i386.deb
sudo dpkg -i teamviewer_12.0.76279_i386.deb

Maybe got error:

Errors were encountered while processing:
 teamviewer:i386

Info:

sudo dpkg -l | grep team
iU  teamviewer:i386

Fix:

sudo dpkg --add-architecture i386
sudo apt update
sudo apt -f install

Info:

dpkg -l | grep team
ii  teamviewer:i386


Well, I saw the Belgian AZERTY keyboard. It has four full levels, so I tried to find a way to define DELTA on the menu key. It’s easy. Let’s do this in steps:

Open the layout file for editing. To do this you can open a terminal with Ctrl+Alt+T and enter the command:

sudo gedit /usr/share/X11/xkb/symbols/be
Define DELTA for the MENU key. Just insert the following line somewhere in the block "basic", for example in line 42 just before include "level3(ralt_switch)":

key <MENU>  { [Greek_DELTA ] };

Then, save and close the file.
Return to the terminal and run the command sudo dpkg-reconfigure xkb-data.
Just log out, or if you have more than one layout just change the layout once.

Now you can insert “Δ” with MENU.


Can I create another user in my window 7 computer to install the ubuntu?

No, You can directly use the Live Session to Try the Ubuntu Os.


Make VIM reload file as soon as it changes on disk

The tail command does exactly what I want...does it a little better actually:

tail /var/logs/foo.log

That will automatically print of foo.log to the console, and, when foo.log is updated, this will be reflected in the console.


cuda 8.0 appearing in apt-get autoremove list, 16.04

It depends on how you installed CUDA. If you ran sudo apt-get install <some-package-which-depends-on-CUDA>, and that package was removed, then CUDA, an automatically installed package, becomes automatically removable. The simple fix is to mark the CUDA packages as manually installed:

sudo apt-mark manual cuda-\*


Why am I getting a "port 22: Connection refused" error?

I went through this issue and finally got appropriate answer.

sudo apt-get update
sudo apt-get install openssh-server
sudo ufw allow 22

Then went into raspi-config in a terminal window and enabled ssh.

This will allow port 22 to be used for sshd.


shutdownd service missing on Ubuntu server 16 LTS

You can use

cat /run/systemd/shutdown/scheduled

This was added to systemd 220 release as explained here:
https://www.phoronix.com/scan.php?page=news_item&px=Systemd-Kill-Shutdownd


How can I count all the python and shell scripts in my whole system?

Quick overview
Here is a guideline on how to do it.
$ for f in * ; do file "$f" ; done

aptfielout: ASCII text, with very long lines
aptfilein: ASCII text, with very long lines
aptfileout: ASCII text
aptfileparse.sh: Bourne-Again shell script, ASCII text executable, with very long lines
aptfileparse.sh~: ASCII text, with very long lines
calc.py: Python script, UTF-8 Unicode text executable
catall.sh: Bourne-Again shell script, ASCII text executable

Strip out all the files that don't say "Bourne-Again shell script," or "Python script,". Add to the list POSIX shell scripts:
$ file /bin/zgrep
/bin/zgrep: POSIX shell script, ASCII text executable

A complete answer
/$ time find * -type f -print0 2>/dev/null | xargs -0 -P 8 file | \
sed 's/.*: //g' | sed 's/^ *//g' | \
grep -Eio 'shell script,|Python script,' | sort | uniq -c

  19151 Python script,
    127 python script,
  18420 shell script,

real    16m14.939s
user    54m7.355s
sys     2m33.238s

Starting from the root (/) find all files and pipe to the xargs command as zero byte terminated names.
The xargs command is run in parallel maximizing all 8 CPUs for faster processing. Each parallel process calls the file command which gets a description of the file as shown in the previous section.
The grep commmand selects shell scripts and python scripts.
The sort command sorts shell scripts together and python scripts together.
The uniq command counts the occurrences of each group.

fun facts
You can really tax your system running all 8 CPUs (in my case) at once:

The beauty of Linux shines through because other jobs such as the screen recorder making the .gif and a video running on the third monitor (big screen TV) continue to function normally. Linux doesn't let the xargs file command bog down the system.


I had this issue some time ago and a reboot resolved it for me. I do not reboot the tablet much, but when I did it worked and the full panel was visable. Give it a reboot and see if that resolves the issue.


SD card Mounting Copying and file recovery

First try to simply insert the microSD card and see if ubuntu recognizes it.
If yes, then copy all the files from it, reformat the SD card, and copy back the files...


Second Monitor does not detect on Ubuntu 14.04.1 LTS but detects on Windows 8.1

You could try making this the main video card in BIOS.

the Acer monitor that is not detecting is connected to the video card through HDMI cable cord

It might make it detectable and hopefully the other monitor connected to the other card will work too. There is no harm in giving it a shot because if nothing loads, then you can always just switch it back to how it was before.


Command to switch to the last terminal tab

In gnome-terminal.. there is inbuilt function without assigning any shortcut key..

you can assign a shortcut key by Selecting Edit -- >> Preferences -- >> Shortcuts -->> Switch to Last Tab and by pressing valid key/ key combination like below


How to deploy a juju charm specific to a server in MAAS

You can deploy to specific instances in a number of ways using Juju's constraints system. There is general information on using constraints here:

https://jujucharms.com/docs/stable/charms-constraints

and specific instructions in the reference section here for using MAAS tags:

https://jujucharms.com/docs/stable/reference-constraints

If you are deploying a bundle though, rather than an individual charm, you will need to edit the bundle file to make sure that specific applications end up on the right machines:

https://jujucharms.com/docs/stable/charms-bundles#creating-a-bundle


@Zeeshan, solution is: install Ubuntu alongside Windows 10 to the same SSD. But before installation of Ubuntu, safecopy / remove all your files from HDD to external drive and format you HDD to Fat32 (for both Linux and Windows). Then disconnect HDD power and data cables of HDD or delete HDD for a while. Change BIOS from Uefi to Legacy boot mode. Disable Windows fast startup. Now install Ubuntu. Ubuntu installation program will automatically ask for possibility for installation alonside Windows, accept it. After installation you have Grub2 boot menu for booting both Ubuntu and Win in the same SSD and both will boot quickly. Re-connect HDD cables or reinstall HDD. Re-boot to BIOS and add HDD to PC configuration. Use HDD as mass storage for both Ubuntu and Windows.


Problems compiling a kernel (3.4.110) on xubuntu 15.10

I would suggest running the compilation without CONCURRENCY_LEVEL.

Error 2 is rather general error, but the real cause is probably hidden somewhere up the compilation output.
If you run it in non-parallel mode, you should be able to spot any other error message (from GCC for example) much easily.

Best regards,
Pavel


How to set Battery Charge Thresholds in non thinkpad laptops

I wrote a command line application that does this.
The easiest way to get started is download the app from the releases page and run
$ ./bat --help

from the terminal in the directory where it is located which should show the help documentation.
If there's an error, it might have to do with permissions. The following command might solve the problem.
chmod +x ./bat

Basically, running
$ ./bat --threshold

will print out the current threshold.
To set a new threshold, say 60%, run
./bat --threshold 60

To persist the current threshold between restarts, run
sudo ./bat --persist

Note: Persisting uses systemd under the hood but this is bundled with most Linux distributions including Ubuntu.
Tip: Putting the app in a directory like /usr/local/bin/ that is in the $PATH will enable you to run it from anywhere and not just in the directory the app is in. Then the above commands become,
bat --help

bat --threshold 60

bat --persist

respectively.


How can I boot the dhcp server for my internal network board?

First, find out what the DHCP service unit is called, if you don't know (we can't tell from your question):

systemctl list-unit-files | grep dhcp

This might yield something like dhcp3.service. Then do:

sudo systemctl start dhcp3.service

replacing dhcp3.service by whatever the first command told you.


sudo chown -R root:myusername /var/lib/php/session (what should I put in username)?

The chown command has the following syntax:

chown username:groupname directory

So in your example command it is your primary group name you need to put
To determine your current user name issue the command as below on a terminal

whoami

This will return your current user name. Then issue this command to determine your group memberships

groups username

Assuming that your username is "alex", run:

groups alex

You will get something like:

alex : alex staff adm cdrom lpadmin admin

The first one after the : is your primary group. In this example it is "alex".

The command will be:

sudo chown -R root:alex /var/lib/php/session


Bluetooth and card reader not working on Acer Aspire 255

Have you installed the relevant proprietary drivers from System -> Administration -> Additional Drivers?

Some pieces of hardware have proprietary drivers, which means that their source code is not available to Ubuntu developers. As such, you'll have to install them separately using the above menu option. Just open up the Additional Drivers window, select the appropriate driver and click "Activate" at the bottom of the window. The driver should get downloaded and installed automatically.


Wifi issues after installation on Lenovo Y700

Your wireless adapter is hardware blocked by rfkill, because of a tricky Lenovo UEFI firmware.

This issue has been fixed in upstream kernels, but the fix did not reach Ubuntu yet.

You can fix it by running

sudo tee /etc/modprobe.d/blacklist-ideapad.conf <<< "blacklist ideapad_laptop"

Reboot and enjoy.

When you upgrade to Ubuntu 16.04, remove this config by

sudo rm /etc/modprobe.d/blacklist-ideapad.conf

But likely the fix will reach the Ubuntu 4.2 kernel too.


From where Ubuntu help(yelp) reads its files?

The translated pages (everything but en_US) belong to the language-pack-gnome-[LANG]-base packages. When both those and the ubuntu-docs package have been removed, you shouldn't be able to view the docs.

Edit:

$ echo $LANGUAGE
sv
$ sudo apt-get purge ubuntu-docs language-pack-gnome-sv-base
Läser paketlistor... Färdig
Bygger beroendeträd
Läser tillståndsinformation... Färdig
Följande paket kommer att TAS BORT:
  language-pack-gnome-sv* language-pack-gnome-sv-base* ubuntu-docs*
0 att uppgradera, 0 att nyinstallera, 3 att ta bort och 0 att inte uppgradera.
Efter denna åtgärd kommer 63,9 MB att frigöras på disken.
Vill du fortsätta? [J/n] j
(Läser databasen ... 636783 filer och kataloger installerade.)
Tar bort ubuntu-docs (15.04.3) ...
Tar bort language-pack-gnome-sv-base (1:15.04+20150615) ...
Raderar konfigurationsfiler för language-pack-gnome-sv-base (1:15.04+20150615) ...
Tar bort language-pack-gnome-sv (1:15.04+20150615) ...
Hanterar utlösare för software-center (13.10-0ubuntu6.1) ...
INFO:softwarecenter.db.update:translation information in database is up-to-date
Hanterar utlösare för bamfdaemon (0.5.1+15.04.20150202-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
$

Then, when calling yelp, I get a "Document Not Found" message.


Trying to install Emacs in one directory in Ubuntu

The best option is to install emacs from the package manager. It might not be the very latest one, but it will be close (in 16.10 it is version 24.5). If you open the terminal and then run the following command emacs will be installed

sudo apt install emacs

All of the init files will be in ~/.emacs, ~/.emacs.el, or ~/.emacs.d/init.el (where ~/ stands for the home directory i.e. $HOME/)

https://www.emacswiki.org/emacs/InitFile

This is the standard way to install programs on linux. Configuration files for a lot of programs are stored in ~/. You will have the best experience if you install emacs, and any other programs you want that are available via this method, using the package manager apt.


2560 x 1440 resolution / dpi problem in Chrome

Thanks to @AlexP for the direction. And this site for the answer.

The problem turns out to be Chrome's scaling.

To permanently get back to the nice, calming original scaling factor (=1), you need to edit Chrome's desktop file:

sudo nano /usr/share/applications/google-chrome.desktop

Find the line which contains the path to the binary and change it from

Exec=/usr/bin/google-chrome-stable %U

to

Exec=/usr/bin/google-chrome-stable --force-device-scale-factor=1 %U

Save the file (in nano: type Ctrl+X and confirm with Y) then restart Chrome.

No more eyes bleeding. :)


I am one step closer to installing ubuntu, back is grayed out and I was stupid enough to not make a backup

Since the system has already formatted the partitions and started copying files, there's not much you can do but wait until it's over and see what you get. If you didn't touch the Windows partition at the partitioning step, you should be fine.

About the boot loader: installing it on the master boot record of your hard drive will not alter your Windows installation, either. The worst that can happen is that if you want to get rid of Ubuntu later, you will have to restore the Windows boot loader (see here).


A custom launcher/window manger/desktop for my home entertainment PC

I gave Kodi a second chance.
Using this addon: https://forum.kodi.tv/showthread.php?tid=85724&pid=2668762#pid2668762 I can create custom launchers for everything, and then add them to the Kodi Favorites page.
This is what the end product looks like:


How to disable the grouping of windows on the launcher Lubuntu 20.04

Right-click on an empty space in your panel.
Choose Manage Widgets.
Click on Task Manager (taskbar) and then on the cog wheel icon (⚙) in the right column.
In the window that appears, enable/disable Window Grouping.


Fire command on client system from server

You can send command remotely, simply provide the command in quotes following the ssh log-in command, like this:

sshpass -p prakash12 ssh -t -p 11111 prakash@localhost '${HOME}/temp/.git describe --always --tags HEAD'

If you need to pass more command over ssh you have several options:

Use semicolon to separate the commands:

ssh -t -p 11111 prakash@localhost 'command1 ; command2 ; command3'

Use a here document:

ssh -t -p 11111 prakash@localhost << EOF
    command1;
    command2;
    command3;
    command4;
    command5;
EOF


How to automatically find out about updates to a given Ubuntu package in given releases?

One fairly easy, consistent, maintainable way is to parse the output of rmadison.
~$ rmadison libvips-tools
 libvips-tools | 7.26.3-1build1 | precise/universe | amd64, armel, armhf, i386, powerpc
 libvips-tools | 7.38.5-2       | trusty/universe  | amd64, arm64, armhf, i386, powerpc, ppc64el
 libvips-tools | 8.2.2-1        | xenial/universe  | amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 libvips-tools | 8.4.5-1build1  | bionic/universe  | amd64, arm64, armhf, i386, ppc64el, s390x
 libvips-tools | 8.9.1-2        | focal/universe   | amd64, arm64, armhf, ppc64el, riscv64, s390x
 libvips-tools | 8.10.2-1       | groovy/universe  | amd64, arm64, armhf, ppc64el, riscv64, s390x

rmadison is a Python3 script included in the devscripts package.
For example, you could compare today's rmadison pull to yesterday's stored copy. If there is a difference, the script sends you an e-mail.
You can easily tell that this  particular lib has had zero post-release updates in any currently-supported release of Ubuntu -- none of the packages are in the XX-update pocket.


Boot manager is showing \Ubuntu\winboot\wubildr.mbr is missing or contains error

I had the exact same problem on an HP Pavilion G6-2240sa preloaded with Windows8.  It turned out that for some reason that key files on the DVD I burned on the same machine were not recognized at boot time. The solution in the end was to create a USB stick boot drive  by downloading the data from the Ubuntu site and creating the bootable drive using the software site recommended by the Ubuntu site  "How to create a bootable USB stick on Windows".  Do not just copy the files to the USB drive.  I also had to edit the BIOS to look for the bootable USB drive before booting from the internal hard disk. If you would like more details with a blow-by-blow account see here


Transfer to swap the memory data of idle software running in background while keeping in RAM only active ones?

Automatically:

Yes, and that's what you have now: the Linux Memory manager swaps out unused programs to disk and swaps in programs that are used.
However, the kernel is optimised for a server, not a desktop, so if you want the kernel to swap earlier / later, you have to adapt your swap and swappiness to your use case.

Manually:

That's possible by using cgroups: you can decide which program is getting or not getting any RAM and which has CPU priority over another.
The simple methods are:

to close any programs that you don't use / need right now.
buy more RAM if you need to have all of them running as the kernel does not care about foreground or background applications and will gladly swap out LibreOffice if a large FTP transfer is running in the background.

¯\_(ツ)_/¯


In simple terms, globbing refers to pattern matching. Bash uses simple globbing like, echo l* which expand to list of files in current directory that start with letter l.  Of course , as you can guess, it's simple and limited.

Enter extglob. As you can guess, it stands for extended globbing. This option allows for more advanced pattern matching. From man bash:

extglob If set, the extended pattern matching features described
        above under Pathname Expansion are enabled.

And  a little before that:

If the extglob shell option is enabled using the shopt builtin, several
extended pattern matching operators are recognized.  In  the  following
description, a pattern-list is a list of one or more patterns separated
by a |.  Composite patterns may be formed using  one  or  more  of  the
following sub-patterns:

      ?(pattern-list)
             Matches zero or one occurrence of the given patterns
      *(pattern-list)
             Matches zero or more occurrences of the given patterns
      +(pattern-list)
             Matches one or more occurrences of the given patterns
      @(pattern-list)
             Matches one of the given patterns
      !(pattern-list)
             Matches anything except one of the given patterns

There's multitude of ways in which extglob can be used. Quite a few good examples are provided in Linux Journal and Greg's wiki.


Why can an application installed using Wine not access NTFS partitions?

Wine, trying to mimic how the drive letter works in Windows, also includes the Z: letter for the root file system on Ubuntu as shown in the Drives option in the winecfg:

Just open winecfg and go to the Drives tab to see which letters are assigned to which folders.

A quick example of how Z: looks if I try to search on it:

As you can see, from here I can navigate to media and find the NTFS partition from there. In your case it would be in /media/tomin/.... You can also add new letters that point to a specific folder, like letter D: if you wanted to point directly to the NTFS partition.

As Takkat mentioned something VERY important in the comments, Wine can not mount a file system (Mounting is a Ubuntu system action, not so much a Wine option). So you need to first mount the file system, via File/Nautilus for example, and then proceed to use the Wine app you need.


problem with ubuntu 11.04 server while installing windows virtual machine on it

Issue the following command

VBoxManage storageattach <vmname> --storagectl "IDE Controller" --device 0 --port 2 --type dvddrive --medium empty

or You can change the boot order first so that won't be a problem any more (set the hdd first, then the CD).


You should try using gscan2pdf, One of my mates was using it recently and said it was good and made the font readable.

Here's a link for the same : https://apps.ubuntu.com/cat/applications/precise/gscan2pdf/


Ubuntu doesn't recognize full RAM capacity

So your board doesn't have an onboard graphics, but it is an AM1 socket motherboard with builtin hdmi and dvi. Socket AM1 is intended for a class of CPUs that contain both an integrated GPU and a chipset, essentially forming a complete SoC implementation.

This leads me to believe that the missing RAM is being dedicated for the graphics processor (VRAM). There should be an option in the BIOS to change the allocated amount.


Wine does not launch. How do I install it properly on Kubuntu 16.04 LTS?

Those packages are available in the repositories, though in newer versions

sudo apt install libgnutls-dev libgnutls-dev:i386

Will install the packages you need.


How do I fix "E:Type 'b-src' is not known on line 'X' in source list" error?

This error advertise is telling you that the concerned file (tiheum-equinox-precise.list in this case) have the b-src phrase, and that is wrong because it should be deb-src instead.

So you have tree options to solve the issue:

Fix the line with the typing problem:
Open the file, find the line with b-src and replace it with this one: deb-src
Convert the line in a comment:
Open the file, find the line with b-src and add the # character at the begging of this line
Delete the file:
Enter the next command in a terminal: sudo rm /etc/apt/sources.list.d/your_file

NOTE: To open the file, enter the following command in a terminal:
sudo gedit /etc/apt/sources.list.d/your_file

Now you will be able to update your system!


Is there a way to register a Gmail account into Online Accounts

Online accounts simply provides account details for various accounts. You have to actually implement your own IMAP pull and SMTP send or use a library. Specifying the application you are trying to develop may help here.

UPDATE: APIs

Python API: http://developer.ubuntu.com/api/ubuntu-12.10/python/Accounts-1.0.html

C API: http://developer.ubuntu.com/api/ubuntu-12.10/c/accounts/

Online Accounts Source Code: https://code.launchpad.net/libaccounts-glib


Could not mount /dev/sdc1 but I don't have such a drive!

This sounds like you have three drives. sda, sdb, sdc. If you have a flash drive in your system, the sdc could be the drive which will slow down your system if it's usb 2.0. You can move your linux OS to one drive and your windows os to another drive. Remember, the swap works best outside of the extended partition.

At the least, you can use prelink (sudo apt-get install prelink) to have your system to link all of the mount points before boot up. It slows down your boot time, but it speeds up everything else.


Asus Q502L Elantech ETD0108 touchpad not working

You need to install the driver. Run in terminal.

Download THIS FILE to your home folder. Run in terminal

tar -xf psmouse-etd0108.tar.gz
sudo cp -r ~/psmouse-etd0108 /usr/src
sudo apt-get install dkms
sudo dkms install -m psmouse -v etd0108
sudo update-initramfs -u

And reboot


How can I install ubuntu restricted extras on Ubuntu 14.04

You should be able to get the .deb file by running sudo apt-get download ubuntu-restricted-extras. The file will be stored in your current directory or in /var/cache/apt/archives of your download machine if you ran sudo apt-get install instead. To install it on your offline Computer, just run sudo dpkg -i + path and/or file name (just double clicking the file should also work).


Why this white line appears between top bar and wallpaper?

Alexandre's comment put me in the way. It's Unity bar.
I solved it just following this steps:

How to remove the menu in the top panel?

Just pasting this on a terminal:

    sudo apt-get remove appmenu-gtk3 appmenu-gtk appmenu-qt


Don't know which version of node I am runnig

Your current version is v2.4.6.

Here are the steps to upgrade via npm:

Clean Cache Fully

username@pcname:~$ sudo npm cache clean -f

npm WARN using --force I sure hope you know what you are doing.
Install n Module

username@pcname:~$ sudo npm install -g n

/usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
n@2.0.2 /usr/local/lib/node_modules/n

Install Latest Release of Node

username@pcname:~$ sudo n stable

 install : node-v6.0.0
   mkdir : /usr/local/n/versions/node/6.0.0
   fetch : https://nodejs.org/dist/v6.0.0/node-v6.0.0-linux-x64.tar.gz
############################################################ 100.0%
installed : v6.0.0

Setup Binary Link – Now link your node binary with latest node installed binary file using following command.

username@pcname:~$ sudo ln -sf /usr/local/n/versions/node/6.0.0/bin/node /usr/bin/node

Check your version of node - Should be latest version.

username@pcname:~$ node -v

v6.0.0

You should now be able to run your script.


How to install Ubuntu Touch RTM 14.09 on Nexus 7 flo?

I used this command instead and it worked:

ubuntu-device-flash --channel=ubuntu-touch/ubuntu-rtm/14.09-proposed --bootstrap

In Ubuntu Touch now...


Check file permissions on the destination directory. Make your user the owner with the command:

sudo chmod -R user:user /opt/unity


Is it possible to limit NetworkManager to a set of named interfaces?

Add your interface(-s) to /etc/network/interfaces . NetworkManager checks this file.
See also:

https://stackoverflow.com/questions/5321380/disable-network-manager-for-a-particular-interface


Opening odt from cifs/smb share extremely slow in kubuntu

This works for me. LibreOffice delay could be dependent on samba share mounting method mounting options.

Create the following files with sudo and permission 600, replacing "your_samba_server_name" with your real samba share server name.

/etc/systemd/system mnt-test-temp.automount

 [Unit]
 Description=mnt-test-temp
 Requires=network-online.target

 [Automount]
 Where=/mnt/test/temp

 [Install]
 WantedBy=multi-user.target

/etc/systemd/system mnt-test-temp.mount

 [Unit]
 Description=mnt-test-temp
 Requires=network-online.target

 [Mount]
 What=//your_samba_server_name/temp
 Where=/mnt/naila/temp
 Options=uid=1000,gid=1000,credentials=/etc/.share-pw
 Type=cifs

 [Install]
 WantedBy=multi-user.target

/etc/.share-pw

username=<username>
password=<password>

Run the following 3 commands in a terminal

 sudo systemctl daemon-reload
 sudo systemctl start mnt-test-temp.automount
 sudo systemctl enable mnt-test-temp.automount

You can change mount file names in the /etc/systemd/system directory according your requirements. But take care to follow the naming requiements of files by using the systemd mounting method.


Login problem in 20.04 : can't type anything in the login box

It seems that I have found a solution (even though I am not sure about the intrinsic mechanisms involved). Following a suggestion here I've typed the following in the terminal (ctrl+alt+t for terminal or ctrl+alt+F1 for a text console):
 sudo nano /etc/systemd/logind.conf

Then I uncommented the lines:
 HandleSuspendKey=suspend
 ...
 HandleLidSwitch=suspend

Then I saved the file and quit nano. Then I entered
 systemctl restart systemd-logind.service

Now the laptop, for some reason, does not respond to the lid closed but wakes up perfectly well after using GUI suspend (tried for three times).


Upgrade from Ubuntu Gnome 16.04 to 16.10 wants to remove Calibre

Make sure that you are changing your apt source for the getdeb calibre repository from "xenial" to "yakkety" at the same time.  do-release-upgrade may not do this, or may disable it, depending on how you are planning to upgrade.

Most likely the existing version installed depends on something not available in 16.10, but if it can find the upgraded package from getdeb for yakkety hopefully it will be OK.

Worst case you can most likely re-install it after upgrade.


Is it possible to define the maximum voize computer can output in Ubuntu?

Dial down the master volume control linked from the panel (as opposed to volume controls in apps, such as browsers), or lower the master volume in ALSA https://wiki.ubuntu.com/Audio/Alsamixer

If you have a desktop you can also a volume control on the audio cable like http://www.ebay.com/itm/like/390497226138?lpid=82 (not my item) to reduce to sound level reaching the speakers - not practical with laptops, though.


I know the command line so what's the netplan yaml?

in the end this worked but we're not entirely happy with what we did

# nano /etc/netplan/01-systemd-networkd-eth1.yaml

note the two spaces before the word "network: " they matter - yaml is whitespace/ indent sensitive

  network:
     version: 2
      ethernets:
        eth1:
          addresses: [10.90.90.52/24]
          dhcp4: false

this gives us this on reboot

# ip r
default via xx.x2.x18.x7 dev eth0 proto static
10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52
xx.x2.x18.x7  dev eth0 proto static scope link

which is what

# ip route add 10.90.90.0/24 dev eth1 proto kernel scope link src 10.90.90.52

was giving us


after upgrade to ubuntu 12.10 unable to load GUI

Do you have an ATI card? Maybe a HD4xxx or lower? And you used to have the proprietary drivers (fglrx). Well, this setup won't work anymore (bug).

Unfortunatly, amd considers these cards legacy and they don't receive as much love as they deserve anymore. Remove the proprietary drivers (sudo apt-get purge fglrx*) and reboot to use the opensource drivers.


"trying to overwrite '/usr/share/man/man1/node.1.gz', which is also in package nodejs-legacy 0.10.25~dfsg2-2ubuntu1"

Potentially Fixing the Installation

As Charles said in the comments, I would try to run sudo apt-get update and sudo apt-get upgrade.  You may also want to run sudo apt-get autoremove to remove packages that you no longer need.

The error mentions the nodejs-legacy package.  If you've ever installed that, you may want to remove it.

A better way to install Node on Ubuntu

Unless you are planning on using your computer as a production server, I'd strongly recommend installing Node.js using the NVM tool.  Installing from the repository requires you to use sudo, which leads to messy permissions when you try to install Node modules using NPM.

As a bonus, NVM lets you install multiple versions of Node, and it lets you keep your copy of Node up-to-date, even if the official repositories are behind.

Grab the latest copy of NVM

curl https://raw.githubusercontent.com/creationix/nvm/v0.15.0/install.sh | bash

Tell your shell to use nvm

source ~/.nvm/nvm.sh

Then install a node version

nvm install 0.10

And tell nvm which version of Node you want to use

nvm use 0.10


Did you update your repositories? And did you try installing the matlab-support package.

sudo apt-get matlab-support

If you are facing problem with your version. Try this one.

https://kat.cr/mathworks-matlab-r2015a-amd64-linux-t11790580.html

I have successfully installed it from here. But remember,

First unpack the iso extension file by right clicking on it. Then you will get the original .iso file.
Use this command to mount the iso file:

sudo mount -o loop -t iso9660 (source_path_where_you_have_downloaded) /media/iso

Please let me know if you have any further questions. And when you are doing all these if you are in root mode then you should not have any permission problems.


installing ubuntu and windows 8 dual boot

On Windows, set a FAT32/NTFS Partition in the unpartitioned space.
You could then see it from Ubuntu, delete it, and create the needed partitions for the install.
Although the unpartitioned space should also show up anyway.
I am running Ubuntu 13.10 x64 and Windows 8.1 Pro in perfect Dual-Boot on an Acer Aspire V5.

Note that to achieve this I had to create all of the Linux partitions manually for the Ubuntu to install and run properly.

I created the following:

/boot (238MB) ext2
/home (15GB)  ext4
/     (80GB)  ext4
swap  (4GB)   swap

The size of the /boot partition should be around 200-250MB, the rest are up to you.


Broadcom wireless Driver on hp 15-ac098TU notebook not working properly

Linux has it's problems with Broadcom drivers, I myself have a Lenovo laptop with the same wireless adapter and always have to manually install the drivers on any Linux distribution.

On Ubuntu the easiest way is to install the proprietary driver since the kernel integrated opensource drivers do not work with this card.
Firstly you have to get internet access on the device in any other way, be it through an ethernet cable or for example an android device. You can connect your phone to your WiFi and usb tether the connection to your laptop.

Next open the Additional drivers program from the Dash app launcher and look for the Broadcom wireless adapter (I am currently not on my ubuntu machine so I cannot check the exact text that will be shown, if anybody has the same card, free to comment and I'll edit the answer). Check the use proprietary driver checkbox and hit apply. It will take a few minutes and your driver will be installed. You might have to reboot to get apply the changes


I came across this a few days ago.

https://help.ubuntu.com/community/UbuntuStudioPreparation#Pulse_Audio

I have not tried it. It seems to be a solution from lucid, but maybe your system will find it favorable!

  PulseAudio and Jack

  Thanks to packagers, there is now a very easy way to get PulseAudio
  and Jack working together. First of all, install the package
  pulseaudio-module-jack

sudo apt-get install pulseaudio-module-jack

  It should work without any other tweak.


Problem when installing pear packages for php

It was a bug: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/774452.
That page says it's fixed now (since 11 hours), so it should be fixed in the next update of the php-pear package. The bug report also has a pointer to the related bug report in Debian, which points to the upstream diff.


How to install server on /dev/sdb1 on ubuntu

If you do not want to move the entire system to the second disk, nor create LVM (which would probably require full system reinstall), I suggest, you examine the bitcoin packages and see where they install or keep data. Then you can copy/move the corresponding directory to a partition on a second disk and mount it with fstab.


Where can I get the latest version of Totem?

You can download it on the launchpad page of totem

Or alternatively on the launchpad page for totem in Ubuntu

Edit:
Sorry i thought there where PPA's somewhere on those sites.

There is also a Totem page on gnome.org

Where it is said you should simply use $ sudo apt-get install totem-gstreamer which will install the latest stable(if you didn't change your apt_preferences) release.

If you explicitly want the latest release, no matter if stable or not you could add -t unstable to the apt-get command. Please see the man page for more info.


Looks like the problem was that i had the cam plugged into a usb 3.0 port, because i moved it to a 2.0 port and it worked right away. I find this weird because i though you could plug 2.0 devices in 3.0 ports.
Also, if anyone is having the skype black screen problem like i did try this http://ubuntuforums.org/showthread.php?t=1997828


Failure to install a package from the command line?

compizconfig-setting-manager isn't quite the same string as compizconfig-settings-manager.  Cut and paste might be your friend for that kind of thing.


The reason why its crashing is because of java 11. you need to install java 8 and under and everything should be fine. here's a post on how to do it: Downgrading Java 11 to java 8?.
and if that doesn't work go and try a youtube video on how to do it.


Open a terminal and enter the command:

wine reg add 'HKCU\Software\Valve\Steam' /v DWriteEnable /t REG_DWORD /d 00000000

This will disable DWrite for only Steam.  Alternatively, you can run the following:

wine /path/to/Steam.exe -no-dwrite


Installation From Windows (No USB or Disk Support)

This is a long shot, but try this:

Download and install an emulator such as Oracle's VirtualBox.
Setup the emulator for Ubuntu (Create a virtual hard drive, allocate some ram, etc).
Tell the emulator to use the iso as a disc.
Connect the host path to your F drive as a shared folder to the emulator
Start the emulator.
In the emulator BIOS menu, tell it to boot from the disc and install Ubuntu onto the virtual drive you needed to make in step 2.
After its done installing, try copying the root path into your F drive through the shared folder. (Usually mounted under media if I'm not mistaken)
Restart your computer and try booting from your F drive.

EDIT: Make sure your F drive is in FAT32 format.


SSH Protocol V1 (Cannot log into my Dedicated Server)

Place something like this in your ~/.ssh/config file:

Host sq
     Hostname squid
     User walt
     ForwardX11 yes
     Protocol 2

ssh protocol 1 is depreciated because it leaks info, and can be broken so that encrypted traffic can be viewed.


Go to Settings/Appearance and play with the Hinting at the Fonts tab; if you really use a CRT display, you should also turn sub-pixel hinting off.


Unpair/remove Bluetooth devices in 16.04.1? (And other problems.)

The GUI from the screenshot seems hosed at least to some degree, so use the command line tool bluetoothctl. It is interactive and has a help command.

$ bluetoothctl
[NEW] Controller 3C:77:E6:F0:01:EA x200 [default]
[NEW] Device A0:E4:53:A3:AD:6A Xperia Z1 Compact
[NEW] Device 20:15:04:10:D3:AE LT1282
[NEW] Device F2:06:91:3F:EE:9A UniversalFoldableKb

[bluetooth]# list
Controller 3C:77:E6:F0:01:EA x200 [default]

[bluetooth]# devices
Device A0:E4:53:A3:AD:6A Xperia Z1 Compact
Device 20:15:04:10:D3:AE LT1282
Device F2:06:91:3F:EE:9A UniversalFoldableKb

[bluetooth]# info A0:E4:53:A3:AD:6A
Device A0:E4:53:A3:AD:6A
    Name: Xperia Z1 Compact
    Alias: Xperia Z1 Compact
    Class: 0x5a020c
    Icon: phone
    Paired: no
    Trusted: no
    Blocked: no
    Connected: no
    LegacyPairing: no
    UUID: [output shortened here]
    Modalias: usb:v0FCEp01A7d0010

[bluetooth]# remove A0:E4:53:A3:AD:6A
Failed to remove device: org.bluez.Error.NotReady

[bluetooth]# power on
Changing power on succeeded
[CHG] Controller 3C:77:E6:F0:01:EA Powered: yes

[bluetooth]# remove A0:E4:53:A3:AD:6A
[DEL] Device A0:E4:53:A3:AD:6A Xperia Z1 Compact
Device has been removed

As can be seen, visibility of a devices in the indicator does not mean that they are all paired or trusted (...so I have no idea what it means to see a device there).

It is also surprising that remove did not work while the Bluetooth controller is off...

Regarding the issue with the icon disappearing: to my surprise the Bluetooth controller can be in two off-states (at least on the system shown).

"Powered: no" as shown by bluetoothctl

the controller will be visible to Bluetooth tools
the indicator icon will be there, in gray, and show that Bluetooth is off

totally off, as if the Bluetooth controller would be unplugged

icon disappears, like as if no Bluetooth hardware is present
Bluetooth tools see no controller

How to control off-states?

The command line tool rfkill controls the rfkill-subsystem which handles software switches for radio devices. rfkill list bluetooth will reveal two Bluetooth relevant devices: the "main switch" and the controller itself (only visible if the Bluetooth main switch is "on").

$ rfkill list bluetooth
0: tpacpi_bluetooth_sw: Bluetooth
    Soft blocked: no
    Hard blocked: no
11: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no


Eclipse Error aapt: error while loading shared libraries:No such file or directory

Try the below commands on terminal,

sudo apt-get install zlib1g
sudo ln -sf /lib/x86_64-linux-gnu/libz.so.1.2.8 /lib/x86_64-linux-gnu/libz.so.1

Now run eclipse. Hope it'll work.


Could not resolve archive.canonical..com

For this open a terminal (ctrl+alt+t) and edit the /etc/apt/sources.list file by:

sudo nano /etc/apt/sources.list

There are actually two lines with canonical in it, check them for the double . and remove one. Then press ctrl+x to stop editing, press y to save and confirm the filename with a press on return.


Rebooting takes too long after installing Ubuntu 14.10

First you have to identify the cause, so a good place to start would be the log files (i know, not so cute:) , but look at /var/log/boot.log  first

Then you could install bootchart (sudo apt-get install bootchart) to find where it waits and for how long.
- after installing bootchart you have to reboot.

The information you posted is a little 'generic' and hard for anyone to give an exact solution (if any).


Require duplicates to be imported in Shotwell

Right now you'd have to do this at compile time by configuring with:

./configure --define=NO_DUPE_DETECTION

You should be able to build following these instructions: http://www.yorba.org/projects/shotwell/install/.

I wouldn't suspect this is a commonly used code path, so some things might not work exactly how you might expect. Please file a bug report on either pantheon photos (elementary os) or shotwell on the gnome website if this doesn't work for you.


From the Ubuntu installation CD/USB on choosing "Install Ubuntu" is an option to upgrade a previous release from the CD:

This option will try to keep your HOME intact, and also tries to keep installed software. Since I never tried this path I can not tell however if the result will be the same as when performing an online upgrade.

  In any case make a backup before you start


Using /etc/environment.d/*.conf to set global environment for all users

Ok after rebooting my system today I got it to work but I followed the recommended naming style for such files and this 60-foo.conf is the name I gave to the file and I also had to create that folder and it was called environment.d and of course it was placed in the /etc folder.

This is the content of that file:

FOO_DEBUG=force-software-gl,log-verbose

After the reboot doing echo $FOO_DEBUG produced the contents of that file:

force-software-gl,log-verbose

Note several things here:

Filename follows convention as found in the man pages


Unity does not load after installing Ubuntu 15.04

Problem solved after downgrading to Ubuntu 14.10 and upgrading to Ubuntu 15.04.


How to transcode audio files in a batch?

Use Clementine

It's a little awkward, but it can be done as follows.

Make a playlist of all the music you want.
Select all items in the playlist, right click and choose Organise files...
Make a copy of all the files in a new directory, but removing the directory nesting, i.e. so they will all be in one directory. I do this by using
convert_these/%artist__%album__{%track - }%title.%extension
Next choose Tools menu → Transcode Music. From this dialogue box you can add all the files from your new convert_these directory, and it will make converted copies along side these files.
You can then delete all the copied originals from your convert_these folder with your favourite file manager.
Finally, you can add all these new files into a new playlist, and use the *Organise files...` tool again to move them into whatever folder structure you need.


What's the difference between dual booting and a virtual installation?

In a virtual machine, Ubuntu will be as restricted as the VM configuration says it will be. SO if your system has 8 GB RAM but the virtual machine is configured for 2 GB only, then Ubuntu will only use 2 GB. You decide how much (or little) resources you want to assign to the guest system (i.e. the one inside the VM).

Virtual machine "disks" are usually stored in files on your host filesystem. Assuming you don't delete those files, or delete the virtual machine entirely, the virtual disks are completely persistent; they act just like a real hard disk and whatever you put there will remain until you delete it explicitly or erase the virtual machine. Actually, you can delete the virtual machine but keep the virtual hard disk: think of it as removing and keeping the hard disk while throwing the computer into the trash :)


Why won't Ubuntu 11.04/11.10 boot after install?

Here is a thread from the Ubuntu Forums that may help; there's tons of info in there: Graphics Resolution- Upgrade /Blank Screen after reboot


Upgrading to Xubuntu 12.10 using a Non-PEA supported CPU

Unfortunately this is true. Lubuntu and Xubuntu 12.04 LTS were the last releases supporting a non-PAE CPU by providing a 32-bit non-pae kernel as can be read from the release notes:

  The i386 images use a non-PAE kernel. The non-PAE kernel will not be available in future Xubuntu releases.

Therefore it is recommended to stay with the 12.04 long term release on an old system which does not support PAE. This release will be fully supported until end of 2017.

See also this question:

How to roll back Ubuntu to a previous version?


How to fix bad boot resolution in Kubuntu

The black screen problem is normally caused by some update that didn’t install properly and left the graphical desktop environment in a broken state.

The fix this, open a text console by pressing Ctrl+Alt+F1 and then logging in in text mode. Once you are in, issue these commands to complete the upgrade successfully:

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade -y
sudo reboot.

Ubuntu restarts, and then you can log in again normally.

If issues still exists, please let us know.


What are the dangers of upgrading kernel from 4.18.0-13 generic to 5?

After installing a mainline Linux kernel such as version 5 you can still reboot and select the previous version.

At the Grub menu select Advanced Options. A sub menu appears showing all your previously installed kernels that have not been auto removed or manually removed.


That looks like one of those non-standard keyboards where you have to press the F-lock key before you can press a function key?  Doesn't that work?


Unable to install Latest generic kernel for 18.04

You have extra spaces in your command as I read it, and thus told it to install "install-recommends" for which there is no package, thus error is correct.

When 3rd party blogs make errors, you need to correct for that yourself, or stick to official Ubuntu blogs which have been tested/reviewed by someone else in the team.

The '--' is the GNU way of writing the option, and the 'install-recommends' is the option and connected to the '--', ie. the space between them shouldn't be there.

The --install-recommends will install the packages for Xorg (https://packages.ubuntu.com/bionic/linux-generic-hwe-18.04, https://packages.ubuntu.com/bionic-updates/xserver-xorg-hwe-18.04)

I haven't provided the command by choice; as the command refers to HWE (hardware enablement kernel) and not GA (general availability) kernel I tend to think of as generic (or what originally ships).  You'll also note official documentation has different commands for desktop & server, the OPs unofficial post ignores (thus it would be poor for Ubuntu 18.04 Servers)

The official documentation is https://wiki.ubuntu.com/Kernel/LTSEnablementStack


why doesn't dig get answer from LAN DNS but ping and nslookup work

You figured out the solution yourself:

  Only if I give dig the qualified name does dig get an answer.

dig doesn't automatically append your connection's DNS suffix(es) to its queries, unlike other tools. This is expected.


Command 'setenv' not found upon installation of Crystal09 program

Those are C-shell commands, and Ubuntu by default uses bash as the shell. You need to install the C shell and run it. Do:

    sudo apt-get install tcsh

and enter your password. Once done, simply run tcsh and go through the tutorial. Type exit to go back from csh to bash.

You can convert the commands in the tutorial to bash, of course. setenv is equivalent to export (it has different syntax, though). This is what I would do, but if you are not familiar with different shells the above solution is a better option.


Should iptables do source NAT on invalid TCP packets?

Your analysis is thorough and complete. Very well done. I went through the same investigation 8 years ago.

It is not a bug, even though it keeps getting reported as a bug. From my notes at the time:

The NAT engine simply can not know what to do with an INVALID packet, so it is passed without address translation. So such packets need to be identified and dropped. This requirement is incredibly NOT obvious in most documentation.

Please also see this bug report, particularly comment 11.

I am not aware of any particular security concerns with this. I am aware that some ISPs can get upset with non-routable packets being sent. In my iptables rule set I have many rules, in addition to the INVALID checks, to ensure that packets never leave my LAN with non-routable source or destination IPs (i.e. 192.168.X.X, 10.X.X.X, 172.16.X.X, ...)

2.5 years after implementing the rule as you have:

-A FORWARD -s xxx.xxx.169.0/24 -o p2p1 -p tcp -m state --state INVALID -j DROP

There was a case of a non NAT'd packet escaping from my LAN.The cause was a poorly formed ICMP packet from a smart phone (something that should never occur, but did. It was a bogus header length). So the protocol specification was dropped:

-A FORWARD -s xxx.xxx.169.0/24 -o p2p1 -m state --state INVALID -j DROP


Since you are putting it on a tablet, I assume you are interested in Ubuntu touch. At the moment there are very few supported devices, and yours is not in the list. I also cannot see any community driven ports to your device on the wiki page. If you want you can start your own community driven port for your device following their wiki page.


Upgrade process interrupted; can't boot and need to recover protected data

While in the liveCD, run the command gksu nautilus. This should work as it opens nautilus as root. Alternatively, you can try to copy or move your files using the sudo cpor sudo mv respectively.

Although I thoroughly recommend to copy your data elsewhere, I'm also pretty sure that (if you have /home on a separate partition) you can reinstall Ubuntu without formatting /home.


What text editor for Linux has the following features?

VIM has all of these features but I'm quite sure emacs has them as well.

Both exist for Linux / Windows / OSX.
and can be run as a desktop app or in terminal.

Be advised  they both have a high initial learning curve
But its well worth the effort!

Pick your poison.


How do I add file and directory comparision option to mc user menu?

Add this to ~/.mc/menu:

+ t r & ! t t
d       Diff against file of same name in other directory
        if [ "%d" = "%D" ]; then
          echo "The two directores must be different"
          exit 1
        fi
        if [ -f %D/%f ]; then        # if two of them, then
          bcompare %f %D/%f &
        else
          echo %f: No copy in %D/%f
        fi

x       Diff file to file
        if [ -f %D/%F ]; then        # if two of them, then
          bcompare %f %D/%F &
        else
          echo %f: No copy in %D/%f
        fi

D       Diff current directory against other directory
        if [ "%d" = "%D" ]; then
          echo "The two directores must be different"
          exit 1
        fi
        bcompare %d %D &


Xubuntu 15.04: Thunderbird new mail alert not showing

Install plugin Mailbox Alert in Thunderbird

After that you can customize a lot :)

Also maybe you will be interested in notifications for chat: Thunderbird Chat Notification

Another interesting plugin is FireTray to run Thunderbird in background.

IMPORTANT You won't get notifications if Thunderbird isn't running.

Sample how to activate notifications for Mailbox Alert


Ubuntu uses a local database for this. locatedb is one version of this and it has a configuration file located at /etc/updatedb.conf.

Contents:

$ more  /etc/updatedb.conf
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /media /home/.ecryptfs /var/lib/schroot"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660
ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre tmpfs usbfs
udf fuse.glusterfs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs"

As you can tell for this lots of locations are not added to the indexing.

This is an example of a method to add a path when you use locatedb:

updatedb --localpaths '/ /media/usbdrive/dir/Music /media/usbdrive/dir/Photos'

I am not sure if needed but

sudo updatedb

will recreate the database by scanning your discs in case an alteration does not trigger it.


Installing CUDA for Neural Networks driver

You don't need to change a thing in this command, just run all three commands from within the same directory, e.g. /home/nimrod/Downloads in your case. Let's cd to there to be sure:

cd /home/nimrod/Downloads
sudo cp -P cuda/lib64/* /usr/local/cuda/lib64/
sudo cp cuda/include/* /usr/local/cuda/include/

Alternatively you can give the commands the full paths:

sudo cp -P /home/nimrod/Downloads/cuda/lib64/* /usr/local/cuda/lib64/
sudo cp /home/nimrod/Downloads/cuda/include/* /usr/local/cuda/include/


Is Xubuntu as power-efficient as Ubuntu?

Xubuntu uses the same kernel as Ubuntu, as well as the same low-level power management utilities (hdparm, etc.), so yes, it has the same power management capabilities as Ubuntu.

But, Xubuntu may be more power-efficient than Ubuntu on your laptop, primarily because it's a "lightweight" desktop environment; it places somewhat less load on both your CPU and GPU compared to Ubuntu (Unity 3D). Whether it saves power over Ubuntu (and how much) depends on your specific hardware and use patterns.


PC periodically becomes semi-unresponsive

So I managed to correlate the unresponsiveness to when Davmail was actively doing something, and sure enough there's this bug in the Davmail bug tracker which matches the symptoms perfectly.  The suggested workaround in that bug of setting davmail.server to true in the .davmail.properties config file seems to have eliminating the periodic unresponsiveness


You can use the gnome-system-monitor.
Or in an Terminal "top" (q to exit).


How to list all proprietary (license field) snap packages installed on my box?

To get all snap packages:
snap list

To get details (including the license):
snap info <package name>

So something as
for p in $(snap list | awk 'NR > 1 { print $1 }') ; do
    snap info $p | grep license
done

would list the license for each snap, and then you could filter that at will.
Now, the parameter license in the few snaps I have is unset.
Except for snapd, which has GPL-3.0, versus GPL-3.0+ shown here.
So, apparently, to get the actual license for each snap you would have to write a script that retrieves the info from https://snapcraft.io/<package name>, or, better, from snap info <package name> | grep store-url (likely the same in all cases, but I would not bet on it).
Not a big deal, but not expected either probably.
Adding a script as commented by @Xosrov
#!/usr/bin/env bash

for i in $(snap list | awk 'NR > 1 {print $1}') ; do
  url="https://snapcraft.io/${i}"
  echo "${url}"
  site=$(curl -s "${url}")
  for j in $site ; do
    res=$(echo "$j" | awk -F'>' '$0~"data-live=\"license"{print $2}')
    if [ -n "$res" ] ; then
      echo "License for ${i}: ${res:0:$((${#string}-4))}"
      break
    fi
  done
done


Splash screen not showing during boot in Ubuntu 16.04 but works fine while shut down

I found out the mistake..

I just changed the number from 1 to 0 during configuration and it worked for me


Did you notice that 15.04 version doesnt need FFmpeg package to run obs :

  If you're on Ubuntu 14.04/14.10, you'll first need to install FFmpeg
  (15.04+: skip this step):

Run following command to remove ffmpeg ppa :

sudo apt-add-repository --remove ppa:kirillshkrogalev/ffmpeg-next
sudo apt-get update

as a safer alternative, you can use ppa-purge :

sudo apt-get install ppa-purge &&
sudo ppa-purge ppa:kirillshkrogalev/ffmpeg-next

Then install OBS :

sudo apt-add-repository ppa:obsproject/obs-studio && sudo apt-get update && sudo apt-get install ffmpeg obs-studio


Looks like an update came along and fixed the issue ;)


How do I find out if I have a separate boot partition?

You don't have any separate /boot partition.

/dev/sda1 is your Ubuntu root partition (mount point /, which includes all folders that are not mounted from anywhere else, including /boot in your case)
/dev/sda2and/dev/sda3are partitions for Windows, the small one is probably going to be the hidden system partition while the big one will show up as yourC:` drive in Windows.
/dev/sda4 is not a "real" partition for data, it's a so-called "extended partition" which means it's just a container that may hold any number of logical volumes (which behave like normal partitions again). Extended partitions are needed because an msdos/MBR partition table can only have 4 primary partitions or 3 primary and one extended (containing any number of logical) partitions.
/dev/sda5 is your Linux Swap partition, which is used to swap memory pages out of your RAM when it gets full.

However, to boot using GRUB, you must install it to the disk (/dev/sda) and not to any of the partitions, using e.g. sudo grub-install /dev/sda. This should be done from either your running Ubuntu installation on the disk (which will not be possible as you will need to restore GRUB first) or from a chroot from a live Ubuntu environment into your mounted Ubuntu partition. It works like this:

Boot an Ubuntu live DVD or USB drive. Should be the same architecture (32/64bit) and ideally same release as your installed Ubuntu. Select "Try Ubuntu without installing".
Open a terminal (Ctrl+Alt+T) and run the following commands to mount your Ubuntu partition and chroot into it:

sudo mount /dev/sda1 /mnt
for x in /dev /dev/pts /proc /sys ; do sudo mount --bind "$x" "/mnt/$x" ; done
sudo chroot /mnt

Your terminal prompt should have changed now, as you are now logged in a shell session as root user to your Ubuntu installation on the disk, not the live system. Here type these commands to reinstall GRUB to the disk. Note that we don't need sudo here for that reason. Also, the second command could probably be omitted, but it doesn't hurt:

grub-install /dev/sda
update-grub

Exit the chroot session again by typing exit or pressing Ctrl+D. Unmount all the mounted partitions again:

sudo umount -R /mnr

Exit the terminal and reboot from the disk, ejecting the live medium you booted from.


Lightspark doesn't works in firefox 29.0 and Chromium 34.0.1847.116 (ubuntu 14.04)

Lightspark currently does not support Chromium's only plugin API - PPAPI.

More information here: FlashPlayer open source alternative


which software to use for cleaning up files and increase performance of a computer under ubuntu?

Usually, there is no need of a cleaning software to speed up an Ubuntu machine. There is no registry in Linux and temp files are on /tmp directory which is not saved when you shutdown the machine.

Log files are on /var/log and have absolutely nothing to do with the speed of the machine (while they do not fill up the disk of course). Each log has several files because the old ones are compressed and a new one is created. The compressed (old) ones are usually in the form /var/log/logfilename.#.gz. Usually 2 files of each log are not compressed, the current one and the one before it (usually named logfilename.1). It is not needed and won't speed up your machine but if you need some small extra disk space, you can delete all the compressed ones if you don't need them (sudo rm /var/log/*.gz should work but you may need to do some adaptations depending on the names of your log files).

A few little things you can do manually:

Due to the package management automatic dependencies installations, you may have auto installed package that are not needed anymore. Remove them with: sudo apt-get autoremove

Look at your swap to see if it is used heavily (not enough RAM):

free -m

The last line will tell you swap size, used and free. If use is high and you see on the above line -/+ buffers/cache that free memory is short, you may need to increase your RAM to speed up your machine. If swap is near 100% used, you need to increase swap space (but that is another question :) )

Browsers caches usually can be cleaned from the browser preferences.

Or as suggested in other answers, you can use Ubuntu Tweak! :)


As I've been fighting with my MSI H97 Gaming 3 mobo for three days now and I've finally found the answer. For me it was bringing together a few things.

One: You have to enable some settings in your bios:

In the motherboard BIOS:

LAN Option ROM = Enabled
EuP 2013 = Disabled
Resume by PCI-E device = Enabled

But after that there seems to be a problem in the driver and as a response, they just cut out the whole WOL support. Never fear however because the internet gives us wonderful people who can solve this for us. In “Wake-on-LAN broken in alx (AR8161)” you can find the auto-installer for Ubuntu (take care to get the right one, scroll down!). Run the setup and you'll be living the life of never having to have to actually get up physically to turn on your computer!


send&receive sms messages from Ubuntu, using a built-in sim slot + sim card

As Alexandra mentioned, Modem Manager GUI worked perfectly with my usb 3G dongle. Supported SMS and USSD which made it a great tool to manage this sim. Like the fact that any new SMS messages pops up in my notification panel.
Easy install from command line as well. sudo apt-get install modem-manager-gui


First of all your question is not os related; its browser related and  you can use other addons in firefox but if you can't live without that extension then install google chrome ( in Ubuntu) or better install chromium ( which is the base of chrome ) and install that extension in chromium(or chrome) from chrome web store Use the following terminal command to install chromium

sudo apt-get install chromium-browser

to install google chrome download the .deb file and install


This is a known bug. It sometimes disappears after you uninstall the package overlay-scrollbar. This will, evidently, also remove the overlay scrollbars.


Ouch!  Probably not enough people use these any more and some compiler flags got changed between versions.  The only thing you can do is file a bug

(sorry to be the harbinger of bad news)


Recovery kernel boots into root with no menu

It sounds like you are missing the friendly-recovery package.

sudo apt-get install friendly-recovery


What should I do ?
You should STOP !

Installing Ubuntu via wubi is not recommended.
Download the Ubuntu desktop installation image.
Burn this ISO file to a DVD or create an USB media.
Boot from the installation media and install Ubuntu.

Read about all details in the Ubuntu installation guide.

To create an USB media from within Windows properly,
open command prompt as administrator and execute:

diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 (quick)
assign letter=**

Note : * = number of the USB drive | ** = select a free drive letter
Mount the Ubuntu ISO file and copy all the content to the USB drive.


Microphone monitoring disabled, low volume (Blue Yeti USB, Ubuntu 20.04) [SOLVED]

After much searching, I ran alsamixer. The mic gain was 0. No idea how that happened. I never changed it. Once it was increased, the monitoring starting working again.
The capture was also low. I upped it. That helped with the mic recording volume.
Hope this helps someone.


Dual booting on startup I get a completely black screen and need to enter BIOS then exit in order to get to GNU GRUB. How do I fix this?

You seem to have selected the Windows EFI partition as the bootloader location for grub during install.

Boot into Ubuntu and run sudo grub-install /dev/sdc

Make a backup of fstab (sudo cp /etc/fstab /etc/fstab.bak

Find  and copy the UUID of the Ubuntu EFI partition using sudo blkid

Run sudo nano /etc/fstab and replace the UUID of the partition with the mountpoint /boot/efi with the UUID you copied.

Run sudo umount /boot/efi

Run sudo mount /dev/sdc1 /boot/efi

Run sudo update-grub

Reboot.


can't change keyboard layout to german on ubuntu server

I had the same issue as you and loadkeys de did the trick. For other languages:

Spanish: loadkeys es
Portuguese: loadkeys pt
Brazilian Portuguese: loadkeys br
Swiss German: loadkeys ch

Note, that these settings don't survive a reboot.


My Ubuntu also lost his voice after upgrade to 13.10.

I had similar problem with some old Ubuntu version and the solution still works in 13.10 for me:

sudo alsa force-reload


Configuration to point an X tty to a separate system?

If you enable XDMCP in the guest's DM then you can use X :1 -query ... in the startup scripts on the host to request a XDMCP connection to the X server running in the guest. This will open :1 onto your guest, starting from the login screen. See the Xserver(1) man page for details.


Connected but no internet on Asus ROG, "operation not permitted" for ping

I found the solution! (Probably not the best one)

First I discovered why my /etc/resolv.conf was being overwritten all time:
https://unix.stackexchange.com/questions/174349/what-overwrites-etc-resolv-conf-on-every-boot
So:

sudo dpkg-reconfigure resolvconf

and answered no to dynamic updates. Now I rebooted and then I added "nameserver 8.8.8.8" to /etc/resolvconf/resolv.conf.d/base, run sudo resolvconf -u and removed iptables package. Rebooted again and it worked!


How can I remove Gnome Desktop Environment without messing Unity DE? (Ubuntu 16.04)

To be honest it would be better to back up for files and all config files in the Home folder and do a fresh install of Ubunutu.

If not try this:

Start by running this command:

Uninstall just ubuntu-gnome-desktop

sudo apt-get remove ubuntu-gnome-desktop
sudo apt-get remove gnome-shell

This will remove just the ubuntu-gnome-desktop package itself.

Uninstall ubuntu-gnome-desktop and it's dependencies

sudo apt-get remove --auto-remove ubuntu-gnome-desktop

This will remove the ubuntu-gnome-desktop package and any other dependant packages which are no longer needed.

Purging your config/data too

If you also want to delete your local/config files for ubuntu-gnome-desktop then this will work.

Caution! Purged config/data can not be restored by reinstalling the package.

sudo apt-get purge ubuntu-gnome-desktop

Or similarly, like this ubuntu-gnome-desktop

sudo apt-get purge --auto-remove ubuntu-gnome-desktop

Then run:

sudo apt-get autoremove

to remove extra packages and dependencies no longer needed on your system.

You might (or might not, depending on if gdm was removed already) need to use these commands to change your login screen back to Unity's default (which is lightDM) run

sudo dpkg-reconfigure gdm

Hit enter at the prompt and then select lightdm from the options. After that you can remove gdm with

sudo apt-get remove gdm

Finally run:

sudo apt-get install ubuntu-desktop
sudo apt-get install unity

INFO HERE and HERE


TL;DR:  You cannot add a module to the already-installed NGINX.  Read on for why, and possible solutions.

The nginx package that is already installed on your system, whether from the main repositories or not, is already compiled with the modules set forth in the system.  This goes for any of the nginx PPAs (from the nginx team), too.  Since the binaries are already compiled with a set of modules, you can't "add" any modules to that without a bit more work.

To add the http-auth-digest module, you'll either have to find someone who can create a customized package for you in a PPA that you can use to update the software and make it work; create a customized Debian package for you with that module in it; or build, compile, and configure from source yourself.

Since 2016, NGINX has had support for Dynamic Modules.  However, you need to precompile the dynamic module against the exact same version of NGINX that you're going to put the module into.

This requires that the module be written in the proper way to work as a dynamic module, but if it is, then you can technically compile it alongside the same NGINX instance, and then move the compiled module to another NGINX system of the same exact version.  This, however, does not allow you to compile modules without compiling NGINX alongside it, so you still have to compile NGINX in order to get a usable dynamic module.

Dynamic module support, however, is not available in 16.04 as it required major packaging changes that were not available at the 16.04 release cycle, and therefore is only available in 16.10 and later.


something went wrong with gnome3 installation

Looks like your theme has a problem. Found something similar on superuser.com here.

The answer from the source reads:

  Try this, it worked for me:

sudo apt-get purge gnome-accessibility-themes
sudo apt-get install gnome-themes-standard

  Then open the Gnome Tweak tool listed above and select Adwaita


How do I install Adobe Acrobat Pro From Web Premium CS4?

All Linux Distros can't run Windows executable program.  Booth have different application environments.

If you want to run Windows apps you could use Windows. but fortunately there are some like virtual runtime which able to run Windows apps in Linux, they are WineHQ and CrossOver


Try installing the italic terminfo:

tic resources/xterm-256color-italic.terminfo
tic resources/tmux-256color-italic.terminfo

Source: terminals database is inaccessible #33

See also: clear command - terminals database is inaccessible

See also: “clear” command in GNOME terminal returns “terminals database is inaccessible”


Find out what type a command is using the type command.

$ type cd
cd is a shell builtin
$ type ls
ls is aliased to `ls --color=auto'
$ type cat
cat is /bin/cat

You can see, cd is a shell builtin.

This means, it's a part of your shell which is by default Bash. That's of course also the software package it's contained in.

For installed commands that are not shell builtins but executable files, use dpkg -S to find out the package:

$ dpkg -S $(which cat)
coreutils: /bin/cat

To get help for built in commands, use the help command (which is also built in):

$ help cd
cd: cd [-L|[-P [-e]] [-@]] [dir]
    Change the shell working directory.

[... output shortened ...]


How to kill the process using the name of the program instead of PID?

Use killall:

killall <the_process_name>


Transmission download doesn't work when on other user

See the Ubuntu wiki Transmission HowTo

Configure Users and Permissions
It is recommended that Transmission runs under its own username for
security reasons. This creates a few issues with file and folder
access by Transmission as well as your account.

To fix it, add your user to the group debian-transmission by running this
command while logged in as the user you want to give access to, or
replace $USER with their username
sudo usermod -a -G debian-transmission $USER

For the change to take effect, you must log out and back in.


How to change trust settings in unity-webapps

The integration settings dialog (e.g. described in How to manage "Unity WebApps Chromium extension" different options?) actually shows both applications for which you declined and allowed integration. It basically allows to you to retrigger an integration.

If you remove a given Web App from this list, you don't see the integration prompt again as you navigate the website?


Gparted error - Segmentation fault (core dumped)

The problem is the library libglibmm, better libglibmm-2.4-1c2a

Check the output of this command:

apt-cache policy libglibmm-2.4-1c2a

Sample output:

% apt-cache policy libglibmm-2.4-1c2a
libglibmm-2.4-1c2a:
  Installed: 2.43.2-0ubuntu1~vivid1
  Candidate: 2.43.2-0ubuntu1~vivid1
  Version table:
 *** 2.43.2-0ubuntu1~vivid1 0
        500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
     2.42.0-1 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages

Install an older version, eg: 2.42.0-1

sudo apt-get install libglibmm-2.4-1c2a=2.42.0-1

and set the package on hold:

sudo apt-mark hold libglibmm-2.4-1c2a

reversible with

sudo apt-mark unhold libglibmm-2.4-1c2a

That worked in my case.

Output of gdbgpartedbin`

Starting program: /usr/sbin/gpartedbin

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6a6993a in Glib::wrap_register(unsigned long, Glib::ObjectBase* (*)(_GObject*)) () from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
(gdb) bt
#0 0x00007ffff6a6993a in Glib::wrap_register(unsigned long, Glib::ObjectBase* (*)(_GObject*)) () from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#1 0x00007ffff6a5969e in Glib::wrap_init() () from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#2 0x0000000000418ebf in ?? ()
#3 0x00007ffff49aea40 in __libc_start_main (main=0x418e90, argc=1, argv=0x7fffffffe338, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe328) at libc-start.c:289
#4 0x0000000000419575 in ?? ()


date command appears to ignore locale settings

It looks like the date command without arguments outputs the locale's "date_fmt", which is not in ISO 8601 format in the en_DK locale. You can get the desired output by adding a FORMAT argument - something like:

LC_TIME=en_DK.UTF-8 date +'%x %X'

Please see man date for further FORMAT sequences.