The instructions refer to building Debian packages. You need to follow the build instructions, but before running git-buildpackage, edit the control file in the debian directory (debian/control) and add to the Build-Depends list, dh-systemd (add it anywhere in the list, really, but I like keeping the order):

Build-Depends: autotools-dev,
 autoconf,
 autogen,
 automake,
 debhelper (>= 8),
 dh-autoreconf,
 dh-systemd
 dkms (>= 2.2.0.2),
 libselinux1-dev,
 libtool,
 uuid-dev,
 zlib1g-dev,

Then edit the rules file in the debian directory (debian/rules) and:

change the overall dh command to:

dh $@ --with autoreconf,dkms,systemd

delete the override_dh_installinit section.

When you add systemd to the --with options, dh_systemd_enable and dh_systemd_start will be called at the right time.

Also, in addition to the other packages already mentioned in Build-Depends, you will have to install dh-systemd (sudo apt-get install dh-systemd).


uname -r  - determine which kernel you are using at the moment.
dpkg --list | grep linux-image - to list all kernels
apt-get purge linux-image-3.13.0-36-generic - delete old unused kernel (just for example)
sudo update-grub - Now update grub so it knows that you don't have some of the kernels

Hope this helps!


How to enable Firefox Screenshots button on Firefox 61.0.1 on Ubuntu 18.04

Open a webpage and click the three dots icon ("Page actions") in the address bar.
You should see a "Take a Screenshot" icon. Right click on it.
Select "Add to Address Bar".


Copying subfolders to new folders with same superfolder names

Assuming seconddirectory exists and you have write permission, you can use the following command in the terminal:

cp -r firstdirectory/* seconddirectory/

The option -r allows the copy command cp to copy directories.

Best of luck


Ubuntu 12.10 doesn’t recognize Wi-Fi but it’s been connected during installation

You could try to disable driver for your wireless card in Settings -> Source Software -> additional drivers (sorry if the path is not correct, i have Ubuntu in italian) and then restart. For me it worked.


GUI crashes after installing AMD Catalyst 14.9 on Ubunut 14.10

After searching for hours the internet finally figured out the problem. AMD Catalyst 14.9 is not supported by X.Org Server 1.16.
However it's possible to install the latest fglrx drivers through terminal or additional driver settings.

By Terminal:

sudo apt-get install fglrx fglrx-amdcccle fglrx-core

By Additional Drivers:

  System Settings -> Software & Updates -> Additional Drivers


If you are using Ubuntu Desktop, you can use Network Manager to configure the static IP address.  For Ubuntu server (or manual configuration on Ubuntu Desktop), you can edit the /etc/network/interfaces file:

sudo nano /etc/network/interfaces

And add the following content:

auto eth1
iface eth1 inet static
    address 192.168.47.1
    netmask 255.255.255.0

You can apply the settings by restarting the networking service:

sudo service networking restart


use inotify to watch a folder for a long time

It depends what you need to know from monitoring it, but maybe

inotifywait -m -r ~/"The Folder"

is what you want?


Using netstat

netstat by itself monitors all major protocols including TCP and UDP on every port.

If you want to display TCP and UDP connections:

   netstat -t -u

If you want to display that continously:

   netstat -t -u -c

Similar to top:

nethogs - shows a list of the top processes that use bandwidth
jnettop - shows list of top connections
iftop - shows list of top connections with bandwidth bars

GUI Interface (just in case):

Ntop
Netactview


systemd: set openvpn-client@ service TimeoutStopUSec?

I seem to have found a solution.

sudo systemctl edit openvpn-client@foo.service

Add the following:

[Service]
TimeoutStopSec=30s

Reload configs and restart service

sudo systemctl daemon-reload
sudo systemctl restart openvpn-client@foo.service


This bug

  Bug #1001035 “lightdm uses a hardcoded path to .xsession-errors,...” : Bugs : lightdm package : Ubuntu

states that LightDM has the path for $HOME/.xsession-errors hard-coded in its source. And that really should be configurable.

Sadly, “modern” display managers seem to often not care about /etc/X11 much anymore, and re-invent the wheel… badly.
Probably because it is rather hard to find out why things are the way they are. (I tried. I still don’t know why there are so many files/scripts and what all their purposes are.)

E.g. SDDM doesn’t use .xsession-errors at all, and logs to some other strange location, if at all.

Addendum

The second question should really be separate.
Due to me still not knowing all about it, I can’t help with that.
But I think I can say that you probably shouldn’t create another custom session file.
Maybe the LightDM documentation helps you there…

About the third question: The man page for xinit and its associated man pages (from the same software package) explain this. There’s a list of alternatives, some in $HOME, some in /etc, some even in /usr/share/… sub-directories. But I think if there is none, some default is assumed too.
Sorry, this should probably be separate too. I only post what I do know.


Try using gdebi. It will resolve dependiencies for .deb files. You can install it with:

sudo apt-get install gdebi-core

Then use

sudo gdebi packagename.deb

in the correct directory.

With that said, virtualbox has given me the same issue on Ubuntu, but I didn't install the .deb file, but instead went with an alternative:

sudo apt-get install qemu-kvm

I've used both hypervisors and other vm software and this product works very well and is supported by Ubuntu's Server team.


Software center claims that winetricks installed but it doesn't show up in apps

winetricks is not a GUI application.

It is not supposed to appear in Dash.

You can run winetricks in terminal.


does linux docker work better on particular file type?

From the Docker documentation on docker storage drivers, the default Linux storage driver is overlay2.

Both ext4 and xfs are backend filesystems that support the overlay2 file system.  You don't need to switch from ext4 to xfs just because of Docker; you should be OK with the default ext4 filesystem that Ubuntu installs.


error: no such device; grub rescue. when trying to boot

Sry for my English.

Ubuntu Live CD doesn't matter what is stored on the hard disc. Because you see problem with grub, Live CD doesn't start. Check BIOS if is set start from CD/DVD.

Then follow this repair grub or google terms like "ubuntu grub repair from live cd"


could be many reasons and solutions,
can you go wired?
if its a personal home router, then go admin and configure the settings,
try connecting to the ip adress manually to secure the server from auto renewing. GL!


Laptop battery not charging after update?

I have had this issue for some time now.  With Ubuntu running, my battery would not charge.  I could leave it running and plugged in for hours.  Then, when I pull the plug, it complains about the battery being low.  If I leave it plugged in while the power is off it would charge just fine.

Recently, I installed Fedora for a time.  I never noticed any issues with charging while the OS was running.  I just upgraded to Ubuntu 11.10, and I am noticing the same issue again.  Yesterday, the battery sat at 83% while I left it on.  It didn't start charging until I rebooted.

On older versions of Ubuntu, my solution was to start "upower".  I learned that if I put the "upower" command in the startup applications, that I wouldn't have the issue.  I haven't spent enough time on it with Ubuntu 11.10 yet to see if that works.  I would love to get this fixed though so I don't need a work around.


Is there a way to enable "beats audio" from within Linux?

See my post on Reddit here:
http://www.reddit.com/r/linux/comments/17sov5/howto_beats_audio_hp_laptop_speakers_on/
The model=ref method doesn't work quite right, at least not on my laptop.  You have to remap some HD audio ports that appear disconnected and then all the speakers work.  There's a convenient little tool out there that does just that.  I also got it working under Debian and it works without breaking headphones too.

Step 1: Install hda-jack-retask from here:
https://launchpad.net/~diwic/+archive/hda (ppa:diwic/hda)
Step 2: Open
hda-jack-retask
Step 3: Select the IDT 92HD91BXX codec (may be
different on other models)
Step 4: Check the "Show unconnected pins"
box (the internal speakers do not show as connected)
Step 5: Remap
0x0d (Internal Speaker, Front side) to "Internal speaker"
Step 6:
Remap 0x0f ("Not connected" but is the under-display speakers) to
"Internal speaker"
Step 7: Remap 0x10 ("Not connected" but is the
subwoofer) to "Internal speaker (LFE)"
Step 8: Apply now, then test
with your favorite audio program (some may not work due to Pulse
reset, so find one that does, verify sound is coming from all
speakers).
Step 9: If it works, select "Install boot override" to save
the settings to apply at boot time.
Step 10: Reboot. When it comes
back, you should have full sound from all speakers. Also test
headphones. Plugging in headphones should disable sound from all
internal speakers.
From Ubuntu 13.10, hda-jack-retask is part of alsa-tools. Just install
the alsa-tools-gui package from the regular archive and start
"hdajackretask".


How do I install nVidia graphics drivers from "X-Swat" ppa?

You need to run

sudo apt-get install nvidia-304

If you expand the nvidia-graphics-drivers-304 - 304.116-0ubuntu1~xedgers~trusty1 (Newer version available) link on the Launchpad page you see that the nvidia-graphics-drivers-304 is a group which contains the following packages:

nvidia-304

nvidia-304-dev

nvidia-current

nvidia-current-dev


To install OpenJDK Java 7 Runtime, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install openjdk-7-jre

The openjdk-7-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-7-jdk package afterwards. Then you can do

sudo apt-get install icedtea6-plugin


Normally you have a pre-existing device node called ttyS0 on your system. For example, I have:

[romano:/dev] % ls -l /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 oct 14 17:12 /dev/ttyS0

Giving the timestamp, the device is probably created by the udev daemon at boot.

If you do not have a real serial port / modem connected or you do not want to use it, nobody stops you from removing the device node:

rm /dev/ttyS0

(add the necessary sudos around). After that, you can symlink /dev/ttyUSB0 to it.

I think the node will be recreated at next boot; otherwise you can regenerate it (after deleting the symlink) with:

[romano:/dev] % sudo mknod /dev/ttyS0 c 4 64
[romano:/dev] % sudo chown root.dialout /dev/ttyS0
[romano:/dev] % sudo chmod 660 /dev/ttyS0
[romano:/dev] % ls -l /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 oct 15 22:19 /dev/ttyS0


SSH without password only works one time

You should take a look at this answer which describes configuring ssh for your user (editing ~/.ssh/config) and other details.

The steps are:

Generate your ssh key.
Add the Host to your ~/.ssh/config file.
Add your Public (.pub) key to the remote user's ~/.ssh/authorized_keys

This is most easily done with ssh-copy-id command.
ssh is very particular about the permissions of ~/.ssh/ and the files found within.  ssh-copy-id handles everything for you.

Try connecting to the Host:

ssh host
ssh host -vvv # Verbose output for troubleshooting

Are you trying to use ssh-agent because your keys are protected by a password?  I would recommend working on manually connecting without ssh-agent and getting that working.  After you have your key working, you can work on solving any of the ssh-agent-specific issues.

To troubleshoot, be sure to use ssh in a verbose mode, and also monitor (tail -f) the remote server's /var/log/auth.log file.  On newer systems, you may have to use journalctl (journalctl -u sshd | tail -f).

Once you've gotten the key working in general, you can look into ssh-agent documentation, such as this set of setup instructions.  Typically the steps are as follows:

Generate your keys (as you have already done).
Install the keys (as you have already done).
Start ssh-agent

eval ssh-agent
Only once, not each connection or anything.
You can have this happen automatically, depending on when and for which user.

Add your key to ssh-agent:

ssh-add ~/.ssh/private_key

Be sure to look into other ssh-agent configuration options, such as the duration your keys will remain unlocked.

Boiling it down a bit, your problem is most likely one of these:

You say you added ssh-agent starting, and the addition of your id_rsa key (in the past), but now that you've generated a new key, that key will also need to be ssh-add'd.

Check that ssh-agent is actually running on your system if you have problems after adding the key.
ps aux | ssh-agent

You're adding the key to your local file, not the remote user's file.

Think of it like you're adding a password, so you need to add the password on the system which should accept it.
Your remote host is localhost, but this assumes you'll want to be able to work on remote hosts in the future.  However, it still needs to be in the correct $HOME directory for the correct user.

You say it works a single time?  Does it work twice if you try two times in a shorter timeframe, say one minute?  I am trying to understand if your ssh-agent is just set up to lock your key in a shorter timeframe than you've tested.
When appending to the ~/.ssh/authorized_keys file (>>), you initially created the file, and this would be with incorrect permissions.

Do not do the following without securing access, and making backups to any remote files.
If your 'remote host' is localhost, it very likely has files you want to keep, such as your keys, and should be backed up before removal.
Delete the entire remote ~/.ssh/ directory and use ssh-copy-id to properly key your user on the remote host.
This would show up on the remote host's auth.log and specify that the file permissions are incorrect.
If you continue to experience issues after using ssh-copy-id to create the directory and files, post the permissions of ~/.ssh and your generated key files.

After you ssh into the remote host, you lose ssh-agent, unless you have configured ssh-agent, and ssh via ~/.ssh/config to ForwardAgent yes.  If you wish to forward ssh-agent, you'll have to configure it to allow that, and understand the security implications with that decision.  It should also be noted that ForwardAgent may be designed to run on different machines, and it may not be possible to get forwarding working locally because of complications with ssh-agent already running.


As per https://help.ubuntu.com/community/EncryptedFilesystemsOnRemovableStorage (at the very bottom of the page):

  The first time the encrypted filesystem is mounted, the ownership of the root folder of the device will need to be changed to the current user as follows:

sudo chown naaman:naaman /media/disk

  where naaman is the username and the second naaman is the group name

This should not be an issue when using Disk Utility, but it is the first place to try.


I need to delete my Ubuntu partitions on my laptop dual booting windows 10 and Ubuntu

Windows actually cannot identify a linux type partition (ext4/ext3/swap).

Fire up an ubuntu installation iso (Download). You can burn this iso to a cd, or use  Startup disk creator to create a bootable usb.

After launching the iso, hit the windows button (super on linux, command button on Macs) and search for "gparted". click it. (this can also be done by hitting CTRL-ALT-t and typing sudo gparted.)
Be carefull When using gparted! This application can do some real damage to your drive if not used properly.
In gparted, use this button on the top right corner:

to find your drive that has ubuntu on it.
Ubuntu will have an ext4 partition. (Dark blue) Additionally, linux also has something called swap (orange). You may delete that as well.

Don't forget to hit the green check when you wish to apply the changes.

Note:

Your windows partition is called NTFS. Do not delete this partition

You can now go on to resize your windows partition, by right clicking
it.


Changed language to dutch and now my pictuers&documents folder is empty

If you look closely at your home folder, there should be a documents folder for each language. All your files should be in the original "Documents", "Pictures", etc folders. The new ones (those in Dutch language) should be empty.

If you want to keep the new ones (Dutch), just copy the contents of
the English titled folders to the new ones and delete the old.
To revert to English just delete the new, Dutch titled ones and change system language back to English.

In any case, BE CAREFUL to make backup copies of any newly created files that might have been saved to the folders before deleting anything.

A side-note about how to use LibreOffice grammar checking in different languages in the same document: You don't have to modify the system language to use grammar tools for multiple languages on the same document simultaneously. Take a look at the LibreOffice Help, under

Writer help -> languages;setting options

You can specify the properties for grammar rules, thesaurus and spell checking by going to
Tools -> Options -> Language settings -> Writting Aids


Wine slow to start when blocked access to network through iptables

The problem is that Wine needs 127.0.0.1 access. Use these commands:

iptables -A OUTPUT -p all -s localhost -m owner --uid-owner username -j ACCEPT
iptables -A OUTPUT -p all -m owner --uid-owner username -j DROP

You can replace localhost by 127.0.0.1 if you like or need.


Is it possible to change text console (VT, framebuffer) foreground color?

You need to use the option -store to make it stick.


Would like to sample 14.04 before committing to it

Go to your Bios Settings and change to boot from the DVD.
If you don't know how to go to your Bios turn off your computer.After turning on your computer press F2 or F10 or F12(most common).Usually there is a note indicating what button to press to go into your Bios.After you boot from the DVD you will see some options.Choose Try Ubuntu.


Attempting different command with sudo and without

Likely you have a broken version of pip (maybe with missing shared libraries) in /usr/local/bin.

When you use sudo, /usr/local isn't searched because it's not in sudo's secure_path - so the working version in /usr/bin is found instead.


Those packages are available in Ubuntu 16.04 in php7.

Run this:

$ sudo apt install php7.0-odbc php7.0-sybase tdsodbc

While I wouldn't advise it unless you really need it.  You can install php5 on 16.04 with:

$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install php5.6

That should also add the available php5 modules.


The current version of Ubuntu Touch (the Ubuntu operating system for phones and tablets) is a Developer Preview. This tells you two things:

Developer tells us that this version of Ubuntu Touch is meant for developers; the people that will create applications for it.
Preview tells us that it is not "complete", it's just a preview of the features.

Ubuntu Touch Developer Preview does not provide all the features of a traditional phone, and a lot of settings and applications will not work. It is not meant to replace your current Android operating system.

See this page: Ubuntu Wiki - Touch for more information. This page also has links on who to contact if you want technical discussions.
For more information on how to install Ubuntu Touch, see this page: Ubuntu Wiki - Touch Install.
For more information on which devices Ubuntu Touch is currently supported on, see this question: What hardware does Ubuntu Touch support?


What are these packages?

Consider this real life example of what a package is: packages are what UPS delivers on your doorstep: exactly that what you ordered from somewhere packaged neatly collected in 1 box.

An Ubuntu package is exactly that: a collection of items (scripts, libraries, text files, a manifest, license, etc) that enable you to install a piece of software ordered in such a way that the package manager can unpack it and put it into your system.

  Are they like dll files in Windows?

No the equivalent of a DLL would be what we call a library. Those will be inside the package.

  Where are they save in Ubuntu?

In a cached directory. See /var/cache/apt/archives/

  What types of packages are there?

Technically there is just one. We use ".deb" files. Redhat uses ".rpm". Suse uses ".rpm". We can use ".rpm" by converting it into a ".deb" but that is for the more experienced user (I have been using Ubuntu since the beginning and I rather spent 10 more minutes searching for a .deb). There are other methods of installing but a installation files that are zipped (like a .tar file) are not a package.

  How can I find what packages are needed to install an application and where can I find them?

You can use your own Ubuntu software center to search for software based on text. If you are interested in an on-line method where you can also find the debian installation package and all of the source files: ubuntu.packages.com

Mind you: you technically do not need to know what you need to install. The system itself know what to install (including dependencies related to that package you choose).

Edit based on comments:

The intriguing part of this question starts to show. The android SDK is not an Ubuntu package so the common Ubuntu rules do not apply. It is 3rd party software, and it is offered as a general Linux ZIP file. Those can be annoying in that they often only tell you you need other software. And often put those requirements in a text file (a "readme").

Eclipse and Aptana are similar: they require java but do not install it for you. They put a notice with the download though that you need java. It is up to you to install a java version (since there are more than one).


Ubuntu Software Updater selecting problem

sudo apt-get update only searches your current repositories for any new/updated packages. If you actually want to update the packages, you need to run sudo apt-get upgrade.

You didn't provide many details, but I'm going to assume those packages that aren't getting selected have linux-image-generic in their names. If you want to upgrade those, the sudo apt-get dist-upgrade command is what you need to run (after sudo apt-get update of course).

For more information on what the difference between upgrade and dist-upgrade is, I recommend taking a look at this answer.


Frequent Fan use and system slowdown on Ubuntu 16.04

This is very very likely due to your discrete graphics card not using proper drivers. It is powered on always and drawing power and so requiring the fan to run.

Try to turn off your secondary graphics card(other than the Intel one) from the BIOS and see if it's better. If you really need your graphics card to be used, consider installing appropriate drivers.


How to configure 2 bluetooth speakers with 2 bluetooth dongles?

Ok, I have discovered that it is possible and I discovered how:

I installed all bluez (bluez + bluez-*) packages and purged any other application related to bluetooth (blueman, bluewho, etc.). I do not know if this is strictly relevant, but until I didn't do this I couldn't manage to connect to the speakers.

I also installed all the pulseaudio utilities and configured the simultaneous output virtual device.
Connect your 2 dongles. They will get the names hci0 and hci1
You should check that the devices are not blocked with:

rfkill list

If you find any blockage on the bluetooth interfaces (this command will also show your wifi) you need to unblock it (check rfkill man page to proceed).
Check that there are no devices paired to your bluetooth interfaces with:

bt-device -a hci0 -l

bt-device -a hci1 -l

If there are paired devices I preferred to delete all previous pairings before continuing with:

bt-device -a hciX -r XX:XX:XX:XX:XX:XX
Check that your devices can be reached from the dongles by discovering them with:

hcitool -i hci0 scan

hcitool -i hci1 scan
With the previous step you will get the bluetooth mac addresses of the devices (the string that looks like XX:XX:XX:XX:XX:XX). With those numbers you should pair the speakers with (I added a 1 and 2 at the end of the mac addresses to identify the 2 different speakers):

bt-device -a hci0 -c XX:XX:XX:XX:XX:X1

bt-device -a hci1 -c XX:XX:XX:XX:XX:X2
Connect to the speakers for audio with:

bt-audio -a hci0 -c XX:XX:XX:XX:XX:X1

bt-audio -a hci1 -c XX:XX:XX:XX:XX:X2

At this moment you should be able to find the 2 speakers at the PulseAudio Volume Control GUI, there you may play and adjust the latency, volumes, etc.

Extra Information:

Hi, this is a little update for those of you that are reading and up-voting this post.

If you are trying to connect multiple speakers with the idea of a multi-room audio system, Bluetooth might not be the best solution at all. It turns out that the timing on a Bluetooth audio streaming drifts depending on the interference you find between the source and sink, this makes that after some minutes you end up with the music playing at different instants in each one of the speakers. Even if you perfectly adjust the latency (a parameter that allows you to set a delay between sinks), after some minutes the audio will drift notoriously among the different sinks.

As I wanted to set a multi-room audio system, this solution did not really worked out and at the end I was able to find some relatively inexpensive devices that explicitly support multi-room audio over wifi instead of this original cheap idea of using multiple Bluetooth dongles.


how to get gcc/gpp 6 to 9 onto a Xenial system from behind a firewall with apt and gpg?

(development of this solution is partly based on the dialog between N0rbert and me in his initial proposal)

the understanding of the problem evolved to the point where "gpg" access was found as the problematic/dangling operation. the comment of user "nobar" was most helpful for getting the final clue:

gpg: no valid OpenPGP data found.

In this scenario, the message is a cryptic way of telling you that the download failed.

see those topic in full size discussed there: https://stackoverflow.com/questions/21338721/gpg-no-valid-openpgp-data-found

now for doing a work around to solve the issue in the topic right here...

go to http://keyserver.ubuntu.com/ - for each of the missing keys (BA9EF27F / F06FC659) do:

enter each missing key with a "0x" prefix to the offered input box
select radio button for "Get verbose index of matching keys"
click button "Search for a key"
in the resulting page click the link in the "pub" line and save the target web page to your download folder (i used the short keyId and a *.txt extension; in fact its a HTML file content, but that's a pretty don't care thing)
run the follwing command as root for each of the downloaded files:

apt-key add ***name-of-the-file***

when the above is done two times (for each key once) then run this for checking if it worked:

apt update

the results should contain besides several other lines also something like these lines:

Get:23 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main Sources [13.4 kB]
Get:24 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 Packages [86.8 kB]
Get:25 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main i386 Packages [85.1 kB]
Get:27 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main Translation-en [14.4 kB]
Get:28 http://ppa.launchpad.net/jonathonf/gcc/ubuntu xenial/main Sources [12.1 kB]
Get:29 http://ppa.launchpad.net/jonathonf/gcc/ubuntu xenial/main amd64 Packages [79.7 kB]
Get:30 http://ppa.launchpad.net/jonathonf/gcc/ubuntu xenial/main i386 Packages [78.4 kB]
Get:31 http://ppa.launchpad.net/jonathonf/gcc/ubuntu xenial/main Translation-en [15.7 kB]

the final operation is about installing the extra gcc versions of your choice:

apt install gcc-6 g++-6
apt install gcc-7 g++-7
apt install gcc-8 g++-8
apt install gcc-9 g++-9

This finally succeeded for me. All items were obtained from  http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu in the amd64 repository version. I suppose i need to swap the lines in the sources.list file if i ever want to set a higher priority on the other PPA.

Checking the version of the installed gcc binaries returns as of now this texts:

# gcc-6 --version
gcc-6 (Ubuntu 6.5.0-2ubuntu1~16.04) 6.5.0 20181026
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# gcc-7 --version
gcc-7 (Ubuntu 7.4.0-1ubuntu1~16.04~ppa1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# gcc-8 --version
gcc-8 (Ubuntu 8.3.0-16ubuntu3~16.04) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# gcc-9 --version
gcc-9 (Ubuntu 9.1.0-2ubuntu2~16.04) 9.1.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Checking the version of the installed g++ binaries returns as of now this texts:

# g++-6 --version
g++-6 (Ubuntu 6.5.0-2ubuntu1~16.04) 6.5.0 20181026
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# g++-7 --version
g++-7 (Ubuntu 7.4.0-1ubuntu1~16.04~ppa1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# g++-8 --version
g++-8 (Ubuntu 8.3.0-16ubuntu3~16.04) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# g++-9 --version
g++-9 (Ubuntu 9.1.0-2ubuntu2~16.04) 9.1.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Update:
These command (as of now) evidently uses the Jonathon PPA:

# apt install clang

At present the command results in this versions:

$ clang --version
clang version 3.8.0-2ubuntu3~trusty5 (tags/RELEASE_380/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

# clang++ --version
clang version 3.8.0-2ubuntu3~trusty5 (tags/RELEASE_380/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin


Swap some space from one partition to other

You cannot resize partitions while they are in use, i.e., mounted. The easiest way to repartition is to run an Ubuntu session from the live USB or DVD and do the partitioning from there. In a live session, none of your internal hard drives are mounted by default, and gparted is directly available from a live session.

Still, repartitioning is not trivial. If partitions need to be moved, it can become a lengthy process and things may go wrong. It would be much easier and faster to 1) ensure that your backup is up to date and 2) reinstall the operating system, ensuring that this time your foresee some more space for the root partition. Reinstalling Ubuntu takes between 15 minutes and an hour depending on how recent your system is. Then, there is the time you need to put your data back. Moving a large partition, in contrast, can take several hours. If that does not finish successfully, you are facing a reinstall anyway.


Actually FTP has quite an efficient data throughput rate once it gets going. The overhead that slows things down is with the getting a file downloading in the first place. That's not to say that there isn't a problem with Samba here. It should be performing nearly identically.

To be honest, I don't have much of a clue where you should start trying to fix this.

Ideally you'd be able to drop another computer in there with a reference install of Samba (eg Windows) and test that as both a client and server against the Ubuntu machines. Then you'd know which machine was the problem, if it was just one direction that was the problem and then you'd be able to report bugs based on this and/or find a workaround for the interim.

A while back I saw something about certain network hardware glitching under Samba. It was both switches and network adapters but I can't for the life of me find anything about it. It was probably such an edge case that it's not worth considering.

How about we sidestep Samba? FTP might not work but what about NFS? It probably has the highest transfer speeds out of the lot (in my experience) and it should handle rsync fine.

You could also look at FUSE-mounting the FTP server so rsync can bully it.


How do I enable developer mode on Ubuntu phones?

This is done from System Settings.

Open System Settings, About this Phone, Developer Mode.

The adb service will be enabled if 'developer mode' is selected. Note that you must have some sort of lock screen security enabled (pin or password), and 'Developer mode' will be greyed out if that's not the case.

The 'Lock Security' menu there can be used to turn on a pin or password.


14.04 Dpkg Found kernel: /memtest86+.bin issue (freeze during update-grub)

This problem can happen in the case of Hyper-V virtualization (Happened to me today).

In this case the answer is to disable OS-probbing in grub by opening the configuration file :

sudo nano /etc/default/grub

And adding the line :

GRUB_DISABLE_OS_PROBER=true

After saving your changes to /etc/default/grub, rebuild grub (running on Windows 10 Hyper-V with Ubuntu 15.04 VM):

sudo update-grub

and then apt-get update or whatev:

sudo apt-get update


Screen crazily flashing after custom resolution

After many tries, fglrx won't work (give me no display output).
Until I changed to Ubuntu 16.04 beta, default driver finally works on 1080p output.


14.04 - DUC doesn't update correctly the IP with VPN at startup

So, I've learned that OpenVPN provides a way to start a script after the tunnel is created. For that, in my file /etc/openvpn/toto.conf, I added the line

# run /etc/openvpn/titi.sh when the connection is set up
up /etc/openvpn/titi.sh

Note that the parameter script-security in the conf file must be correctly set (at least script-security 2, see man of openvpn).

Here is the content of my script titi.sh :

#!/bin/bash
(sleep 60 && ddclient -daemon=0 -debug -verbose -noquiet -force >> launch_dd.log) &

First script didn't have the sleep 60, but strangely when the script was called and ddclient launched, my IP was still my ISP IP and not the VPN IP, even if it was launched with the OpenVPN up parameter. That's maybe why it was not working in the first place.

So I simply told the script to wait 60 seconds before launching. Now my IP is set to the VPN IP when I reboot the server.


Selected line's contents aren't readable in GEdit while using dark theme on Ubuntu 20.04

Here's my workaround.
Go to the Preferences menu on Gedit and change the Color Scheme on Fonts & Colors tab:

Check if the text is now comfortably readable even with the presence of the highlighted content on the selected line.


How do I check if my Intel processor is genuine?

This will likely be closed as your question is not really about Ubuntu.

You would probably need to remove the CPU, hard to know if any software options will be reliable.

You can cat /proc/cpuinfo and you should see vendor_id       : GenuineIntel You can try https://downloadcenter.intel.com/download/7838/Intel-Processor-Identification-Utility-Windows-Version

If you do not have windows, try inext - http://i-nex.linux.pl/

See also https://launchpad.net/i-nex

http://www.omgubuntu.co.uk/2014/02/nex-cpu-z-hardware-stat-tool-linux

See also https://superuser.com/questions/635565/fake-intel-cpus

To inspect your chip see http://fmad.io/blog-anatomy-intel-cpu-scam.html .


How do I get HDMI output working on a Dell XPS 15 L502x?

I have the same problem (XPS 15 L501). My shortcut (because it is not a solution!) was to use the mini display port output. With it, you can use the second monitor (projector, etc.).
I tried also Bumblebee and Ironhide, but the problem is still there.


Ubuntu (12.04 LTS) and SteelSeries Apex Gaming Keyboard

This is the answer I gave at a similar question ( Get macro keys on steelseries apex (keybord) to work ):

"I have one and I wasn't able to find anything useful to use them nor change the colors. But I have the skills to develop a linux app to control the keyboard. The only thing I need is the information regarding the comunication method and the protocol specs, and I have already contacted SteelSeries support asking for that. I'll let you know if there are any news."


Yes, having Landscape manage itself works just fine!


Virtual box running ubuntu is not scaling

If you go to Tools > Preferences > Display, is "Maximum Screen Size" set to "None"? This on the VirtualBox interface and not within the guest window.
After making sure that "Maximum Screen Size" is set to "None" it is best go to the VM window and click View > Virtual Screen 1, and use the "auto scaled %200" option.
Hope that Helps!


zip command keeps including the entire parent directory structure

One way to accomplish this would be to cd into the db directory, then run your zip command using a relative path, like this:

cd /mnt/c/data/db/
zip -r /home/chansen/db-backup/backup.zip ./*


Mount and explore iPhone files in Kubuntu like in Ubuntu Unity [idevicepair]

managed to solve it ..
first install idevicepair

sudo apt-get install idevicepair

also install ifuse
(alternative to afc protocols that works - or full compatible with it - on gnome and GVFS )

sudo apt-get install ifuse

now pair the device and allow access from the device

sudo idevicepair pair

you will get error msg on the terminal at first and the mobile will show a prompt dialog that requires authentication so allow the device to connect and try pairing again using the following command
 sudo idevicepair pair

it should work now.
use this command to verfy handshaking

 sudo idevicepair validate

now you are almost done but the final step is to mount the device using ifuse

sudo mkdir /mnt/foo/ && ifuse /mnt/foo/

now you are ready to navigate to the the mounted directory using dolphin but remember to run dolphin as root or you wont be able to see the mounted dir. The problem now that you can not use chown or chmod to edit ownership so that you can navigate to the dir as normal user


This problem occurs after booting into a different OS than previously.

Just put the computer to sleep and wake it up, and the problem is solved, the sound comes back. Works both ways round for Windows and Ubuntu

However this problem seems to be fixed in the new ubuntu 18.04


When I launch Ubuntu it just has a purple screen?

This fooled me the first time I installed WUBI and it frustrated me for a week. After the screen goes black get a flashlight and shine it an angle at the center of the screen. If you can see the Ubuntu logo it just means that your computer's brightness is low. I tried nomodeset, grub editing, external displays and when I got frustrated I banged the keyboard accidentally hitting the brightness and it worked.


how to not install boot-repair in live every time?

Glad you asked!  The USUAL solution is to download and burn a BOOT REPAIR cd.  I have several and have used several flavors.  I have two favorites for different reasons, but by far my most favorite is naturally the one which successfully boots the most computers.  I posted a link to it on this site just a few days ago.  Let's see if I can find it again.

http://sourceforge.net/p/boot-repair-cd/home/Home/


Bash script help, check permission 755 on all files in a folder

The following script should do what you want: it runs in the directory youre calling it:

#!/bin/bash
echo "###START###"
for filename in *
do
    if [ $(stat -c "%a" "$filename") == "755" ]
    then
        echo "Files with 755 permission: $filename"
    else
        echo "REMOVING: $filename"
        rm "$filename"
    fi
done
echo "###DONE###"


Is there any system restore in Ubuntu like Windows?

You can get the list of recently installed packages that were installed via apt-get or Software Center by following command:

cat /var/log/dpkg.log | grep "\ install\ "

you can see all the packages from it and then remove them.


error: no such device grub rescue Windows 7

If you don't have a Windows repair/recovery disc (which can be used to fix the bootloader), and don't have a copy of Ubuntu or some other Linux installed elsewhere (which can also be used to fix the bootloader), you may boot from a LiveCD of Ubuntu and then move the bootloader to Windows:

sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

To check which disk (e.g. /dev/sda) contains your Windows partition, use the Disks application available on the LiveCD.


WUBI install not completing on Dell Latitude D600 using 10.04 and 10.10

I believe this was all related to what turned out to be a bad hard disk that showed up in another problem Gparted can't create ext3 or ext4 partitions


How to tell if my system is "multiarch"?

dpkg supports installing packages for other non-native architectures using a system called multiarch. It was introduced in Ubuntu 11.04, so any later release should have it.

You can use dpkg --print-foreign-architectures command to find the added foreign architectures on multiarch e.g.:

% dpkg --print-foreign-architectures
i386

To find the native architecture, use dpkg --print-architecture e.g.:

% dpkg --print-architecture
amd64

Alternately, you can also read the file /var/lib/dpkg/arch to get a list of added architectures (first one is native, although you can remove it):

% cat /var/lib/dpkg/arch
amd64
i386


Applications (or services etc.) can have a state. That's basically the condition the application is in, typically because of what happened to it in the past.
You can distinguish between stateful and stateless applications. In a stateless application, the task at hand can be done without considering the current state of the application. If the task is interrupted, it can just be tried again.
Let's imagine a simple web server. Your browser requests the file welcome.html, and the server delivers that file. To perform this task, the server doesn't need to consider who requested which files before, who you are, what you did before etc. If the web server gets shut down in the middle of sending you the file, you can just request the file again after the server is up again.
On the other hand, with a stateful the past matters, so to speak. The outcome of a task depends on the state the application is in when the task was started. If the task is interrupted, the state needs to be stored in some fashion and maybe recreated before the next try.
Let's imagine a web server that's a bit more sophisticated: Before you can request a file, you have to log in. If you're not logged in, the server won't deliver welcome.html to you. So when your browser requests the file, the server needs to consider the past. Did you log in, or did you not? If so, which user account are you logged in as? And so forth. If the web server gets shut down in the middle of sending you the file, it needs to recreate that state, that outcome of the past, before the next try.
If an application is inside a container, similar considerations apply to the container. Let's say you containerize the first, the simple web server. In this case, you don't have to think about where to store the application's state, how to include the state in a backup, how to restore the state when a backup is restored, how to transfer the state when you transfer the container to a different host etc. You might say, that container is stateless itself.
If you containerize the second, more sophisticated web server, you need to consider its state. You need to consider all those questions about storing, backing up, restoring, transfering, ... the state of whatever is in the container. You might say, that container is stateful itself.
So to put it shortly, a stateful container contains something (an application, a service, ...) that's stateful. The container and operations on the container need to take the state into consideration. A stateless container contains something that's stateless. The container and operations on the container don't need to take the state into consideration.


Script to add users to a group and system

Using vim to add users/groups (by editing /etc/passwd,/etc/group,/etc/shadow,/etc/gshadow, ...) is The Really Hard Way.

I call it "Really Hard" for two reasons.

First, we already have tools to do that (and they do ALL the steps, and are upgraded as needed). Read man useradd and man adduser. One can use these tools to create a userid with an expired, empty password. This leads to NO password for initial login, and mandatory user password selection.

Second, using vim in scripts is major overkill. Read man ed for a simple editor that will probably serve your needs.


How to build SDL2 from source and making a debian package and install the debian package?

You have to start with sudo apt-get build-dep libsdl2-2.0-0 to get build-dependencies of current version. Then install newer one with checkinstall.
To fix the error during compilation use sudo mkdir -p /usr/local/lib/cmake .


It actually is asking for credentials and Windows is supplying them each time it accesses the share but it is done without user intervention. It's a Windows thing.

When you first accessed the share from Windows you were asked for credentials. When Windows successfully gained access it will "remember forever" those credentials. The next time it accesses the share it will be asked and supply those remembered credentials in the background.

You can prove this to yourself if you are interested. Disable the Windows credentials from the samba password database:

sudo smbpasswd -d windows-user-name

At the next session when you try to access the share access will be denied because the "remembered" credentials on the Windows system no longer exists on the Linux system.

To restore the credentials:

sudo smbpassed -e windows-user-name


Installing the latest Node.js / MongoDB?

The packages in the Advanced Packaging Tool (AptGet) do not work always or are outdated at times on Ubuntu.  I suggest building Node.js from source and installing the recommended .deb package for Ubuntu provided by MongoDB.

Video Demo:

http://youtu.be/SWztoBP7RQQ

Requirements

These are needed for building and running.

sudo apt-get install build-essential lamp-server^

Build & Install Node.js

Node.js can easily be installed from its source package located on the front page of nodejs.org.  It allows you to build the most compatible package for install.

Note: I recommend not installing the Linux Binaries for your system architecture (ie. x32, x64) as they are missing components you may require such as NPM.

You can right click on the INSTALL button to copy the source package link and do the following also in your terminal console.(Example shows how to install current version as of 07-31-2014)

wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz

Decompress and enter the directory.

tar -xvzf node-v0.10.30.tar.gz
cd node-v0.10.30

Configure the make file for your machine then build and install as a root user.

./configure
make
sudo make install

Test to make sure it was installed.

node -v

You have also installed the Node Package Manager.  Type the following to see items that were installed with version numbers:

npm version

Install Recommended MongoDB Package

MongoDB documentation suggest installing the .deb package provided by them for the latest versions as long as you are using running and Ubuntu over 9.10 "Karmic". Doc: Installing on Ubuntu

Acquire key:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

Acquire source list:

echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list

Update package manager and install:

sudo apt-get update && sudo apt-get install mongodb-org

Test if MongoDB shell runs:

mongo

Press Ctrl+C to exit.

Note: mongo-10gen can be updated and upgraded from AptGet. You do not need to perform the install action again unless you remove it.


Cannot install GNOME extensions even resetting configuration

To be able to install gnome-shell extensions via http://extension.gnome.org you need both the browser plugin, and the native connector.

For firefox, download the browser plugin from here: https://addons.mozilla.org/en-US/firefox/addon/gnome-shell-integration/

And, as mentioned in the "About this Add-on" there, install the native connector:

sudo add-apt-repository ppa:ne0sight/chrome-gnome-shell
sudo apt-get update
sudo apt-get install chrome-gnome-shell


What Is the Best UBUNTU script for installing LAMP

You can install the LAMP stak and phpmyadmin in a single command using the apt-get tasksel mode (don't forget the final ^):

sudo apt-get install lamp-server^ phpmyadmin


Disabling thunderbolt security on Dell TB16 through linux (Ubuntu 16.04)

You don't need to do disable security on Ubuntu 18.04, and the 9370, 9570 and 9575 all include new enough thunderbolt firmware out of the box.

On any OS with bolt and gnome-shell version 3.28 (or the boltd integration back ported) you don't need to do any of this: Thunderbolt devices work out of the box. Ubuntu 18.04.1 Gnome Shell ships with this boltd integration.

So for those on the ancient versions of ubuntu the recommended way at the moment is to use boltctl from https://packages.ubuntu.com/bionic/bolt

first run:

$ boltctl list

 ● Thunderbolt Cable
   ├─ type:          peripheral
   ├─ vendor:        Dell
   ├─ uuid:          <there will be a UUID here I will call it cable-uuid>
   ├─ status:        authorized
   │  ├─ authorized: Mon 11 Jun 2018 11:45:37 UTC
   │  └─ connected:  Mon 11 Jun 2018 11:45:37 UTC
   └─ stored:        yes
      ├─ when:       Mon 11 Jun 2018 11:39:20 UTC
      ├─ policy:     auto
      └─ key:        no

 ● Thunderbolt Dock
   ├─ type:          peripheral
   ├─ vendor:        Dell
   ├─ uuid:           <there will be a UUID here I will call it dock-uuid>
   ├─ status:        authorized
   │  ├─ authorized: Mon 11 Jun 2018 11:45:42 UTC
   │  └─ connected:  Mon 11 Jun 2018 11:45:42 UTC
   └─ stored:        yes
      ├─ when:       Mon 11 Jun 2018 11:39:45 UTC
      ├─ policy:     auto
      └─ key:        no

Then run:

boltctl enroll <cable-uuid>
boltctl enroll <dock-uuid>

The first time I ran enroll for the <dock-uuid> I got: failed to authorize device: write error: Invalid argument So you may need to run it twice or more.

Note that for me boltd 0.3 won't authorize any devices enrolled until after first login. However you can grab bolt 0.4 from the proposed repo (It's likely to be available in the main repos soon though), see also:

https://bugs.launchpad.net/ubuntu/+source/bolt/+bug/1778020


It's best not to reboot your system until after the initial RAID sync has finished, but you should be able to create your LVM physical volumes (pvcreate /dev/md0 etc). If you've already done this and they're not showing up, it's possible that on restart the system did not auto-start your RAID due to it being out of sync. If you RAID is running correctly, you should be able to manually restart your LVM with sudo vgchange -a y at which point the LVs should be visible again with sudo lvs.


Ubuntu terminal shortcuts not working (and no menu bar)

For gnome-terminal:
Go to prefrences > shortcuts

Mark the checkbox enable shortcuts. Make sure the New Tab action has the shortcut key that you want to use.


Is it possible to replace 14.04 LTS with 16.04 LTS remotely?

It is possible. do-release-upgrade -m server. You can use screen, so you can connect to the running process, when you have a dc


If they are simple enough you can install "Dia" a diagram editor.

sudo apt-get install dia

At least for me was great in simple stuff.


Multiple devices with equal vendor id and device id in Qemu/LibVirt

Qemu itself supports the passthrough of devices by physical ports. You can ind out which address the second port on your front panel has and tell qemu to forward every device without touching the driver to the VM.
But this function is not supported in libvirt until now. It is also not supported as a qemu-consol command from virsh.

An Other possibility would be to pass a PCI-Card to the VM, where the device is attached to. So transferring two PCI Cards to the machine will make a difference. Most of the time it is impossible to transfer the control of on motherboards monted USB-Devices. They are all in one PCI-Group together with other mandatory devices for the Host system. Only devices of a group can be transferred together.


How do I obtain and install larger mouse pointers - I am slightly visually impaired

If you prefer GUI you can use unity-tweak-tool.

How to:

Open Ubuntu Software Center, search for unity-tweak-tool and install it.

Open unity-tweak-tool. Under Appearance, click on Cursor:

Under Preferences enable ☑ Use large cursors:

Logout and log back in.

Custom Cursor Themes:

If you don't like the default cursors you can download a nice, large cursor theme from here.

Extract the downloaded archive to .icons directory in your home, create .icons directory if it doesn't already exist.

Open unity-tweak-too and go to cursor settings as described earlier and select Large mouse cursors:

Logout and log back in.


I think this is what you are after :)

sudo apt-get remove --purge samba

Hope this helps.


Problem with installing graphic driver on SIS 672

To install correct VGA driver

you need to do some simple things if your using ubuntu 12.10

first go to software center and type drivers.
in there find additional drivers. and install it.
after installation complete open it. it will search drivers for your VGA card. warning! do not close it. because additional drivers not working properly in 12.10 so once you close you cannot find it anywhere. then you must remove it and re-install it again through software center.
install all available VGA drivers for your machine.
after installation complete it will ask you to restart. you done!.
after restart go to Settings >  Details there you can see your VGA name and type.


Can't access some websites using Ubuntu 13.10

Check your router's hardware firewall for block-site rules; you can access it by visiting the router's ip from your browser in the form 192.168.x.x, try:

192.168.0.1
192.168.1.1
192.168.1.25x etc.

Write ifconfig (ENTER) in a console (xterm is fine) and watch the form of the inet address camp, you will need to edit only the last digits to find your router's ip.
You will need to know the password and the user (ex. admin admin, password password, admin password ecc. if you left the default). If you don't know there is a list online, google it...
You must own the router. ;-)
If there is no firewall block - strange - run form a console sudo nano /etc/hosts and remove any line with wordpress inside. Do not edit other lines, it can cause software problems.
A diagnostic action is running tracepath wordpress.com to discover where is the block, if it is a total block and not an http-only block.
Let us know by commenting under here, you can be useful to the community.Nice evening, I will help you if you need more help.
EDIT for Adame: I must use a solution valid for all users, so you will need patience, network problems are hard to solve.
Execute in a terminal:

echo "127.0.2.X HOSTNAME" >> toadd.txt
echo "127.0.0.1 localhost" >> toadd.txt

(replace hostname with the output of the hostname command and X with the end of your current IP, you can see it in ifconfig)
then edit /etc/hosts as root (use sudo YOUREDITORNAME /etc/hosts and add on top the content of toadd.txt).
Delete toadd.txt :)
Now the first problem should be fixed.
Check if your hosts file is like this:

127.0.0.1 localhost
Y.O.U.R.I.P   YOURHOSTNAME

and a comment line.
Other argument.
The ping isn't a valid check because a modern and well configured server will discard your pings to avoid ping bounce network attacks. For example my ping fails on wordpress.ICMP Ping is good only for well known servers!
But, tracepath shows that no intermediate server receives your ping, and this is strange, because after your router the ping gets lost but continues to "hop"... are you using the network of your factory? If it's it, you can be behind a blocking intermediate server and you will need to use a proxy.
If this isn't you case, let's continue by ignoring tracepath (the path changes always, but your network path appears to be faulty).
Do a next step and try to do from a terminal wget wordpress.com and after that ls -lh: if you see an index file in html format which is greater than 10kb (may change in future) the problem is in your web browser (bad extensions or misconfiguration), if you don't, try other two times.
If you get a good index file (try to open it with a browser by double-clicking it) and you can see the webpage, simply disable ALL extensions in your browser and after that reinstall it.
If you can't get a good index file the problem is in your network.
Here the hard procedure if you didn't solve:

Disable any proxy set in your browser and remove any instance of Tor
and Privoxy, or of other distributed anonymous network systems.
Reinstall them later if they aren't the problem, they are good for
your privacy.
If it doesn't work change the DNS in your router (not in your PC) to Google DNS (in Google we trust & we find the DNS ip) and try. SUGGESTION: leave the Google DNS, they are always good.
If it doesn't work let's do a last check you can try to use a transparent proxy (anonim are slow) to re-route your traffic to wordpress: if it goes a server in the newtork hop path is faulty or your ip range is banned. If it doesn't function you may have a block inside your network.
It's the best I can do with the information you left, good luck. Let me know. :)
PS: a suggestion, for a proxy list search on google and pick a proxy with LOW ping and HIGH uptime.


How to allow all people to access mysql database?

By reading your comments, you want to access from another computer. This can be done the following way:

In /etc/mysql/my.cnf

uncomment bind-address

# bind-address 127.0.0.1

Restart mysql:

sudo /etc/init.d/mysql restart

Now you can add a new user (for example with phpmyadmin) an restrict the connection to the ip of the other computer.

You can add a user without IP-Restriction but this is highly insecure!


If you enter localhost:631 (just that and nothing else) in your browser you should come to the CUPS interface, from which you can manage your printer. The tabs labelled administration and printers should allow you to do most things such as checking the status of a printer, or even adding a printer if it isn't there. Within the printers tab, you can click on a printer there and it will give you a lot of maintenance and other administration options.


Dual boot access windows partition through virtual box

It is indeed possible with KVM (reproduced below). You will need an UEFI implementation which you can download and there are a bunch of options you need to set for qemu. The following should work on Intel chipsets with sound. You probably want to test without sound and networking first.

WARNING: do not attempt to boot your host OS or its drive in the VM or bad things will happen!

sudo qemu-system-x86_64 --enable-kvm -cpu host -m 2048 -smp 3 -mem-path /dev/hugepages \
-display sdl -vga qxl \
-device qemu-xhci,id=xhci \
-device virtio-tablet,wheel-axis=true \
-soundhw hda \
-netdev user,id=vmnic,smb=/temp \
-device virtio-net,netdev=vmnic \
-drive file=/usr/share/ovmf/x64/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on \
-drive file=$HOME/.config/qemu-windows.nvram,if=pflash,format=raw,unit=1 \
-drive file=/dev/sdb,index=0,media=disk,driver=raw \
-cdrom /opt/UefiShell.iso

  For now I use sudo, because QEMU needs to access raw partitions from
  /dev/sdb. The other, better way would be assigning a group to
  /dev/sdb, setting up proper group permissions and adding me to that
  group.

  -m 2048 -smp 3 says to allocate 2GB of RAM for the guest and use 3 CPU cores

  -mem-path /dev/hugepages is better described in Arch wiki.

  -display sdl -vga qxl Use SDL for rendering and window management in the host and QXL GPU device in the guest (there are QXL drivers for
  Windows).

  -device qemu-xhci,id=xhci Enable USB3 support by emulating an XHCI controller

  -device virtio-tablet,wheel-axis=true Emulate a tablet pointing device with mouse scroll support

  -soundhw hda Emulate Intel HD Audio

  netdev stuff Is for setting up network interface

  -drive file=/usr/share/ovmf/x64/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on
  This is a very important part. It loads OVMF UEFI firmware read-only
  as the first Flash device. This firmware implements a UEFI bios and
  allows running UEFI Shell or booting .efi bootloader for Windows
  (bootmgfw.efi). This OVMF can be downloaded directly from the OVMF
  project repo or if you are using Arch Linux, just install ovmf
  package.

  -drive file=$HOME/.config/qemu-windows.nvram,if=pflash,format=raw,unit=1 this
  loads a read-write NVRam flash image as the second virtual flash chip.
  OVMF firmware uses this to store UEFI variables, .efi boot order, etc.
  The default image can be copied from the OVMF setup (at
  /usr/share/ovmf/x64/OVMF_VARS.fd in ovmf Arch linux package). It must
  be a writable copy.

  -drive file=/dev/sdb,index=0,media=disk,driver=raw Attaches my raw sdb block device to the virtual machine. That is used as a HDD for the
  guest, it has Windows pre-installed there together with EFI partition.

  -cdrom /opt/UefiShell.iso UEFI shell iso as a CDROM. Before OVMF nvram is properly configured to boot Windows by default, this will result in
  booting into the EFI shell which allows to run .efi executables
  manually. Windows can be run by just navigating into the EFI partition
  and running the Windows efi loader –
  blkX:\EFI\Microsoft\Boot\bootmgfw.efi.

  I don’t know how to force Windows to write UEFI boot order. There
  doesn’t seem to be a tool like efibootmgr on Windows. :D Windows would
  set the UEFI boot order up randomly during some Windows Updates
  (mostly when you don’t want it to touch your EFI setup). It eventually
  set the EFI config up for me itself quite quickly. But if it fails,
  you can try pressing ESC during TianoCore EFI boot to get to boot
  menu. Or you can always boot Linux using the -cdrom command and use
  efibootmgr to force the OVMF to boot the Windows loader entry for this
  virtual machine by default. Usage of the efibootmgr command is out of
  scope of this article and can be found in many online resources
  elsewhere.


Cannot get "alias" command to work at al

You can also edit your ~/.tcshrc file when using tcsh instead of bash to set a persistent alias:

echo 'alias ge "gedit &"' | tee -a ~/.tcshrc

Then, source the file and ge should open gedit:

source ~/.tcshrc


What GUI file managers show most details during file transfer?

Notifications in KDE show all of this information when transferring files with Dolphin.

The same notifications also show this information in other contexts, like when you are downloading files from Firefox.
If you install a whole bunch of different file managers on your existing system, you might break things in a way that could be difficult to reverse.
Instead of that, why don't you try out some of the official flavors of Ubuntu to determine which flavor has the best features for you?
You can "Try Ubuntu" from bootable installation media without having to affect your installed system.


Blurry screen during and after install process

I had the same issue with my GTX 750 Ti. I was able to resolve it with the following steps:

Add nomodeset to bootloader (How do I set 'nomodeset' after I've already installed Ubuntu?)
Run the following commands in terminal:

sudo add-apt-repository -y ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346

Restart the computer
Remove the repository after restart (Thanks @Pilot6 ):

sudo add-apt-repository -r ppa:xorg-edgers/ppa

Step #1 is just to get you into the terminal since everything on the OS is blurry otherwise.


add path permenantly on ubuntu for postgresql user

Add your path change to .bashrc perhaps
PATH="$PATH:$HOME/.local/bin"

Notice there is no export or other fancy stuff in the line


Project to have virtual box guest support by default

I don't know where you get that idea, but the guest additions, since version 4.0.0, are released under the GPL2 license.

You can check it in the source code if your are still in doubt. See this file for an example. Feel free to check others.

So don't worry about redistributing them with the rest of VirtualBox.

Another complete different matter is the Extension Pack, that contains things like usb2 support. This is not open source software and can't be distributed.


Having Monday as the first day of the week

cal can not change the start of the week.

You could use ncal which respects those locale settings. If you do not like the layout use ncal -C to switch to the classical cal layout.


Wireless Networks Not getting Detected Ubuntu 12.04

according to the clues you provided here, it looks like a regression to the kernel.

However, the kernel (3.5 Quantal) you're using has reached EOL (End-Of-Life).

I will suggest you to upgrade to the new HWE (Hardware Enablement Stack) support, which is kernel 3.13 Trusty, by following these steps:

Search for "update" in your dash

Open the Update Manager and select the "Install" button here (You could upgrade to 14.04.1 as you wish.)

If you have your system upgraded to 3.13 kernel, and it's still not working...
This issue should be reported as a bug, please use ubuntu-bug linux command in your terminal to open a bug report on Launchpad.

For more detail regrading filing bugs, you could follow this article: ReportingBugs, or this guide: how-do-i-report-a-bug

Cheers.


Use oibaf PPA for the latest open source drivers instead; fglrx has a lot of issues for gaming in general. Open source drivers will give you significantly better performance and fix bugs.

sudo add-apt-repository -y ppa:oibaf/graphics-drivers; sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y; sudo apt-get purge fglrx; sudo rm /etc/X11/xorg.conf

If you were using xorg-edgers for the latest PPA, do remove that first:

sudo apt-get install ppa-purge; sudo ppa-purge ppa:xorg-edgers/ppa -y


dpkg dependencies for a custom Ubuntu CD

apt-cache depends --recurse <pkg> will show all dependencies (with dependencies of dependencies, dependencies of dependencies of dependencies, etc). Then you may download them all and put to your CD.


The problem is that with the new dhcp3 server that the config files are done differently than on older installations.

Now the installation is done under isc-dhcp-server the location of the dhcpd.conf file and interfaces has changed along with the mechanism to start stop the service.

The dhcpd.conf file has moved from /etc/dhcp3/dhcpd.conf to /etc/dhcp/dhcpd.conf.
The interface definition has also moved--from /etc/default/dhcp3-server to /etc/default/isc-dhcp-server.

The fields are basically the same but if you have been modifying the original files you will get the error you see above.  Make the mods to these files and you should be OK to go.

Also no best to start and stop using sudo service isc-dhcp-server start/stop/restart.

I was suffering with all these problems on Ubuntu 12.04 but this resolved all the issues and now it's working. I hope this helps you.


How to make keys layout change key functions on Win key

That ought to be the same as the answer of the other question you linked to, except that you should have

include "level3(lwin_switch)"

instead of

include "level3(ralt_switch)"


Can't use WiFi on Ubuntu Server 14.04 even though it appears to be connected

Please amend your /etc/network/interfaces file to:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-ssid MYWIFINAME
wpa-psk WIFIKEY

Where WIFIKEY is the actual key in clear text. Restart the interface:

sudo ifdown wlan0 && sudo ifup -v wlan0

Test:

ping -c3 www.ubuntu.com

The -v for verbose in the ifup command should produce sufficient output to diagnose why you didn't connect. As it may be lengthy, please post it here and give us the link: http://paste.ubuntu.com.


Ubuntu 12.04 --- grub-efi-amd64-signed failed to install into /target/

Hey Ramji Had the exact same problem.
What fixed my problem was that i went through the steps again and made sure I was connected to the Internet the second time.
go through the process again (don't partition again because the hard drive is still partitioned ) but this time chose the option to format the partitions so that you erase the information that was loaded before the installation failed.
look at the comments here
Why 12.04 Fails to install grub-efi to /target/?
if you are still having problems follow this instructions
http://www.everydaylinuxuser.com/2013/09/install-ubuntu-linux-alongside-windows.html


How do I non-interactively provision ubuntu virtual machines using `libvirt`?

I think you are looking for virt-builder.

Virt-builder starts with cleanly installed OS templates for a variety of distributions and allows you to customize them by setting a root password, copying in files, and more.

Virt-builder is in the libguestfs-tools package.

sudo apt install libguestfs-tools

These basic commands should get you started; you can find more advanced stuff in the man page.

List the available VM templates:

virt-builder --list

Create a fresh Ubuntu 18.04 LTS image:

virt-builder ubuntu-18.04

By default, virt-builder creates no user accounts, and enables the root account with a random password, which is printed on your terminal when the VM image is created. As mentioned before, you can change this with various command options.

(Note that with respect to Ubuntu, virt-builder only supports LTS releases of Ubuntu.)


Listbox with tkinter Treeview, how to avoid empty rows at the end

Those aren't empty lines, it's the height of the treeview widget.

I never worked with tkinter before, but looking at the docs I found the height option:

height  Specifies the number of rows which should be visible. Note: the requested width is determined from the sum of the column widths.

So you can specify the treeview height yourself, like this:

    self.tree = ttk.Treeview(columns=lb_header, show="headings", height=2)

Or to match the number of items:

    self.tree = ttk.Treeview(columns=lb_header, show="headings", height=len(lb_list))

Although I wouldn't recommend this as it will grow out of screen when a lot of items are added.


Quickly, setup.py, long_description - how to make them generate a multi-paragraph description in the debian control file?

The descriptions you see in the software center, are not from the setup.py (or other similar files), for the application. Those are defined in the packaging itself, which is on the server.

In the debian/control file, you need to separate each paragraph with a line which contains only a period at the beginning, and every line except the leading one-line summary, must have a single space at the beginning.

You should use the standard multi-line string formatting of Python for the long_description in setup.py, and should simply have a blank line between paragraphs there. If you're using multiple string literals, rather than the triple-quote literals, you should have an empty string for the blank lines to separate the paragraphs.


Resize 2 partitions located after the windows partition

You must do it in stages:

Back up all your important data! The sort of operations you're suggesting carry a small risk of catastrophic damage to your data. Thus, although the risk is small, the consequences should you encounter problems are big enough that you should not fail to back up your data!
Shrink /dev/sda3 from the end, leaving a gap between it and /dev/sda6.
Move /dev/sda6 (the swap partition) to the left, thus moving the gap between it and /dev/sda7.
Move and resize /dev/sda7 (your / partition) so that there's no gap between it and /dev/sda6 and so that it's the desired size. Behind the scenes, this is actually two operations, but GParted lets you enter it as one.
Move and resize /dev/sda8 (your /home partition) so that it fills the remaining freed space. Again, this is actually two operations, but it can be done as one in GParted.

There are, of course, variants on this procedure. You suggested deleting and re-creating your swap partition, for instance, which is a possibility, but it's likely to be easier to move it.

Note that any operation that involves moving the start of a partition (as in steps 4 and 5, and to a lesser extent even 3) is both risky and time-consuming. Depending on your needs, you might instead consider shrinking your Windows partition and creating a new partition in the freed space. You could then mount the new partition someplace convenient. This will be much faster and safer than moving two data partitions and one swap partition, but the end result will be less convenient.

If you do this sort of thing often, you should look into Logical Volume Management (LVM), which is a way of managing filesystems that's much more flexible than conventional partitions. (In practice, LVM is usually, but not always, implemented on top of conventional partitions.) Converting an existing installation to use LVM is difficult, and LVM has its own learning curve, so switching from what you've got now to LVM is likely to take more effort than your one round of move/resize operations; but you might look into it for future installations, or even to convert now if you expect to be doing more of this sort of thing with your current installation.


Wired network interface randomly goes up

The log entry

дек 04 21:59:12 freetrade NetworkManager[988]: <info>  [1575471552.0030] device (enp0s31f6): state change: unavailable -> disconnected (reason 'c

although incomplete, and considering there are no preceeding warnings, implies (to me) that you have a physically intermittent connection.

Wiggle your network cables, and if anything moves or the network bounces, replace it.


New to script question: 'else' not expected in BASH script

I think you are missing a done before your elif in line 28. There is one done for the for loop, but no done for the while loop.


if wifi is connected but no internet.

on the commmand line type:

sudo iwconfig wlan0 rate 54m

hit enter

try browsing now
it worked like a charm for me

if you want a permanent solution you have to make a script out of it


Slow Ubuntu Boot [ata2: SRST failed (errno=-16)] and [ata2: reset failed, giving up]

Step 1 - Identify ATA2
It's a guess that ATA2 references /dev/sdb. The way to find out for sure is using:
$ ll /sys/block/
total 0
drwxr-xr-x  2 root root 0 Apr 10 16:46 ./
dr-xr-xr-x 13 root root 0 Apr  4 21:05 ../
lrwxrwxrwx  1 root root 0 Apr 10 16:46 loop0 -> ../devices/virtual/block/loop0/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 loop1 -> ../devices/virtual/block/loop1/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 loop2 -> ../devices/virtual/block/loop2/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 loop3 -> ../devices/virtual/block/loop3/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 loop4 -> ../devices/virtual/block/loop4/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 loop5 -> ../devices/virtual/block/loop5/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 loop6 -> ../devices/virtual/block/loop6/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 loop7 -> ../devices/virtual/block/loop7/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 nvme0n1 -> ../devices/pci0000:00/0000:00:1d.0/0000:3e:00.0/nvme/nvme0/nvme0n1/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 sda -> ../devices/pci0000:00/0000:00:17.0/ata2/host1/target1:0:0/1:0:0:0/block/sda/
lrwxrwxrwx  1 root root 0 Apr 10 16:46 sr0 -> ../devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3:1.0/host2/target2:0:0/2:0:0:0/block/sr0/

Ignore the loop1 through loop7 entries.

sda (a hard drive) is on channel ata2
nvme0n1 (an SSD) is on 0000:3e:00.0 (actually hardwired to the CPU @ 40 GB/s)
sr0 is on usb1

So your first step is to discover which devices are on ata2
Step 2 - Check devices
ide devices can be chained with master/slave arrangement and if on ata2 you might need to check their settings whilst removing them one by one to ascertain which is defective.
Someone with same error discovered their DVD/CD drive on ata2 was the culprit and defective: "ata2: link is slow to respond, please be patient" during boot
Another person found a defective SSD was the problem: ata1: link is slow to respond, please be patient (ready=0)
By all means run fsck or whatever drive testing utilities at your disposal too.


Ubuntu 16.04 doesn't recognise Cat B25 phone external drive

It sounds like you believe that the phone identifies itself as a UMS device. I.e. it shows up as a drive on a computer with no specialist driver software.

If that is the case, the next step would be to see if Ubuntu can recognise other UMS drives (like USB flash drives). If it cannot then it means that the USB modules aren't compiled into the kernel, or that FAT32 support isn't in the kernel, or if they are compiled as modules are they loaded?

Typically on my system, UMS drives show up as /dev/sdb[x] or /dev/sdb[y].

Another thing you can do is as root, do a tail -f /var/log/messages, plug in a USB flash drive see what it says. Then unplug it, and then plug in the phone and see what it says.

It might also be worth doing an lspci command to verify that USB controllers are detected on the laptop.

When i plug in my Cat S30 phone into USB under gentoo I get this:

May  1 10:08:15 hades kernel: [11785491.087794] hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0040
May  1 10:08:15 hades kernel: [11785491.087825] ehci-pci 0000:00:1d.7: GetStatus port:6 status 001803 0  ACK POWER sig=j CSC CONNECT
May  1 10:08:15 hades kernel: [11785491.087971] hub 2-0:1.0: port 6, status 0501, change 0001, 480 Mb/s
May  1 10:08:15 hades kernel: [11785491.114085] ehci-pci 0000:00:1d.7: GetStatus port:6 status 001002 0  ACK POWER sig=se0 CSC
May  1 10:08:15 hades kernel: [11785491.218400] hub 2-0:1.0: debounce: port 6: total 125ms stable 100ms status 0x100
May  1 10:08:15 hades kernel: [11785491.218415] hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0040
May  1 10:08:24 hades kernel: [11785500.384411] hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0040
May  1 10:08:24 hades kernel: [11785500.384440] ehci-pci 0000:00:1d.7: GetStatus port:6 status 001803 0  ACK POWER sig=j CSC CONNECT
May  1 10:08:24 hades kernel: [11785500.384484] hub 2-0:1.0: port 6, status 0501, change 0001, 480 Mb/s
May  1 10:08:25 hades kernel: [11785500.410105] ehci-pci 0000:00:1d.7: GetStatus port:6 status 001803 0  ACK POWER sig=j CSC CONNECT
May  1 10:08:25 hades kernel: [11785500.514169] hub 2-0:1.0: debounce: port 6: total 125ms stable 100ms status 0x501
May  1 10:08:25 hades kernel: [11785500.565335] ehci-pci 0000:00:1d.7: port 6 reset complete, port enabled
May  1 10:08:25 hades kernel: [11785500.565354] ehci-pci 0000:00:1d.7: GetStatus port:6 status 001005 0  ACK POWER sig=se0 PE CONNECT
May  1 10:08:25 hades kernel: [11785500.616423] usb 2-6: new high-speed USB device number 9 using ehci-pci
May  1 10:08:25 hades kernel: [11785500.668338] ehci-pci 0000:00:1d.7: port 6 reset complete, port enabled
May  1 10:08:25 hades kernel: [11785500.668357] ehci-pci 0000:00:1d.7: GetStatus port:6 status 001005 0  ACK POWER sig=se0 PE CONNECT
May  1 10:08:25 hades kernel: [11785500.733749] usb 2-6: skipped 4 descriptors after interface
May  1 10:08:25 hades kernel: [11785500.734249] usb 2-6: default language 0x0409
May  1 10:08:25 hades kernel: [11785500.734766] usb 2-6: udev 9, busnum 2, minor = 136
May  1 10:08:25 hades kernel: [11785500.734777] usb 2-6: New USB device found, idVendor=05c6, idProduct=9091
May  1 10:08:25 hades kernel: [11785500.734782] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May  1 10:08:25 hades kernel: [11785500.734786] usb 2-6: Product: Android
May  1 10:08:25 hades kernel: [11785500.734791] usb 2-6: Manufacturer: Android
May  1 10:08:25 hades kernel: [11785500.734798] usb 2-6: SerialNumber: 91bcc491
May  1 10:08:25 hades kernel: [11785500.735097] usb 2-6: usb_probe_device
May  1 10:08:25 hades kernel: [11785500.735108] usb 2-6: configuration #1 chosen from 1 choice
May  1 10:08:25 hades kernel: [11785500.735355] usb 2-6: adding 2-6:1.0 (config #1, interface 0)
May  1 10:08:25 hades kernel: [11785500.735486] usb 2-6: adding 2-6:1.1 (config #1, interface 1)
May  1 10:08:25 hades kernel: [11785500.735617] usb 2-6: adding 2-6:1.2 (config #1, interface 2)
May  1 10:08:25 hades kernel: [11785500.735793] hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0040
May  1 10:08:25 hades mtp-probe: checking bus 2, device 9: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6"
May  1 10:08:25 hades mtp-probe: bus: 2, device: 9 was not an MTP device

The phone immediately starts charging and does not show up as /dev/sdb1.

What has happened here is that the phone isn't UMS protocol at all but is fact MTP. This needs to be setup on both the linux operating system as well as the android phone.

so you will need to run:

apt-get install mtpfs

On the linux box, and then on the phone, you will need to set up the android USB option to MTP. It sounds like you may have done that already because it works on other operating systems.

I'm guessing that windows and os x supports MTP out of the box. You may have to faff around a bit with rebooting the phone before it will work, or switching USB sockets.

For further reading please see:

http://www.mysolutions.it/mounting-your-mtp-androids-sd-card-on-ubuntu/


Ubuntu 20.04 Dell xps 13 touchpad not working after login

Turns out after many days of debugging this that the touchpad setting was turned off, I have no idea why nor do I recall doing this.


If I read the question correctly, your /etc/apt/sources.list.d/getdeb.list looks like this:

deb http:// archive.getdeb.net/ubuntu precise-getdeb apps
deb
http:// archive.getdeb.net/ubuntu saucy-getdeb apps
deb http:// archive.getdeb.net/ubuntu saucy-getdeb apps
deb http:// archive.getdeb.net/ubuntu precise-getdeb games

If so, the problem is indeed on the second line. deb lines have this format:

deb http://repo.url.com repo_section(s)

So, open that file in an editor using sudo

sudo gedit /etc/apt/sources.list.d/getdeb.list

Then, edit the file so that it looks like this:

deb http://archive.getdeb.net/ubuntu precise-getdeb apps
deb http://archive.getdeb.net/ubuntu saucy-getdeb apps
deb http://archive.getdeb.net/ubuntu saucy-getdeb apps
deb http://archive.getdeb.net/ubuntu precise-getdeb games

Make sure each lines starts with deb and that there are no spaces between http:// and archive.


Will linux operating system read a disc that requires another operating system?

Yes... Due to reasons beyond my knowledge, most games that say "PC" mean "Windows Only". Unfortunately, this leaves Linux unable to do much. You might want to try wine and run the install program on the disk, but it doesn't work as often as any of us would like.


From the Virtual Box Manual:

  The --resize x option ... currently works only for VDI and VHD formats, and only for the dynamically allocated variants, and can only be used to expand (not shrink) the capacity.

So it is not implemented to decrease the size of an existing virtual disk.

To physically shrink a dynamically allocated VDI see

How do I shrink a dynamically growing VDI disk from VirtualBox?

In order to have a smaller logical virtual drive you need to copy the content to a newly created smaller drive.


How to perform full system restore on Ubuntu 12.04 removing all software footprints

There is an excellent guide here http://news.softpedia.com/news/Installing-Ubuntu-12-04-LTS-266201.shtml
I just had to do this myself, I put my install media and followed 3. Erase and use the entire disk (Erase Ubuntu x.x and reinstall) in the aforementioned link.


Wrong login dialog after meddling with xrdp and various desktops

This article helped: Restore Unity Greeter

In short:

  Now on a new install of Ubuntu 14.10 + xubuntu-desktop on top of that, there is no directory lightdm.conf.d under /etc/lightdm. But following advice from here I created the directory /etc/lightdm/lightdm.conf.d and a file /etc/lightdm/lightdm.conf.d/50-myconfig.conf with contents

[SeatDefaults]
greeter-session=unity-greeter

  and I get the unity greeter back.


This is an organisational problem.

If somebody changes your router settings they should notify you.

If you have to use static, locally assigned IP addresses on your system although there's a DHCP server, the admin of the DHCP server should reserve a range of IPs for static use and put it in the documentation notes.

If your internet does not work with static IP and you know there's a DHCP server, you can temporarily switch to using DHCP and see what you are assigned, then change your static setup accordingly.

Again, I think this is a communication/documentation issue in your organisation.


In the terminal go to Preferences > Profiles and create a new one. In the Command tab select Run a custom command instead of my shell and set it to /bin/bash.

Select the new profile as the one to be the Profile used when launching a new terminal by clicking the drop-down list.

The pre-existing Unnamed profile can be deleted.


Overwrote /bin/bash, after replacing still broken

Thank you for the tips. I have already fixed it! I'm kinda new here, so I posted this fact as a comment above instead of as a new answer. Sorry!

Here is how I fixed it!:D

Booted to the 10.10 live cd
mounted my hard drive's linux partition in /mnt/disk
did a chroot to /mnt/disk
From there, I was able to use apt-get install bash to successfully install it!

:D Thanks. I will check out the commands that you have posted here. Thanks so much again. I hope this post helps people who carelessly delete/overwrite bash like I did.
-Slink

P.S. "chroot" is a really cool command. ^_^


How to install those base00-base0F colors on Bash terminal?

You can create a custom terminal profile

Open a terminal (KDE/Plasma, Edit->Profiles: Gnome Edit->Profile preferences)

And set whatever colors you like.

If you're in a TTY terminal setterm will change foreground/background colors ie. setterm -foreground black -background white. Also you don't "install" colors, you'll need to use ANSI escape sequences to set colors. See this comprehensive reference Bash tips: Colors and formatting (ANSI/VT100 Control sequences)


What is the GNOME equivalent of Unity scopes?

They are simply called "search providers" in GNOME. This is implemented by applications providing a DBus based SearchProvider API, and registering as providers with gnome-shell via files to specify the DBus name and endpoint, and the app's .desktop file ID.

You can read more at https://developer.gnome.org/SearchProvider/


hmm are you using GRUB??

try using Shift + Esc at boot, just to see if it will show you the GRUB (list of OS) menu. Boot into Ubuntu then revert the timer back to like one second.

If that doesn't work try to boot using live cd, mount your ubuntu '/' partition. In the command line run sudo nautilus nautilus, left side, click on your drive, go through the files and increase back the timer.


first of all to help you better, we need to know more details about what media you're using to install Ubuntu.  To install with a disc, the proper way to do it is to:

Download Ubuntu from:
Ubuntu Download Page
After downloading Ubuntu then you need to burn an ISO image onto a DVD.  You can do this from Windows 7 by right-click on downloaded file, then 'Open With>Windows Disc Image Burner
Re-start PC with DVD in the Blu Ray drive

If you have followed all of those steps and it's still not working then maybe try to install from a USB stick.  It's a couple of extra steps to do it from USB, but it would be an option if the DVD is not working.  You should be able to find instructions for this on the same Ubuntu Download page.


Since the output of uname -a gives x86_64, it means that you have a 64 bit version.

I suggest that you first try to remove traces of your skype install. You can do this by entering sudo apt-get purge skype in your terminal. It might be possible that you have to run sudo apt-get purge skype-bin also.

Then check if you have any held packets:
Open the /var/log/dist-upgrade/apt.log log file in a text editor.
Locate any "broken" packages and remove them with sudo apt-get remove .

Note: in newer versions, the log is located in /var/log/apt/term.log instead.

To install Skype again, you should first run following command

sudo dpkg --add-architecture i386

Add the correct repository:

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

Then update & install Skype:

sudo apt-get update && sudo apt-get install skype


New solution:

sudo apt-get install curl openssh-server ca-certificates postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
dpkg -i gitlab-ce-XXX.deb
sudo gitlab-ctl reconfigure

Old answer:

There is a debian package available for Ubuntu 12.04 LTS 64 bit at www.gitlab.com/downloads. There you can also find Virtual Machine Images with GitLab.


If you simply pop the 13.04 it might end up with mismatching libs and many configuration files being not valid to the newer software versions. Doing a

  dpkg --get-selections > ~/Desktop/packages

will provide you the list of installed files wich you can recover in a fresh install. A good idea is to backup your home with the .config folders and /etc/ to achieve this I suggest you a software like LuckyBackup.


KeePassX fails to install on ubuntu 16.04

It seems you are missing some libraries for compiling.
Before running cmake you can try installing libgcrypt20-dev or libgcrypt11-dev.

sudo apt-get install libgcrypt20-dev

Then run cmake again.

By the way, what's wrong with installing it from the official ubuntu repository?

sudo apt-get install keepassx


Why does my USB microphone force all audio to go through it, despite system settings?

Install "pulseaudio volume control" which has more controls :

sudo apt install pavucontrol

Launch it  and select the correct device as default in "input devices" and "output devices" tabs:
The default device is selected by clicking corresponding green button.

If problem, look in "configuration" tab and try profiles .


Access Windows machines from Ubuntu on local network by hostname

All you have to do is:

sudo gedit /etc/nsswitch.conf

change the line that says

hosts: files dns

to this:

hosts: files wins dns

(order does matter)

finally, you need to install winbind

sudo apt-get install winbind

Source:
http://that-matt.com/2009/12/how-to-get-ubuntu-to-ping-a-windows-hostname/


Changing KDE's oxygen-gtk3 colors for tooltips (fixing Firefox 46)

You can change the colour in the System Settings, which will fix it for all applications, not just Firefox.

On Kubuntu 14.04 LTS:
System Settings > Application Appearance > Colours (side selection) > Colours (the tab) > Tooltip Background and Tooltip Text


sed '/^\#/d' myFile > tt
mv tt myFile

What happens here:

sed '/^#/d' myFile removes all lines starting with # from the file myFile and outputs the result in the console, > tt redirects the output into a temporary file called tt,
mv tt myFile moves the temporary file tt to myFile.


All you have to do is add DRI_PRIME=1 before the command of whatever you want to run using your dedicated Radeon GPU, so for example you can run Steam using DRI_PRIME=1 steam, and all of you games should use the Dedicated GPU.
If that does not work, then you might need to install switcheroo-control (I had to do that too) using sudo apt install switcheroo-control. This will also add an option to run using dedicated GPU from the right-click drop down menu in GNOME, so for example you can choose the dedicated GPU for Steam from the application menu > right-click Steam > "Launch using Dedicated Graphics Card":

If your steam games still use the integrated GPU after all of that (which they shouldn't), then you might need to enter DRI_PRIME=1 %command% to each game in their Launch Options. More on that here.


Why does my 'ubuntu' user not need a password when using sudo

I would search in /etc/sudoers.d folder.
cd  /etc/sudoers.d
grep NOPASSWD *


755 is standard mode for directories. just

 chmod 755 /home/User/Desktop

and everything will be ok


Bizarre RealTek (RTL8723BE) wifi driver saga on 19.04

I managed to dig up an ethernet cable and connect to the router, then perform the next dist-upgrade from 19.04 -> 19.10. Happy to report that the default drivers in 5.3.0-10-generic are working great.

I noticed also that the bluetooth driver was failing for this chipset under 19.04, tracing the logs all the way back to the first boot after the upgrade. That problem too has been resolved.

Thanks Pilot6 for the quick suggestions and prior answers on this topic over the years.


Notification When someone connects to my local network , ARP, Notification file

You can send notifications by use of notify-send yourmessage but what you want to do is a bit strange.

Your router is the one handling the connections, a connection to your network will not be logged or noticed by your computer unless the device actually connects / interacts to your computer. Of course you could be making a monitor by regularly scanning the network like:

nmap -sn 192.168.1.*

and then read you data from here (or arp, because now you can find them there). But basically the device for monitoring connections is your router, not your pc.

If your router supports it, you could parse the logging of the router to the syslog of your pc. Now you get an message in the syslog when a connection is made, which you can then send to your desktop environment if you want.

But to answer the question, add a script to your cron which will do a nmap -sn, pipe this to temp file and compare this with the previous situation by use of diff. Diff out means offline, diff in means online.

A rough example (only handles first ip change per run):

#!/bin/bash
#
#Script to monitor the network and put changes to notification
#
#Save previous scan
cp scan.txt previousscan.txt
#get numeric list of online hosts
nmap -n -sn 192.168.178.* > scan.txt
#collect the difference, only the lines with ip-numbers
message=$(diff previousscan.txt scan.txt | grep 192)
#get first char which indicates if the host came up or went away
iostring="${message:0:1}"
#get first ip-number from the list
computer="${message:23:17}"

#show ip-number in notify if host came up
if [ "$iostring" = \> ]; then
        notify-send "$computer online"
        fi
#show ip-number in notify if host went away
if [ "$iostring" = \< ]; then
        notify-send "$computer offline"
        fi


With Java being purged from the repo's, what does this mean for Minecraft?

Well, there are two routes you can take with this:
Either you take open source port of Minecraft, called Minetest-c55. I should warn you though, it's not as full featured in terms of new features added to Minecraft lately.

Or, you find an unofficial repository for sun-java, which is what Notch recommends for running the real minecraft.

However, you shouldn't - judging by this article - have a problem with this in a default Ubuntu install http://www.omgubuntu.co.uk/2012/01/canonical-reverse-java-uninstall-decision/


Display problems in Chrome and Brave in 20.04 since a few weeks back

This is a problem with Chrome 85 and the underlying Chromium engine. I can reproduce this 100% after suspend/wake. I'm using Nividia native drivers, tried both 440 and 450. Verified it's Chromium issue by rolling back to Chrome 84 -- no more glitches.


Why doesn't apt-get install back the original files of a package after I removed them?

(1):  With remove as the apt-get argument, it only removes the binaries for the program, and leaves the configs alone, in case you want to install (and restore from), or transfer to another system, the configs around later.  Or if you want to just restage the software if you install a later version or such.

(2): If you want the packages to reinstall their defaults, try sudo dpkg-reconfigure [package] or sudo apt-get purge [package]; sudo apt-get install [package].  purge will force the removal of all configurations.  The install after the purge will then reinstall all the defaults.


Can't connect to home wifi, other wifis are fine

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

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

sudo iw reg get

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

sudo iw reg set IS

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

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

EDIT: You might try a driver parameter. From the terminal:

sudo modprobe -r ath10k_pci
sudo modprobe ath10k_core cryptmode=1
sudo modprobe ath10k_pci

If there is any improvement, make the change persistent:

sudo -i
echo "options ath10k_core cryptmode=1"  >  /etc/modprobe.d/ath10k_core.conf
exit